:root {
  color-scheme: dark;
  --felt: #123c2d;
  --felt-deep: #08271d;
  --felt-soft: #1c503d;
  --cream: #f5efd9;
  --muted: #a7baae;
  --line: rgba(245, 239, 217, 0.15);
  --red: #ef6a59;
  --red-dark: #d84e42;
  --gold: #e8bd67;
  --ink: #092218;
  --shadow: 0 18px 55px rgba(2, 16, 11, 0.28);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--felt-deep); }

body {
  min-height: 100%;
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(circle at 50% -15%, rgba(72, 139, 105, 0.42), transparent 42%),
    linear-gradient(165deg, var(--felt) 0%, var(--felt-deep) 100%);
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

button, input { font: inherit; }
button { color: inherit; }

.felt-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.17;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

.app-shell {
  position: relative;
  width: min(100%, 760px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
}

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  margin-bottom: clamp(28px, 6svh, 64px);
}

.brand, .icon-button, .text-button, .add-button, .undo-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.brand { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0; text-align: center; }
.brand-mark {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  color: var(--cream);
  background: transparent;
}
.brand-mark img { width: 72px; height: 72px; object-fit: contain; filter: invert(92%) sepia(15%) saturate(485%) hue-rotate(352deg) brightness(109%) contrast(92%); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 21px; font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.topbar-actions { position: absolute; top: 0; right: 0; display: flex; align-items: center; gap: 10px; }
.icon-button { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.icon-button svg { width: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.text-button { padding: 10px 2px 10px 12px; color: var(--muted); font-size: 14px; }

.setup-view { animation: view-in .45s cubic-bezier(.2,.8,.2,1) both; }
.setup-copy { width: 100%; max-width: none; }
.eyebrow { margin: 0 0 10px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; font-weight: 900; letter-spacing: -.065em; }
.setup-copy h1 { font-size: clamp(48px, 12vw, 82px); line-height: .95; }

.name-form {
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 10px;
  margin-top: 34px;
  margin-bottom: 30px;
}
.name-form input {
  min-width: 0;
  height: 82px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  outline: none;
  color: var(--ink);
  background: #cfe5d3;
  font-size: 17px;
  transition: border-color .2s, background .2s, transform .2s;
}
.name-form input::placeholder { color: #476b59; }
.name-form input:focus { background: #e1f1df; box-shadow: 0 0 0 3px rgba(232, 189, 103, .4); }
.add-button {
  display: grid;
  width: 86px;
  height: 82px;
  place-items: center;
  border-radius: 16px;
  color: var(--ink);
  background: var(--cream);
  box-shadow: var(--shadow);
}
.add-button svg, .primary-button svg { width: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }

.section-label { display: flex; justify-content: space-between; margin-bottom: 12px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.remembered { margin-bottom: 30px; }
.name-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.name-chip-wrap { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 999px; background: rgba(7, 35, 25, .28); }
.name-chip {
  border: 0;
  padding: 10px 8px 10px 14px;
  color: var(--cream);
  background: transparent;
  cursor: pointer;
}
.name-chip::before { content: "+"; margin-right: 7px; color: var(--gold); }
.forget-name { display: grid; width: 36px; height: 38px; place-items: center; border: 0; color: var(--muted); background: transparent; font-size: 20px; cursor: pointer; }
.forget-name:active { color: var(--red); }
.lineup-wrap { min-height: 126px; }
.setup-players { display: grid; gap: 1px; margin: 0; padding: 0; overflow: hidden; border-block: 1px solid var(--line); list-style: none; }
.setup-player { display: flex; align-items: center; min-height: 54px; border-bottom: 1px solid var(--line); animation: row-in .28s ease both; }
.setup-player:last-child { border-bottom: 0; }
.player-number { width: 34px; color: var(--gold); font-weight: 900; }
.setup-player strong { flex: 1; font-size: 17px; }
.remove-player { display: grid; width: 42px; height: 42px; place-items: center; border: 0; color: var(--muted); background: transparent; cursor: pointer; }
.remove-player svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.empty-lineup { margin: 24px 0; color: #789384; text-align: center; }

.primary-button, .secondary-button, .danger-button {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 16px;
  font-weight: 800;
  cursor: pointer;
}
.primary-button { width: 100%; margin-top: 28px; color: var(--ink); background: var(--cream); box-shadow: var(--shadow); }
.setup-view > .primary-button { min-height: 88px; border-radius: 22px; font-size: 44px; line-height: 1; letter-spacing: -.055em; }
.setup-view > .primary-button svg { width: 30px; }
.primary-button:disabled { opacity: .35; box-shadow: none; cursor: not-allowed; }
.secondary-button { color: var(--cream); background: transparent; border: 1px solid var(--line); }
.danger-button { color: #fff; background: var(--red-dark); }

.game-view { animation: view-in .45s cubic-bezier(.2,.8,.2,1) both; }
.turn-stage { text-align: center; }
.turn-meta { display: flex; min-height: 25px; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.turn-meta > span + span::before { content: "•"; margin-right: 12px; color: var(--gold); }
.offline-badge { color: var(--gold); }
.next-label { margin: clamp(26px, 5svh, 46px) 0 5px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.turn-stage h1 { max-width: 100%; overflow: hidden; font-size: clamp(62px, 18vw, 116px); line-height: .95; text-overflow: ellipsis; white-space: nowrap; }
.current-status { display: flex; min-height: 34px; align-items: center; justify-content: center; gap: 9px; margin-top: 14px; color: var(--muted); font-size: 15px; }
.life-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: inset 0 -2px 0 rgba(70, 0, 0, .18); }
.life-dot.lost { border: 1px solid #5f7d6c; background: transparent; box-shadow: none; opacity: .55; }
.doggy-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--gold); font-weight: 800; }
.doggy-badge::before { content: "●"; display: grid; width: 19px; height: 19px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 8px; }

.shot-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: clamp(32px, 6svh, 55px); }
.shot-button {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 20px;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.shot-button:active { transform: scale(.97); filter: brightness(.92); }
.miss-button { color: #fff; background: var(--red-dark); }
.score-button { color: var(--ink); background: var(--cream); }
.shot-icon { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid currentColor; border-radius: 50%; }
.shot-icon svg { width: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.shot-button span:last-child { text-align: left; }
.shot-button strong, .shot-button small { display: block; }
.shot-button strong { font-size: 16px; }
.shot-button small { margin-top: 2px; opacity: .68; font-size: 11px; }
.undo-button { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px; color: var(--muted); font-size: 13px; }
.undo-button:disabled { opacity: .28; }
.undo-button svg { width: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.scoreboard { margin-top: clamp(30px, 7svh, 68px); }
.player-board { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.player-row { display: grid; grid-template-columns: 36px 1fr auto; min-height: 62px; align-items: center; border-bottom: 1px solid var(--line); color: var(--muted); transition: opacity .25s, transform .25s, color .25s; }
.player-row.current { color: var(--cream); }
.player-row.out { opacity: .38; }
.turn-arrow { color: var(--gold); font-size: 18px; opacity: 0; transform: translateX(-8px); transition: .25s; }
.player-row.current .turn-arrow { opacity: 1; transform: translateX(0); }
.player-info { min-width: 0; text-align: left; }
.player-info strong { display: block; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.player-info small { color: #789384; font-size: 11px; }
.row-lives { display: flex; align-items: center; gap: 6px; }
.row-lives .life-dot { width: 10px; height: 10px; }
.out-label { color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.winner-view { padding-top: clamp(30px, 8svh, 90px); text-align: center; animation: winner-in .7s cubic-bezier(.16,1,.3,1) both; }
.winner-view .eyebrow { margin-bottom: 14px; font-size: clamp(15px, 3.4vw, 20px); font-weight: 900; letter-spacing: -.025em; }
.winner-view h1 { font-size: clamp(54px, 15vw, 100px); line-height: .95; }
.trophy { width: min(45vw, 220px); margin: 24px auto 10px; color: var(--gold); animation: trophy-in .8s .15s cubic-bezier(.16,1,.3,1) both; }
.trophy svg { width: 100%; fill: rgba(232, 189, 103, .12); stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 4; }
.winner-view .primary-button, .winner-view .secondary-button { max-width: 360px; margin-inline: auto; }
.winner-view .primary-button { min-height: 72px; border-radius: 20px; font-size: clamp(22px, 5.5vw, 30px); }
.winner-new-game {
  display: inline-flex;
  min-width: 154px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 0 18px;
  border: 0;
  border-radius: 15px;
  color: var(--red-dark);
  background: var(--cream);
  box-shadow: 0 10px 28px rgba(2, 16, 11, .3);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.winner-new-game svg { width: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; }
.winner-new-game:active { transform: scale(.97); filter: brightness(.94); }
.winner-view .secondary-button { width: 100%; margin-top: 10px; }
.winner-burst { position: absolute; inset: 105px 10% auto; height: 220px; pointer-events: none; }
.winner-burst span { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: sparkle 1.5s ease-in-out infinite; }
.winner-burst span:nth-child(1) { left: 12%; top: 50%; }
.winner-burst span:nth-child(2) { right: 14%; top: 22%; animation-delay: .35s; }
.winner-burst span:nth-child(3) { right: 28%; bottom: 8%; animation-delay: .72s; }

.confirm-dialog { width: min(calc(100% - 32px), 420px); padding: 0; border: 1px solid rgba(245,239,217,.16); border-radius: 24px; color: var(--cream); background: #123629; box-shadow: 0 30px 100px rgba(0,0,0,.55); }
.confirm-dialog::backdrop { background: rgba(3, 16, 11, .72); backdrop-filter: blur(5px); }
.confirm-dialog form { padding: 28px; text-align: center; }
.dialog-icon { display: grid; width: 54px; height: 54px; margin: 0 auto 18px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font-size: 25px; }
.confirm-dialog h2 { margin: 0; font-size: 30px; font-weight: 900; letter-spacing: -.04em; }
.confirm-dialog p { margin: 10px 0 24px; color: var(--muted); }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dialog-actions button { padding: 0 14px; }
.toast { position: fixed; z-index: 10; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); max-width: calc(100% - 40px); padding: 11px 16px; border-radius: 999px; color: var(--ink); background: var(--cream); font-size: 13px; font-weight: 700; opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: .28s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.turn-pop { animation: turn-pop .38s cubic-bezier(.2,.9,.3,1); }
.life-flash { animation: life-flash .42s ease; }

@keyframes view-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes row-in { from { opacity: 0; transform: translateX(-10px); } }
@keyframes turn-pop { 0% { opacity: .25; transform: translateY(10px) scale(.96); } 100% { opacity: 1; transform: none; } }
@keyframes life-flash { 35% { color: #fff; text-shadow: 0 0 35px rgba(239,106,89,.9); transform: scale(1.025); } }
@keyframes winner-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes trophy-in { from { opacity: 0; transform: scale(.72) rotate(-6deg); } }
@keyframes sparkle { 50% { transform: scale(2.2); opacity: .35; } }

@media (min-width: 680px) {
  .app-shell { padding-inline: 34px; }
  .shot-button { min-height: 92px; }
}

@media (max-width: 380px) {
  .app-shell { padding-inline: 14px; }
  .shot-actions { gap: 8px; }
  .shot-button { gap: 8px; }
  .shot-icon { width: 29px; height: 29px; }
  .setup-view > .primary-button { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Scoreboard setup screen */
.topbar {
  min-height: 124px;
  margin: calc(-1 * max(18px, env(safe-area-inset-top))) -20px 0;
  padding: max(18px, env(safe-area-inset-top)) 18px 14px;
  border-bottom: 4px solid rgba(245, 239, 217, .72);
  background: linear-gradient(180deg, rgba(33, 91, 67, .5), rgba(11, 52, 38, .18));
}

.brand {
  display: grid;
  grid-template-columns: clamp(54px, 15vw, 76px) minmax(0, auto) clamp(54px, 15vw, 76px);
  align-items: center;
  gap: clamp(12px, 4vw, 26px);
  width: min(100%, 520px);
}

.brand-skull {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  background: rgba(32, 101, 73, .22);
}

.brand-skull img,
.input-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(92%) sepia(15%) saturate(485%) hue-rotate(352deg) brightness(109%) contrast(92%);
}

.brand-copy { min-width: 0; text-align: center; }
.brand strong { font-size: clamp(36px, 9.6vw, 58px); font-weight: 950; line-height: .85; letter-spacing: -.055em; text-transform: uppercase; }
.brand small { margin-top: 10px; color: #ffd64f; font-size: clamp(13px, 3.4vw, 20px); font-weight: 900; line-height: 1; letter-spacing: -.025em; white-space: nowrap; }

.view-setup .setup-view {
  display: flex;
  min-height: calc(100svh - 124px - max(28px, env(safe-area-inset-bottom)));
  flex-direction: column;
  padding-top: clamp(42px, 7svh, 78px);
}

.setup-copy { text-align: center; }
.setup-copy h1 { font-size: clamp(48px, 11vw, 72px); line-height: .95; letter-spacing: .01em; text-transform: uppercase; }

.name-form {
  grid-template-columns: minmax(0, 1fr) 74px 74px;
  gap: 10px;
  margin-top: clamp(30px, 5svh, 54px);
  margin-bottom: 18px;
}

.name-form input,
.input-emblem,
.add-button {
  height: 82px;
  border-radius: 16px;
}

.name-form input { padding-inline: 24px; font-size: clamp(18px, 4.4vw, 26px); font-weight: 800; }
.input-emblem { display: grid; width: 74px; padding: 16px; place-items: center; background: var(--cream); }
.input-emblem img { filter: none; }
.add-button { width: 74px; }
.add-button svg { width: 32px; }

.remembered { margin-bottom: 34px; }
.name-chips { gap: 10px 14px; }
.name-chip-wrap { border-color: rgba(245, 239, 217, .22); }
.name-chip { padding-block: 8px; font-size: clamp(16px, 4vw, 22px); font-weight: 800; }
.forget-name { width: 32px; font-size: 18px; }

.lineup-wrap {
  min-height: 180px;
  margin: 4px -20px 0;
  padding: 16px 20px 0;
  border-top: 5px solid rgba(245, 239, 217, .72);
}

.lineup-wrap .section-label { margin-bottom: 14px; color: var(--cream); font-size: clamp(18px, 4.5vw, 25px); letter-spacing: .08em; }
.setup-players { border-top-color: rgba(245, 239, 217, .2); }
.setup-player { min-height: 56px; }
.player-number { display: none; }
.setup-player strong { font-size: clamp(20px, 5vw, 28px); text-transform: uppercase; }
.remove-player { font-size: 25px; }
.remove-player span { line-height: 1; }
.empty-lineup { margin: 26px 0; }

.view-setup .primary-button {
  min-height: 88px;
  margin-top: auto;
  padding-inline: 18px;
  font-size: clamp(34px, 9vw, 48px);
}

.view-game .topbar,
.view-winner .topbar {
  min-height: 76px;
  margin-bottom: 34px;
  padding-bottom: 10px;
}
.view-game .brand,
.view-winner .brand { grid-template-columns: 42px auto; width: auto; gap: 10px; }
.view-game .brand-skull,
.view-winner .brand-skull { width: 42px; }
.view-game .brand-skull:last-child,
.view-winner .brand-skull:last-child { display: none; }
.view-game .brand strong,
.view-winner .brand strong { font-size: 23px; }
.view-game .brand small,
.view-winner .brand small { margin-top: 3px; font-size: 9px; }

@media (min-width: 680px) {
  .topbar { margin-inline: -34px; }
  .lineup-wrap { margin-inline: -34px; padding-inline: 34px; }
}

@media (max-width: 430px) {
  .brand { gap: 8px; }
  .brand strong { font-size: 34px; }
  .brand small { font-size: 12px; }
  .name-form { grid-template-columns: minmax(0, 1fr) 66px 66px; gap: 8px; }
  .name-form input, .input-emblem, .add-button { height: 74px; }
  .input-emblem, .add-button { width: 66px; }
}

/* Player creator refinements */
.brand { grid-template-columns: clamp(62px, 17.25vw, 87px) minmax(0, auto) clamp(62px, 17.25vw, 87px); }
.brand-skull { background: transparent; }
.brand strong { font-size: clamp(42px, 11vw, 66px); letter-spacing: normal; }
.setup-copy h1 { font-size: clamp(56px, 12.5vw, 82px); letter-spacing: normal; }
.view-setup .primary-button { letter-spacing: normal; }

.name-form { grid-template-columns: minmax(0, 1fr) 82px 128px; }
.emoji-select {
  width: 82px;
  height: 82px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  outline: none;
  color: var(--ink);
  background: var(--cream);
  font-size: 34px;
  text-align: center;
  text-align-last: center;
  appearance: none;
  cursor: pointer;
}
.emoji-select:focus { box-shadow: 0 0 0 3px rgba(232, 189, 103, .48); }
.add-button { width: 128px; padding: 0 12px; font-size: 16px; font-weight: 900; line-height: 1.05; text-transform: uppercase; }

.lineup-wrap .section-label {
  margin: -16px -20px 14px;
  padding: 14px 20px;
  color: var(--ink);
  background: #cfe5d3;
  letter-spacing: normal;
}

.view-game .brand,
.view-winner .brand { grid-template-columns: 48px auto; }
.view-game .brand-skull,
.view-winner .brand-skull { width: 48px; }

@media (max-width: 430px) {
  .brand { grid-template-columns: 60px minmax(0, auto) 60px; }
  .brand strong { font-size: 38px; }
  .brand small { font-size: 11px; }
  .name-form { grid-template-columns: minmax(0, 1fr) 68px 108px; gap: 8px; }
  .name-form input, .emoji-select, .add-button { height: 74px; }
  .emoji-select { width: 68px; font-size: 30px; }
  .add-button { width: 108px; font-size: 14px; }
}

/* Full-name player entry */
.name-form { grid-template-columns: minmax(0, 1fr) 112px; }
.add-button { width: 112px; font-size: 18px; }

@media (max-width: 430px) {
  .name-form { grid-template-columns: minmax(0, 1fr) 92px; }
  .add-button { width: 92px; font-size: 17px; }
}

/* Match the play screen to the setup scoreboard */
.view-game .topbar,
.view-winner .topbar {
  min-height: 124px;
  margin-bottom: 58px;
  padding-bottom: 14px;
}

.view-game .brand,
.view-winner .brand {
  grid-template-columns: clamp(62px, 17.25vw, 87px) minmax(0, auto) clamp(62px, 17.25vw, 87px);
  gap: clamp(12px, 4vw, 26px);
  width: min(100%, 520px);
}

.view-game .brand-skull,
.view-winner .brand-skull { display: grid; width: auto; }
.view-game .brand-skull:last-child,
.view-winner .brand-skull:last-child { display: grid; }
.view-game .brand strong,
.view-winner .brand strong { font-size: clamp(42px, 11vw, 66px); }
.view-game .brand small,
.view-winner .brand small { margin-top: 10px; font-size: clamp(13px, 3.4vw, 20px); }

.view-game .topbar-actions,
.view-winner .topbar-actions { top: auto; right: 20px; bottom: -58px; }
.view-game .text-button,
.view-winner .text-button { color: var(--cream); font-size: 15px; }

.scoreboard { margin-inline: -20px; }
.scoreboard .section-label {
  margin: 0;
  padding: 14px 20px;
  color: var(--ink);
  background: #cfe5d3;
  font-size: clamp(18px, 4.5vw, 25px);
  letter-spacing: normal;
}
.scoreboard .player-board { margin-inline: 20px; }
.scoreboard .player-row { min-height: 72px; }
.scoreboard .player-info strong { font-size: clamp(18px, 4.5vw, 24px); text-transform: uppercase; }
.scoreboard .player-info small { font-size: 13px; }

@media (min-width: 680px) {
  .scoreboard { margin-inline: -34px; }
  .scoreboard .section-label { padding-inline: 34px; }
  .scoreboard .player-board { margin-inline: 34px; }
}

@media (max-width: 430px) {
  .view-game .brand,
  .view-winner .brand { grid-template-columns: 60px minmax(0, auto) 60px; gap: 8px; }
  .view-game .brand strong,
  .view-winner .brand strong { font-size: 38px; }
  .view-game .brand small,
  .view-winner .brand small { font-size: 11px; }
}

/* Simplified tally-led play screen */
.view-game .round-label,
.view-game #roundLabel,
.view-game .next-label { display: none; }

.view-game .turn-stage h1 { margin-top: 0; }
.view-game .current-status { margin-top: 20px; }

.life-dot {
  width: 5px;
  height: 25px;
  border-radius: 1px;
  background: var(--red);
  box-shadow: none;
  transform: skew(-8deg);
}
.life-dot.lost {
  border: 0;
  background: rgba(167, 186, 174, .22);
  opacity: 1;
}
.row-lives { gap: 8px; }
.row-lives .life-dot { width: 4px; height: 20px; }

.shot-actions { gap: 14px; margin-top: clamp(34px, 6svh, 58px); }
.shot-button { min-height: 118px; border-radius: 22px; }
.miss-button { color: #fff; background: var(--red-dark); }
.score-button { color: #062b1d; background: #67d392; }
.shot-icon { width: 72px; height: 72px; border: 0; }
.shot-icon svg { width: 58px; stroke-width: 2.4; }

.view-game .text-button,
.view-winner .text-button {
  display: inline-flex;
  min-width: 116px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid rgba(9, 34, 24, .1);
  border-radius: 16px;
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(2, 16, 11, .3);
  transition: transform .12s ease, filter .12s ease;
}
.view-game .text-button svg,
.view-winner .text-button svg { width: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.view-game .text-button:active,
.view-winner .text-button:active { transform: scale(.97); filter: brightness(.94); }

.scoreboard .player-info small { display: none; }
.scoreboard .player-row { min-height: 66px; }

@media (max-width: 430px) {
  .shot-button { min-height: 104px; }
  .shot-icon { width: 64px; height: 64px; }
  .shot-icon svg { width: 52px; }
}

@media (min-width: 680px) {
  .view-game .topbar-actions,
  .view-winner .topbar-actions { right: 34px; }
}
