:root {
  --bg: #0f0d0c; --bg2: #171311; --card: #1e1916; --line: #2e2723;
  --fg: #f4eee6; --muted: #b8ab9b; --gold: #f2c230; --gold2: #ffde6b; --pink: #ff4f8b; --teal: #34d1c4;
  --radius: 14px; --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
h1, h2, h3, .logo { font-family: Anton, Impact, "Arial Narrow", sans-serif; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(34px, 6vw, 60px); }
h3 { font-size: 24px; }
.kicker { color: var(--gold); font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: 13px; margin: 0 0 10px; }
.lead { color: var(--muted); font-size: 19px; max-width: 760px; }
.note { color: var(--muted); font-size: 14px; margin-top: 14px; }
.vh, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--gold); color: #1a1405; padding: 8px 14px; border-radius: 8px; font-weight: 800; }
.skip:focus { top: 10px; }

/* nav */
nav { position: sticky; top: 0; z-index: 10; background: rgba(15, 13, 12, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.logo { font-size: 26px; letter-spacing: .22em; color: #fff; text-decoration: none; }
.links { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.links a:hover { color: var(--fg); }
.menu-btn { display: none; margin-left: auto; background: none; color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; font: 600 14px Inter, sans-serif; cursor: pointer; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--gold); color: #1a1405; font: 800 16px Inter, sans-serif; text-decoration: none; padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { background: var(--gold2); transform: translateY(-1px); }
.btn.small { padding: 8px 16px; font-size: 14px; flex: none; }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--gold); background: transparent; }
@media (max-width: 860px) {
  .logo { font-size: 20px; letter-spacing: .16em; }
  .menu-btn { display: block; }
  .links { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg2); border-bottom: 1px solid var(--line); }
  .links.open { display: flex; }
  .links a { padding: 13px 16px; border-top: 1px solid var(--line); font-size: 16px; }
}

/* hero */
.hero { background: #000; }
.hero-inner { position: relative; max-width: 1600px; margin: 0 auto; }
.hero img { width: 100%; aspect-ratio: 1376 / 768; object-fit: cover; }
.hero h1 { position: absolute; left: 25%; right: 25%; top: 7%; text-align: center; color: #fff; font-size: min(4.9vw, 78px); text-shadow: 0 3px 0 #000, 0 0 22px rgba(0, 0, 0, .55); }
.hero h1 em { display: block; font-style: normal; color: var(--gold2); }
@media (max-width: 760px) {
  .hero h1 { position: static; padding: 22px 16px 0; font-size: 44px; background: var(--bg); text-wrap: balance; }
}
.cta { text-align: center; padding: 24px 16px 28px; }
.cta p { color: var(--muted); margin: 12px 0 0; font-size: 15px; }
.cta .row { justify-content: center; }

section { padding: 84px 0; border-top: 1px solid var(--line); scroll-margin-top: 60px; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } section { padding: 60px 0; } }
.shot { border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); border: 1px solid var(--line); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot.lineup { margin-top: 28px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 34px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature b { display: block; font-size: 17px; margin-bottom: 6px; }
.feature span { color: var(--muted); font-size: 15px; }

/* the feed */
.feed-section { background: radial-gradient(circle at 78% 40%, #3a1226, var(--bg) 62%); }
.feed-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: center; }
.feed-cta { margin-top: 22px; }
.phone { position: relative; height: min(675px, 78svh); max-width: 380px; width: 100%; margin: 0 auto; border: 8px solid #000; border-radius: 34px; overflow: hidden; background: #000; box-shadow: 0 0 0 2px var(--line), 0 30px 70px rgba(0, 0, 0, .6); }
.reels { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; }
.reels::-webkit-scrollbar { display: none; }
.reel { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #000; }
.reel > img { width: 100%; height: 100%; object-fit: cover; }
.reel.active > img { animation: drift 9s ease-out both; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.09); } }
.reel-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 66px 16px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .88)); color: #fff; font-size: 15px; line-height: 1.35; }
.reel-info p { margin: 5px 0 0; }
.reel-info .tag { font-weight: 800; color: var(--gold2); }
.top-comment { font-size: 13px; color: #e3d9cc; }
.top-comment b { font-weight: 800; }
.sound { font-size: 12px; color: #e3d9cc; }
.bleep { display: inline-block; background: #000; color: var(--gold2); border-radius: 3px; padding: 0 4px; font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.rail { position: absolute; right: 8px; bottom: 22px; display: flex; flex-direction: column; gap: 14px; }
.rail button { display: flex; flex-direction: column; align-items: center; width: 50px; background: none; border: 0; padding: 0; color: #fff; font: 800 12px Inter, sans-serif; cursor: pointer; text-shadow: 0 1px 4px #000; }
.rail .ico { font-size: 28px; line-height: 1.1; transition: transform .15s; }
.rail button:hover .ico { transform: scale(1.15); }
.like[aria-pressed="true"] .ico { color: var(--pink); transform: scale(1.2); }
.reel-nav { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; }
.reel-nav button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .5); color: #fff; font-size: 13px; cursor: pointer; }
.reel-nav button:hover { background: rgba(0, 0, 0, .8); }
@media (max-width: 860px) { .feed-grid { grid-template-columns: 1fr; gap: 28px; } .phone { height: 72svh; } }

/* stickers */
.st { display: block; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .6)); transition: transform .15s; }

/* kit */
.kit-section { background: var(--bg2); }
.kit { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.tool { flex: 0 0 calc((100% - 60px) / 6); min-width: 0; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 16px; text-align: center; }
.tool .st { width: 130px; height: 130px; margin: 0 auto 10px; transform: rotate(-3deg); }
.tool:nth-child(even) .st { transform: rotate(3deg); }
.tool:hover .st { transform: rotate(0) scale(1.1); }
.tool .k { position: absolute; top: 10px; right: 10px; font: 800 12px/1 Inter, sans-serif; color: #1a1405; background: var(--gold); border-radius: 6px; padding: 4px 7px; }
.tool b { display: block; }
.tool .d { color: var(--muted); font-size: 14px; line-height: 1.35; display: block; }
@media (max-width: 980px) { .tool { flex-basis: calc((100% - 36px) / 4); } }
@media (max-width: 620px) { .tool { flex-basis: calc((100% - 12px) / 2); padding: 12px 10px; } .tool .st { width: 104px; height: 104px; } }

/* cast */
.cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 30px; }
.phony { display: flex; flex-direction: column; background: linear-gradient(160deg, #241d18, var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.phony h3 { color: #fff; }
.phony .role { color: var(--pink); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 4px 0 10px; }
.phony p { margin: 0; color: var(--muted); font-size: 15px; }
.phony.boss { border-color: rgba(242, 194, 48, .55); }
.phony.boss .role { color: var(--gold); }
.phony.fresh .role { color: var(--teal); }
.phony { position: relative; }
.phony .prop { width: 120px; height: 120px; margin: -6px 0 10px -4px; transform: rotate(-4deg); }
.phony:hover .prop { transform: rotate(3deg) scale(1.08); }

/* missions */
.missions { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
@media (max-width: 860px) { .missions { grid-template-columns: 1fr; } }
.mission { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mission img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mission .body { padding: 22px; }
.mission .num { color: var(--gold); font-weight: 800; letter-spacing: .14em; font-size: 12px; text-transform: uppercase; margin: 0 0 4px; }
.mission ol { color: var(--muted); padding-left: 20px; margin: 10px 0 0; font-size: 15px; }

/* Dex's wall */
.wall-section { background: var(--bg2); }
.wall { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 30px; margin-top: 30px; padding: 34px 28px; border-radius: var(--radius); border: 10px solid #3a2a1b; background-color: #5f4227; background-image: radial-gradient(rgba(0, 0, 0, .22) 1px, transparent 1.5px), radial-gradient(rgba(255, 220, 170, .08) 1px, transparent 1.5px); background-size: 7px 7px, 11px 11px; background-position: 0 0, 3px 4px; }
.string { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.string polyline { fill: none; stroke: #d5202e; stroke-width: 2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .5)); }
.clue { position: relative; z-index: 1; align-self: start; background: #f6efd9; color: #231b12; padding: 20px 16px 16px; box-shadow: 0 8px 16px rgba(0, 0, 0, .45); transition: transform .15s; }
.clue:nth-of-type(1) { transform: rotate(-2deg); }
.clue:nth-of-type(2) { transform: rotate(1.5deg); }
.clue:nth-of-type(3) { transform: rotate(-1deg); }
.clue:nth-of-type(4) { transform: rotate(1.8deg); }
.clue:nth-of-type(5) { transform: rotate(-1.4deg); }
.clue:nth-of-type(6) { transform: rotate(2deg); }
.clue:hover { transform: rotate(0) scale(1.03); z-index: 3; }
.clue::before { content: ""; position: absolute; top: -7px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8080, #b5121c); box-shadow: 0 3px 4px rgba(0, 0, 0, .5); z-index: 3; }
.clue h3 { font: 400 21px/1.15 "Permanent Marker", "Segoe Print", cursive; letter-spacing: 0; text-transform: none; color: #a9141f; margin-bottom: 6px; }
.clue p { margin: 0; font-size: 15px; line-height: 1.4; }
.clue.pic { background: #fff; }
.clue.pic img { aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 10px; }
.source { font: 400 15px/1.4 "Permanent Marker", "Segoe Print", cursive; color: var(--muted); margin: 18px 0 0; }
@media (max-width: 860px) {
  .wall { grid-template-columns: 1fr; padding: 24px 16px; border-width: 6px; gap: 26px; }
  .string { display: none; }
}

.clue-st { float: right; width: 84px; height: 84px; margin: -8px -6px 2px 8px; transform: rotate(6deg); }

/* sticker drop */
.takes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 26px; }
.take { display: block; padding: 8px; border-radius: var(--radius); }
.take .st { width: 100%; height: auto; aspect-ratio: 1; }
.take:nth-child(odd) .st { transform: rotate(-3deg); }
.take:nth-child(even) .st { transform: rotate(3deg); }
.take:hover .st { transform: rotate(0) scale(1.1); }
.sticker-row { margin-top: 22px; }

/* updates */
.updates { background: linear-gradient(150deg, #33101f, var(--bg) 62%); }
.updates-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; }
.updates-art { position: relative; min-height: 380px; }
.updates-art .st { position: absolute; }
.updates-art .a1 { width: 260px; height: 260px; right: 8%; top: 0; transform: rotate(6deg); }
.updates-art .a2 { width: 190px; height: 190px; left: 0; bottom: 0; transform: rotate(-10deg); }
.updates-art .a3 { width: 190px; height: 190px; right: 0; bottom: 10px; transform: rotate(5deg); }
.pulse { display: inline-block; color: var(--teal); font-weight: 800; font-size: 15px; margin: 0; }
.signup { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; max-width: 560px; }
.signup input { flex: 1 1 240px; min-width: 0; background: #0b0a09; color: var(--fg); border: 2px solid var(--line); border-radius: 999px; padding: 12px 20px; font: 600 16px Inter, sans-serif; }
.signup input:focus { border-color: var(--gold); outline: none; }
.signup .btn:disabled { opacity: .6; cursor: default; }
.signup-msg { flex-basis: 100%; margin: 0; font-weight: 700; min-height: 0; }
.signup-msg.ok { color: var(--teal); }
.signup-msg.bad { color: var(--pink); }
.hp { position: absolute; left: -9999px; }
.share { margin-top: 26px; }
.share b { display: block; margin-bottom: 10px; }
@media (max-width: 860px) { .updates-grid { grid-template-columns: 1fr; } .updates-art { display: none; } }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 28px; }
.gallery figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.gallery a { display: block; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 10px; bottom: 8px; font-size: 13px; font-weight: 600; background: rgba(0, 0, 0, .65); padding: 3px 9px; border-radius: 999px; pointer-events: none; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: var(--fg); }
.lightbox::backdrop { background: rgba(0, 0, 0, .92); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox img { max-width: min(92vw, 1280px); max-height: 82vh; width: auto; border-radius: 8px; }
.lightbox p { margin: 10px 0 0; font-weight: 600; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .6); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-btn:hover { border-color: var(--gold); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; margin-top: -24px; }
.lb-next { right: 12px; top: 50%; margin-top: -24px; }

/* download */
.download { position: relative; overflow: hidden; }
.download .bgart { position: absolute; inset: 0; background: url(img/keyart-skyline.jpg) center / cover; opacity: .18; }
.download .wrap { position: relative; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 30px 0; }
.step { background: rgba(30, 25, 22, .92); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.step .n { font-family: Anton, sans-serif; font-size: 34px; color: var(--gold); line-height: 1; }
.code { display: flex; gap: 8px; align-items: stretch; margin-top: 10px; }
.code code { flex: 1; min-width: 0; background: #0b0a09; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: 14px/1.4 ui-monospace, Consolas, monospace; color: var(--gold2); overflow-x: auto; white-space: nowrap; }
.code button { background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; font-weight: 700; cursor: pointer; }
.code button:hover { border-color: var(--gold); }
.build { display: inline-block; background: rgba(0, 0, 0, .5); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; color: var(--muted); font-size: 14px; }
.build b { color: var(--teal); }
.whatsnew { background: rgba(30, 25, 22, .92); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 10px; padding: 14px 18px; max-width: 760px; font-size: 15px; }
.whatsnew[hidden] { display: none; }
.whatsnew ul { margin: 6px 0 0; padding-left: 20px; color: var(--muted); }
.phone-note { display: none; }
.linkish { background: none; border: 0; padding: 0; color: var(--gold); font: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 760px) { .phone-note { display: block; } }

/* faq */
.faq-wrap { max-width: 820px; }
.faq { margin-top: 26px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding: 15px 4px; font-weight: 800; cursor: pointer; }
.faq summary:hover { color: var(--gold); }
.faq p { margin: 0 4px 16px; color: var(--muted); font-size: 16px; }
.faq code { color: var(--gold2); font-size: 14px; overflow-wrap: anywhere; }

footer { border-top: 1px solid var(--line); padding: 34px 0 46px; color: var(--muted); font-size: 14px; }
footer .logo { font-size: 20px; display: inline-block; margin-bottom: 8px; }

/* 404 */
.lost { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 24px 16px; }
.lost .stamp-404 { font: 400 clamp(44px, 12vw, 96px)/1 Anton, Impact, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: #ff2d55; border: 6px solid #ff2d55; border-radius: 10px; padding: 6px 18px; transform: rotate(-6deg); margin: 0 0 14px; }
.lost p { color: var(--muted); max-width: 480px; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
