/* ============================================================
   Cheveyo Interactive — studio site
   Brand: neon-wireframe (bulldog-C mark) — deep navy, cyan
   circuitry, gold ember accents. Committed dark.
   ============================================================ */
:root {
  --bg: #060d18;
  --bg2: #081120;
  --surface: #0c1626;
  --surface2: #101d31;
  --ink: #e9f2fa;
  --dim: #93a7bf;
  --line: rgba(120, 200, 240, .12);
  --cyan: #41dbf0;
  --cyan2: #7ceafc;
  --purple: #8e6cf2;
  --amber: #e8963c;
  --gold: #ffc45e;
  --good: #5fd47f;
  --bad: #e0524f;
  --warn: #f0b429;
  --sans: 'Segoe UI', Roboto, 'Helvetica Neue', system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  --maxw: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(120% 60% at 80% -10%, rgba(65, 219, 240, .06), transparent 60%),
    radial-gradient(80% 50% at 10% 110%, rgba(142, 108, 242, .05), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

/* ---------------- nav ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px clamp(14px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(6, 13, 24, .94), rgba(6, 13, 24, .78) 70%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  filter: drop-shadow(0 0 10px rgba(65, 219, 240, .45));
}
.brand-name { font-size: 14px; font-weight: 400; letter-spacing: .22em; color: var(--dim); }
.brand-name b { font-weight: 800; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: clamp(10px, 2.2vw, 24px); }
.nav-links a {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em;
  color: var(--dim); text-decoration: none; padding: 8px 2px;
  border-bottom: 1px solid transparent; transition: color .15s ease, border-color .15s ease;
}
.nav-links a:hover { color: var(--cyan2); border-bottom-color: var(--cyan); }
@media (max-width: 700px) { .brand-name { display: none; } }
@media (max-width: 560px) { .nav-links a.nav-sec { display: none; } }

/* auth chip in nav */
.nav-auth { display: flex; align-items: center; gap: 10px; }
.auth-chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 6px 16px; border-radius: 999px; cursor: pointer;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em;
  color: var(--cyan2); background: rgba(65, 219, 240, .08);
  border: 1px solid rgba(65, 219, 240, .35);
  transition: background .15s ease, border-color .15s ease;
}
.auth-chip:hover { background: rgba(65, 219, 240, .16); border-color: var(--cyan); }
.auth-chip .dot-on { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }
.badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  padding: 2.5px 8px; border-radius: 999px; white-space: nowrap;
}
.badge-beta { color: #072a31; background: linear-gradient(180deg, var(--cyan2), var(--cyan)); }
.badge-owner { color: #2a1d06; background: linear-gradient(180deg, var(--gold), var(--amber)); }
.badge-none { color: var(--dim); border: 1px solid var(--line); }

/* ---------------- hero ---------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(90% 70% at 28% 42%, rgba(6, 13, 24, .84), rgba(6, 13, 24, .48) 55%, rgba(6, 13, 24, .2)),
    linear-gradient(180deg, rgba(6, 13, 24, .6), transparent 30%, transparent 62%, var(--bg) 96%);
}
.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 120px clamp(18px, 4vw, 40px) 90px;
}
.hero-mark {
  width: clamp(96px, 14vw, 150px); height: auto; margin-bottom: 20px;
  filter: drop-shadow(0 0 26px rgba(65, 219, 240, .35));
}
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: .08em;
  color: var(--cyan); margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(44px, 8.5vw, 96px); font-weight: 850; line-height: .98;
  letter-spacing: -.025em; max-width: 11ch; text-wrap: balance; margin-bottom: 18px;
  background: linear-gradient(115deg, #ffffff 30%, var(--cyan2) 75%, var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--ink);
}
.hero-tagline {
  font-family: var(--mono); font-size: clamp(11.5px, 1.6vw, 13.5px); letter-spacing: .18em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 24px;
}
.hero-tagline b { color: var(--gold); font-weight: 600; }
.hero-tagline .sep { color: var(--cyan); padding: 0 6px; }
.hero .lede { font-size: clamp(16px, 2vw, 19.5px); color: var(--dim); max-width: 58ch; margin-bottom: 40px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-hint {
  position: absolute; z-index: 2; bottom: 26px; left: clamp(18px, 4vw, 40px);
  display: flex; align-items: center; gap: 12px; opacity: .55;
}
.hint-line { width: 44px; height: 1px; background: var(--cyan); }
.hint-mono { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; color: var(--dim); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 26px; border-radius: 10px;
  font-family: var(--sans); font-size: 15px; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, filter .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-solid {
  background: linear-gradient(180deg, var(--cyan2), #23bcd8);
  color: #04222b; box-shadow: 0 6px 26px rgba(65, 219, 240, .3);
}
.btn-solid:hover { filter: brightness(1.07); }
.btn-gold { background: linear-gradient(180deg, var(--gold), var(--amber)); color: #241503; box-shadow: 0 6px 26px rgba(232, 150, 60, .3); }
.btn-gold:hover { filter: brightness(1.06); }
.btn-ghost { border-color: rgba(124, 234, 252, .3); color: var(--ink); background: rgba(65, 219, 240, .04); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan2); }
.btn-mini { min-height: 38px; padding: 7px 16px; font-size: 13px; border-radius: 8px; border-color: var(--line); color: var(--ink); background: rgba(120, 200, 240, .06); }
.btn-danger { border-color: rgba(224, 82, 79, .5); color: #f2a3a1; background: rgba(224, 82, 79, .08); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-locked {
  background: rgba(120, 200, 240, .07); color: var(--dim);
  border: 1px dashed rgba(124, 234, 252, .4); cursor: pointer;
}
.btn-locked:hover { color: var(--cyan2); border-color: var(--cyan); }

/* ---------------- sections ---------------- */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(70px, 11vw, 130px) clamp(18px, 4vw, 40px) 0;
}
.section h2 {
  font-size: clamp(32px, 5vw, 54px); font-weight: 850; letter-spacing: -.02em;
  line-height: 1.04; margin-bottom: 20px; text-wrap: balance;
}
.body-max { color: var(--dim); font-size: clamp(15.5px, 1.8vw, 17.5px); max-width: 68ch; }

/* studio values */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
@media (max-width: 800px) { .value-grid { grid-template-columns: 1fr; } }
.value {
  position: relative;
  background: linear-gradient(160deg, var(--surface2), var(--surface) 60%);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 24px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.value:hover { border-color: rgba(65, 219, 240, .4); transform: translateY(-3px); box-shadow: 0 14px 44px rgba(4, 22, 40, .55); }
.value-glyph {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  font-size: 19px; color: var(--cyan2); background: rgba(65, 219, 240, .09);
  border: 1px solid rgba(65, 219, 240, .28); margin-bottom: 16px;
}
.value h3 { font-size: 17.5px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 8px; }
.value p { font-size: 14.5px; color: var(--dim); }

/* craft: code + stats */
.craft-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-top: 48px; align-items: stretch; }
@media (max-width: 860px) { .craft-grid { grid-template-columns: 1fr; } }
.code-card {
  background: #081120; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}
.code-head {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(120, 200, 240, .04);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.d1 { background: #e0524f; } .d2 { background: #f0b429; } .d3 { background: #5fd47f; }
.code-file { font-family: var(--mono); font-size: 11.5px; color: var(--dim); margin-left: 8px; letter-spacing: .03em; }
.code-card pre { padding: 20px 22px; overflow-x: auto; }
.code-card code { font-family: var(--mono); font-size: 12.8px; line-height: 1.75; color: #c7d6e6; white-space: pre; }
.code-card .cm { color: #5b708c; font-style: italic; }
.code-card .kw { color: var(--amber); }
.code-card .fn { color: var(--cyan); }
.code-card .nu { color: #7fd4a8; }
.stat-col { display: grid; grid-template-rows: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .stat-col { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; } }
.stat {
  background: linear-gradient(160deg, var(--surface2), var(--surface) 60%);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 22px; display: flex; flex-direction: column; justify-content: center;
}
.stat-n {
  font-family: var(--mono); font-size: clamp(28px, 3.4vw, 38px); font-weight: 700;
  color: var(--cyan); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1;
  text-shadow: 0 0 22px rgba(65, 219, 240, .35);
}
.stat-l { font-size: 13px; color: var(--dim); margin-top: 4px; }

/* ---------------- featured game slider ---------------- */
.feat-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.feat-top .eyebrow { margin-bottom: 0; }
.feat-arrows { display: flex; align-items: center; gap: 10px; }
.feat-arrow {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-size: 24px; line-height: 1; padding-bottom: 3px; cursor: pointer;
  color: var(--cyan2); background: rgba(65, 219, 240, .07);
  border: 1px solid rgba(65, 219, 240, .35);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.feat-arrow:hover { background: rgba(65, 219, 240, .16); border-color: var(--cyan); box-shadow: 0 0 18px rgba(65, 219, 240, .25); }
.feat-arrow:active { transform: translateY(1px); }
.feat-count { font-size: 11.5px; letter-spacing: .18em; color: var(--dim); font-variant-numeric: tabular-nums; }
.feat-count b { color: var(--cyan); font-weight: 600; }

.feat-viewport { position: relative; margin-top: 24px; }
.feat-viewport.animating { overflow: hidden; transition: height .5s cubic-bezier(.22, .9, .3, 1); }
.feat-panel { will-change: transform, opacity; }
.feat-panel.hidden-panel { display: none; }
.feat-panel.pos-abs { position: absolute; top: 0; left: 0; right: 0; }
.feat-panel.anim { transition: transform .5s cubic-bezier(.22, .9, .3, 1), opacity .5s ease; }
.feat-panel.off-l { transform: translateX(-64px); opacity: 0; }
.feat-panel.off-r { transform: translateX(64px); opacity: 0; }

.ph-art-hero { aspect-ratio: 21 / 9; border: 1px solid var(--line); border-radius: 16px; margin-top: 6px; }

/* 2DSurvive trailer embed — padding-ratio guarantees a true 16:9 box
   in every browser (aspect-ratio can collapse with only abs-positioned children) */
.video-embed {
  position: relative; width: 100%; height: 0; padding-top: 56.25%; margin: 0 0 16px;
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  background: #081120; box-shadow: 0 20px 60px rgba(4, 22, 40, .5);
}
.video-embed iframe, .video-embed #yt-survive {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-unmute {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 3; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px;
  padding: 11px 24px; border-radius: 999px;
  font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .04em;
  color: #04222b; background: linear-gradient(180deg, var(--cyan2), #23bcd8);
  border: 0; box-shadow: 0 8px 26px rgba(0, 0, 0, .5), 0 0 0 3px rgba(65, 219, 240, .25);
  animation: unmute-pulse 1.8s ease-in-out infinite;
}
.video-unmute:hover { filter: brightness(1.06); }
@keyframes unmute-pulse { 0%, 100% { box-shadow: 0 8px 26px rgba(0,0,0,.5), 0 0 0 3px rgba(65,219,240,.25); } 50% { box-shadow: 0 8px 26px rgba(0,0,0,.5), 0 0 0 7px rgba(65,219,240,.12); } }

/* compact thumbnail row (used under the trailer so the video dominates) */
.shots.shots-mini { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shots-mini .shot-wide { grid-column: auto; }
.shots-mini .shot img, .shots-mini .shot-wide img { aspect-ratio: 16 / 9; }
.shots-mini figcaption { font-size: 10.5px; padding: 16px 10px 7px; }
@media (max-width: 620px) { .shots.shots-mini { grid-template-columns: 1fr 1fr; } }

/* code-sweep transition overlay */
.code-sweep { position: absolute; inset: 0; z-index: 5; overflow: hidden; pointer-events: none; transition: opacity .3s ease; }
.code-sweep.fade { opacity: 0; }
.code-line {
  position: absolute; left: 0; right: 0; white-space: nowrap;
  font-family: var(--mono); color: var(--cyan);
  text-shadow: 0 0 12px rgba(65, 219, 240, .55);
  opacity: 0; animation: code-in .62s cubic-bezier(.2, .8, .25, 1) forwards;
}
.code-sweep.from-left .code-line { animation-name: code-in-l; }
@keyframes code-in {
  0% { transform: translateX(110%); opacity: 0; }
  35% { opacity: .95; }
  100% { transform: translateX(4%); opacity: .5; }
}
@keyframes code-in-l {
  0% { transform: translateX(-110%); opacity: 0; }
  35% { opacity: .95; }
  100% { transform: translateX(-4%); opacity: .5; }
}
.game-head .chip-status { transform: translateY(-3px); }

/* game status line: ● Name — short description */
.game-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -6px 0 18px; font-size: 13.5px; }
.game-status .status-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; background: var(--dim); }
.game-status .status-name { font-weight: 800; letter-spacing: .01em; }
.game-status .status-desc { color: var(--dim); font-size: 13px; }
/* changelog trigger, sat on the end of the status line */
.cl-btn {
  margin-left: 4px; padding: 4px 12px; border-radius: 999px; cursor: pointer;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--cyan); background: rgba(65, 219, 240, .07);
  border: 1px solid rgba(65, 219, 240, .32);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.cl-btn:hover, .cl-btn:focus-visible { background: rgba(65, 219, 240, .16); border-color: var(--cyan); color: var(--ink); }
@media (max-width: 520px) { .cl-btn { margin-left: 0; } }

/* changelog popup */
.clm-body { max-height: min(60vh, 520px); overflow-y: auto; margin-top: 4px; padding-right: 4px; }
.clm-body .cl-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.clm-body .cl-item:last-child { border-bottom: 0; }
.clm-body .cl-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.clm-body .cl-top h4 { font-size: 16px; font-weight: 800; }
.clm-body .cl-ver {
  font-family: var(--mono); font-size: 11.5px; color: var(--gold); flex: none;
  padding: 2px 9px; border-radius: 999px; border: 1px solid rgba(255, 196, 94, .35); background: rgba(255, 196, 94, .07);
}

/* game */
.game-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.game-head h2 { margin-bottom: 0; }
.game-sub { font-size: 13.5px; color: var(--gold); letter-spacing: .12em; }
.feat-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 40px; padding: 0; }
.feat-list li {
  font-family: var(--mono); font-size: 12.5px; color: var(--ink);
  padding: 9px 16px; border-radius: 999px;
  background: rgba(65, 219, 240, .07); border: 1px solid rgba(65, 219, 240, .3);
}
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .shots { grid-template-columns: 1fr; } }
.shot { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.shot-wide { grid-column: 1 / -1; }
.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.shot-wide img { aspect-ratio: 21 / 9; }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 18px 12px; font-family: var(--mono); font-size: 12px; color: rgba(233, 242, 250, .88);
  background: linear-gradient(180deg, transparent, rgba(4, 8, 15, .8));
}
.game-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.game-note { font-size: 12px; color: var(--dim); }
.beta-note {
  display: flex; align-items: center; gap: 8px; margin-top: 14px;
  font-family: var(--mono); font-size: 12px; color: var(--cyan2);
}
.beta-note .lock { opacity: .9; }

/* ---------------- game roster (more titles) ---------------- */
.roster { margin-top: clamp(56px, 8vw, 90px); scroll-margin-top: 84px; }
.roster-head {
  font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); display: flex; align-items: center; gap: 14px; margin-bottom: 22px;
}
.roster-head::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(65, 219, 240, .4), transparent); }
.roster-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .roster-grid { grid-template-columns: 1fr; } }
.roster-card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--surface2), var(--surface) 60%);
  border: 1px solid var(--line); border-radius: 16px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.roster-card:hover { border-color: rgba(65, 219, 240, .4); transform: translateY(-3px); box-shadow: 0 14px 44px rgba(4, 22, 40, .55); }
