/* Multiplayer screens and scenes. */
.party-entry, .party-lobby, .party-finished {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom));
}
.party-finished { max-width: 680px; overflow: hidden; }
.party-title { margin: 6px 0 12px; font: 400 clamp(48px, 13vw, 84px) / 1 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.party-entry-grid, .party-lobby-grid { display: grid; gap: 22px; }
.party-form { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.party-form label { color: var(--muted); font-size: 15px; }
.party-form label[for='party-code'] { margin-top: 12px; }
.party-form input {
  min-width: 0;
  height: 52px;
  padding: 0 14px;
  background: var(--chalk);
  border: 0;
  border-radius: 4px;
  color: var(--turf-deep);
  font: 500 18px var(--body);
}
.party-form input#party-code { flex: 1; text-transform: uppercase; }
.party-hero, .party-preview, .party-scene { border-radius: 10px; overflow: hidden; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45); }

.party-ticket {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 12px 18px;
  background: repeating-linear-gradient(-45deg, rgba(246, 212, 75, 0.09) 0 10px, transparent 10px 20px), var(--turf-deep);
  border: 2px dashed var(--flood);
  border-radius: 10px;
}
.party-ticket .kicker { margin: 0; }
.party-code { margin: 0; color: var(--flood); font: 400 clamp(52px, 15vw, 80px) / 1.05 var(--display); letter-spacing: 0.06em; }
.party-preview { margin-top: 10px; }
.party-heading { margin: 18px 0 0; color: var(--chalk); font: 700 16px var(--condensed); letter-spacing: 0.1em; text-transform: uppercase; }
.party-heading:empty { display: none; }
.party-subheading { margin: 10px 0 4px; color: var(--muted); font: 600 14px var(--condensed); letter-spacing: 0.06em; text-transform: uppercase; }

.party-moves { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; }
.party-moves li { display: flex; flex-direction: column; justify-content: space-between; gap: 4px; min-width: 0; padding: 7px 8px; background: var(--turf-deep); border-top: 4px solid var(--tier); border-radius: 4px; }
.party-moves span { color: var(--muted); font: 500 13px/1.1 var(--condensed); }
.party-moves b { color: var(--tier); font: 400 17px/1.1 var(--display); letter-spacing: 0.02em; text-transform: uppercase; overflow-wrap: anywhere; }

.party-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 5px; }
.party-tiles.is-single { grid-template-columns: 1fr; margin-top: 6px; }
.party-tile, .party-life-choice {
  min-height: 44px;
  padding: 6px 10px;
  background: var(--turf-deep);
  border: 2px solid var(--line);
  border-radius: 6px;
  color: var(--chalk);
  font: 700 17px/1.1 var(--condensed);
  cursor: pointer;
}
.party-tile small { display: block; color: var(--muted); font: 500 13px/1.2 var(--condensed); }
.party-tile:hover:not(:disabled), .party-life-choice:hover:not(:disabled) { border-color: var(--flood); }
.party-tile:disabled, .party-life-choice:disabled { cursor: default; }
.party-tile.is-chosen, .party-life-choice.is-chosen { background: var(--flood); border-color: var(--flood); color: var(--turf-deep); }
.party-tile.is-chosen small { color: var(--turf-deep); }
.party-lives { display: flex; gap: 5px; margin-top: 6px; }
.party-life-choice { flex: 1; font: 400 24px/1 var(--display); }
.party-lobby-side .fineprint { margin: 4px 0 0; }

