:root {
  --blue: #078cff;
  --deep-blue: #0048ff;
  --ink: #090909;
  --red: #ff2820;
  --yellow: #ffe01b;
  --paper: #fffdf1;
  --shadow: 8px 8px 0 var(--ink);
  --mouse-x: 0;
  --mouse-y: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y mandatory; background: #021840; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Trebuchet MS", Arial, sans-serif;
  background-color: var(--blue);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(rgba(6, 127, 255, .18), rgba(6, 127, 255, .18)),
    url("assets/notification-lab-bg.png") center / cover no-repeat;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 50% 46%, rgba(25, 170, 255, .1) 0 18%, rgba(0, 30, 85, .25) 75%);
  pointer-events: none;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: .12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.flash {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: white;
  opacity: 0;
  pointer-events: none;
}
.ding-flash .flash { animation: flash .35s ease; }

.topbar {
  position: fixed;
  z-index: 15;
  top: 18px;
  left: 50%;
  width: min(92vw, 1640px);
  height: 72px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 12px 8px 16px;
  border: 4px solid var(--ink);
  border-radius: 13px 7px 15px 8px;
  background: rgba(0, 81, 227, .9);
  box-shadow: 5px 6px 0 var(--ink), inset 0 0 0 2px rgba(255,255,255,.18);
  backdrop-filter: blur(9px);
}
.brand, .top-actions, nav { display: flex; align-items: center; }
.brand { gap: 9px; color: white; font-family: Impact, "Arial Black", sans-serif; font-size: 23px; letter-spacing: .8px; }
.brand-face { width: 48px; height: 48px; overflow: hidden; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 50%; background: var(--yellow); }
.brand-face img { width: 62px; transform: translateY(8px); }
.brand b { padding: 5px 10px; color: var(--ink); background: var(--yellow); border: 3px solid var(--ink); transform: rotate(-2deg); }
nav { gap: 30px; color: white; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; }
nav a { position: relative; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 4px; background: var(--yellow); transition: right .2s ease; }
nav a:hover::after { right: 0; }
.top-actions { gap: 9px; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border: 3px solid var(--ink); border-radius: 8px; background: white; box-shadow: 3px 3px 0 var(--ink); font-weight: 900; }

