:root {
  --bg: #06070d;
  --bg2: #0b0d18;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-b: rgba(255, 255, 255, 0.09);
  --text: #eef0ff;
  --muted: #a3a9cc;
  --amber: #ffb938;
  --teal: #35f0cf;
  --violet: #8a6bff;
  --pink: #ff6fae;
  --radius: 18px;
  --maxw: 1140px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 85% -5%, rgba(138, 107, 255, 0.28), transparent 60%),
    radial-gradient(700px 480px at 5% 12%, rgba(53, 240, 207, 0.16), transparent 60%),
    radial-gradient(800px 520px at 50% 105%, rgba(255, 185, 56, 0.14), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
section { padding: 88px 0; position: relative; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
  font-weight: 700;
}
h1, h2, h3 { line-height: 1.12; margin: 0 0 14px; letter-spacing: -0.02em; }
h1 { font-size: clamp(38px, 7vw, 76px); font-weight: 800; }
h2 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 14px; color: var(--muted); }
.lead { font-size: clamp(17px, 2vw, 21px); color: #c9cdea; max-width: 720px; }
.grad {
  background: linear-gradient(100deg, var(--amber), var(--pink) 45%, var(--violet) 80%, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* nav */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 7, 13, 0.72);
  border-bottom: 1px solid var(--panel-b);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: #c9cdea; font-size: 14.5px; font-weight: 600; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.menu-btn { display: none; background: none; border: 1px solid var(--panel-b); color: var(--text); border-radius: 10px; padding: 8px 12px; font-size: 14px; cursor: pointer; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: linear-gradient(100deg, var(--amber), #ff8a4c); color: #1a1100; box-shadow: 0 10px 30px rgba(255, 150, 56, 0.28); }
.btn-ghost { background: var(--panel); border-color: var(--panel-b); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* hero */
.hero { padding: 90px 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 40px; align-items: center; }
.hero .lead { margin: 18px 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.coin {
  position: relative;
  width: min(360px, 80vw);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--amber), var(--pink), var(--violet), var(--teal), var(--amber));
  display: grid;
  place-items: center;
  animation: spin 18s linear infinite;
  box-shadow: 0 0 120px rgba(138, 107, 255, 0.35), inset 0 0 40px rgba(0, 0, 0, 0.35);
}
.coin::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #1a1d33, #090a14 70%);
}
.coin-face { position: absolute; inset: 0; display: grid; place-items: center; animation: spin 18s linear infinite reverse; }
.coin-face img { width: 46%; filter: drop-shadow(0 6px 24px rgba(255, 185, 56, 0.45)); }
.coin-face span { position: absolute; bottom: 17%; font-weight: 800; letter-spacing: 0.3em; font-size: 13px; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--panel-b);
  font-size: 13px;
  color: var(--muted);
}
.chip code { color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }
.copy {
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.copy:hover { background: rgba(255, 255, 255, 0.18); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
.stat { background: var(--panel); border: 1px solid var(--panel-b); border-radius: var(--radius); padding: 18px; }
.stat b { display: block; font-size: clamp(18px, 2.6vw, 26px); letter-spacing: -0.02em; word-break: break-word; }
.stat small { color: var(--muted); font-size: 12.5px; }

/* cards */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--panel);
  border: 1px solid var(--panel-b);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.2); }
.card .ico { font-size: 28px; margin-bottom: 10px; display: block; }
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.tag.live { background: rgba(53, 240, 207, 0.14); color: var(--teal); }
.tag.build { background: rgba(255, 185, 56, 0.14); color: var(--amber); }
.tag.plan { background: rgba(138, 107, 255, 0.18); color: #b9a8ff; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 8px 0 8px 30px; position: relative; color: #c9cdea; border-bottom: 1px dashed var(--panel-b); }
.checks li:last-child { border-bottom: 0; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.checks.soon li::before { content: "◔"; color: var(--amber); }

/* tokenomics */
.toke { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: center; }
.donut {
  width: min(340px, 80vw);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--amber) 0 50%, var(--teal) 50% 75%, var(--violet) 75% 85%, var(--pink) 85% 95%, #6c7399 95% 100%);
  display: grid;
  place-items: center;
}
.donut > div { width: 62%; aspect-ratio: 1; border-radius: 50%; background: var(--bg2); display: grid; place-items: center; text-align: center; }
.donut b { font-size: 24px; display: block; letter-spacing: -0.02em; }
.donut small { color: var(--muted); }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
table.t th, table.t td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--panel-b); }
table.t th { color: var(--muted); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.chartbox { background: var(--panel); border: 1px solid var(--panel-b); border-radius: var(--radius); padding: 20px; margin-top: 24px; }
.chartbox svg { width: 100%; height: auto; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); margin-top: 10px; }

