/* NUMOS — arcade identity: soft-rounded cards, pixel display, VT323 terminal, cyan + orange. */

:root {
  --bg: #06070d; --panel: #0d0f17; --panel-2: #141826; --line: #232a3d;
  --strong: #ffffff; --text: #eef1f8; --muted: #8b93a7; --dim: #565d72; --inv: #06070d;
  --accent: #35e0ff; --accent2: #ff8a3d; --down: #ff5a4f; --warn: #f5c542;
  --r: 18px; --rs: 11px; --rp: 999px;
  --px: "Press Start 2P", ui-monospace, monospace;
  --term: "VT323", ui-monospace, monospace;
  --ui: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { background: var(--bg); }
body {
  margin: 0; color: var(--text);
  font: 14px/1.6 var(--ui);
  padding-bottom: 84px;
  background-image:
    radial-gradient(1100px 500px at 50% -8%, rgba(53,224,255,.10), transparent 62%),
    radial-gradient(rgba(53,224,255,.05) 1px, transparent 1px);
  background-size: auto, 24px 24px;
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }
.spacer { flex: 1; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* header — floating glass bar */
header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 74%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; gap: 14px; height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; }
.logo .mk { display: block; width: 36px; height: 36px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); image-rendering: pixelated; animation: logoflick 7s step-end infinite; }
@keyframes logoflick { 0%, 62% { filter: none; } 63% { filter: brightness(2) saturate(0); } 64%, 87% { filter: none; } 88% { filter: brightness(.6); } 100% { filter: none; } }
.logo .nm { font-family: var(--px); font-size: 14px; letter-spacing: .06em; color: var(--text); }
nav.top { display: flex; gap: 4px; margin-left: 10px; }
nav.top a { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 8px 14px; border-radius: var(--rp); border: 1px solid transparent; cursor: pointer; transition: color .14s, border-color .14s, background .14s; }
nav.top a:hover { color: var(--text); border-color: var(--line); }
nav.top a.on { background: var(--accent); color: var(--inv); border-color: var(--accent); }
.ic { border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: 15px; width: 38px; height: 38px; border-radius: var(--rp); cursor: pointer; }
.ic:hover { border-color: var(--accent); }
#walletBtn { border-radius: var(--rp); }
#walletBtn.connected { border-color: var(--accent); color: var(--accent); }

button {
  font: inherit; font-family: var(--ui); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 10px 16px; border-radius: var(--rp);
  transition: background .14s, border-color .14s, color .14s, transform .07s;
}
button:hover { border-color: var(--accent); }
button:active { transform: translateY(1px); }
button.primary { background: var(--accent); color: var(--inv); border-color: var(--accent); }
button.primary:hover { filter: brightness(1.08); border-color: var(--accent); }
button:disabled { opacity: .35; cursor: not-allowed; }
button.big { font-size: 14px; padding: 13px 18px; }

/* layout blocks */
main { padding: 26px 0 70px; }
h1 { font-family: var(--px); font-weight: 400; font-size: clamp(22px, 3.8vw, 40px); line-height: 1.4; letter-spacing: 0; margin: 0; }
h3 { font-family: var(--px); font-weight: 400; font-size: 12px; line-height: 1.7; letter-spacing: .02em; margin: 0 0 10px; }

/* section headers — big ghost number + title, no rule line */
.sec { display: flex; align-items: flex-start; gap: 16px; margin: 54px 0 18px; }
.sec .n { font-family: var(--px); font-size: clamp(26px, 4vw, 34px); line-height: 1; color: var(--accent); opacity: .26; }
.sec .sh { display: flex; flex-direction: column; gap: 4px; padding-top: 3px; }
.sec .t { font-family: var(--px); font-weight: 400; font-size: 15px; letter-spacing: .02em; color: var(--text); }
.sec .sub { font-size: 13px; color: var(--muted); }
.sec .rule { display: none; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }

