:root {
    --bg-color: #0f1520;
    --ui-bg: #1a1a2e;
    --gold: #f1c40f;
    --red: #c0392b;
    --green: #27ae60;
    --text: #ecf0f1;
    --narnia: #8e44ad; /* Royal Purple */
    --locked: #444;
    --common: #bdc3c7;
    --rare: #3498db;
    --epic: #9b59b6;
    --legendary: #f1c40f;
}

body {
    margin: 0;
    padding: 0;
    background-color: #050505;
    color: var(--text);
    font-family: 'Georgia', serif; 
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    user-select: none;
}

#game-container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    height: 100vh;
    max-height: 900px;
    border: 4px solid var(--gold);
    background: var(--bg-color);
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    position: relative;
    box-sizing: border-box; 
    margin: 0 10px; 
}

canvas {
    background-color: #111;
    cursor: crosshair;
    image-rendering: pixelated;
    flex-grow: 1;
    min-width: 0; 
}

#sidebar {
    width: 380px;
    background: var(--ui-bg);
    border-left: 2px solid var(--gold);
    display: flex;
    flex-direction: column;
    padding: 0;
    flex-shrink: 0;
}

/* --- COMPACT HEADER --- */
.sidebar-header {
    padding: 5px;
    background: #111;
    border-bottom: 1px solid var(--gold);
    text-align: center;
    background-image: linear-gradient(#2c3e50, #000);
}

.sidebar-header h1 {
    font-size: 16px;
    margin: 0;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.sidebar-content {
    padding: 2px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* --- COMPACT STATS --- */
.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    font-size: 11px;
    background: #000;
    padding: 4px;
    border: 1px solid #444;
}

.stat-cell {
    display: flex;
    justify-content: space-between;
    padding: 1px 4px;
    background: #1a1a1a;
}

.controls-row {
    display: flex;
    gap: 4px;
}

/* --- COMPACT BUTTONS --- */
.controls-row button {
    flex: 1;
    font-size: 10px;
    padding: 2px;
    height: 24px;
}

.section-title {
    font-size: 11px;
    color: #aaa;
    text-transform: uppercase;
    border-bottom: 1px solid #444;
    margin-bottom: 1px;
    margin-top: 2px;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

#build-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

/* --- TOWER BUTTONS --- */
.tower-btn {
    height: 50px;
    font-size: 10px;
    border: 1px solid #444;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #151515;
    position: relative;
    padding: 2px;
    text-align: center;
    line-height: 1.1;
    font-family: 'Courier New', monospace;
    overflow: hidden;
}

.tower-btn:hover {
    border-color: var(--gold);
    background: #252525;
}

.tower-btn div {
    margin-bottom: 2px;
}

#selection-panel, #preview-panel {
    border: 1px solid var(--gold);
    background: #111;
    padding: 3px;
    margin-top: 2px;
    display: none;
}

#current-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    font-size: 12px;
    background: transparent;
    border: none;
    padding: 0;
    margin: 2px 0;
}

.stat-box { margin: 0; padding: 1px 0; }

.specials-list {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-top: 2px;
}

.special-tag {
    background: #222;
    border: 1px solid #555;
    padding: 0px 4px;
    font-size: 9px;
    color: #ccc;
    border-radius: 2px;
}

/* --- UPGRADE ROWS (Aligned & Wide) --- */
.upgrade-row {
    margin-bottom: 1px;
    padding: 4px;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    min-height: 36px;
}

.upgrade-info {
    flex: 1;
    display: flex;
    align-items: center; 
    padding-right: 8px;
    width: 100%;
}

/* Locked width for left text so boxes align perfectly */
.upgrade-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 160px;         
    min-width: 160px;
    max-width: 160px;
    flex-shrink: 0;      
    margin-right: 5px;   
}

.upgrade-left div {
    white-space: nowrap;      
    overflow: hidden;         
    text-overflow: ellipsis; 
}

