/* The look of everything drawn over the game: chunky, rounded, sticker-like panels on a sunny day.
   Preview every piece at /dev/kit.html. Display type: Lilita One. Text: Nunito. (Both OFL, in /fonts.) */
@font-face { font-family: "Lilita One"; src: url("fonts/LilitaOne-Regular.ttf") format("truetype"); font-display: block; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }

:root {
  --ink: #141a26; --ink2: #2a3346; --paper: #fbf6e9; --paper2: #f0e7d0; --line: #d9ccac;
  --blue: #3b8fe8; --blue2: #2466c4; --red: #ef5a4c; --red2: #c63a31; --gold: #ffd24a; --gold2: #e0a41c; --green: #4cc46a; --green2: #2f9a4d; --mute: #7d8698;
  --display: "Lilita One", "Segoe UI", system-ui, sans-serif; --text: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --drop: 0 6px 0 rgba(10, 14, 22, .32); --r: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0e1420; font-family: var(--text); font-weight: 700; color: var(--ink); user-select: none; -webkit-font-smoothing: antialiased; }
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
#hud { position: fixed; inset: 0; pointer-events: none; }
#hud > * { pointer-events: none; }
#hud .ui, #hud .ui * { pointer-events: auto; }
#lost { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 50; }

/* ---------------------------------------------------------------- pieces */
.panel { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: var(--drop); padding: 16px 18px; color: var(--ink); }
.panel.dark { background: var(--ink); color: var(--paper); border-color: #05070b; }
.panel h2, .title { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: .02em; text-transform: uppercase; margin: 0 0 10px; line-height: 1.05; }
.title.big { font-size: 44px; } .title.small { font-size: 18px; }
.label { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin: 10px 0 5px; }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .row.end { justify-content: flex-end; } .grow { flex: 1; min-width: 0; }
.muted { color: var(--mute); font-weight: 700; }

.btn { font-family: var(--display); font-size: 19px; letter-spacing: .03em; text-transform: uppercase; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 13px; padding: 9px 18px 8px; box-shadow: 0 5px 0 var(--ink); cursor: pointer; transition: transform .07s, box-shadow .07s, filter .1s; white-space: nowrap; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 6px 0 var(--ink); }
.btn:active, .btn.down { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn.primary { background: var(--gold); } .btn.blue { background: var(--blue); color: #fff; } .btn.red { background: var(--red); color: #fff; } .btn.green { background: var(--green); color: #fff; }
.btn.small { font-size: 15px; padding: 5px 12px 4px; border-radius: 10px; box-shadow: 0 4px 0 var(--ink); }
.btn.big { font-size: 26px; padding: 13px 28px 11px; border-radius: 16px; }
.btn.ghost { background: transparent; box-shadow: none; border-color: transparent; color: inherit; } .btn.ghost:hover { background: rgba(20, 26, 38, .08); transform: none; box-shadow: none; }
.btn:disabled, .btn.off { filter: grayscale(.9) opacity(.55); cursor: default; transform: none; box-shadow: 0 5px 0 var(--ink); }

.field { font: 800 17px var(--text); color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 8px 12px; width: 100%; outline: none; user-select: text; }
.field:focus { border-color: var(--blue2); box-shadow: 0 0 0 3px rgba(59, 143, 232, .3); }

.chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: 13px; padding: 3px 10px; border-radius: 99px; background: var(--paper2); border: 2px solid var(--ink); }
.chip.blue { background: var(--blue); color: #fff; } .chip.red { background: var(--red); color: #fff; } .chip.gold { background: var(--gold); } .chip.green { background: var(--green); color: #fff; }
.coins { display: inline-flex; align-items: center; gap: 7px; font-family: var(--display); font-size: 20px; }
.coin { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3b0, var(--gold) 45%, var(--gold2)); border: 2px solid #7a5200; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15); flex: none; }
.coin.small { width: 14px; height: 14px; border-width: 1.5px; }

.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tabs button { font: 900 14px var(--text); text-transform: uppercase; letter-spacing: .05em; padding: 7px 13px; border-radius: 11px; border: 3px solid transparent; background: var(--paper2); color: var(--ink2); cursor: pointer; }
.tabs button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, 34px); gap: 7px; }
.swatches button { width: 34px; height: 34px; border-radius: 10px; border: 3px solid var(--ink); cursor: pointer; padding: 0; position: relative; }
.swatches button.on { outline: 4px solid var(--gold); outline-offset: 1px; transform: scale(1.08); }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 9px; }
.option { position: relative; background: #fff; border: 3px solid var(--ink); border-radius: 13px; padding: 8px 6px 7px; text-align: center; font-size: 13px; font-weight: 900; cursor: pointer; min-height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.option:hover { background: #fffdf4; } .option.on { background: var(--gold); box-shadow: 0 4px 0 var(--ink); transform: translateY(-2px); }
.option .price { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.option.locked { background: var(--paper2); color: var(--ink2); }
.option.locked::after { content: ""; position: absolute; top: 6px; right: 6px; width: 12px; height: 10px; border-radius: 3px; background: var(--ink2); box-shadow: 0 -6px 0 -3px var(--paper2), 0 -6px 0 -1px var(--ink2); }

.list { display: flex; flex-direction: column; gap: 6px; }
.list .item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; background: #fff; border: 2px solid var(--line); font-size: 15px; }
.list .item.me { border-color: var(--ink); background: #fffbe6; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--mute); border: 2px solid var(--ink); flex: none; } .dot.ok { background: var(--green); } .dot.wait { background: var(--gold); } .dot.off { background: #c8ccd4; }
.crown { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 12px solid var(--gold2); flex: none; filter: drop-shadow(0 0 0 var(--ink)); }

.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.toggle i { width: 46px; height: 26px; border-radius: 99px; background: #c8ccd4; border: 3px solid var(--ink); position: relative; flex: none; transition: background .12s; }
.toggle i::after { content: ""; position: absolute; top: 1px; left: 1px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); transition: left .12s; }
.toggle.on i { background: var(--green); } .toggle.on i::after { left: 21px; }

.bar { height: 16px; border-radius: 99px; background: rgba(20, 26, 38, .16); border: 3px solid var(--ink); overflow: hidden; } .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--gold) 60%, #ff7a3d); border-radius: 99px; }
.key { display: inline-block; min-width: 26px; padding: 2px 7px 3px; border-radius: 7px; background: #fff; color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); font: 900 13px var(--text); text-align: center; margin: 0 2px; }
.hints { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 13px; font-weight: 800; color: var(--paper); text-shadow: 0 1px 0 rgba(0, 0, 0, .5); }
.hints span { white-space: nowrap; }

.toasts { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; z-index: 40; pointer-events: none; }
.toast { background: var(--ink); color: var(--paper); border-radius: 12px; padding: 9px 16px; font-size: 15px; box-shadow: var(--drop); animation: pop .18s ease-out; } .toast.good { background: var(--green2); } .toast.bad { background: var(--red2); }
.modal { position: fixed; inset: 0; background: rgba(10, 14, 22, .55); display: flex; align-items: center; justify-content: center; z-index: 30; pointer-events: auto; }
.modal > .panel { max-width: min(92vw, 560px); max-height: 88vh; overflow: auto; animation: pop .18s ease-out; }
.prompt { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; box-shadow: var(--drop); padding: 8px 14px; font-size: 16px; white-space: nowrap; animation: pop .15s ease-out; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.prompt { animation-name: pop-x; } @keyframes pop-x { from { transform: translateX(-50%) scale(.9); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }

/* ---------------------------------------------------------------- volleyball */
.vb-hud .score { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 7px 14px; border-radius: 16px; background: var(--ink); color: var(--paper); border: 3px solid #05070b; box-shadow: var(--drop); font-family: var(--display); }
.vb-hud .score span { font-size: 17px; text-transform: uppercase; padding: 4px 12px 3px; border-radius: 9px; letter-spacing: .03em; color: #fff; }
.vb-hud .score .t0 { background: var(--blue); } .vb-hud .score .t1 { background: var(--red); }
.vb-hud .score b { font-weight: 400; font-size: 38px; min-width: 38px; text-align: center; font-variant-numeric: tabular-nums; line-height: 1; }
.vb-hud .score i { font-style: normal; opacity: .45; font-size: 28px; }
.vb-hud .touches { position: absolute; top: 82px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; }
.vb-hud .touches i { width: 13px; height: 13px; border-radius: 50%; background: rgba(255, 255, 255, .25); border: 2px solid var(--ink); }
.vb-hud .touches i.on.t0 { background: var(--blue); } .vb-hud .touches i.on.t1 { background: var(--red); }
.vb-hud .banner { position: absolute; top: 24%; left: 50%; transform: translate(-50%, -50%) scale(.85); font-family: var(--display); font-size: 68px; text-transform: uppercase; letter-spacing: .03em; color: #fff; opacity: 0; transition: opacity .16s, transform .16s cubic-bezier(.2, 1.6, .4, 1); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ink); white-space: nowrap; }
.vb-hud .banner.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.vb-hud .banner.t0 { color: #9fd0ff; } .vb-hud .banner.t1 { color: #ffb0a6; }
.vb-hud .sub { position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%); font-family: var(--display); font-size: 30px; color: #fff; opacity: 0; transition: opacity .15s; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); white-space: nowrap; }
.vb-hud .sub.show { opacity: 1; }
.vb-hud .sub.perfect { color: var(--gold); } .vb-hud .sub.good { color: #c9f5cf; } .vb-hud .sub.sloppy { color: #ffb3a8; }
.vb-hud .power { position: absolute; bottom: 92px; left: 50%; transform: translateX(-50%); width: 280px; height: 20px; border-radius: 99px; background: rgba(20, 26, 38, .8); border: 3px solid var(--ink); display: none; box-shadow: var(--drop); }
.vb-hud .power i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--green), var(--gold) 60%, #ff7a3d); }
.vb-hud .power span { position: absolute; left: 0; right: 0; top: -32px; text-align: center; font-family: var(--display); font-size: 22px; color: #fff; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); }
.vb-hud .hint { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 800; padding: 7px 14px; border-radius: 12px; background: rgba(20, 26, 38, .72); color: var(--paper); white-space: nowrap; }
.vb-hud .netstat { position: absolute; top: 12px; right: 14px; font: 12px ui-monospace, Menlo, monospace; color: #fff; opacity: .85; text-align: right; text-shadow: 0 1px 0 rgba(0, 0, 0, .6); }

/* ---------------------------------------------------------------- the club */
/* the key hints sit between the chat (left) and the emote button (right), and go when there is no room for them */
.hub-hints { position: absolute; bottom: 14px; left: 414px; right: 120px; width: fit-content; margin: 0 auto; padding: 8px 16px; border-radius: 14px; background: rgba(20, 26, 38, .72); }
@media (max-width: 1020px) { .hub-hints { display: none; } }
.result { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); text-align: center; min-width: min(340px, calc(100vw - 36px)); max-width: calc(100vw - 36px); max-height: calc(100vh - 36px); overflow: auto; }
.result .big { font-family: var(--display); font-size: 64px; line-height: 1; margin: 6px 0 14px; }

/* ---------------------------------------------------------------- the locker room */
.creator { position: absolute; right: 26px; top: 26px; bottom: 26px; width: min(440px, 42vw); display: flex; flex-direction: column; }
.creator .creator-body { flex: 1; overflow-y: auto; padding-right: 6px; min-height: 0; }
.creator .field.num { width: 76px; text-align: center; }
.creator .swatches { grid-template-columns: repeat(auto-fill, 32px); gap: 6px; } .creator .swatches button { width: 32px; height: 32px; }
.creator .options { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); } .creator .option { min-height: 44px; justify-content: center; }

/* ---------------------------------------------------------------- the shared club */
.club-hud { position: absolute; inset: 0; }
.coinbox { position: absolute; top: 16px; right: 18px; font-family: var(--display); font-size: 22px; padding: 6px 16px; box-shadow: var(--drop); }
.party { position: absolute; top: 16px; left: 18px; width: min(290px, calc(100vw - 36px)); max-height: calc(100vh - 330px); overflow: auto; padding: 12px 14px; }
.party .title.small { margin-bottom: 8px; } .party .toggle { margin-top: 10px; }
.people { position: absolute; top: 70px; right: 18px; width: min(360px, calc(100vw - 36px)); max-height: calc(100vh - 160px); overflow: auto; padding: 12px 14px; }
/* a player's row: the name (cut with dots when long) on its own line, the buttons under it */
.people .item { flex-wrap: wrap; row-gap: 6px; } .people .item .grow { flex-basis: 100%; }
.list .item .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .list .item .btn, .list .item .chip, .list .item i { flex: none; }
.chat { position: absolute; left: 18px; bottom: 64px; width: min(380px, calc(100vw - 36px)); }
.chat-log { max-height: 190px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.chat-log .line { color: #fff; font-size: 15px; text-shadow: 0 1px 0 rgba(0, 0, 0, .7), 0 0 6px rgba(0, 0, 0, .5); padding: 1px 0; transition: opacity 1s; } .chat-log .line.old { opacity: 0; }
.chat-log .line.party { color: #9fd0ff; } .chat-log .line.sys { color: var(--gold); font-style: italic; }
.chat-in { margin-top: 6px; opacity: .55; } .chat-in:focus { opacity: 1; }
.queue { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); min-width: min(380px, calc(100vw - 36px)); max-width: calc(100vw - 36px); } .queue .panel { padding: 10px 14px; }
.ask { position: absolute; left: 50%; top: 96px; transform: translateX(-50%); padding: 12px 16px; text-align: center; z-index: 5; max-width: calc(100vw - 36px); } .ask.ready { top: 170px; min-width: 320px; }
.gate, .shop { width: min(92vw, 560px); } .shop { width: min(94vw, 720px); }
.options.tight { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); } .options.tight .option { min-height: 40px; justify-content: center; }
.shop-body { max-height: 60vh; overflow: auto; padding-right: 6px; } .options.shopgrid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.option .sw { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--ink); }
.swatches button.locked::after { content: ""; position: absolute; right: -4px; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid var(--ink); }
.buybar { display: flex; align-items: center; gap: 10px; background: #fffbe6; border: 3px solid var(--ink); border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; position: sticky; top: 0; z-index: 2; }
.result .result-btns { justify-content: center; gap: 12px; } .result .result-btns .btn { flex: 1; padding-left: 10px; padding-right: 10px; font-size: 24px; }
.result .result-stats { justify-content: center; gap: 6px; margin: -4px 0 12px; } .result .chip.stat { background: #fff; border: 2px solid var(--line); color: var(--ink); font-size: 14px; padding: 3px 10px; } .result .chip.stat b { font-family: var(--display); font-weight: 400; font-size: 17px; }
.result .earned .total .coins.landed { animation: coin-land .35s ease-out; } @keyframes coin-land { 0% { transform: scale(1.5); } 60% { transform: scale(.92); } 100% { transform: scale(1); } }
.result { animation: card-in .35s cubic-bezier(.2, 1.4, .4, 1); } @keyframes card-in { from { transform: translate(-50%, -40%) scale(.85); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 6; } .confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 2px; animation: confetti-fall linear forwards; }
@keyframes confetti-fall { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 85% { opacity: 1; } 100% { transform: translate(var(--sway), 105vh) rotate(720deg); opacity: 0; } }
.result .earned { text-align: left; margin: 0 0 14px; font-size: 15px; } .result .earned .total { border-top: 2px solid var(--line); margin-top: 6px; padding-top: 6px; font-size: 17px; }
.shop-body .label:first-child { margin-top: 0; }
.shopbar { border-top: 3px solid var(--line); padding-top: 10px; margin-top: 8px; min-height: 52px; }
.option.owned { background: #eaf7ec; }
.creator .options.shopgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vb-hud .pts { font-family: var(--display); font-size: 24px; color: #fff; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); white-space: nowrap; }

/* bowling */
.bw-hud .bw-sheet { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; gap: 4px; font-weight: 800; font-size: 14px; }
.bw-hud .bw-sheet .row { display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 10px; background: rgba(20, 26, 38, .78); color: var(--paper); border: 2px solid transparent; }
.bw-hud .bw-sheet .row.me { border-color: var(--gold); background: var(--ink); }
.bw-hud .bw-sheet .row > i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #05070b; }
.bw-hud .bw-sheet .who { width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-hud .bw-sheet .fr { width: 40px; height: 22px; line-height: 22px; text-align: center; border-radius: 6px; background: rgba(255, 255, 255, .12); font-variant-numeric: tabular-nums; }
.bw-hud .bw-sheet .fr.now { background: rgba(255, 210, 74, .35); }
.bw-hud .bw-sheet b { width: 40px; text-align: right; font-family: var(--display); font-size: 20px; font-weight: 400; color: var(--gold); }
.bw-hud .bw-hook { position: absolute; bottom: 56px; left: 50%; transform: translateX(-50%); width: 200px; height: 10px; border-radius: 99px; background: rgba(20, 26, 38, .8); border: 3px solid var(--ink); display: none; }
.bw-hud .bw-hook b { position: absolute; top: -5px; width: 14px; height: 14px; margin-left: -10px; border-radius: 50%; background: var(--gold); border: 3px solid var(--ink); }
.bw-hud .bw-hook span { position: absolute; left: 100%; top: -5px; margin-left: 10px; font-size: 13px; font-weight: 800; color: #fff; text-shadow: 0 2px 0 var(--ink); }
.bw-hud .bw-clock { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font-family: var(--display); font-size: 44px; color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.leave-match { position: absolute; top: 12px; right: 14px; opacity: .75; z-index: 5; }
.leave-match:hover { opacity: 1; } .leave-match.sure { background: var(--red); color: #fff; opacity: 1; }
/* boxing */
.bx-hud .bx-list { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; gap: 4px; font-weight: 800; font-size: 14px; }
.bx-hud .bx-list .row { display: flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 10px; background: rgba(20, 26, 38, .78); color: var(--paper); border: 2px solid transparent; min-width: 150px; }
.bx-hud .bx-list .row.me { border-color: var(--gold); background: var(--ink); } .bx-hud .bx-list .row.out { opacity: .45; }
.bx-hud .bx-list .row > i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #05070b; }
.bx-hud .bx-list span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 110px; } .bx-hud .bx-list b { color: #ff6b6b; letter-spacing: 1px; }
.bx-hud .bx-clock { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); font-family: var(--display); font-size: 40px; color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); }
.bx-hud .bx-me { position: absolute; bottom: 54px; left: 50%; transform: translateX(-50%); width: 360px; display: flex; flex-direction: column; gap: 5px; }
.bx-hud .bx-me > div { height: 18px; border-radius: 99px; background: rgba(20, 26, 38, .8); border: 3px solid var(--ink); overflow: hidden; box-shadow: var(--drop); }
.bx-hud .bx-me .st { height: 11px; width: 70%; margin: 0 auto; } .bx-hud .bx-me i { display: block; height: 100%; }
.bx-hud .bx-me .hp i { background: linear-gradient(90deg, #ff5a4c, var(--gold) 45%, var(--green)); } .bx-hud .bx-me .st i { background: #6fc3ff; } .bx-hud .bx-me .st.low i { background: #ff8a5c; }
/* football */
.fb-hud .fb-clock { position: absolute; top: 74px; left: 50%; transform: translateX(-50%); font-family: var(--display); font-size: 24px; color: #fff; padding: 2px 14px; border-radius: 10px; background: rgba(20, 26, 38, .8); border: 2px solid #05070b; }
.fb-hud .fb-clock.gold { color: var(--gold); }
.fb-hud .fb-st { position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%); width: 220px; height: 10px; border-radius: 99px; background: rgba(20, 26, 38, .8); border: 3px solid var(--ink); overflow: hidden; }
.fb-hud .fb-st i { display: block; height: 100%; background: #6fc3ff; } .fb-hud .bw-hook { bottom: 70px; } .fb-hud .power { bottom: 104px; }

/* emotes: a round button in the bottom-right corner, and the row of owned emotes it opens to its left */
.emotes { position: fixed; right: 14px; bottom: 14px; z-index: 20; display: flex; flex-direction: row-reverse; align-items: center; gap: 8px; }
.emotes .emo-open { height: 38px; padding: 0 14px; border-radius: 99px; border: 3px solid var(--ink); background: rgba(20, 26, 38, .72); color: var(--gold); font: 400 14px var(--display); letter-spacing: .04em; cursor: pointer; }
.emotes .emo-open:hover { background: rgba(20, 26, 38, .92); }
.emotes .emo-list { display: none; gap: 6px; padding: 6px; border-radius: 14px; background: rgba(20, 26, 38, .92); border: 3px solid var(--ink); max-width: calc(100vw - 150px); flex-wrap: wrap; justify-content: flex-end; }
.emotes.open .emo-list { display: flex; }
.emotes .emo-list button { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 6px; border-radius: 10px; border: 2px solid transparent; background: rgba(255, 255, 255, .1); color: #fff; font: 800 13px var(--text); cursor: pointer; white-space: nowrap; }
.emotes .emo-list button:hover { border-color: var(--gold); background: rgba(255, 255, 255, .18); }
.emotes .emo-list kbd { display: inline-block; min-width: 18px; padding: 1px 4px; border-radius: 5px; background: #fff; color: var(--ink); font: 900 11px var(--text); text-align: center; }
/* Sportopia FM, the radio player in the bottom-left corner (shrinks to its icon during a match, opens on hover) */
.radio { position: fixed; left: 14px; bottom: 14px; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 8px; border-radius: 14px; background: rgba(20, 26, 38, .72); color: var(--paper); font-size: 13px; max-width: 360px; }
.radio-icon { display: flex; color: var(--gold); }
.radio-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.radio-text b { font-family: var(--display); font-weight: 400; font-size: 14px; letter-spacing: .03em; color: var(--gold); }
.radio-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; opacity: .9; }
.radio.off .radio-title { opacity: .5; }
.radio-btn { all: unset; display: flex; cursor: pointer; padding: 4px; border-radius: 8px; color: var(--paper); }
.radio-btn:hover { background: rgba(255, 255, 255, .14); }
.radio-vol { width: 70px; accent-color: var(--gold); cursor: pointer; }
.radio.mini { gap: 0; padding: 6px; }
.radio.mini > :not(.radio-icon) { display: none; }
.radio.mini:hover { gap: 8px; padding: 6px 10px 6px 8px; }
.radio.mini:hover > :not(.radio-icon) { display: revert; }
.radio.mini:hover > .radio-text, .radio.mini:hover > .radio-btn { display: flex; }
/* on narrower screens the club's hint bar reaches the corner, so the player stays an icon there too */
@media (max-width: 1340px) {
  .radio:not(:hover) { gap: 0; padding: 6px; }
  .radio:not(:hover) > :not(.radio-icon) { display: none; }
}
.bw-hud .bw-path { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bw-hud .bw-sheet .row.turn { box-shadow: 0 0 0 3px var(--green); }
.bw-hud .bw-how { position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%); font-family: var(--display); font-size: 26px; color: #fff; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); opacity: 0; transition: opacity .15s; white-space: nowrap; }
.bw-hud .bw-how.show { opacity: 1; }
/* running */
.rn-hud .rn-list { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; gap: 3px; font-weight: 800; font-size: 14px; }
.rn-hud .rn-list .row { display: flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 10px; background: rgba(20, 26, 38, .78); color: var(--paper); border: 2px solid transparent; min-width: 190px; }
.rn-hud .rn-list .row.me { border-color: var(--gold); background: var(--ink); } .rn-hud .rn-list em { font-style: normal; width: 16px; opacity: .7; }
.rn-hud .rn-list .row > i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #05070b; } .rn-hud .rn-list span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 110px; } .rn-hud .rn-list b { color: var(--gold); font-variant-numeric: tabular-nums; }
.rn-hud .rn-top { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: baseline; gap: 14px; padding: 4px 18px; border-radius: 14px; background: var(--ink); color: #fff; border: 3px solid #05070b; font-family: var(--display); }
.rn-hud .rn-top .time { font-weight: 400; font-size: 34px; font-variant-numeric: tabular-nums; min-width: 96px; text-align: center; } .rn-hud .rn-top .left { font-size: 18px; opacity: .8; }
.rn-hud .rn-pad { position: absolute; bottom: 56px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; }
.rn-hud .foot { width: 92px; text-align: center; padding: 8px 0 6px; border-radius: 16px; background: rgba(20, 26, 38, .8); border: 3px solid var(--ink); color: #fff; opacity: .55; transition: transform .06s, opacity .06s; }
.rn-hud .foot i { display: block; font-style: normal; font-family: var(--display); font-size: 30px; line-height: 1; } .rn-hud .foot span { font-size: 11px; font-weight: 800; }
.rn-hud .foot.next { opacity: 1; background: var(--gold); color: var(--ink); transform: scale(1.1); }
.rn-hud .beat { position: relative; width: 300px; height: 22px; border-radius: 99px; background: rgba(20, 26, 38, .8); border: 3px solid var(--ink); }
.rn-hud .beat .zone { position: absolute; top: 0; bottom: 0; left: 50%; width: 32.4%; background: rgba(87, 217, 119, .55); border-radius: 99px; }
.rn-hud .beat .dot { position: absolute; top: -5px; width: 10px; height: 26px; margin-left: -5px; border-radius: 6px; background: #fff; border: 2px solid var(--ink); } .rn-hud .beat .dot.ok { background: var(--green); }
.rn-hud .beat .say { position: absolute; left: 0; right: 0; top: -30px; text-align: center; font-family: var(--display); font-size: 20px; color: #fff; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.rn-hud .beat .say.good { color: #9dffb3; } .rn-hud .beat .say.bad { color: #ff8a7a; } .rn-hud .beat .say.mid { color: var(--gold); }
.rn-hud .rn-speed { position: absolute; bottom: 60px; right: 26px; text-align: right; color: #fff; font-family: var(--display); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; } .rn-hud .rn-speed b { font-weight: 400; font-size: 54px; } .rn-hud .rn-speed span { font-size: 18px; margin-left: 4px; }
/* high jump */
.hj-hud .hj-bar { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: baseline; gap: 12px; padding: 4px 18px; border-radius: 14px; background: var(--ink); color: #fff; border: 3px solid #05070b; font-family: var(--display); }
.hj-hud .hj-bar b { font-weight: 400; font-size: 34px; } .hj-hud .hj-bar span { font-size: 16px; opacity: .8; }
.hj-hud .bw-sheet .marks { min-width: 96px; letter-spacing: 2px; } .hj-hud .bw-sheet u { text-decoration: none; } .hj-hud .bw-sheet u.o { color: var(--green); } .hj-hud .bw-sheet u.x { color: #ff6b6b; } .hj-hud .bw-sheet .row.out { opacity: .5; } .hj-hud .bw-sheet b { width: 52px; }
.hj-hud .rn-pad { display: none; bottom: 100px; } .hj-hud .bw-how.hot { color: var(--gold); font-size: 34px; }
/* curling */
.cu-hud .cu-board { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 3px; padding: 6px 8px; border-radius: 14px; background: var(--ink); border: 3px solid #05070b; font-weight: 800; color: #fff; }
.cu-hud .cu-board .row { display: flex; align-items: center; gap: 5px; padding: 2px 4px; border-radius: 8px; } .cu-hud .cu-board .row.on { background: rgba(255, 255, 255, .14); }
.cu-hud .cu-board .nm { width: 70px; font-family: var(--display); font-size: 16px; text-transform: uppercase; padding: 2px 8px; border-radius: 7px; } .cu-hud .cu-board .t0 .nm { background: var(--blue); } .cu-hud .cu-board .t1 .nm { background: var(--red); }
.cu-hud .cu-board .e { width: 24px; height: 22px; line-height: 22px; text-align: center; border-radius: 5px; background: rgba(255, 255, 255, .1); font-size: 13px; } .cu-hud .cu-board .e.now { background: rgba(255, 210, 74, .35); }
.cu-hud .cu-board b { font-family: var(--display); font-weight: 400; font-size: 26px; width: 30px; text-align: center; color: var(--gold); } .cu-hud .cu-board .st { width: 62px; font-size: 13px; letter-spacing: 2px; opacity: .85; }
.cu-hud .cu-aim { position: absolute; bottom: 100px; left: 50%; transform: translateX(-50%); width: 320px; display: none; text-align: center; color: #fff; font-weight: 800; }
.cu-hud .cu-aim .w { position: relative; height: 20px; border-radius: 99px; background: rgba(20, 26, 38, .8); border: 3px solid var(--ink); overflow: visible; }
.cu-hud .cu-aim .w i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #7ad3ff, var(--gold) 55%, #ff7a3d); }
.cu-hud .cu-aim .w em { position: absolute; left: 0; right: 0; top: -24px; font-style: normal; font-family: var(--display); font-size: 18px; text-shadow: 0 2px 0 var(--ink); }
.cu-hud .cu-aim .c { margin-top: 6px; font-size: 14px; text-shadow: 0 2px 0 var(--ink); }
.cu-hud .cu-sweep { position: absolute; bottom: 104px; left: 50%; transform: translateX(-50%); width: 260px; height: 16px; border-radius: 99px; background: rgba(20, 26, 38, .8); border: 3px solid var(--ink); display: none; }
.cu-hud .cu-sweep i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--green); } .cu-hud .cu-sweep span { position: absolute; left: 0; right: 0; top: -22px; text-align: center; font-size: 13px; font-weight: 800; color: #fff; text-shadow: 0 2px 0 var(--ink); }
.cu-hud .bw-how { position: absolute; bottom: 56px; left: 50%; transform: translateX(-50%); font-family: var(--display); font-size: 24px; color: #fff; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); opacity: 0; white-space: nowrap; } .cu-hud .bw-how.show { opacity: 1; }
.cu-hud .cu-clock { position: absolute; top: 96px; left: 50%; transform: translateX(-50%); font-family: var(--display); font-size: 40px; color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
/* basketball */
.bk-hud .bk-bar { position: absolute; bottom: 104px; left: 50%; transform: translateX(-50%); width: 300px; height: 22px; border-radius: 99px; background: rgba(20, 26, 38, .85); border: 3px solid var(--ink); display: none; }
.bk-hud .bk-bar u { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(87, 217, 119, .6) 0 32%, #b6ff7a 32% 68%, rgba(87, 217, 119, .6) 68% 100%); border-radius: 6px; }
.bk-hud .bk-bar i { position: absolute; top: -6px; width: 8px; height: 28px; margin-left: -4px; border-radius: 5px; background: #fff; border: 2px solid var(--ink); }
.bk-hud .bk-bar span { position: absolute; left: 0; right: 0; top: -28px; text-align: center; font-family: var(--display); font-size: 20px; color: #fff; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.bk-hud .bw-how { position: absolute; bottom: 66px; left: 50%; transform: translateX(-50%); font-family: var(--display); font-size: 22px; color: #fff; -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); opacity: 0; white-space: nowrap; } .bk-hud .bw-how.show { opacity: 1; }
/* the account row of the locker room */
.creator .account { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 8px 10px; border-radius: 12px; background: rgba(20, 26, 38, .06); font-size: 13px; font-weight: 700; min-height: 0; }
.creator .account:empty { display: none; } .creator .account .ok { color: #1f8a4c; flex: 1; } .creator .account .gbtn { min-height: 32px; }
/* the Esc menu */
.panel.menu { width: min(92vw, 560px); } .menu .menu-body { min-height: 250px; } .menu .small { font-size: 12.5px; } .menu p { margin: 8px 0; }
.menu .keyrow { padding: 5px 0; border-bottom: 2px solid rgba(20, 26, 38, .07); } .menu .keycap { min-width: 92px; font-family: var(--display); font-size: 16px; } .menu .keycap.wait { background: var(--gold); }
.menu input[type=range] { width: 200px; accent-color: var(--blue); } .menu .btn.danger { background: var(--red); color: #fff; margin-right: auto; } .menu .gbtn { min-height: 40px; margin: 8px 0; }
/* the line of controls shows as a sport starts, then gets out of the way (the Esc menu has it too) */
@keyframes hintOut { to { opacity: 0; visibility: hidden; } }
.vb-hud .hint, .fz-hud .hint { animation: hintOut .8s ease 14s forwards; } body.hint-always .vb-hud .hint, body.hint-always .fz-hud .hint { animation: none; }
/* the username and its four characters */
.namebox { display: flex; align-items: center; gap: 6px; } .namebox .field { flex: 1; min-width: 0; }
.nametag { font: 400 16px var(--display); opacity: .55; letter-spacing: .04em; } small.nametag { font-size: 12px; margin-left: 4px; }
.field.shake { animation: shake .4s; border-color: var(--red) !important; } @keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.hj-hud .hj-over { position: absolute; bottom: 104px; left: 50%; transform: translateX(-50%); width: 520px; height: 34px; border-radius: 99px; background: rgba(20, 26, 38, .85); border: 3px solid var(--ink); display: none; overflow: visible; }
.hj-hud .hj-over u { position: absolute; top: 0; bottom: 0; text-decoration: none; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 18px; color: #fff; -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; }
.hj-hud .hj-over u.hold { left: 0; width: 64%; background: rgba(59, 143, 232, .55); border-radius: 99px 0 0 99px; } .hj-hud .hj-over u.go { left: 64%; width: 20%; background: rgba(76, 196, 106, .75); }
.hj-hud .hj-over i.bar { position: absolute; left: 64%; top: -8px; bottom: -8px; width: 5px; margin-left: -2px; background: repeating-linear-gradient(#e23c3c 0 6px, #fff 6px 12px); border-radius: 2px; }
.hj-hud .hj-over b { position: absolute; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); transition: background .05s; } .hj-hud .hj-over b.up { background: var(--blue); } .hj-hud .hj-over b.down { background: var(--green); }
