/* =========================================================
   BOMBKIMCHI — STYLES
   ========================================================= */
:root {
  --bg: #07090a;
  --bg-2: #0b100d;
  --panel: #0f1612;
  --panel-2: #131d18;
  --line: #1f2d26;
  --green: #3bf07a;
  --green-d: #15a04d;
  --green-l: #b8ffd2;
  --white: #f4f7f5;
  --muted: #94a89e;
  --red: #ff4d5e;
  --purple: #9b5cff;
  --gold: #ffd447;
  --px: "Press Start 2P", ui-monospace, monospace;
  --body: "Pixelify Sans", ui-sans-serif, system-ui, sans-serif;
  --shadow: 4px 4px 0 #000;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
}
img, canvas { display: block; max-width: 100%; }
a { color: var(--green); }
h1, h2, h3, h4 { font-family: var(--px); font-weight: 400; line-height: 1.35; margin: 0; }
p { margin: 0; }
kbd {
  font-family: var(--px);
  font-size: 9px;
  padding: 4px 6px;
  border: 2px solid var(--line);
  border-bottom-width: 3px;
  background: var(--panel-2);
  color: var(--white);
  border-radius: 3px;
  white-space: nowrap;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--green); color: #000; padding: 10px 14px; font-family: var(--px); font-size: 11px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.center { text-align: center; }
.small { font-size: 15px; color: var(--muted); }
.tiny { font-size: 13px; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  --b: var(--green);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--px); font-size: 12px; letter-spacing: .5px;
  padding: 14px 18px;
  border: 3px solid var(--b);
  border-radius: var(--radius);
  background: transparent; color: var(--white);
  text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .08s ease, box-shadow .08s ease, background .15s ease, color .15s ease;
  user-select: none; -webkit-user-select: none;
  min-height: 44px;
  text-align: center;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
