:root {
  color-scheme: light;
  --bg: #eef3ee;
  --bg-top: #f9fbf6;
  --surface: #ffffff;
  --surface-soft: #f7f9f5;
  --surface-tint: #eef6f0;
  --ink: #101f17;
  --ink-soft: #26372e;
  --muted: #617069;
  --muted-strong: #4d5d55;
  --line: #d8e0d8;
  --line-strong: #bbc8bf;
  --green: #107a42;
  --green-dark: #102018;
  --green-soft: #e5f5eb;
  --gold: #a26812;
  --gold-soft: #fff4d8;
  --blue: #245aa3;
  --blue-soft: #e8f0fb;
  --red: #b42318;
  --red-soft: #fff0ed;
  --shadow-soft: 0 10px 26px rgba(18, 33, 24, 0.08);
  --shadow-strong: 0 18px 48px rgba(18, 33, 24, 0.16);
  --radius: 8px;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 48%, #e9f0f3 100%);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

button:not(:disabled):hover {
  border-color: #92a299;
  box-shadow: 0 8px 18px rgba(18, 33, 24, 0.08);
}

button:not(:disabled):active {
  transform: translateY(1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(36, 90, 163, 0.24);
  outline-offset: 2px;
}

.app-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 20px 18px 30px;
}

.topbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin: 0 0 14px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0e1d15 0%, #173828 56%, #244c50 100%);
  box-shadow: var(--shadow-strong);
  color: #ffffff;
}

.topbar::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, #26a961 0%, #f0b64b 46%, #4d8fd6 100%);
}

.topbar h1,
.section-header h2 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  max-width: 720px;
  color: #ffffff;
  font-size: 3.15rem;
  font-weight: 900;
  line-height: 0.98;
}

.section-header h2 {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.top-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.save-state {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.87rem;
  font-weight: 800;
  white-space: nowrap;
}

.secondary-button,
.danger-button,
.primary-button {
  min-height: 44px;
  padding: 0 15px;
  font-weight: 900;
}

.primary-button {
  border-color: var(--green);
  background: var(--green);
  color: var(--surface);
  box-shadow: 0 10px 22px rgba(16, 122, 66, 0.2);
}

.primary-button:not(:disabled):hover {
  border-color: #0b6335;
  background: #0b6335;
}

.secondary-button {
  border-color: var(--line);
  background: var(--surface);
}

.danger-button {
  border-color: #efb3ad;
  background: var(--red-soft);
  color: var(--red);
}

.topbar .secondary-button {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.topbar .danger-button {
  border-color: rgba(255, 198, 190, 0.48);
  background: rgba(180, 35, 24, 0.16);
  color: #ffd5cf;
}

main {
  display: grid;
  gap: 16px;
}

.app-view[hidden],
.totals-banner[hidden] {
  display: none;
}

#setupPage.workspace[hidden],
#livePage[hidden] {
  display: none;
}

.view-tabs {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 16px;
  padding: 6px;
  border: 1px solid rgba(188, 201, 192, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(18, 33, 24, 0.08);
  backdrop-filter: blur(12px);
}

.view-tabs button {
  min-height: 50px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 900;
}

.view-tabs button[aria-pressed="true"] {
  background: var(--green-dark);
  color: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.workspace {
  min-width: 0;
}

#setupPage.workspace {
  display: grid;
  gap: 14px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.segmented button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-weight: 900;
}

.segmented button[aria-pressed="true"] {
  background: var(--green-dark);
  color: var(--surface);
}

.setup-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 1.22fr);
  gap: 14px;
  min-width: 0;
  align-items: start;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.player-card,
.field-block,
.message,
.summary-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.player-card {
  display: grid;
  gap: 10px;
  padding: 13px;
}

.player-card.inactive {
  display: none;
}

.player-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 900;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(190px, 0.65fr);
  gap: 10px;
  min-width: 0;
}

.field-block {
  padding: 13px;
}

.field-block.full {
  grid-column: 1 / -1;
}

.setup-actions {
  display: flex;
  justify-content: flex-end;
}

.setup-actions .primary-button {
  min-width: 190px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(18, 33, 24, 0.04);
}

input {
  min-height: 46px;
  padding: 0 11px;
}

