* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --orange: #ff6b35;
    --amber:  #ffb347;
    --gold:   #ffd700;
    --cyan:   #00d4ff;
    --pink:   #ff00aa;
}

html, body {
    width: 100%; height: 100%;
    background: #080604;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    color: #fff;
}

/* ── Background layers ── */
.bg {
    position: fixed; inset: 0;
    background: radial-gradient(ellipse at 50% 40%, #1a0e04 0%, #080604 65%);
    z-index: 0;
}

.grid-bg {
    position: fixed; inset: 0;
    background-image:
        linear-gradient(rgba(255,107,53,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,107,53,.04) 1px, transparent 1px);
    background-size: 44px 44px;
    animation: grid-move 25s linear infinite;
    pointer-events: none; z-index: 1;
}
@keyframes grid-move {
    to { background-position: 44px 44px; }
}

.scanlines {
    position: fixed; inset: 0;
    background: repeating-linear-gradient(
        0deg, transparent, transparent 2px,
        rgba(0,0,0,.12) 2px, rgba(0,0,0,.12) 4px
    );
    pointer-events: none; z-index: 6;
}

#particles {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 2;
}

/* ── Corner brackets ── */
.corner {
    position: fixed; width: 56px; height: 56px; z-index: 4;
}
.corner::before, .corner::after {
    content: ''; position: absolute;
    background: var(--orange); opacity: .55;
}
.corner::before { width: 2px; height: 36px; }
.corner::after  { width: 36px; height: 2px; }
.corner.tl { top: 18px; left: 18px; }
.corner.tr { top: 18px; right: 18px; transform: scaleX(-1); }
.corner.bl { bottom: 18px; left: 18px; transform: scaleY(-1); }
.corner.br { bottom: 18px; right: 18px; transform: scale(-1); }

.status-line {
    position: fixed; bottom: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--orange) 30%, var(--gold) 50%, var(--orange) 70%, transparent 100%);
    animation: bar-pulse 3s ease-in-out infinite; z-index: 5;
}
@keyframes bar-pulse {
    0%,100% { opacity: .3; } 50% { opacity: .9; }
}

/* ── Main scene ── */
#scene {
    position: relative; width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 3;
}

.logo-wrap { position: relative; }
.logo-wrap::before {
    content: ''; position: absolute; inset: -30px;
    background: radial-gradient(ellipse, rgba(255,107,53,.1) 0%, transparent 68%);
    animation: logo-pulse 3.5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes logo-pulse {
    0%,100% { opacity: .5; transform: scale(1); }
    50%      { opacity: 1;  transform: scale(1.06); }
}

canvas#c {
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    position: relative; z-index: 2;
}

/* ── Top nav mini buttons ── */
.top-nav {
    position: fixed; top: 18px; right: 20px;
    display: flex; gap: 8px; z-index: 20;
}
.btn-mini {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(255,107,53,.3);
    color: rgba(255,107,53,.6);
    font-family: 'Courier New', monospace;
    font-size: 8px; letter-spacing: 3px;
    text-transform: uppercase; cursor: pointer;
    outline: none; transition: all .25s;
}
.btn-mini:hover {
    border-color: var(--orange); color: var(--orange);
    box-shadow: 0 0 14px rgba(255,107,53,.2);
}
.btn-mini-dash { letter-spacing: 2px; }

.scene-tagline {
    color: rgba(255,255,255,.18);
    font-size: 9px; letter-spacing: 5px;
    margin-top: 20px;
    font-family: 'Courier New', monospace;
}
.scene-btns {
    display: flex; flex-direction: column;
    align-items: center; gap: 10px;
    margin-top: 28px;
}

/* ── About modal ── */
.about-modal { width: min(480px,94vw); max-height: 88vh; overflow-y: auto; }
.about-hero {
    color: var(--orange); font-size: 20px; letter-spacing: 6px;
    text-align: center; margin: 14px 0 4px;
    text-shadow: 0 0 20px rgba(255,107,53,.4);
}
.about-tagline {
    color: rgba(255,255,255,.2); font-size: 9px;
    letter-spacing: 3px; text-align: center; margin-bottom: 24px;
}
.about-block { margin-bottom: 20px; }
.about-sec {
    color: rgba(255,107,53,.5); font-size: 8px;
    letter-spacing: 4px; text-transform: uppercase;
    padding-bottom: 6px; margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,107,53,.1);
}
.about-body {
    color: rgba(255,255,255,.38); font-size: 10px;
    line-height: 1.8; letter-spacing: .5px;
}
.ctrl-grid {
    display: grid; grid-template-columns: auto 1fr;
    gap: 6px 16px; align-items: center;
}
.ctrl-k {
    color: var(--cyan); font-size: 9px; letter-spacing: 1px;
    background: rgba(0,212,255,.06); border: 1px solid rgba(0,212,255,.18);
    padding: 3px 8px; white-space: nowrap; text-align: center;
}
.ctrl-d { color: rgba(255,255,255,.38); font-size: 9px; letter-spacing: .5px; }

/* keep corner bracket classes working */
.bc.tl { top:-1px; left:-1px;    border-width: 1px 0 0 1px; }
.bc.tr { top:-1px; right:-1px;   border-width: 1px 1px 0 0; }
.bc.bl { bottom:-1px; left:-1px; border-width: 0 0 1px 1px; }
.bc.br { bottom:-1px; right:-1px; border-width: 0 1px 1px 0; }

/* ── Password modal ── */
.overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.82);
    backdrop-filter: blur(10px);
    display: none; align-items: center; justify-content: center;
    z-index: 100;
}
.overlay.active { display: flex; }

.modal {
    position: relative;
    background: rgba(12,8,5,.96);
    border: 1px solid rgba(255,107,53,.28);
    padding: 44px 40px 36px;
    width: 340px;
    box-shadow:
        0 0 70px rgba(255,107,53,.12),
        0 0 140px rgba(255,107,53,.05),
        inset 0 0 50px rgba(255,107,53,.03);
    animation: modal-in .28s ease;
}
@keyframes modal-in {
    from { opacity: 0; transform: scale(.94) translateY(-8px); }
    to   { opacity: 1; transform: scale(1)  translateY(0); }
}
.mc { position: absolute; width: 12px; height: 12px; border-color: var(--orange); border-style: solid; }
.mc.tl { top:-1px; left:-1px;    border-width: 2px 0 0 2px; }
.mc.tr { top:-1px; right:-1px;   border-width: 2px 2px 0 0; }
.mc.bl { bottom:-1px; left:-1px;  border-width: 0 0 2px 2px; }
.mc.br { bottom:-1px; right:-1px; border-width: 0 2px 2px 0; }