.hero { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px; margin: 24px 0; }
.hero p { margin: 12px 0 0; color: var(--muted); max-width: 620px; }
.hero .row { display: flex; gap: 10px; }
.hero .prize { margin-top: 12px; color: var(--text); border-left: 3px solid var(--accent2); padding: 8px 14px; background: linear-gradient(90deg, rgba(255,138,61,.10), transparent); border-radius: 0 var(--rs) var(--rs) 0; max-width: 640px; }
.hero .prize b { color: var(--accent2); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stats .card { position: relative; overflow: hidden; padding: 16px 18px; }
.stats .card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--accent), transparent 78%); }
.stats .k { font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.stats .v { font-family: var(--px); font-weight: 400; font-size: 15px; line-height: 1.5; margin-top: 9px; }
.stats .v.meta { font-size: 12px; }

/* hero stage — 3D tilting card on a glowing grid */
.stage { position: relative; height: clamp(430px, 56vw, 620px); margin: 8px 0 12px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #04060a; perspective: 1200px; }
.stagebg { position: absolute; inset: -2px; background-image: linear-gradient(rgba(53,224,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(53,224,255,.06) 1px, transparent 1px); background-size: 40px 40px; animation: drift 24s linear infinite; }
@keyframes drift { from { background-position: 0 0; } to { background-position: 40px 40px; } }
.stage .glow { position: absolute; left: 50%; top: 46%; width: 74%; height: 82%; transform: translate(-50%,-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(53,224,255,.18), transparent 70%), radial-gradient(closest-side, rgba(255,138,61,.10), transparent 72%); }
.herocard { position: absolute; left: 50%; top: 44%; width: min(300px, 44%); transform: translate(-50%,-50%); transform-style: preserve-3d; transition: transform .2s ease-out; cursor: grab; touch-action: none; will-change: transform; }
.herocard.drag { transition: none; cursor: grabbing; }
.herocard img { width: 100%; display: block; filter: drop-shadow(0 18px 30px rgba(0,0,0,.6)); }
.hctag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); z-index: 2; font-size: 10px; font-weight: 600; letter-spacing: .2em; padding: 4px 12px; background: var(--accent); color: var(--inv); border-radius: var(--rp); }
.hcmeta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; }
.hcmeta b { color: var(--accent2); font-weight: 600; font-size: 11px; }
.chips { position: absolute; inset: 0; pointer-events: none; }
.chip { position: absolute; border: 1px solid var(--accent); color: var(--accent); background: rgba(5,8,10,.7); font-size: 11px; font-weight: 600; padding: 3px 9px; letter-spacing: .04em; border-radius: var(--rp); animation: bob var(--dur, 6s) ease-in-out infinite; animation-delay: var(--d, 0s); }
.chip.alt { border-color: var(--accent2); color: var(--accent2); }
.chip.alt2 { border-color: #b07cff; color: #b07cff; }
.stagestats { position: absolute; left: 0; right: 0; bottom: 0; display: flex; border-top: 1px solid var(--line); background: rgba(0,0,0,.55); }
.stagestats > div { flex: 1; padding: 11px 16px; border-right: 1px solid var(--line); display: flex; align-items: baseline; gap: 8px; }
.stagestats > div:last-child { border-right: 0; }
.stagestats b { font-family: var(--px); font-size: 11px; font-weight: 400; }
.stagestats span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-3px) rotate(1.5deg); } }
@keyframes blink { 50% { opacity: 0; } }
.cur { animation: blink 1s steps(1) infinite; }

/* CRT overlay on the hero stage */
.crt { position: absolute; inset: 0; pointer-events: none; z-index: 8; }
.crt-scan { position: absolute; inset: 0; background: repeating-linear-gradient(rgba(0,0,0,0) 0 2px, rgba(0,0,0,.30) 3px); opacity: .5; }
.crt-roll { position: absolute; left: 0; right: 0; height: 24%; background: linear-gradient(180deg, transparent, rgba(53,224,255,.11), transparent); animation: crtRoll 9s linear infinite; }
@keyframes crtRoll { 0% { transform: translateY(-130%); } 100% { transform: translateY(560%); } }
.crt-glare { position: absolute; inset: 0; background: radial-gradient(at 30% 14%, rgba(255,255,255,.07), transparent 46%); }
.crt-vig { position: absolute; inset: 0; background: radial-gradient(at 50% 45%, transparent 54%, rgba(0,0,0,.58) 100%); }
.crt-flick { position: absolute; inset: 0; background: rgba(53,224,255,.03); animation: crtFlick 7s step-end infinite; }