.roster-card[data-game] { cursor: pointer; }
.roster-card.active-game { border-color: rgba(65, 219, 240, .65); box-shadow: 0 0 0 1px rgba(65, 219, 240, .35), 0 14px 44px rgba(4, 22, 40, .55); }
.roster-card.active-game::after {
  content: 'NOW VIEWING'; position: absolute; top: 12px; right: 12px; z-index: 2;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em;
  color: #04222b; background: linear-gradient(180deg, var(--cyan2), #23bcd8);
  padding: 3px 9px; border-radius: 999px;
}
.ph-art {
  position: relative; aspect-ratio: 21 / 9; display: grid; place-items: center; overflow: hidden;
  background:
    linear-gradient(rgba(65, 219, 240, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 219, 240, .05) 1px, transparent 1px),
    radial-gradient(90% 120% at 30% 10%, rgba(142, 108, 242, .16), transparent 55%),
    radial-gradient(80% 120% at 80% 90%, rgba(65, 219, 240, .14), transparent 55%),
    #081120;
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
  border-bottom: 1px solid var(--line);
}
.ph-art::after {
  content: ''; position: absolute; inset: -60% -20%;
  background: linear-gradient(115deg, transparent 42%, rgba(124, 234, 252, .09) 50%, transparent 58%);
  animation: ph-sweep 4.5s ease-in-out infinite;
}
@keyframes ph-sweep { 0%, 100% { transform: translateX(-32%); } 50% { transform: translateX(32%); } }
.ph-glyph {
  font-family: var(--mono); font-weight: 700; font-size: clamp(30px, 4.5vw, 44px); letter-spacing: .04em;
  background: linear-gradient(115deg, #ffffff 25%, var(--cyan2) 70%, var(--purple));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(65, 219, 240, .35));
}
.roster-mystery .ph-glyph { filter: drop-shadow(0 0 18px rgba(142, 108, 242, .4)); opacity: .8; }
/* real-screenshot banner variant (keeps the glyph + sweep on top) */
.ph-art-shot {
  background:
    linear-gradient(180deg, rgba(6, 13, 24, .45), rgba(6, 13, 24, .62)),
    url('assets/shot-factory.jpg') center / cover no-repeat;
  background-size: auto, cover;
}
.ph-art-shot-sv {
  background:
    linear-gradient(180deg, rgba(6, 13, 24, .5), rgba(6, 13, 24, .66)),
    url('assets/shot-survive-play.jpg') center / cover no-repeat;
  background-size: auto, cover;
}
.roster-body { padding: 20px 22px 24px; }
.roster-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.roster-title-row h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.roster-sub { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; color: var(--gold); }
.roster-body p { font-size: 14px; color: var(--dim); }
.chip-status {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
  color: var(--cyan2); background: rgba(65, 219, 240, .09); border: 1px solid rgba(65, 219, 240, .35);
}
.roster-mystery .chip-status { color: #c3b1fa; background: rgba(142, 108, 242, .1); border-color: rgba(142, 108, 242, .4); }

/* ---------------- support / ko-fi ---------------- */
.support-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 22px; border: 1px solid rgba(255, 196, 94, .28);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(232, 150, 60, .12), transparent 55%),
    linear-gradient(160deg, var(--surface2), var(--surface) 60%);
  box-shadow: 0 24px 70px rgba(4, 22, 40, .5);
}
.support-text h2 { margin-bottom: 14px; }
.support-text .eyebrow { color: var(--gold); margin-bottom: 18px; }
.btn-kofi {
  margin-top: 26px; gap: 10px; padding: 13px 28px;
  background: linear-gradient(180deg, var(--gold), var(--amber));
  color: #241503; box-shadow: 0 8px 28px rgba(232, 150, 60, .32);
}
.btn-kofi:hover { filter: brightness(1.06); }
.btn-kofi .kofi-cup { color: #241503; }
.support-note { margin-top: 16px; font-size: 12px; color: var(--dim); }
.support-glow { font-size: clamp(70px, 12vw, 130px); line-height: 1; filter: drop-shadow(0 0 30px rgba(255, 196, 94, .3)); opacity: .9; }
@media (max-width: 720px) { .support-card { grid-template-columns: 1fr; } .support-glow { display: none; } }

.footer-right { display: inline-flex; align-items: center; gap: 16px; }
.footer-kofi {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; text-decoration: none;
  color: var(--gold); border-bottom: 1px dashed rgba(255, 196, 94, .4); padding-bottom: 2px;
}
.footer-kofi:hover { border-bottom-style: solid; }
.footer-press {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; text-decoration: none;
  color: var(--dim); border-bottom: 1px dashed rgba(147, 167, 191, .4); padding-bottom: 2px;
}
.footer-press:hover { color: var(--cyan); border-bottom-color: var(--cyan); border-bottom-style: solid; }

.kofi-float {
  position: fixed; z-index: 80; right: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 12px 18px; border-radius: 999px; min-height: 48px;
  color: #241503; font-weight: 800; font-size: 14px;
  background: linear-gradient(180deg, var(--gold), var(--amber));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4), 0 0 0 4px rgba(255, 196, 94, .14);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.kofi-float:hover { filter: brightness(1.06); transform: translateY(-2px); }
.kofi-float-label { white-space: nowrap; }
@media (max-width: 560px) { .kofi-float { padding: 12px; } .kofi-float-label { display: none; } }
@media (prefers-reduced-motion: reduce) { .kofi-float { transition: none; } }

/* contact */
#contact { padding-bottom: 20px; }
.email-link {
  display: inline-block; margin-top: 26px; font-size: clamp(18px, 3vw, 26px); color: var(--cyan2);
  text-decoration: none; border-bottom: 1.5px dashed rgba(65, 219, 240, .45); padding-bottom: 4px;
}
.email-link:hover { border-bottom-style: solid; }

/* footer */
.footer {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) clamp(18px, 4vw, 40px) 34px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--dim); font-size: 13.5px; border-top: 1px solid transparent;
}
.footer .mono { font-size: 12px; }