/* Pips Container stretches to fill space */
.milestone-list {
    flex-grow: 1; 
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pip-row {
    display: flex;
    width: 100%;
    gap: 3px;
    margin-top: 5px;
    margin-bottom: 5px;
    background: transparent;
    padding: 0;
}

.pip {
    flex: 1; 
    height: 10px; /* Short height = Wide bar look */
    background: #1a1a1a;
    border: 1px solid #444;
    transition: all 0.2s;
    cursor: help;
    box-sizing: border-box;
}

/* Filled States */
.pip.filled {
    box-shadow: 0 0 6px currentColor;
    border-color: #fff;
    opacity: 1;
}

/* Specific Path Colors */
.row-0 .pip.filled { background: cyan; box-shadow: 0 0 8px cyan; }
.row-1 .pip.filled { background: orange; box-shadow: 0 0 8px orange; }
.row-2 .pip.filled { background: lime; box-shadow: 0 0 8px lime; }

.pip.locked {
    background: #000;
    border-color: #222;
    opacity: 0.2;
    position: relative;
}

.pip.locked::after {
    content: '';
    position: absolute;
    top: 50%; left: 0; width: 100%; height: 1px;
    background: #333;
    transform: rotate(-15deg);
}

.ms-item { color: #333; transition: color 0.2s; }
.ms-item.unlocked { color: #fff; text-shadow: 0 0 3px rgba(255,255,255,0.5); font-weight: bold; }
.ms-item.next { color: var(--gold); font-weight: bold; }

.path-name { font-size: 11px; font-weight: bold; }

.upgrade-btn { 
    padding: 0; 
    height: 22px; 
    font-size: 10px; 
    width: 45px;
    flex-shrink: 0;
}

.action-bar {
    display: flex;
    gap: 4px;
    margin: 2px 0;
}
.action-bar button { flex: 1; font-size: 10px; height: 22px; padding: 0; }

/* Force the preview icon to not be huge if screen is small */
#prev-icon-container canvas {
    width: 50px !important; 
    height: 50px !important;
}

/* --- MODALS & TOOLTIPS --- */
.modal-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center; align-items: center;
    z-index: 2000;
    flex-direction: column;
}

/* Lore / Tower Detail Modal Styling (Updated) */
#tower-detail-content {
    background: #111;
    border: 2px solid var(--gold);
    padding: 30px;        
    width: 450px;         
    max-height: 85vh;     
    overflow-y: auto;     
    display: flex;
    flex-direction: column;
    gap: 15px;            
    box-shadow: 0 0 40px rgba(0,0,0,0.9);
    border-radius: 4px;
}

#tower-detail-content h2 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 5px;
    text-align: center;
    letter-spacing: 1px;
}

#tower-detail-content p#td-desc {
    text-align: center;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 5px;
    font-size: 14px;
    color: #bbb;
    line-height: 1.4;
}

.detail-row {
    background: #181818;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #222;
}