.modal-label {
    color: var(--orange); font-size: 10px; letter-spacing: 5px;
    text-transform: uppercase; margin-bottom: 6px; opacity: .7;
}
.modal-hint {
    color: rgba(255,255,255,.25); font-size: 9px;
    letter-spacing: 2px; margin-bottom: 30px;
}
.modal-icon {
    text-align: center; font-size: 30px; margin-bottom: 22px;
    filter: drop-shadow(0 0 12px rgba(255,107,53,.55));
}

.pin-dots {
    display: flex; justify-content: center;
    gap: 11px; margin-bottom: 22px;
}
.pin-dot {
    width: 10px; height: 10px;
    border: 1px solid rgba(255,107,53,.35);
    border-radius: 50%;
    transition: all .18s;
}
.pin-dot.filled {
    background: var(--orange);
    border-color: var(--orange);
    box-shadow: 0 0 10px rgba(255,107,53,.6);
}

.pw-input {
    width: 100%;
    background: rgba(255,107,53,.05);
    border: 1px solid rgba(255,107,53,.2);
    color: var(--orange);
    font-family: 'Courier New', monospace;
    font-size: 22px; letter-spacing: 10px;
    text-align: center;
    padding: 13px; outline: none;
    transition: all .25s;
    margin-bottom: 14px;
    -webkit-text-security: disc;
    text-security: disc;
}
.pw-input::placeholder { opacity: .3; letter-spacing: 4px; font-size: 16px; }
.pw-input:focus {
    border-color: rgba(255,107,53,.55);
    box-shadow: 0 0 22px rgba(255,107,53,.1);
    background: rgba(255,107,53,.08);
}
.pw-input.err {
    border-color: #ff3333;
    animation: shake .38s ease;
    box-shadow: 0 0 22px rgba(255,50,50,.2);
}
@keyframes shake {
    0%,100% { transform: translateX(0); }
    20% { transform: translateX(-7px); }
    40% { transform: translateX(7px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.modal-err {
    color: #ff3535; font-size: 9px; letter-spacing: 2px;
    text-align: center; margin-bottom: 16px;
    min-height: 14px; opacity: 0; transition: opacity .2s;
}
.modal-err.show { opacity: 1; }

.modal-btns { display: flex; gap: 10px; }
.mbtn {
    flex: 1; padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 9px; letter-spacing: 3px;
    text-transform: uppercase; cursor: pointer;
    border: 1px solid; outline: none;
    transition: all .25s;
}
.mbtn-cancel {
    background: transparent;
    border-color: rgba(255,255,255,.1);
    color: rgba(255,255,255,.3);
}
.mbtn-cancel:hover { border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.6); }
.mbtn-enter {
    background: rgba(255,107,53,.08);
    border-color: rgba(255,107,53,.45);
    color: var(--orange);
}
.mbtn-enter:hover {
    background: rgba(255,107,53,.18);
    border-color: var(--orange);
    box-shadow: 0 0 20px rgba(255,107,53,.3);
}

/* ── Dashboard ── */
#dashboard {
    display: none; position: fixed; inset: 0;
    background: #070504; z-index: 50;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    animation: dash-in .35s ease;
}
@keyframes dash-in {
    from { opacity: 0; } to { opacity: 1; }
}
#dashboard.active { display: block; }

.dash-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 28px;
    border-bottom: 1px solid rgba(255,107,53,.15);
    background: rgba(255,107,53,.03);
    position: sticky; top: 0; z-index: 10;
}
.dash-brand { color: var(--orange); font-size: 12px; letter-spacing: 6px; }
.dash-brand span { color: rgba(255,255,255,.2); font-size: 9px; letter-spacing: 2px; margin-left: 14px; }
.dash-user { color: rgba(255,255,255,.2); font-size: 9px; letter-spacing: 2px; }

.btn-lock {
    padding: 8px 18px; background: transparent;
    border: 1px solid rgba(255,107,53,.3);
    color: rgba(255,107,53,.6);
    font-family: 'Courier New', monospace; font-size: 9px;
    letter-spacing: 3px; cursor: pointer; transition: all .25s;
    text-transform: uppercase; outline: none;
}
.btn-lock:hover {
    border-color: var(--orange); color: var(--orange);
    box-shadow: 0 0 14px rgba(255,107,53,.2);
}

.dash-body { padding: 28px; max-width: 960px; margin: 0 auto; }

.section-label {
    color: rgba(255,107,53,.5); font-size: 9px;
    letter-spacing: 4px; text-transform: uppercase;
    margin-bottom: 14px; padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,107,53,.1);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px; margin-bottom: 28px;
}
.card {
    background: rgba(255,107,53,.04);
    border: 1px solid rgba(255,107,53,.12);
    padding: 20px; position: relative; transition: all .3s;
}
.card:hover { border-color: rgba(255,107,53,.3); box-shadow: 0 0 20px rgba(255,107,53,.07); }
.card-lbl { color: rgba(255,255,255,.22); font-size: 8px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px; }
.card-val { color: var(--orange); font-size: 26px; line-height: 1; }
.card-sub { color: rgba(255,255,255,.2); font-size: 8px; margin-top: 6px; letter-spacing: 1px; }
.card-dot {
    position: absolute; top: 14px; right: 14px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 8px rgba(255,107,53,.6);
    animation: dot-blink 2s ease-in-out infinite;
}
@keyframes dot-blink { 0%,100% { opacity:1; } 50% { opacity:.2; } }