/* ============================================================
   Accounts — modals, forms, admin
   ============================================================ */
.hidden { display: none !important; }

.modal {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: rgba(3, 7, 14, .82); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  padding: 16px; overflow-y: auto;
}
.modal-inner {
  width: min(460px, 96vw); max-height: 92svh; overflow-y: auto; overscroll-behavior: contain;
  background: linear-gradient(170deg, var(--surface2), var(--surface) 55%);
  border: 1px solid rgba(65, 219, 240, .25); border-radius: 18px; padding: 26px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6), 0 0 40px rgba(65, 219, 240, .07);
}
.modal-wide .modal-inner { width: min(760px, 96vw); }
.modal h3 { font-size: 20px; margin-bottom: 4px; }
.modal .sub { font-size: 13px; color: var(--dim); margin-bottom: 18px; }
.modal-close {
  float: right; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--dim); font-size: 16px; cursor: pointer;
}
.modal-close:hover { color: var(--ink); border-color: var(--cyan); }

.auth-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.auth-tab {
  flex: 1; min-height: 44px; border-radius: 10px; cursor: pointer;
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em;
  color: var(--dim); background: rgba(120, 200, 240, .05); border: 1px solid var(--line);
}
.auth-tab.on { color: #04222b; background: linear-gradient(180deg, var(--cyan2), #23bcd8); border-color: transparent; font-weight: 700; }

.field { margin-bottom: 14px; }
.field label { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--dim); margin-bottom: 6px; }
.hint-inline { text-transform: none; letter-spacing: 0; opacity: .75; }
.field input {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 10px;
  font-family: var(--mono); font-size: 14px;
  background: #081120; color: var(--ink); border: 1px solid var(--line);
}
.field input:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(65, 219, 240, .12); }
.field textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px; resize: vertical; min-height: 120px;
  font-family: var(--mono); font-size: 14px; line-height: 1.6;
  background: #081120; color: var(--ink); border: 1px solid var(--line);
}
.field textarea:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(65, 219, 240, .12); }
.cm-addr {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 10px; margin-bottom: 16px;
  background: rgba(65, 219, 240, .06); border: 1px dashed rgba(65, 219, 240, .35);
}
.cm-addr .mono { font-size: 13.5px; color: var(--cyan2); word-break: break-all; }
.field .hint { font-size: 11.5px; color: var(--dim); margin-top: 5px; }
.field.err input { border-color: var(--bad); }
.field .field-err { font-size: 12px; color: var(--bad); margin-top: 5px; }