@keyframes ledpulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* boot sequence overlay */
.boot { position: fixed; inset: 0; z-index: 200; background: #000; display: flex; align-items: center; justify-content: center; transition: opacity .55s ease, transform .55s cubic-bezier(.7,0,.3,1); }
.boot.off { opacity: 0; transform: scaleY(.004); pointer-events: none; }
.bootlog { font-family: "VT323", ui-monospace, monospace; font-size: 22px; line-height: 1.35; color: var(--accent); text-shadow: 0 0 9px rgba(53,224,255,.55); margin: 0; min-width: 340px; min-height: 190px; white-space: pre; }
.bootlog .bcur { display: inline-block; width: 11px; height: 20px; background: var(--accent); vertical-align: -3px; animation: blink .7s steps(1) infinite; }

/* terminal bits use the CRT font */
.readout, .console, .chipstamp, .stamp { font-family: "VT323", ui-monospace, monospace; }
.readout { font-size: 18px; }
.console { font-size: 17px; }
.chipstamp, .stamp { font-size: 15px; }

/* claim machine */
.two { display: grid; grid-template-columns: 1fr 400px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
.machine { padding: 14px; }
.screen2 { position: relative; aspect-ratio: 1; background: #050605; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; }
.screen2 .cardimg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-height: 88%; max-width: 88%; object-fit: contain; z-index: 2; }
.grid-overlay { position: absolute; inset: 0; z-index: 3; background-image: linear-gradient(rgba(53,224,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(53,224,255,.07) 1px, transparent 1px); background-size: 28px 28px; }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 22%; z-index: 4; background: linear-gradient(180deg, transparent, rgba(53,224,255,.14), transparent); animation: sweep 2.4s linear infinite; }
@keyframes sweep { 0% { top: -25%; } 100% { top: 105%; } }
.stamp { position: absolute; top: 12px; left: 12px; z-index: 6; letter-spacing: .1em; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--rp); background: var(--bg); color: var(--muted); }
.stamp.live { border-color: var(--accent); color: var(--accent); }
.stamp.found { border-color: var(--accent2); color: var(--accent2); }
.stamp.taken { border-color: var(--down); color: var(--down); }
.chipstamp { position: absolute; top: 12px; right: 12px; z-index: 6; letter-spacing: .1em; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--rp); background: var(--bg); color: var(--muted); }
.chipstamp.price { top: 46px; }
.platerow { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.plate { flex: 1; }
.plate span { font-weight: 600; }
.plate b { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }

.panel { padding: 16px; }
.hud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hchip { border: 1px solid var(--line); border-radius: var(--rs); padding: 11px 6px; text-align: center; min-width: 0; }
.hchip .v { font-family: var(--px); font-size: 10px; font-weight: 400; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hchip .l { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.pickrow { display: flex; gap: 8px; margin-top: 14px; }
.pickrow input { flex: 1; min-width: 0; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--rs); font: inherit; padding: 11px 13px; }
.pickrow input:focus { outline: none; border-color: var(--accent); }
.readout { margin-top: 12px; color: var(--accent); min-height: 36px; border: 1px solid var(--line); border-radius: var(--rs); padding: 8px 11px; }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.qtyrow { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 10px; flex-wrap: wrap; }
.qlab { letter-spacing: .14em; color: var(--muted); }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--rs); overflow: hidden; }
.qty b { font-family: var(--px); min-width: 36px; text-align: center; font-size: 13px; color: var(--accent); }
.qbtn { border: 0 !important; border-right: 1px solid var(--line) !important; border-radius: 0 !important; padding: 7px 12px !important; font-size: 15px !important; background: var(--bg); color: var(--text); }
.qbtn:last-child { border-right: 0 !important; border-left: 1px solid var(--line) !important; }
.qbtn:hover { background: var(--panel-2); }
.qhint { margin-left: auto; }
.qtotal { font-family: var(--px); font-size: 10px; color: var(--accent2); }

.console { margin-top: 14px; height: 120px; overflow-y: auto; color: var(--muted); }
.console div { line-height: 1.7; }
.console .ok { color: var(--accent); }
.console .hit { color: var(--accent2); }