/* ── Mission Control button ── */
.btn-mission {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 16px 20px;
    background: rgba(255,107,53,.05);
    border: 1px solid rgba(255,107,53,.25);
    color: var(--orange);
    font-family: 'Courier New', monospace;
    font-size: 10px; letter-spacing: 4px;
    text-transform: uppercase; text-decoration: none;
    cursor: pointer; outline: none;
    transition: all .3s; margin-bottom: 28px;
    position: relative; overflow: hidden;
}
.btn-mission::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,107,53,.07) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform .5s ease;
}
.btn-mission:hover::before { transform: translateX(100%); }
.btn-mission:hover {
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 30px rgba(255,215,0,.2), inset 0 0 30px rgba(255,215,0,.03);
}
.btn-mission:hover .mc-icon { color: var(--gold); }
.mc-icon { font-size: 16px; transition: color .3s; }
.mc-arrow {
    margin-left: auto; font-size: 12px; opacity: .5;
    transition: transform .3s, opacity .3s;
}
.btn-mission:hover .mc-arrow { transform: translateX(4px); opacity: 1; }

.activity-log {
    background: rgba(0,0,0,.3);
    border: 1px solid rgba(255,107,53,.1);
    padding: 18px; max-height: 210px; overflow-y: auto;
}
.log-row {
    font-size: 10px; letter-spacing: 1px;
    padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.03);
}
.log-ts  { color: rgba(255,107,53,.4); margin-right: 14px; }
.log-txt { color: rgba(255,255,255,.3); }
.log-txt.ok   { color: rgba(100,255,150,.45); }
.log-txt.warn { color: rgba(255,200,50,.45); }

/* ── Scene Buttons ── */
.btn-primary {
    position: relative;
    padding: 14px 52px;
    background: transparent;
    border: 1px solid rgba(255,107,53,.45);
    color: var(--orange);
    font-family: 'Courier New', monospace;
    font-size: 10px; letter-spacing: 6px;
    text-transform: uppercase;
    cursor: pointer; outline: none;
    transition: color .3s, border-color .3s, letter-spacing .3s, box-shadow .3s;
    z-index: 2;
}
.btn-primary:hover {
    color: #fff;
    border-color: var(--orange);
    letter-spacing: 9px;
    box-shadow: 0 0 28px rgba(255,107,53,.3), 0 0 56px rgba(255,107,53,.1);
}
.btn-secondary {
    padding: 9px 38px;
    background: transparent;
    border: 1px solid rgba(255,107,53,.18);
    color: rgba(255,107,53,.4);
    font-family: 'Courier New', monospace;
    font-size: 9px; letter-spacing: 5px;
    text-transform: uppercase;
    cursor: pointer; outline: none;
    transition: all .3s; z-index: 2;
}
.btn-secondary:hover {
    border-color: rgba(255,107,53,.45);
    color: rgba(255,107,53,.8);
    box-shadow: 0 0 16px rgba(255,107,53,.1);
    letter-spacing: 7px;
}
.bgc {
    position: absolute; width: 7px; height: 7px;
    border-color: var(--orange); border-style: solid;
    transition: border-color .3s;
}
.bgc.tl { top:-1px; left:-1px;    border-width: 1px 0 0 1px; }
.bgc.tr { top:-1px; right:-1px;   border-width: 1px 1px 0 0; }
.bgc.bl { bottom:-1px; left:-1px; border-width: 0 0 1px 1px; }
.bgc.br { bottom:-1px; right:-1px; border-width: 0 1px 1px 0; }

/* ── Game Screen ── */
#game-screen {
    display: none; position: fixed; inset: 0;
    background: #06070f; z-index: 60;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    animation: dash-in .35s ease;
}
#game-screen.active { display: block; }

#rain-canvas {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 0;
    opacity: 0.18;
}

.game-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 28px;
    border-bottom: 1px solid rgba(0,212,255,.12);
    background: rgba(0,212,255,.02);
    position: sticky; top: 0; z-index: 10;
}
.game-brand { color: var(--cyan); font-size: 12px; letter-spacing: 6px; }
.game-brand span { color: rgba(255,255,255,.2); font-size: 9px; letter-spacing: 2px; margin-left: 12px; }
.game-sub { color: rgba(0,212,255,.3); font-size: 9px; letter-spacing: 2px; margin-top: 3px; }

.btn-game-exit {
    padding: 8px 18px; background: transparent;
    border: 1px solid rgba(0,212,255,.22);
    color: rgba(0,212,255,.45);
    font-family: 'Courier New', monospace; font-size: 9px;
    letter-spacing: 3px; cursor: pointer; transition: all .25s;
    text-transform: uppercase; outline: none;
}
.btn-game-exit:hover {
    border-color: var(--cyan); color: var(--cyan);
    box-shadow: 0 0 14px rgba(0,212,255,.2);
}

.game-body {
    display: flex; gap: 22px;
    padding: 22px 28px;
    max-width: 1100px; margin: 0 auto;
    position: relative; z-index: 1;
}

.game-sidebar { width: 190px; flex-shrink: 0; }
.game-main { flex: 1; min-width: 0; }

.game-sec-lbl {
    color: rgba(0,212,255,.4); font-size: 9px;
    letter-spacing: 4px; text-transform: uppercase;
    margin-bottom: 10px; padding-bottom: 6px;
    border-bottom: 1px solid rgba(0,212,255,.1);
}

.inv-item {
    font-size: 10px; letter-spacing: 1px;
    color: rgba(255,255,255,.5);
    padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.04);
}
.inv-rare { color: var(--pink); }
.inv-cash { color: var(--gold); }
.inv-badge {
    font-size: 7px; letter-spacing: 2px;
    background: rgba(255,0,170,.12);
    border: 1px solid rgba(255,0,170,.3);
    color: var(--pink); padding: 1px 5px; margin-left: 6px;
}