.screen {
  position: relative;
  width: min(100%, 1920px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(110px, 12vh, 145px) max(5vw, calc((100vw - 1740px) / 2)) 50px;
  overflow: hidden;
  scroll-snap-align: start;
  isolation: isolate;
}
.screen::before {
  content: attr(data-section);
  position: absolute;
  right: 3vw;
  bottom: -3vh;
  z-index: -1;
  color: rgba(0, 32, 114, .17);
  font: 23vw/.8 Impact, "Arial Black", sans-serif;
}
.panel {
  position: relative;
  border: 5px solid var(--ink);
  border-radius: 13px 7px 16px 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 22px;
  border: 4px solid var(--ink);
  border-radius: 8px 5px 9px 6px;
  background: white;
  box-shadow: 5px 5px 0 var(--ink);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  transition: transform .16s ease, box-shadow .16s ease;
}
.button:hover, .icon-btn:hover { transform: translate(3px, 3px) rotate(-1deg); box-shadow: 2px 2px 0 var(--ink); }
.button.yellow { background: var(--yellow); }
.button.blue { color: white; background: var(--deep-blue); }
.button.white { background: white; }
.button.mini { min-height: 42px; padding: 7px 15px; background: var(--yellow); font-size: 15px; }
.eyebrow { margin: 0 0 10px; color: var(--deep-blue); font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; }

.hero { display: grid; grid-template-columns: minmax(480px, 1fr) minmax(460px, .95fr); align-items: center; gap: 3vw; }
.hero-copy { z-index: 2; max-width: 730px; padding: clamp(26px, 4vw, 54px); transform: rotate(-.35deg); }
.hero-copy::before, .section-head::after {
  content: "NEW!";
  position: absolute;
  top: -28px;
  right: 34px;
  padding: 12px 18px;
  border: 4px solid var(--ink);
  background: var(--red);
  color: white;
  font: 24px Impact, sans-serif;
  transform: rotate(6deg);
  clip-path: polygon(50% 0,61% 13%,78% 5%,82% 23%,100% 25%,91% 43%,100% 57%,84% 68%,87% 88%,66% 86%,54% 100%,40% 87%,21% 96%,17% 76%,0 70%,10% 51%,0 35%,19% 27%,20% 8%,40% 15%);
}
h1, h2, h3 { margin: 0; font-family: Impact, "Arial Black", sans-serif; letter-spacing: .8px; text-transform: uppercase; }
h1 { display: flex; flex-direction: column; font-size: clamp(78px, 8vw, 148px); line-height: .8; letter-spacing: 1px; filter: drop-shadow(5px 6px 0 rgba(0,0,0,.16)); }
h1 span:last-child { color: var(--deep-blue); -webkit-text-stroke: 3px var(--ink); text-shadow: 5px 5px 0 var(--yellow); }
.ticker { position: absolute; right: 24px; top: 42%; padding: 8px 18px; border: 4px solid var(--ink); background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); font: clamp(30px, 3vw, 52px) Impact, sans-serif; transform: rotate(4deg); }
.hero-lead { max-width: 570px; margin: 30px 0 10px; font-size: clamp(20px, 1.5vw, 28px); font-weight: 900; }
.scribble { display: inline-block; margin: 4px 0 24px; padding: 6px 11px; color: white; background: var(--ink); font-size: 17px; font-weight: 900; transform: rotate(-1deg); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions.center { justify-content: center; }
.ca-card {
  width: 100%;
  margin-top: 22px;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  border: 4px solid var(--ink);
  border-radius: 7px;
  color: white;
  background: #101010;
  cursor: pointer;
  text-align: left;
  box-shadow: inset 0 0 0 2px #404040;
}
.ca-card span { color: #63a9ff; font-size: 12px; font-weight: 900; letter-spacing: 1px; }
.ca-card strong { overflow: hidden; text-overflow: ellipsis; font: 19px "Courier New", monospace; }
.ca-card b { padding: 7px 10px; border: 2px solid #020202; border-radius: 4px; color: var(--ink); background: var(--yellow); font-size: 11px; white-space: nowrap; }

.hero-stage { position: relative; height: min(76vh, 820px); display: grid; place-items: center; }
.hero-character {
  position: relative;
  z-index: 2;
  width: min(47vw, 740px);
  max-height: 78vh;
  object-fit: contain;
  filter: drop-shadow(0 18px 0 rgba(0, 22, 75, .45)) drop-shadow(0 0 24px rgba(255,255,255,.5));
  animation: character-idle 3.8s ease-in-out infinite;
  transform: translate(calc(var(--mouse-x) * -6px), calc(var(--mouse-y) * -6px));
}
.character-halo { position: absolute; width: min(35vw, 560px); aspect-ratio: 1; border: 8px dashed var(--yellow); border-radius: 50%; background: rgba(255,255,255,.14); box-shadow: 0 0 0 15px rgba(0,72,255,.2), 0 0 60px white; animation: spin 18s linear infinite; }
.orbit { position: absolute; z-index: 3; inset: 50%; animation: orbit 7s linear infinite; }
.orbit span { position: absolute; display: grid; place-items: center; width: 62px; height: 62px; border: 4px solid var(--ink); border-radius: 50%; color: white; background: var(--red); box-shadow: 4px 4px 0 var(--ink); font: 23px Impact, sans-serif; }
.orbit-one { --radius: 330px; }
.orbit-two { --radius: 265px; animation-duration: 9s; animation-direction: reverse; }
.orbit-two span { background: var(--deep-blue); }
.orbit-three { --radius: 385px; animation-duration: 12s; }
.orbit-three span { background: var(--yellow); color: var(--ink); }
.pop-card { position: absolute; z-index: 4; border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); font-weight: 900; }
.speech { top: 18%; left: 2%; padding: 13px 20px; color: white; background: var(--red); font: 25px Impact, sans-serif; transform: rotate(-8deg); animation: pop-wiggle 1.2s ease-in-out infinite; }
.status-card { right: 1%; bottom: 12%; padding: 12px 15px; background: white; transform: rotate(4deg); }
.status-card i, .live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(255,40,32,.2); animation: blink 1s steps(2) infinite; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; z-index: 4; transform: translateX(-50%); color: white; font-weight: 900; letter-spacing: 2px; text-shadow: 2px 2px 0 var(--ink); }
.scroll-cue span { display: inline-block; animation: down 1.4s ease infinite; }

.section-head { max-width: 880px; margin: 0 auto 38px; padding: 24px 32px; text-align: left; transform: rotate(.25deg); }
.section-head::after { content: "!"; right: -24px; top: -22px; }
.section-head h2 { font-size: clamp(48px, 5vw, 88px); line-height: .94; }
.section-head p:last-child { margin-bottom: 0; font-size: 18px; font-weight: 700; }
.section-head.centered { text-align: center; }

.lore { display: flex; flex-direction: column; justify-content: center; }
.lore-grid { display: grid; grid-template-columns: 1.1fr .8fr .65fr; gap: 28px; align-items: stretch; max-width: 1500px; margin: 0 auto; }
.lore-story { padding: 45px 38px 32px; font-size: clamp(17px, 1.25vw, 23px); font-weight: 700; transform: rotate(-.5deg); }
.lore-story .lead { margin-top: 0; font-size: 1.3em; }
.tape { position: absolute; top: -17px; left: 35px; padding: 6px 30px; border: 3px solid var(--ink); background: var(--yellow); font-weight: 900; transform: rotate(-3deg); }
.quote { margin-top: 25px; padding: 13px; border: 3px dashed var(--ink); color: white; background: var(--deep-blue); font-family: "Courier New", monospace; font-weight: 900; transform: rotate(1deg); }
.lore-character { min-height: 450px; padding: 25px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; background: #0b0b0b; }
.lore-character img { position: absolute; inset: 8% 0 auto; width: 100%; height: 72%; object-fit: contain; filter: drop-shadow(0 0 18px var(--blue)); animation: phone-stare 2.4s ease-in-out infinite; }
.lore-character::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 140, 255, .12) 3px 5px); pointer-events: none; }
.meter-label { z-index: 2; color: white; font-weight: 900; }
.meter { z-index: 2; height: 22px; margin: 8px 0 5px; border: 3px solid white; padding: 3px; }
.meter i { display: block; width: 2%; height: 100%; background: var(--red); animation: battery 3s steps(3) infinite; }
.lore-character strong { z-index: 2; align-self: flex-end; color: var(--red); font: 36px Impact, sans-serif; }
.lore-stats { display: grid; gap: 22px; }
.stat { padding: 25px; display: flex; flex-direction: column; justify-content: center; }
.stat b { color: var(--deep-blue); font: clamp(42px, 4vw, 72px) Impact, sans-serif; }
.stat span { font-weight: 900; text-transform: uppercase; }
.stat.red { background: var(--red); color: white; transform: rotate(1deg); }
.stat.red b, .stat.yellow b { color: inherit; }
.stat.yellow { background: var(--yellow); transform: rotate(-1deg); }

