:root {
  --panel: #eceef3;
  --paper: #fff;
  --ink: #181b32;
  --muted: #626881;
  --line: #c9cdda;
  --soft: #dfe3ed;
  --accent: #e5322d;
  --success: #16824e;
  --danger: #ba2525;
  --display: "Arial Black", "Helvetica Neue", Impact, sans-serif;
  --body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-sizing: border-box;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); background: var(--panel); font-family: var(--body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #3267ff; outline-offset: 3px; }
.skip { position: fixed; z-index: 1000; top: 8px; left: 8px; width: 1px; height: 1px; padding: 0; overflow: hidden; color: #fff; background: var(--ink); border-radius: 8px; clip-path: inset(50%); white-space: nowrap; }
.skip:focus-visible { width: auto; height: auto; padding: 10px 14px; overflow: visible; clip-path: none; }

.topbar { position: sticky; z-index: 30; top: 0; display: grid; grid-template-columns: auto minmax(200px, 460px) auto; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; padding: 12px clamp(16px, 3vw, 42px); background: rgba(236, 238, 243, .94); border-bottom: 2px solid var(--ink); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--display); font-size: clamp(20px, 2vw, 27px); line-height: 1; letter-spacing: -.03em; text-decoration: none; }
.brand i { position: relative; display: block; width: 28px; height: 28px; flex: none; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #ffafa6 0 9%, #e5322d 46%, #981511 100%); box-shadow: 0 4px 0 #71100d; }
.brand i::after { position: absolute; inset: 6px; content: ""; border: 2px solid rgba(255, 255, 255, .44); border-radius: 50%; }
.brand.small { font-size: 18px; }
.brand.small i { width: 22px; height: 22px; box-shadow: 0 3px 0 #71100d; }

.search { display: flex; align-items: center; width: 100%; gap: 9px; justify-self: center; padding: 9px 15px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--line); }
.search svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2.3; opacity: .65; }
.search input { width: 100%; min-width: 0; padding: 0; background: transparent; border: 0; outline: 0; }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.icon-button { display: grid; width: 42px; height: 42px; flex: none; place-items: center; padding: 0; background: var(--paper); border: 2px solid var(--ink); border-radius: 50%; font-size: 25px; line-height: 1; }
.icon-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; }
.icon-button .sound-off, .icon-button[aria-pressed="true"] .sound-on { display: none; }
.icon-button[aria-pressed="true"] .sound-off { display: block; }