.card-container { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; max-width: 90%; }
.rogue-card {
    width: 200px; height: 300px; background: var(--ui-bg); border: 2px solid var(--gold);
    padding: 20px; display: flex; flex-direction: column; align-items: center;
    text-align: center; cursor: pointer; transition: transform 0.2s; box-sizing: border-box;
    position: relative; overflow: hidden;
}
.rogue-card:hover { transform: scale(1.05); background: #333; }
.rarity-stripe { width: 100%; height: 4px; position: absolute; top: 0; left: 0; }
.card-title { color: var(--gold); font-size: 18px; margin-bottom: 15px; border-bottom: 1px solid #555; width: 100%; padding-bottom: 10px; font-family: 'Georgia', serif; }
.card-desc { font-size: 12px; line-height: 1.4; flex: 1; font-style: italic; }
.card-rarity-text { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }

#tooltip {
    position: absolute; background: rgba(0,0,0,0.98); border: 1px solid var(--gold);
    padding: 8px; pointer-events: none; display: none; font-size: 11px;
    max-width: 220px; z-index: 300; color: white; box-shadow: 0 0 10px #000;
}
.tooltip-title {
    font-weight: bold;
    margin-bottom: 4px;
    border-bottom: 1px solid #444;
    padding-bottom: 2px;
    color: var(--gold);
}

#stc-log-content {
    background: var(--ui-bg); border: 2px solid var(--gold); padding: 20px;
    width: 400px; max-width: 90%; color: var(--text);
    max-height: 70vh; overflow-y: auto;
}
.stc-entry {
    background: #111; border: 1px solid #444; padding: 8px; margin-bottom: 5px;
    display: flex; justify-content: space-between; align-items: center;
}
.stc-name { font-weight: bold; font-size: 12px; }
.stc-desc { font-size: 10px; color: #aaa; }
.stc-wave { color: #666; font-size: 10px; }

button {
    background: #2c3e50; color: var(--gold); border: 1px solid var(--gold);
    padding: 4px 8px; cursor: pointer; font-family: 'Georgia', serif; font-weight: bold;
    text-transform: uppercase; font-size: 10px;
}
button:hover { background: var(--gold); color: #000; }
button:disabled { opacity: 0.5; cursor: not-allowed; filter: grayscale(1); }

.intel-icon { cursor: help; color: cyan; font-size: 12px; margin-left: 5px; }

#intel-popup {
    position: absolute; left: 380px; top: 50px; background: var(--ui-bg);
    border: 2px solid var(--gold); padding: 15px; width: 280px; 
    display: none; z-index: 500; box-shadow: 0 0 20px #000;
    pointer-events: none;
}
#intel-popup canvas {
    flex-grow: 0;        
    width: 40px;         
    height: 40px;        
    background: #050505; 
    border: 1px solid #333;
    cursor: default;     
}
.intel-row { display: flex; align-items: flex-start; margin-bottom: 4px; font-size: 11px; color: #ccc; border-bottom: 1px solid #333; padding-bottom: 2px; }
.intel-shape { width: 16px; height: 16px; border-radius: 50%; margin-right: 8px; border: 1px solid #000; flex-shrink: 0; }

#game-over {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 20, 40, 0.95); display: none; flex-direction: column;
    justify-content: center; align-items: center; color: var(--gold); z-index: 4000;
}

.identity-modal {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; display: flex; flex-direction: column;
    justify-content: center; align-items: center; z-index: 5000;
}
.identity-box {
    background: var(--ui-bg); border: 2px solid var(--gold);
    padding: 30px; text-align: center; max-width: 400px;
}
.identity-input {
    background: #111; border: 1px solid #555; color: var(--gold);
    padding: 10px; font-family: inherit; font-size: 16px;
    margin: 15px 0; width: 200px; text-align: center; text-transform: uppercase;
}
.leaderboard-modal {
    position: absolute; top: 50px; left: 50%; transform: translateX(-50%);
    background: var(--ui-bg); border: 2px solid var(--gold);
    padding: 20px; 
    z-index: 4100;
    display: none;
    width: 400px; max-height: 80vh; overflow-y: auto;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}
.score-row {
    display: flex; justify-content: space-between;
    padding: 5px 0; border-bottom: 1px solid #333; font-size: 12px;
}
.score-row.header { color: var(--gold); font-weight: bold; border-bottom: 1px solid var(--gold); }
.score-rank { width: 30px; color: #888; }
.score-name { flex: 1; text-align: left; color: #ccc; }
.score-wave { width: 50px; text-align: right; color: cyan; }

.game-notification {
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 20, 40, 0.9);
    border: 1px solid cyan;
    box-shadow: 0 0 15px cyan;
    color: cyan;
    padding: 15px 30px;
    font-family: 'Georgia', serif;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 3000;
    animation: notificationFade 4s forwards;
    text-align: center;
}

@keyframes notificationFade {
    0% { opacity: 0; transform: translate(-50%, 20px); }
    10% { opacity: 1; transform: translate(-50%, 0); }
    80% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -20px); }
}



/* --- BOSS HUD --- */
#boss-hud {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    max-width: 90%;
    display: none; /* Hidden by default */
    flex-direction: column;
    align-items: center;
    z-index: 1000;
    pointer-events: none;
}

#boss-name {
    color: var(--red);
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 0 0 10px black;
    margin-bottom: 5px;
    font-family: 'Cinzel', serif;
    letter-spacing: 3px;
}

