:root {
  --bg: #ffffff;
  --ink: #0c0d10;
  --sub: #6b7079;
  --faint: #a3a8b0;
  --line: rgba(12, 13, 16, 0.08);
  --glass: rgba(255, 255, 255, 0.72);
  --accent: #3b5bff;
  --accent-2: #8a3dff;
  --hot: #ff3d6e;
  --good: #11b886;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(12, 13, 16, 0.06), 0 12px 32px rgba(12, 13, 16, 0.08);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
  /* Bottom area that is drawn but not visible (Android in-app browser toolbars); set by viewport.js. */
  --vb: 0px;
  /* Height of an on-screen keyboard that covers the page without resizing it; set by viewport.js. */
  --kb: 0px;
  --sb: max(env(safe-area-inset-bottom), var(--vb));
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; height: 100dvh; overflow: hidden; background: var(--bg); color: var(--ink); font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
body { overscroll-behavior: none; user-select: none; -webkit-user-select: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; flex: none; }
#table { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 0 22px; border: 0; border-radius: 999px; font-size: clamp(14px, 4.3vw, 17px); font-weight: 800; letter-spacing: 0.01em; overflow: hidden; transition: transform .16s var(--ease), box-shadow .2s, opacity .2s; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.25; cursor: default; transform: none; }
.btn > span:first-child:last-child, .btn > span:only-of-type { flex: 1; text-align: center; }
.btn .label { flex: 1; min-width: 0; display: flex; align-items: baseline; justify-content: flex-start; gap: 1px; }
.btn .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn .suffix { flex: none; opacity: 0.72; font-weight: 700; }
/* A visible divider between the player's name and the mode, even where faded text does not render. */
.sep { flex: none; margin: 0 4px; font-weight: 400; opacity: 0.55; }
.btn .lead { width: 22px; height: 22px; opacity: 0.9; }
.btn .arrow { width: 22px; height: 22px; margin-left: auto; transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn small { font-size: 11px; font-weight: 700; opacity: 0.6; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(12, 13, 16, 0.22); }
.btn-ghost { background: rgba(12, 13, 16, 0.05); color: var(--ink); justify-content: center; }
.btn-danger { background: rgba(255, 61, 110, 0.1); color: var(--hot); justify-content: center; }
.btn-ranked { color: #fff; background: linear-gradient(110deg, var(--accent) 0%, var(--accent-2) 55%, var(--hot) 110%); box-shadow: 0 12px 30px rgba(91, 76, 255, 0.35); }
.btn-ranked::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%); transform: translateX(-100%); animation: sheen 3.2s var(--ease) infinite 1s; }
.round { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 0; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.round.small { width: 36px; height: 36px; box-shadow: none; background: rgba(12, 13, 16, 0.06); }
.round.small svg { width: 16px; height: 16px; }
.link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border: 0; background: none; color: var(--sub); font-size: 13px; font-weight: 700; border-radius: 12px; }
.link svg { width: 16px; height: 16px; }
.link:active { background: rgba(12, 13, 16, 0.05); }

/* ---------- Screens ---------- */
.screen { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; padding: calc(16px + env(safe-area-inset-top)) 20px calc(20px + var(--sb)); background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); overflow-y: auto; animation: enter .35s var(--ease); }
.screen.center { justify-content: center; align-items: center; text-align: center; }
.screen[hidden], .sheet-wrap[hidden] { display: none; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; color: var(--accent); }
.sub { margin: 0; color: var(--sub); font-size: 14px; }
h1, h2 { margin: 0; }

/* Title */
.title { background: linear-gradient(rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.95) 70%); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.title-top { display: flex; justify-content: flex-end; min-height: 32px; }
.title-hero { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; width: min(520px, 100%); margin: 0 auto; }
.logo { font-size: clamp(48px, 17vw, 112px); line-height: 0.95; font-weight: 900; letter-spacing: -0.055em; word-break: break-all; }
.tagline { margin: 0; font-size: 15px; font-weight: 700; color: var(--sub); letter-spacing: 0.02em; }
.title-actions { display: flex; flex-direction: column; gap: 12px; width: min(520px, 100%); margin: 0 auto; }
.links { display: flex; justify-content: center; gap: 6px; }
.rank-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--glass); box-shadow: var(--shadow); font-size: 13px; font-weight: 800; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.rank-pill::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tier, #b0784a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tier, #b0784a) 25%, transparent); }

