:root {
  --ink: #101813;
  --paper: #ecebdc;
  --acid: #d7ff43;
  --orange: #ff6b35;
  --pink: #ff7bac;
  --muted: #788077;
  --line: rgba(16, 24, 19, 0.2);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { color: var(--ink); background: var(--acid); }

.noise {
  position: fixed;
  inset: 0;
  opacity: .08;
  pointer-events: none;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215,255,67,.14), transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}

.topbar {
  position: fixed;
  z-index: 10;
  top: 0;
  width: 100%;
  height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(22px, 4vw, 64px);
  border-bottom: 1px solid rgba(236,235,220,.16);
  color: var(--paper);
  background: rgba(16,24,19,.85);
  backdrop-filter: blur(14px);
}
.brand, .status, .topbar nav { font: 700 11px/1 var(--mono); letter-spacing: .1em; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: var(--ink); background: var(--acid); }
.topbar nav { display: flex; gap: 30px; }
.topbar nav a { opacity: .7; transition: .25s ease; }
.topbar nav a:hover, .topbar nav a:focus-visible { opacity: 1; color: var(--acid); }
.status { justify-self: end; display: flex; gap: 9px; align-items: center; }
.status i, .green-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--acid); box-shadow: 0 0 12px var(--acid); }

.hero {
  position: relative;
  min-height: 100svh;
  padding: 150px clamp(22px, 6vw, 100px) 80px;
  display: grid;
  grid-template-columns: 1.1fr .75fr;
  gap: 8vw;
  align-items: center;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(236,235,220,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236,235,220,.045) 1px, transparent 1px),
    radial-gradient(circle at 22% 32%, rgba(215,255,67,.08), transparent 27%);
  background-size: 64px 64px, 64px 64px, auto;
}
.eyebrow, .kicker { margin: 0 0 22px; font: 700 11px/1.4 var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.eyebrow { color: rgba(236,235,220,.55); }
.eyebrow span { display: inline-block; margin-right: 8px; padding: 6px 8px; color: var(--ink); background: var(--acid); }
.hero h1, h2 { margin: 0; font-weight: 900; letter-spacing: -.065em; line-height: .98; }
.hero h1 { max-width: 800px; font-size: clamp(64px, 9vw, 148px); }
.hero h1 span { color: var(--acid); }
.lead { max-width: 500px; margin: 30px 0 0; font-size: clamp(16px, 1.4vw, 21px); color: rgba(236,235,220,.68); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 42px; }
.button { min-width: 160px; padding: 15px 18px; display: flex; justify-content: space-between; gap: 30px; border: 1px solid rgba(236,235,220,.25); font: 700 12px/1 var(--mono); text-transform: uppercase; transition: .25s ease; }
.button.primary { color: var(--ink); background: var(--acid); border-color: var(--acid); }
.button:hover { transform: translateY(-3px); border-color: var(--acid); }

.operative-card {
  position: relative;
  width: min(100%, 470px);
  justify-self: end;
  padding: 22px;
  color: var(--ink);
  background: var(--acid);
  box-shadow: 20px 20px 0 rgba(0,0,0,.35);
  transform: rotate(2deg);
}
.operative-card::before { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(16,24,19,.25); pointer-events: none; }
.card-topline { display: flex; justify-content: space-between; font: 700 10px/1 var(--mono); letter-spacing: .12em; }
.portrait-zone { position: relative; height: 310px; display: grid; place-items: center; margin: 18px 0; overflow: hidden; color: var(--acid); background: var(--ink); }
.portrait-number { font: 700 clamp(100px, 14vw, 190px)/1 var(--mono); letter-spacing: -.14em; transform: translateX(-.06em); }
.crosshair { position: absolute; width: 76%; fill: none; stroke: rgba(215,255,67,.38); stroke-width: .8; }
.radar-ring { position: absolute; border: 1px dashed rgba(215,255,67,.35); border-radius: 50%; animation: rotate 18s linear infinite; }
.ring-one { width: 220px; height: 220px; }
.ring-two { width: 280px; height: 280px; animation-direction: reverse; animation-duration: 28s; }
@keyframes rotate { to { transform: rotate(360deg); } }
.card-name small, .card-stats small { display: block; margin-bottom: 7px; font: 700 9px/1 var(--mono); letter-spacing: .1em; opacity: .58; }
.card-name strong { font-size: clamp(22px, 3vw, 36px); font-weight: 900; }
.card-stats { display: grid; grid-template-columns: .6fr 1fr 1fr; gap: 10px; margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(16,24,19,.35); }
.card-stats b { font: 700 13px/1 var(--mono); }
.barcode { height: 28px; margin-top: 19px; opacity: .65; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 9px, transparent 9px 12px); }
.scroll-cue { position: absolute; left: clamp(22px, 6vw, 100px); bottom: 26px; display: flex; gap: 16px; align-items: center; font: 400 9px/1 var(--mono); letter-spacing: .18em; opacity: .5; }
.scroll-cue i { width: 60px; height: 1px; background: currentColor; }