#boss-health-track {
    width: 100%;
    height: 20px;
    background: #111;
    border: 2px solid #444;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(192, 57, 43, 0.4);
}

#boss-health-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #800000, #c0392b);
    transition: width 0.2s ease-out;
}

#boss-health-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    text-shadow: 0 1px 2px black;
}


/* --- BUTTON HOVER FX --- */
button { transition: all 0.2s; }
button:hover { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.5); filter: brightness(1.2); }
button:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(0,0,0,0.5); }

/* --- SLIDER --- */
input[type=range] {
    width: 100%;
    -webkit-appearance: none;
    background: transparent;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px; width: 16px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    margin-top: -6px;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%; height: 4px;
    cursor: pointer;
    background: #444;
}



/* --- ARMORY SCREEN --- */
.armory-container {
    display: flex;
    gap: 20px;
    height: 500px;
    width: 100%;
}

.paper-doll {
    width: 250px;
    border: 1px solid #444;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    position: relative;
}

.gear-slot {
    width: 60px; height: 60px;
    background: #151515;
    border: 2px dashed #333; /* Dashed when empty */
    margin: 5px;
    display: flex;
    flex-direction: column; /* Allow text stacking */
    justify-content: center;
    align-items: center;
    font-size: 10px;
    color: #555;
    text-transform: uppercase;
    cursor: default;
    position: relative;
    transition: all 0.2s;
    text-align: center;
}

/* Equipped State */
.gear-slot.equipped { 
    border-style: solid; 
    border-width: 2px;
    background: #222; 
    color: #fff; 
    cursor: pointer; /* Show pointer to indicate unequip action */
}

/* Hover effect for unequip */
.gear-slot.equipped:hover {
    background: #3a1a1a; /* Slight red tint to indicate removal/unequip */
    border-color: #e74c3c !important; /* Red border on hover */
}
.gear-slot.equipped:hover::after {
    content: '×';
    position: absolute;
    top: 0; right: 0;
    background: #c0392b;
    color: white;
    font-size: 12px;
    width: 15px; height: 15px;
    display: flex; justify-content: center; align-items: center;
    border-bottom-left-radius: 4px;
}