.key { display: inline-flex; align-items: center; justify-content: center; padding: 10px 17px; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; transform: translateY(-2px); transition: transform 70ms ease, box-shadow 70ms ease, opacity 120ms ease; white-space: nowrap; }
.key:hover { background: #f8f9fc; }
.key:active { box-shadow: 0 0 0 var(--ink); transform: translateY(2px); }
.key.primary { color: #fff; background: var(--ink); box-shadow: 0 4px 0 #050610; }
.key.primary:hover { background: #282d51; }
.key:disabled { cursor: wait; opacity: .58; }
.key.jumbo { min-height: 52px; padding-inline: 24px; font-size: 17px; }
.ghost { padding: 8px; background: none; border: 0; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }

main { max-width: 1460px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 58px) 100px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, .78fr); min-height: 560px; align-items: center; gap: clamp(30px, 5vw, 90px); padding: 62px 0 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.live-dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; box-shadow: 0 0 0 4px rgba(22, 130, 78, .13); }
.hero h1 { margin: 13px 0 18px; font-family: var(--display); font-size: clamp(44px, 6.4vw, 82px); font-weight: 900; letter-spacing: -.055em; line-height: .94; }
.hero h1 span { color: var(--accent); }
.hero-copy > p:not(.microcopy) { max-width: 610px; margin: 0 0 26px; color: var(--muted); font-size: clamp(17px, 1.7vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.microcopy { margin: 16px 0 0; color: var(--muted); font-size: 13px; font-weight: 650; }
.hero-machine { position: relative; display: grid; grid-template-columns: 55px 1fr 55px; align-items: center; min-height: 370px; padding: 34px 20px; overflow: hidden; background: linear-gradient(150deg, #fff 0, #d8dce8 52%, #abb2c5 100%); border: 3px solid var(--ink); border-radius: 42px; box-shadow: 0 16px 0 #aeb4c4, 0 30px 50px rgba(24, 27, 50, .22); transform: rotate(1.6deg); }
.hero-machine::before { position: absolute; inset: 12px; content: ""; pointer-events: none; border: 2px solid rgba(24, 27, 50, .18); border-radius: 31px; }
.speaker { display: grid; grid-template-columns: repeat(3, 7px); justify-content: center; gap: 10px; }
.speaker i { width: 7px; height: 7px; background: #61677b; border-radius: 50%; box-shadow: inset 0 1px 2px #282b38; }
.hero-pad { position: relative; z-index: 1; display: flex; align-items: center; flex-direction: column; gap: 21px; }
.hero-pad strong { font-size: 12px; letter-spacing: .15em; }

.pad { --size: 162px; position: relative; display: grid; width: var(--size); height: var(--size); flex: none; place-items: center; background: linear-gradient(150deg, #fff 5%, #aeb4c7 88%); border-radius: 50%; box-shadow: 0 4px 0 #878ea4, 0 20px 25px -12px rgba(17, 20, 45, .55); }
.pad::before { position: absolute; inset: 12px; content: ""; background: color-mix(in srgb, var(--coin), #000 62%); border-radius: 50%; }
.dome { position: relative; display: grid; width: 132px; height: 132px; place-items: center; padding: 0; background: radial-gradient(circle at 34% 25%, color-mix(in srgb, var(--coin), #fff 58%) 0 8%, var(--coin) 47%, color-mix(in srgb, var(--coin), #000 32%) 100%); border: 0; border-radius: 50%; box-shadow: 0 10px 0 color-mix(in srgb, var(--coin), #000 48%), inset 0 -9px 18px rgba(0, 0, 0, .18); transform: translateY(-7px); transition: transform 80ms, box-shadow 80ms; }
.dome span { font-size: 51px; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .35)); }
.dome:active, .playing .dome { box-shadow: 0 2px 0 color-mix(in srgb, var(--coin), #000 48%), inset 0 -6px 15px rgba(0, 0, 0, .22); transform: translateY(1px); }
.playing .pad { animation: pulse .65s ease-out infinite; }
@keyframes pulse { from { filter: drop-shadow(0 0 0 color-mix(in srgb, var(--coin), transparent 40%)); } to { filter: drop-shadow(0 0 18px color-mix(in srgb, var(--coin), transparent 100%)); } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 0; padding: 0; overflow: hidden; background: var(--ink); border: 2px solid var(--ink); border-radius: 18px; list-style: none; }
.steps li { display: flex; min-height: 118px; align-items: center; gap: 18px; padding: 22px clamp(18px, 3vw, 30px); background: var(--paper); }
.steps b { color: var(--line); font-family: var(--display); font-size: 35px; }
.steps strong, .steps span { display: block; }
.steps strong { margin-bottom: 2px; font-size: 17px; }
.steps span { color: var(--muted); font-size: 14px; }

.board-section { padding: 78px 0 58px; }
.board-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.board-head h2 { margin: 4px 0 0; font-family: var(--display); font-size: clamp(31px, 4.2vw, 48px); letter-spacing: -.04em; line-height: 1; }
.board-status { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 800; }
.board-status .separator { color: var(--success); }
.notice { margin: 18px 0 0; padding: 12px 15px; color: #694a00; background: #fff4c7; border: 1px solid #dbb950; border-radius: 10px; font-size: 14px; }
.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 34px 18px; padding: 34px 0 0; }
.coin-card { position: relative; min-width: 0; padding: 22px 15px 17px; text-align: center; background: rgba(255, 255, 255, .56); border: 1px solid transparent; border-radius: 18px; transition: background 150ms, border-color 150ms, transform 150ms; }
.coin-card:hover, .coin-card.targeted { background: var(--paper); border-color: var(--line); transform: translateY(-3px); }
.coin-card .pad { --size: 128px; margin: 0 auto 17px; }
.coin-card .pad::before { inset: 10px; }
.coin-card .dome { width: 103px; height: 103px; box-shadow: 0 8px 0 color-mix(in srgb, var(--coin), #000 48%), inset 0 -7px 14px rgba(0, 0, 0, .18); }
.coin-card .dome:active, .coin-card.playing .dome { box-shadow: 0 2px 0 color-mix(in srgb, var(--coin), #000 48%), inset 0 -4px 11px rgba(0, 0, 0, .22); }
.coin-card .dome span { font-size: 41px; }
.coin-card h3 { margin: 0; overflow: hidden; font-family: var(--display); font-size: 20px; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.coin-card .coin-name { display: block; margin-top: 1px; overflow: hidden; color: var(--muted); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.coin-meta { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 11px 0 0; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.coin-meta i { width: 5px; height: 5px; background: var(--success); border-radius: 50%; }
.coin-links { display: grid; grid-template-columns: 1fr auto; gap: 7px; margin-top: 14px; }
.coin-links a, .copy-mint { display: flex; min-height: 34px; align-items: center; justify-content: center; padding: 6px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; font-size: 12px; font-weight: 800; text-decoration: none; }
.copy-mint { width: 38px; cursor: pointer; }
.empty-board, .error-board, .loading-card { grid-column: 1 / -1; padding: 70px 20px; color: var(--muted); text-align: center; }
.empty-board strong, .error-board strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 20px; }
.empty-board > span, .error-board > span { display: block; }
.empty-board .key { margin-top: 20px; }
.loading-card span { display: block; width: 34px; height: 34px; margin: auto; border: 4px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.trust div { padding: 27px clamp(14px, 3vw, 32px); }
.trust div + div { border-left: 1px solid var(--line); }
.trust strong, .trust span { display: block; }
.trust strong { margin-bottom: 4px; }
.trust span { color: var(--muted); font-size: 14px; }

footer { display: grid; grid-template-columns: auto minmax(200px, 1fr) auto; align-items: center; gap: 30px; padding: 28px clamp(16px, 4vw, 58px); color: var(--muted); background: var(--paper); border-top: 2px solid var(--ink); font-size: 13px; }
footer p { max-width: 620px; margin: 0 auto; text-align: center; }
footer > div:last-child { display: flex; gap: 18px; font-weight: 750; }

dialog { width: min(620px, calc(100% - 24px)); max-height: min(94vh, 900px); padding: 0; color: var(--ink); background: var(--panel); border: 2px solid var(--ink); border-radius: 22px; box-shadow: 0 25px 80px rgba(7, 9, 24, .42); }
dialog::backdrop { background: rgba(9, 11, 28, .7); backdrop-filter: blur(5px); }
.dialog-shell { padding: 24px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.dialog-head h2, .success-shell h2 { margin: 3px 0 0; font-family: var(--display); font-size: 34px; letter-spacing: -.04em; line-height: 1.05; }
.launch-preview { display: flex; align-items: center; gap: 24px; margin: 22px 0; padding: 18px 21px; background: var(--paper); border: 1px solid var(--line); border-radius: 17px; }
.launch-preview .pad { --size: 106px; }
.launch-preview .pad::before { inset: 8px; }
.launch-preview .dome { width: 85px; height: 85px; box-shadow: 0 7px 0 color-mix(in srgb, var(--coin), #000 48%), inset 0 -6px 12px rgba(0, 0, 0, .18); }
.launch-preview .dome span { font-size: 36px; }
.launch-preview > div:last-child { min-width: 0; }
.launch-preview strong, .launch-preview span { display: block; }
.launch-preview strong { overflow: hidden; font-family: var(--display); font-size: 25px; text-overflow: ellipsis; white-space: nowrap; }
.launch-preview > div:last-child span { color: var(--muted); font-size: 13px; }
.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: 1.25fr .75fr; }
.field { display: block; min-width: 0; margin-top: 14px; }
.field > span, .field legend { display: flex; justify-content: space-between; width: 100%; margin-bottom: 6px; padding: 0; font-size: 13px; font-weight: 850; }
.field em { color: var(--muted); font-size: 11px; font-style: normal; font-weight: 650; }
.field input, .field textarea, .field select { display: block; width: 100%; min-width: 0; padding: 10px 12px; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; outline: 0; }
.field input:focus, .field textarea:focus, .field select:focus { box-shadow: 0 0 0 3px rgba(50, 103, 255, .24); }
.field textarea { resize: vertical; }
.choice-field { padding: 0; border: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 7px; }
.choice { display: grid; width: 41px; height: 41px; place-items: center; padding: 0; background: var(--paper); border: 2px solid var(--line); border-radius: 10px; font-size: 21px; }
.choice[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--panel), inset 0 0 0 4px var(--ink); }
.choice.color { background: var(--choice); border-radius: 50%; }
.upload { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 13px; cursor: pointer; background: var(--paper); border: 2px dashed var(--line); border-radius: 11px; }
.upload:hover { border-color: var(--ink); }
.upload input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.upload-icon { display: grid; width: 35px; height: 35px; flex: none; place-items: center; background: var(--panel); border-radius: 50%; font-size: 21px; font-weight: 900; }
.upload strong, .upload small { display: block; }
.upload strong { font-size: 13px; }
.upload small { color: var(--muted); font-size: 11px; }
.file-state { margin: 8px 0 0; color: var(--success); font-size: 12px; font-weight: 750; }
.details { margin-top: 16px; }
.details summary { cursor: pointer; font-size: 13px; font-weight: 850; }
.launch-facts { margin: 18px 0 0; padding: 13px 15px; background: var(--paper); border-radius: 12px; }
.launch-facts div { display: flex; justify-content: space-between; gap: 20px; padding: 4px 0; font-size: 13px; }
.launch-facts p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 17px; font-size: 12px; }
.consent input { width: 19px; height: 19px; flex: none; margin: 0; accent-color: var(--ink); }
.form-error { margin-top: 15px; padding: 10px 12px; color: var(--danger); background: #ffdddd; border: 1px solid #e9aaaa; border-radius: 9px; font-size: 13px; font-weight: 750; }
.launch-submit { display: flex; width: 100%; flex-direction: column; margin-top: 19px; padding: 13px; white-space: normal; }
.launch-submit small { margin-top: 2px; color: rgba(255, 255, 255, .63); font-size: 10px; }
.dialog-disclaimer { margin: 14px 0 0; color: var(--muted); font-size: 10px; text-align: center; }

#successDialog { width: min(510px, calc(100% - 24px)); text-align: center; }
.success-shell { padding: 42px 28px 34px; }
.success-burst { display: grid; width: 80px; height: 80px; margin: 0 auto 20px; place-items: center; color: #fff; background: var(--success); border: 6px solid #bce9d0; border-radius: 50%; font-size: 40px; font-weight: 900; }
.success-shell p { color: var(--muted); }
.success-links { display: flex; justify-content: center; gap: 12px; margin: 24px 0 14px; }
.success-shell .ghost { color: var(--muted); }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; max-width: calc(100% - 32px); padding: 10px 17px; color: #fff; background: var(--ink); border: 2px solid #fff; border-radius: 999px; box-shadow: 0 8px 30px rgba(0, 0, 0, .26); font-size: 13px; font-weight: 750; opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: opacity 150ms, transform 150ms; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-color-scheme: dark) {
  :root { --panel: #171a2e; --paper: #222641; --ink: #eef0fa; --muted: #a6adc8; --line: #3b4164; --soft: #2d3251; color-scheme: dark; }
  .topbar { background: rgba(23, 26, 46, .94); }
  .key.primary { color: #171a2e; background: #eef0fa; box-shadow: 0 4px 0 #777f9f; }
  .key.primary:hover { background: #fff; }
  .search { box-shadow: 0 3px 0 #0c0e1d; }
  .hero-machine { background: linear-gradient(150deg, #50577e 0, #292d4a 52%, #111424 100%); box-shadow: 0 16px 0 #0b0d19, 0 30px 50px rgba(0, 0, 0, .5); }
  .notice { color: #ffe6a0; background: #55400c; border-color: #9d791e; }
  .form-error { color: #ffbaba; background: #571e29; border-color: #913744; }
}

@media (max-width: 920px) {
  .topbar { grid-template-columns: auto 1fr; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 48px; }
  .hero-machine { width: min(540px, 100%); justify-self: center; }
  .steps { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .trust div + div { border-top: 1px solid var(--line); border-left: 0; }
  footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

@media (max-width: 620px) {
  .topbar { gap: 10px; padding: 10px 13px; }
  .brand span { display: none; }
  .brand.small span { display: inline; }
  .desktop-launch { display: none; }
  .top-actions { gap: 8px; }
  .top-actions .key { padding-inline: 12px; }
  main { padding-inline: 14px; }
  .hero { padding-top: 38px; }
  .hero h1 { font-size: clamp(41px, 14vw, 62px); }
  .hero-machine { grid-template-columns: 34px 1fr 34px; min-height: 320px; padding-inline: 9px; border-radius: 30px; }
  .speaker { grid-template-columns: repeat(2, 6px); }
  .speaker i:nth-child(3n) { display: none; }
  .steps li { min-height: 102px; }
  .board-section { padding-top: 58px; }
  .board-head { align-items: flex-start; flex-direction: column; }
  .coin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 7px; }
  .coin-card { padding-inline: 6px; }
  .coin-card .pad { --size: 112px; }
  .coin-card .dome { width: 90px; height: 90px; }
  .coin-card .dome span { font-size: 36px; }
  .coin-card h3 { font-size: 17px; }
  .coin-links { grid-template-columns: 1fr; }
  .copy-mint { display: none; }
  .dialog-shell { padding: 18px; }
  .form-grid.two { grid-template-columns: 1fr; gap: 0; }
  .launch-preview { gap: 16px; padding: 15px; }
  .launch-preview .pad { --size: 90px; }
  .launch-preview .dome { width: 72px; height: 72px; }
  .success-links { align-items: stretch; flex-direction: column; }
}

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