/* Beach Volleyball: the beach fills the screen. Colors: sea blue, sunny yellow, sand, coral, the teams' red and blue.
   The joystick is under your left thumb; Spike (the big one), Bump and Set are on the right, with the paw meter. */
:root { --ink: #0f3550; --muted: #5c7686; --line: #d8e9f2; --sea: #1f8fd0; --sun: #ffd23f; --cream: #fffaf0; --coral: #ff6b6b; --red: #ff4d5e; --blue: #3a86ff; --panel: rgba(10, 50, 80, 0.72); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #8fd0f5; font-family: 'Fredoka', 'Trebuchet MS', sans-serif; color: var(--ink);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; }
button { font: inherit; cursor: pointer; }
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.hidden { display: none !important; }
.btn { font-weight: 700; font-size: 17px; border: 0; border-radius: 14px; padding: 10px 18px; background: linear-gradient(#3fb6f0, #1f7fc8); color: #fff; box-shadow: 0 3px 0 #135a92; }
.btn.alt { background: #e6f2f8; color: var(--ink); box-shadow: 0 3px 0 #b6d0de; } .btn.gold { background: var(--sun); color: var(--ink); box-shadow: 0 3px 0 #c49a12; }
.btn.big { font-size: 21px; padding: 12px 26px; }
.btn:active:not(:disabled) { translate: 0 2px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }

/* ---- the top ---- */
#top { position: fixed; left: 0; right: 0; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; pointer-events: none;
  padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left)); }
#top > * { pointer-events: auto; }
.tb { display: flex; gap: 6px; }
.round-btn { width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--panel); color: #fff; font-size: 20px; border: 2px solid rgba(255, 255, 255, 0.45); }
#logo { font-weight: 700; font-size: 22px; color: #fff; background: linear-gradient(#ffb03b, #ff7a3b); border: 3px solid #fff3c4; border-radius: 14px; padding: 2px 12px; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2); white-space: nowrap; }
body[data-mode="match"] #logo { display: none; }
#hud { position: absolute; left: 50%; translate: -50% 0; top: max(8px, env(safe-area-inset-top)); pointer-events: none; text-align: center; }
#hud-score { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 3px solid rgba(255, 255, 255, 0.6); border-radius: 18px; padding: 3px 16px; color: #fff; font-size: 22px; font-weight: 700; }
#hud-score b { font-size: 32px; min-width: 26px; display: inline-block; } #hud-score .t0 b { color: #ffb0b8; } #hud-score .t1 b { color: #a9cbff; }
#hud-score .srv { font-size: 18px; opacity: 0; transition: opacity 0.3s; } #hud-score .srv.on { opacity: 1; }
#hud-score b.pop { animation: pop 0.5s cubic-bezier(.2, 1.8, .4, 1); transform-origin: 50% 15%; } /* (it grows downward: from the middle, its top ran off the screen on a phone. UAT, 2026-10-23) */
#hud-to { display: inline-block; margin-top: 3px; font-size: 13px; font-weight: 600; color: #fff; background: rgba(10, 50, 80, 0.55); border-radius: 999px; padding: 1px 10px; }
@keyframes pop { 0% { scale: 1; } 40% { scale: 1.7; } 100% { scale: 1; } }
@keyframes pulse { 50% { scale: 1.08; } }
#wind { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--panel); border: 2px solid rgba(255, 255, 255, 0.45); color: #fff; border-radius: 999px; padding: 3px 12px 3px 10px; font-size: 20px; pointer-events: none; }
#wind i { font-style: normal; display: inline-block; width: 26px; text-align: center; font-size: 22px; transition: rotate 0.4s; color: #bff0ff; }
#wind.gust { background: rgba(255, 160, 40, 0.85); animation: pulse 0.5s ease-in-out infinite; } #wind.gust i { color: #fff; }
#pill { position: fixed; left: 50%; translate: -50% 0; top: calc(max(8px, env(safe-area-inset-top)) + 74px); z-index: 4; pointer-events: none; font-weight: 700; font-size: 17px;
  color: #fff; background: rgba(10, 50, 80, 0.6); border-radius: 999px; padding: 4px 14px; white-space: nowrap; }
#pill:empty { display: none; }
#pill.wave { background: linear-gradient(90deg, #1f8fd0, #46c4f0); box-shadow: 0 0 20px rgba(80, 200, 255, 0.7); font-size: 19px; animation: pulse 0.6s ease-in-out infinite; }

/* ---- touch controls ---- */
#controls { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
body[data-mode="menu"] #controls .pad, body[data-mode="menu"] #paws { visibility: hidden; }
#joyzone { position: absolute; left: 0; bottom: 0; width: 50%; top: 120px; pointer-events: auto; touch-action: none; }
.joy-base { position: absolute; left: max(110px, calc(env(safe-area-inset-left) + 100px)); bottom: max(30px, env(safe-area-inset-bottom)); width: 130px; height: 130px; margin: -65px 0 0 -65px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.26)); border: 3px solid rgba(255, 255, 255, 0.7); opacity: 0.55; pointer-events: none; transition: opacity 0.2s; }
.joy-base:not(.on) { bottom: max(30px, env(safe-area-inset-bottom)); margin: 0 0 0 -65px; }
.joy-base.on { opacity: 1; bottom: auto; transition: none; margin-top: var(--half, -65px) !important; }
.joy-knob { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #ffe6a8); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
@media (pointer: fine) { .joy-base:not(.on) { display: none; } }
.pad { position: absolute; pointer-events: auto; border-radius: 50%; padding: 0; display: grid; place-items: center; align-content: center; color: #fff; touch-action: none; isolation: isolate;
  border: 3px solid rgba(255, 255, 255, 0.9); box-shadow: 0 5px 0 rgba(0, 0, 0, 0.22); transition: box-shadow 0.15s; }
.pad span { font-size: 34px; line-height: 0.95; } .pad b { font-size: 13px; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.pad:active, .pad.down { translate: 0 3px; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }
/* Spike: the big one under your right thumb (it fills up gold while you hold it to serve) */
.spike { right: calc(max(18px, env(safe-area-inset-right)) + 8px); bottom: max(26px, env(safe-area-inset-bottom)); width: 122px; height: 122px; --charge: 0;
  background: conic-gradient(#ffd23f calc(var(--charge) * 360deg), transparent 0), radial-gradient(circle at 35% 30%, #ff9a8a, #e8343e 70%); }
.spike::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff9a8a, #e8343e 70%); z-index: -1; }
.spike span { font-size: 46px; }
.spike.cannon { animation: pulse 0.7s ease-in-out infinite; border-color: #ffd23f; box-shadow: 0 5px 0 rgba(0, 0, 0, 0.25), 0 0 0 5px rgba(255, 210, 63, 0.6), 0 0 32px rgba(255, 180, 40, 0.9); }
.spike.cannon::after { background: conic-gradient(from 0deg, #ff4d5e, #ff9a3c, #ffd23f, #3fd17a, #2f8bff, #9b5de5, #ff4d5e); opacity: 0.9; }
.bump { right: calc(max(18px, env(safe-area-inset-right)) + 140px); bottom: max(22px, env(safe-area-inset-bottom)); width: 92px; height: 92px;
  background: radial-gradient(circle at 35% 30%, #8fe3ff, #1f8fd0 75%); }
.set { right: calc(max(18px, env(safe-area-inset-right)) + 24px); bottom: calc(max(26px, env(safe-area-inset-bottom)) + 136px); width: 86px; height: 86px;
  background: radial-gradient(circle at 35% 30%, #fff1a6, #f2b705 75%); } .set b { color: #4a3000; text-shadow: none; }
.pad.ready { border-color: #4dff88; box-shadow: 0 5px 0 rgba(0, 0, 0, 0.22), 0 0 0 4px rgba(77, 255, 136, 0.45), 0 0 22px rgba(77, 255, 136, 0.6); }
.pad.serve { animation: pulse 0.9s ease-in-out infinite; }
#paws { position: absolute; right: calc(max(18px, env(safe-area-inset-right)) + 134px); bottom: calc(max(26px, env(safe-area-inset-bottom)) + 124px); display: flex; gap: 4px; pointer-events: none;
  background: var(--panel); border-radius: 999px; padding: 4px 8px; }
#paws i { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); display: grid; place-items: center; font-style: normal; font-size: 17px; }
#paws i::after { content: '🐾'; opacity: 0.25; filter: grayscale(1); }
#paws i.on { background: #ffd23f; animation: pop 0.5s cubic-bezier(.2, 1.8, .4, 1); } #paws i.on::after { opacity: 1; filter: none; }
#paws.full { box-shadow: 0 0 18px rgba(255, 210, 63, 0.9); }
@media (hover: hover) and (pointer: fine) { .pad { opacity: 0.88; } }
@media (max-height: 430px) { .spike { width: 100px; height: 100px; } .spike span { font-size: 38px; } .bump, .set { width: 74px; height: 74px; } .pad span { font-size: 28px; }
  .bump { right: calc(max(18px, env(safe-area-inset-right)) + 116px); } .set { bottom: calc(max(26px, env(safe-area-inset-bottom)) + 112px); }
  #paws { right: calc(max(18px, env(safe-area-inset-right)) + 110px); bottom: calc(max(26px, env(safe-area-inset-bottom)) + 100px); }
  .joy-base { scale: 0.85; } #logo { display: none; } }

/* ---- name tags, bubbles and pops ---- */
#tags { position: fixed; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
#tags > div { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform; }
.tag { font-size: 13px; font-weight: 700; color: #fff; background: rgba(10, 50, 80, 0.7); border-radius: 10px; padding: 2px 9px; border: 2px solid transparent; }
.tag.t0 { background: rgba(220, 50, 70, 0.85); } .tag.t1 { background: rgba(40, 110, 230, 0.85); } .tag.me { border-color: #ffd23f; font-size: 14px; }
.bubble { font-size: 16px; font-weight: 700; color: var(--ink); background: #fff; border-radius: 14px; padding: 5px 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); animation: bub 0.25s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes bub { from { opacity: 0; scale: 0.6; } to { opacity: 1; scale: 1; } }
.popword { font-size: 26px; font-weight: 700; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35), 0 0 14px rgba(0, 0, 0, 0.25); animation: popword 1.1s ease-out both; }
.popword.gold { color: #ffe066; font-size: 30px; } .popword.rainbow { font-size: 34px; color: #fff; text-shadow: 0 3px 0 #9b5de5, 0 0 18px #ff9a3c; }
@keyframes popword { 0% { opacity: 0; translate: 0 10px; scale: 0.5; } 15% { opacity: 1; scale: 1.15; } 30% { scale: 1; } 100% { opacity: 0; translate: 0 -60px; } }

/* ---- messages ---- */
#toast { position: fixed; left: 50%; bottom: max(160px, calc(env(safe-area-inset-bottom) + 150px)); translate: -50% 0; z-index: 14; background: var(--panel); color: #fff; font-size: 17px; font-weight: 600;
  padding: 8px 16px; border-radius: 14px; pointer-events: none; opacity: 0; transition: opacity 0.3s; width: max-content; max-width: calc(100vw - 30px); text-align: center; }
#toast.on { opacity: 1; }
#banner { position: fixed; left: 50%; top: 30%; translate: -50% -50%; z-index: 6; pointer-events: none; text-align: center; font-size: 46px; font-weight: 700; color: #fff; line-height: 1.1;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.3); opacity: 0; scale: 0.7; transition: opacity 0.25s, scale 0.3s cubic-bezier(.2, 1.6, .4, 1); width: max-content; max-width: calc(100vw - 30px); }
#banner.on { opacity: 1; scale: 1; background: rgba(10, 50, 80, 0.62); border-radius: 22px; padding: 10px 26px 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); }
#banner small { display: block; font-size: 22px; font-weight: 600; margin-top: 6px; }
#banner.gold { color: #ffe066; } #banner.sad { color: #e2f2ff; }
#banner.rainbow { background: linear-gradient(90deg, rgba(255, 77, 94, 0.85), rgba(255, 154, 60, 0.85), rgba(63, 209, 122, 0.85), rgba(47, 139, 255, 0.85), rgba(155, 93, 229, 0.85)); font-size: 54px; }
/* (the "turn sideways" note on an upright phone: a few seconds each time play starts or the phone turns upright, then it
   fades; until 2026-10-24 it stayed over the game the whole match, which Wes doesn't want: no always-on text over play.
   A window hides it, and since hiding is display: none, its fade starts over when the window closes) */
@keyframes rotate-tip { 0%, 85% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
#rotate { display: none; }
@media (orientation: portrait) and (max-width: 500px) { #rotate { display: block; position: fixed; left: 50%; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 230px); translate: -50% 0; z-index: 2; background: var(--panel); color: #fff; padding: 6px 12px; border-radius: 12px; font-size: 13px; pointer-events: none; white-space: nowrap; animation: rotate-tip 7s forwards; }
  #menu:not(.hidden) ~ #rotate, #panel:not(.hidden) ~ #rotate, #results:not(.hidden) ~ #rotate { display: none; }
  #banner { font-size: 34px; } #banner small { font-size: 17px; } #logo { display: none; }
  #hud { top: calc(max(8px, env(safe-area-inset-top)) + 54px); } #hud-score { font-size: 18px; padding: 2px 10px; } #hud-score b { font-size: 24px; }
  #pill { top: calc(max(8px, env(safe-area-inset-top)) + 118px); } }
@media (max-height: 430px) { #banner { top: 66%; font-size: 32px; } #banner small { font-size: 16px; margin-top: 3px; } #banner.on { padding: 7px 20px 9px; } #pill { top: calc(max(8px, env(safe-area-inset-top)) + 64px); } }

/* ---- windows ---- */
@keyframes bv-pop { from { opacity: 0; scale: 0.9; } to { opacity: 1; scale: 1; } }
.sheet { position: fixed; z-index: 12; left: 50%; top: 50%; translate: -50% -50%; width: min(540px, calc(100vw - 20px)); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); overflow-y: auto;
  background: var(--cream); border-radius: 22px; box-shadow: 0 20px 50px rgba(0, 40, 70, 0.4); padding: 18px 20px 20px; border: 4px solid var(--sun); animation: bv-pop 0.32s cubic-bezier(.2, 1.4, .4, 1) both; }
.sheet .x { position: sticky; float: right; top: 0; margin: -6px -8px 0 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #e6f2f8; color: var(--ink); font-size: 18px; z-index: 2; }
.sheet h2 { margin: 0 0 6px; font-size: 25px; } .sheet h3 { margin: 14px 0 6px; font-size: 17px; }
.sheet p { margin: 6px 0; line-height: 1.4; } .hint { color: var(--muted); font-size: 14px; margin-top: 0; }
.row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; align-items: center; margin-top: 14px; }
#menu { text-align: center; }
.logo-big { font-size: 40px; font-weight: 700; color: #fff; background: linear-gradient(#ffb03b, #ff6b3b); border-radius: 18px; padding: 8px 12px; border: 4px solid #fff3c4; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.25); margin-bottom: 8px; }
.logo-big small { display: block; font-size: 16px; letter-spacing: 1px; color: #fff3c4; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chips button { font-size: 16px; font-weight: 700; border: 3px solid var(--line); background: #fff; border-radius: 14px; padding: 7px 12px; color: var(--ink); }
.chips button.on { border-color: var(--sea); background: #dff3ff; }
.howto { padding-left: 0; list-style: none; margin: 10px 0 0; text-align: left; } .howto li { background: #fff; border-radius: 12px; padding: 8px 12px; margin-bottom: 6px; line-height: 1.35; font-size: 17px; }
.soon { margin-top: 12px; background: #fff4d6; border-radius: 12px; padding: 6px 10px; font-size: 14px; }

/* ---- the summary ---- */
#results { text-align: center; }
.final { display: flex; justify-content: center; align-items: center; gap: 14px; font-size: 48px; font-weight: 700; margin: 6px 0; }
.final .t0 { color: #e8343e; } .final .t1 { color: #2a6fd8; } .final .dash { color: var(--muted); }
.headline { font-size: 23px; font-weight: 700; }
.mine { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: 12px 0; }
.mine div { background: #fff; border-radius: 14px; padding: 6px; border: 2px solid var(--line); } .mine b { display: block; font-size: 26px; } .mine span { font-size: 13px; color: var(--muted); font-weight: 600; }
.team-faces { display: flex; justify-content: center; gap: 16px; margin: 4px 0; } .team-faces img { width: 58px; height: 58px; }
.prize { background: #e8f8ec; border-radius: 12px; padding: 8px; font-size: 16px; }
.easier { background: #fff4d6; border: 3px solid var(--sun); border-radius: 14px; padding: 6px 10px; margin: 8px 0 0; font-size: 17px; font-weight: 600; }

/* ---- short screens (a phone held sideways): the welcome card and the summary fit without scrolling, so ▶ Play! and
   🔁 Play again are always in sight ---- */
@media (max-height: 500px) {
  .sheet { padding: 10px 16px 12px; border-width: 3px; }
  .logo-big { font-size: 26px; padding: 4px 10px; margin-bottom: 4px; border-width: 3px; } .logo-big small { font-size: 12px; }
  #menu p { margin: 2px 0; font-size: 15px; line-height: 1.3; }
  .sheet h3 { margin: 6px 0 4px; font-size: 15px; }
  .chips button { font-size: 15px; padding: 4px 10px; }
  .row { margin-top: 8px; } .btn.big { font-size: 19px; padding: 8px 22px; }
  .soon { margin-top: 6px; padding: 3px 8px; font-size: 13px; }
  .sheet h2 { font-size: 19px; margin-bottom: 0; }
  .final { font-size: 32px; margin: 0; gap: 10px; }
  .team-faces { margin: 0; } .team-faces img { width: 40px; height: 40px; }
  .headline { font-size: 18px; margin: 2px 0; } #results .hint { margin: 0; font-size: 13px; }
  .mine { grid-template-columns: repeat(6, 1fr); gap: 5px; margin: 6px 0; } .mine div { padding: 3px 2px; border-radius: 10px; }
  .mine b { font-size: 18px; } .mine span { font-size: 11px; line-height: 1.15; display: block; }
  .prize { padding: 4px 8px; font-size: 14px; margin: 4px 0; }
  .easier { display: none; } /* (no room: the 🐶 Try Medium button says it) */
}
/* ---- a phone held sideways: little messages at the bottom, between the stick and the buttons, not over the players on
   the court (UAT, 2026-10-23) ---- */
@media (max-height: 500px) and (orientation: landscape) { #toast { bottom: max(10px, env(safe-area-inset-bottom)); font-size: 15px; max-width: calc(100vw - 420px); } }
/* ---- a phone held upright: the score on one line, the twist message under it, little messages above the buttons ---- */
@media (orientation: portrait) and (max-width: 500px) {
  #hud { width: max-content; } #hud-score { white-space: nowrap; }
  #pill { top: calc(max(8px, env(safe-area-inset-top)) + 124px); }
  #toast { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 270px); }
}

/* ---- playing with friends: the lobby (a panel on the left; the computer players have a game behind it) ---- */
#netmsg { position: fixed; left: 50%; top: 70px; translate: -50% 0; z-index: 13; background: #e8501a; color: #fff; font-weight: 700; padding: 6px 14px; border-radius: 12px; width: max-content; max-width: calc(100vw - 30px); }
.side { position: fixed; z-index: 11; left: max(10px, env(safe-area-inset-left)); top: calc(max(8px, env(safe-area-inset-top)) + 54px); bottom: max(10px, env(safe-area-inset-bottom));
  width: min(430px, calc(100vw - 20px)); display: flex; flex-direction: column; background: var(--cream); border-radius: 22px; border: 4px solid var(--sun); box-shadow: 0 20px 50px rgba(0, 40, 70, 0.4);
  padding: 12px 14px; animation: bv-pop 0.3s cubic-bezier(.2, 1.4, .4, 1) both; }
.side h2 { margin: 0 0 6px; font-size: 22px; display: flex; align-items: center; justify-content: space-between; }
.side .mini { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #e6f2f8; font-size: 18px; }
body.lobby-min .side { bottom: auto; } body.lobby-min #lobby-body, body.lobby-min #lobby-msg { display: none; } body.lobby-min .side .mini { rotate: 180deg; }
#lobby-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-right: 2px; }
#lobby-body h3 { margin: 10px 0 4px; font-size: 16px; }
#lobby-body .wait { font-size: 18px; text-align: center; margin-top: 30px; }
#lobby-msg { min-height: 20px; color: var(--muted); font-size: 14px; text-align: center; margin: 4px 0; }
.side .foot { display: flex; gap: 8px; justify-content: center; }
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.team { border-radius: 16px; padding: 6px; } .team h3 { margin: 0 0 4px !important; font-size: 15px !important; text-align: center; }
.team.t0 { background: #ffe1e4; border: 3px solid var(--red); } .team.t1 { background: #dde9ff; border: 3px solid var(--blue); }
.seats { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.seat { position: relative; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 4px 2px; text-align: center; font-size: 12px; font-weight: 600; }
.seat.me { border-color: #ffb703; background: #fff8e0; } .seat.cpu { opacity: 0.75; border-style: dashed; }
.seat img { width: 44px; height: 44px; display: block; margin: 0 auto 2px; } .seat .cpu-face { font-size: 30px; line-height: 44px; display: block; }
.seat .crown { position: absolute; top: 1px; left: 4px; font-style: normal; }
.side .chips { justify-content: flex-start; margin-top: 6px; } .chips button:disabled { opacity: 0.45; }
/* two friends who walked in together: same team or opposite (two big picture buttons; the bar is the time left) */
.ask { position: relative; overflow: hidden; background: #fff; border: 3px solid var(--sun); border-radius: 16px; padding: 8px 10px 12px; margin-bottom: 8px; text-align: center; }
.ask h3 { margin: 0 0 6px !important; font-size: 17px !important; }
.ask-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ask-picks button { min-height: 92px; border: 3px solid var(--line); background: #fff8e0; border-radius: 16px; padding: 6px 4px; font-family: inherit; font-size: 16px; font-weight: 700; color: var(--ink); }
.ask-picks button b { display: block; font-size: 42px; line-height: 1.15; }
.ask-picks button.on { border-color: var(--sea); background: #dff3ff; }
.ask .hint { margin: 6px 0 0; }
.ask-time { position: absolute; left: 0; bottom: 0; width: 100%; height: 5px; background: var(--sun); transform-origin: left; animation: ask-time linear both; }
@keyframes ask-time { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-height: 500px) { .ask-picks button { min-height: 62px; font-size: 14px; } .ask-picks button b { font-size: 28px; } .ask h3 { font-size: 15px !important; } }
.pal { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 4px 8px; margin-bottom: 5px; position: relative; }
.pal img { width: 38px; height: 38px; } .pal .n { flex: 1; font-weight: 600; } .pal small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.pal .dot { position: absolute; left: 36px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #bbb; border: 2px solid #fff; } .pal .dot.on { background: #2ecc71; }
.btn.small { font-size: 14px; padding: 6px 12px; }
.note { font-size: 14px; color: var(--muted); }
@media (max-height: 500px) { .side { top: max(6px, env(safe-area-inset-top)); left: calc(max(10px, env(safe-area-inset-left)) + 200px); width: min(400px, calc(100vw - 230px)); padding: 8px 10px; } .side h2 { font-size: 18px; margin-bottom: 4px; }
  .seat img { width: 30px; height: 30px; } .seat .cpu-face { font-size: 20px; line-height: 30px; } .seat { font-size: 11px; padding: 2px; }
  #lobby-body h3 { margin: 6px 0 2px; font-size: 14px; } #lobby-body p { margin: 2px 0; } .side .chips button { font-size: 13px; padding: 3px 8px; } .side .btn.big { font-size: 17px; padding: 6px 18px; } }
/* (a phone held sideways: the score bar only, so the far side's names under it stay in sight; "First to 11 · Easy" is on the welcome card) */
@media (max-height: 430px) { #hud-to { display: none; } }
