/* Multiplayer screens (party.html). Builds on style.css. */
.muted { color: var(--muted); }
.center { text-align: center; }
.links { padding: 4px 4px 0; }
.codebox { text-transform: uppercase; text-align: center; font-size: 30px !important; letter-spacing: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
#home, #start { display: grid; gap: 14px; }
#home.hidden, #start.hidden { display: none; }
.bigchoice { display: flex; align-items: center; gap: 16px; text-align: left; min-height: 120px; padding: 18px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; font: inherit; width: 100%; }
.bigchoice:active { border-color: var(--accent); }
.bigchoice .ico { font-size: 40px; flex: none; }
.bigchoice b { display: block; font-size: 21px; margin-bottom: 4px; }
.bigchoice small { display: block; color: var(--muted); font-size: 14px; line-height: 1.35; }
.about { justify-self: end; text-align: right; }
.about summary { list-style: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--muted); font-weight: 700; cursor: pointer; user-select: none; }
.about summary::-webkit-details-marker { display: none; }
.about[open] summary { color: var(--accent); border-color: var(--accent); }
.aboutbox { margin-top: 8px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.aboutbox p { margin: 0 0 8px; }
.aboutbox p:last-child { margin: 0; }
.backlink { width: auto; min-height: 36px; padding: 4px 0; background: none; color: var(--accent); justify-self: start; font-size: 15px; }
#room { display: grid; gap: 14px; }
#lobby, #play, #over, #hostSetup { display: grid; gap: 14px; }
#lobby.hidden, #play.hidden, #over.hidden, #hostSetup.hidden { display: none; }

/* on a narrow phone (320 px) the buttons go under the room code instead of past the screen's edge */
.roomcard .row { align-items: center; flex-wrap: wrap; gap: 8px; }
.roomcode { font-size: 34px; font-weight: 800; letter-spacing: 6px; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.1; }
.roombtns { display: flex; gap: 8px; margin-left: auto; }
.roombtns button { width: auto; min-height: 40px; padding: 8px 12px; font-size: 14px; white-space: nowrap; }
#rulesBtn { font-size: 18px; padding: 6px 12px; }
.players { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.players button { width: auto; min-height: 34px; padding: 6px 10px; font-size: 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); display: inline-flex; gap: 6px; align-items: center; }
.players button.me { border-color: var(--accent); }
.players button.off { opacity: .45; }
.players b { font-variant-numeric: tabular-nums; color: var(--accent); }

.waiting { text-align: center; }
.pulse { font-size: 44px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.15); opacity: .7; } }

.stage { display: grid; gap: 8px; }
.badge { font-size: 14px; color: var(--muted); }
.badge:empty { display: none; }
.timer { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.timer.hidden { display: block !important; visibility: hidden; }
.timer i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; }
.timer.low i { background: var(--bad); }
.sound { display: flex; align-items: center; gap: 10px; justify-content: center; min-height: 64px; font-size: 15px; color: var(--muted); }
.sound span:first-child { font-size: 34px; }
.sound.on span:first-child { animation: pulse .8s ease-in-out infinite; }
.vtext { text-align: center; margin: 0; font-size: 17px; font-weight: 600; }
.vtext.good { color: var(--good); } .vtext.bad { color: var(--bad); }
.vtext:empty, .bigyear:empty { display: none; }
.bigyear { text-align: center; font-size: 56px; font-weight: 800; color: var(--accent); line-height: 1; }
.choices button { min-height: 58px; }
.choices button.picked { border-color: var(--accent); }
.buzz { min-height: 160px; font-size: 40px; font-weight: 900; border-radius: 50%; width: 160px; margin: 0 auto; background: var(--bad); color: #fff; }
.results { display: grid; gap: 6px; margin-top: 12px; }
.results:empty { display: none; }
.results div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 8px 10px; border-radius: 8px; background: var(--bg); }
.results div.good span:last-child { color: var(--good); }
.results span:last-child { color: var(--muted); text-align: right; }
#rArt.hidden { display: none; }

.podium { display: grid; gap: 8px; margin: 10px 0; text-align: left; }
.podium div { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: var(--bg); font-size: 17px; }
.podium div:first-child { background: color-mix(in srgb, var(--accent) 22%, var(--card)); border: 1px solid var(--accent); font-weight: 700; font-size: 20px; }
.podium b { font-variant-numeric: tabular-nums; }
#overLines p { margin: 6px 0; color: var(--muted); }

.toasts { position: fixed; left: 0; right: 0; bottom: max(16px, env(safe-area-inset-bottom)); display: grid; gap: 6px; justify-items: center; pointer-events: none; z-index: 10; }
.toasts div { background: var(--card); border: 1px solid var(--accent); padding: 8px 14px; border-radius: 999px; font-size: 14px; animation: flash .3s; max-width: 90vw; }

/* game rules: host card and guests' waiting screen */
.rulecard { text-align: left; }
.rulehead { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rulehead .ico { font-size: 26px; }
.rulehead b { font-size: 19px; }
.rules { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14.5px; line-height: 1.35; }
.ohint { margin: -6px 0 12px; font-size: 13px; color: var(--muted); }
.ohint.warn { color: var(--bad); margin: 8px 0 0; }
.settings { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.settings dt { color: var(--muted); }
.settings dd { margin: 0; font-weight: 600; }
.settings dd small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
#guestWait .rulecard:empty { display: none; }
/* a room game played alone (from the Solo page): no code, players, sharing, game list or music phone */
body.solo #share, body.solo #players, body.solo #modes, body.solo #optAudio { display: none; }
body.solo .roomcode { font-size: 20px; letter-spacing: 0; color: var(--text); }
