:root {
  --bg: #07110d;
  --bg-2: #091913;
  --grid: rgba(109, 246, 160, 0.08);
  --green: #55df70;
  --green-deep: #123922;
  --yellow: #f4c84c;
  --paper: #ece5d8;
  --paper-2: #f5efe3;
  --ink: #0d1321;
  --ink-soft: #344054;
  --red: #d25a5a;
  --pink: #a855f7;
  --shadow: 0 20px 45px rgba(8, 16, 12, .35);
  --card-shadow: 8px 8px 0 rgba(13, 19, 33, 0.16);
  --radius: 26px;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'Plus Jakarta Sans', sans-serif;
  --hand: 'Caveat', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: #09110d;
  color: #fff;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, video { display: block; width: 100%; }
button { font: inherit; }
main { position: relative; }
.no-js {
  position: fixed; inset: 0 0 auto 0; z-index: 300;
  padding: 10px 14px; background: #ffdf5d; color: #121212; text-align: center; font-weight: 700;
}

#confetti-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 120; pointer-events: none;
}
.global-noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 2; opacity: .05;
  background-image: radial-gradient(circle at 25% 15%, rgba(255,255,255,.7) .4px, transparent .5px), radial-gradient(circle at 75% 45%, rgba(255,255,255,.4) .4px, transparent .5px);
  background-size: 6px 6px, 5px 5px;
}

.sound-switch {
  position: fixed; right: 16px; top: 16px; z-index: 180;
  border: 1px solid rgba(255,255,255,.18); background: rgba(5, 14, 10, .8); color: #fff;
  display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 10px 14px;
  backdrop-filter: blur(12px); cursor: pointer; transition: transform .2s ease, background .2s ease;
}
.sound-switch:hover, .sound-switch:active { transform: translateY(-1px); }
.sound-switch__dot {
  width: 10px; height: 10px; border-radius: 50%; background: #55df70; box-shadow: 0 0 0 6px rgba(85, 223, 112, .14);
}
.sound-switch.is-muted .sound-switch__dot { background: #ef6363; box-shadow: 0 0 0 6px rgba(239, 99, 99, .14); }
.sound-switch__text { font-size: 12px; font-weight: 700; }

.gate {
  min-height: 100svh; position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(1,8,5,.96), rgba(3,14,10,.98));
  display: flex; flex-direction: column;
}
.gate__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px), linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, #000 42%, transparent 92%);
}
.gate__glow {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .25; pointer-events: none;
}
.gate__glow--a { width: 280px; height: 280px; background: rgba(85,223,112,.18); top: -40px; left: 10%; }
.gate__glow--b { width: 360px; height: 360px; background: rgba(85,223,112,.12); right: -60px; bottom: 8%; }
.gate__bar, .gate__footer {
  position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px;
}
.gate__bar { border-bottom: 1px solid rgba(255,255,255,.08); }
.gate__footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.55); font-family: var(--mono); font-size: 13px; }
.brand {
  display: inline-flex; align-items: center; gap: 14px; background: transparent; border: 0; color: #fff; cursor: pointer;
  padding: 0;
}
.brand__mark {
  width: 34px; height: 34px; display: grid; place-items: center; font-weight: 800; font-size: 16px;
  color: #07110d; background: #55df70; clip-path: polygon(16% 0, 100% 0, 100% 84%, 84% 100%, 0 100%, 0 16%);
  box-shadow: 0 0 18px rgba(85,223,112,.35);
}
.brand__copy { display: flex; flex-direction: column; align-items: flex-start; }
.brand__copy b { font-size: 18px; letter-spacing: .08em; }
.brand__copy small { font-family: var(--mono); color: rgba(255,255,255,.72); font-size: 12px; }
.secure-pill {
  display: inline-flex; gap: 10px; align-items: center; font-family: var(--mono); color: rgba(255,255,255,.8);
}
.secure-pill i { width: 10px; height: 10px; border-radius: 2px; background: var(--green); box-shadow: 0 0 12px rgba(85,223,112,.55); }

