:root {
  --night: #0B0A1E; --deep: #100E2A; --panel: rgba(22, 20, 52, .9); --line: #2B2856; --line2: #3A3670; --line3: #1E1C44;
  --text: #F3F1FF; --soft: #D9D6F5; --dim: #A29FD0; --faint: #6B68A0;
  --pink: #FF3D9A; --cyan: #3DF0FF; --amber: #FFB020; --red: #FF4D6D; --mint: #34F5A4;
  --disp: Unbounded, system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace; --body: 'Inter Tight', system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--night); color: var(--text); font-family: var(--body); -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
a { color: var(--pink); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.night { background-color: var(--night); background-image: radial-gradient(1px 1px at 20px 30px, rgba(243,241,255,.5), transparent), radial-gradient(1px 1px at 140px 90px, rgba(243,241,255,.35), transparent), radial-gradient(1.5px 1.5px at 260px 40px, rgba(243,241,255,.4), transparent), radial-gradient(1px 1px at 330px 160px, rgba(243,241,255,.3), transparent), radial-gradient(120% 60% at 50% 0%, #241B5A 0%, var(--night) 65%); background-size: 390px 220px, 390px 220px, 390px 220px, 390px 220px, 100% 100%; }
.mono { font-family: var(--mono); }
.disp { font-family: var(--disp); font-weight: 900; }
.tiny { font-size: 10px; letter-spacing: .12em; }
.small { font-size: 13px; line-height: 1.45; }
.dim { color: var(--dim); }
.i { font-style: italic; }
.pink { color: var(--pink); } .amber { color: var(--amber); } .r { text-align: right; }
.row { display: flex; align-items: center; gap: 8px; }
.col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.grow { flex: 1; min-width: 0; }
.between { justify-content: space-between; }
.full { width: 100%; align-self: stretch; }
.center { text-align: center; align-items: center; }
.start { align-items: flex-start; }
.end { align-items: flex-end; }
.endrow { align-items: flex-end; }
.gap4 { gap: 4px; } .gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap10 { gap: 10px; } .gap12 { gap: 12px; } .gap14 { gap: 14px; } .gap18 { gap: 18px; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn { cursor: pointer; border: 0; background: none; transition: transform .12s, filter .12s; touch-action: manipulation; }
.btn:active { transform: scale(.96); filter: brightness(1.15); }
.btn[disabled] { opacity: .6; cursor: default; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.blink { animation: blink 1.1s steps(2) infinite; }

.shell { max-width: 440px; margin: 0 auto; height: 100dvh; display: flex; flex-direction: column; position: relative; overflow: hidden; }
header.top { flex: none; padding: max(12px, env(safe-area-inset-top)) 14px 8px; display: flex; flex-direction: column; gap: 8px; }
.logo { flex: 1; font-size: 20px; letter-spacing: .02em; } .logo b, .wordmark b { color: var(--pink); }
.season { font-size: 10px; letter-spacing: .12em; color: var(--dim); }
.iconbtn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line2); background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-family: var(--mono); font-weight: 800; flex: none; }
.iconbtn.x { width: 40px; height: 40px; border-radius: 12px; color: var(--text); }
.phase { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.phase .row { justify-content: space-between; font-size: 12px; font-weight: 800; }
.phase b { color: var(--text); }
.segs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; } .segs i { height: 4px; border-radius: 2px; }
main.content { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 14px 18px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: none; }
main.content::-webkit-scrollbar { display: none; }
nav.tabs { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px 14px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(8,7,26,.96); }
nav.tabs .btn { min-height: 50px; border: 1px solid var(--line); border-radius: 12px; color: var(--dim); font-size: 11px; font-weight: 800; letter-spacing: .14em; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
nav.tabs .btn.on { color: var(--pink); border-color: var(--pink); background: rgba(255,61,154,.14); }

.panel { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.card { padding: 16px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(90% 80% at 15% 0%, var(--tint, transparent) 0%, transparent 70%); pointer-events: none; }
.card > * { position: relative; }
.pad { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.h { margin: 0; font-size: 11px; letter-spacing: .16em; color: var(--pink); font-weight: 700; display: flex; align-items: center; }
.h.amber { color: var(--amber); }
.h2 { margin: 0; font-size: 22px; line-height: 1.1; }
.h1 { margin: 0; font-size: 28px; line-height: 1.1; text-align: center; }
.flagname { font-size: 22px; line-height: 1.05; }
.list { overflow: hidden; }
.logrow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line3); }
.logrow:last-child { border-bottom: 0; }
.logrow b { font-size: 14px; font-weight: 600; }
.btnrow { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line3); color: inherit; cursor: pointer; font: inherit; }
.mini, .flag { flex: none; display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(243,241,255,.15); }
.tag { flex: none; font-size: 9px; font-weight: 800; color: var(--night); border-radius: 4px; padding: 2px 5px; }
.tag.cyan { background: var(--cyan); font-size: 11px; }
.amberbg { background: var(--amber); align-self: flex-start; margin-top: 4px; }
.next { display: flex; gap: 10px; align-items: flex-start; padding: 2px 4px; font-size: 14px; line-height: 1.45; color: var(--soft); }
.dashed { border: 1px dashed var(--line2); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.45; color: var(--soft); }

.namerow { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.card > .namerow:only-child { padding-bottom: 0; border-bottom: 0; }
.avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; color: var(--night); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.pname { font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nameinput { font: 800 16px var(--body); padding: 6px 8px; border: 1px solid var(--pink); border-radius: 8px; background: var(--deep); color: var(--text); outline: none; min-width: 0; }
.smallbtn { flex: none; min-height: 34px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 8px; color: var(--pink); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.smallbtn.primary { background: var(--pink); color: var(--night); border-color: var(--pink); }
.stats3big { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 12px; text-align: center; }
.stats3big b { display: block; font-size: 24px; } .stats3big span { font-size: 12px; color: var(--dim); }
.bigbtn { width: 100%; min-height: 60px; border-radius: 16px; background: var(--pink); color: var(--night); display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 18px; letter-spacing: .03em; box-shadow: 0 10px 30px rgba(255,61,154,.35); text-decoration: none; }

/* flags */
.flagpole { display: inline-flex; align-items: flex-start; flex: none; }
.flagpole .pole { width: 3px; height: var(--ph); background: linear-gradient(#F3F1FF, #6B68A0); border-radius: 2px; }
.flagpole .cloth { position: relative; width: var(--fw); height: var(--fh); border-radius: 4px; overflow: hidden; box-shadow: 0 10px 28px rgba(0,0,0,.4); }
.flagpole .cloth .flag { box-shadow: none; border-radius: 0; }
.wave { animation: wave 3.4s ease-in-out infinite; transform-origin: left center; }
.sheen { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 15%, rgba(255,255,255,.22) 30%, transparent 45%, rgba(0,0,0,.2) 65%, transparent 80%); background-size: 250% 100%; animation: sheen 3.4s linear infinite; pointer-events: none; }

/* designer */
.preview { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 0 4px; }
.prevname { font-size: 18px; text-align: center; }
.badge { font-size: 10px; font-weight: 800; letter-spacing: .08em; border: 1px solid; border-radius: 999px; padding: 4px 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.grid12 { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.lbl { display: flex; flex-direction: column; gap: 5px; }
.lbl input { font: 700 15px var(--body); letter-spacing: 0; padding: 10px; border: 1px solid var(--line2); border-radius: 10px; background: var(--deep); color: var(--text); min-width: 0; outline-color: var(--pink); }
.segs3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; background: var(--deep); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.seg { min-height: 36px; border-radius: 9px; color: var(--dim); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.seg.on { background: var(--pink); color: var(--night); }
.swgrid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.sw { height: 34px; border-radius: 9px; border: 2px solid transparent; padding: 0; }
.sw.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--night), 0 0 14px var(--g); }
.tilegrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 7px 4px 6px; border-radius: 10px; border: 2px solid var(--line); color: var(--dim); }
.tile span { font-size: 9px; letter-spacing: .06em; }
.tile.on, .pos.on { border-color: var(--pink); background: rgba(255,61,154,.12); color: var(--text); }
.pos { min-height: 40px; border-radius: 10px; border: 2px solid var(--line); color: var(--text); font-size: 11px; font-weight: 800; }
.ghostbtn { min-height: 56px; border: 1px dashed var(--line2); border-radius: 14px; color: var(--text); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.ghostbtn.sm, .primarybtn.sm { min-height: 46px; padding: 0 16px; }
.raisebtn, .primarybtn { min-height: 56px; border-radius: 14px; background: var(--pink); color: var(--night); font-size: 14px; }
.raisebtn.off { background: var(--line3); color: var(--dim); }
.ghost { color: var(--dim); font-size: 11px; letter-spacing: .1em; min-height: 40px; }

/* map */
.regions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; background: var(--deep); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.regions .btn { min-height: 36px; border-radius: 9px; color: var(--dim); font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 0 2px; }
.regions .btn.on { background: var(--pink); color: var(--night); }
.mapcard { overflow: hidden; padding: 0; background: #08071A; }
.mapview { position: relative; }
.map-stage { width: 100%; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; overflow: hidden; }
.map-stage svg { display: block; }
.map-labels { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.map-labels span { position: absolute; white-space: nowrap; font-size: 10px; font-weight: 600; letter-spacing: .02em; text-shadow: 0 0 3px #08071A, 0 0 3px #08071A, 0 1px 2px #08071A; }
.map-info { position: absolute; left: 8px; top: 8px; font-size: 10px; font-weight: 800; letter-spacing: .08em; pointer-events: none; background: rgba(8,7,26,.82); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; }
.map-info span { color: var(--pink); }
.map-zoom { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; }
.map-zoom .btn { width: 34px; height: 34px; border: 1px solid var(--line2); border-radius: 10px; background: rgba(8,7,26,.88); color: var(--text); font-size: 18px; font-weight: 700; line-height: 1; }
.map-hint { position: absolute; left: 8px; bottom: 8px; font-size: 9px; letter-spacing: .06em; color: var(--dim); pointer-events: none; background: rgba(8,7,26,.82); border-radius: 6px; padding: 3px 7px; }
.map-sel { position: absolute; left: 8px; right: 8px; top: 40px; background: rgba(11,10,30,.97); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; animation: rise .3s ease both; }
.map-sel .x { flex: none; width: 32px; height: 32px; border: 1px solid var(--line2); border-radius: 8px; color: var(--text); }
.map-sel .row { align-items: flex-start; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; font-size: 10px; text-align: center; }
.stats3 span { border: 1px solid var(--line); border-radius: 6px; padding: 4px; color: var(--dim); } .stats3 b { color: var(--text); }
.map-sel .up { min-height: 34px; border: 1px solid var(--line2); border-radius: 8px; background: #16143A; color: var(--text); font-size: 11px; text-align: left; padding: 0 10px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 12px; font-weight: 700; }
.chip.on { background: rgba(255,61,154,.16); border-color: var(--pink); }
.ping { animation: ping 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.march { animation: march 1s linear infinite; }

/* race */
.chart { width: 100%; height: auto; display: block; }
.racerow { width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: inherit; display: flex; flex-direction: column; gap: 6px; }
.racerow b { font-size: 15px; } .racerow .big { font-size: 22px; }
.rank { width: 20px; font-size: 18px; }
.bar { height: 5px; border-radius: 3px; background: var(--line3); overflow: hidden; } .bar i { display: block; height: 100%; transition: width .7s ease; }
.prow { display: grid; grid-template-columns: 26px minmax(0, 1fr) 46px 46px; gap: 6px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line3); }
.prow.me { background: rgba(255,61,154,.1); }
.prow.you { background: rgba(255,61,154,.12); border-top: 1px solid var(--pink); border-bottom: 0; color: var(--pink); }
.rec { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.badge2 { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; }

/* sheets & overlays */
.sheet-bg, .tut-bg { position: fixed; inset: 0; z-index: 20; background: rgba(5,4,14,.72); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.sheet { width: 100%; max-width: 440px; max-height: 92dvh; overflow-y: auto; background: var(--night); border-top: 2px solid var(--amber); border-radius: 20px 20px 0 0; padding: 16px 14px 28px; display: flex; flex-direction: column; gap: 12px; }
.stat { padding: 8px; display: flex; flex-direction: column; gap: 2px; } .stat b { font-size: 17px; }
.caption { min-height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 11px; align-self: stretch; text-align: left; }
.howrow { display: flex; gap: 12px; padding: 12px; } .howrow b { font-size: 15px; }
.tut-bg { z-index: 38; padding: 0 12px 16px; background: rgba(5,4,14,.78); }
.tut { width: 100%; max-width: 416px; border: 1px solid var(--line2); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 14px; background: var(--night); }
.tutart { height: 150px; border: 1px solid var(--line); border-radius: 14px; background: var(--deep); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tuttext { min-height: 110px; } .tuttext p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--soft); }
.tdot { height: 6px; width: 6px; border-radius: 3px; background: var(--line2); transition: width .25s; } .tdot.on { width: 22px; background: var(--pink); }
.w230 { width: 230px; } .tbar { flex: 1; height: 12px; border-radius: 6px; background: var(--line3); overflow: hidden; } .tbar i { display: block; height: 100%; }
.splash { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 44px 24px 30px; text-align: center; max-width: 440px; margin: 0 auto; }
.splashflags { position: relative; width: 300px; height: 220px; } .splashflags > div { position: absolute; } .f1 { left: 30px; top: 30px; } .f2 { left: 170px; top: 6px; } .f3 { left: 150px; top: 110px; }
.wordmark { margin: 0; font-size: 72px; line-height: .95; letter-spacing: .02em; }
.tagline { margin: 0; font-size: 18px; line-height: 1.3; } .lead { margin: 0; font-size: 15px; line-height: 1.45; max-width: 30ch; }
.pill { display: inline-flex; align-self: center; align-items: center; gap: 4px; font-size: 11px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.qr { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: max(18px, env(safe-area-inset-top)) 20px 24px; max-width: 440px; margin: 0 auto; }
.qrbox { background: #FFFFFF; border-radius: 18px; padding: 14px; }
.qrcode { width: min(64vw, 250px); height: min(64vw, 250px); } .qrcode svg { width: 100%; height: 100%; display: block; }
.qrcode.fresh { animation: fresh .25s ease; }
.drainbar { height: 6px; border-radius: 3px; background: var(--line3); overflow: hidden; } .drainbar i { display: block; height: 100%; animation: drain 2s linear forwards; transform-origin: left center; }
.raising { position: fixed; inset: 0; z-index: 35; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; }
.raisewrap { position: relative; width: 240px; height: 260px; } .bigpole { position: absolute; left: 40px; top: 0; width: 5px; height: 260px; background: linear-gradient(#F3F1FF, #6B68A0); border-radius: 3px; }
.raisewrap .raise { position: absolute; left: 42px; top: 6px; } .raisewrap .pole { display: none; }
.burst { position: absolute; left: 50%; top: 40px; width: 160px; height: 160px; margin-left: -80px; border-radius: 50%; border: 2px solid; animation: burst 1.4s ease-out 1.2s both; }
.raise { animation: raise 1.5s cubic-bezier(.3,.8,.3,1) both; }
.screen { flex: 1; overflow-y: auto; padding: 32px 20px 26px; display: flex; flex-direction: column; gap: 16px; }
.screen.center { justify-content: center; }
.errorscreen { justify-content: center; } .errorscreen p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--soft); } .errorscreen .h1 { text-align: left; }
.bignum { font-size: 60px; line-height: 1; }
.invite { justify-content: space-between; align-items: center; }
.invflag { position: relative; height: 230px; display: flex; align-items: center; justify-content: center; }
.ring { position: absolute; width: 200px; height: 200px; border-radius: 50%; border: 1px solid; animation: ringp 2.2s ease-out infinite; } .ring.d2 { animation-delay: 1.1s; }
.locrow { display: flex; align-items: center; gap: 12px; padding: 11px 14px; cursor: pointer; } .locrow input { width: 22px; height: 22px; accent-color: var(--pink); flex: none; } .locrow b { font-size: 14px; }
.joined { align-items: center; justify-content: center; position: relative; overflow: hidden; }
.stamp { font-size: 40px; color: var(--text); border-radius: 14px; padding: 4px 16px 8px; }
.confetti { position: absolute; left: 50%; top: 30%; width: 8px; height: 12px; border-radius: 2px; animation: confetti 1.6s ease-out both; }
.toast { position: fixed; left: 50%; top: 12px; z-index: 45; width: min(350px, 92vw); transform: translateX(-50%); background: #16143A; border: 1px solid; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5); padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; animation: toast 3.2s ease both; }
.toast b { font-size: 14px; }
.slideup { animation: slideup .35s cubic-bezier(.2,.9,.3,1) both; }
.rise { animation: rise .45s ease both; }
.slam { animation: slam .55s cubic-bezier(.2,1.5,.4,1) both; }
.float1 { animation: float 7s ease-in-out infinite; } .float2 { animation: float 9s ease-in-out infinite reverse; }
.tscan { animation: tscan 1.6s ease-in-out infinite; }
.tpop { animation: tpop 2.6s ease infinite; transform-box: fill-box; transform-origin: center; }
.tgrow { animation: tgrow 1.6s cubic-bezier(.2,.8,.2,1) both; transform-origin: left center; }
@keyframes wave { 0%, 100% { transform: perspective(400px) rotateY(-10deg) skewY(-1.5deg); } 50% { transform: perspective(400px) rotateY(8deg) skewY(1.5deg); } }
@keyframes sheen { from { background-position: 120% 0; } to { background-position: -130% 0; } }
@keyframes ping { 0% { transform: scale(1); opacity: .95; } 100% { transform: scale(4); opacity: 0; } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slideup { from { transform: translateY(100%); } to { transform: none; } }
@keyframes march { to { stroke-dashoffset: -14; } }
@keyframes toast { 0% { transform: translate(-50%, -30px); opacity: 0; } 10%, 86% { transform: translate(-50%, 0); opacity: 1; } 100% { transform: translate(-50%, -30px); opacity: 0; } }
@keyframes float { 0%, 100% { transform: translate(0, 0) rotate(-4deg); } 50% { transform: translate(10px, -14px) rotate(5deg); } }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes raise { from { transform: translateY(190px); } to { transform: none; } }
@keyframes burst { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(3); opacity: 0; } }
@keyframes fresh { from { opacity: .2; } to { opacity: 1; } }
@keyframes ringp { 0% { transform: scale(.8); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes slam { 0% { transform: scale(2.4) rotate(-8deg); opacity: 0; } 100% { transform: scale(1) rotate(-4deg); opacity: 1; } }
@keyframes confetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(260deg); opacity: 0; } }
@keyframes tscan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(32px); } }
@keyframes tpop { 0%, 15% { transform: scale(0); } 30%, 100% { transform: scale(1); } }
@keyframes tgrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
main.content > *, .sheet > *, .screen > * { flex-shrink: 0; }
.map-sel[hidden] { display: none; }

/* standard Lazar Labs footer */
.llfoot { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 0 4px; }
.ll-more { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 18px; text-decoration: none; background: var(--deep); color: var(--text); border: 2px solid var(--pink); border-radius: 14px; box-shadow: 0 0 14px rgba(255,61,154,.35); font-weight: 800; font-size: 15px; }
.ll-more:active { transform: translateY(2px); }
.ll-trio { display: inline-flex; gap: 3px; align-items: center; }
.ll-trio i { font-style: normal; font-family: var(--disp); font-weight: 900; font-size: 11px; line-height: 1.1; color: #1E1B3A; border: 2px solid #1E1B3A; border-radius: 6px; box-shadow: 2px 2px 0 #1E1B3A; padding: 2px 5px 3px; }
.ll-trio i:nth-child(1) { background: #FFE14D; transform: rotate(-4deg); }
.ll-trio i:nth-child(2) { background: #7DD3C0; transform: rotate(3deg); }
.ll-trio i:nth-child(3) { background: #FF8A70; transform: rotate(-2deg); }
.legal { margin: 0; text-align: center; font-size: 12px; font-weight: 700; color: var(--dim); line-height: 1.6; }
.legal a { color: inherit; }