/* Rarity Colors for Inventory Grid */
.item-card.item-Legendary { border-color: #f1c40f; box-shadow: inset 0 0 10px rgba(241, 196, 15, 0.1); }
.item-card.item-Epic { border-color: #9b59b6; }
.item-card.item-Rare { border-color: #3498db; }
.item-card.item-Common { border-color: #444; }
.gear-slot.equipped { border-color: var(--gold); color: #fff; }

/* Layout for the slots (Humanoid shape) */
.doll-head { margin-bottom: 10px; }
.doll-torso { display: flex; gap: 10px; margin-bottom: 10px; } /* Gloves - Chest - Amulet */
.doll-legs { display: flex; gap: 10px; } /* Boots - Ring */

.stash-panel {
    flex: 1;
    border: 1px solid #444;
    background: #111;
    padding: 10px;
    overflow-y: auto;
}

.stash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.item-card {
    background: #222;
    border: 1px solid #444;
    padding: 8px;
    font-size: 11px;
    cursor: pointer;
    transition: transform 0.1s;
}
.item-card:hover { transform: scale(1.05); background: #2a2a2a; }
.item-card.equipped { border: 1px solid var(--gold); background: #2c2a1e; }

/* Rarity Colors */
.item-Common { color: #bdc3c7; border-color: #7f8c8d; }
.item-Rare { color: #3498db; border-color: #2980b9; }
.item-Epic { color: #9b59b6; border-color: #8e44ad; }
.item-Legendary { color: #f1c40f; border-color: #f39c12; box-shadow: 0 0 5px #f39c12; }

.item-stat { color: #aaa; margin-top: 4px; }
.item-slot-tag { font-size: 9px; color: #666; text-transform: uppercase; margin-bottom: 2px; }



/* --- SKILL TREE (COMPACT) --- */
.skill-tree-container {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    padding: 10px 0;
    background: #080808;
    border: 1px solid #333;
    /* Ensure it doesn't overflow horizontally */
    overflow-x: hidden;
}

.tree-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Reduced from 40px */
    position: relative;
}

.col-header {
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 12px; /* Slightly smaller text */
    border-bottom: 1px solid #333;
    width: 100%;
    text-align: center;
    padding-bottom: 5px;
}

.skill-node {
    width: 45px;  /* Reduced from 60px */
    height: 45px; /* Reduced from 60px */
    border-radius: 50%;
    background: #151515;
    border: 2px solid #444;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Connector Line (Vertical) */
.skill-node::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    width: 2px;
    height: 20px; /* Reduced from 40px to match gap */
    background: #333;
    z-index: 0;
    transform: translateX(-50%); /* Ensure perfect centering */
}
/* Hide connector for the last node */
.tree-column .skill-node:last-child::after { display: none; }

/* Node States */
.skill-node.locked { opacity: 0.5; cursor: not-allowed; filter: grayscale(1); }
.skill-node.available { border-color: cyan; box-shadow: 0 0 10px cyan; animation: pulseNode 2s infinite; }
.skill-node.unlocked { border-color: var(--gold); background: #2c2a1e; color: var(--gold); box-shadow: 0 0 15px var(--gold); }
.skill-node.unlocked::after { background: var(--gold); } /* Light up the path */

.skill-icon { font-size: 16px; z-index: 1; } /* Reduced icon size */

.skill-cost {
    position: absolute;
    bottom: -8px; /* Adjusted position */
    background: #000;
    border: 1px solid #555;
    border-radius: 10px;
    padding: 1px 4px;
    font-size: 8px; /* Smaller font */
    color: #ccc;
    z-index: 2;
    white-space: nowrap;
}

@keyframes pulseNode {
    0% { box-shadow: 0 0 5px cyan; }
    50% { box-shadow: 0 0 15px cyan; }
    100% { box-shadow: 0 0 5px cyan; }
}



/* --- NEW SKILL DETAIL POPUP --- */
.skill-detail-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 5000;
}

.skill-detail-box {
    background: var(--ui-bg);
    border: 2px solid var(--gold);
    width: 400px;
    padding: 2px; /* Inner border effect */
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
}

.sd-header {
    background: linear-gradient(to right, #111, #222);
    padding: 15px;
    border-bottom: 1px solid var(--gold);
    display: flex;
    align-items: center;
    gap: 15px;
}

.sd-icon {
    width: 50px; height: 50px;
    background: #000;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 24px;
    box-shadow: 0 0 10px var(--gold);
}

.sd-title-group h2 { margin: 0; color: var(--gold); font-size: 20px; text-transform: uppercase; }
.sd-title-group span { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 1px; }

.sd-body {
    padding: 20px;
    background: #0f1520;
    color: #ccc;
    font-size: 13px;
    line-height: 1.5;
    min-height: 100px;
}

.sd-stat-row {
    display: flex; justify-content: space-between;
    background: #1a1a2e;
    padding: 8px 12px;
    margin-top: 15px;
    border-left: 3px solid var(--gold);
}

.sd-footer {
    padding: 15px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: center;
    background: #111;
}

.btn-purchase {
    background: var(--green);
    color: white;
    font-size: 16px;
    padding: 12px 40px;
    border: 1px solid #2ecc71;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    width: 100%;
    transition: all 0.2s;
}
.btn-purchase:hover { background: #2ecc71; box-shadow: 0 0 15px #2ecc71; }
.btn-purchase:disabled { background: #444; border-color: #555; color: #888; cursor: not-allowed; box-shadow: none; }
.btn-close {
    position: absolute; top: 20px; right: 20px;
    background: transparent; border: none; color: #666; font-size: 20px; cursor: pointer;
}
.btn-close:hover { color: white; }

/* --- LEVEL & XP BAR --- */
.level-container {
    width: 90%;
    margin: 5px auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.xp-track {
    width: 100%;
    height: 6px;
    background: #111;
    border: 1px solid #444;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #b8860b, #f1c40f); /* Gold gradient */
    width: 0%;
    transition: width 0.5s ease-out;
    box-shadow: 0 0 5px #f1c40f;
}

.level-text-row {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: #bbb;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}