/* ===== Sufyaan Albertus — Portfolio ===== */
:root {
  --gold-1: #FFF3C4;
  --gold-2: #E8C65F;
  --gold-3: #A87A1A;
  --gold-btn-top: #F7DA7A;
  --gold-btn-bot: #C9971F;
  --ink: #0A0804;
  --bg: #000000;
  --text: #F2EEE3;
  --text-2: #DCD5C4;
  --text-3: #A79E8A;
  --line: rgba(212, 175, 55, 0.35);
  --line-soft: rgba(212, 175, 55, 0.2);
  --max: 1200px;
  --display: "Orbitron", sans-serif;
  --head: "Exo 2", sans-serif;
  --body: "Inter", sans-serif;
  --mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #000; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  background:
    linear-gradient(rgba(212,175,55,0.05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(212,175,55,0.05) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(ellipse at 0% 0%, rgba(212,175,55,0.28), rgba(212,175,55,0) 50%),
    linear-gradient(160deg, #1a1405 0%, #070604 35%, #000000 100%);
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-2); }
a:hover { color: var(--gold-1); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---- Text styles ---- */
.label {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-2);
}
.gold-text {
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 45%, var(--gold-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.section-head::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(to right, rgba(212,175,55,0.6), rgba(212,175,55,0));
}
h1, h2, h3 { margin: 0; }
h2 { font-family: var(--head); font-size: clamp(1.6rem, 3vw, 2.2rem); }
p { margin: 0; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.logo { font-family: var(--display); font-weight: 900; font-size: 1.2rem; letter-spacing: 3px; color: var(--gold-2); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 2px; color: var(--text-2); text-decoration: none; }
.nav a:hover { color: var(--gold-2); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--gold-2);
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 2px; padding: 10px 14px; cursor: pointer;
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: #050403; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 16px 24px; border-top: 1px solid var(--line-soft); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block; text-decoration: none; font-family: var(--head); font-weight: 700;
  font-size: 1rem; padding: 15px 28px; letter-spacing: 0.5px; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  color: var(--ink); background: linear-gradient(180deg, var(--gold-btn-top), var(--gold-btn-bot));
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  padding-left: 32px; padding-right: 32px;
}
.btn-gold:hover { color: var(--ink); box-shadow: 0 0 30px rgba(212,175,55,0.5); }
.btn-line { color: var(--gold-2); border: 1px solid var(--gold-2); }
.btn-line:hover { background: rgba(212,175,55,0.1); }

/* ---- Hero ---- */
.hero { padding: 96px 0 80px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; }
.hero-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.status { display: flex; align-items: center; gap: 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 99px; background: var(--gold-2); box-shadow: 0 0 12px var(--gold-2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: 0.95; letter-spacing: 1px; }
.hero .role { font-family: var(--head); font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
.hero .intro { font-size: 1.1rem; color: #BDB4A0; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.stats {
  flex: 1 1 280px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.stat { background: var(--ink); padding: 20px; }
.stat b { display: block; font-family: var(--display); font-size: 2rem; color: var(--gold-2); line-height: 1.2; }
.stat span { font-size: 0.85rem; color: var(--text-3); }

/* ---- Project cards ---- */
.section { padding: 0 0 96px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.card {
  text-decoration: none; color: var(--text); display: flex; flex-direction: column;
  border: 1px solid var(--line); background: rgba(10,8,4,0.85);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold-2); color: var(--text); }
.art {
  position: relative; height: 240px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between;
  background:
    linear-gradient(rgba(0,0,0,0.25) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(to bottom left, #D4AF37 0%, #5a4610 45%, #000000 100%);
  overflow: hidden;
}
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art img + .art-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0) 60%); }
.art .art-top, .art .art-title { position: relative; z-index: 1; }
.art-top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 2px; color: var(--gold-1); }
.art-title { font-family: var(--display); font-weight: 900; font-size: 1.9rem; line-height: 1; color: #fff; }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.card-body p { font-size: 0.95rem; color: #BDB4A0; }
.card-more { font-family: var(--head); font-weight: 700; color: var(--gold-2); }

/* ---- About ---- */
.about { display: flex; flex-wrap: wrap; gap: 40px; }
.about-text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.about-text .lead { font-family: var(--head); font-size: 1.45rem; line-height: 1.45; }
.about-text p:not(.lead) { color: #BDB4A0; }
.toolkit { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 1px; border: 1px solid rgba(212,175,55,0.45); padding: 8px 12px; color: var(--text-2); }

/* ---- Footer / contact ---- */
.site-footer { border-top: 1px solid var(--line); background: linear-gradient(to right, rgba(212,175,55,0.14), rgba(0,0,0,0) 60%); }
.site-footer .wrap { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-end; }
.footer-cta { font-family: var(--display); font-weight: 900; font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1; }
.footer-cta span { color: var(--gold-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 2px; text-decoration: none; }
.copyright { width: 100%; font-size: 0.8rem; color: var(--text-3); border-top: 1px solid var(--line-soft); padding-top: 20px; }

/* ===== Project page ===== */
.p-hero { padding: 56px 0 64px; }
.p-hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.poster {
  flex: 1 1 300px; max-width: 400px; aspect-ratio: 2 / 3; padding: 26px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--gold-2); box-shadow: 0 0 60px rgba(212,175,55,0.25);
  background:
    linear-gradient(rgba(0,0,0,0.25) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(to bottom left, #D4AF37 0%, #5a4610 42%, #000000 100%);
}
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster > div { position: relative; z-index: 1; }
.poster-title { font-family: var(--display); font-weight: 900; font-size: 2.6rem; line-height: 0.95; color: #fff; }
.poster-credits { border-top: 1px solid var(--gold-2); padding-top: 12px; margin-top: 12px; font-size: 0.8rem; color: var(--text-2); letter-spacing: 1px; }
.p-intro { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.p-intro h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 0.95; }
.synopsis { border-left: 2px solid var(--gold-2); padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.synopsis p { font-family: var(--head); font-size: 1.25rem; line-height: 1.5; }
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.link-tile { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; text-decoration: none; }
.link-tile b { font-family: var(--head); font-size: 1.1rem; }
.link-tile.primary { color: var(--ink); background: linear-gradient(180deg, var(--gold-btn-top), var(--gold-btn-bot)); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.link-tile.primary .label { color: var(--ink); }
.link-tile.primary:hover { color: var(--ink); box-shadow: 0 0 30px rgba(212,175,55,0.5); }
.link-tile.secondary { color: var(--text); border: 1px solid var(--gold-2); }
.link-tile.secondary:hover { background: rgba(212,175,55,0.1); color: var(--text); }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.info-grid > div { background: var(--ink); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.info-grid p { color: var(--text-2); }

.video { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; font-family: var(--mono); font-size: 0.85rem; color: var(--text-3); }

.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.process figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.shot {
  aspect-ratio: 4 / 3; border: 1px solid rgba(212,175,55,0.3);
  background: linear-gradient(160deg, rgba(212,175,55,0.12), rgba(0,0,0,0.8));
  display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 0.75rem; color: var(--text-3); overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.process figcaption { display: flex; gap: 10px; font-size: 0.95rem; color: var(--text-2); }
.process figcaption b { font-family: var(--display); color: var(--gold-2); }
.code {
  margin: 20px 0 0; background: #000; border: 1px solid var(--line); border-left: 3px solid var(--gold-2);
  padding: 22px; font-family: var(--mono); font-size: 0.85rem; line-height: 1.7; color: var(--text-2); overflow-x: auto;
}
.code .c { color: #8F8672; }
.built { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 20px; }
.built li::before { content: "✔ "; color: var(--gold-2); }
.built li { color: var(--text-2); }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 26px; margin-top: 40px; }
.pager a { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 2px; text-decoration: none; }

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

a.shot { transition: border-color .15s ease; }
a.shot:hover { border-color: var(--gold-2); }

/* =========================================================
   GAMIFIED LAYER
   ========================================================= */
:root { --pixel: "Press Start 2P", monospace; }

/* CRT scanlines over everything (very subtle) */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,0.18) 2px 3px);
  mix-blend-mode: multiply;
}

/* Skip link */
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold-2); color: var(--ink); padding: 10px 14px; font-family: var(--mono); }
.skip:focus { left: 8px; }

/* ---- Boot screen ---- */
.boot {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, #1a1405 0%, #000 70%); cursor: pointer;
}
.boot.show { display: flex; }
.boot.hide { opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.boot-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 24px; text-align: center; }
.boot-logo { font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 12vw, 6rem); letter-spacing: 6px; }
.boot-label { font-family: var(--pixel); font-size: 0.7rem; color: var(--text-3); letter-spacing: 2px; }
.boot-bar { width: min(320px, 70vw); height: 14px; border: 2px solid var(--gold-2); padding: 2px; }
.boot-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-btn-top), var(--gold-btn-bot)); animation: load 1.4s steps(14) forwards; }
@keyframes load { to { width: 100%; } }
.boot-start { font-family: var(--pixel); font-size: 0.8rem; color: var(--gold-2); opacity: 0; animation: blink 1s steps(2) 1.4s infinite; }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }

/* ---- Menu-style nav: arrow cursor on hover ---- */
.nav a, .nav .sfx-toggle { position: relative; }
.nav a::before { content: "▶"; position: absolute; left: -16px; opacity: 0; color: var(--gold-2); font-size: 0.65rem; top: 50%; transform: translateY(-50%); transition: opacity .1s; }
.nav a:hover::before, .nav a:focus-visible::before { opacity: 1; }
.sfx-toggle {
  background: none; border: 1px solid var(--line); color: var(--text-3); cursor: pointer;
  font-family: var(--pixel); font-size: 0.55rem; padding: 9px 10px; letter-spacing: 1px;
}
.sfx-toggle[aria-pressed="true"] { color: var(--ink); background: var(--gold-2); border-color: var(--gold-2); }
@media (max-width: 720px) { .nav a::before { display: none; } .sfx-toggle { margin: 12px 24px 16px; } }

/* ---- Hero as title screen ---- */
.press-start { font-family: var(--pixel); font-size: 0.8rem; letter-spacing: 1px; animation: pulseGlow 1.6s ease-in-out infinite; }
@keyframes pulseGlow { 50% { box-shadow: 0 0 34px rgba(212,175,55,0.6); } }
.btn-line { font-family: var(--pixel); font-size: 0.7rem; letter-spacing: 1px; }

/* Player card */
.char-card {
  flex: 1 1 300px; max-width: 380px; border: 1px solid var(--gold-2); background: rgba(10,8,4,0.9);
  box-shadow: 0 0 50px rgba(212,175,55,0.18); padding: 20px; display: flex; flex-direction: column; gap: 18px;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.char-portrait {
  aspect-ratio: 1; border: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(rgba(0,0,0,0.25) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(to bottom left, #D4AF37 0%, #5a4610 45%, #000 100%);
  font-family: var(--mono); font-size: 0.75rem; color: var(--gold-1);
}
.char-portrait img { width: 100%; height: 100%; object-fit: cover; }
.char-stats { margin: 0; display: grid; gap: 8px; }
.char-stats div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line-soft); padding-bottom: 6px; }
.char-stats dt { font-family: var(--pixel); font-size: 0.55rem; color: var(--gold-2); padding-top: 4px; }
.char-stats dd { margin: 0; font-size: 0.9rem; color: var(--text-2); text-align: right; }
.char-progress { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.cleared-count { font-family: var(--pixel); font-size: 0.65rem; color: var(--gold-1); }
.xp { grid-column: 1 / -1; height: 14px; border: 2px solid var(--gold-2); padding: 2px; }
.xp-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-btn-top), var(--gold-btn-bot)); transition: width .8s steps(12); }
.char-progress small { grid-column: 1 / -1; color: var(--text-3); font-size: 0.75rem; }

/* ---- Level select cards ---- */
.card-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-family: var(--pixel); font-size: 0.5rem; letter-spacing: 1px; color: var(--gold-2); line-height: 1.8; }
.card-more { font-family: var(--pixel); font-size: 0.65rem; letter-spacing: 1px; }
.card:hover .card-more { animation: blink .6s steps(2) infinite; }
.card:hover .art { box-shadow: inset 0 0 0 2px var(--gold-2); }
.cleared-badge { display: none; background: var(--gold-2); color: var(--ink); padding: 3px 6px; font-weight: 700; }
.card.cleared .cleared-badge { display: inline; }

/* ---- Inventory ---- */
.inventory { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.inventory li {
  aspect-ratio: 1; border: 1px solid var(--line); background: rgba(10,8,4,0.85);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 6px;
  transition: border-color .15s, transform .15s;
}
.inventory li:hover { border-color: var(--gold-2); transform: translateY(-2px); }
.inventory b { font-family: var(--pixel); font-size: 0.7rem; color: var(--gold-1); }
.inventory span { font-size: 0.7rem; color: var(--text-3); }

/* ---- Continue screen ---- */
.continue { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.continue .label { font-family: var(--pixel); font-size: 0.75rem; animation: blink 1.2s steps(2) infinite; }
.mail-link { font-family: var(--pixel); font-size: 0.7rem; }
.mail-text { font-size: 0.95rem; }
.hint { color: #6f6757; }

/* ---- Achievement toasts ---- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 150; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  display: flex; gap: 12px; align-items: center; min-width: 260px; max-width: 340px; padding: 12px 14px;
  background: rgba(10,8,4,0.96); border: 1px solid var(--gold-2); box-shadow: 0 0 30px rgba(212,175,55,0.3);
  transform: translateX(120%); transition: transform .35s ease;
}
.toast.in { transform: translateX(0); }
.toast-icon { width: 38px; height: 38px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, var(--gold-btn-top), var(--gold-btn-bot)); color: var(--ink); font-size: 1.1rem; }
.toast b { display: block; font-family: var(--pixel); font-size: 0.5rem; color: var(--gold-2); letter-spacing: 1px; margin-bottom: 6px; }
.toast span { font-size: 0.85rem; color: var(--text); }

/* ---- Konami "god mode": falling coins ---- */
.coin { position: fixed; top: -30px; z-index: 160; width: 18px; height: 18px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, #FFF3C4, #E8C65F 45%, #A87A1A); box-shadow: 0 0 10px rgba(232,198,95,0.7);
  animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---- Project pages: mission HUD ---- */
.mission-hud { display: flex; flex-wrap: wrap; gap: 10px; }
.mission-hud span { font-family: var(--pixel); font-size: 0.5rem; letter-spacing: 1px; color: var(--gold-1); border: 1px solid var(--line); padding: 8px 10px; background: rgba(10,8,4,0.8); }
.next-level { font-family: var(--pixel) !important; font-size: 0.6rem !important; }
.code-label { font-family: var(--pixel); font-size: 0.5rem; color: var(--gold-2); margin-top: 20px; display: block; }

@media (prefers-reduced-motion: reduce) {
  .boot-bar span { width: 100%; }
  .toast { transition: none; }
}

/* =========================================================
   PROMO REDESIGN
   ========================================================= */
.big-h2 { font-family: var(--display); font-weight: 900; font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1.05; margin: 0 0 32px; letter-spacing: .5px; }
.intro strong { color: var(--gold-1); font-weight: 600; }

/* player card photo */
.char-portrait { position: relative; aspect-ratio: 4 / 5; }
.char-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.char-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 40%); pointer-events: none; }
.char-badge { position: absolute; left: 10px; top: 10px; z-index: 1; font-family: var(--pixel); font-size: .6rem; color: var(--ink); background: linear-gradient(180deg, var(--gold-btn-top), var(--gold-btn-bot)); padding: 6px 8px; }
.char-stats dd.online { color: #9be39b; }

/* skill ticker */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(10,8,4,.85); overflow: hidden; margin: 0 0 96px; }
.ticker-track { display: flex; align-items: center; gap: 28px; width: max-content; padding: 16px 0; animation: tick 38s linear infinite; }
.ticker span { font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: 3px; color: var(--text-2); white-space: nowrap; }
.ticker b { color: var(--gold-2); font-size: .8rem; }
@keyframes tick { to { transform: translateX(-50%); } }

/* featured level card */
.cards-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-hero { grid-row: span 2; }
.card-hero .art { height: auto; min-height: 380px; flex: 1; }
.card-hero .art-title { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.card .hook { font-family: var(--head); font-weight: 700; font-size: 1.2rem; color: var(--text); line-height: 1.35; }
.card-hero .hook { font-size: 1.45rem; }
@media (max-width: 820px) { .cards-featured { grid-template-columns: 1fr; } .card-hero { grid-row: auto; } .card-hero .art { min-height: 280px; } }

/* power-ups */
.powers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.power {
  position: relative; padding: 26px 22px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(212,175,55,.10), rgba(10,8,4,.9) 55%);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); transition: border-color .15s, transform .15s;
}
.power:hover { border-color: var(--gold-2); transform: translateY(-3px); }
.power-icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--ink); background: linear-gradient(180deg, var(--gold-btn-top), var(--gold-btn-bot)); margin-bottom: 16px; }
.power h3 { font-family: var(--pixel); font-size: .75rem; color: var(--gold-1); margin-bottom: 12px; letter-spacing: 1px; }
.power p { color: var(--text-2); font-size: .95rem; }