select {
  min-height: 46px;
  padding: 0 38px 0 11px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
}

textarea {
  min-height: 118px;
  resize: vertical;
  padding: 10px 11px;
  line-height: 1.45;
}

.field-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 900;
}

.index-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.index-title strong {
  display: block;
  margin-top: 2px;
}

.index-picker {
  display: grid;
  gap: 9px;
}

.index-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.index-label {
  min-height: 42px;
  display: flex;
  align-items: center;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.hole-button-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(38px, 1fr));
  gap: 6px;
}

.hole-button {
  min-height: 42px;
  padding: 0;
  border-color: #c8d3cb;
  background: #fbfcfa;
  font-size: 0.92rem;
  font-weight: 900;
}

.hole-button.selected {
  border-color: var(--green);
  background: var(--green);
  color: var(--surface);
  box-shadow: 0 8px 16px rgba(16, 122, 66, 0.18);
}

.hole-button.claimed:not(.selected) {
  border-color: #b7ccec;
  background: var(--blue-soft);
  color: var(--blue);
}

.empty-note {
  min-height: 46px;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}

.course-pars {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 7px;
}

.course-pars div {
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-soft) 100%);
  font-variant-numeric: tabular-nums;
}

.course-pars span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.course-pars strong {
  color: var(--ink);
  line-height: 1;
}

.live-shell {
  display: grid;
  gap: 12px;
}

.live-topline {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  gap: 12px;
  align-items: center;
  min-height: 128px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #102018 0%, #173b2a 58%, #24515b 100%);
  box-shadow: var(--shadow-strong);
  color: #ffffff;
}

.live-topline h2 {
  margin: 0;
  color: #ffffff;
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 0.96;
  text-align: center;
}