/* show/hide password */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px; }
.pw-eye {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  width: 44px; height: 44px; display: grid; place-items: center;
  background: transparent; border: none; border-radius: 8px; cursor: pointer;
  color: var(--dim); transition: color .15s ease;
}
.pw-eye:hover { color: var(--cyan2); }

/* password strength meter */
.pw-meter { margin: -6px 0 14px; }
.pw-bar { height: 6px; border-radius: 999px; background: rgba(120, 200, 240, .1); overflow: hidden; }
.pw-fill { height: 100%; width: 0; border-radius: 999px; transition: width .25s ease, background .25s ease; }
.pw-label { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--dim); margin-top: 5px; }

.form-err { color: var(--bad); font-size: 13px; margin: 10px 0; }
.form-ok { color: var(--good); font-size: 13px; margin: 10px 0; }
.modal .btn-block { width: 100%; margin-top: 6px; }
.modal .row { display: flex; gap: 10px; }

/* account panel */
.acct-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.acct-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #04222b;
  background: linear-gradient(160deg, var(--cyan2), var(--purple));
}
.acct-head .who { line-height: 1.3; }
.acct-head .who .u { font-weight: 800; font-size: 17px; }
.acct-head .who .e { font-size: 12.5px; color: var(--dim); font-family: var(--mono); }
.acct-sect { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.acct-sect h4 { font-size: 13px; font-family: var(--mono); letter-spacing: .08em; color: var(--cyan); text-transform: uppercase; margin-bottom: 12px; }

/* admin */
.admin-users { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-users th {
  text-align: left; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--dim); padding: 8px 10px; border-bottom: 1px solid var(--line);
}
.admin-users td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-users tr:hover td { background: rgba(65, 219, 240, .04); }
.admin-users .u { font-weight: 700; }
.admin-users .e { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.admin-scroll { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
.switch {
  position: relative; width: 40px; height: 22px; border-radius: 999px; cursor: pointer;
  background: rgba(120, 200, 240, .15); border: 1px solid var(--line); transition: background .15s ease;
  display: inline-block; vertical-align: middle;
}
.switch::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--dim); transition: transform .15s ease, background .15s ease;
}
.switch.on { background: rgba(65, 219, 240, .45); }
.switch.on::after { transform: translateX(18px); background: #eafcff; }

/* ============================================================
   Owner console (admin.html)
   ============================================================ */
.console-tag { font-size: 11px; letter-spacing: .18em; color: var(--gold); }
.console-lock { min-height: 100svh; display: grid; place-items: center; padding: 90px 18px 40px; }
.lock-card {
  width: min(430px, 94vw); text-align: center;
  background: linear-gradient(170deg, var(--surface2), var(--surface) 55%);
  border: 1px solid rgba(65, 219, 240, .25); border-radius: 18px; padding: 38px 30px;
}
.lock-glyph { font-size: 34px; margin-bottom: 12px; }
.lock-card h1 { font-size: 24px; margin-bottom: 10px; }
.lock-card p { color: var(--dim); font-size: 14.5px; margin-bottom: 22px; }

.console { max-width: 1200px; margin: 0 auto; padding: 96px clamp(14px, 3vw, 32px) 60px; }
.console-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.console-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 850; letter-spacing: -.02em; }
.console-head .sub { color: var(--dim); font-size: 12px; }

.notify-strip {
  background: rgba(255, 196, 94, .05); border: 1px solid rgba(255, 196, 94, .3);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 20px;
}

/* console: game status controls */
.status-card {
  background: linear-gradient(160deg, var(--surface2), var(--surface) 60%);
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 20px;
}
.status-card h2 { font-size: 14px; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 4px; }
.status-card .sub { font-size: 12px; color: var(--dim); margin-bottom: 14px; }
.status-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.status-row:first-of-type { border-top: 0; }
.status-row .sg-name { font-weight: 800; min-width: 96px; }
.status-row select {
  min-height: 44px; padding: 8px 14px; border-radius: 10px; cursor: pointer;
  font-family: var(--sans); font-size: 14px; color: var(--ink);
  background: #081120; border: 1px solid var(--line);
}
.status-row select:focus { border-color: var(--cyan); outline: none; }
.status-row .sg-preview { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--dim); }
.status-row .sg-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.status-card .sc-actions { margin-top: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.status-card .sc-token { flex: 1; min-width: 200px; min-height: 44px; padding: 9px 12px; border-radius: 10px; font-family: var(--mono); font-size: 12px; background: #081120; color: var(--ink); border: 1px solid var(--line); }

/* ---------------- project tags / access ladder (owner console) ---------------- */
.status-card .tg-sub {
  font-size: 13px; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); margin: 20px 0 4px; padding-top: 16px; border-top: 1px solid var(--line);
}
.tg-list { display: flex; flex-direction: column; gap: 8px; }
.tg-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tg-row .tg-label {
  flex: 1 1 200px; max-width: 300px; min-height: 44px; padding: 8px 12px; border-radius: 10px;
  font-family: var(--sans); font-size: 14px; color: var(--ink);
  background: #081120; border: 1px solid var(--line);
}
.tg-row .tg-label:focus { border-color: var(--cyan); outline: none; }
.tg-row .tg-key { font-size: 11px; letter-spacing: .08em; color: var(--dim); min-width: 92px; }
.tg-row .tg-holders { font-size: 11px; color: var(--dim); }
.tg-row .tg-x { flex: none; margin-left: auto; }
.tg-add { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.tg-add input {
  flex: 1 1 200px; max-width: 300px; min-height: 44px; padding: 8px 12px; border-radius: 10px;
  font-family: var(--sans); font-size: 14px; color: var(--ink);
  background: #081120; border: 1px solid var(--line);
}
.tg-add input:focus { border-color: var(--cyan); outline: none; }
.note-warn {
  margin-top: 14px; padding: 11px 14px; border-radius: 10px; font-size: 12.5px; line-height: 1.6;
  color: var(--ink); background: rgba(232, 150, 60, .09); border: 1px solid rgba(232, 150, 60, .38);
}
.note-warn b { color: #f0b429; }
.notify-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.notify-head h2 { font-size: 14px; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.notify-head .sub { flex: 1; font-size: 12px; color: var(--dim); min-width: 200px; }
.notify-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 0; border-top: 1px solid rgba(255, 196, 94, .12); font-size: 13px;
}
.notify-row .when { font-size: 11.5px; color: var(--dim); }
.notify-row .who { flex: 1; min-width: 140px; }
.notify-row .geo { font-size: 11.5px; color: var(--dim); }

.console-grid { display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start; }
@media (max-width: 860px) { .console-grid { grid-template-columns: 1fr; } }

.user-search {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px; margin-bottom: 12px;
  font-family: var(--mono); font-size: 13.5px;
  background: #081120; color: var(--ink); border: 1px solid var(--line);
}
.user-search:focus { border-color: var(--cyan); outline: none; }
.user-list { display: flex; flex-direction: column; gap: 8px; max-height: 68vh; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
.user-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  padding: 12px 14px; border-radius: 14px; min-height: 64px;
  background: linear-gradient(160deg, var(--surface2), var(--surface) 60%);
  border: 1px solid var(--line); color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.user-row:hover { border-color: rgba(65, 219, 240, .4); }
.user-row.sel { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(65, 219, 240, .35); }
.user-row-main { flex: 1; min-width: 0; }
.user-row-main .u { display: block; font-weight: 800; font-size: 14.5px; }
.user-row-main .e { display: block; font-size: 11px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-row-chips { display: flex; flex-wrap: wrap; gap: 4px; max-width: 40%; justify-content: flex-end; }
.acct-avatar.sm { width: 38px; height: 38px; font-size: 15px; }

.user-editor {
  background: linear-gradient(170deg, var(--surface2), var(--surface) 55%);
  border: 1px solid var(--line); border-radius: 18px; padding: 24px; min-height: 320px;
}
.editor-empty { color: var(--dim); font-size: 13px; display: grid; place-items: center; min-height: 260px; }
.editor-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.access-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.access-box {
  display: flex; align-items: center; gap: 10px; min-height: 48px; cursor: pointer;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(65, 219, 240, .05); border: 1px solid var(--line);
  font-size: 13.5px; user-select: none;
  transition: border-color .15s ease, background .15s ease;
}
.access-box:hover { border-color: rgba(65, 219, 240, .45); }
.access-box:has(input:checked) { background: rgba(65, 219, 240, .13); border-color: rgba(65, 219, 240, .55); }
.access-box.locked { opacity: .65; cursor: not-allowed; }
.access-box input {
  appearance: none; width: 20px; height: 20px; flex: none; margin: 0; cursor: pointer;
  border-radius: 6px; border: 1.5px solid rgba(124, 234, 252, .5); background: #081120;
  display: grid; place-items: center;
}
.access-box input:checked { background: linear-gradient(180deg, var(--cyan2), #23bcd8); border-color: transparent; }
.access-box input:checked::after { content: '✓'; font-size: 13px; font-weight: 800; color: #04222b; }

.confirm-box {
  margin-top: 16px; padding: 16px; border-radius: 14px;
  background: rgba(224, 82, 79, .08); border: 1px solid rgba(224, 82, 79, .45);
}
.confirm-box p { font-size: 14px; margin-bottom: 14px; }

/* console: save grants */
.grant-select {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px; cursor: pointer;
  font-family: var(--sans); font-size: 14px; color: var(--ink);
  background: #081120; border: 1px solid var(--line);
}
.grant-select:focus { border-color: var(--cyan); outline: none; }
.grant-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .grant-two { grid-template-columns: 1fr; } }
.grant-toggles { margin-bottom: 12px; }
.grant-subhead { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--dim); margin: 12px 0 8px; }
.grant-kv { display: flex; flex-direction: column; gap: 8px; }
.grant-kv-row { display: flex; gap: 8px; align-items: center; }
.grant-kv-row input {
  flex: 1; min-width: 0; min-height: 42px; padding: 8px 12px; border-radius: 10px;
  font-family: var(--mono); font-size: 13px;
  background: #081120; color: var(--ink); border: 1px solid var(--line);
}
.grant-kv-row input:focus { border-color: var(--cyan); outline: none; }
.grant-kv-row .kv-rank { flex: 0 0 90px; }
.grant-kv-row .gr-x { flex: none; }
#gr-issue { margin-top: 14px; }
.grant-history { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.grant-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.grant-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 4px; }
.grant-main { flex: 1; min-width: 0; }
.grant-meta { display: block; font-size: 11px; color: var(--dim); margin-top: 2px; }
.grant-json summary { cursor: pointer; font-size: 11px; color: var(--cyan2); margin-top: 4px; }
.grant-json pre {
  margin-top: 6px; padding: 10px 12px; border-radius: 10px; overflow-x: auto;
  font-size: 11.5px; line-height: 1.5; background: #081120; border: 1px solid var(--line); color: #c7d6e6;
}

/* ============================================================
   Internal planner (planner.html)
   ============================================================ */
.planner-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.proj-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.proj-tab {
  min-height: 42px; padding: 8px 18px; border-radius: 10px; cursor: pointer;
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em; font-weight: 700;
  color: var(--dim); background: rgba(120, 200, 240, .05); border: 1px solid var(--line);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.proj-tab:hover { color: var(--ink); border-color: rgba(65, 219, 240, .4); }
.proj-tab.on { color: #04222b; background: linear-gradient(180deg, var(--cyan2), #23bcd8); border-color: transparent; }
.planner-bar-right { display: flex; gap: 8px; }

.view-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.view-tab {
  background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
  padding: 10px 2px; font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--dim);
  transition: color .15s ease, border-color .15s ease;
}
.view-tab:hover { color: var(--ink); }
.view-tab.on { color: var(--cyan2); border-bottom-color: var(--cyan); }
.pview { animation: pfade .2s ease; }
@keyframes pfade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.cl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cl-head .sub { font-size: 11.5px; color: var(--dim); margin-right: auto; }
.cl-head .btn[disabled] { opacity: .45; cursor: not-allowed; }
.cl-item {
  background: linear-gradient(160deg, var(--surface2), var(--surface) 60%);
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 0 14px 14px 0; padding: 18px 20px; margin-bottom: 14px;
}
.cl-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.cl-ver {
  font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  color: #241503; background: linear-gradient(180deg, var(--gold), var(--amber));
}
.cl-top h3 { font-size: 17px; font-weight: 800; }
.cl-date { font-size: 11px; color: var(--dim); margin-left: auto; }
.cl-notes { margin: 0; padding-left: 20px; }
.cl-notes li { font-size: 14px; color: var(--dim); margin-bottom: 6px; }
/* changelog → devlog post generator */
.cl-share { margin-left: 10px; flex: none; }
#share-modal .modal-inner { width: min(720px, 96vw); }
.share-block { margin-bottom: 20px; }
.share-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.share-head h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--cyan); }
.share-count { font-size: 11.5px; color: var(--dim); margin-left: auto; }
.share-count.over { color: var(--bad); font-weight: 700; }
.share-hint { font-size: 11.5px; color: var(--dim); margin-bottom: 8px; }
.share-block textarea {
  width: 100%; resize: vertical; padding: 12px 14px; border-radius: 10px;
  font-family: var(--sans); font-size: 13.5px; line-height: 1.55; color: var(--ink);
  background: #081120; border: 1px solid var(--line);
}
.share-block textarea:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(65, 219, 240, .12); }
.share-foot { display: flex; gap: 10px; align-items: center; padding-top: 4px; }
.share-foot .btn:last-child { margin-left: auto; }

.empty-card { padding: 30px; text-align: center; border: 1px dashed var(--line); border-radius: 14px; color: var(--dim); }
.empty-card h3 { color: var(--ink); font-size: 16px; margin-bottom: 6px; }

/* roadmap: the add-concept trigger (form itself lives in #idea-modal) */
.add-bar { display: flex; justify-content: flex-end; margin-bottom: 18px; }
@media (max-width: 640px) { .add-bar { justify-content: stretch; } .add-bar .btn { width: 100%; } }
#idea-modal .modal-inner { max-width: 520px; }
#idea-modal h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
#idea-modal .sub { font-size: 12.5px; color: var(--dim); margin-bottom: 18px; }
#idea-modal .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1100px) { .kanban { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .kanban { grid-template-columns: 1fr; } }
.kcol {
  background: rgba(8, 17, 32, .55); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px; min-height: 200px; transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.kcol[data-col="concept"] { border-top: 3px solid var(--purple); }
.kcol[data-col="planned"] { border-top: 3px solid var(--gold); }
.kcol[data-col="progress"] { border-top: 3px solid var(--cyan); }
.kcol[data-col="complete"] { border-top: 3px solid var(--good); }
.kcol .kbody { min-height: 90px; }
/* drag + drop feedback */
.kcol.drop-on {
  background: rgba(65, 219, 240, .09); border-color: rgba(65, 219, 240, .55);
  box-shadow: inset 0 0 0 1px rgba(65, 219, 240, .25);
}
.icard { cursor: grab; }
.icard:active { cursor: grabbing; }
.icard.dragging { opacity: .45; transform: rotate(-1deg); }
.icard-title, .icard-actions, .icard-actions * { cursor: pointer; }
.drag-hint { margin-top: 14px; font-size: 12px; color: var(--dim); }
/* completed cards read as done */
.kcol[data-col="complete"] .icard { border-color: rgba(95, 212, 127, .3); }
.kcol[data-col="complete"] .icard-title { color: var(--good); }
.kcol[data-col="complete"] .icard-bar span { background: var(--good); }
.kcol-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--dim); padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line);
}
.kcount { color: var(--cyan2); }
.kempty { font-size: 12px; color: var(--dim); opacity: .6; padding: 8px 2px; }
.icard {
  background: linear-gradient(160deg, var(--surface2), var(--surface) 60%);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px;
}
.icard:hover { border-color: rgba(65, 219, 240, .35); }
.icard-title { font-size: 15px; font-weight: 800; cursor: pointer; margin-bottom: 6px; }
.icard-title:hover { color: var(--cyan2); }
.icard p { font-size: 13px; color: var(--dim); margin-bottom: 10px; }
.icard-bar { height: 6px; border-radius: 999px; background: rgba(120, 200, 240, .12); overflow: hidden; }
.icard-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--good)); transition: width .25s ease; }
.icard-bar.big { height: 9px; margin: 14px 0 6px; }
.icard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.icard-count { font-size: 11px; color: var(--dim); }
.icard-actions { display: flex; align-items: center; gap: 6px; }
.icard-actions select {
  min-height: 34px; padding: 5px 8px; border-radius: 8px; cursor: pointer;
  font-family: var(--mono); font-size: 11.5px; color: var(--ink); background: #081120; border: 1px solid var(--line);
}
.plan-count { font-size: 11.5px; color: var(--dim); margin-bottom: 14px; }
.todo-list { display: flex; flex-direction: column; gap: 8px; max-height: 44vh; overflow-y: auto; overscroll-behavior: contain; margin-bottom: 14px; }
.todo {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  background: rgba(8, 17, 32, .7); border: 1px solid var(--line); border-left: 2px solid transparent;
  border-radius: 10px; padding: 10px 12px;
}
.todo.done { opacity: .62; border-left-color: var(--good); }
.todo.done .todo-text { text-decoration: line-through; color: var(--dim); }
.todo input[type="checkbox"] {
  appearance: none; width: 19px; height: 19px; flex: none; margin: 1px 0 0; cursor: pointer;
  border-radius: 6px; border: 1.5px solid rgba(124, 234, 252, .5); background: #081120; display: grid; place-items: center;
}
.todo input[type="checkbox"]:checked { background: linear-gradient(180deg, var(--good), #3fae5f); border-color: transparent; }
.todo input[type="checkbox"]:checked::after { content: '✓'; font-size: 12px; font-weight: 800; color: #06240f; }
.todo-text { flex: 1; font-size: 14px; }
.todo-add { display: flex; gap: 8px; }
.todo-add input {
  flex: 1; min-height: 44px; padding: 10px 14px; border-radius: 10px;
  font-family: var(--sans); font-size: 14px; color: var(--ink); background: #081120; border: 1px solid var(--line);
}
.todo-add input:focus { border-color: var(--cyan); outline: none; }

/* preview ribbon */
.preview-ribbon {
  position: fixed; z-index: 200; bottom: 34px; left: -52px; transform: rotate(38deg);
  padding: 6px 60px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  color: #04222b; background: linear-gradient(90deg, var(--cyan2), var(--purple));
  box-shadow: 0 6px 24px rgba(0, 0, 0, .4); pointer-events: none;
}

/* ============================================================
   Owner text editor (?edit)
   ============================================================ */
[data-c].editable {
  outline: 1.5px dashed rgba(65, 219, 240, .5); outline-offset: 4px;
  border-radius: 3px; cursor: text; transition: outline-color .15s ease;
}
[data-c].editable:hover, [data-c].editable:focus { outline-color: var(--cyan); outline-style: solid; }
[data-c].dirty { outline-color: var(--good); outline-style: solid; }

.admin-bar { position: fixed; z-index: 100; left: 0; right: 0; bottom: 0; pointer-events: none; }
.admin-tools {
  pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
  max-width: 720px; margin: 0 auto 18px;
  padding: 10px 14px; border-radius: 14px;
  background: rgba(8, 17, 32, .97); border: 1px solid rgba(65, 219, 240, .4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6);
}
.admin-status { flex: 1; font-size: 12px; color: var(--dim); }
.admin-login {
  pointer-events: auto; position: fixed; inset: 0; display: grid; place-items: center;
  background: rgba(3, 7, 14, .8); backdrop-filter: blur(6px);
}
.admin-login-inner {
  width: min(440px, 92vw); background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px;
}
.admin-login-inner h3 { font-size: 19px; margin-bottom: 8px; }
.admin-login-inner p { font-size: 13.5px; color: var(--dim); margin-bottom: 16px; }
.admin-login-inner input {
  width: 100%; padding: 12px 14px; border-radius: 10px; font-family: var(--mono); font-size: 13px;
  background: #081120; color: var(--ink); border: 1px solid var(--line); margin-bottom: 14px;
}
.admin-login-inner input:focus { border-color: var(--cyan); outline: none; }
.admin-row { display: flex; gap: 10px; }
.admin-err { color: var(--bad); font-size: 13px; margin-top: 12px; }

#json-modal {
  position: fixed; inset: 0; z-index: 110; display: grid; place-items: center;
  background: rgba(3, 7, 14, .82); backdrop-filter: blur(6px);
}
#json-modal .jm-inner {
  width: min(760px, 94vw); background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px;
}
#json-modal textarea {
  width: 100%; height: min(50vh, 420px); resize: vertical;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6;
  background: #081120; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 14px;
}
#json-modal textarea:focus { border-color: var(--cyan); outline: none; }