.cred-track {
    background: rgba(0,212,255,.07);
    border: 1px solid rgba(0,212,255,.12);
    height: 5px; margin-bottom: 6px;
}
.cred-fill {
    height: 100%; background: var(--cyan);
    box-shadow: 0 0 8px rgba(0,212,255,.5);
    transition: width .6s ease;
}
.stamina-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00d4ff);
    box-shadow: 0 0 8px rgba(0,255,136,.55);
    transition: width .1s linear;
}
.stamina-fill.low { background: var(--orange); box-shadow: 0 0 8px rgba(255,107,53,.55); }
.stamina-fill.empty { background: #ff3535; box-shadow: 0 0 8px rgba(255,53,53,.55); }

.invis-status {
    font-size: 9px; letter-spacing: 1.5px; padding: 5px 0;
    text-transform: uppercase;
}
.invis-locked { color: rgba(255,255,255,.2); }
.invis-ready  { color: #aa44ff; text-shadow: 0 0 8px rgba(170,68,255,.6); animation: invis-pulse 2s ease-in-out infinite; }
.invis-active { color: #cc88ff; text-shadow: 0 0 12px rgba(200,100,255,.9); animation: invis-pulse .4s ease-in-out infinite; }
.invis-cool   { color: rgba(170,68,255,.35); }
@keyframes invis-pulse { 0%,100%{opacity:.7;} 50%{opacity:1;} }

.invis-bar {
    height: 100%;
    background: linear-gradient(90deg, #7722cc, #aa44ff);
    box-shadow: 0 0 8px rgba(170,68,255,.6);
    transition: width .1s linear;
}

.slow-ready  { color: #00d4ff; text-shadow: 0 0 8px rgba(0,212,255,.6); animation: invis-pulse 2s ease-in-out infinite; }
.slow-active { color: #88eeff; text-shadow: 0 0 12px rgba(0,230,255,.9); animation: invis-pulse .4s ease-in-out infinite; }
.slow-cool   { color: rgba(0,180,220,.35); }
.slow-bar {
    height: 100%;
    background: linear-gradient(90deg, #007799, #00d4ff);
    box-shadow: 0 0 8px rgba(0,212,255,.6);
    transition: width .1s linear;
}

.combo-flash {
    position: fixed;
    top: 38%; left: 50%;
    transform: translate(-50%, -50%);
    color: var(--pink);
    font-family: 'Courier New', monospace;
    font-size: 28px; letter-spacing: 6px;
    text-transform: uppercase;
    pointer-events: none;
    animation: combo-pop .9s ease forwards;
    z-index: 999;
    text-shadow: 0 0 24px var(--pink), 0 0 48px var(--pink);
}
@keyframes combo-pop {
    0%   { opacity:0; transform:translate(-50%,-65%) scale(.6); }
    25%  { opacity:1; transform:translate(-50%,-50%) scale(1.2); }
    60%  { opacity:1; transform:translate(-50%,-50%) scale(1); }
    100% { opacity:0; transform:translate(-50%,-42%) scale(.9); }
}
.cred-num { color: rgba(0,212,255,.45); font-size: 9px; letter-spacing: 1px; }

.contact-row {
    font-size: 9px; letter-spacing: 1px;
    color: rgba(255,255,255,.3); padding: 4px 0;
    display: flex; justify-content: space-between;
}
.contact-status { color: rgba(0,212,255,.4); }

.district-row {
    font-size: 9px; letter-spacing: 1px;
    padding: 4px 0; border-left: 2px solid transparent;
    padding-left: 8px;
}
.active-district  { color: var(--cyan); border-left-color: var(--cyan); }
.locked-district  { color: rgba(255,255,255,.18); }
.visited-district { color: rgba(255,255,255,.38); border-left-color: rgba(255,255,255,.2); }

/* Game canvas */
#game-canvas {
    width: 100%; display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    border: 2px solid #1a1a2a;
    outline: 1px solid #0a0a15;
    margin-bottom: 2px;
    background: #06070f;
}

/* RPG dialogue box */
.rpg-box {
    background: #080810;
    border: 2px solid #252545;
    outline: 1px solid #0f0f22;
    padding: 10px 14px 10px 14px;
    margin-bottom: 14px;
    position: relative;
}
.rpg-box::before, .rpg-box::after {
    content: ''; position: absolute;
    width: 8px; height: 8px;
    border-color: var(--cyan); border-style: solid;
    opacity: .4;
}
.rpg-box::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.rpg-box::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.rpg-name {
    display: inline-block;
    color: var(--cyan); font-size: 8px; letter-spacing: 4px;
    text-transform: uppercase;
    border: 1px solid rgba(0,212,255,.28);
    background: rgba(0,212,255,.06);
    padding: 2px 10px; margin-bottom: 9px;
}
.rpg-text {
    color: rgba(255,255,255,.7);
    font-size: 11px; line-height: 1.7; letter-spacing: 0.3px;
}
.rpg-text em { color: var(--cyan); font-style: normal; }
.rpg-cursor {
    color: var(--cyan); animation: rpg-blink 1s step-end infinite;
    margin-left: 2px;
}
@keyframes rpg-blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

/* Craft options */
.craft-header {
    color: rgba(255,255,255,.22); font-size: 9px;
    letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px;
}
.craft-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.craft-card {
    background: rgba(0,212,255,.03);
    border: 1px solid rgba(0,212,255,.18);
    padding: 16px 14px; cursor: pointer;
    text-align: left; outline: none;
    font-family: 'Courier New', monospace;
    transition: all .25s; position: relative;
}
.craft-card:hover {
    border-color: var(--cyan);
    background: rgba(0,212,255,.07);
    box-shadow: 0 0 22px rgba(0,212,255,.14);
    transform: translateY(-2px);
}
.rare-card { border-color: rgba(255,0,170,.22); background: rgba(255,0,170,.03); }
.rare-card:hover { border-color: var(--pink); background: rgba(255,0,170,.07); box-shadow: 0 0 22px rgba(255,0,170,.14); }
.safe-card { border-color: rgba(255,215,0,.18); background: rgba(255,215,0,.02); }
.safe-card:hover { border-color: var(--gold); background: rgba(255,215,0,.05); box-shadow: 0 0 22px rgba(255,215,0,.1); }

.craft-key {
    font-size: 22px; color: var(--cyan);
    margin-bottom: 8px; line-height: 1;
}
.rare-card .craft-key { color: var(--pink); }
.safe-card .craft-key { color: var(--gold); }

.craft-name {
    color: #fff; font-size: 11px;
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px;
}
.craft-info {
    color: rgba(255,255,255,.32); font-size: 9px;
    line-height: 1.6; margin-bottom: 8px;
}
.craft-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.ctag {
    font-size: 7px; letter-spacing: 1.5px;
    padding: 2px 6px; text-transform: uppercase;
}
.ctag-cyan { border: 1px solid rgba(0,212,255,.3); color: rgba(0,212,255,.65); }
.ctag-pink { border: 1px solid rgba(255,0,170,.3); color: rgba(255,0,170,.65); }
.ctag-gold { border: 1px solid rgba(255,215,0,.28); color: rgba(255,215,0,.65); }
.craft-uses {
    color: rgba(255,255,255,.2); font-size: 8px; letter-spacing: 1px;
}

/* Craft result */
#craftResult {
    background: rgba(0,0,0,.4);
    border: 1px solid rgba(0,212,255,.18);
    padding: 22px;
    animation: dash-in .3s ease;
}
.result-title {
    color: var(--cyan); font-size: 11px;
    letter-spacing: 4px; margin-bottom: 16px;
}
.result-scene {
    color: rgba(255,255,255,.52); font-size: 10px;
    line-height: 1.9; margin-bottom: 16px;
}
.result-verdict {
    font-size: 10px; letter-spacing: 2px;
    padding: 10px 14px; margin-bottom: 18px;
}
.verdict-ok   { color: rgba(100,255,150,.8); border: 1px solid rgba(100,255,150,.2); background: rgba(100,255,150,.04); }
.verdict-crit { color: var(--pink); border: 1px solid rgba(255,0,170,.3); background: rgba(255,0,170,.05); }
.verdict-safe { color: var(--gold); border: 1px solid rgba(255,215,0,.2); background: rgba(255,215,0,.04); }

.result-stats {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px; margin-bottom: 20px;
    border-top: 1px solid rgba(0,212,255,.1); padding-top: 14px;
}
.rs-row {
    display: flex; justify-content: space-between;
    font-size: 9px; letter-spacing: 1px;
    padding: 6px 10px;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.05);
}
.rs-lbl { color: rgba(255,255,255,.24); }
.rs-val { color: rgba(255,255,255,.6); }
.rs-val.gold { color: var(--gold); }
.rs-val.cyan { color: var(--cyan); }
.rs-val.pink { color: var(--pink); }
.rs-val.dim  { color: rgba(255,255,255,.2); }

.btn-next-day {
    padding: 12px 28px;
    background: rgba(0,212,255,.07);
    border: 1px solid rgba(0,212,255,.32);
    color: var(--cyan);
    font-family: 'Courier New', monospace;
    font-size: 10px; letter-spacing: 4px;
    text-transform: uppercase; cursor: pointer;
    outline: none; transition: all .25s;
}
.btn-next-day:hover {
    background: rgba(0,212,255,.14);
    border-color: var(--cyan);
    box-shadow: 0 0 22px rgba(0,212,255,.22);
    letter-spacing: 6px;
}

.map-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 12px;
    background: rgba(0,212,255,0.05);
    border: 1px solid rgba(0,212,255,0.18);
    font-size: 11px;
    letter-spacing: 1px;
    color: #00d4ff;
    flex-wrap: wrap;
    font-family: inherit;
}
.map-status-msg {
    flex: 1;
    color: #ffaa22;
    font-size: 11px;
    min-height: 14px;
}
.match-card { border-color: #00d4ff !important; box-shadow: 0 0 14px rgba(0,212,255,0.35); }
.verdict-miss { color: #ff3535; border: 1px solid rgba(255,53,53,0.3); padding: 8px 12px; margin: 12px 0; font-size: 12px; letter-spacing: 1px; }
.rs-val.rs-neg { color: #ff5555; }

/* ── Boss Banner ── */
.boss-banner {
    display: none; position: fixed;
    top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.85);
    background: rgba(8,0,0,.97);
    border: 2px solid rgba(255,30,30,.5);
    padding: 36px 52px;
    text-align: center;
    font-family: 'Courier New', monospace;
    z-index: 400; pointer-events: none;
    box-shadow: 0 0 80px rgba(255,0,50,.25), 0 0 160px rgba(255,0,50,.1);
    opacity: 0; transition: opacity .35s ease, transform .35s ease;
    min-width: 320px;
}
.boss-banner.active {
    display: block; opacity: 1; transform: translate(-50%,-50%) scale(1);
    animation: boss-in .35s ease forwards, boss-out .4s ease 2.8s forwards;
}
@keyframes boss-in  { from{opacity:0;transform:translate(-50%,-50%) scale(.8);} to{opacity:1;transform:translate(-50%,-50%) scale(1);} }
@keyframes boss-out { from{opacity:1;} to{opacity:0;transform:translate(-50%,-50%) scale(.9);} }

.bb-star {
    color: #ffd700; font-size: 28px;
    text-shadow: 0 0 20px #ffd700, 0 0 40px #ffd700;
    animation: star-spin 2s linear infinite;
    display: inline-block; margin-bottom: 10px;
}
@keyframes star-spin { to { text-shadow: 0 0 20px #ffd700, 0 0 40px #ff8800; } }

.bb-eyebrow {
    color: rgba(255,50,50,.55); font-size: 8px;
    letter-spacing: 5px; text-transform: uppercase; margin-bottom: 10px;
}
.bb-name {
    color: #ff3535; font-size: 30px; letter-spacing: 6px;
    text-transform: uppercase; margin-bottom: 6px;
    text-shadow: 0 0 24px rgba(255,53,53,.7);
    animation: go-flicker 2s ease-in-out infinite;
}
.bb-title {
    color: rgba(255,200,200,.4); font-size: 9px;
    letter-spacing: 3px; margin-bottom: 16px;
}
.bb-abilities {
    color: rgba(255,215,0,.6); font-size: 9px;
    letter-spacing: 2px; margin-bottom: 14px;
    border: 1px solid rgba(255,215,0,.2); padding: 6px 14px;
    display: inline-block;
}
.bb-warn {
    color: rgba(255,80,80,.5); font-size: 8px;
    letter-spacing: 3px; text-transform: uppercase;
    animation: bar-pulse 1s ease-in-out infinite;
}

@keyframes screen-flash { 0%{opacity:1;} 100%{opacity:0;} }

/* ── Map transition banner ── */
.map-banner {
    display: none; position: fixed;
    top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.85);
    background: rgba(0,8,20,.97);
    border: 2px solid rgba(0,200,255,.45);
    padding: 32px 52px; text-align: center;
    font-family: 'Courier New', monospace;
    z-index: 399; pointer-events: none;
    box-shadow: 0 0 80px rgba(0,200,255,.2), 0 0 160px rgba(0,200,255,.08);
    opacity: 0; transition: opacity .35s ease, transform .35s ease;
    min-width: 300px;
}
.map-banner.active {
    display: block; opacity: 1; transform: translate(-50%,-50%) scale(1);
    animation: boss-in .35s ease forwards, boss-out .4s ease 2.6s forwards;
}
.mb-type  { color: rgba(0,200,255,.5); font-size: 8px; letter-spacing: 5px; text-transform: uppercase; margin-bottom: 10px; }
.mb-name  { color: #00d4ff; font-size: 26px; letter-spacing: 5px; text-transform: uppercase; margin-bottom: 8px;
            text-shadow: 0 0 20px rgba(0,212,255,.65); animation: go-flicker 2s ease-in-out infinite; }
.mb-sub   { color: rgba(0,200,255,.4); font-size: 9px; letter-spacing: 2px; }

/* ── Strike dots ── */
.strike-row {
    display: flex; gap: 10px; margin-bottom: 6px; padding: 4px 0;
}
.strike-dot {
    width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.15);
    background: transparent;
    transition: all .3s;
}
.strike-dot.strike-hit {
    background: #ff3535;
    border-color: #ff3535;
    box-shadow: 0 0 10px rgba(255,53,53,.8), 0 0 20px rgba(255,53,53,.4);
    animation: strike-pop .4s ease;
}
@keyframes strike-pop {
    0%   { transform: scale(0.5); }
    60%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}

/* ── Game Over overlay ── */
.gameover-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.92);
    backdrop-filter: blur(14px);
    align-items: center; justify-content: center;
    z-index: 300;
}
.gameover-overlay.active { display: flex; animation: dash-in .4s ease; }

.gameover-modal {
    background: rgba(10,4,4,.98);
    border: 1px solid rgba(255,53,53,.4);
    padding: 48px 44px 36px;
    width: min(440px, 92vw);
    text-align: center;
    box-shadow: 0 0 80px rgba(255,53,53,.18), 0 0 160px rgba(255,53,53,.07);
    position: relative;
}
.gameover-modal::before, .gameover-modal::after {
    content:''; position:absolute; width:14px; height:14px;
    border-color:#ff3535; border-style:solid;
}
.gameover-modal::before { top:-1px; left:-1px; border-width:2px 0 0 2px; }
.gameover-modal::after  { bottom:-1px; right:-1px; border-width:0 2px 2px 0; }

.go-eyebrow {
    color: rgba(255,53,53,.45); font-size: 8px;
    letter-spacing: 4px; margin-bottom: 12px;
}
.go-title {
    color: #ff3535; font-size: 38px; letter-spacing: 8px;
    text-transform: uppercase; margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(255,53,53,.6), 0 0 60px rgba(255,53,53,.3);
    animation: go-flicker 3s ease-in-out infinite;
}
@keyframes go-flicker {
    0%,90%,100% { opacity:1; }
    92% { opacity:.6; }
    94% { opacity:1; }
    96% { opacity:.4; }
    98% { opacity:1; }
}
.go-sub {
    color: rgba(255,255,255,.3); font-size: 9px;
    letter-spacing: 2px; margin-bottom: 32px;
}
.go-stats {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; margin-bottom: 32px;
    border-top: 1px solid rgba(255,53,53,.15);
    border-bottom: 1px solid rgba(255,53,53,.15);
    padding: 20px 0;
}
.go-stat {
    display: flex; flex-direction: column; gap: 6px;
    padding: 10px; background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.05);
}
.go-lbl { color: rgba(255,255,255,.22); font-size: 8px; letter-spacing: 2px; text-transform: uppercase; }
.go-val  { font-size: 20px; color: rgba(255,255,255,.7); }
.go-val.go-gold { color: var(--gold); }
.go-val.go-cyan { color: var(--cyan); }
.go-val.go-pink { color: var(--pink); }

.go-buttons { display: flex; gap: 12px; justify-content: center; }
.go-btn {
    padding: 13px 28px;
    font-family: 'Courier New', monospace;
    font-size: 10px; letter-spacing: 4px;
    text-transform: uppercase; cursor: pointer;
    outline: none; border: 1px solid; transition: all .25s;
    background: transparent;
}
.go-btn-primary {
    border-color: rgba(255,53,53,.5); color: #ff3535;
}
.go-btn-primary:hover {
    border-color: #ff3535; background: rgba(255,53,53,.1);
    box-shadow: 0 0 22px rgba(255,53,53,.3); letter-spacing: 6px;
}
.go-btn-exit {
    border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.25);
}
.go-btn-exit:hover { border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.5); }