.party-list { margin: 6px 0 0; padding: 0; list-style: none; }
.party-row { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 10px; border-top: 1px solid var(--line); }
.party-row-name { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.party-row-note { color: var(--muted); font-size: 15px; }
.party-row.is-away { opacity: 0.6; }
.party-row.is-winner { background: var(--flood); border-radius: 6px; color: var(--turf-deep); }
.party-row.is-winner .party-row-note { color: var(--turf-deep); font-weight: 700; }
.party-connection { margin-top: 8px; color: var(--danger); font-weight: 600; }
.party-connection:empty { display: none; }
.party-avatar {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--jersey);
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #fff;
  font: 400 15px/1 var(--display);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.party-avatar.is-big { width: 84px; height: 84px; margin-top: 6px; font-size: 42px; }

.party-hearts { display: inline-flex; flex-wrap: wrap; gap: 2px; vertical-align: middle; }
.party-heart { display: block; width: 14px; height: 13px; }
.party-heart svg { display: block; width: 100%; height: 100%; fill: var(--danger); }
.party-heart.is-lost svg { fill: rgba(236, 242, 226, 0.18); }
#party-my-lives .party-heart { width: 19px; height: 18px; }
#party-my-lives small { font-size: 20px; }

/* The game: the court fills the screen, with the scoreboard and question above and the answer box below. */
.party-game {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: var(--visible-height, 100dvh);
  overflow: hidden;
  background: #000;
  pointer-events: none;
  animation: enter 0.22s ease-out;
}
.party-scene { position: absolute; inset: 0; border-radius: 0; box-shadow: none; overflow: hidden; }
.party-game .sc-stage { position: absolute; inset: 0; width: auto; aspect-ratio: auto; }
.party-top, .party-bottom { position: relative; z-index: 1; pointer-events: auto; }
.party-top { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.party-game .board { position: relative; padding-bottom: 12px; background: #000; }
.party-question { padding: 6px var(--gutter) 9px; background: rgba(6, 20, 14, 0.9); }
.party-question-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.party-game .category { margin: 0; font-size: 14px; color: var(--sc-accent, var(--flood)); }
.party-prompt { margin: 2px 0 0; font: 700 clamp(19px, 2.6vw, 28px) / 1.14 var(--condensed); }
.party-leave { flex: none; color: var(--muted); font-size: 14px; }
.party-bottom {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter) calc(8px + env(safe-area-inset-bottom));
}
.party-connection { position: absolute; left: var(--gutter); bottom: 100%; margin: 0 0 6px; padding: 3px 10px; background: rgba(6, 20, 14, 0.92); border-radius: 6px; color: var(--danger); font-weight: 600; }
/* Both of these keep their height when empty, so the players never shift as answers arrive. */
.party-used { display: flex; flex-wrap: nowrap; gap: 4px; height: 30px; margin: 0; padding: 0; overflow-x: auto; overflow-y: hidden; list-style: none; scrollbar-width: none; }
.party-used::-webkit-scrollbar { display: none; }
.party-said { flex: none; display: flex; align-items: center; height: 28px; padding: 0 9px; background: rgba(6, 20, 14, 0.9); border-left: 4px solid var(--tier); border-radius: 3px; font: 600 15px/1 var(--condensed); white-space: nowrap; animation: party-pop 0.25s ease-out; }
.party-said small { display: none; }
.party-hint { height: 22px; min-height: 0; margin: 2px 0 0; font-size: 15px; line-height: 22px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-shadow: 0 1px 3px #000, 0 0 6px #000; }
@keyframes party-pop { from { transform: scale(0.8); opacity: 0; } }
/* The answer box. Its bright border is the clock, draining as time runs out. */
.party-box {
  --left: 100%;
  --edge: var(--sc-accent, var(--flood));
  position: relative;
  margin-top: 2px;
  padding: 4px;
  background: conic-gradient(from 0deg, var(--edge) var(--left), rgba(236, 242, 226, 0.12) var(--left));
  border-radius: 18px;
  transition: box-shadow 0.25s ease;
}
.party-box-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, #123527 0%, #06140e 100%);
  border-radius: 14px;
}
.party-box.is-mine { box-shadow: 0 0 26px color-mix(in srgb, var(--edge) 55%, transparent); }
.party-box.is-mine .party-box-inner { background: linear-gradient(180deg, color-mix(in srgb, var(--edge) 22%, #0b2219) 0%, #06140e 100%); }
.party-box.is-urgent { --edge: var(--danger); }
.party-box.is-mine.is-urgent { animation: party-urgent 0.5s ease-in-out infinite alternate; }
.party-box.is-handed { animation: party-handed 0.45s cubic-bezier(0.2, 1.6, 0.4, 1); }
.party-box.is-wrong { animation: shake 0.28s ease-out; }
.party-box.is-out { opacity: 0.55; }
@keyframes party-urgent { to { box-shadow: 0 0 34px color-mix(in srgb, var(--danger) 80%, transparent); } }
@keyframes party-handed { from { transform: scale(0.95); } }

.party-live { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 34px; color: var(--muted); font: 600 17px/1.15 var(--condensed); }
.party-live .party-avatar { width: 28px; height: 28px; font-size: 14px; }
.party-live-who { flex: none; color: var(--chalk); font: 400 19px/1 var(--display); letter-spacing: 0.03em; text-transform: uppercase; }
.party-live.is-mine .party-live-who { color: var(--edge); font-size: 23px; }
.party-live-note { color: var(--muted); font: 500 15px/1.15 var(--condensed); }
.party-live.is-mine .party-live-note { margin-left: auto; text-align: right; }
.party-live-text { min-width: 0; overflow: hidden; color: #fff; font: 600 21px/1.15 var(--condensed); white-space: nowrap; text-overflow: ellipsis; direction: ltr; }
.party-caret, .sc-caret { display: inline-block; width: 2px; height: 0.95em; margin-left: 2px; vertical-align: -0.12em; background: currentColor; animation: party-blink 0.9s steps(2) infinite; }
.party-dots::after { content: '...'; animation: party-blink 1.2s steps(2) infinite; }
@keyframes party-blink { 50% { opacity: 0; } }

.party-box-form { display: flex; align-items: stretch; gap: 8px; margin: 0; }
.party-box-form input {
  flex: 1;
  min-width: 0;
  height: 58px;
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.38);
  border: 2px solid rgba(236, 242, 226, 0.16);
  border-radius: 12px;
  color: #fff;
  font: 600 24px var(--condensed);
  letter-spacing: 0.01em;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.party-box-form input::placeholder { color: rgba(236, 242, 226, 0.45); font-weight: 500; }
.party-box-form input:focus { border-color: var(--edge); background: rgba(0, 0, 0, 0.55); }
.party-box-form input:disabled { opacity: 0.6; }
.party-send {
  display: flex;
  flex: none;
  align-items: center;
  gap: 7px;
  padding: 0 16px 0 12px;
  background: var(--edge);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.45);
  color: #06140e;
  font: 400 21px/1 var(--display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.12s ease;
}
.party-send svg { width: 26px; height: 26px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4)); }
.party-send:hover:not(:disabled) { filter: brightness(1.1); }
.party-send:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.45); }
.party-send.is-waiting { background: rgba(236, 242, 226, 0.1); box-shadow: none; color: var(--muted); }
.party-send:disabled { cursor: default; opacity: 0.5; }

.party-used { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; }
.party-said { display: flex; flex-direction: column; padding: 3px 10px; background: var(--turf-deep); border-left: 5px solid var(--tier); font: 600 16px/1.15 var(--condensed); animation: party-pop 0.25s ease-out; }
.party-said small { color: var(--muted); font: 500 12px/1.15 var(--condensed); }
.party-leave { margin-top: 18px; color: var(--muted); }
@keyframes party-pop { from { transform: scale(0.8); opacity: 0; } }

/* The scene */
.sc-stage { position: relative; display: block; width: 100%; aspect-ratio: 360 / 230; background: var(--turf-deep); }
.sc-stage.is-shaking { animation: sc-shake 0.4s ease-out; }
.sc-svg { display: block; width: 100%; height: 100%; }
.sc-svg text { font-family: var(--condensed); }
.sc-floor * { vector-effect: non-scaling-stroke; }
.sc-shadow { fill: rgba(0, 0, 0, 0.35); }
.sc-glow { fill: var(--flood); opacity: 0; }
.sc-plate rect { fill: rgba(8, 20, 15, 0.82); }
.sc-plate text { fill: #fff; font-size: 9.5px; font-weight: 600; }
.sc-tag.is-you .sc-plate rect { fill: var(--flood); }
.sc-tag.is-you .sc-plate text { fill: #081d15; font-weight: 700; }
.sc-pip { fill: #ff6b5e; stroke: rgba(0, 0, 0, 0.55); stroke-width: 0.5; }
.sc-pip.is-gone { fill: rgba(0, 0, 0, 0.4); }
.sc-fig.has-ball .sc-glow { opacity: 0.85; animation: sc-glow 0.9s ease-in-out infinite alternate; }
.sc-fig.has-ball .sc-pose { animation: sc-ready 0.46s ease-in-out infinite alternate; }
.sc-pose, .sc-glow, .sc-ball, .sc-miss { transform-box: fill-box; transform-origin: center; }
.sc-fig.is-out .sc-pose { opacity: 0.32; filter: grayscale(1); }
.sc-tag.is-out { opacity: 0.6; }
.sc-fig.is-away:not(.is-out) .sc-pose { opacity: 0.55; }
.sc-fig.is-hit .sc-pose { animation: sc-hit 0.7s ease-out; }
.sc-miss { fill: #ff6b5e; stroke: #081d15; stroke-width: 0.6; font-size: 18px; font-weight: 700; opacity: 0; }
.sc-fig.is-missed .sc-miss { animation: sc-miss 0.6s ease-out; }
.sc-ball.is-held { animation: sc-dribble 0.46s ease-in infinite alternate; }
.sc-ball-pos { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5)); }
.sc-trail { opacity: 0.7; animation: sc-fade 0.42s ease-out forwards; }
.sc-burst { fill: none; stroke-width: 4; transform-box: fill-box; transform-origin: center; animation: sc-burst 0.55s ease-out forwards; }

/* Speech bubbles: what a player is typing, then what they said. */
.sc-bubbles { position: absolute; inset: 0; pointer-events: none; }
.sc-bubble {
  position: absolute;
  z-index: 2;
  width: max-content;
  max-width: 46%;
  padding: 3px 9px 4px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  color: #06140e;
  font: 700 clamp(13px, 3.6vw, 18px) / 1.1 var(--condensed);
  overflow-wrap: anywhere;
  transform: translate(-50%, -100%);
}
.sc-bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  border: 6px solid transparent;
  border-top-color: var(--bubble, #fff);
  border-bottom: 0;
  transform: translateX(-50%);
}
.sc-bubble.is-said { --bubble: var(--tier, #fff); background: var(--tier, #fff); animation: sc-say 0.28s cubic-bezier(0.2, 1.7, 0.4, 1); }
.sc-bubble.is-wrong { --tier: var(--danger); animation: sc-say-wrong 0.34s ease-out; text-decoration: line-through; }
.sc-bubble.is-used { --tier: #cfd8cb; animation: sc-say-wrong 0.34s ease-out; text-decoration: line-through; }
.sc-bubble.is-tier-bandwagon { --tier: var(--t-bandwagon); }
.sc-bubble.is-tier-casual { --tier: var(--t-casual); }
.sc-bubble.is-tier-fan { --tier: var(--t-fan); }
.sc-bubble.is-tier-knowledge { --tier: var(--t-knowledge); }
.sc-bubble.is-tier-scout { --tier: var(--t-scout); }
@keyframes sc-say { from { transform: translate(-50%, -100%) scale(0.5); } }
@keyframes sc-say-wrong { 20% { margin-left: -5px; } 40% { margin-left: 5px; } 60% { margin-left: -4px; } 80% { margin-left: 3px; } }

.sc-banner {
  position: absolute;
  left: 50%;
  top: calc(var(--sc-safe-top, 0px) + var(--sc-safe, 100%) * 0.68);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  max-width: 92%;
  padding: 5px 16px 6px;
  background: rgba(6, 18, 13, 0.88);
  border-radius: 8px;
  color: var(--chalk);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.7);
}
.sc-banner.is-showing { animation: sc-banner 0.32s cubic-bezier(0.2, 1.6, 0.4, 1) forwards; }
.sc-banner b { color: var(--tier, var(--chalk)); font: 400 clamp(22px, 6vw, 40px) / 1.1 var(--display); letter-spacing: 0.02em; text-transform: uppercase; }
.sc-banner small { color: var(--chalk); font: 600 clamp(13px, 3.4vw, 16px) / 1.2 var(--condensed); }
.sc-banner small:empty { display: none; }
.sc-banner.is-foul b { color: var(--danger); }
.sc-banner.is-round b { color: var(--sc-accent, var(--flood)); }
.sc-banner.is-tier-bandwagon { --tier: var(--t-bandwagon); }
.sc-banner.is-tier-casual { --tier: var(--t-casual); }
.sc-banner.is-tier-fan { --tier: var(--t-fan); }
.sc-banner.is-tier-knowledge { --tier: var(--t-knowledge); }
.sc-banner.is-tier-scout { --tier: var(--t-scout); }

@keyframes sc-ready { to { transform: translateY(-2px); } }
@keyframes sc-glow { to { opacity: 0.35; } }
@keyframes sc-dribble { to { transform: translateY(9px); } }
@keyframes sc-hit { 15% { transform: translateX(-4px) rotate(-10deg); } 30% { transform: translateX(4px) rotate(10deg); } 45% { transform: translateX(-3px) rotate(-6deg); } 60% { transform: translateX(2px) rotate(4deg); } }
@keyframes sc-miss { 25% { opacity: 1; transform: translateY(-3px); } 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes sc-fade { to { opacity: 0; r: 0.5; } }
@keyframes sc-burst { from { transform: scale(0.2); opacity: 1; } to { transform: scale(1); opacity: 0; } }
@keyframes sc-banner { to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes sc-shake { 20% { transform: translate(-4px, 2px); } 40% { transform: translate(4px, -2px); } 60% { transform: translate(-3px, 1px); } 80% { transform: translate(2px, -1px); } }

/* The finish */
.party-win-card { position: relative; z-index: 1; text-align: center; }
.party-confetti { position: absolute; inset: 0 0 auto; height: 340px; overflow: hidden; pointer-events: none; }
.party-confetti i { position: absolute; left: var(--x); top: -14px; width: 8px; height: 14px; background: var(--c); animation: party-fall 2.3s var(--delay) linear infinite; }
@keyframes party-fall { to { transform: translateY(370px) rotate(540deg); opacity: 0.2; } }
.party-finished > :not(.party-confetti) { position: relative; z-index: 1; }

/* Finding a game */
.party-browse-head { display: grid; gap: 22px; align-items: center; }
.party-browse-head .party-hero { display: none; }
.party-browse-grid { display: grid; gap: 22px; margin-top: 8px; }
.party-start-panel .party-form { margin-top: 0; }
.party-invite-form { max-width: 420px; }
.party-quick { min-height: 56px; font-size: 20px; }
.party-create-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.party-create-row .btn { padding-inline: 6px; }
.party-rooms-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.party-rooms-head .party-heading { margin: 0; }
.party-rooms-status { color: var(--muted); font-size: 15px; }
.party-rooms-status.is-down { color: var(--danger); }
.party-filter { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.party-chip-filter {
  min-height: 40px;
  padding: 4px 13px;
  background: transparent;
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--chalk);
  font: 700 16px/1 var(--condensed);
  cursor: pointer;
}
.party-chip-filter:hover { border-color: var(--flood); }
.party-chip-filter.is-chosen { background: var(--flood); border-color: var(--flood); color: var(--turf-deep); }
.party-room-list { display: grid; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; }
.party-room {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px 16px;
  min-height: 72px;
  padding: 10px 12px 10px 16px;
  background: var(--turf-deep);
  border-left: 6px solid var(--accent);
  border-radius: 8px;
}
.party-room.is-closed { opacity: 0.62; }
.party-room-main { display: grid; gap: 2px; min-width: 0; }
.party-room-name { font: 400 22px/1.1 var(--display); letter-spacing: 0.02em; overflow-wrap: anywhere; }
.party-room-topics { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.party-room-meta { display: grid; justify-items: end; gap: 5px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.party-seats { display: flex; gap: 3px; }
.party-seats i { width: 9px; height: 9px; border: 1.5px solid var(--muted); border-radius: 50%; }
.party-seats i.is-taken { background: var(--accent); border-color: var(--accent); }
.party-room-join { min-width: 84px; }
.party-room-state { min-width: 84px; color: var(--muted); font: 700 15px var(--condensed); letter-spacing: 0.06em; text-align: center; text-transform: uppercase; }
.party-room-empty { display: grid; justify-items: start; gap: 6px; padding: 22px 18px; background: var(--turf-deep); border: 2px dashed var(--line); border-radius: 8px; }
.party-room-empty b { font: 400 22px/1.1 var(--display); letter-spacing: 0.02em; }
.party-room-empty span { color: var(--muted); }
.party-room-empty .btn { margin-top: 6px; }
.party-question-count { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.party-question-count.is-short { color: var(--danger); font-weight: 600; }
#party-visibility .party-tile { flex: 1; }
@media (max-width: 560px) {
  .party-room { grid-template-columns: minmax(0, 1fr) auto; }
  .party-room-meta { grid-column: 1; grid-row: 2; justify-items: start; }
  .party-room > :last-child { grid-column: 2; grid-row: 1 / span 2; }
  .party-chip-filter { min-height: 44px; }
}

@media (min-width: 900px) {
  .party-browse-grid { grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.5fr); align-items: start; gap: 28px; }
  .party-browse-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .party-browse-head .party-hero { display: block; }
  .party-entry-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 40px; }
  .party-lobby-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 560px) {
  /* The ball icon is enough here, and it leaves room for long names. The label stays for screen readers. */
  .party-send { justify-content: center; width: 58px; padding: 0; }
  .party-send svg { width: 32px; height: 32px; }
  #party-send-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .party-box-form input { padding: 0 12px; font-size: 22px; }
  .party-moves { grid-template-columns: repeat(2, 1fr); }
  .party-moves li:last-child { grid-column: 1 / -1; }
  .party-ticket .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .party-box.is-handed, .party-box.is-mine.is-urgent, .party-box.is-wrong, .sc-bubble, .party-caret, .sc-caret, .party-dots::after,
  .sc-stage.is-shaking, .sc-fig.has-ball .sc-pose, .sc-fig.has-ball .sc-glow, .sc-fig.is-hit .sc-pose, .sc-ball.is-held, .party-chip.is-missed, .party-said, .party-confetti i { animation: none; }
  .party-confetti { display: none; }
  .sc-banner.is-showing { animation: none; opacity: 1; transform: translate(-50%, -50%); }
}
