:root {
  --green: #3bff14;
  --ink: #111111;
  --paper: #fffdf8;
  --apple: #e10600;
  --shadow: 6px 6px 0 #111;
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #111;
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  overflow-x: hidden;
  position: relative;
}
.meme-wall {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  pointer-events: none;
}
.meme-wall img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  opacity: 0.42;
  filter: grayscale(0.15);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.bg-orbit {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.floater {
  position: absolute;
  line-height: 1;
  animation: drift linear infinite;
  user-select: none;
}
.floater.apple { font-size: 46px; opacity: 0.55; }

@keyframes drift {
  0% { transform: translateY(110vh) rotate(0deg); }
  100% { transform: translateY(-30vh) rotate(360deg); }
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.ticker {
  position: relative;
  z-index: 2;
  background: #111;
  color: var(--green);
  border-bottom: 4px solid #111;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  padding: 10px 0;
  font-family: "Lilita One", sans-serif;
  letter-spacing: 0.08em;
  animation: marquee 18s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(59, 255, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 4px solid var(--ink);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav-links { order: 2; }
.nav-actions { order: 3; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Lilita One", sans-serif;
  font-size: 28px;
  letter-spacing: 0.02em;
}
.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  object-fit: cover;
  object-position: center 30%;
  background: var(--green);
}
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a {
  text-decoration: none;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav-links a:hover { background: #111; color: var(--green); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  background: #111;
  color: var(--green);
  border: 3px solid #111;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 900;
  box-shadow: 4px 4px 0 #083000;
  transition: transform 0.15s ease;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { transform: translate(-2px, -2px); }
.btn.light {
  background: var(--green);
  color: #111;
  box-shadow: 4px 4px 0 #111;
}
.btn.apple {
  background: var(--apple);
  color: white;
  border-color: #111;
  box-shadow: 4px 4px 0 #111;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: 42px 0 20px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111;
  color: var(--green);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 900;
  box-shadow: var(--shadow);
  animation: pop 2.8s ease-in-out infinite;
}
@keyframes pop {
  0%, 100% { transform: rotate(-1.5deg); }
  50% { transform: rotate(1.5deg); }
}
h1 {
  font-family: "Lilita One", sans-serif;
  font-size: clamp(56px, 9vw, 108px);
  line-height: 0.86;
  margin: 16px 0 8px;
  letter-spacing: -0.02em;
}
h1 span { color: var(--apple); }
.lede {
  font-size: 20px;
  font-weight: 800;
  max-width: 520px;
  margin: 0 0 18px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ca-row {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  align-items: center;
  background: #111;
  color: var(--green);
  border: 3px solid var(--green);
  border-radius: 16px;
  padding: 8px 8px 8px 14px;
  box-shadow: var(--shadow);
  max-width: 560px;
}
.ca-row code {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copy {
  flex: 0 0 auto;
  border: 3px solid #111;
  background: var(--green);
  color: #111;
  font-weight: 900;
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
}

.stage {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}
.mascot {
  width: min(420px, 86vw);
  border-radius: 40px;
  border: 5px solid var(--ink);
  box-shadow: 10px 10px 0 #111;
  background: var(--green);
  animation: bob 3.4s ease-in-out infinite;
  position: relative;
  z-index: 2;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.tired {
  position: absolute;
  right: 4%;
  bottom: 8%;
  background: #111;
  color: var(--green);
  border: 3px solid var(--green);
  border-radius: 18px;
  padding: 10px 12px;
  font-weight: 900;
  box-shadow: var(--shadow);
  z-index: 4;
  animation: pop 2.2s ease-in-out infinite reverse;
}

.icon-btn {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff;
  border: 3px solid #111;
  border-radius: 50%;
  box-shadow: 3px 3px 0 #111;
}
.icon-btn svg { width: 24px; height: 24px; }

.band { position: relative; z-index: 1; overflow: hidden; }
.band-green { background: rgba(59, 255, 20, 0.78); color: #111; }
.band-yellow { background: rgba(17, 17, 17, 0.72); color: var(--green); }
.band-yellow .panel { color: #111; }
.band-gallery { background: rgba(17, 17, 17, 0.62); color: var(--green); }
.band-gallery .lede { color: var(--green); }
.band-pink { background: rgba(59, 255, 20, 0.78); color: #111; }
.band-blue { background: rgba(17, 17, 17, 0.72); color: var(--green); }
.band-navy { background: rgba(17, 17, 17, 0.72); color: var(--green); }
.band-navy .lede { color: var(--green); }
.band-purple { background: rgba(59, 255, 20, 0.78); color: #111; }
.band-orange { background: rgba(17, 17, 17, 0.72); color: var(--green); }
footer {
  background: rgba(17, 17, 17, 0.82);
  color: var(--green);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  margin: 0;
  background: #111;
  color: var(--green);
  border: 4px solid var(--green);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 8px 8px 0 #000;
  transform: none;
}
.tilt-b, .tilt-c { transform: none; box-shadow: 8px 8px 0 #000; }
.card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
}
.card figcaption {
  padding: 10px 12px 12px;
  font-weight: 900;
}

section { padding: 28px 0 18px; position: relative; z-index: 1; }
h2 {
  font-family: "Lilita One", sans-serif;
  font-size: clamp(36px, 6vw, 62px);
  margin: 0 0 12px;
  line-height: 0.95;
}
.panel {
  background: var(--green);
  color: #111;
  border: 4px solid #111;
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 #000;
  padding: 22px;
}
.story {
  font-size: 20px;
  font-weight: 750;
  line-height: 1.45;
}
.story em { font-style: normal; color: var(--apple); }
.stat, .step, .road {
  border: 4px solid #111;
  border-radius: 20px;
  box-shadow: 6px 6px 0 #111;
  padding: 16px;
  background: var(--green);
  color: #111;
}
.band-green .stat,
.band-green .step,
.band-green .road,
.band-pink .stat,
.band-pink .step,
.band-pink .road,
.band-purple .stat,
.band-purple .step,
.band-purple .road {
  background: #111;
  color: var(--green);
  border-color: var(--green);
  box-shadow: 6px 6px 0 #000;
}
.yellow, .pink, .blue, .purple { background: inherit; color: inherit; }

.grid-3, .grid-4 { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.stat b, .step b {
  display: block;
  font-family: "Lilita One", sans-serif;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 6px;
}
.stat span, .step span { font-weight: 800; }
.step { animation: bob 4s ease-in-out infinite; }
.step:nth-child(2) { animation-delay: 0.4s; }
.step:nth-child(3) { animation-delay: 0.8s; }

.chart-frame {
  margin-top: 14px;
  border: 4px solid var(--green);
  border-radius: 20px;
  overflow: hidden;
  background: #111;
  min-height: 460px;
  box-shadow: 8px 8px 0 var(--green);
}
.chart-frame iframe {
  width: 100%;
  height: 560px;
  border: 0;
  display: block;
  background: #111;
}
.chart-empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  color: var(--green);
  font-weight: 900;
}
.chart-empty strong { font-size: 42px; display: block; }

.road small {
  font-family: "Lilita One", sans-serif;
  letter-spacing: 0.08em;
  color: var(--apple);
}
.road h3 { margin: 6px 0; font-size: 22px; }
.road p { margin: 0; font-weight: 750; }

.game {
  background: #111;
  color: var(--green);
  border: 4px solid var(--green);
  border-radius: 24px;
  box-shadow: 8px 8px 0 #000;
  padding: 16px;
}
.game-top {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.pill {
  border: 3px solid #111;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 900;
  background: var(--green);
  color: #111;
}
.arena {
  position: relative;
  height: 420px;
  border: 4px solid #111;
  border-radius: 22px;
  overflow: hidden;
  background: var(--green);
  touch-action: manipulation;
}
.face {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  border: 4px solid #111;
  border-radius: 50%;
  background: #fff;
  z-index: 2;
  box-shadow: 4px 4px 0 #111;
}
.face:before, .face:after {
  content: "";
  position: absolute;
  top: 34px;
  width: 18px;
  height: 8px;
  border-bottom: 4px solid #111;
  border-radius: 0 0 10px 10px;
}
.face:before { left: 16px; }
.face:after { right: 16px; }
.ring { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.locked {
  position: absolute;
  font-size: 28px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(1px 1px 0 #111);
}
.drifter {
  position: absolute;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  user-select: none;
  border: 0;
  background: transparent;
  padding: 0;
  filter: drop-shadow(2px 2px 0 #111);
}
.result { font-weight: 900; margin: 12px 0 0; }

footer {
  position: relative;
  z-index: 1;
  margin-top: 36px;
  border-top: 4px solid var(--ink);
  padding: 22px 0 32px;
  font-weight: 800;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
}
.fine { max-width: 680px; font-size: 13px; font-weight: 700; }


.buy-short { display: none; }
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 3px solid #111;
  border-radius: 12px;
  background: #111;
  box-shadow: 3px 3px 0 #083000;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--green);
  border-radius: 2px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.menu-btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .wrap { width: min(var(--max), calc(100% - 20px)); }
  nav { position: sticky; }
  .nav-inner { min-height: 64px; position: relative; gap: 8px; }
  .brand { font-size: 22px; min-width: 0; gap: 8px; }
  .brand img { width: 38px; height: 38px; flex: 0 0 auto; }
  .nav-actions { gap: 6px; flex: 0 0 auto; }
  .nav-tg { width: 42px; height: 42px; box-shadow: none; }
  .menu-btn { display: inline-flex; flex: 0 0 auto; box-shadow: none; }
  .hero-tg { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 30;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    background: #3bff14;
    border: 4px solid #111;
    border-radius: 18px;
    box-shadow: 6px 6px 0 #111;
  }
  .nav-links.open { display: flex; }
  .nav-links a.hide-sm {
    display: block;
    padding: 12px 14px;
    font-size: 18px;
    background: #111;
    color: var(--green);
  }
  .nav-buy { min-height: 42px; padding: 8px 14px; box-shadow: none; }
  .buy-long { display: none; }
  .buy-short { display: inline; }

  .hero, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero > div { min-width: 0; width: 100%; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .meme-wall { grid-template-columns: 1fr 1fr; }
  .meme-wall img { height: 180px; opacity: 0.32; }
  .meme-wall img:nth-child(n + 9) { display: none; }
  .card, .tilt-a, .tilt-b, .tilt-c { transform: none; }
  .card img { height: 160px; }
  .stage { min-height: 0; order: -1; padding: 8px 8px 4px; width: 100%; }
  .mascot { width: min(300px, 100%); border-radius: 28px; border-width: 4px; box-shadow: 5px 5px 0 #111; }
  .tired { right: 10px; bottom: 10px; font-size: 13px; padding: 8px 10px; }
  .kicker { max-width: 100%; }
  h1 { font-size: clamp(48px, 14vw, 68px); overflow-wrap: anywhere; }
  h2 { font-size: clamp(32px, 9vw, 48px); }
  .lede, .story { font-size: 17px; overflow-wrap: break-word; }
  .hero { gap: 14px; padding: 16px 0 8px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; width: 100%; min-height: 50px; }
  .ca-row { width: 100%; max-width: none; box-shadow: 4px 4px 0 #111; padding: 6px 6px 6px 12px; }
  .ca-row code { font-size: 12px; }
  .copy { min-height: 40px; padding: 8px 12px; }
  .chart-frame { min-height: 280px; }
  .chart-frame iframe { height: 300px; }
  .chart-empty { min-height: 220px; }
  .chart-empty strong { font-size: 22px; letter-spacing: 0.04em; }
  .arena { height: 320px; }
  .drifter {
    font-size: 40px;
    min-width: 48px;
    min-height: 48px;
  }
  .panel, .game { padding: 14px; }
  .stat b, .step b { font-size: 24px; }
  .ticker-track { font-size: 14px; letter-spacing: 0.04em; }
  .foot { align-items: flex-start; }
  .floater.apple { font-size: 32px; }
}

@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  .card img { height: 220px; }
  .kicker { font-size: 14px; letter-spacing: 0; padding: 6px 10px; }
  h1 { font-size: clamp(44px, 13.5vw, 58px); }
  .brand { font-size: 20px; }
  .arena { height: 280px; }
  .chart-frame iframe { height: 260px; }
  section { padding: 20px 0 12px; }
  .grid-4, .grid-3 { gap: 10px; }
  .panel, .game, .card { box-shadow: 4px 4px 0 #000; }
}

@supports (padding: max(0px)) {
  body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  footer { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
}