.moods { display: flex; flex-direction: column; justify-content: center; }
.mood-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1540px; margin: 0 auto; }
.mood-card { overflow: hidden; min-height: 545px; display: flex; flex-direction: column; transition: transform .25s ease; }
.mood-card:hover { transform: translateY(-10px) rotate(-.5deg); }
.mood-card.hot { transform: translateY(18px) rotate(1deg); background: var(--red); color: white; }
.mood-card.hot:hover { transform: translateY(8px) rotate(-.5deg); }
.mood-card.calm { background: var(--yellow); transform: rotate(-1deg); }
.pose { width: 100%; flex: 1; min-height: 390px; background-repeat: no-repeat; background-size: contain; background-position: center; filter: drop-shadow(0 8px 0 rgba(0,0,0,.28)); transition: transform .25s ease; }
.mood-card:hover .pose { transform: scale(1.04); }
.pose-tired { background-image: url("assets/ding-tired.png"); animation: tired 3s ease-in-out infinite; }
.pose-panic { background-image: url("assets/ding-panic.png"); animation: panic .25s steps(2) infinite; }
.pose-zen { background-image: url("assets/ding-zen.png"); animation: zen 4s ease-in-out infinite; }
.mood-copy { padding: 22px 25px 25px; border-top: 5px solid var(--ink); background: inherit; }
.mood-copy span { font-weight: 900; letter-spacing: 1px; }
.mood-copy h3 { margin: 8px 0; font-size: clamp(26px, 2.3vw, 44px); }
.mood-copy p { margin: 0; font-weight: 700; }