/* ── Buy toast ── */
.buy-toast {
    position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(24px);
    background: rgba(6,7,15,.96);
    border: 1px solid; border-radius: 0;
    padding: 12px 22px;
    display: flex; align-items: center; gap: 12px;
    font-family: 'Courier New', monospace;
    opacity: 0; transition: opacity .25s ease, transform .25s ease;
    z-index: 500; pointer-events: none;
    min-width: 240px; justify-content: center;
    white-space: nowrap;
}
.buy-toast.bt-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.buy-toast.bt-hide { opacity: 0; transform: translateX(-50%) translateY(-12px); }

.bt-check { font-size: 16px; }
.bt-label { color: #fff; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; }
.bt-price { font-size: 11px; font-weight: bold; }

/* ── Street Market Overlay ── */
.market-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(8px);
    align-items: center; justify-content: center;
    z-index: 200;
}
.market-overlay.active { display: flex; }

.market-modal {
    background: rgba(8,6,0,.97);
    border: 1px solid rgba(255,215,0,.35);
    padding: 28px 28px 22px;
    width: min(760px, 96vw);
    max-height: 88vh; overflow-y: auto;
    box-shadow: 0 0 60px rgba(255,215,0,.12), 0 0 120px rgba(255,215,0,.05);
    animation: modal-in .25s ease;
}
.market-title {
    color: var(--gold); font-size: 12px; letter-spacing: 6px;
    text-transform: uppercase; margin-bottom: 6px;
}
.market-sub {
    color: rgba(255,255,255,.28); font-size: 9px;
    letter-spacing: 2px; margin-bottom: 22px;
}
.market-sub span { color: var(--gold); }

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px; margin-bottom: 20px;
}
.mkt-card {
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.1);
    padding: 14px 12px; cursor: pointer;
    text-align: left; outline: none;
    font-family: 'Courier New', monospace;
    transition: all .2s; position: relative;
}
.mkt-card:hover:not(:disabled) { transform: translateY(-2px); }
.mkt-card:disabled { opacity: .38; cursor: not-allowed; }
.mkt-cyan { border-color: rgba(0,212,255,.2); }
.mkt-cyan:hover:not(:disabled) { border-color: var(--cyan); background: rgba(0,212,255,.07); box-shadow: 0 0 16px rgba(0,212,255,.15); }
.mkt-pink  { border-color: rgba(255,0,170,.2); }
.mkt-pink:hover:not(:disabled)  { border-color: var(--pink); background: rgba(255,0,170,.07); box-shadow: 0 0 16px rgba(255,0,170,.15); }
.mkt-gold  { border-color: rgba(255,215,0,.22); }
.mkt-gold:hover:not(:disabled)  { border-color: var(--gold); background: rgba(255,215,0,.07); box-shadow: 0 0 16px rgba(255,215,0,.15); }
.mkt-price {
    font-size: 20px; line-height: 1; margin-bottom: 8px; font-weight: bold;
}
.mkt-name {
    color: #fff; font-size: 9px; letter-spacing: 2px;
    text-transform: uppercase; margin-bottom: 5px;
}
.mkt-desc {
    color: rgba(255,255,255,.28); font-size: 8px;
    line-height: 1.5; margin-bottom: 8px;
}
.mkt-afford {
    font-size: 8px; letter-spacing: 2px;
    text-transform: uppercase; color: rgba(255,255,255,.35);
}
.mkt-card:not(:disabled) .mkt-afford { color: rgba(100,255,150,.7); }