.footer-sub { color: var(--text-2); max-width: 460px; }

/* ---------- game pages ---------- */
.tagline { font-family: var(--head); font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.3; color: var(--text); }
.pitch { font-size: 1.1rem; line-height: 1.7; color: var(--text-2); max-width: 760px; }
.pitch-wrap { display: flex; flex-direction: column; gap: 16px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.feature { padding: 22px; border: 1px solid var(--line); background: rgba(10,8,4,.85); display: flex; flex-direction: column; gap: 8px; transition: border-color .15s; }
.feature:hover { border-color: var(--gold-2); }
.feature b { font-family: var(--pixel); font-size: .62rem; letter-spacing: 1px; color: var(--gold-1); line-height: 1.7; }
.feature span { color: var(--text-2); font-size: .95rem; }
.cta-band {
  margin-top: 8px; padding: 40px 32px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  border: 1px solid var(--gold-2); background: radial-gradient(ellipse at 100% 0%, rgba(232,198,95,.35), rgba(0,0,0,0) 60%), rgba(10,8,4,.9);
  box-shadow: 0 0 60px rgba(212,175,55,.15);
}
.cta-band h2 { font-family: var(--display); font-weight: 900; font-size: clamp(1.5rem, 3.5vw, 2.4rem); line-height: 1.05; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.next-up { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.next-up a { font-family: var(--pixel); font-size: .6rem; letter-spacing: 1px; text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* screenshot gallery + real media */
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.gallery .gal { display: block; border: 1px solid var(--line); overflow: hidden; grid-column: span 2; aspect-ratio: 16 / 9; }
.gallery .gal:first-child { grid-column: span 4; grid-row: span 2; aspect-ratio: auto; }
.gallery .gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery .gal:hover { border-color: var(--gold-2); }
.gallery .gal:hover img { transform: scale(1.04); }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery .gal, .gallery .gal:first-child { grid-column: span 1; grid-row: auto; aspect-ratio: 16 / 9; } .gallery .gal:first-child { grid-column: span 2; } }
.video video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.poster img { object-position: center; }
.poster.has-img { padding: 0; }

/* ---- video links + offline trailer ---- */
.video-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.offline-trailer { margin-top: 14px; border: 1px solid var(--line); padding: 10px 14px; }
.offline-trailer summary { cursor: pointer; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 1px; color: var(--text-2); }
.offline-trailer video { width: 100%; margin-top: 12px; aspect-ratio: 16 / 9; background: #000; display: block; }

/* ---- home: now playing ---- */
.reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.reel { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.reel-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); }
.reel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.reel:hover .reel-thumb img, .reel:focus-visible .reel-thumb img { transform: scale(1.04); }
.reel-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(0,0,0,.65); border: 2px solid var(--gold-1); color: var(--gold-1); display: flex; align-items: center; justify-content: center; font-size: 22px; padding-left: 4px; box-sizing: border-box; }
.reel b { font-family: var(--display, 'Orbitron'), sans-serif; letter-spacing: 1px; }
.reel-links { display: flex; gap: 14px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 1px; }
.reel-links a { color: var(--gold-1); }
@media (max-width: 800px) { .reels { grid-template-columns: 1fr; } }