.dont-ding {
  display: grid;
  grid-template-columns: minmax(280px, .42fr) minmax(700px, 1.35fr);
  align-items: center;
  gap: 34px;
}
.game-intro { z-index: 2; padding: 30px; transform: rotate(-1deg); }
.game-intro::before {
  content: "PLAY!";
  position: absolute;
  top: -27px;
  right: 18px;
  padding: 9px 17px;
  border: 4px solid var(--ink);
  color: white;
  background: var(--red);
  box-shadow: 4px 4px 0 var(--ink);
  font: 24px Impact, sans-serif;
  transform: rotate(7deg);
}
.game-intro h2 { font-size: clamp(58px, 5vw, 100px); line-height: .86; color: var(--deep-blue); -webkit-text-stroke: 3px var(--ink); text-shadow: 5px 5px 0 var(--yellow); }
.game-intro > p:last-of-type { font-size: 18px; font-weight: 800; line-height: 1.5; }
.game-rules { display: grid; gap: 10px; margin-top: 24px; }
.game-rules span { display: flex; align-items: center; gap: 10px; font-weight: 900; text-transform: uppercase; }
.game-rules b { display: grid; place-items: center; width: 34px; height: 34px; border: 3px solid var(--ink); border-radius: 50%; color: white; background: var(--red); }
.game-rules .rule-dismiss b { background: var(--deep-blue); }
.game-rules .rule-mute b { color: var(--ink); background: var(--yellow); }