.market-close {
    background: transparent; border: 1px solid rgba(255,215,0,.3);
    color: rgba(255,215,0,.5); font-family: 'Courier New', monospace;
    font-size: 9px; letter-spacing: 3px; cursor: pointer;
    padding: 10px 24px; outline: none; transition: all .2s;
    text-transform: uppercase;
}
.market-close:hover { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 14px rgba(255,215,0,.2); }

@media (max-width: 720px) {
    .game-body { flex-direction: column; }
    .game-sidebar { width: 100%; }
    .craft-grid { grid-template-columns: 1fr; }
    .result-stats { grid-template-columns: 1fr; }
}

/* ── Sell popup ── */
.sell-pop {
    position: fixed;
    top: 42%; left: 50%; transform: translate(-50%, -50%);
    text-align: center; pointer-events: none;
    animation: sell-pop-anim 1.1s ease forwards;
    z-index: 500; font-family: 'Courier New', monospace;
}
@keyframes sell-pop-anim {
    0%   { opacity:0; transform:translate(-50%,-35%) scale(.55); }
    18%  { opacity:1; transform:translate(-50%,-50%) scale(1.08); }
    65%  { opacity:1; transform:translate(-50%,-55%) scale(1); }
    100% { opacity:0; transform:translate(-50%,-68%) scale(.94); }
}
.sp-cash  { font-size: 56px; font-weight: bold; line-height: 1; letter-spacing: 2px; }
.sp-cred  { font-size: 17px; letter-spacing: 4px; opacity: .82; margin-top: 5px; }
.sp-match { font-size: 11px; letter-spacing: 6px; text-transform: uppercase; margin-top: 8px; opacity: .65; }