.ticker { overflow: hidden; color: var(--ink); background: var(--acid); transform: rotate(-1deg) scale(1.02); }
.ticker-track { width: max-content; padding: 14px 0; display: flex; gap: 28px; align-items: center; font: 700 13px/1 var(--mono); animation: marquee 24s linear infinite; }
.ticker-track i { font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding: clamp(90px, 11vw, 170px) clamp(22px, 6vw, 100px); }
.section-label { align-self: start; display: flex; align-items: flex-start; gap: 16px; font: 700 10px/1.45 var(--mono); letter-spacing: .08em; }
.section-label span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid currentColor; border-radius: 50%; }
.section-label p { margin: 3px 0 0; }
.section-label.inline { margin-bottom: 68px; }
.section-label.light { color: rgba(236,235,220,.7); }
.about { min-height: 770px; display: grid; grid-template-columns: .4fr 1.25fr .52fr; gap: 7vw; align-items: center; }
.about-copy { max-width: 730px; }
.about h2, .game h2, .flower h2, .dream h2, .closing h2 { font-size: clamp(48px, 6.5vw, 104px); }
.about h2 span { color: var(--orange); }
.about-copy > p:last-child, .game-copy > p, .flower-copy > p { max-width: 630px; margin: 32px 0 0; font-size: clamp(15px, 1.3vw, 19px); line-height: 1.9; color: #454c47; }
.about-note { align-self: end; margin-bottom: 35px; padding: 28px 22px; color: var(--paper); background: var(--orange); transform: rotate(3deg); box-shadow: 9px 9px 0 var(--ink); }
.note-pin { display: block; font-size: 22px; }
.about-note p { margin: 22px 0 8px; font-size: 18px; font-weight: 900; }
.about-note small { font: 400 10px/1 var(--mono); }

.game { display: grid; grid-template-columns: 1fr .85fr; gap: clamp(50px, 8vw, 130px); color: var(--paper); background: var(--ink); }
.game-visual { position: relative; min-height: 650px; overflow: hidden; border: 1px solid rgba(236,235,220,.22); background: #162219; }
.map-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(236,235,220,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(236,235,220,.08) 1px, transparent 1px); background-size: 48px 48px; }
.map-grid::after { content: ""; position: absolute; inset: 8%; border: 1px solid rgba(215,255,67,.15); border-radius: 50%; box-shadow: 0 0 0 80px rgba(215,255,67,.025), 0 0 0 160px rgba(215,255,67,.018); }
.route { position: absolute; height: 2px; transform-origin: left; background: repeating-linear-gradient(90deg, var(--acid) 0 8px, transparent 8px 15px); }
.route-a { width: 57%; left: 20%; top: 70%; transform: rotate(-33deg); }
.route-b { width: 37%; left: 53%; top: 39%; transform: rotate(31deg); }
.map-point { position: absolute; display: flex; align-items: center; gap: 8px; font: 700 9px/1 var(--mono); color: var(--acid); }
.map-point i { width: 13px; height: 13px; border: 3px solid #162219; outline: 1px solid var(--acid); border-radius: 50%; background: var(--acid); }
.point-a { left: 17%; top: 68%; }
.point-b { left: 50%; top: 36%; }
.point-c { right: 8%; top: 56%; }
.coordinates { position: absolute; left: 20px; top: 20px; font: 400 10px/1 var(--mono); letter-spacing: .12em; opacity: .5; }
.game-number { position: absolute; right: 24px; bottom: -34px; color: rgba(215,255,67,.08); font: 700 250px/1 var(--mono); letter-spacing: -.17em; }
.game-copy { align-self: center; }
.game-copy h2 span { color: var(--acid); }
.game-copy > p { color: rgba(236,235,220,.62); }
.mini-data { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 45px; }
.mini-data span { padding: 18px; border: 1px solid rgba(236,235,220,.18); font: 700 12px/1.4 var(--mono); }
.mini-data small { display: block; margin-bottom: 12px; font-size: 8px; letter-spacing: .12em; opacity: .45; }

.flower { min-height: 920px; display: grid; grid-template-columns: 1fr .85fr; gap: clamp(60px, 8vw, 140px); align-items: center; color: var(--paper); background: var(--orange); }
.flower h2 span { color: var(--acid); }
.flower-copy > p { color: rgba(236,235,220,.8); }
.flower-action { margin-top: 42px; display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.flower-button { cursor: pointer; min-width: 230px; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--ink); color: var(--paper); background: var(--ink); box-shadow: 7px 7px 0 var(--acid); font: 700 12px/1 var(--mono); transition: transform .2s ease, box-shadow .2s ease; }
.flower-button:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 var(--acid); }
.flower-button:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--acid); }
.flower-button i { font-size: 20px; color: var(--acid); font-style: normal; }
#flowerMessage { margin: 0; font: 400 11px/1 var(--mono); }
#flowerMessage strong { color: var(--acid); font-size: 20px; }
.flower-stage { position: relative; min-height: 630px; overflow: hidden; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); box-shadow: 18px 18px 0 rgba(16,24,19,.9); }
.stage-label { position: absolute; z-index: 2; top: 20px; left: 22px; margin: 0; font: 700 9px/1 var(--mono); letter-spacing: .14em; }
.sun { position: absolute; width: 190px; height: 190px; right: -40px; top: -40px; border-radius: 50%; background: var(--acid); }
.ground { position: absolute; bottom: 0; width: 100%; height: 22%; background: var(--ink); }
.flower-bed { position: absolute; inset: 0; z-index: 1; }
.plant { position: absolute; bottom: 17%; transform-origin: bottom; animation: sway 4s ease-in-out infinite alternate; }
.plant i { display: block; width: 4px; height: 180px; margin: auto; background: var(--ink); transform-origin: bottom; }
.plant b { position: absolute; top: -48px; left: 50%; transform: translateX(-50%); color: var(--pink); font: 400 90px/1 var(--sans); text-shadow: 2px 2px 0 var(--ink); }
.plant.p1 { left: 17%; }
.plant.p2 { left: 46%; animation-delay: -.8s; transform: scale(.76); }
.plant.p2 i { height: 260px; }
.plant.p2 b { color: var(--acid); }
.plant.p3 { right: 14%; animation-delay: -1.5s; transform: scale(1.1); }
.plant.p3 i { height: 220px; }
@keyframes sway { to { rotate: 3deg; } }
.stage-caption { position: absolute; z-index: 2; left: 24px; bottom: 24px; margin: 0; color: var(--paper); font-size: 15px; font-weight: 700; line-height: 1.6; }
.new-flower { position: absolute; z-index: 4; font-size: 55px; line-height: 1; color: var(--acid); text-shadow: 2px 2px 0 var(--ink); animation: bloom .75s cubic-bezier(.16,1,.3,1) both, floaty 3s .75s ease-in-out infinite alternate; transform-origin: center; }
@keyframes bloom { from { transform: scale(0) rotate(-60deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes floaty { to { translate: 0 -9px; rotate: 5deg; } }

.dream {
  position: relative;
  min-height: 850px;
  display: grid;
  grid-template-columns: .9fr 1.05fr;
  gap: clamp(60px, 8vw, 140px);
  align-items: center;
  overflow: hidden;
}
.dream::before {
  content: "04";
  position: absolute;
  left: -35px;
  bottom: -100px;
  z-index: -1;
  color: rgba(16,24,19,.04);
  font: 700 clamp(280px, 42vw, 650px)/1 var(--mono);
  letter-spacing: -.18em;
}
.dream h2 span { color: var(--orange); }
.dream-copy > p:last-child { max-width: 650px; margin: 32px 0 0; color: #454c47; font-size: clamp(15px, 1.3vw, 19px); line-height: 1.9; }
.dream-board {
  position: relative;
  min-height: 610px;
  padding: clamp(26px, 4vw, 58px);
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 18px 18px 0 var(--acid);
}
.dream-board::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -95px;
  top: -95px;
  border: 1px solid rgba(215,255,67,.35);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(215,255,67,.03), 0 0 0 90px rgba(215,255,67,.025);
}
.board-scan { position: absolute; inset: 0; opacity: .22; background: repeating-linear-gradient(0deg, transparent 0 8px, rgba(215,255,67,.09) 8px 9px); pointer-events: none; }
.board-topline { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 20px; font: 700 9px/1 var(--mono); letter-spacing: .1em; color: rgba(236,235,220,.55); }
.board-en { position: relative; z-index: 1; margin: 85px 0 12px; color: var(--acid); font: 700 12px/1 var(--mono); letter-spacing: .2em; }
.dream-board h3 { position: relative; z-index: 1; margin: 0; font-size: clamp(70px, 9vw, 138px); font-weight: 900; line-height: .78; letter-spacing: -.09em; }
.dream-board h3 span { color: var(--acid); }
.board-data { position: relative; z-index: 1; margin-top: 72px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(236,235,220,.2); border-left: 1px solid rgba(236,235,220,.2); }
.board-data span { padding: 18px; border-right: 1px solid rgba(236,235,220,.2); border-bottom: 1px solid rgba(236,235,220,.2); font: 700 12px/1.4 var(--mono); }
.board-data small { display: block; margin-bottom: 9px; color: rgba(236,235,220,.4); font-size: 8px; letter-spacing: .12em; }
.board-code { position: relative; z-index: 1; margin: 22px 0 0; color: rgba(236,235,220,.35); font: 400 9px/1 var(--mono); letter-spacing: .13em; }

.closing { min-height: 600px; display: grid; grid-template-columns: .45fr 1fr auto; align-items: center; gap: 7vw; }
.closing-mark { color: var(--orange); font: 700 clamp(110px, 19vw, 300px)/.8 var(--mono); letter-spacing: -.15em; }
.closing-copy p { font: 700 10px/1 var(--mono); letter-spacing: .15em; }
.closing-copy h2 { margin: 16px 0 23px; }
.closing-copy span { color: var(--muted); line-height: 1.8; }
.back-top { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--ink); font: 700 20px/1 var(--mono); transition: .2s; }
.back-top:hover { color: var(--paper); background: var(--ink); }
footer { padding: 22px clamp(22px, 6vw, 100px); display: flex; justify-content: space-between; gap: 20px; color: rgba(236,235,220,.6); background: var(--ink); font: 400 9px/1 var(--mono); letter-spacing: .1em; }

.reveal { opacity: 0; transform: translateY(35px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.75,.25,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 125px; }
  .operative-card { width: min(82vw, 440px); margin-top: 40px; justify-self: center; }
  .portrait-zone { height: 260px; }
  .about { grid-template-columns: 1fr; gap: 50px; }
  .about-note { max-width: 300px; justify-self: end; }
  .game, .flower, .dream { grid-template-columns: 1fr; }
  .game-visual { min-height: 520px; }
  .flower-stage { min-height: 560px; }
  .dream-board { min-height: 570px; }
  .closing { grid-template-columns: 1fr auto; }
  .closing-mark { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .cursor-glow { display: none; }
  .topbar { height: 64px; }
  .status { font-size: 0; }
  .hero { padding-top: 110px; }
  .hero h1 { font-size: clamp(58px, 18vw, 86px); }
  .operative-card { width: 95%; transform: rotate(1deg); box-shadow: 10px 10px 0 rgba(0,0,0,.35); }
  .portrait-zone { height: 230px; }
  .section { padding-block: 90px; }
  .about h2, .game h2, .flower h2, .dream h2, .closing h2 { font-size: clamp(44px, 14vw, 68px); }
  .game-visual { min-height: 430px; }
  .mini-data { grid-template-columns: 1fr; }
  .flower { min-height: auto; }
  .flower-stage { min-height: 500px; box-shadow: 10px 10px 0 rgba(16,24,19,.9); }
  .dream-board { min-height: 520px; box-shadow: 10px 10px 0 var(--acid); }
  .board-en { margin-top: 65px; }
  .board-data { margin-top: 55px; }
  .plant i { height: 120px; }
  .plant.p2 i { height: 200px; }
  .plant.p3 i { height: 150px; }
  footer { flex-direction: column; }
}

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