.game-shell { min-width: 0; overflow: hidden; background: #080b12; color: white; transform: rotate(.25deg); }
.game-hud {
  min-height: 76px;
  display: grid;
  grid-template-columns: 150px 1fr 150px;
  align-items: center;
  gap: 22px;
  padding: 12px 18px;
  border-bottom: 5px solid var(--ink);
  background: var(--deep-blue);
}
.hud-stat, .hud-focus { display: grid; gap: 4px; }
.hud-stat:last-child { text-align: right; }
.hud-stat span, .hud-focus span { color: var(--yellow); font-size: 11px; font-weight: 900; letter-spacing: 1.3px; }
.hud-stat b { font: 32px Impact, sans-serif; letter-spacing: 1px; }
.hud-focus { grid-template-columns: auto 1fr auto; align-items: center; }
.hud-focus span { grid-column: 1 / -1; }
.focus-track { height: 24px; padding: 3px; border: 3px solid white; background: #0a1533; }
.focus-track i { display: block; width: 35%; height: 100%; background: var(--yellow); transition: width .18s ease, background .18s ease; }
.hud-focus b { min-width: 48px; text-align: right; font: 18px Impact, sans-serif; }

.game-arena { position: relative; height: min(60vh, 610px); min-height: 470px; overflow: hidden; cursor: crosshair; background: radial-gradient(circle at center, #0d6eff 0, #033295 38%, #06132d 90%); }
.game-arena::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at center, transparent 20%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}
.arena-grid { position: absolute; inset: 0; opacity: .28; background-image: linear-gradient(rgba(255,255,255,.16) 2px, transparent 2px), linear-gradient(90deg, rgba(255,255,255,.16) 2px, transparent 2px); background-size: 52px 52px; transform: perspective(400px) rotateX(24deg) scale(1.3); }
.game-ding { position: absolute; z-index: 2; left: 50%; bottom: -13%; width: min(47%, 480px); height: 94%; object-fit: contain; transform: translateX(-50%); filter: drop-shadow(0 0 26px rgba(0,0,0,.8)); pointer-events: none; transition: filter .2s ease; animation: game-ding-idle 1.4s ease-in-out infinite; }
.game-shell.playing .game-ding { animation-duration: .65s; }
.game-shell.danger .game-ding { filter: drop-shadow(0 0 28px var(--red)); animation: game-ding-danger .16s steps(2) infinite; }
.game-shell.fed .game-ding { animation: game-ding-fed .28s ease; }
.ding-thought { position: absolute; z-index: 4; top: 13%; left: 50%; padding: 10px 15px; border: 4px solid var(--ink); border-radius: 10px; color: var(--ink); background: white; box-shadow: 4px 4px 0 var(--ink); font: 19px Impact, sans-serif; letter-spacing: .8px; transform: translateX(-50%) rotate(-2deg); pointer-events: none; transition: opacity .2s ease; }
.ding-thought::after { content: ""; position: absolute; left: 45%; bottom: -16px; border-width: 15px 10px 0; border-style: solid; border-color: var(--ink) transparent transparent; }
.game-spawns { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.game-notice {
  position: absolute;
  left: var(--gx);
  top: var(--gy);
  max-width: min(250px, 42vw);
  padding: 10px 14px 10px 50px;
  border: 4px solid var(--ink);
  border-radius: 10px 6px 12px 7px;
  color: var(--ink);
  background: white;
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
  pointer-events: auto;
  text-align: left;
  transform: translate(-50%, -50%) rotate(var(--gr)) scale(0);
  animation: game-notice-in .25s cubic-bezier(.2,.9,.3,1.4) forwards, game-notice-pulse .72s ease-in-out .25s infinite;
}
.game-notice::before { content: attr(data-icon); position: absolute; left: 7px; top: 50%; width: 34px; height: 34px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 50%; color: white; background: var(--red); font: 16px Impact, sans-serif; transform: translateY(-50%); }
.game-notice b, .game-notice small { display: block; pointer-events: none; }
.game-notice b { font-size: 13px; text-transform: uppercase; }
.game-notice small { margin-top: 2px; font-size: 10px; font-weight: 900; }
.game-notice.good { color: white; background: var(--deep-blue); }
.game-notice.good::before { background: white; color: var(--deep-blue); }
.game-notice.trap { color: white; background: var(--red); animation-duration: .25s, .42s; }
.game-notice.trap::before { color: var(--red); background: white; }
.game-notice.expired { filter: grayscale(1); }
.game-notice.vanish { animation: game-notice-out .22s ease forwards; }

.mute-target {
  position: absolute;
  z-index: 7;
  left: var(--mx, 50%);
  top: var(--my, 50%);
  display: none;
  min-width: 112px;
  min-height: 58px;
  border: 5px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 7px 7px 0 var(--ink), 0 0 28px white;
  cursor: pointer;
  font: 24px Impact, sans-serif;
  transform: translate(-50%, -50%) rotate(-5deg);
  animation: mute-pulse .55s ease-in-out infinite;
}
.mute-target.show { display: block; }
.game-overlay { position: absolute; inset: 0; z-index: 10; display: grid; place-content: center; justify-items: center; padding: 25px; color: var(--ink); background: rgba(2, 15, 45, .74); text-align: center; backdrop-filter: blur(4px); }
.game-overlay.hidden { display: none; }
.game-overlay h3 { max-width: 650px; color: white; font-size: clamp(48px, 6vw, 92px); line-height: .9; text-shadow: 5px 5px 0 var(--ink); }
.game-overlay p { max-width: 620px; color: white; font-size: 17px; font-weight: 900; }
.game-badge { margin-bottom: 18px; padding: 7px 13px; border: 3px solid var(--ink); color: var(--ink); background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); font-weight: 900; transform: rotate(-2deg); }
.game-howto { width: min(650px, 100%); margin: 18px 0 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.game-howto span { padding: 12px 9px; border: 4px solid var(--ink); border-radius: 8px; color: white; box-shadow: 4px 4px 0 var(--ink); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.game-howto b { display: block; font: 23px Impact, sans-serif; }
.howto-blue { background: var(--deep-blue); }
.howto-red { background: var(--red); }
.howto-yellow { color: var(--ink) !important; background: var(--yellow); }
.game-start { min-width: 270px; margin-top: 13px; cursor: pointer; }
.game-footer { min-height: 54px; padding: 10px 18px; display: flex; justify-content: space-between; align-items: center; gap: 14px; color: white; background: #111; font-size: 12px; font-weight: 900; letter-spacing: 1px; }
.game-footer b { color: var(--yellow); }
.sound-toggle { padding: 6px 9px; border: 2px solid white; border-radius: 4px; color: white; background: transparent; cursor: pointer; font-size: 10px; font-weight: 900; letter-spacing: 1px; }
.sound-toggle[aria-pressed="false"] { color: #aaa; border-color: #777; }
.score-pop { position: absolute; z-index: 9; left: var(--sx); top: var(--sy); color: var(--yellow); font: 28px Impact, sans-serif; text-shadow: 3px 3px 0 var(--ink); pointer-events: none; animation: score-pop .7s ease forwards; }
.game-shell.won .game-overlay { background: rgba(0, 72, 255, .78); }
.game-shell.lost .game-overlay { background: rgba(160, 10, 10, .82); }

.roadmap { display: flex; flex-direction: column; justify-content: center; }
.roadmap-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; max-width: 1600px; margin: 15px auto 0; }
.roadmap-track::before { content: ""; position: absolute; top: 78px; left: 5%; right: 5%; z-index: -1; height: 16px; border: 4px solid var(--ink); background: var(--yellow); transform: rotate(-1deg); }
.road-step { min-height: 360px; margin-top: 40px; padding: 70px 24px 25px; display: flex; flex-direction: column; transform: rotate(-1deg); }
.road-step:nth-child(even) { margin-top: 85px; transform: rotate(1deg); }
.road-step.active { background: var(--yellow); }
.phase { position: absolute; top: 20px; left: 20px; font-weight: 900; letter-spacing: 1px; }
.road-icon { position: absolute; top: -54px; right: 20px; display: grid; place-items: center; width: 96px; height: 96px; border: 5px solid var(--ink); border-radius: 50%; color: white; background: var(--deep-blue); box-shadow: 5px 5px 0 var(--ink); font: 35px Impact, sans-serif; font-style: normal; animation: pop-wiggle 2s ease-in-out infinite; }
.road-step:nth-child(2) .road-icon { background: var(--red); }
.road-step:nth-child(3) .road-icon { color: var(--ink); background: white; }
.road-step:nth-child(4) .road-icon { color: var(--ink); background: var(--yellow); }
.road-step h3 { margin: 20px 0 10px; font-size: clamp(28px, 2.2vw, 42px); line-height: 1; }
.road-step p { flex: 1; font-size: 16px; font-weight: 700; line-height: 1.45; }
.road-step b { align-self: flex-start; padding: 6px 9px; border: 3px solid var(--ink); background: var(--red); color: white; transform: rotate(-2deg); }

.finale { display: grid; place-items: center; text-align: center; }
.final-card { z-index: 2; width: min(900px, 82vw); padding: clamp(35px, 5vw, 70px); }
.final-card::before, .final-card::after { content: ""; position: absolute; inset: -20px; z-index: -1; border: 5px dashed var(--yellow); transform: rotate(2deg); }
.final-card::after { inset: -34px; border-color: white; transform: rotate(-2deg); }
.final-card h2 { font-size: clamp(64px, 8vw, 142px); line-height: .85; }
.final-card h2 span { color: var(--red); -webkit-text-stroke: 3px var(--ink); }
.final-card > p:not(.eyebrow) { font-size: 22px; font-weight: 900; }
.final-ca { max-width: 620px; margin: 28px auto 18px; }
.final-card small { font-weight: 900; }
.final-character { position: absolute; z-index: 1; right: -4%; bottom: -23%; width: min(40vw, 660px); filter: drop-shadow(0 0 25px white); transform: rotate(-12deg); animation: character-idle 3s ease-in-out infinite; }
footer { position: absolute; left: 0; right: 0; bottom: 16px; color: white; font-size: 12px; font-weight: 900; letter-spacing: 1.5px; text-shadow: 2px 2px 0 var(--ink); }

.side-dots { position: fixed; z-index: 12; right: 22px; top: 50%; display: grid; gap: 10px; transform: translateY(-50%); }
.side-dots a { width: 14px; height: 14px; border: 3px solid var(--ink); border-radius: 50%; background: white; transition: .2s ease; }
.side-dots a.active { height: 34px; border-radius: 8px; background: var(--yellow); }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 30px; padding: 14px 24px; border: 4px solid var(--ink); border-radius: 7px; background: var(--yellow); box-shadow: 5px 5px 0 var(--ink); font: 20px Impact, sans-serif; transform: translate(-50%, 150%); transition: transform .25s cubic-bezier(.2,.9,.3,1.3); }
.toast.show { transform: translate(-50%, 0) rotate(-1deg); }
.notification-layer { position: fixed; inset: 0; z-index: 18; pointer-events: none; }
.floating-notice { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border: 3px solid var(--ink); border-radius: 8px; background: white; box-shadow: 4px 4px 0 var(--ink); font-weight: 900; transform: scale(0) rotate(var(--r)); animation: notice 4.2s ease forwards; }
.floating-notice b { min-width: 38px; height: 38px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 50%; color: white; background: var(--red); }

@keyframes character-idle { 0%,100% { transform: translateY(0) rotate(-1deg); } 48% { transform: translateY(-17px) rotate(1deg); } 51% { transform: translateY(-17px) rotate(-1deg); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop-wiggle { 0%,100% { rotate: -3deg; scale: 1; } 50% { rotate: 3deg; scale: 1.05; } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes down { 50% { transform: translateY(7px); } }
@keyframes flash { 50% { opacity: .48; } }
@keyframes phone-stare { 50% { transform: translateY(8px) rotate(.7deg); filter: drop-shadow(0 0 28px var(--blue)); } }
@keyframes battery { 50% { width: 12%; background: var(--yellow); } }
@keyframes tired { 50% { transform: translateY(7px) rotate(-1deg); } }
@keyframes panic { 50% { transform: translate(3px, -2px) rotate(.8deg); } }
@keyframes zen { 50% { transform: translateY(-11px); } }
@keyframes notice { 0% { opacity: 0; transform: scale(.3) rotate(var(--r)); } 12%,75% { opacity: 1; transform: scale(1) rotate(var(--r)); } 100% { opacity: 0; transform: scale(.8) translateY(-80px) rotate(var(--r)); } }
@keyframes game-ding-idle { 50% { transform: translateX(-50%) translateY(-7px) rotate(1deg); } }
@keyframes game-ding-danger { 50% { transform: translateX(-50%) translate(4px, -3px) rotate(1deg); } }
@keyframes game-ding-fed { 45% { transform: translateX(-50%) scale(1.09) rotate(-2deg); } }
@keyframes game-notice-in { to { transform: translate(-50%, -50%) rotate(var(--gr)) scale(1); } }
@keyframes game-notice-pulse { 50% { translate: 0 -4px; } }
@keyframes game-notice-out { to { opacity: 0; transform: translate(-50%, -50%) rotate(var(--gr)) scale(.2); } }
@keyframes mute-pulse { 50% { transform: translate(-50%, -50%) rotate(4deg) scale(1.08); } }
@keyframes score-pop { to { opacity: 0; transform: translateY(-55px) scale(1.25); } }

@media (max-width: 1100px) {
  html { scroll-snap-type: none; }
  .topbar nav { display: none; }
  .screen { min-height: auto; padding: 125px 24px 75px; }
  .hero { min-height: 100svh; grid-template-columns: 1fr; }
  .hero-copy { margin-top: 5vh; }
  .hero-stage { height: 600px; }
  .hero-character { width: min(82vw, 650px); }
  .lore-grid { grid-template-columns: 1fr 1fr; }
  .lore-stats { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .mood-grid { grid-template-columns: 1fr; max-width: 660px; }
  .mood-card.hot { transform: none; }
  .dont-ding { grid-template-columns: 1fr; }
  .game-intro { max-width: 700px; margin: 0 auto; }
  .game-shell { width: 100%; max-width: 900px; margin: 0 auto; }
  .roadmap-track { grid-template-columns: 1fr 1fr; }
  .road-step:nth-child(even), .road-step { margin-top: 45px; }
}

@media (max-width: 700px) {
  .topbar { top: 8px; width: calc(100vw - 16px); height: 64px; padding: 6px 7px; gap: 5px; }
  .brand { font-size: 16px; }
  .brand-face { width: 42px; height: 42px; }
  .brand b, .button.mini { display: none; }
  .icon-btn { width: 38px; height: 38px; font-size: 12px; }
  .screen { padding: 95px 14px 60px; }
  .hero-copy { padding: 29px 18px 22px; }
  .hero-copy::before { right: 4px; scale: .75; }
  h1 { font-size: clamp(62px, 21vw, 102px); }
  h1 span:last-child { -webkit-text-stroke-width: 2px; }
  .ticker { position: static; display: inline-block; margin-top: 15px; font-size: 28px; }
  .button { width: 100%; }
  .ca-card { grid-template-columns: 1fr auto; }
  .ca-card span { grid-column: 1 / -1; }
  .hero-stage { height: 430px; }
  .hero-character { width: 100%; }
  .character-halo { width: 78vw; }
  .orbit, .pop-card, .scroll-cue, .side-dots { display: none; }
  .section-head { padding: 22px 18px; }
  .section-head h2 { font-size: 44px; }
  .lore-grid, .lore-stats, .roadmap-track { grid-template-columns: 1fr; }
  .lore-character { min-height: 460px; }
  .mood-card { min-height: 470px; }
  .pose { min-height: 310px; }
  .game-intro { padding: 25px 18px; }
  .game-intro h2 { font-size: 58px; }
  .game-hud { grid-template-columns: 72px 1fr 72px; gap: 8px; padding: 8px; }
  .hud-stat b { font-size: 23px; }
  .hud-stat span, .hud-focus span { font-size: 8px; }
  .game-arena { height: 510px; min-height: 0; }
  .game-ding { width: 84%; height: 80%; bottom: -5%; }
  .ding-thought { top: 18%; font-size: 14px; white-space: nowrap; }
  .game-notice { max-width: 170px; padding: 8px 9px 8px 42px; }
  .game-notice::before { width: 28px; height: 28px; font-size: 12px; }
  .game-notice b { font-size: 10px; }
  .game-notice small { display: none; }
  .game-footer { align-items: flex-start; flex-direction: column; }
  .game-howto { grid-template-columns: 1fr; gap: 6px; }
  .game-howto span { padding: 7px; }
  .game-howto b { display: inline; margin-right: 5px; font-size: 16px; }
  .roadmap-track::before { display: none; }
  .final-card { width: 100%; padding: 35px 18px; }
  .final-card h2 { font-size: 62px; }
  .final-character { display: none; }
  .floating-notice { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