.gate__stage {
  position: relative; z-index: 4; flex: 1; display: grid; place-items: center; padding: 40px 18px;
}
.verify-card {
  position: relative; width: min(100%, 680px); padding: 34px; background: linear-gradient(180deg, rgba(4,20,14,.82), rgba(2,12,9,.92));
  border: 1px solid rgba(147, 255, 186, 0.18); box-shadow: 0 35px 80px rgba(0,0,0,.38), inset 0 0 0 1px rgba(255,255,255,.05);
  min-height: 420px; transition: transform .65s cubic-bezier(.22,1,.36,1), opacity .65s ease;
}
.verify-card.is-flip-out { transform: scale(.88) rotateX(8deg) rotateY(-12deg); opacity: 0; }
.verify-card__corner { position: absolute; width: 22px; height: 22px; border-color: rgba(255,255,255,.72); border-style: solid; }
.corner--tl { top: -1px; left: -1px; border-width: 3px 0 0 3px; }
.corner--tr { top: -1px; right: -1px; border-width: 3px 3px 0 0; }
.corner--bl { bottom: -1px; left: -1px; border-width: 0 0 3px 3px; }
.corner--br { bottom: -1px; right: -1px; border-width: 0 3px 3px 0; }
.kicker, .subtitle, .meter-head, .loading-list, .micro-note, .verified-table, .verified-panel p { max-width: 560px; }
.mono { font-family: var(--mono); }
.loading-panel h1 { margin: 10px 0 8px; font-size: clamp(34px, 5vw, 56px); line-height: .98; letter-spacing: -.04em; }
.cursor { animation: blink .85s step-end infinite; }
.subtitle { margin: 0 0 24px; color: rgba(255,255,255,.72); font-size: 16px; }
.kicker { color: rgba(255,255,255,.6); letter-spacing: .18em; font-size: 11px; }
.meter-head {
  display: flex; justify-content: space-between; gap: 12px; align-items: center; color: #fff; font-size: 15px; margin-bottom: 10px;
}
.meter-head b { color: var(--green); font-family: var(--mono); }
.meter-track {
  height: 14px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; border: 1px solid rgba(255,255,255,.09);
}
.meter-track i {
  display: block; width: 0%; height: 100%; background: linear-gradient(90deg, #2dbf57, #77f18b); border-radius: inherit;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.2), 0 0 20px rgba(85,223,112,.45);
}
.loading-list {
  margin: 26px 0 18px; padding: 0; list-style: none; border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.03);
}
.loading-list li {
  display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 15px;
}
.loading-list li:last-child { border-bottom: 0; }
.loading-list li b { color: var(--green); font-family: var(--mono); font-size: 12px; }
.loading-list li.is-wait b { color: var(--yellow); }
.loading-list li.is-err b { color: #ffb2b2; }
.micro-note {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; padding: 12px 14px; border-left: 3px solid var(--yellow);
  background: rgba(245,200,76,.08); color: rgba(255,255,255,.88); font-size: 14px;
}
.micro-note span { color: var(--yellow); font-weight: 800; }

.verified-panel { display: grid; gap: 28px; }
.verified-header { display: flex; gap: 18px; align-items: center; }
.verified-icon {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 42px; font-weight: 800;
  color: #07110d; background: var(--green); box-shadow: 0 0 0 10px rgba(85,223,112,.12);
}
.verified-header h2 { margin: 0 0 6px; font-size: clamp(32px, 5vw, 52px); line-height: 1; color: var(--green); letter-spacing: -.04em; }
.verified-header p { margin: 0; color: rgba(255,255,255,.72); font-size: 18px; max-width: 460px; }
.verified-table {
  margin: 0; background: #f2f4f1; color: #1b1f1d; padding: 12px 24px; display: grid; box-shadow: inset 0 -10px 30px rgba(0,0,0,.05);
}
.verified-table div {
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid rgba(0,0,0,.12);
  font-size: 17px;
}
.verified-table div:last-child { border-bottom: 0; }
.verified-table dd, .verified-table dt { margin: 0; }
.verified-table dd { font-family: var(--mono); font-weight: 600; }
.verified-table dd span {
  background: #d9efda; color: #205d2c; padding: 8px 12px; font-weight: 700; border: 1px solid #9fcca6;
}
.cta-view {
  border: 0; background: var(--green); color: #061109; padding: 22px 20px; font-size: clamp(22px, 3vw, 32px); font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 18px; box-shadow: 8px 8px 0 rgba(42, 110, 57, .5); cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta-view:hover, .cta-view:active { transform: translate(3px, 3px); box-shadow: 5px 5px 0 rgba(42, 110, 57, .5); }

.story { background: var(--paper); color: var(--ink); }
.hero-panel {
  position: relative; min-height: 100svh; overflow: hidden; text-align: center; color: #fff;
  background: radial-gradient(circle at top, rgba(38, 85, 170, .18), transparent 34%), #06163d;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 90px 20px 80px;
}
.hero-panel__confetti {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 16%, #dd6c68 0 3px, transparent 4px),
    radial-gradient(circle at 20% 25%, #4db0eb 0 3px, transparent 4px),
    radial-gradient(circle at 28% 11%, #b17be8 0 3px, transparent 4px),
    radial-gradient(circle at 35% 20%, #f4c84c 0 3px, transparent 4px),
    radial-gradient(circle at 44% 14%, #58d69f 0 3px, transparent 4px),
    radial-gradient(circle at 53% 22%, #dd6c68 0 3px, transparent 4px),
    radial-gradient(circle at 65% 13%, #4db0eb 0 3px, transparent 4px),
    radial-gradient(circle at 74% 21%, #f4c84c 0 3px, transparent 4px),
    radial-gradient(circle at 84% 16%, #58d69f 0 3px, transparent 4px),
    radial-gradient(circle at 92% 18%, #b17be8 0 3px, transparent 4px),
    radial-gradient(circle at 16% 34%, #58d69f 0 3px, transparent 4px),
    radial-gradient(circle at 33% 42%, #dd6c68 0 3px, transparent 4px),
    radial-gradient(circle at 58% 40%, #f4c84c 0 3px, transparent 4px),
    radial-gradient(circle at 73% 38%, #4db0eb 0 3px, transparent 4px),
    radial-gradient(circle at 89% 32%, #dd6c68 0 3px, transparent 4px),
    radial-gradient(circle at 20% 60%, #f4c84c 0 3px, transparent 4px),
    radial-gradient(circle at 50% 66%, #b17be8 0 3px, transparent 4px),
    radial-gradient(circle at 77% 59%, #58d69f 0 3px, transparent 4px),
    radial-gradient(circle at 12% 81%, #4db0eb 0 3px, transparent 4px),
    radial-gradient(circle at 37% 88%, #dd6c68 0 3px, transparent 4px),
    radial-gradient(circle at 61% 86%, #f4c84c 0 3px, transparent 4px),
    radial-gradient(circle at 86% 91%, #b17be8 0 3px, transparent 4px);
  opacity: .9; animation: drift 18s linear infinite;
}
.hero-panel > * { position: relative; z-index: 2; }
.hero-kicker {
  margin: 0 0 20px; font-family: var(--mono); letter-spacing: .24em; color: rgba(255,255,255,.76); font-size: 16px;
}
.hero-title { margin: 0; line-height: .92; }
.hero-title span {
  display: block; font-size: clamp(70px, 15vw, 148px); color: var(--yellow); font-weight: 900; letter-spacing: -.05em; text-shadow: 0 7px 0 rgba(0,0,0,.45);
}
.hero-title em {
  display: block; margin-top: 8px; font-style: normal; font-size: clamp(32px, 6vw, 72px); font-weight: 800; color: #fff; letter-spacing: -.05em;
}
.hero-desc {
  max-width: 760px; margin: 34px auto 30px; font-size: clamp(20px, 3vw, 28px); line-height: 1.65; color: rgba(255,255,255,.93);
}
.status-card {
  width: min(100%, 760px); padding: 34px 28px 36px; background: rgba(6, 19, 58, .78); border: 1px solid rgba(135, 204, 255, .4);
  box-shadow: 12px 12px 0 rgba(2, 7, 22, .38); position: relative;
}
.status-card::before, .status-card::after {
  content: ''; position: absolute; width: 20px; height: 20px; border: 2px solid rgba(173, 220, 255, .72);
}
.status-card::before { left: -2px; top: -2px; border-right: 0; border-bottom: 0; }
.status-card::after { right: -2px; bottom: -2px; border-left: 0; border-top: 0; }
.status-card p { margin: 0 0 8px; font-size: 18px; color: rgba(255,255,255,.75); }
.status-card strong { display: block; font-size: clamp(42px, 8vw, 88px); color: #48df75; letter-spacing: -.05em; }
.status-card small { display: block; margin-top: 8px; font-family: var(--mono); font-size: 18px; color: #fff; }
.scroll-cue {
  margin-top: 46px; color: rgba(255,255,255,.82); display: grid; gap: 10px; place-items: center; font-family: var(--hand); font-size: 28px;
}
.scroll-cue b { animation: bob 1.1s ease-in-out infinite; }

.paper-section {
  position: relative; padding: 34px 18px 54px; background:
    repeating-linear-gradient(to bottom, transparent 0, transparent 46px, rgba(145, 116, 93, .12) 46px, rgba(145, 116, 93, .12) 47px),
    linear-gradient(90deg, transparent 0, transparent 32px, rgba(227, 154, 154, .42) 32px, rgba(227, 154, 154, .42) 33px, transparent 33px),
    var(--paper);
  border-top: 1px solid rgba(0,0,0,.06);
}
.paper-heading {
  display: flex; align-items: flex-start; gap: 16px; margin: 0 auto 24px; max-width: 1140px;
}
.paper-heading__no {
  background: #0d1321; color: #fff; padding: 8px 12px; font-family: var(--mono); font-size: 30px; font-weight: 700; box-shadow: 6px 6px 0 rgba(0,0,0,.08);
  transform: rotate(-2deg);
}
.paper-heading small { display: block; font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; color: #685b50; font-size: 12px; }
.paper-heading h2 { margin: 2px 0 0; font-size: clamp(40px, 6vw, 74px); line-height: .95; letter-spacing: -.05em; }
.paper-heading--dark { color: #fff; }
.paper-heading--dark small { color: rgba(255,255,255,.72); }
.paper-heading--dark .paper-heading__no { background: #fff; color: #081110; }

.intro-layout, .progress-layout, .stats-grid, .gallery-grid { max-width: 1140px; margin: 0 auto; }
.intro-layout {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: start;
}
.polaroid {
  position: relative; background: #f8f0e2; border: 1px solid rgba(0,0,0,.14); padding: 18px 18px 52px; box-shadow: 14px 14px 0 rgba(0,0,0,.12);
}
.polaroid__photo { background: #ddd7cc; padding: 14px; }
.polaroid__photo img { aspect-ratio: 1/1.18; object-fit: cover; background: #d7ddd4; }
.polaroid figcaption { margin-top: 16px; font-family: var(--hand); font-size: 20px; color: #3d3d3d; }
.stamp {
  position: absolute; right: 18px; bottom: 36px; transform: rotate(-10deg); padding: 8px 12px; border: 2px solid #de5c53; color: #de5c53;
  font-weight: 800; font-size: 28px; background: rgba(255,255,255,.55); line-height: 1.02;
}
.paperclip {
  position: absolute; right: 22px; top: -10px; width: 18px; height: 78px; border: 5px solid #7b766d; border-radius: 18px; transform: rotate(11deg);
}
.paperclip::after { content: ''; position: absolute; inset: 8px; border: 4px solid #7b766d; border-radius: 14px; }
.friend-letter {
  background: rgba(250, 245, 235, .92); border-left: 3px solid rgba(221, 100, 100, .28); padding: 12px 18px 10px 18px; font-size: clamp(18px, 2vw, 26px); line-height: 1.72;
}
.friend-letter h3 { margin: 0 0 14px; font-size: clamp(34px, 4vw, 52px); }
.friend-letter p { margin: 0 0 14px; }
.friend-sign { display: block; margin-top: 10px; font-family: var(--hand); font-size: 28px; font-weight: 700; }
.film-strip {
  max-width: 1140px; margin: 26px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; background: #151515; padding: 14px; box-shadow: 12px 12px 0 rgba(0,0,0,.12);
}
.film-strip figure {
  margin: 0; background: #fff8ed; padding: 12px 12px 44px; position: relative; overflow: hidden;
}
.film-strip figure::before, .film-strip figure::after {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 12px;
  background: repeating-linear-gradient(to bottom, transparent 0 8px, #151515 8px 18px);
}
.film-strip figure::after { left: auto; right: 0; }
.film-strip img { aspect-ratio: 1/1; object-fit: cover; }
.film-strip figcaption { position: absolute; inset: auto 14px 10px 14px; font-family: var(--hand); font-size: 18px; font-weight: 700; }

.progress-layout {
  display: grid; grid-template-columns: 1.1fr .58fr; gap: 20px; align-items: end;
}
.sheet {
  position: relative; background: var(--paper-2); padding: 26px 22px; border: 1px solid rgba(0,0,0,.12); box-shadow: var(--card-shadow);
}
.sheet::before, .sheet::after {
  content: ''; position: absolute; left: 12px; right: 12px; height: 1px; border-top: 2px dashed rgba(135, 102, 82, .18);
}
.sheet::before { top: 10px; }
.sheet::after { bottom: 10px; }
.progress-row {
  display: grid; grid-template-columns: 138px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-bottom: 18px; font-size: 18px; font-weight: 700;
}
.progress-row:last-child { margin-bottom: 0; }
.progress-row div {
  height: 14px; border-radius: 999px; background: rgba(0,0,0,.08); overflow: hidden; border: 1px solid rgba(0,0,0,.08);
}
.progress-row div i {
  display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2ca548, #6fdf76); transition: width 1.2s cubic-bezier(.22,1,.36,1);
}
.progress-row span { font-size: 16px; color: #222; }
.progress-row--loading div i { background: repeating-linear-gradient(-45deg, #b4b0a8 0 7px, #d7d2c7 7px 14px); }
.sticky-note {
  background: #f6dc69; padding: 16px 18px; border-radius: 2px 2px 14px 2px; box-shadow: 8px 8px 0 rgba(0,0,0,.12); transform: rotate(-4deg);
  border: 1px solid rgba(0,0,0,.08);
}
.sticky-note small { display: block; margin-bottom: 8px; font-weight: 800; }
.sticky-note p { margin: 0 0 12px; font-family: var(--hand); font-size: 24px; line-height: 1.15; }
.sticky-note span { font-family: var(--hand); font-size: 22px; font-weight: 700; }

.chalk-section {
  position: relative; padding: 34px 18px 54px; background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(180deg, #08151f, #0d1d2a);
  background-size: 100% 42px, 44px 100%, 100% 100%;
  color: #fff;
}
.achievement-board, .dev-console {
  position: relative; max-width: 1140px; margin: 0 auto; background: linear-gradient(180deg, rgba(8,18,28,.92), rgba(8,18,28,.84)); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 12px 12px 0 rgba(0,0,0,.22); padding: 26px 22px 34px;
}
.achievement-board__head { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; color: #93f07a; font-size: clamp(28px, 4vw, 48px); font-weight: 800; }
.achievement-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.achievement-list li {
  display: flex; gap: 12px; align-items: flex-start; font-size: clamp(20px, 2vw, 28px); opacity: .36; transform: translateY(14px); transition: .35s ease;
}
.achievement-list li.is-earned { opacity: 1; transform: translateY(0); }
.achievement-list i { font-style: normal; }
.achievement-points {
  position: absolute; right: 18px; bottom: -16px; background: #f6dc69; color: #131313; padding: 8px 14px; font-weight: 800; box-shadow: 6px 6px 0 rgba(0,0,0,.18);
}

.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.stat-card {
  background: #f9f6ef; border: 1px solid rgba(0,0,0,.12); padding: 18px 16px; box-shadow: 8px 8px 0 rgba(0,0,0,.09);
}
.stat-card small { display: block; color: #6f6457; font-size: 14px; margin-bottom: 16px; }
.stat-card strong { display: block; font-size: clamp(36px, 5vw, 58px); line-height: 1; margin-bottom: 8px; letter-spacing: -.04em; }
.stat-card p { margin: 0; color: #6f6457; font-size: 15px; }
.text-only { font-size: clamp(24px, 4vw, 44px) !important; }
.text-only.compact { font-size: clamp(20px, 3vw, 36px) !important; }
.text-pink { color: #b54aa8; }
.count-number { color: #0c1626; }
.stat-card code {
  font-family: var(--mono); font-size: 15px; display: inline-block; padding: 8px 10px; margin-top: 6px; background: #fff; border: 1px dashed rgba(0,0,0,.16);
}
.stat-card code.swap { animation: popswap .3s ease; }
.icon-spinner {
  width: 36px; height: 36px; margin-top: 10px; border: 4px dashed rgba(0,0,0,.18); border-top-color: #999; border-radius: 50%; animation: spin 1.1s linear infinite;
}
.clock-icon {
  width: 42px; height: 42px; margin-top: 8px; border: 3px solid #202020; border-radius: 50%; position: relative;
}
.clock-icon i { position: absolute; left: 50%; top: 50%; width: 2px; height: 13px; background: #202020; transform-origin: bottom center; transform: translate(-50%, -100%) rotate(28deg); }
.clock-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 2px; height: 16px; background: #202020; transform-origin: bottom center; transform: translate(-50%, -100%) rotate(132deg); }

.terminal {
  max-width: 1140px; margin: 0 auto; background: #050505; color: #3ff07a; border: 2px solid #333; box-shadow: 10px 10px 0 rgba(0,0,0,.12); border-radius: 12px; overflow: hidden;
}
.terminal__bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: #121212; font-family: var(--mono); color: rgba(255,255,255,.74); font-size: 12px;
}
.terminal__bar span { width: 11px; height: 11px; border-radius: 50%; background: #4a4a4a; }
.terminal__body {
  min-height: 280px; padding: 16px 18px 28px; font-family: var(--mono); font-size: 17px; line-height: 1.65; white-space: pre-wrap;
}
.terminal__body .error { color: #ff6b6b; }
.terminal__body .time { color: #ddf5dd; }
.terminal__cursor {
  display: block; width: 12px; height: 20px; background: #3ff07a; margin: 0 0 16px 18px; animation: blink .9s step-end infinite;
}

.gallery-grid {
  display: grid; grid-template-columns: 1.05fr .95fr .95fr; gap: 16px; align-items: start;
}
.gallery-card {
  background: #fbf7f0; border: 1px solid rgba(0,0,0,.12); padding: 12px; box-shadow: 8px 8px 0 rgba(0,0,0,.1);
}
.gallery-card img, .video-shell video { aspect-ratio: 4/3; object-fit: cover; background: #d7ddd4; }
.gallery-card figcaption { margin-top: 10px; font-size: 16px; line-height: 1.45; color: #574d45; }
.video-shell { position: relative; }
.play-chip {
  position: absolute; left: 12px; bottom: 12px; background: rgba(8, 18, 28, .82); color: #fff; padding: 8px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
}

.download-card {
  max-width: 720px; margin: 0 auto; background: #f9f6ef; border: 1px solid rgba(0,0,0,.12); padding: 22px; box-shadow: 10px 10px 0 rgba(0,0,0,.1);
}
.download-button {
  width: 100%; padding: 22px; border: 0; background: #0d1321; color: #fff; font-size: clamp(24px, 4vw, 34px); font-weight: 800; cursor: pointer;
}
.download-progress { margin-top: 16px; display: grid; gap: 10px; }
.download-progress div { height: 16px; background: rgba(0,0,0,.08); overflow: hidden; border-radius: 999px; }
.download-progress div i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #2ca548, #6fdf76); }
.download-progress b { font-family: var(--mono); }
.download-error {
  margin-top: 16px; padding: 16px; border: 2px dashed rgba(210, 90, 90, .38); background: #fff4f2; color: #7a2020;
}
.download-error span { display: block; font-size: 38px; font-weight: 900; margin-bottom: 6px; }
.download-error p { margin: 0 0 8px; font-size: 28px; font-weight: 800; }
.download-card.shake { animation: shake .55s ease; }

.dev-console { font-family: var(--mono); }
.dev-console p { margin: 0 0 8px; }
.dev-console__locked { color: rgba(255,255,255,.74); }
.dev-console__secret strong { display: block; font-size: 32px; margin-top: 10px; }
.dev-console__secret em { color: #f6dc69; font-style: normal; }
.probability-bar { margin-top: 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.probability-bar div { height: 12px; background: rgba(255,255,255,.12); overflow: hidden; }
.probability-bar i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #2ca548, #a5f16e); transition: width 1s ease; }

.closing-section {
  position: relative; overflow: hidden; min-height: 92svh; padding: 78px 18px 88px; background: linear-gradient(180deg, #071221, #0b1628); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.closing-section::before {
  content: ''; position: absolute; inset: 0; opacity: .13;
  background-image: radial-gradient(circle at 20% 22%, #f4c84c 0 2px, transparent 3px), radial-gradient(circle at 76% 25%, #57d79b 0 2px, transparent 3px), radial-gradient(circle at 58% 70%, #5ca7f0 0 2px, transparent 3px), radial-gradient(circle at 32% 82%, #d06de0 0 2px, transparent 3px), radial-gradient(circle at 86% 66%, #e16e6e 0 2px, transparent 3px);
  background-size: 180px 180px;
}
.closing-section > * { position: relative; z-index: 2; }
.closing-kicker {
  margin: 0 0 16px; font-family: var(--mono); letter-spacing: .18em; color: rgba(255,255,255,.74); font-size: 14px;
}
.closing-section h2 { margin: 0 0 18px; font-size: clamp(46px, 8vw, 92px); line-height: .95; letter-spacing: -.05em; }
.closing-copy {
  max-width: 760px; min-height: 250px; font-size: clamp(22px, 3vw, 32px); line-height: 1.72; color: rgba(255,255,255,.96); white-space: pre-wrap;
}
.closing-sign { margin-top: 18px; font-size: clamp(22px, 3vw, 32px); line-height: 1.6; font-weight: 700; }

.voice-hint {
  display: inline-flex; align-items: center; gap: 10px; margin: 18px auto 0; color: #4a4a4a; font-family: var(--hand); font-size: 26px;
}
.voice-hint span {
  width: 4px; border-radius: 999px; background: #0d1321; display: inline-block; animation: voiceBounce .8s ease-in-out infinite;
}
.voice-hint span:nth-child(1) { height: 14px; animation-delay: 0s; }
.voice-hint span:nth-child(2) { height: 22px; animation-delay: .12s; }
.voice-hint span:nth-child(3) { height: 16px; animation-delay: .24s; }
.voice-hint--right { color: rgba(255,255,255,.86); }
.voice-hint--right span { background: #fff; }

.toast, .tap-count {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(20px); bottom: 20px; z-index: 220; opacity: 0; pointer-events: none;
  padding: 10px 14px; border-radius: 999px; background: rgba(5, 14, 10, .9); color: #fff; font-size: 14px; font-weight: 700;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show, .tap-count.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.tap-count { bottom: 66px; font-family: var(--mono); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes bob { 50% { transform: translateY(10px); } }
@keyframes drift { to { transform: translateY(30px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes popswap { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes shake {
  20% { transform: translateX(-6px) rotate(-1deg); }
  40% { transform: translateX(6px) rotate(1deg); }
  60% { transform: translateX(-5px) rotate(-1deg); }
  80% { transform: translateX(4px) rotate(1deg); }
}
@keyframes voiceBounce { 50% { transform: scaleY(1.8); } }

@media (max-width: 900px) {
  .gate__bar, .gate__footer { padding: 16px; }
  .brand__copy b { font-size: 16px; }
  .brand__copy small { font-size: 11px; }
  .verify-card { padding: 22px 18px; min-height: auto; }
  .loading-panel h1 { font-size: 42px; }
  .verified-header { align-items: flex-start; }
  .verified-icon { width: 60px; height: 60px; font-size: 34px; }
  .verified-header p { font-size: 15px; }
  .verified-table { padding: 8px 16px; }
  .verified-table div { padding: 16px 0; font-size: 14px; }
  .cta-view { padding: 18px 16px; font-size: 24px; }

  .hero-panel { padding-inline: 16px; }
  .hero-kicker { font-size: 12px; letter-spacing: .18em; }
  .hero-title span { font-size: 84px; }
  .hero-title em { font-size: 34px; }
  .hero-desc { font-size: 20px; line-height: 1.62; }
  .status-card { padding: 24px 16px 26px; }
  .status-card strong { font-size: 52px; }
  .status-card small { font-size: 14px; }

  .intro-layout, .progress-layout, .gallery-grid, .stats-grid { grid-template-columns: 1fr; }
  .paper-heading { margin-bottom: 18px; }
  .paper-heading__no { font-size: 20px; padding: 6px 8px; }
  .paper-heading h2 { font-size: 44px; }
  .friend-letter { font-size: 18px; }
  .friend-letter h3 { font-size: 26px; }
  .film-strip { grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding: 10px; overflow: auto; }
  .film-strip figcaption { font-size: 15px; }
  .progress-row { grid-template-columns: 98px minmax(0,1fr) auto; gap: 10px; font-size: 15px; }
  .progress-row span { font-size: 13px; }
  .sticky-note { max-width: 240px; margin-left: auto; }
  .sticky-note p { font-size: 20px; }

  .achievement-board__head { font-size: 28px; }
  .achievement-list li { font-size: 17px; }
  .achievement-points { font-size: 13px; right: 12px; }

  .stat-card strong { font-size: 34px; }
  .text-only { font-size: 24px !important; }
  .text-only.compact { font-size: 21px !important; }
  .terminal__body { font-size: 14px; min-height: 220px; }
  .gallery-card figcaption { font-size: 14px; }
  .download-button { font-size: 24px; }
  .download-error p { font-size: 24px; }

  .closing-copy { min-height: 220px; font-size: 20px; }
  .closing-sign { font-size: 20px; }
  .sound-switch { top: auto; bottom: 16px; right: 16px; }
}