/* roadmap */
.road { position: relative; margin-top: 34px; padding-left: 28px; }
.road::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--amber), var(--violet), var(--teal)); }
.step { position: relative; margin-bottom: 18px; }
.step::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 22px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--amber);
}
.step.done::before { background: var(--teal); border-color: var(--teal); }
.step .when { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; color: var(--amber); text-transform: uppercase; }
.step ul { margin: 8px 0 0; padding-left: 18px; color: #c9cdea; }
.step li { margin: 3px 0; }

/* steps for utility flow */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; margin-top: 26px; }
.flow div { background: var(--panel); border: 1px solid var(--panel-b); border-radius: var(--radius); padding: 20px; counter-increment: s; }
.flow div::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--amber); color: #1a1100; font-weight: 800; margin-bottom: 10px; }

/* forms */
form { display: grid; gap: 12px; }
label { font-size: 13px; color: var(--muted); font-weight: 600; }
input, select, textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-b);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  margin-top: 6px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--violet); outline-offset: 1px; }
select option { background: #11142a; }

.notice {
  border: 1px solid rgba(255, 185, 56, 0.35);
  background: rgba(255, 185, 56, 0.07);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: #e9d9b5;
  font-size: 14px;
}
.notice b { color: var(--amber); }
.faq details { background: var(--panel); border: 1px solid var(--panel-b); border-radius: 14px; padding: 16px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 10px 0 0; }

footer { border-top: 1px solid var(--panel-b); padding: 40px 0 60px; color: var(--muted); font-size: 13.5px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; margin-bottom: 26px; }
footer h4 { color: var(--text); margin: 0 0 10px; font-size: 14px; }
footer a { display: block; color: var(--muted); padding: 3px 0; }
footer a:hover { color: #fff; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .coin, .coin-face { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
  .hero-grid, .toke { grid-template-columns: 1fr; }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  footer .cols { grid-template-columns: 1fr; }
  .menu-btn { display: block; }
  .nav-links { display: none; position: absolute; top: 66px; left: 0; right: 0; background: rgba(6, 7, 13, 0.97); flex-direction: column; align-items: flex-start; padding: 18px 20px 24px; gap: 16px; border-bottom: 1px solid var(--panel-b); }
  .nav-links.open { display: flex; }
}
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .g2, .g3, .flow { grid-template-columns: 1fr; }
}

/* hero artwork (3D coin) */
.hero-art { position: relative; width: min(430px, 88vw); aspect-ratio: 1; margin: 0 auto; }
.hero-art::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 185, 56, 0.32), transparent 68%);
  filter: blur(34px);
  z-index: 0;
}
.hero-art img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: floaty 6s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 71%);
  mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 71%);
}
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } }
.brand img, footer .brand img { border-radius: 8px; }

