/* Colors and type taken from the Solana Cup card design. */
@font-face { font-family: "Montserrat"; src: url(/__l5e/assets-v1/840699e8-777e-4ea9-9da8-d3f174a73968/montserrat-800.woff) format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(/__l5e/assets-v1/a9708bc9-0ca3-4cb3-8403-92623bac2adf/montserrat-900.woff) format("woff"); font-weight: 900; font-display: block; }
@font-face { font-family: "Geist Mono"; src: url(/__l5e/assets-v1/eed6135b-bd92-4f06-b819-46bff431799b/geistmono-500.ttf) format("truetype"); font-weight: 500; font-display: block; }
:root {
  --bg: #0a1c12; --deep: #06120b; --panel: rgba(7,21,13,.82); --ink: #ffffff; --muted: #a9b8ad; --line: #1f3a29;
  --accent: #00ea61; --accent-dark: #047a2b; --on-accent: #000000; --chalk: #f5f0e0; --error: #ff8a8a;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Montserrat", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; color: var(--ink); font-family: var(--sans); }
html { background: var(--deep); }
/* Pitch background: green glow, felt texture, chalk centre circle behind the card. */
body {
  position: relative; min-height: 100vh; overflow-x: clip;
  background:
    radial-gradient(900px 520px at 50% 18%, rgba(0,234,97,.16), transparent 70%),
    radial-gradient(1200px 800px at 50% 40%, #0f2a1a, var(--deep) 75%);
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::after {
  content: ""; position: absolute; left: 50%; top: 120px; width: 760px; height: 760px; margin-left: -380px; pointer-events: none;
  border: 2px solid rgba(245,240,224,.06); border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(245,240,224,.02);
}
.app { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; padding: 40px 16px 72px; display: grid; gap: 28px; }

.hero { display: grid; justify-items: center; gap: 14px; text-align: center; }
.hero__kicker { margin: 0; padding: 7px 11px 6px; background: var(--accent); color: #000; font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.hero__title { margin: 0; font: 900 clamp(30px, 5.2vw, 52px)/1.02 var(--display); letter-spacing: -.02em; text-transform: uppercase; text-wrap: balance; }
.hero__title span { color: var(--accent); }
.steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.steps__item { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font: 800 13px var(--display); background: var(--panel); }
.steps__item b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--ink); font: 900 12px var(--display); }
.steps__item--photo, body:has(#shareStep:not([hidden])) .steps__item--share { border-color: var(--accent); color: var(--ink); }
.steps__item--photo b, body:has(#shareStep:not([hidden])) .steps__item--share b { background: var(--accent); color: #000; }
body:has(#shareStep:not([hidden])) .steps__item--photo { border-color: var(--line); color: var(--muted); }
body:has(#shareStep:not([hidden])) .steps__item--photo b { background: var(--line); color: var(--accent); }

.stage { position: relative; }
.stage canvas { width: 100%; height: auto; display: block; background: var(--bg); border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(0,234,97,.35), 0 24px 60px rgba(0,0,0,.55), 0 0 90px rgba(0,234,97,.18); }

.controls { display: grid; justify-items: center; }
.panel { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); backdrop-filter: blur(6px); }
.step { width: 100%; display: grid; gap: 14px; }
.step[hidden] { display: none; }
#sourceStep { max-width: 520px; justify-items: stretch; }
.handle { width: 100%; display: grid; gap: 10px; }
.label { font: 800 12px var(--display); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.handle__row { display: flex; gap: 8px; }
.handle__row input { flex: 1; min-width: 0; font: 500 16px var(--sans); padding: 14px 14px; border: 1px solid var(--line); border-radius: 8px; background: #040c07; color: var(--ink); }
.handle__row input::placeholder { color: #5f7466; }
.team { display: grid; gap: 8px; }
.team input { font: 500 16px var(--sans); padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #040c07; color: var(--ink); }
.team input::placeholder { color: #5f7466; }
.msg { margin: 0; min-height: 1.2em; font-size: 13px; color: var(--muted); text-align: center; }
.msg.is-error { color: var(--error); }
.msg.is-ready { padding: 12px 14px; border: 1px solid var(--accent); border-radius: 8px; background: rgba(0,234,97,.08); color: var(--ink); font-weight: 600; line-height: 1.45; text-align: left; }
.or { display: flex; align-items: center; gap: 12px; font: 800 11px var(--display); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.btn { font: 800 14px var(--display); text-transform: uppercase; letter-spacing: .03em; border-radius: 8px; padding: 14px 20px; cursor: pointer; border: 1px solid var(--accent);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease; }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: 4px 4px 0 var(--accent-dark); }
.btn--primary:hover { background: #4dff95; border-color: #4dff95; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--accent-dark), 0 0 30px rgba(0,234,97,.35); }
.btn--primary:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--wide { width: 100%; }
.btn--big { width: 100%; padding: 18px 20px; font-size: 17px; }
.btn--small { white-space: nowrap; padding: 8px 12px; font-size: 12px; background: transparent; color: var(--accent); }
.btn--small:hover { background: var(--accent); color: var(--on-accent); }
.btn:disabled { opacity: .55; cursor: progress; transform: none; }
.btn:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.share-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; gap: 16px; }
.actions { display: grid; gap: 14px; }
.secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.secondary .btn { padding: 12px 10px; font-size: 13px; }
.post { width: 100%; display: grid; gap: 12px; }
.post__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.post__text { width: 100%; margin: 0; padding: 14px; font: 400 16px/1.5 var(--sans); color: var(--ink); background: #040c07; border: 1px solid var(--line); border-radius: 8px; resize: vertical; min-height: 9em; overflow: hidden; }
.post__text:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.post__count { font: 400 12px var(--mono); color: var(--muted); }
.post__count.is-over { color: var(--error); }
.post__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.post__note { margin: 0; font: 400 13px/1.4 var(--sans); color: var(--muted); }
.post__note.is-warning { color: var(--error); }

@media (max-width: 760px) {
  .app { padding-top: 24px; gap: 22px; }
  .hero__kicker { font-size: 10px; white-space: nowrap; }
  .share-grid { grid-template-columns: 1fr; }
  .actions { order: -1; }
  .stage canvas { border-radius: 10px; }
  body::after { width: 520px; height: 520px; margin-left: -260px; top: 90px; }
}