.toast {
  position: fixed; z-index: 220; left: 50%; bottom: 92px; transform: translateX(-50%);
  padding: 12px 22px; border-radius: 12px; font-size: 14px; font-weight: 600;
  background: #0a1424; border: 1px solid rgba(95, 212, 127, .5); color: var(--ink);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .55); max-width: 92vw; text-align: center;
}
.toast.err { border-color: rgba(224, 82, 79, .6); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ============================ PRESS KIT ============================ */
.press { max-width: 1120px; margin: 0 auto; padding: 40px 24px 90px; }
.press-head { padding: 26px 0 34px; border-bottom: 1px solid var(--line); }
.press-head h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -.02em; margin: 6px 0 14px; }
.press-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.press-sec { padding: 38px 0; border-bottom: 1px solid var(--line); }
.press-sec:last-child { border-bottom: 0; }
.press-sec h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.press-sec > .sub { font-size: 13.5px; color: var(--dim); margin-bottom: 20px; }

.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 18px; }
@media (max-width: 700px) { .fact-grid { grid-template-columns: 1fr; } }
.fact { background: var(--surface); padding: 15px 18px; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.fact .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); min-width: 92px; }
.fact .v { font-size: 14.5px; }
.fact .v a { color: var(--cyan); }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
@media (max-width: 900px) { .stat-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .stat-row { grid-template-columns: 1fr; } }

