/* Midnight — the original claim layout (one narrow column), dark. Variants set --acc, --acc2, --glow
   and paint their own background + scene. */
:root { --bg: #000; --ink: #FFFFFF; --mute: #8E8E93; --line: rgba(255,255,255,.11); --card: #0D0D0F; --acc: #9D5CFF; --acc2: #00F0B5; }
body { background: var(--bg); color: var(--ink); min-height: 100dvh; }
#bgfx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.wrap { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; padding: 16px 18px calc(36px + env(safe-area-inset-bottom)); }

.top { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 9px; font: 700 19px "Inter Tight", sans-serif; letter-spacing: -.02em; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.topr { display: flex; align-items: center; gap: 10px; }
.tag { font-size: 13px; color: var(--mute); }
.tag b { color: var(--ink); }
.snd { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.04); cursor: pointer; display: grid; place-items: center; }
.snd svg { width: 16px; height: 16px; }

/* the scene: full bleed inside the column, like the original */
.scene { position: relative; height: clamp(300px, 46dvh, 360px); margin: 10px -18px 0; overflow: hidden; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.scene > svg, .scene > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bubble { position: absolute; left: 18px; top: 14px; max-width: 64%; background: #fff; color: #0A0A0A; border-radius: 18px 18px 18px 6px; padding: 8px 13px; font-weight: 600; font-size: 14px; z-index: 3; transform-origin: 0 100%; transition: transform .35s cubic-bezier(.3,1.7,.5,1); }
.bubble.pop { transform: scale(.5); transition: none; }
.hint { position: absolute; right: 16px; bottom: 10px; margin: 0; z-index: 3; font: 500 10px "JB Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.35); transition: opacity .4s; }

.kicker { margin: 16px 0 8px; font: 500 12px "JB Mono", monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.say { margin: 0 0 18px; font: 800 clamp(38px, 11vw, 50px)/.98 "Inter Tight", sans-serif; letter-spacing: -.045em; }
.say em { font-style: normal; background: linear-gradient(90deg, var(--acc2), var(--acc)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* the airdrop box: the page's loudest thing */
.gift { position: relative; margin: 0 0 20px; padding: 20px; border-radius: 26px; background: var(--card); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; isolation: isolate; }
.gift::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: linear-gradient(130deg, var(--acc2), var(--acc), #F0457E, #F39A0B); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.gift::after { content: ""; position: absolute; inset: 10% 6% -12%; z-index: -1; border-radius: 40%; background: radial-gradient(closest-side, var(--glow, rgba(123,92,246,.45)), transparent); filter: blur(24px); }
.gl { font: 500 11px "JB Mono", monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.gv { font: 800 clamp(40px, 12.6vw, 70px)/1 "Inter Tight", sans-serif; letter-spacing: -.055em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.gsym { font: 700 clamp(20px, 6vw, 26px)/1.1 "Inter Tight", sans-serif; letter-spacing: -.03em; }
.gs { margin-top: 8px; font-size: 13px; color: var(--mute); }
.gart { width: clamp(78px, 22vw, 118px); aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #000; align-self: start; box-shadow: 0 0 0 1px var(--line); }
.gart img { width: 100%; height: 100%; object-fit: cover; animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }

.crew { margin: 0 0 18px; padding: 14px 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.crew-h { display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); margin-bottom: 10px; }
.crew-h b { color: var(--ink); font-weight: 600; }
.crew-row { display: flex; justify-content: space-between; }
.crew-row .gbot { width: clamp(34px, 10vw, 46px); height: clamp(34px, 10vw, 46px); transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.crew-row .gbot.in { animation: joinIn .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes joinIn { 40% { transform: translateY(-12px) scale(1.15); } }

.lede p { color: #B7B7C2; margin: 0 0 12px; font-size: 15px; }
.lede p b { color: var(--ink); font-weight: 600; }
.lede p.lead { color: var(--ink); font-size: 17px; font-weight: 500; }
.token { margin: 4px 0 0; font-size: 13px; color: var(--mute); }
.token .tk, .lk { font: 500 11px "JB Mono", monospace; letter-spacing: .16em; text-transform: uppercase; }
.token .tn { color: var(--ink); font-size: 15px; margin-top: 2px; }
.lockrow { display: flex; gap: 16px; align-items: center; margin: 18px 0 6px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lockrow svg { flex: none; width: 34px; height: 40px; }
.ld { font-size: 15px; } .cd { font: 500 13px "JB Mono", monospace; color: var(--acc2); }

.reserved { margin: 18px 0 4px; padding: 18px; border-radius: 22px; background: linear-gradient(135deg, rgba(123,92,246,.28), rgba(18,211,166,.18)); border: 1px solid rgba(255,255,255,.14); }
.reserved .rv { font: 500 11px "JB Mono", monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--acc2); }
.reserved .rw { font: 800 30px/1.05 "Inter Tight", sans-serif; letter-spacing: -.04em; margin-top: 4px; }
.reserved .rw span { display: block; font: 500 13px "Inter", sans-serif; color: #C7C7CC; letter-spacing: 0; margin-top: 4px; overflow-wrap: anywhere; }
.reserved .rn { font-size: 13px; color: #B7B7C2; margin-top: 6px; }
.reserved a { color: #fff; }

/* steps: rows with dividers, like the original */
.steps { list-style: none; margin: 6px 0 0; padding: 0; }
.step { display: grid; grid-template-columns: 46px 1fr auto; gap: 4px 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.step .gbot { width: 46px; height: 46px; }
.step .t { font-weight: 600; font-size: 16px; }
.step .s { font-size: 13px; color: var(--mute); overflow-wrap: anywhere; }
.step.done .t { color: var(--mute); }
.step.active { animation: rise .45s cubic-bezier(.3,1.4,.5,1); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.btn { border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 14px; cursor: pointer; background: #fff; color: #0A0A0A; white-space: nowrap; transition: transform .15s, box-shadow .2s; }
.btn:hover { box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.btn:active { transform: scale(.95); }
.btn:disabled { opacity: .5; }
.ok { width: 28px; height: 28px; border-radius: 50%; background: var(--acc2); color: #04140F; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.inline { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.field { flex: 1 1 200px; min-width: 0; display: flex; align-items: center; gap: 2px; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; }
.field:focus-within { border-color: rgba(255,255,255,.6); }
.field span { color: var(--mute); }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 12px 0; font-size: 15px; color: #fff; }
.again { background: none; border: 0; padding: 0; color: var(--mute); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.err { width: 100%; margin: 2px; font-size: 13px; color: #FF7A59; }
.err:empty { display: none; }
.more { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 16px 0 4px; font-size: 13px; color: var(--mute); }
.more .gh { display: flex; } .more .gh .gbot { width: 22px; height: 22px; margin-right: -3px; }

.foot { margin-top: 30px; text-align: center; font-size: 12px; color: var(--mute); line-height: 1.8; }
.foot img { width: 100%; height: 140px; object-fit: cover; object-position: 50% 58%; border-radius: 20px; margin-bottom: 12px; opacity: .92; }
.foot a { color: var(--ink); }

/* ---- jet black edition ---- */
body { background: #000; }
.gift::before { background: linear-gradient(130deg, #00F0B5, #2F9BFF, #9D5CFF, #FF3D8F, #FFA51F); }
.gift::after { background: radial-gradient(closest-side, rgba(157,92,255,.35), transparent); }
.say em { background: linear-gradient(90deg, #00F0B5, #2F9BFF 45%, #FF3D8F); -webkit-background-clip: text; background-clip: text; color: transparent; }
.crew-row .gbot.alive { animation: crewBob 1.3s ease-in-out infinite; animation-delay: calc(var(--i) * -.18s); }
@keyframes crewBob { 0%, 100% { transform: translateY(0) scale(1, 1); } 45% { transform: translateY(-7px) scale(.96, 1.05); } 55% { transform: translateY(-7px) scale(.96, 1.05); } 90% { transform: translateY(0) scale(1.06, .93); } }
.crew-row .gbot.zz { animation: crewZz 3s ease-in-out infinite; animation-delay: calc(var(--i) * -.4s); }
@keyframes crewZz { 50% { transform: scale(1.04, .96); } }
.crew-row .gbot.in { animation: joinIn .7s cubic-bezier(.3,1.6,.5,1), crewBob 1.3s ease-in-out .7s infinite; }
.reset { background: none; border: 0; color: #5A5A5F; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; margin-top: 6px; }

/* edge bots (N1) */
.edgebots { left: 0; top: 0; width: 100%; height: 100vh; z-index: 0; pointer-events: none; overflow: visible; }
.edgebots[style*="absolute"] { height: 760px; overflow: hidden; }
.eb { position: absolute; rotate: var(--r); animation: ebBob 2.8s ease-in-out infinite; animation-delay: var(--d); }
.eb .gbot { width: 100%; height: 100%; }
@keyframes ebBob { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-10px) scale(.97, 1.04); } }
.eb.hop .gbot { animation: ebHop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes ebHop { 40% { transform: translateY(-16px) scale(.92, 1.1); } }
.eb.cheer .gbot { animation: ebCheer .9s cubic-bezier(.3,1.6,.5,1) 2; }
@keyframes ebCheer { 30% { transform: translateY(-34px) rotate(-12deg) scale(.94, 1.08); } 60% { transform: translateY(0) scale(1.08, .9); } }

/* ---- final polish: no rainbow ---- */
.say em { background: none; -webkit-background-clip: initial; background-clip: initial; color: inherit; }
.gift { background: linear-gradient(180deg, #151517 0%, #0B0B0C 100%); border: 1px solid rgba(255,255,255,.13); box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 30px 70px -30px rgba(0,0,0,.9); }
.gift::before { display: none; }
.gift::after { display: none; }
.gift .gl { color: #A1A1A6; }
.gv { color: #fff; }
.admin-reset { border: 1px solid rgba(255,80,80,.5); background: rgba(255,80,80,.12); color: #FF8A8A; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
