:root {
  --ink: #4a3b5c;
  --ink-2: #7a6b8c;
  --accent: #ff6f9c;
  --accent-2: #ff9e7a;
  --lav: #8b7cf6;
  --mint: #4fc79a;
  --glass: rgba(255, 255, 255, .7);
  --glass-strong: rgba(255, 255, 255, .82);
  --line: rgba(255, 255, 255, .95);
  --shadow: 0 18px 50px rgba(90, 55, 130, .18), 0 2px 8px rgba(90, 55, 130, .08);
  --r: 22px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: #cfeab9; font-family: Nunito, system-ui, sans-serif; color: var(--ink); -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
canvas#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: pointer; }
#vignette { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(80, 50, 120, .18)); }
.hidden { display: none !important; }
.muted { color: var(--ink-2); font-weight: 700; }
.small { font-size: 13px; }

.glass { background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border: 1px solid var(--line); box-shadow: var(--shadow); }
.glass-strong { background: var(--glass-strong); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); border: 1px solid var(--line); box-shadow: 0 30px 90px rgba(90, 55, 130, .25), 0 2px 10px rgba(90, 55, 130, .08); }

/* ---------------------------------------------------------------- HUD */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 3; padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
#hud button { pointer-events: auto; }
.hud-tl, .hud-tc, .hud-tr, .hud-br { position: absolute; display: flex; flex-direction: column; gap: 8px; }
.hud-tl { top: inherit; left: 14px; top: 14px; align-items: flex-start; }
.hud-tc { left: 50%; top: 14px; transform: translateX(-50%); align-items: center; }
.hud-tr { right: 14px; top: 14px; align-items: flex-end; }
.hud-br { right: 14px; bottom: 14px; align-items: flex-end; gap: 12px; }
.hud-bc { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); }
.pill { border-radius: 999px; padding: 7px 8px 7px 16px; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; }
.pill b { font-weight: 900; letter-spacing: .06em; }
.mini-btn { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .85); font-size: 14px; display: grid; place-items: center; transition: transform .15s; }
.mini-btn:active { transform: scale(.9); }
.chips { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.chip { border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 13.5px; white-space: nowrap; transition: background .3s, color .3s; }
.chip:empty { display: none; }
.chip.seeker { background: linear-gradient(135deg, rgba(255, 111, 156, .92), rgba(255, 158, 122, .92)); color: #fff; }
.chip.hider { background: linear-gradient(135deg, rgba(79, 199, 154, .9), rgba(110, 200, 240, .9)); color: #fff; }
.chip.ghost { background: rgba(139, 124, 246, .85); color: #fff; }
.chip.hidden-ok { color: #2f9c74; }
.chip.exposed { color: #d9537f; }
.off-list { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.chip.off { background: rgba(74, 59, 92, .78); color: #fff; border-color: rgba(255, 255, 255, .25); animation: tin .35s cubic-bezier(.3, 1.6, .5, 1); }
.chip.off b { font-variant-numeric: tabular-nums; color: #ffd36e; }
.chip.off.me { background: rgba(224, 75, 124, .88); }

.phase { display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 8px; border-radius: 999px; }
.ring { width: 40px; height: 40px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring-bg { stroke: rgba(139, 124, 246, .15); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 0; transition: stroke-dashoffset .25s linear, stroke .3s; }
.phase-txt { line-height: 1.05; }
#phaseLabel { font-weight: 800; font-size: 12.5px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; }
#phaseTime { font-weight: 900; font-size: 22px; font-variant-numeric: tabular-nums; }
.phase.urgent #phaseTime { color: var(--accent); animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.counter { font-size: 13px; }

.icon-btn { width: 44px; height: 44px; border-radius: 50%; font-size: 19px; display: grid; place-items: center; transition: transform .15s; }
.icon-btn:active { transform: scale(.92); }
.board { border-radius: 18px; padding: 8px; min-width: 190px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.board:empty { display: none; }
.row { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 12px; font-weight: 800; }
.row.me { background: rgba(255, 111, 156, .12); }
.row .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); flex: none; }
.row .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }
.row .st { width: 20px; text-align: center; }
.row .sc { font-variant-numeric: tabular-nums; color: var(--ink-2); min-width: 18px; text-align: right; }
.row.found .nm { opacity: .5; text-decoration: line-through; }

.minimap { border-radius: 18px; padding: 6px; line-height: 0; }
#minimap { width: 216px; height: 162px; border-radius: 13px; display: block; }
.meow-btn { pointer-events: auto; position: relative; width: 78px; height: 78px; border-radius: 50%; color: #fff; font-weight: 900; font-size: 16px; background: radial-gradient(circle at 35% 30%, #ffb1c8, var(--accent) 60%, #ef5a8a); box-shadow: 0 10px 26px rgba(255, 90, 140, .45), inset 0 -4px 0 rgba(200, 50, 100, .25), inset 0 3px 0 rgba(255, 255, 255, .45); transition: transform .12s; }
.meow-btn:active, .meow-btn.cool { transform: scale(.9); }
.meow-btn.cool { opacity: .6; }
.pounce-btn { pointer-events: auto; position: relative; padding: 16px 26px; border-radius: 999px; color: #fff; font-weight: 900; font-size: 19px; background: linear-gradient(135deg, #ffb347, #ff6f9c); box-shadow: 0 12px 30px rgba(255, 110, 120, .5), inset 0 -4px 0 rgba(190, 60, 80, .25); animation: pounce-pulse 1s ease-out infinite; }
.pounce-btn:active { transform: scale(.94); }
.pounce-btn kbd { position: absolute; right: -4px; top: -6px; background: #fff; color: #ff6f9c; border-radius: 8px; font: 900 11px Nunito, sans-serif; padding: 3px 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
@keyframes pounce-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 140, 120, .65), 0 12px 30px rgba(255, 110, 120, .5); } 100% { box-shadow: 0 0 0 22px rgba(255, 140, 120, 0), 0 12px 30px rgba(255, 110, 120, .5); } }
.meow-btn kbd { position: absolute; right: -2px; top: -2px; background: #fff; color: var(--accent); border-radius: 8px; font: 900 11px Nunito, sans-serif; padding: 3px 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }

#toasts { position: fixed; left: 50%; top: 104px; transform: translateX(-50%); z-index: 7; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.toast { background: var(--glass-strong); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 999px; padding: 8px 18px; font-weight: 800; font-size: 14.5px; animation: tin .4s cubic-bezier(.3, 1.6, .5, 1); white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
.toast.out { opacity: 0; transform: translateY(-8px); transition: .35s; }
@keyframes tin { from { opacity: 0; transform: translateY(-12px) scale(.9); } }

#banner { position: fixed; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 5; }
.banner-in { text-align: center; opacity: 0; transform: scale(.85); transition: opacity .4s, transform .5s cubic-bezier(.3, 1.6, .5, 1); padding: 0 16px; }
#banner.show .banner-in { opacity: 1; transform: none; }
#bannerBig { font-weight: 900; font-size: clamp(34px, 7vw, 64px); line-height: 1.05; background: linear-gradient(135deg, #ff5f95, #ff9e7a 55%, #ffc15c); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 #fff) drop-shadow(0 10px 24px rgba(255, 100, 150, .35)); }
#bannerSmall { margin-top: 10px; font-weight: 800; font-size: clamp(15px, 2.4vw, 20px); display: inline-block; padding: 8px 18px; border-radius: 999px; background: var(--glass-strong); box-shadow: var(--shadow); }
#bannerSmall:empty { display: none; }

#blind { position: fixed; inset: 0; z-index: 4; display: grid; place-items: center; background: radial-gradient(ellipse at center, rgba(70, 45, 110, .9), rgba(35, 22, 60, .97)); color: #fff; animation: fade .5s; }
@keyframes fade { from { opacity: 0; } }
.blind-in { text-align: center; padding: 16px; }
.blind-emoji { font-size: 64px; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-4deg); } }
.blind-title { font-weight: 900; font-size: 24px; margin-top: 6px; opacity: .9; }
.blind-num { font-weight: 900; font-size: 120px; line-height: 1; margin: 8px 0; background: linear-gradient(180deg, #fff, #ffc2d6); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.blind-sub { font-weight: 700; opacity: .75; }

#joy { position: fixed; width: 130px; height: 130px; margin: -65px 0 0 -65px; border-radius: 50%; background: rgba(255, 255, 255, .28); border: 2px solid rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); z-index: 3; pointer-events: none; opacity: 0; transition: opacity .2s; }
#joy.on { opacity: 1; }
#knob { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #ffd3e2); box-shadow: 0 6px 16px rgba(120, 60, 120, .3); }

/* ---------------------------------------------------------------- screens */
.screen { position: fixed; inset: 0; z-index: 6; display: grid; place-items: center; padding: 16px; overflow-y: auto; background: linear-gradient(160deg, rgba(255, 230, 242, .5), rgba(220, 210, 255, .45)); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); animation: fade .4s; }
.lobby-card { width: min(880px, 100%); border-radius: 32px; display: grid; grid-template-columns: 1fr 1.05fr; overflow: hidden; }
.stage { position: relative; background: radial-gradient(circle at 50% 70%, #fff6fb 0%, #ffe3ef 45%, #e6dcff 100%); display: grid; place-items: center; min-height: 360px; }
#preview { position: relative; z-index: 1; width: 100%; max-width: 360px; height: auto; }
.stage-name { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-weight: 900; font-size: 18px; padding: 6px 18px; border-radius: 999px; background: rgba(255, 255, 255, .85); box-shadow: var(--shadow); white-space: nowrap; max-width: 90%; overflow: hidden; text-overflow: ellipsis; }
.form { padding: 30px 32px 26px; display: flex; flex-direction: column; gap: 14px; }
.brand { font-weight: 900; font-size: 34px; line-height: 1; letter-spacing: -.01em; background: linear-gradient(135deg, #ff5f95 10%, #ff9e7a 55%, #b48cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand i { font-style: normal; opacity: .6; }
.brand .paw { -webkit-text-fill-color: initial; color: initial; }
.lead { font-weight: 700; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; margin-top: -4px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-weight: 900; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.field > span b { text-transform: none; letter-spacing: 0; font-weight: 800; margin-left: 6px; }
input { width: 100%; border: 1.5px solid rgba(139, 124, 246, .18); background: rgba(255, 255, 255, .9); border-radius: 14px; padding: 11px 14px; font-weight: 800; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 111, 156, .15); }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: rgba(139, 124, 246, .1); border-radius: 14px; padding: 4px; }
.seg button { position: relative; z-index: 1; padding: 9px; border-radius: 11px; font-weight: 900; font-size: 15px; color: var(--ink-2); transition: color .25s; }
.seg button.on { color: var(--ink); }
.seg-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 11px; background: #fff; box-shadow: 0 4px 14px rgba(90, 55, 130, .15); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.seg.f .seg-thumb { transform: translateX(100%); }
.coats { display: grid; grid-template-columns: repeat(9, 1fr); gap: 7px; }
.coat { aspect-ratio: 1; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(90, 55, 130, .18); transition: transform .2s, box-shadow .2s; }
.coat:hover { transform: translateY(-2px); }
.coat.on { box-shadow: 0 0 0 3px var(--accent), 0 6px 16px rgba(255, 111, 156, .35); transform: scale(1.08); }
.room-row, .name-row { display: flex; gap: 8px; }
.room-chosen { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 9px 14px 9px 10px; border-radius: 14px; background: rgba(255, 255, 255, .9); border: 1.5px solid rgba(139, 124, 246, .18); transition: border-color .2s, transform .15s; }
.room-chosen:hover { border-color: var(--accent); }
.room-chosen:active { transform: scale(.99); }
.rc-emoji { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--room-bg, #fff3d6); flex: none; }
.rc-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.rc-txt b { font-weight: 900; font-size: 16px; }
.rc-txt small { font-weight: 700; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-change { font-weight: 800; font-size: 13px; color: var(--accent); flex: none; }

/* ---------------------------------------------------------------- room picker */
.rooms-wrap { width: min(880px, 100%); display: flex; flex-direction: column; gap: 18px; }
.rooms-head { text-align: center; }
.rooms-head .brand { font-size: clamp(34px, 6vw, 48px); filter: drop-shadow(0 3px 0 rgba(255, 255, 255, .9)); }
.rooms-head .lead { margin-top: 8px; font-size: 15.5px; color: var(--ink); opacity: .75; }
.room-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.room-card { position: relative; overflow: hidden; text-align: left; border-radius: 28px; padding: 20px 20px 18px; background: var(--glass-strong); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; transition: transform .25s cubic-bezier(.3, 1.5, .5, 1), box-shadow .25s; animation: tin .45s cubic-bezier(.3, 1.5, .5, 1) backwards; }
.room-card::before { content: ''; position: absolute; inset: 0; background: var(--room-grad); opacity: .55; z-index: -1; }
.room-card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 26px 60px rgba(90, 55, 130, .25); }
.room-card:active { transform: scale(.98); }
.room-card.full { opacity: .65; cursor: not-allowed; }
.room-top { display: flex; align-items: center; gap: 14px; }
.room-emoji { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 32px; background: rgba(255, 255, 255, .85); box-shadow: 0 6px 16px rgba(90, 55, 130, .12); flex: none; }
.room-name { font-weight: 900; font-size: 21px; line-height: 1.1; }
.room-sub { font-weight: 700; font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.room-status { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .85); font-weight: 800; font-size: 13.5px; }
.room-status i { width: 9px; height: 9px; border-radius: 50%; background: var(--dot, #4fc79a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot, #4fc79a) 25%, transparent); }
.room-status.live i { animation: pulse 1.2s infinite; }
.room-status b { font-variant-numeric: tabular-nums; }
.room-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.slots { display: flex; gap: 4px; flex-wrap: wrap; }
.slot { width: 16px; height: 16px; border-radius: 50%; border: 2px dashed rgba(122, 107, 140, .3); }
.slot.on { border: 2px solid #fff; box-shadow: 0 2px 5px rgba(90, 55, 130, .2); }
.room-count { font-weight: 900; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.room-go { font-weight: 900; font-size: 15px; color: #fff; padding: 9px 16px; border-radius: 999px; background: linear-gradient(135deg, #ff6f9c, #ff9e7a); box-shadow: 0 8px 18px rgba(255, 100, 140, .35); white-space: nowrap; }
.room-card.full .room-go { background: #b9b0c6; box-shadow: none; }
.bot-section { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.bot-head { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.bot-head i { flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(139, 124, 246, .35), transparent); }
.room-grid.single { grid-template-columns: 1fr; }
.room-card.bots { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 18px; border-style: dashed; border-color: rgba(139, 124, 246, .45); }
.room-card.bots .room-top { flex: 1 1 260px; }
.room-card.bots .room-bottom { flex: 1 1 100%; }
.name-row { position: relative; }
.name-pop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 10; border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 10px; animation: tin .3s cubic-bezier(.3, 1.6, .5, 1); }
.name-random { padding: 10px; border-radius: 14px; font-weight: 900; font-size: 15px; color: #fff; background: linear-gradient(135deg, #b48cff, #ff8fb3); box-shadow: 0 6px 16px rgba(180, 120, 255, .35); transition: transform .15s; }
.name-random:active { transform: scale(.97) rotate(-1deg); }
.name-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 190px; overflow-y: auto; }
.name-chip { padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; background: rgba(139, 124, 246, .1); transition: background .15s, transform .15s; }
.name-chip:hover { background: rgba(255, 111, 156, .15); transform: translateY(-1px); }
.name-chip.on { background: linear-gradient(135deg, #ff6f9c, #ff9e7a); color: #fff; }
.name-chip.taken { opacity: .38; text-decoration: line-through; cursor: not-allowed; transform: none; background: rgba(139, 124, 246, .06); }
input.bad { border-color: #e04b7c; box-shadow: 0 0 0 4px rgba(224, 75, 124, .14); }
.room-row input { text-transform: uppercase; letter-spacing: .08em; }
.ghost-btn { flex: none; width: 46px; border-radius: 14px; background: rgba(255, 255, 255, .9); border: 1.5px solid rgba(139, 124, 246, .18); font-size: 20px; transition: transform .15s; }
.ghost-btn:active { transform: rotate(-20deg) scale(.92); }
.play { margin-top: 4px; padding: 15px; border-radius: 16px; color: #fff; font-weight: 900; font-size: 19px; background: linear-gradient(135deg, #ff6f9c, #ff9e7a); box-shadow: 0 12px 28px rgba(255, 100, 140, .4), inset 0 -3px 0 rgba(180, 50, 90, .2); transition: transform .15s, box-shadow .15s; }
.play span { display: inline-block; transition: transform .2s; }
.play:hover span { transform: translateX(4px); }
.play:active { transform: translateY(2px) scale(.99); }
.play:disabled { opacity: .6; cursor: wait; }
.hint { text-align: center; font-weight: 700; font-size: 12.5px; color: var(--ink-2); }
.hint.err { color: #e04b7c; }

.results-card { width: min(440px, 100%); border-radius: 30px; padding: 28px 26px 22px; text-align: center; animation: tin .5s cubic-bezier(.3, 1.5, .5, 1); }
.res-emoji { font-size: 56px; }
.results-card h2 { font-weight: 900; font-size: 32px; line-height: 1.1; margin: 4px 0 6px; background: linear-gradient(135deg, #ff5f95, #ff9e7a 60%, #b48cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.res-list { list-style: none; margin: 16px 0 14px; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.res-list li { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .7); border-radius: 14px; padding: 8px 12px; font-weight: 800; }
.res-list li .nm { flex: 1; }
.res-list li .tag { font-size: 12px; font-weight: 900; padding: 3px 9px; border-radius: 999px; background: rgba(79, 199, 154, .15); color: #2f9c74; }
.res-list li .tag.s { background: rgba(255, 111, 156, .15); color: #d9537f; }
.res-list li .tag.f { background: rgba(139, 124, 246, .12); color: #7b6cdb; }

@media (max-width: 760px) {
  .lobby-card { grid-template-columns: 1fr; border-radius: 26px; }
  .room-grid { grid-template-columns: 1fr; gap: 12px; }
  .room-card { padding: 16px; border-radius: 24px; }
  .room-emoji { width: 50px; height: 50px; font-size: 28px; }
  .room-name { font-size: 19px; }
  .stage { min-height: 210px; }
  #preview { max-width: 250px; }
  .stage-name { bottom: 14px; font-size: 15px; }
  .form { padding: 20px 18px 18px; gap: 12px; }
  .brand { font-size: 28px; }
  .coats { gap: 5px; }
  .screen { place-items: start center; }
  #minimap { width: 132px; height: 99px; }
  .board { min-width: 0; font-size: 12px; padding: 6px; }
  .row { padding: 3px 6px; gap: 6px; }
  .row .nm { max-width: 70px; }
  .meow-btn { width: 66px; height: 66px; font-size: 14px; }
  .meow-btn kbd, .pounce-btn kbd { display: none; }
  .pounce-btn { font-size: 17px; padding: 14px 20px; }
  .hud-tc { top: auto; bottom: 14px; left: 14px; transform: none; align-items: flex-start; }
  .hud-bc { left: 14px; bottom: 72px; transform: none; }
  .chip { max-width: calc(100vw - 170px); overflow: hidden; text-overflow: ellipsis; }
  #toasts { top: auto; bottom: 130px; }
  .pill { font-size: 12.5px; }
  #phaseTime { font-size: 19px; }
}