/* ── Sell screen flash ── */
.sell-flash {
    position: fixed; inset: 0; pointer-events: none;
    animation: screen-flash .45s ease forwards; z-index: 499;
}

/* ── Buy popup ── */
.buy-pop {
    position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    text-align: center; pointer-events: none;
    border: 1px solid; padding: 18px 32px;
    background: rgba(0,0,0,.88);
    animation: sell-pop-anim .8s ease forwards;
    z-index: 500; font-family: 'Courier New', monospace;
}
.buy-pop-price { display: block; font-size: 52px; font-weight: bold; line-height: 1; letter-spacing: 2px; }
.buy-pop-name  { display: block; font-size: 11px; letter-spacing: 4px; text-transform: uppercase; margin-top: 7px; opacity: .7; }

/* ── Buy coin burst ── */
.buy-coin {
    position: absolute; width: 7px; height: 7px;
    top: 50%; left: 50%; border-radius: 50%;
    animation: coin-burst .7s ease forwards; pointer-events: none;
}
@keyframes coin-burst {
    0%   { transform: translate(-50%,-50%) translate(0,0) scale(1); opacity: 1; }
    100% { transform: translate(-50%,-50%) translate(var(--ax),var(--ay)) scale(.25); opacity: 0; }
}

/* ── Tutorial overlay ── */
.tutorial-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.92);
    backdrop-filter: blur(14px);
    align-items: center; justify-content: center;
    z-index: 80;
}
.tutorial-overlay.active { display: flex; animation: dash-in .35s ease; }

.tut-modal {
    position: relative;
    background: rgba(6,7,15,.98);
    border: 1px solid rgba(0,212,255,.3);
    padding: 26px 26px 20px;
    width: min(420px, 96vw);
    box-shadow: 0 0 80px rgba(0,212,255,.12), 0 0 160px rgba(0,212,255,.05);
    animation: modal-in .28s ease;
}
.tut-corner {
    position: absolute; width: 12px; height: 12px;
    border-color: var(--cyan); border-style: solid;
}
.tut-tl { top:-1px; left:-1px;    border-width: 2px 0 0 2px; }
.tut-tr { top:-1px; right:-1px;   border-width: 2px 2px 0 0; }
.tut-bl { bottom:-1px; left:-1px; border-width: 0 0 2px 2px; }
.tut-br { bottom:-1px; right:-1px;border-width: 0 2px 2px 0; }

.tut-header-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.tut-brand {
    color: var(--cyan); font-size: 11px; letter-spacing: 5px; text-transform: uppercase;
}
.tut-brand span { color: rgba(255,255,255,.2); font-size: 9px; letter-spacing: 2px; }

