@font-face { font-family: 'KenneyFuture'; src: url('/fonts/KenneyFuture.ttf'); font-display: swap; }
:root {
  --ink: #2a1740; --paper: #fff8ec; --pink: #ff5d9e; --yellow: #ffd23f; --blue: #4dabf7; --green: #5be584; --red: #ff5d73; --purple: #8a63ff;
  --glass: rgba(33, 18, 62, .62); --edge: rgba(255, 255, 255, .22);
  --disp: 'KenneyFuture', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif; --body: 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #1c1233; color: var(--paper); font-family: var(--body); user-select: none; -webkit-user-select: none; }
canvas#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#vignette { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(30, 10, 60, .38) 100%); }
[hidden] { display: none !important; }

.logo { font-family: var(--disp); font-size: clamp(46px, 8vw, 78px); display: inline-flex; flex-direction: column; align-items: center; line-height: .86; transform: rotate(-3deg); filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35)); user-select: none; }
.logo .lw { display: flex; align-items: center; justify-content: center; white-space: nowrap; } .logo .l2 { font-size: 1.22em; margin-top: -.04em; margin-left: .5em; }
.logo i { font-style: normal; display: inline-block; color: var(--c, #fff); -webkit-text-stroke: .09em var(--ink); paint-order: stroke fill; text-shadow: 0 .07em 0 var(--ink); transform: translateY(var(--y, 0)) rotate(var(--r, 0deg)); animation: logoBob 2.4s ease-in-out infinite; }
.logo i:nth-child(2n) { animation-delay: -.7s; } .logo i:nth-child(3n) { animation-delay: -1.4s; }
.logo i.eye { width: .74em; height: .74em; margin: 0 .035em; border-radius: 50%; background: #fff; border: .075em solid var(--ink); box-sizing: border-box; position: relative; box-shadow: 0 .07em 0 var(--ink); -webkit-text-stroke: 0; }
.logo i.eye u { position: absolute; width: .3em; height: .3em; border-radius: 50%; background: var(--ink); left: 50%; top: 50%; margin: -.15em 0 0 -.15em; animation: logoLook 3.2s ease-in-out infinite; }
.logo i.eye + i.eye u { animation-delay: -.12s; }
.logo.big { font-size: clamp(56px, 11vw, 110px); }
@keyframes logoBob { 0%, 100% { transform: translateY(var(--y, 0)) rotate(var(--r, 0deg)); } 50% { transform: translateY(calc(var(--y, 0em) - .06em)) rotate(calc(var(--r, 0deg) * -.6)); } }
@keyframes logoLook { 0%, 100% { transform: translate(.08em, .04em); } 30% { transform: translate(-.1em, .02em); } 60% { transform: translate(.02em, -.08em); } 80% { transform: translate(.1em, .06em); } }
.h2 { font-family: var(--disp); font-size: 22px; letter-spacing: 2px; color: var(--yellow); text-shadow: 0 3px 0 var(--ink); }

#loading { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: radial-gradient(circle at 50% 40%, #5a3aa8, #1c1233); transition: opacity .5s; }
#loading.gone { opacity: 0; pointer-events: none; }
#loading .bar { width: min(340px, 70vw); height: 14px; border-radius: 99px; background: rgba(255, 255, 255, .15); overflow: hidden; border: 2px solid var(--ink); }
#loading .bar i { display: block; height: 100%; width: 5%; background: linear-gradient(90deg, var(--pink), var(--yellow)); transition: width .25s; }
#loadMsg { font-size: 14px; opacity: .8; letter-spacing: 1px; }

.screen { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; padding: clamp(14px, 3vh, 34px) 16px 16px; gap: clamp(10px, 2vh, 18px); overflow-y: auto; }
.screen header { text-align: center; margin-top: 4px; }
.tagline { margin-top: 12px; font-size: clamp(13px, 1.8vw, 17px); color: #fff; opacity: .9; text-shadow: 0 2px 0 var(--ink); letter-spacing: .5px; }
.profile { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; justify-content: center; padding: 12px 18px; border-radius: 22px; background: var(--glass); border: 2px solid var(--edge); backdrop-filter: blur(8px); }
.profile .name { display: grid; gap: 4px; font-size: 11px; letter-spacing: 2px; color: var(--yellow); }
.profile input { font: 700 18px var(--body); width: 200px; padding: 9px 12px; border-radius: 12px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); outline: none; }
.profile input:focus { border-color: var(--pink); }
.chips { display: flex; gap: 8px; } .btns { display: flex; gap: 8px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; border-radius: 99px; background: rgba(255, 255, 255, .14); border: 2px solid var(--edge); font-weight: 700; font-size: 16px; }

.btn { font: 700 15px var(--disp); letter-spacing: 1px; padding: 11px 18px; border-radius: 14px; border: 3px solid var(--ink); background: var(--blue); color: #fff; cursor: pointer; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); box-shadow: 0 5px 0 var(--ink); transition: transform .08s, box-shadow .08s, filter .15s; }
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn.pink { background: var(--pink); } .btn.green { background: var(--green); color: #134d2a; text-shadow: none; } .btn.red { background: var(--red); } .btn.small { padding: 11px 14px; }
.btn[disabled] { filter: grayscale(.9) brightness(.8); cursor: not-allowed; transform: none; box-shadow: 0 3px 0 var(--ink); }
.round { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--ink); background: var(--glass); color: #fff; font: 700 18px var(--disp); cursor: pointer; box-shadow: 0 4px 0 var(--ink); }

.lobbies { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; width: min(1080px, 100%); }
.lobby { position: relative; display: grid; gap: 6px; padding: 16px 16px 14px; border-radius: 22px; background: var(--glass); border: 3px solid var(--edge); backdrop-filter: blur(8px); cursor: pointer; transition: transform .12s, border-color .12s, background .12s; overflow: hidden; text-align: left; color: inherit; font: inherit; }
.lobby:hover { transform: translateY(-4px) rotate(-.6deg); border-color: var(--yellow); background: rgba(66, 36, 120, .75); }
.lobby .t { font-family: var(--disp); font-size: 20px; letter-spacing: 2px; color: var(--yellow); text-shadow: 0 3px 0 var(--ink); }
.lobby .n { font-size: 34px; font-weight: 800; line-height: 1; } .lobby .n small { font-size: 16px; opacity: .65; font-weight: 700; }
.lobby .meter { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .15); overflow: hidden; border: 2px solid rgba(0, 0, 0, .25); }
.lobby .meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--yellow)); border-radius: 99px; transition: width .6s; }
.lobby .st { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: 1px; }
.lobby .tag { padding: 3px 9px; border-radius: 99px; font-size: 11px; letter-spacing: 1.5px; background: var(--green); color: #134d2a; }
.lobby .tag.PLAYING { background: var(--yellow); color: #4a3200; } .lobby .tag.FULL { background: var(--red); color: #fff; } .lobby .tag.WAITING { background: var(--blue); color: #fff; } .lobby .tag.OPEN { background: #b8f1ff; color: #0b3b4a; } .lobby .tag.FINISHED { background: var(--purple); color: #fff; }
.lobby .mode { position: absolute; top: 12px; right: 12px; font-size: 10px; letter-spacing: 2px; padding: 3px 8px; border-radius: 8px; background: rgba(255, 255, 255, .16); } .lobby .mode.ranked { background: var(--purple); }
.lobby .det { font-size: 12px; opacity: .8; min-height: 16px; }
.lobby .go { margin-top: 4px; text-align: center; padding: 9px; border-radius: 12px; background: var(--pink); border: 3px solid var(--ink); font-family: var(--disp); letter-spacing: 2px; box-shadow: 0 4px 0 var(--ink); }
.lobby.full { opacity: .6; cursor: not-allowed; } .lobby.full .go { background: #777; }
.foot { margin-top: auto; font-size: 12px; opacity: .65; text-align: center; padding-top: 8px; }

/* ---- HUD ---- */
#hud { position: fixed; inset: 0; z-index: 8; pointer-events: none; font-family: var(--disp); }
#hud button { pointer-events: auto; }
#top { position: absolute; top: 64px; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; padding: 0 56px 0 14px; }
#roundName { justify-self: start; padding: 8px 14px; border-radius: 14px; background: var(--glass); border: 2px solid var(--edge); font-size: 15px; letter-spacing: 2px; max-width: 46vw; }
#timerBox { text-align: center; }
#timer { font-size: 34px; color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); min-width: 110px; }
#timer.low { color: var(--red); animation: pulse .5s infinite alternate; }
#goal { font-size: 12px; letter-spacing: 2px; color: var(--yellow); text-shadow: 0 2px 0 var(--ink); margin-top: 2px; }
#alive { justify-self: end; padding: 8px 14px; border-radius: 14px; background: var(--glass); border: 2px solid var(--edge); font-size: 15px; letter-spacing: 2px; text-align: right; }
#alive b { color: var(--yellow); font-size: 20px; } #alive small { display: block; font-size: 10px; opacity: .8; letter-spacing: 1px; }
#count { position: absolute; top: 30%; left: 0; right: 0; text-align: center; font-size: clamp(90px, 18vw, 200px); color: #fff; -webkit-text-stroke: 8px var(--ink); paint-order: stroke fill; text-shadow: 0 10px 0 var(--ink); }
#count.pop { animation: pop .55s cubic-bezier(.2, 1.6, .4, 1); }
#banner { position: absolute; top: 18%; left: 0; right: 0; text-align: center; opacity: 0; transform: scale(.7); transition: opacity .2s, transform .35s cubic-bezier(.2, 1.7, .4, 1); }
#banner.show { opacity: 1; transform: scale(1); }
#banner .b1 { font-size: clamp(34px, 7vw, 84px); color: var(--yellow); -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; text-shadow: 0 8px 0 var(--ink), 0 14px 24px rgba(0, 0, 0, .3); transform: rotate(-2deg); display: inline-block; }
#banner .b2 { margin-top: 10px; font-size: clamp(14px, 2.4vw, 24px); color: #fff; text-shadow: 0 3px 0 var(--ink); letter-spacing: 2px; }
#feed { position: absolute; right: 14px; top: 124px; width: min(300px, 44vw); display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
#feed div { padding: 6px 12px; border-radius: 12px; background: var(--glass); border: 2px solid var(--edge); font: 700 13px var(--body); animation: slide .3s ease-out; max-width: 100%; }
#feed div.me { border-color: var(--yellow); color: var(--yellow); } #feed div.out { border-color: var(--red); } #feed div.fin { border-color: var(--green); }
#toast { position: absolute; bottom: 74px; left: 50%; transform: translateX(-50%); padding: 10px 18px; border-radius: 14px; background: var(--ink); border: 2px solid var(--yellow); font: 700 15px var(--body); opacity: 0; transition: opacity .2s; max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; }
#hint { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font: 700 12px var(--body); letter-spacing: 1px; opacity: .75; text-shadow: 0 2px 0 var(--ink); white-space: nowrap; }
#chat { position: absolute; left: 14px; bottom: 44px; width: min(380px, 62vw); display: flex; flex-direction: column; gap: 5px; pointer-events: none; }
#chat > * { pointer-events: auto; }
#chatLog { display: flex; flex-direction: column; gap: 2px; max-height: 150px; overflow: hidden; justify-content: flex-end; pointer-events: none; font: 700 13px var(--body); text-shadow: 0 2px 0 var(--ink), 0 0 6px var(--ink); }
#chatLog.open { max-height: 220px; overflow-y: auto; pointer-events: auto; background: rgba(20, 10, 40, .5); border-radius: 12px; padding: 6px 8px; }
#chatLog .ln { opacity: 1; transition: opacity .6s; word-break: break-word; } #chatLog .ln.old { opacity: 0; } #chatLog.open .ln.old { opacity: 1; }
#chatLog .ln b { color: var(--yellow); } #chatLog .ln.me b { color: var(--green); } #chatLog .ln.sys { color: #cdbdff; font-weight: 600; }
#chatIn { width: 100%; box-sizing: border-box; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--edge); background: rgba(20, 10, 40, .85); color: #fff; font: 700 14px var(--body); outline: none; } #chatIn:focus { border-color: var(--yellow); }
#chat .row { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { padding: 6px 12px; border-radius: 99px; background: var(--glass); border: 2px solid var(--edge); color: #fff; font: 700 12px var(--body); cursor: pointer; }
.pill:hover { border-color: #fff; }
#voiceBox.talk { border-color: var(--green); } #voiceBox.muted { border-color: var(--red); } #voiceBox.err { border-color: var(--red); color: #ffd0d0; }
#speakers { font: 700 12px var(--body); color: var(--green); text-shadow: 0 2px 0 var(--ink); min-height: 14px; }
#boosts { position: absolute; left: 14px; bottom: 80px; display: flex; flex-direction: column; gap: 6px; }
#boosts .bo { padding: 6px 12px; border-radius: 12px; background: var(--glass); border: 2px solid var(--yellow); font: 700 12px var(--body); }
#netinfo { position: absolute; left: 14px; top: 12px; font: 700 10px var(--body); opacity: 0; }
#btnPause { position: absolute; top: 68px; right: 12px; }
#spec { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); text-align: center; padding: 14px 22px; border-radius: 22px; background: var(--glass); border: 3px solid var(--red); backdrop-filter: blur(6px); width: min(560px, 94vw); }
#spec .s1 { font-size: 30px; color: var(--red); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; letter-spacing: 3px; }
#spec .s2 { font: 700 13px var(--body); margin: 6px 0 10px; opacity: .9; }
.sbtns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; } .sbtns.col { flex-direction: column; }
#result { position: absolute; top: 22%; left: 50%; transform: translateX(-50%); text-align: center; width: 94vw; }
#result .r1 { font-size: clamp(40px, 9vw, 110px); -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; text-shadow: 0 8px 0 var(--ink); animation: pop .6s cubic-bezier(.2, 1.6, .4, 1); display: inline-block; transform: rotate(-2deg); }
#result .r1.ok { color: var(--green); } #result .r1.no { color: var(--red); } #result .r1.neutral { color: var(--yellow); }
#qual { position: absolute; top: 38%; left: 50%; transform: translateX(-50%); width: min(620px, 92vw); max-height: 50vh; overflow: hidden; padding: 10px 12px 12px; border-radius: 22px; background: linear-gradient(160deg, rgba(75, 44, 142, .93), rgba(42, 21, 85, .93)); border: 3px solid var(--edge); box-shadow: 0 8px 0 var(--ink), 0 14px 30px rgba(0, 0, 0, .4); text-align: center; animation: pop .5s cubic-bezier(.2, 1.5, .4, 1); }
#qual .qh { font-family: var(--disp); font-size: clamp(18px, 3.2vw, 26px); letter-spacing: 2px; color: var(--green); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); margin-bottom: 8px; } #qual .qh small { font-size: .6em; color: #fff; opacity: .85; letter-spacing: 1px; }
#qual .qg { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 5px; max-height: calc(50vh - 66px); overflow: hidden; }
#qual .qn { padding: 5px 6px; border-radius: 11px; background: rgba(255, 255, 255, .13); border: 2px solid var(--edge); font: 700 12px var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 0 var(--ink); animation: pop .4s cubic-bezier(.2, 1.5, .4, 1) backwards; }
#qual .qn.me { background: var(--yellow); color: #3a2a00; border-color: #fff; text-shadow: none; } #qual .qn b { opacity: .7; margin-right: 4px; font-size: 11px; }
#result .r2 { margin-top: 10px; font-size: 18px; letter-spacing: 2px; text-shadow: 0 3px 0 var(--ink); }
#podium { position: absolute; top: 9%; left: 50%; transform: translateX(-50%); text-align: center; width: min(560px, 94vw); }
#podium .p1 { font-size: clamp(26px, 5vw, 50px); color: var(--yellow); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ink); }
#podium .p2 { margin-top: 8px; font: 700 15px var(--body); text-shadow: 0 2px 0 var(--ink); }
#reward { margin: 12px auto; padding: 12px 18px; border-radius: 18px; background: var(--glass); border: 3px solid var(--yellow); font: 700 15px var(--body); display: none; }
#reward .big { font: 400 26px var(--disp); color: var(--yellow); display: block; margin-bottom: 4px; }
#touch { position: absolute; inset: auto 0 0 0; height: 40vh; pointer-events: none; }
#stick { position: absolute; left: 22px; bottom: 28px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 255, 255, .12); border: 3px solid var(--edge); pointer-events: auto; touch-action: none; display: grid; place-items: center; }
#stick i { width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .5); border: 3px solid var(--ink); }
#touch .round { position: absolute; right: 22px; bottom: 34px; pointer-events: auto; touch-action: none; } #touch .round.big { width: 86px; height: 86px; right: 30px; bottom: 100px; font-size: 16px; background: var(--pink); } #tGrab { right: 120px; bottom: 118px; width: 60px; height: 60px; font-size: 12px; background: var(--yellow); color: var(--ink); }
#tDive { right: 130px; bottom: 40px; width: 64px; height: 64px; font-size: 13px; background: var(--blue); }

/* ---- modals ---- */
.modal { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: rgba(20, 8, 44, .62); backdrop-filter: blur(4px); padding: 14px; }
.card { width: min(900px, 100%); max-height: 92vh; overflow-y: auto; padding: 18px 20px 22px; border-radius: 26px; background: linear-gradient(160deg, #4b2c8e, #2a1555); border: 4px solid var(--ink); box-shadow: 0 10px 0 var(--ink), 0 24px 60px rgba(0, 0, 0, .5); }
.card.narrow { width: min(540px, 100%); }
.mhead { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; } .mhead .h2 { flex: 1; font-size: 28px; }
.x { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--ink); background: var(--red); color: #fff; font: 700 16px var(--body); cursor: pointer; }
.tabs { display: flex; gap: 8px; margin-bottom: 10px; } .tabs button { flex: 1; padding: 10px; border-radius: 12px; border: 3px solid var(--ink); background: rgba(255, 255, 255, .12); color: #fff; font: 700 14px var(--disp); letter-spacing: 1px; cursor: pointer; } .tabs button.on { background: var(--yellow); color: var(--ink); }
.wlab { display: block; font-size: 13px; margin: 6px 0; } .wlab small { opacity: .7; display: block; font-weight: 600; }
.wlab input { width: 100%; box-sizing: border-box; margin-top: 5px; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--edge); background: rgba(20, 10, 40, .8); color: #fff; font: 600 14px var(--body); outline: none; } .wlab input:focus { border-color: var(--yellow); }
.wmsg { min-height: 18px; font-size: 13px; font-weight: 700; margin: 2px 0 8px; color: var(--yellow); } .wmsg.err { color: #ff9aa8; } .wmsg.ok { color: var(--green); }
#reward .sol { display: block; margin-top: 6px; font-size: 18px; color: var(--green); }
.note { font-size: 13px; opacity: .85; margin: 4px 0 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.item { display: grid; gap: 6px; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .1); border: 3px solid var(--edge); text-align: center; }
.item.owned { border-color: var(--green); } .item.eq { border-color: var(--yellow); background: rgba(255, 210, 63, .16); }
.item .ic { height: 54px; display: grid; place-items: center; font-size: 34px; }
.item .sw { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--ink); }
.item .nm { font: 400 14px var(--disp); letter-spacing: 1px; } .item .ds { font-size: 11px; opacity: .75; min-height: 28px; } .item .pr { font-weight: 800; color: var(--yellow); }
.item .btn { padding: 8px 10px; font-size: 12px; box-shadow: 0 3px 0 var(--ink); }
.how { display: grid; gap: 12px; padding-left: 18px; font-size: 15px; line-height: 1.4; }
.slider { display: grid; gap: 6px; margin: 12px 0; font: 400 13px var(--disp); letter-spacing: 2px; color: var(--yellow); } .slider input { width: 100%; accent-color: var(--pink); }
.note b { color: var(--yellow); }

/* ---- the strip across the top of every screen: X / CA soon on the left, balance + WITHDRAW on the right ---- */
#topstrip { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 5px 10px; pointer-events: none; font-family: var(--disp); }
#topstrip > * { display: flex; gap: 8px; align-items: center; pointer-events: auto; }
.bchip { padding: 9px 20px; border-radius: 99px; background: var(--glass); border: 3px solid var(--edge); color: #fff; font-size: 19px; letter-spacing: 2px; text-decoration: none; cursor: default; line-height: 1; box-shadow: 0 4px 0 var(--ink); white-space: nowrap; } .bchip b { font-size: 1.25em; } .bchip .h { font-size: .8em; opacity: .9; letter-spacing: 1px; }
.bchip.soon { opacity: .9; } a.bchip[href], span.bchip:not(.soon) { cursor: pointer; border-color: var(--yellow); } a.bchip[href]:hover { background: var(--yellow); color: var(--ink); }
.bal { padding: 5px 11px; border-radius: 99px; background: var(--glass); border: 2px solid var(--edge); font: 700 13px var(--body); }
.bal b { color: var(--yellow); } .bal.sol b { color: #9be7ff; }
.btn.small.withdraw { padding: 6px 12px; font-size: 11px; box-shadow: 0 3px 0 var(--ink); background: var(--green); color: #134d2a; text-shadow: none; }
.wbal { display: flex; gap: 14px; margin: 6px 0 10px; } .wbal > div { flex: 1; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.1); border: 2px solid var(--edge); text-align: center; font-size: 22px; font-weight: 800; } .wbal small { display: block; font-size: 10px; letter-spacing: 2px; opacity: .7; margin-bottom: 4px; } .wbal b { color: var(--yellow); }
.screen { padding-top: 64px; }
@media (max-width: 640px) { .bal.sol { display: none; } .bchip { font-size: 15px; padding: 7px 14px; letter-spacing: 1px; border-width: 2px; } .bchip .h { display: none; } #topstrip { gap: 6px; } }
#gear { position: absolute; right: 14px; bottom: 44px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; font: 700 13px var(--body); }
#gear .g { display: flex; gap: 8px; align-items: center; padding: 7px 12px; border-radius: 14px; background: var(--glass); border: 2px solid var(--edge); min-width: 150px; justify-content: space-between; }
#gear .g b { color: var(--yellow); font-size: 15px; } #gear .g.off { opacity: .55; } #gear .g.on { border-color: var(--green); } #gear .g.cd { border-color: var(--red); }
#gear kbd { background: var(--ink); border-radius: 6px; padding: 1px 6px; font: 700 11px var(--body); margin-left: 4px; }
#tFire { right: 190px; bottom: 40px; width: 62px; height: 62px; font-size: 12px; background: var(--red); }
#tUse { right: 40px; bottom: 210px; width: 56px; height: 56px; font-size: 12px; background: var(--purple); }
@keyframes pop { 0% { transform: scale(.3) rotate(-10deg); opacity: 0 } 70% { transform: scale(1.12) } 100% { transform: scale(1) rotate(0); opacity: 1 } }
@keyframes pulse { to { transform: scale(1.12) } }
@keyframes slide { from { transform: translateX(40px); opacity: 0 } to { transform: none; opacity: 1 } }
@media (max-width: 640px) { .lobby .t { font-size: 15px; letter-spacing: 1px; } .lobby .mode { font-size: 8px; padding: 2px 6px; } .lobby .n { font-size: 28px; } #hint { display: none; } #top { padding-right: 52px; } #roundName { font-size: 12px; padding: 6px 10px; } #timer { font-size: 26px; min-width: 80px; } #chat { bottom: 8px; width: 58vw; } #chatLog { max-height: 90px; } #boosts { bottom: 44px; } .lobbies { grid-template-columns: 1fr 1fr; } }
@media (hover: none) { #hint { display: none; } }

.hero { display: block; width: min(860px, 96vw); height: auto; margin: 0 auto; border-radius: 22px; border: 4px solid var(--ink); box-shadow: 0 8px 0 var(--ink), 0 16px 30px rgba(0, 0, 0, .35); }
.loadmascot { width: clamp(120px, 26vw, 190px); height: auto; border-radius: 28px; border: 4px solid var(--ink); box-shadow: 0 8px 0 var(--ink); animation: logoBob 1.6s ease-in-out infinite; display: block; margin: 0 auto 12px; }