/* the numbers (lot) */
.lotwrap { padding: 12px; }
.lots { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 4px; max-height: 380px; overflow-y: auto; }
.lot { border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--muted); font-size: 10px; text-align: center; padding: 6px 0; cursor: pointer; transition: border-color .12s, color .12s, background .12s; }
.lot:hover { border-color: var(--accent); color: var(--accent); }
.lot.taken { background: rgba(255,90,79,.14); border-color: rgba(255,90,79,.45); color: var(--down); cursor: not-allowed; }
.lot.taken:hover { border-color: rgba(255,90,79,.75); color: var(--down); }
.lot.sel { border-color: var(--accent2); color: var(--accent2); }

/* roster / gallery */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.grid .cell { border: 1px solid var(--line); border-radius: var(--rs); overflow: hidden; background: var(--bg); cursor: pointer; transition: border-color .12s; }
.grid .cell:hover { border-color: var(--accent); }
.grid .cell img { display: block; width: 100%; aspect-ratio: 200/260; object-fit: contain; background: #050505; }
.grid .cell .cap { padding: 8px 10px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.grid .cell .cap b { color: var(--accent); font-weight: 600; font-size: 10px; letter-spacing: .08em; }
.howgrid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
.howgrid p { margin: 0; line-height: 1.6; }
@media (max-width: 640px) { .howgrid { grid-template-columns: 1fr; } }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }

/* rarity explorer */
.rarwrap { display: grid; grid-template-columns: 220px 1fr; gap: 0; padding: 0; overflow: hidden; }
@media (max-width: 760px) { .rarwrap { grid-template-columns: 1fr; } }
.cats { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--panel-2); }
@media (max-width: 760px) { .cats { border-right: 0; border-bottom: 1px solid var(--line); } }
.cats button { text-align: left; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); padding: 13px 15px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; background: transparent; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 8px; cursor: pointer; transition: background .12s, color .12s; }
.cats button:last-child { border-bottom: 0; }
.cats button:hover { background: var(--panel); color: var(--text); }
.cats button.on { background: var(--panel); color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.rarright { padding: 18px; min-width: 0; }
.rarhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.rarhead .rt { font-family: var(--px); font-size: 12px; color: var(--text); letter-spacing: .04em; }
.vlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 9px; }
.vrow { border: 1px solid var(--line); border-radius: var(--rs); padding: 10px 12px; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; transition: border-color .12s, box-shadow .12s; }
.vrow:hover { border-color: var(--accent); }
.vrow.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.vrow .vn { font-size: 12px; color: var(--text); }
.vrow .vc { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vrow .vbar { grid-column: 1 / -1; height: 4px; border-radius: var(--rp); background: var(--panel-2); overflow: hidden; }
.vrow .vbar i { display: block; height: 100%; background: var(--accent); }
.pv { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 9px; margin-top: 18px; }
.pv .cell { border: 1px solid var(--line); border-radius: var(--rs); overflow: hidden; cursor: pointer; transition: border-color .12s; }
.pv .cell:hover { border-color: var(--accent); }
.pv .cell img { display: block; width: 100%; aspect-ratio: 200/260; object-fit: contain; background: #050505; }
.pv .cell .id { font-size: 10px; color: var(--muted); padding: 3px 7px; }

/* status bar — floating dock */
.status { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 30; display: flex; align-items: center; height: 46px; max-width: calc(100% - 24px); overflow-x: auto; white-space: nowrap;
  background: color-mix(in srgb, var(--panel) 84%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: var(--rp);
  font-size: 12px; color: var(--muted); box-shadow: 0 16px 44px rgba(0,0,0,.5); }
.status > span { padding: 0 16px; display: flex; align-items: center; gap: 6px; height: 100%; }
.status > span + span { border-left: 1px solid var(--line); }
.status b { font-family: var(--px); color: var(--text); font-weight: 400; font-size: 10px; }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; box-shadow: 0 0 7px var(--accent); animation: ledpulse 2.4s ease-in-out infinite; }
.status .xlink { display: inline-flex; align-items: center; padding: 0 16px; height: 100%; color: var(--muted); border-left: 1px solid var(--line); }
.status .xlink:hover { color: var(--accent); }
.status .ca { gap: 8px; }
.status .ca a { font-family: var(--term); font-size: 15px; color: var(--accent); text-decoration: none; }
.status .ca a:hover { text-decoration: underline; }

/* toast + modal */
.toast { position: fixed; bottom: 78px; left: 50%; transform: translateX(-50%); background: var(--strong); color: var(--inv); padding: 11px 18px; font-size: 12px; font-weight: 600; border-radius: var(--rp); max-width: calc(100% - 32px); z-index: 40; display: none; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.toast.on { display: block; }
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.66); backdrop-filter: blur(3px); display: none; place-items: center; }
.modal.on { display: grid; }
.mcard { width: min(470px, calc(100% - 32px)); display: grid; grid-template-columns: 200px 1fr; gap: 16px; }
.wcard { grid-template-columns: 1fr; width: min(400px, calc(100% - 32px)); padding: 22px; gap: 14px; background: linear-gradient(180deg, #10141f, #0a0c14); box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.wcard .mkname { font-size: 16px; letter-spacing: .04em; }
.wlist { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.wopt { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--rs); background: var(--panel-2); color: var(--text); font: inherit; font-family: var(--ui); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; cursor: pointer; text-align: left; transition: border-color .15s, background .15s, transform .1s; }
.wopt:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--panel-2)); }
.wopt:active { transform: scale(.99); }
.wopt img { width: 26px; height: 26px; flex: 0 0 26px; object-fit: contain; border-radius: 7px; background: rgba(255,255,255,.06); }
.wopt b { font-weight: 600; }
.wopt .wgo { margin-left: auto; color: var(--muted); font-size: 16px; }
#wDisconnect { border-color: rgba(255,90,79,.5); color: var(--down); }
#wDisconnect:hover { border-color: var(--down); background: rgba(255,90,79,.1); }
.mcard > img { width: 100%; object-fit: contain; border: 1px solid var(--line); border-radius: var(--rs); background: #050505; }
.minfo { display: flex; flex-direction: column; gap: 8px; }
.mkname { font-family: var(--px); font-size: 14px; }
.pill { font-size: 10px; letter-spacing: .08em; padding: 3px 10px; border: 1px solid var(--accent); color: var(--accent); text-transform: uppercase; border-radius: var(--rp); width: max-content; }
.minfo p { margin: 0; }
.minfo > button:first-of-type { margin-top: auto; }

@media (max-width: 900px) { .hud { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  header .wrap { gap: 8px; flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 10px; }
  nav.top { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .sec { gap: 12px; margin: 40px 0 14px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .mcard { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .chip, .scan, .cur, .crt-roll, .crt-flick, .status .dot { animation: none; } }

/* claim success animation */
.claimfx { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; background: rgba(0,0,0,.72); backdrop-filter: blur(3px); overflow: hidden; }
.claimfx.on { display: grid; }
.cfxglow { position: absolute; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(53,224,255,.55), transparent 62%); animation: cfxglow 1.1s ease-out; }
.cfxcard { position: relative; width: min(230px, 52vw); animation: cfxpop .6s cubic-bezier(.2,1.4,.4,1); }
.cfxcard img { width: 100%; display: block; filter: drop-shadow(0 18px 40px rgba(0,0,0,.7)); }
.cfxstamp { position: absolute; top: 42%; left: 50%; transform: translate(-50%,-50%) rotate(-12deg); font-family: var(--px); font-size: 20px; color: var(--accent2); border: 3px solid var(--accent2); padding: 6px 12px; background: rgba(6,7,13,.72); animation: cfxstamp .5s .25s backwards cubic-bezier(.2,1.6,.4,1); }
.cfxlabel { position: absolute; bottom: 20%; font-family: var(--px); font-size: 14px; color: var(--accent); }
.cfxp { position: absolute; width: 8px; height: 8px; border-radius: 50%; animation: cfxburst .95s ease-out forwards; }
@keyframes cfxpop { 0% { transform: scale(.4) rotate(-6deg); opacity: 0; } 60% { transform: scale(1.08) rotate(2deg); opacity: 1; } 100% { transform: scale(1); } }
@keyframes cfxglow { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes cfxstamp { 0% { transform: translate(-50%,-50%) rotate(-12deg) scale(2.2); opacity: 0; } 100% { transform: translate(-50%,-50%) rotate(-12deg) scale(1); opacity: 1; } }
@keyframes cfxburst { 0% { transform: translate(0,0) scale(1); opacity: 1; } 100% { transform: translate(var(--dx),var(--dy)) scale(0); opacity: 0; } }