/* ===== cosmic theme: universe canvas, intro, centered hero ===== */
#universe { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
body::after { display: none; }
body { background: #03040a; }
.hero-center { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 96px 0 48px; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-center .hero-copy { max-width: 860px; margin: 0 auto; }
.hero-center .hero-copy.wrap { max-width: var(--maxw); }
.hero-center .lead { margin: 18px auto 28px; }
.hero-center .cta-row { justify-content: center; }
.hero-center h1 { font-size: clamp(34px, 6.2vw, 68px); }
.hero-coin { position: relative; width: min(340px, 58vw); aspect-ratio: 1; margin: 0 auto 8px; }
.hero-coin::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 185, 56, 0.4), transparent 68%); filter: blur(36px); }
.hero-coin img { position: relative; width: 100%; height: 100%; object-fit: contain; -webkit-mask-image: radial-gradient(circle, #000 58%, transparent 71%); mask-image: radial-gradient(circle, #000 58%, transparent 71%); animation: floaty 6s ease-in-out infinite; }
.hero-center .stats { margin-top: 34px; text-align: left; }

/* intro choreography */
html.intro-active, html.intro-active body { overflow: hidden; }
html.intro-active header.nav { opacity: 0; pointer-events: none; }
header.nav { transition: opacity 0.8s ease; }
html.intro-active:not(.blast) .hero-coin { opacity: 0; transform: scale(0.05); }
html.intro-active:not(.blast) .hero-copy { opacity: 0; transform: translateY(16px); }
html.blast .hero-coin { animation: coinIn 1.6s cubic-bezier(0.18, 1.35, 0.3, 1) both; }
html.blast .hero-coin img { animation: floaty 6s ease-in-out 1.6s infinite; }
html.blast .hero-copy { animation: copyIn 1.1s ease 0.7s both; }
@keyframes coinIn { 0% { opacity: 0; transform: scale(0.05) rotate(-40deg); filter: brightness(4); } 55% { opacity: 1; transform: scale(1.12) rotate(6deg); filter: brightness(1.8); } 100% { opacity: 1; transform: scale(1) rotate(0); filter: brightness(1); } }
@keyframes copyIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.intro-cap { position: fixed; left: 0; right: 0; bottom: 18vh; z-index: 60; text-align: center; font-size: clamp(11px, 1.6vw, 14px); letter-spacing: 0.42em; color: #ffd98a; opacity: 0; transition: opacity 0.7s ease; pointer-events: none; text-shadow: 0 0 22px rgba(255, 185, 56, 0.6); padding: 0 16px; }
.intro-cap.on { opacity: 1; }
.intro-skip { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: none; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--panel-b); color: var(--text); border-radius: 999px; padding: 9px 16px; font: 600 13px/1 inherit; cursor: pointer; backdrop-filter: blur(8px); }
.intro-skip:hover { background: rgba(255, 255, 255, 0.16); }
html.intro-active .intro-skip { display: block; }
section:not(.hero) { background: linear-gradient(180deg, rgba(3, 4, 10, 0.55), rgba(3, 4, 10, 0.35)); }
@media (prefers-reduced-motion: reduce) {
  html.blast .hero-coin, html.blast .hero-coin img, html.blast .hero-copy { animation: none; }
  .hero-coin img { animation: none; }
}
@media (max-width: 600px) { .hero-center { padding-top: 84px; } .hero-center .stats { grid-template-columns: repeat(2, 1fr); } }

/* enter gate, sound toggle */
.gate { position: fixed; inset: 0; z-index: 90; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; background: radial-gradient(circle at 50% 38%, rgba(255, 185, 56, 0.14), transparent 55%), rgba(3, 4, 10, 0.93); }
html.intro-active:not(.started) .gate { display: flex; }
.gate img { width: 112px; height: 112px; filter: drop-shadow(0 8px 30px rgba(255, 185, 56, 0.45)); }
.gate h2 { margin: 6px 0 0; font-size: clamp(26px, 5vw, 40px); }
.gate p { margin: 0 0 10px; }
.gate-link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; padding: 6px; }
.gate-link:hover { color: #fff; }
html.intro-active:not(.started) .intro-skip { display: none; }
.sound-toggle { position: fixed; left: 16px; bottom: 16px; z-index: 75; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--panel-b); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; backdrop-filter: blur(8px); }
.sound-toggle:hover { background: rgba(255, 255, 255, 0.16); }
html.intro-active:not(.started) .sound-toggle { display: none; }

/* ===== AI agent gate: futuristic / robotic ===== */
html.intro-active:not(.gate-done) .gate { display: flex; }
.gate { gap: 8px; padding: 18px 16px 22px; justify-content: space-between; overflow: hidden;
  background:
    radial-gradient(circle at 50% 36%, rgba(53, 240, 207, 0.12), transparent 52%),
    repeating-linear-gradient(0deg, rgba(53, 240, 207, 0.035) 0 1px, transparent 1px 4px),
    linear-gradient(rgba(53, 240, 207, 0.05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(53, 240, 207, 0.05) 1px, transparent 1px) 0 0 / 48px 48px,
    rgba(2, 5, 10, 0.96); }
.gate::before, .gate::after { content: ""; position: absolute; width: 44px; height: 44px; border: 2px solid rgba(53, 240, 207, 0.7); pointer-events: none; }
.gate::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.gate::after { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.gate-hud { width: 100%; max-width: 760px; display: flex; justify-content: space-between; gap: 12px; padding: 4px 12px; font: 600 11px/1.2 ui-monospace, Consolas, Menlo, monospace; letter-spacing: 0.22em; color: rgba(53, 240, 207, 0.85); text-transform: uppercase; }
.gate-hud span:first-child::before { content: "\25CF  "; color: #35f0cf; animation: blip 1.4s steps(2, jump-none) infinite; }
@keyframes blip { 50% { opacity: 0.25; } }
.gate-stage { position: relative; width: min(88vw, 380px); height: min(44vh, 430px); margin-top: 4px; }
.gate-stage canvas { width: 100%; height: 100%; display: block; }
.agent-tag { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); font: 600 10.5px/1 ui-monospace, Consolas, Menlo, monospace; letter-spacing: 0.3em; color: rgba(165, 146, 255, 0.95); white-space: nowrap; text-transform: uppercase; }
.agent-line { min-height: 3.2em; max-width: 520px; margin: 2px auto 0; text-align: center; font: 500 clamp(13px, 2.6vw, 16px)/1.55 ui-monospace, Consolas, Menlo, monospace; color: #bff8ef; text-shadow: 0 0 14px rgba(53, 240, 207, 0.55); }
.agent-line:not(:empty)::after { content: "\2588"; margin-left: 2px; color: #35f0cf; animation: blip 0.9s steps(2, jump-none) infinite; }
.agent-voice { background: rgba(165, 146, 255, 0.14); border: 1px solid rgba(165, 146, 255, 0.6); color: #d8d0ff; font: 600 12px/1 ui-monospace, Consolas, Menlo, monospace; letter-spacing: 0.12em; padding: 9px 16px; cursor: pointer; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); text-transform: uppercase; animation: pulseGlow 1.6s ease-in-out infinite; }
.agent-voice[hidden] { display: none; }
@keyframes pulseGlow { 50% { background: rgba(165, 146, 255, 0.3); } }
.gate-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.robo-wrap { filter: drop-shadow(0 0 14px rgba(53, 240, 207, 0.55)) drop-shadow(0 0 34px rgba(138, 107, 255, 0.28)); }
.robo-btn { position: relative; display: block; border: 0; padding: 2px; cursor: pointer; font: inherit; color: inherit;
  background: linear-gradient(110deg, #35f0cf, #8a6bff 50%, #35f0cf); background-size: 200% 100%; animation: borderRun 3.2s linear infinite;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }
@keyframes borderRun { to { background-position: -200% 0; } }
.robo-btn .inner { position: relative; display: flex; align-items: center; gap: 14px; padding: 17px 38px; overflow: hidden;
  font: 800 14px/1 ui-monospace, SFMono-Regular, Consolas, Menlo, monospace; letter-spacing: 0.26em; text-transform: uppercase; color: #c9fff6;
  background: linear-gradient(180deg, #08202a, #04121a);
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px); transition: background 0.2s ease, color 0.2s ease; }
.robo-btn .inner::after { content: ""; position: absolute; top: 0; bottom: 0; width: 38%; left: -50%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent); transform: skewX(-20deg); animation: sweep 2.6s ease-in-out infinite; }
@keyframes sweep { 55%, 100% { left: 130%; } }
.robo-btn .led { width: 9px; height: 9px; border-radius: 50%; background: #35f0cf; box-shadow: 0 0 10px #35f0cf, 0 0 22px #35f0cf; animation: blip 1.1s steps(2, jump-none) infinite; flex: none; }
.robo-btn:hover .inner, .robo-btn:focus-visible .inner { background: linear-gradient(180deg, #0d3a44, #08222c); color: #fff; }
.robo-btn:active { transform: translateY(1px) scale(0.99); }
.robo-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.gate .gate-link { font: 600 12px/1 ui-monospace, Consolas, Menlo, monospace; letter-spacing: 0.2em; text-transform: lowercase; color: rgba(165, 175, 210, 0.9); text-decoration: none; padding: 8px 10px; }
.gate .gate-link:hover { color: #35f0cf; text-decoration: none; }

/* dissolve choreography */
html.gate-out .gate-actions, html.gate-out .agent-line, html.gate-out .agent-voice, html.gate-out .agent-tag, html.gate-out .gate-hud { opacity: 0; transition: opacity 0.45s ease; pointer-events: none; }
html.gate-out .gate { animation: gateFade 1.1s ease 0.35s forwards; }
@keyframes gateFade { to { opacity: 0; } }
@media (max-width: 600px) { .robo-btn .inner { padding: 16px 26px; letter-spacing: 0.2em; font-size: 13px; } .gate-stage { height: min(42vh, 400px); } }
@media (max-height: 640px) { .gate-stage { height: 36vh; } .agent-line { min-height: 2.6em; } }