.boiler { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; }
.boiler-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.boiler-head h3 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--cyan); }
.boiler-head .btn { margin-left: auto; }
.boiler p { font-size: 14.5px; line-height: 1.6; color: #c6d6e8; }

.press-proj { padding: 20px 0; border-top: 1px solid var(--line); }
.press-proj:first-of-type { border-top: 0; }
.press-proj h3 { font-size: 23px; font-weight: 800; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.press-proj h3 .mono { font-size: 13px; color: var(--gold); font-weight: 400; }
.press-proj p { font-size: 14.5px; line-height: 1.6; color: #c6d6e8; max-width: 78ch; }

.asset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .asset-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .asset-grid { grid-template-columns: 1fr; } }
.asset { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.asset a { display: block; line-height: 0; background: #050a13; }
.asset img { width: 100%; height: 168px; object-fit: cover; object-position: center; transition: transform .25s ease, opacity .2s ease; }
/* the tall sheet reads better from its top edge; the logo shouldn't be cropped at all */
.asset.top img { object-position: top center; }
.asset.fit img { object-fit: contain; padding: 12px; }
.asset a:hover img { transform: scale(1.03); opacity: .92; }
.asset figcaption { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 5px; }
.asset figcaption b { font-size: 14.5px; }
.asset figcaption .mono { font-size: 11.5px; color: var(--dim); }
.asset figcaption .dl { font-size: 12.5px; }
.asset figcaption .dl a { color: var(--cyan); }

.use-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.use-list li { position: relative; padding-left: 22px; font-size: 14.5px; color: #c6d6e8; line-height: 1.55; }
.use-list li::before { content: ''; position: absolute; left: 3px; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--cyan); opacity: .75; }
.press-contact { margin-top: 20px; font-size: 15px; }
.press-contact a { color: var(--cyan); }
.press-platforms { font-size: 12px; color: var(--dim); letter-spacing: .04em; margin: 6px 0 10px; }