.tut-skip-btn {
    background: transparent; border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.3); font-family: 'Courier New', monospace;
    font-size: 8px; letter-spacing: 3px; cursor: pointer; outline: none;
    padding: 5px 12px; transition: all .2s;
}
.tut-skip-btn:hover { border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.6); }

#tut-canvas {
    display: block; width: 100%;
    image-rendering: pixelated; image-rendering: crisp-edges;
    border: 1px solid rgba(0,212,255,.15);
    background: #06070f; margin-bottom: 14px;
}

.tut-step-num {
    color: rgba(0,212,255,.4); font-size: 8px;
    letter-spacing: 4px; text-transform: uppercase; margin-bottom: 5px;
}
.tut-title {
    color: var(--cyan); font-size: 13px; letter-spacing: 4px;
    text-transform: uppercase; margin-bottom: 8px;
}
.tut-desc {
    color: rgba(255,255,255,.42); font-size: 10px;
    line-height: 1.8; letter-spacing: .5px; margin-bottom: 16px;
    min-height: 46px;
}
.tut-nav {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.tut-nav-btn {
    background: transparent; border: 1px solid rgba(0,212,255,.25);
    color: rgba(0,212,255,.5); font-family: 'Courier New', monospace;
    font-size: 9px; letter-spacing: 3px; cursor: pointer; outline: none;
    padding: 9px 16px; transition: all .22s; text-transform: uppercase; white-space: nowrap;
}
.tut-nav-btn:hover:not(:disabled) { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 14px rgba(0,212,255,.2); }
.tut-nav-btn:disabled { opacity: .18; cursor: default; pointer-events: none; }
.tut-nav-next { background: rgba(0,212,255,.05); }
.tut-nav-start {
    background: rgba(0,255,136,.06); border-color: rgba(0,255,136,.4); color: #00ff88;
}
.tut-nav-start:hover { border-color: #00ff88; color: #fff; background: rgba(0,255,136,.12); box-shadow: 0 0 18px rgba(0,255,136,.3); }

.tut-dots-wrap { display: flex; gap: 8px; align-items: center; flex: 1; justify-content: center; }
.tut-dot {
    width: 7px; height: 7px; border-radius: 50%;
    border: 1px solid rgba(0,212,255,.3); background: transparent;
    cursor: pointer; transition: all .2s;
}
.tut-dot.active {
    background: var(--cyan); border-color: var(--cyan);
    box-shadow: 0 0 8px rgba(0,212,255,.6);
}

/* ── Projects Overlay ── */
.projects-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(4,5,12,.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    z-index: 70;
}
.projects-overlay.active { display: flex; animation: dash-in .35s ease; }

.projects-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 24px 32px 20px;
    border-bottom: 1px solid rgba(0,212,255,.1);
    flex-shrink: 0;
}
.projects-brand {
    color: var(--cyan); font-size: 13px; letter-spacing: 5px; text-transform: uppercase;
    font-family: 'Courier New', monospace;
}
.projects-brand span { color: rgba(255,255,255,.2); font-size: 11px; letter-spacing: 2px; }
.projects-sub {
    color: rgba(255,255,255,.22); font-size: 9px; letter-spacing: 3px;
    font-family: 'Courier New', monospace; margin-top: 5px; text-transform: uppercase;
}
.btn-projects-close {
    background: transparent; border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.35); font-family: 'Courier New', monospace;
    font-size: 9px; letter-spacing: 3px; cursor: pointer; outline: none;
    padding: 9px 20px; transition: all .2s; text-transform: uppercase;
}
.btn-projects-close:hover { border-color: rgba(255,255,255,.4); color: rgba(255,255,255,.7); }

.projects-body {
    flex: 1; overflow-y: auto; padding: 36px 32px;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.proj-card {
    position: relative;
    background: rgba(8,10,22,.85);
    border: 1px solid rgba(0,212,255,.14);
    padding: 22px 22px 20px;
    display: flex; flex-direction: column; gap: 0;
    transition: border-color .25s, background .25s, transform .25s, box-shadow .25s;
}
.proj-live { cursor: pointer; }
.proj-live:hover {
    border-color: rgba(0,212,255,.48);
    background: rgba(0,212,255,.03);
    box-shadow: 0 0 36px rgba(0,212,255,.1);
    transform: translateY(-3px);
}
.proj-soon { opacity: .45; cursor: not-allowed; }

.proj-card-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.proj-card-tags { display: flex; gap: 6px; }
.proj-tag {
    font-size: 7px; letter-spacing: 3px; color: rgba(0,212,255,.5);
    border: 1px solid rgba(0,212,255,.2); padding: 3px 8px;
    font-family: 'Courier New', monospace; text-transform: uppercase;
}
.proj-status {
    font-size: 7px; letter-spacing: 3px; padding: 3px 9px;
    border: 1px solid; font-family: 'Courier New', monospace; text-transform: uppercase;
}
.proj-status-live  { color: #00ff88; border-color: rgba(0,255,136,.35); }
.proj-status-soon  { color: rgba(255,255,255,.25); border-color: rgba(255,255,255,.1); }

.proj-card-title {
    color: var(--cyan); font-size: 16px; letter-spacing: 4px;
    text-transform: uppercase; margin-bottom: 4px;
    font-family: 'Courier New', monospace;
}
.proj-card-sub {
    color: rgba(255,255,255,.28); font-size: 8px; letter-spacing: 3px;
    text-transform: uppercase; margin-bottom: 12px;
    font-family: 'Courier New', monospace;
}
.proj-card-desc {
    color: rgba(255,255,255,.42); font-size: 10px;
    line-height: 1.85; letter-spacing: .3px;
    margin-bottom: 20px; flex: 1;
}
.proj-card-action { margin-top: auto; }
.proj-play {
    color: #00ff88; font-size: 9px; letter-spacing: 4px;
    border: 1px solid rgba(0,255,136,.3); padding: 7px 18px;
    font-family: 'Courier New', monospace; text-transform: uppercase;
    transition: all .2s; display: inline-block;
}
.proj-live:hover .proj-play {
    background: rgba(0,255,136,.08);
    border-color: rgba(0,255,136,.6);
    box-shadow: 0 0 14px rgba(0,255,136,.2);
}
.proj-wip {
    color: rgba(255,255,255,.18); font-size: 9px; letter-spacing: 3px;
    font-family: 'Courier New', monospace;
}