/* Naming: the live demo fills the top, the form sits at the bottom */
.naming-screen { justify-content: flex-end; padding-bottom: calc(20px + max(var(--sb), var(--kb))); background: linear-gradient(rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 52%, rgba(255, 255, 255, 0.96) 64%, #fff 100%); backdrop-filter: none; -webkit-backdrop-filter: none; }
.demo-tag { position: absolute; top: calc(16px + env(safe-area-inset-top)); left: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; }
.demo-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); animation: blink 1.2s ease-in-out infinite; }
.demo-caption { position: absolute; left: 50%; top: calc(64px + env(safe-area-inset-top)); transform: translateX(-50%); margin: 0; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 999px; background: rgba(12, 13, 16, 0.86); color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; opacity: 0; transition: opacity .3s; pointer-events: none; }
.demo-caption.on { opacity: 1; }
.naming { width: min(460px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.naming h1 { font-size: clamp(26px, 7.4vw, 38px); line-height: 1.22; font-weight: 900; letter-spacing: -0.03em; }
.naming .sub { font-size: 13px; line-height: 1.6; }
#naming-form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
#naming-input { width: 100%; padding: 8px 2px; border: 0; border-bottom: 3px solid var(--ink); background: transparent; font-size: clamp(26px, 8vw, 40px); font-weight: 900; letter-spacing: -0.03em; border-radius: 0; user-select: text; -webkit-user-select: text; }
#naming-input::placeholder { color: rgba(12, 13, 16, 0.18); }
#naming-input:focus { outline: none; border-color: var(--accent); }
.count { margin: 0 0 10px; font-size: 12px; color: var(--faint); font-weight: 700; }

/* Rules */
.paper { margin: auto; width: min(520px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 8px 0; }
.paper h1 { font-size: 28px; font-weight: 900; letter-spacing: -0.03em; }
.paper h2 { font-size: 13px; letter-spacing: 0.14em; color: var(--sub); margin-top: 6px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 50px; border-radius: 16px; background: rgba(12, 13, 16, 0.04); font-size: 14px; line-height: 1.65; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 13px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; }
.paper p { margin: 0; font-size: 14px; line-height: 1.75; color: #33363c; }
.paper b { font-weight: 800; }

/* Matching */
.matching, .result { width: min(420px, 100%); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.matching h1 { font-size: 22px; font-weight: 900; }
.matching .btn { margin-top: 4px; }
.pulse { position: relative; width: 180px; height: 180px; display: grid; place-items: center; margin-bottom: 16px; }
.pulse i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: ripple 2.4s var(--ease) infinite; }
.failed .pulse i { animation: none; }
.failed .pulse span { background: var(--faint); }
.pulse i:nth-child(2) { animation-delay: .8s; }
.pulse i:nth-child(3) { animation-delay: 1.6s; }
.pulse span { position: relative; max-width: 150px; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 900; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Result */
#result-title { font-size: clamp(64px, 22vw, 120px); font-weight: 900; letter-spacing: -0.06em; line-height: 1; }
#result-title.win { background: linear-gradient(110deg, var(--accent), var(--accent-2) 60%, var(--hot)); -webkit-background-clip: text; background-clip: text; color: transparent; }
#result-title.loss { color: var(--ink); }
.rank-card { width: 100%; margin-top: 10px; padding: 18px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; text-align: left; }
.rank-row { display: flex; align-items: center; justify-content: space-between; }
.rank-card .rank-pill { box-shadow: none; background: rgba(12, 13, 16, 0.05); }
.delta { font-size: 30px; font-weight: 900; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.delta.plus { color: var(--good); }
.delta.minus { color: var(--hot); }
.bar { height: 10px; border-radius: 999px; background: rgba(12, 13, 16, 0.07); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--tier, var(--accent)); transition: width .8s var(--ease), background .3s; }
.banner { margin: 2px 0 0; padding: 10px 14px; border-radius: 14px; font-weight: 900; text-align: center; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.banner.up { background: linear-gradient(110deg, var(--accent), var(--accent-2)); color: #fff; }
.banner.down { background: rgba(12, 13, 16, 0.06); }
.result-actions { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

/* ---------- Sheets ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; background: rgba(12, 13, 16, 0.18); animation: fade .2s ease-out; }
.sheet { width: min(560px, 100%); padding: 18px 18px calc(20px + var(--sb)); border-radius: 28px 28px 0 0; background: #fff; box-shadow: 0 -12px 40px rgba(12, 13, 16, 0.12); display: flex; flex-direction: column; gap: 16px; animation: rise .32s var(--ease); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet-head h2 { font-size: 20px; font-weight: 900; letter-spacing: -0.02em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.level { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 14px; border: 0; border-radius: 20px; background: rgba(12, 13, 16, 0.04); text-align: left; transition: transform .16s var(--ease), background .2s, color .2s; }
.level b { font-size: 18px; font-weight: 900; }
.level small { font-size: 11px; color: var(--sub); font-weight: 700; line-height: 1.4; }
.level:active { transform: scale(0.96); }
.level:hover, .level:focus-visible { background: var(--ink); color: #fff; outline: none; }
.level:hover small, .level:focus-visible small { color: rgba(255, 255, 255, 0.6); }
.meter { display: flex; gap: 4px; margin-bottom: 6px; }
.meter i { width: 14px; height: 6px; border-radius: 3px; background: rgba(12, 13, 16, 0.12); }
.meter i.on { background: var(--accent); }
.level[data-cpu="strong"] .meter i.on { background: var(--hot); }
.menu-list { display: flex; flex-direction: column; gap: 10px; }

.split-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.split-option { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 12px; border: 0; border-radius: 20px; background: rgba(12, 13, 16, 0.04); transition: transform .16s var(--ease), background .2s; }
.split-option:active { transform: scale(0.95); }
.split-option:not(:disabled):hover { background: rgba(59, 91, 255, 0.1); }
.split-option .pair { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.split-option .pair i { font-style: normal; font-size: 16px; color: var(--accent); }
.split-option .moved { font-size: 11px; font-weight: 800; color: var(--sub); }
.split-option .dots { display: flex; gap: 10px; }
.split-option .dots span { display: flex; gap: 2px; min-width: 26px; justify-content: center; }
.split-option .dots em { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.split-option .tag { position: absolute; top: -7px; right: 8px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; }
.split-option .tag.block { background: var(--hot); }
.split-option:disabled { opacity: 0.35; cursor: default; }

/* ---------- In-game HUD ---------- */
.hud { position: fixed; z-index: 5; top: 0; left: 0; right: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; padding: calc(12px + env(safe-area-inset-top)) 16px 0; pointer-events: none; }
.plate { justify-self: start; min-width: 0; overflow: hidden; display: flex; align-items: center; gap: 10px; max-width: 100%; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.plate .dot { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.55); }
.plate span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.plate b { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate small { font-size: 11px; font-weight: 700; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.turn { display: flex; align-items: center; gap: 6px; }
@media (max-width: 400px) { .turn-pill { padding: 9px 12px; font-size: 13px; } .plate { padding-right: 10px; } }
.turn-pill { padding: 9px 16px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); font-size: 14px; font-weight: 800; white-space: nowrap; transition: background .25s, color .25s; }
.turn-pill:empty { display: none; }
body.my-turn .turn-pill { background: var(--ink); color: #fff; }
.timer { position: relative; width: 40px; height: 40px; display: grid; place-items: center; }
.timer[hidden] { display: none; }
.timer svg { position: absolute; inset: 0; width: 40px; height: 40px; transform: rotate(-90deg); }
.timer circle { fill: rgba(255, 255, 255, 0.8); stroke-width: 4; }
.timer .track { stroke: rgba(12, 13, 16, 0.08); }
.timer .ring { fill: none; stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 106.8; transition: stroke-dashoffset .2s linear, stroke .2s; }
.timer b { position: relative; font-size: 14px; font-weight: 900; font-variant-numeric: tabular-nums; }
.timer.warn .ring { stroke: var(--hot); }
.timer.warn b { color: var(--hot); }
#menu-button { justify-self: end; pointer-events: auto; }
body:not([data-screen="game"]) .hud, body:not([data-screen="game"]) .hint { visibility: hidden; }

.plate.me, .plate.opp { position: fixed; z-index: 5; left: 16px; max-width: calc(100% - 32px); pointer-events: none; }
.plate.me { bottom: calc(56px + var(--sb)); }
.plate.opp { top: calc(66px + env(safe-area-inset-top)); }
.plate.me .dot { background: var(--ink); }
.plate .rep { flex: none; margin-left: 4px; padding: 3px 8px; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 800; background: rgba(12, 13, 16, 0.06); color: var(--sub); white-space: nowrap; }
.plate .rep.warn { background: #fff1c2; color: #8a5a00; }
.plate .rep.block { background: rgba(255, 61, 110, 0.12); color: var(--hot); }
body:not([data-screen="game"]) .plate { visibility: hidden; }
.count { display: flex; justify-content: space-between; }
.name-error { color: var(--hot); font-weight: 800; }
.paper .fine { font-size: 11px; color: var(--faint); }
.paper .fine a { color: inherit; }
.hint { position: fixed; z-index: 5; left: 0; right: 0; bottom: calc(16px + var(--sb)); display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.hint span { max-width: 100%; padding: 8px 14px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--sub); font-size: 12px; font-weight: 700; text-align: center; }
.hint span:empty { display: none; }

#badges b { position: fixed; z-index: 4; left: 0; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 15px; font-weight: 900; box-shadow: 0 4px 12px rgba(12, 13, 16, 0.25); pointer-events: none; }
#badges b:nth-child(n+3) { background: var(--accent); }
#badges b.dead { background: #fff; color: var(--hot); box-shadow: inset 0 0 0 2px var(--hot); }
#badges b.bump { animation: bump .4s var(--ease); }
body:not([data-screen="game"]):not([data-screen="naming"]) #badges { visibility: hidden; }

.toast { position: fixed; z-index: 30; left: 50%; top: calc(76px + env(safe-area-inset-top)); margin: 0; padding: 11px 18px; max-width: calc(100% - 32px); border-radius: 999px; background: rgba(12, 13, 16, 0.86); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 14px; font-weight: 800; text-align: center; opacity: 0; transform: translate(-50%, -10px) scale(0.96); transition: opacity .22s, transform .3s var(--ease); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0) scale(1); }

@keyframes blink { 50% { opacity: 0.25; } }
.replay-bar { position: fixed; z-index: 15; left: 50%; bottom: calc(16px + var(--sb)); transform: translateX(-50%); display: flex; white-space: nowrap; flex-wrap: nowrap; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(12, 13, 16, 0.88); color: #fff; box-shadow: var(--shadow); font-size: 14px; }
.replay-bar .rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); animation: blink 1.2s ease-in-out infinite; }
.replay-bar .pill { flex: none; white-space: nowrap; min-width: 52px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: #fff; font-weight: 800; }
.replay-bar .pill:active { transform: scale(0.95); }
body:has(#replay-bar:not([hidden])) .plate.me { bottom: calc(76px + var(--sb)); }
.btn-friend { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-friend .suffix { font-size: 12px; opacity: 0.6; }
.room-pill { align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 0; border-radius: 999px; background: rgba(17, 184, 134, 0.12); color: #0a7d5b; font-size: 13px; font-weight: 800; }
.room-pill i, .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); animation: blink 1.2s ease-in-out infinite; display: inline-block; }
.room-link input { width: 100%; padding: 14px 16px; border: 0; border-radius: 16px; background: rgba(12, 13, 16, 0.05); font-size: 13px; font-weight: 700; color: var(--sub); user-select: all; -webkit-user-select: all; }
.row-2 { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.row-2 .btn-ghost { padding: 0 22px; }
.room-status { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; }
.sheet .fine { margin: 0; font-size: 12px; color: var(--faint); line-height: 1.6; }
.mode-switch { align-self: center; display: flex; align-items: center; gap: 4px; white-space: nowrap; max-width: 100%; padding: 5px; border-radius: 999px; background: rgba(12, 13, 16, 0.05); }
.mode-switch .mode-label { padding: 0 6px 0 10px; font-size: 12px; font-weight: 800; color: var(--sub); }
.mode-switch button { flex: none; white-space: nowrap; display: inline-flex; align-items: baseline; gap: 4px; padding: 8px 14px; border: 0; border-radius: 999px; background: transparent; font-size: 14px; font-weight: 800; color: var(--sub); }
.mode-switch button small { font-size: 10px; opacity: 0.7; }
.mode-switch button[aria-checked="true"] { background: var(--ink); color: #fff; }
.mode-switch .mode-note { padding: 0 10px 0 4px; font-size: 10px; color: var(--faint); font-weight: 700; }
.room-mode { margin: 0; font-size: 13px; font-weight: 800; }
@media (max-width: 360px) { .mode-switch .mode-note, .mode-switch button small { display: none; } }
.hint span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(100%); } }
@keyframes sheen { 0% { transform: translateX(-100%); } 45%, 100% { transform: translateX(100%); } }
@keyframes ripple { 0% { transform: scale(0.45); opacity: 0.7; } 100% { transform: scale(1.15); opacity: 0; } }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } }
@keyframes bump { 40% { scale: 1.45; } }

/* Narrow phones: give the player's name the room the icon would take. */
@media (max-width: 380px) { .btn .lead { display: none; } .btn { padding: 0 20px; gap: 8px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 900px) and (min-height: 600px) {
  .title-hero { justify-content: flex-end; padding-bottom: 32px; }
}