.btn-primary { background: var(--green); color: #04130a; }
.btn-primary:hover { background: #63ff98; }
.btn-ghost { background: rgba(59,240,122,.06); }
.btn-ghost:hover { background: rgba(59,240,122,.16); }
.btn-sm { font-size: 10px; padding: 10px 12px; min-height: 40px; }
.btn-lg { font-size: 14px; padding: 18px 24px; }
.btn[disabled], .btn.is-soon {
  --b: #3a4a42;
  background: repeating-linear-gradient(-45deg, #111915 0 8px, #0d1410 8px 16px);
  color: #8fa198;
  cursor: not-allowed;
  box-shadow: 3px 3px 0 #000;
}
.btn[disabled]:hover, .btn.is-soon:hover, .btn[disabled]:active, .btn.is-soon:active { transform: none; box-shadow: 3px 3px 0 #000; }
.btn-primary.is-soon { --b: var(--green-d); color: var(--green); }

.tag {
  display: inline-block; vertical-align: middle;
  font-family: var(--px); font-size: 9px; letter-spacing: .5px;
  padding: 5px 7px; border-radius: 3px; border: 2px solid currentColor;
}
.tag-live { color: var(--green); background: rgba(59,240,122,.1); }
.tag-soon { color: var(--gold); background: rgba(255,212,71,.08); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,9,10,.78);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(7,9,10,.94); }
.nav-inner { width: min(1180px, 100% - 32px); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font-family: var(--px); font-size: 13px; }
.brand img { image-rendering: pixelated; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a:not(.btn) { color: var(--white); text-decoration: none; font-family: var(--px); font-size: 10px; opacity: .8; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav-links a:not(.btn):hover { opacity: 1; color: var(--green); border-bottom-color: var(--green); }
.nav-toggle { display: none; width: 44px; height: 44px; background: transparent; border: 2px solid var(--line); border-radius: 4px; cursor: pointer; padding: 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 3px; background: var(--white); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(7,9,10,.98); border-bottom: 2px solid var(--line);
    padding: 8px 16px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; font-size: 12px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 12px; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; border-bottom: 2px solid var(--line); }
.hero-grid {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 75% 40%, rgba(59,240,122,.16), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(155,92,255,.12), transparent 70%),
    linear-gradient(rgba(59,240,122,.05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(59,240,122,.05) 1px, transparent 1px) 0 0 / 32px 32px;
  mask-image: linear-gradient(#000 70%, transparent);
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.kicker { font-family: var(--px); font-size: 10px; color: var(--green); display: flex; align-items: center; gap: 10px; margin-bottom: 22px; line-height: 1.6; }
.dot { width: 10px; height: 10px; background: var(--green); flex: none; box-shadow: 0 0 12px var(--green); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.hero-title {
  font-size: clamp(38px, 7.4vw, 84px);
  letter-spacing: -1px;
  line-height: 1.05;
  color: var(--white);
  text-shadow: 4px 4px 0 #000, 0 0 30px rgba(59,240,122,.25);
}
.hero-title span { color: var(--green); display: inline-block; }
.ticker-chip {
  display: inline-block; margin: 18px 0 20px;
  font-family: var(--px); font-size: clamp(12px, 2vw, 16px);
  color: #04130a; background: var(--white);
  padding: 10px 14px; border-radius: 4px;
  box-shadow: 4px 4px 0 var(--green-d);
}
.hero-tag { font-size: clamp(19px, 2.3vw, 24px); max-width: 560px; color: #d6e2dc; margin-bottom: 30px; }
.hero-tag strong { color: var(--white); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.hero-cta .btn-primary { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: var(--shadow), 0 0 0 0 rgba(59,240,122,.5); } 50% { box-shadow: var(--shadow), 0 0 0 10px rgba(59,240,122,0); } }
.hero-meta { font-size: 15px; color: var(--muted); }
.hero-ca {
  display: flex; align-items: center; gap: 8px; max-width: 560px; margin-bottom: 14px;
  background: rgba(5,7,6,.7); border: 2px solid var(--line); border-radius: 4px; padding: 6px 6px 6px 12px;
}
.hero-ca-label { font-family: var(--px); font-size: 10px; color: var(--muted); flex: none; }
.hero-ca .ca { border: 0; background: none; padding: 6px 4px; font-size: 11px; }
.hero-ca .btn { flex: none; }
@media (max-width: 520px) {
  .hero-ca { flex-wrap: wrap; padding: 10px 12px; }
  .hero-ca .ca { flex: 1 1 100%; order: 2; padding: 4px 0; }
  .hero-ca-label { order: 1; }
  .hero-ca .btn { order: 3; width: 100%; }
}
.hero-social { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.hero-social .hero-meta { flex: 1 1 200px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none;
  color: var(--white); background: rgba(59,240,122,.08);
  border: 3px solid var(--green); border-radius: 4px; box-shadow: 3px 3px 0 #000;
  transition: transform .08s ease, background .15s ease, color .15s ease;
}
.icon-btn:hover { transform: translate(-2px, -2px); background: var(--green); color: #04130a; }
.icon-btn.is-soon { border-color: #3a4a42; color: #6d7f76; cursor: not-allowed; }
.si { width: 22px; height: 22px; display: block; }
.hero-art { position: relative; justify-self: center; width: 100%; max-width: 460px; }
.hero-art canvas {
  width: 100%; height: auto; image-rendering: pixelated;
  background: linear-gradient(#0b120e, #07090a);
  border: 3px solid var(--line); border-radius: 6px;
  box-shadow: 8px 8px 0 #000, 0 0 60px rgba(59,240,122,.12);
}
.hero-badge {
  position: absolute; top: -14px; right: -10px;
  font-family: var(--px); font-size: 9px; line-height: 1.6; text-align: center;
  background: var(--gold); color: #1a1400; padding: 8px 10px; border-radius: 3px;
  transform: rotate(6deg); box-shadow: 3px 3px 0 #000;
}

@media (max-width: 860px) {
  .hero { padding: 36px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { max-width: 380px; }
  .hero-badge { right: 0; }
}

/* ---------- marquee ---------- */
.marquee { background: var(--green); color: #04130a; overflow: hidden; border-block: 3px solid #000; }
.marquee-track { display: flex; gap: 22px; width: max-content; padding: 12px 0; animation: marq 30s linear infinite; font-family: var(--px); font-size: 12px; white-space: nowrap; }
.marquee i { font-style: normal; }
@keyframes marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track, .hero-cta .btn-primary, .dot { animation: none; } }

/* ---------- sections ---------- */
.section { padding: 84px 0; border-bottom: 2px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.eyebrow { font-family: var(--px); font-size: 10px; color: var(--green); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(20px, 3.2vw, 30px); text-shadow: 3px 3px 0 #000; }
.lead { margin-top: 14px; color: #c3d1ca; font-size: 19px; }
@media (max-width: 600px) { .section { padding: 60px 0; } }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- play ---------- */
.play { background: linear-gradient(var(--bg), var(--bg-2)); }
.play-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.arena { min-width: 0; width: 100%; max-width: max(320px, calc((100vh - 250px) * 15 / 13)); justify-self: center; }
.hud { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 6px; }
.hud-stats { grid-template-columns: repeat(3, 1fr); margin-bottom: 10px; }
.hud-cell {
  background: var(--panel); border: 2px solid var(--line); border-radius: 4px;
  padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.hud-cell span { font-family: var(--px); font-size: 8px; color: var(--muted); }
.hud-cell b { font-family: var(--px); font-size: 14px; font-weight: 400; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-stats .hud-cell { flex-direction: row; justify-content: space-between; align-items: center; padding: 6px 10px; }
.hud-stats .hud-cell b { font-size: 11px; color: var(--green); }
.lives { color: var(--red) !important; letter-spacing: 2px; }
.hud-time.is-danger { border-color: var(--red); animation: danger .6s steps(2) infinite; }
.hud-time.is-danger b { color: var(--red); }
@keyframes danger { 50% { background: rgba(255,77,94,.15); } }

.screen {
  position: relative;
  border: 3px solid var(--green);
  border-radius: 6px;
  box-shadow: 8px 8px 0 #000, 0 0 40px rgba(59,240,122,.15);
  overflow: hidden;
  background: #050706;
  aspect-ratio: 15 / 13;
}
.screen canvas { width: 100%; height: 100%; image-rendering: pixelated; touch-action: none; }
.screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(transparent 0 3px, rgba(0,0,0,.12) 3px 4px);
}

.overlay {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  padding: 14px;
  background: rgba(5,7,6,.82);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  overflow-y: auto;
}
.overlay[hidden] { display: none; }
.overlay { grid-template-columns: minmax(0, 1fr); }
.ov-mobile-hint { display: none; }
.ov-card {
  width: min(560px, 100%);
  background: var(--panel); border: 3px solid var(--green); border-radius: 6px;
  box-shadow: 6px 6px 0 #000;
  padding: 22px 22px 20px; text-align: center;
  animation: pop .25s cubic-bezier(.2,1.4,.4,1);
  margin: auto;
}
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
.ov-kicker { font-family: var(--px); font-size: 9px; color: var(--gold); margin-bottom: 10px; }
.ov-title { font-size: clamp(14px, 2.6vw, 22px); color: var(--green); text-shadow: 3px 3px 0 #000; margin-bottom: 8px; }
.ov-sub { color: #c3d1ca; font-size: 16px; margin-bottom: 14px; }
.ov-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.howto { list-style: none; padding: 0; margin: 6px 0 12px; text-align: left; display: grid; gap: 7px; font-size: 15px; }
.howto li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-left: 14px; position: relative; }
.howto li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; background: var(--green); }
.sw { display: inline-block; width: 16px; height: 16px; border-radius: 2px; flex: none; }
.sw-warn { background: rgba(255,77,94,.45); border: 2px solid var(--red); }
.sw-crate { background: #33222c; border: 2px solid #4a3340; box-shadow: inset 5px 0 0 -3px var(--red); }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; font-family: var(--px); font-size: 8px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.ov-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.ov-stats div { background: var(--panel-2); border: 2px solid var(--line); border-radius: 4px; padding: 10px 6px; }
.ov-stats dt { font-family: var(--px); font-size: 8px; color: var(--muted); margin-bottom: 6px; }
.ov-stats dd { margin: 0; font-family: var(--px); font-size: 13px; color: var(--white); }
.newbest { font-style: normal; color: var(--gold); font-size: 8px; display: block; margin-top: 4px; }
.ov-save { text-align: left; margin-top: 4px; }
.ov-save label { font-size: 14px; color: var(--muted); display: block; margin-bottom: 6px; }
.ov-save-row { display: flex; gap: 8px; }
.ov-save input {
  flex: 1; min-width: 0; font-family: var(--px); font-size: 12px; text-transform: uppercase;
  background: #050706; color: var(--white); border: 3px solid var(--line); border-radius: 4px; padding: 10px 12px; min-height: 44px;
}
.ov-save input:focus { border-color: var(--green); outline: none; }
.ov-note { font-size: 13px; color: var(--green); margin-top: 6px; min-height: 1em; }

/* power-up icons (CSS pixel badges) */
.pu { display: inline-block; width: 22px; height: 22px; border: 2px solid var(--green); border-radius: 3px; background: rgba(59,240,122,.15); position: relative; flex: none; }
.pu::after { content: ""; position: absolute; inset: 5px; }
.pu-bomb::after { background: #e3462c; box-shadow: inset 0 3px 0 var(--green); border-radius: 2px; }
.pu-fire::after { background: var(--green); clip-path: polygon(50% 0, 85% 45%, 75% 100%, 25% 100%, 15% 45%); }
.pu-speed::after { background: var(--gold); clip-path: polygon(55% 0, 20% 55%, 48% 55%, 35% 100%, 80% 40%, 52% 40%); }
.pu-life::after { background: var(--red); clip-path: polygon(50% 100%, 0 40%, 15% 5%, 50% 25%, 85% 5%, 100% 40%); }
.pu-crate { border-color: #4a3340; background: #2a1c24; }
.pu-crate::after { background: linear-gradient(90deg, transparent 40%, var(--red) 40% 60%, transparent 60%); }
.pu-warn { border-color: var(--red); background: rgba(255,77,94,.35); }
.pu-warn::after { display: none; }

.controls-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.controls-bar .btn { flex: 1 1 auto; }

/* touch controls */
.touch { display: none; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.dpad { display: grid; grid-template-columns: repeat(3, 60px); grid-template-rows: repeat(3, 60px); gap: 4px; }
.dp {
  font-size: 20px; color: var(--white); background: var(--panel-2);
  border: 3px solid var(--line); border-radius: 8px; touch-action: none; cursor: pointer;
  box-shadow: 3px 3px 0 #000;
}
.dp.is-down, .dp:active { background: var(--green); color: #04130a; border-color: var(--green); transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.dp-up { grid-column: 2; grid-row: 1; }
.dp-left { grid-column: 1; grid-row: 2; }
.dp-right { grid-column: 3; grid-row: 2; }
.dp-down { grid-column: 2; grid-row: 3; }
.jar-btn {
  flex: none;
  width: 116px; height: 116px; border-radius: 50%;
  font-family: var(--px); font-size: 16px; color: #fff;
  background: radial-gradient(circle at 35% 30%, #ff7a5c, #e3462c 55%, #a52a17);
  border: 4px solid var(--green); box-shadow: 5px 5px 0 #000;
  touch-action: none; cursor: pointer;
}
.jar-btn.is-down, .jar-btn:active { transform: translate(3px, 3px) scale(.97); box-shadow: 2px 2px 0 #000; }
@media (pointer: coarse), (max-width: 760px) {
  .touch { display: flex; }
}

/* sidebar */
.side { display: grid; gap: 16px; }
.card {
  background: var(--panel); border: 2px solid var(--line); border-radius: 6px;
  padding: 18px; box-shadow: var(--shadow);
}
.card h3 { font-size: 11px; color: var(--green); margin-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.keys { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 9px; }
.keys li { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.keys li span { margin-left: auto; color: var(--muted); }
.legend-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; font-size: 15px; }
.legend-list li { display: flex; gap: 10px; align-items: flex-start; }
.legend-list b { color: var(--white); font-weight: 600; }
.t-red { color: var(--red); } .t-purple { color: var(--purple); } .t-gray { color: #b6c0c8; }
.best-num { font-family: var(--px); font-size: 28px; color: var(--green); margin-bottom: 8px; text-shadow: 3px 3px 0 #000; }
.card-wallet { border-style: dashed; }
.card-wallet .btn { width: 100%; margin: 12px 0 10px; font-size: 9px; }

@media (max-width: 1020px) {
  .play-grid { grid-template-columns: 1fr; }
  .side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .side { grid-template-columns: 1fr; }
  .hud { grid-template-columns: repeat(3, 1fr); }
  .hud-cell { padding: 6px 8px; }
  .hud-cell b { font-size: 12px; }
  .hud-cell:nth-child(4), .hud-cell:nth-child(5) { grid-column: span 1; }
  .hud:first-child { grid-template-columns: repeat(6, 1fr); }
  .hud:first-child .hud-cell { grid-column: span 2; }
  .hud:first-child .hud-cell:nth-child(n+4) { grid-column: span 3; }
  .overlay { padding: 8px; place-items: start center; }
  .ov-card { padding: 14px 12px; border-width: 2px; box-shadow: none; }
  .ov-title { font-size: 13px; }
  .ov-sub { font-size: 14px; margin-bottom: 8px; }
  .ov-kicker { font-size: 8px; }
  .overlay[data-kind="title"] .ov-kicker,
  .overlay[data-kind="title"] .howto, .overlay[data-kind="title"] .legend { display: none; }
  .ov-mobile-hint { display: block; font-size: 14px; color: var(--muted); }
  .ov-stats { margin: 8px 0; gap: 6px; }
  .ov-stats dd { font-size: 11px; }
  .ov-actions { margin-top: 10px; }
  .ov-actions .btn { font-size: 10px; padding: 10px 12px; }
  .howto { font-size: 14px; gap: 5px; }
  .dpad { grid-template-columns: repeat(3, 54px); grid-template-rows: repeat(3, 54px); }
  .jar-btn { width: 104px; height: 104px; }
  .controls-bar .btn { font-size: 9px; padding: 8px; }
}

/* ---------- token ---------- */
.token-card {
  background: var(--panel); border: 3px solid var(--green); border-radius: 8px;
  box-shadow: 8px 8px 0 #000; padding: clamp(18px, 4vw, 34px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px;
}
.label { font-family: var(--px); font-size: 9px; color: var(--muted); display: block; margin-bottom: 10px; }
.ca-row { display: flex; gap: 10px; align-items: stretch; }
.ca {
  flex: 1; min-width: 0; display: flex; align-items: center;
  font-family: var(--px); font-size: clamp(10px, 1.6vw, 14px);
  background: #050706; border: 2px dashed var(--line); border-radius: 4px;
  padding: 14px; word-break: break-all; color: var(--white);
}
.ca.is-soon { color: var(--green); letter-spacing: 1px; word-break: normal; }
.ca-box .tiny { margin-top: 10px; }
.token-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; margin: 0; }
.facts div { background: var(--panel-2); border: 2px solid var(--line); border-radius: 4px; padding: 14px; }
.facts dt { font-family: var(--px); font-size: 8px; line-height: 1.6; color: var(--muted); margin-bottom: 8px; }
.facts dd { margin: 0; font-size: 18px; font-weight: 600; }
.risk { font-size: 15px; color: #c3d1ca; border-left: 4px solid var(--gold); padding: 10px 14px; background: rgba(255,212,71,.05); }
.risk b { color: var(--gold); }
@media (max-width: 760px) {
  .token-actions { grid-template-columns: 1fr; }
  .ca-row { flex-direction: column; }
}

/* ---------- utility ---------- */
.util-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 26px; }
.col-title { margin-bottom: 14px; }
.util-col { display: grid; gap: 14px; align-content: start; }
.util-card { background: var(--panel); border: 2px solid var(--green-d); border-radius: 6px; padding: 18px; box-shadow: var(--shadow); }
.util-card h4 { font-size: 12px; color: var(--green); margin-bottom: 8px; }
.util-card p { color: #c3d1ca; font-size: 16px; }
.util-card.is-planned { border-style: dashed; border-color: #4a4426; }
.util-card.is-planned h4 { color: var(--gold); }
@media (max-width: 760px) { .util-cols { grid-template-columns: 1fr; } }

/* ---------- leaderboard ---------- */
.lb-card { background: var(--panel); border: 2px solid var(--line); border-radius: 8px; padding: clamp(14px, 3vw, 26px); box-shadow: 8px 8px 0 #000; max-width: 760px; }
.lb { width: 100%; border-collapse: collapse; font-family: var(--px); font-size: 11px; }
.lb th { text-align: left; color: var(--muted); font-weight: 400; font-size: 8px; padding: 0 10px 12px; border-bottom: 2px solid var(--line); }
.lb td { padding: 12px 10px; border-bottom: 1px solid var(--line); }
.lb td:last-child, .lb th:last-child { text-align: right; color: var(--green); }
.lb tr.top1 td:first-child { color: var(--gold); }
.lb tr.top2 td:first-child { color: #d9e2de; }
.lb tr.top3 td:first-child { color: #e39a5b; }
.lb-empty { text-align: center; color: var(--muted); padding: 22px 0; }
.lb-card .center { margin-top: 20px; }

/* ---------- community ---------- */
.community { background: radial-gradient(60% 80% at 50% 100%, rgba(59,240,122,.1), transparent 70%); }
.community-inner .section-head { margin-inline: auto; text-align: center; }
.social-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 16px; }
.btn-social { font-size: 13px; padding: 18px 24px; min-width: 260px; }
.btn-social .ico { display: inline-flex; }

/* ---------- footer ---------- */
.footer { padding: 40px 0 56px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a { color: var(--muted); text-decoration: none; font-family: var(--px); font-size: 9px; }
.foot-links a:hover { color: var(--green); }
.footer .tiny { max-width: 860px; margin-bottom: 10px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  transform: translate(-50%, 140%);
  background: var(--green); color: #04130a;
  font-family: var(--px); font-size: 10px; padding: 12px 16px; border-radius: 4px;
  box-shadow: 4px 4px 0 #000; transition: transform .25s ease, opacity .25s ease, visibility .25s;
  max-width: calc(100% - 32px); text-align: center;
  opacity: 0; visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