.live-topline .eyebrow {
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.icon-button {
  min-height: 58px;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.icon-button:not(:disabled):hover {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.18);
}

.hole-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.metric:nth-child(3) {
  border-color: #ebd3a3;
  background: linear-gradient(180deg, #fff9ea 0%, #ffffff 100%);
}

.metric span {
  color: var(--muted-strong);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metric strong {
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 900;
}

.metric small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.hole-status {
  min-height: 42px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hole-status .muted {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.score-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.score-card {
  position: relative;
  display: grid;
  gap: 11px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.score-card:nth-child(2) {
  border-top-color: var(--blue);
}

.score-card:nth-child(3) {
  border-top-color: var(--gold);
}

.player-score-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.player-score-head strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-score-head span {
  color: var(--muted-strong);
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.score-control {
  display: grid;
  grid-template-columns: 54px minmax(78px, 1fr) 54px;
  gap: 8px;
}

.score-step {
  min-height: 60px;
  padding: 0;
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 1.75rem;
  font-weight: 900;
}

.score-step:not(:disabled):hover {
  background: #edf4ef;
}

.live-score-input {
  min-height: 60px;
  padding: 0 8px;
  text-align: center;
  font-size: 1.55rem;
  font-weight: 900;
}

.score-facts {
  min-height: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.score-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--surface-tint);
  color: var(--muted-strong);
  font-size: 0.76rem;
  font-weight: 900;
}

.hole-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(48px, 1fr);
  gap: 7px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scroll-snap-type: x proximity;
}

.round-hole-button {
  min-width: 48px;
  min-height: 54px;
  display: grid;
  place-items: center;
  gap: 1px;
  padding: 5px 0;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.9);
  font-weight: 900;
  scroll-snap-align: start;
}

.round-hole-button small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
}

.round-hole-button.current {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: var(--surface);
  box-shadow: 0 8px 18px rgba(16, 32, 24, 0.2);
}

.round-hole-button.current small {
  color: rgba(255, 255, 255, 0.76);
}

.round-hole-button.complete:not(.current) {
  border-color: #b8cdeb;
  background: var(--blue-soft);
}

.round-hole-button.won:not(.current) {
  border-color: #b6d9c4;
  background: var(--green-soft);
}

.round-hole-button.tie:not(.current) {
  border-color: #efd199;
  background: var(--gold-soft);
}

.details-panel {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.details-panel summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.details-panel summary::-webkit-details-marker {
  display: none;
}

.details-panel summary::after {
  content: "+";
  min-width: 24px;
  min-height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-tint);
  color: var(--green);
  font-weight: 900;
}

.details-panel[open] summary::after {
  content: "-";
}

.details-panel > :not(summary) {
  margin: 0 14px 14px;
}

.totals-banner {
  position: sticky;
  top: 72px;
  z-index: 30;
  margin-bottom: 12px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(16, 32, 24, 0.96);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(12px);
}

.banner-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.banner-player,
.banner-carry {
  min-height: 56px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 6px 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.banner-carry {
  border-color: rgba(240, 182, 75, 0.36);
  background: rgba(240, 182, 75, 0.12);
}

.banner-player span,
.banner-carry span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.66rem;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.banner-player strong,
.banner-carry strong {
  color: #ffffff;
  font-size: 1.22rem;
  font-weight: 900;
}

.banner-carry strong {
  color: #ffe2a0;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.data-table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th,
.data-table td {
  padding: 10px 11px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #eef4ec;
  color: #26372e;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.data-table th:last-child,
.data-table td:last-child {
  border-right: 0;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table .sticky-col {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
  font-weight: 900;
}

.data-table th.sticky-col {
  z-index: 3;
  background: #e5efe5;
}

.score-input {
  width: 68px;
  text-align: center;
  font-weight: 800;
}

.number-cell,
.score-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
}

.badge.green {
  background: var(--green-soft);
  color: var(--green);
}

.badge.gold {
  background: var(--gold-soft);
  color: var(--gold);
}

.badge.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.badge.red {
  background: var(--red-soft);
  color: var(--red);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.summary-card {
  padding: 13px;
}

.summary-card h3 {
  margin: 0 0 10px;
  color: var(--muted-strong);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.summary-list {
  display: grid;
  gap: 6px;
}

.summary-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}

.summary-line strong {
  font-size: 1.06rem;
  font-weight: 900;
}

.message {
  padding: 13px 14px;
  margin: 0;
}

.message ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.message.error {
  background: var(--red-soft);
  border-color: #efc3bf;
  color: #7a1c14;
}

.message.warning {
  background: var(--gold-soft);
  border-color: #f2d39a;
  color: #67410a;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 0 8px;
}

.panel-title h3 {
  margin: 0;
  font-size: 1rem;
}

.notes-cell {
  max-width: 340px;
  white-space: normal;
}

@media (max-width: 1080px) {
  .setup-layout {
    grid-template-columns: 1fr;
  }

  .players-grid,
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 12px;
  }

  .topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 17px;
  }

  .topbar h1 {
    font-size: 2.25rem;
  }

  .top-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .save-state {
    grid-column: 1 / -1;
  }

  .topbar .danger-button {
    grid-column: 1 / -1;
  }

  body.live-mode .topbar {
    display: none;
  }

  .view-tabs {
    margin-bottom: 12px;
  }

  .view-tabs button {
    min-height: 48px;
  }

  .section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .players-grid,
  .field-grid,
  .summary-grid,
  .score-stack {
    grid-template-columns: 1fr;
  }

  .segmented {
    width: 100%;
  }

  .index-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .hole-button-grid {
    grid-template-columns: repeat(6, minmax(38px, 1fr));
  }

  .course-pars {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .hole-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-topline {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    min-height: 112px;
    padding: 12px;
  }

  .live-topline h2 {
    font-size: 2.6rem;
  }

  .icon-button {
    min-height: 52px;
  }

  .totals-banner {
    top: 66px;
  }

  .banner-inner {
    gap: 5px;
  }

  .banner-player,
  .banner-carry {
    min-height: 52px;
    padding: 5px;
  }

  .banner-player strong,
  .banner-carry strong {
    font-size: 1.08rem;
  }

  .setup-actions .primary-button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .app-shell {
    padding: 10px 12px 18px;
  }

  .live-topline {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }

  .live-topline h2 {
    font-size: 2.35rem;
  }

  .metric {
    min-height: 78px;
  }

  .score-control {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
  }

  .hole-strip {
    grid-auto-columns: minmax(45px, 1fr);
  }

  .round-hole-button {
    min-width: 45px;
  }
}
