:root {
  --bg: #f7f6f2;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --ink: #0b1f3a;
  --muted: #64748b;
  --line: rgba(11, 31, 58, 0.1);
  /* Team colors: Geboren Groningers speelt in blauw, De rest van de wereld in rood. */
  --left: #1d5bd9;
  --left-deep: #133a94;
  --right: #c53030;
  --right-deep: #821e1e;
  --gold: #d7a620;
  --green: #2f8f57;
  --shadow: 0 18px 50px rgba(20, 49, 95, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --dashboard-row-height: 36px;
  --dashboard-rows-visible: 6;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: #e9eee9;
}

body::after {
  content: "";
  position: fixed;
  inset: -12px;
  z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(233, 238, 233, 0.9)),
    url("./foto42.jpg");
  background-position: center;
  background-size: cover;
  filter: blur(11px) saturate(0.6);
  opacity: 0.85;
  transform: scale(1.04);
}

body[data-page="score-invoer"] {
  min-height: 100dvh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.12;
}

.portal-overlay[hidden] {
  display: none;
}

.portal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(235, 241, 240, 0.7);
  backdrop-filter: blur(9px);
}

.portal-overlay-card {
  width: min(820px, 100%);
  padding: 28px 36px 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  color: #fff;
  text-align: center;
  background: linear-gradient(180deg, rgba(5, 24, 47, 0.58), rgba(4, 24, 47, 0.94)), url("./foto42.jpg") center / cover;
  box-shadow: 0 26px 70px rgba(4, 23, 43, 0.35);
}

.portal-overlay-card header,
.portal-overlay-brand,
.portal-overlay-facts span {
  display: flex;
  align-items: center;
}

.portal-overlay-card header { justify-content: space-between; }
.portal-overlay-brand { gap: 9px; text-align: left; }
.portal-overlay-brand img { width: 36px; height: 36px; object-fit: contain; }
.portal-overlay-brand span { font-size: 0.58rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.portal-overlay-brand strong { font-family: "Barlow Condensed", sans-serif; font-size: 1.85rem; letter-spacing: 0; line-height: 0.8; }
.portal-overlay-card time { padding: 8px 11px; border: 1px solid rgba(255,255,255,0.38); border-radius: 999px; font-size: 0.65rem; font-weight: 800; }
.portal-overlay-hero { margin: 18px 0; }
.portal-overlay-hero img { width: 142px; height: 142px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0,0,0,0.25)); }
.portal-overlay-hero p { margin: 4px 0 8px; color: rgba(255,255,255,0.75); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.portal-overlay-hero h2 { margin: 0; font-family: "Barlow Condensed", sans-serif; font-size: clamp(2.7rem, 6vw, 4.3rem); line-height: 0.9; text-transform: uppercase; }
.portal-overlay-hero > span { display: block; margin-top: 10px; color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.portal-overlay-countdown { width: min(570px, 100%); margin: 18px auto; padding: 16px 20px; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; background: rgba(5, 24, 47, 0.72); }
.portal-overlay-countdown p { margin: 0 0 8px; font-size: 0.63rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.portal-overlay-countdown div, .portal-overlay-countdown > span { display: grid; grid-template-columns: repeat(4, 1fr); }
.portal-overlay-countdown div strong + strong { border-left: 1px solid rgba(255,255,255,0.15); }
.portal-overlay-countdown strong { font-family: "Barlow Condensed", sans-serif; font-size: clamp(2.7rem, 6vw, 4.1rem); line-height: 0.82; }
.portal-overlay-countdown i { margin-top: 8px; color: rgba(255,255,255,0.7); font-size: 0.55rem; font-style: normal; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.portal-overlay-facts { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid rgba(255,255,255,0.14); border-radius: 8px; }
.portal-overlay-facts span { gap: 8px; min-height: 72px; padding: 12px; border-right: 1px solid rgba(255,255,255,0.14); font-size: 0.64rem; font-weight: 700; text-align: left; text-transform: uppercase; }
.portal-overlay-facts span:last-child { border-right: 0; }
.portal-overlay-facts b { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255,255,255,0.3); border-radius: 50%; font-size: 0.56rem; }
.portal-overlay-card > footer { margin-top: 22px; color: rgba(255,255,255,0.68); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

@media (max-width: 640px) {
  .portal-overlay { padding: 10px; }
  .portal-overlay-card { padding: 20px 14px; }
  .portal-overlay-facts { grid-template-columns: 1fr; }
  .portal-overlay-facts span { min-height: 54px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
  .portal-overlay-facts span:last-child { border-bottom: 0; }
}

.page-shell {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

body[data-page="score-invoer"] .page-shell {
  min-height: 100dvh;
  height: auto;
  padding-bottom: 20px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
}

.site-header,
.section-heading,
.score-meta,
.detail-summary,
.match-card,
.match-selector-item,
.hole-card,
.editor-summary,
.total-score-form,
.editor-actions {
  position: relative;
  z-index: 1;
}

.site-header,
.section-heading,
.score-meta,
.match-card-header,
.match-card-footer,
.match-selector-item,
.hole-meta,
.editor-summary,
.editor-actions,
.site-nav,
.total-score-form {
  display: flex;
  align-items: center;
}

.site-header,
.section-heading,
.match-card-header,
.match-card-footer,
.editor-actions,
.site-nav,
.score-meta {
  justify-content: space-between;
}

.site-header {
  margin-bottom: 28px;
  gap: 18px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  display: block;
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(11, 31, 58, 0.12));
}

.brand-kicker {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-header h1,
.section-heading h2,
.hero-copy h2 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-header h1 {
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  gap: 12px;
  flex-wrap: wrap;
}

.nav-link,
.button {
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav-link {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(20, 49, 95, 0.08);
}

.nav-link.is-active,
.nav-link:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(20, 49, 95, 0.08);
}

.nav-link.is-active {
  background: var(--ink);
  color: #fff;
}

.button {
  border: none;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--ink), var(--right));
}

.button.ghost {
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  border: 1px solid var(--line);
}

.dashboard-layout,
.beheer-layout,
.invoer-layout {
  display: grid;
  gap: 24px;
}

.dashboard-layout {
  grid-template-columns: 1fr;
  gap: 16px;
}

body[data-page="dashboard"] {
  min-height: 100vh;
  overflow-x: hidden;
}

body[data-page="dashboard"] .page-shell {
  min-height: 100vh;
  padding: 14px 28px 18px;
}

body[data-page="dashboard"] .dashboard-layout {
  grid-template-rows: auto auto auto;
  gap: 10px;
  min-height: 0;
}

.signage-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-height: 0;
}

.signage-bottom-grid > .signage-panel {
  min-width: 0;
}

.legacy-featured-panel {
  display: none;
}

.beheer-layout {
  grid-template-columns: 1fr;
  align-items: start;
}

.invoer-layout {
  grid-template-columns: 1fr;
  height: 100%;
  overflow: hidden;
  position: relative;
  min-height: 0;
}

.score-screen {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(24px) scale(0.99);
  transition:
    opacity 220ms ease,
    transform 260ms ease,
    visibility 0s linear 260ms;
}

.score-screen[data-role="setup-screen"] {
  overflow-y: auto;
  padding-right: 2px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}

.score-screen[data-role="play-screen"] {
  overflow-y: auto;
  padding-right: 2px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}

body[data-step="play"] [data-role="setup-screen"] {
  transform: translateX(-24px) scale(0.99);
}

.score-screen.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  transition-delay: 0s;
}

.start-match-button {
  width: 100%;
  min-height: 56px;
}

.pin-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
}

.pin-modal[hidden] {
  display: none;
}

.pin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
}

.pin-modal-card {
  position: relative;
  width: min(420px, 100%);
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(20, 49, 95, 0.12);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  display: grid;
  gap: 14px;
}

.pin-modal-card h2 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.pin-modal-copy {
  margin: 0;
  color: var(--muted);
}

.pin-modal-input {
  width: 100%;
  min-height: 64px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(20, 49, 95, 0.16);
  background: #fff;
  color: var(--ink);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-align: center;
}

.pin-modal-input:focus {
  outline: none;
  border-color: rgba(20, 49, 95, 0.4);
  box-shadow: 0 0 0 4px rgba(20, 49, 95, 0.08);
}

.pin-modal-error {
  margin: 0;
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 700;
}

.pin-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hero-card,
.matches-panel,
.control-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card {
  padding: 22px 28px 20px;
}

.matches-panel {
  padding: 20px 24px 22px;
}

.control-card {
  padding: 24px;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 10px;
}

.hero-copy h2 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  margin-bottom: 10px;
}

.hero-copy p:last-child,
.detail-summary,
.editor-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.scoreboard {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin: 6px auto 0;
  width: min(1120px, 100%);
}

.score-side-watermark {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-position: center;
  opacity: 0.32;
  pointer-events: none;
}

.score-side-right .score-side-watermark {
  right: 0;
  left: auto;
}

.score-side {
  position: relative;
  z-index: 1;
  min-height: 148px;
  padding: 22px 30px;
  border-radius: 22px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.score-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 22px 100%;
  opacity: 0.35;
}

.score-side-left {
  background: #0d58d7;
  text-align: right;
}

.score-side-left::before {
  opacity: 0.35;
}

.score-side-right {
  background: #cf252b;
}

.team-label {
  position: relative;
  z-index: 3;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

.score-number {
  position: relative;
  z-index: 3;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(4.6rem, 7vw, 7rem);
  line-height: 0.9;
}

.center-badge {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
}

.center-logo {
  display: block;
  width: min(210px, 18vw);
  min-width: 130px;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(20, 49, 95, 0.18));
}

.score-meta {
  margin-top: 10px;
  justify-content: center;
  gap: 6px;
}

.score-meta > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.meta-label {
  display: inline;
  margin-bottom: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-heading {
  gap: 16px;
  margin-bottom: 20px;
}

.section-heading-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.section-heading.compact {
  margin-bottom: 16px;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.match-list,
.match-selector,
.hole-editor,
.hole-timeline {
  display: grid;
  gap: 14px;
}

.match-card,
.match-selector-item,
.hole-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.match-card {
  padding: 16px 18px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.match-card:hover,
.match-card.is-selected,
.match-selector-item.is-selected,
.hole-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(20, 49, 95, 0.1);
  border-color: rgba(20, 49, 95, 0.22);
}

.match-card-header,
.match-card-footer,
.match-teams,
.timeline-score {
  gap: 8px;
}

.match-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.match-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.match-status-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.match-teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.team-row {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.team-row strong {
  font-size: 0.95rem;
}

.team-row span,
.match-subline,
.hole-meta,
.form-note {
  color: var(--muted);
}

.match-chip,
.detail-status,
.hole-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-chip,
.detail-status {
  background: rgba(20, 49, 95, 0.08);
}

.match-chip.left,
.hole-state.left {
  background: rgba(29, 91, 217, 0.14);
  color: var(--left-deep);
}

.match-chip.right,
.hole-state.right {
  background: rgba(197, 48, 48, 0.12);
  color: var(--right-deep);
}

.match-chip.square,
.hole-state.square {
  background: rgba(100, 116, 139, 0.18);
  color: #475569;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.12);
  color: #b42318;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #dc2626;
  box-shadow: 0 0 0 rgba(220, 38, 38, 0.5);
  animation: live-pulse 1.6s infinite;
}

@keyframes live-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.45);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

.timeline-score {
  display: grid;
  grid-template-columns: repeat(var(--hole-count, 9), minmax(0, 1fr));
  gap: 5px;
  padding: 6px 8px;
  border: 1px solid rgba(20, 49, 95, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
}

.timeline-hole {
  width: 18px;
  height: 18px;
  min-height: 18px;
  border-radius: 999px;
  background: #edf2f7;
  border: 1px dashed rgba(100, 116, 139, 0.45);
  position: relative;
  justify-self: center;
}

.timeline-hole::after {
  content: attr(data-hole);
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  font-size: 0.55rem;
  font-weight: 800;
  color: #000000;
}

.timeline-hole.left {
  background: var(--left);
}

.timeline-hole.right {
  background: var(--right);
}

.timeline-hole.square {
  background: #64748b;
  border: 1px solid #475569;
}

.match-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.match-carousel-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.match-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.match-carousel-track {
  display: flex;
  gap: 14px;
}

.carousel-card {
  flex: 0 0 calc((100% - 28px) / 3);
  scroll-snap-align: start;
  min-width: 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  display: grid;
  gap: 8px;
}

.carousel-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.carousel-card-head .eyebrow {
  margin: 0;
}

.carousel-card-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.carousel-team {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.carousel-team strong {
  font-size: 0.86rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.carousel-team span {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.carousel-team-a {
  text-align: left;
}

.carousel-team-a span {
  color: var(--left-deep);
}

.carousel-team-b {
  text-align: right;
}

.carousel-team-b span {
  color: var(--right-deep);
}

.carousel-card .match-chip {
  padding: 6px 10px;
  font-size: 0.72rem;
  white-space: nowrap;
}

.carousel-card-detail {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.carousel-card .timeline-score {
  padding: 5px 6px;
}

.carousel-card .timeline-hole {
  width: 16px;
  height: 16px;
  min-height: 16px;
  font-size: 0;
}

.carousel-card-footer {
  display: flex;
  justify-content: flex-end;
}

.carousel-nav {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.carousel-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(20, 49, 95, 0.1);
}

.carousel-nav[hidden],
.carousel-dots[hidden] {
  display: none;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(20, 49, 95, 0.2);
  cursor: pointer;
}

.carousel-dot.is-active {
  background: var(--ink);
  width: 20px;
  border-radius: 999px;
}

.match-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
}

.legend-dot-a {
  background: var(--left);
}

.legend-dot-b {
  background: var(--right);
}

.legend-dot-square {
  background: #64748b;
  border: 1px solid #475569;
}

.legend-dot-empty {
  background: #edf2f7;
  border: 1px dashed rgba(100, 116, 139, 0.45);
}

.live-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.live-overview-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
}

.live-pulse-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #dc2626;
  box-shadow: 0 0 0 rgba(220, 38, 38, 0.5);
  animation: live-pulse 1.6s infinite;
}

.live-overview-link {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.live-overview-link:hover {
  text-decoration: underline;
}

.live-table-head {
  display: grid;
  grid-template-columns: 58px 78px minmax(0, 1fr) 22px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
  padding: 0 4px 5px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-table-head span:nth-child(3) {
  text-align: right;
}

.live-table-head span:nth-child(4) {
  text-align: center;
}

.live-overview-empty {
  margin: 0;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.live-overview-empty[hidden],
.live-columns[hidden] {
  display: none;
}

.live-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}

.live-columns[data-role="live-columns"] {
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  min-height: calc(var(--dashboard-row-height) * var(--dashboard-rows-visible));
}

.signage-table {
  min-height: 0;
  overflow: visible;
}

.signage-table[data-role="results-table"],
.signage-table[data-role="upcoming-table"] {
  min-height: calc(var(--dashboard-row-height) * 5);
}

.signage-table[data-role="results-table"] {
  display: block;
}

.site-footer {
  margin-top: 8px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
}

.site-footer a {
  color: var(--ink);
  font-weight: 800;
}

.signage-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.signage-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.signage-panel-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.signage-panel-heading > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.signage-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 0.8rem;
}

.signage-icon-results { background: var(--green); }
.signage-icon-upcoming { background: var(--ink); }

.signage-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-height: 10px;
  margin-top: auto;
  padding-top: 6px;
}

.signage-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
}

.signage-dot.is-active { background: var(--ink); }
.signage-empty { margin: 16px 0; color: var(--muted); text-align: center; }

.score-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.score-stats span { display: inline-flex; align-items: center; gap: 6px; }
.score-stats strong { color: var(--ink); font-size: 1rem; }
.score-stat-dot { width: 8px; height: 8px; border-radius: 50%; }
.score-stat-live { background: #dc2626; }
.score-stat-played { background: var(--green); }
.score-stat-upcoming { background: #64748b; }

.live-column {
  max-height: calc(var(--dashboard-row-height) * var(--dashboard-rows-visible));
  overflow-y: auto;
  border-top: 1px solid var(--line);
}

.live-column:empty {
  display: none;
}

.signage-column {
  min-width: 0;
}

.live-row {
  display: grid;
  grid-template-columns: 58px 78px minmax(0, 1fr) 22px minmax(0, 1fr) 36px 8px;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}

.live-row .match-chip.live-status {
  flex: 0 0 auto;
  min-width: 52px;
  padding: 4px 8px;
  font-size: 0.64rem;
  white-space: nowrap;
  justify-content: center;
}

.live-row-upcoming .live-status {
  min-height: 22px;
  background: transparent;
  border: 1px solid var(--line);
  color: transparent;
}

.live-course {
  flex: 0 0 78px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.live-team-a,
.live-team-b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 700;
}

.live-team-a {
  text-align: right;
}

.live-team-b {
  text-align: left;
}

.live-row > .live-team-a {
  text-align: right;
}

.live-row > .live-team-b {
  text-align: left;
}

.live-vs {
  flex: 0 0 22px;
  text-align: center;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.live-progress {
  flex: 0 0 36px;
  text-align: right;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--ink);
}

.live-row-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #dc2626;
  box-shadow: 0 0 0 rgba(220, 38, 38, 0.5);
  animation: live-pulse 1.6s infinite;
}

.day-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.day-tabs[hidden] {
  display: none;
}

.day-tab {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.day-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(20, 49, 95, 0.1);
}

.day-tab.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.day-subsection {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.day-subsection[hidden] {
  display: none;
}

.day-subsection-title {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.dashboard-fold-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  box-shadow: none;
}

.dashboard-fold-toggle:hover {
  transform: none;
  box-shadow: 0 5px 12px rgba(20, 49, 95, 0.08);
  filter: none;
}

.dashboard-fold-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
}

.dashboard-fold-count {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: none;
}

.dashboard-fold-chevron {
  margin-left: auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.dashboard-fold-toggle[aria-expanded="true"] .dashboard-fold-chevron {
  transform: rotate(180deg);
}

.upcoming-summary {
  margin: 10px 0 0;
}

.upcoming-summary[hidden] {
  display: none;
}

.detail-summary {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.hole-timeline {
  grid-template-columns: repeat(auto-fit, minmax(94px, 1fr));
}

.hole-card {
  padding: 14px;
}

.hole-card strong,
.match-selector-item strong {
  display: block;
  font-size: 0.95rem;
}

.hole-meta {
  margin-top: 6px;
  font-size: 0.8rem;
}

.match-selector {
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}

.match-selector-item {
  display: grid;
  align-items: initial;
  justify-content: initial;
  width: 100%;
  gap: 5px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.match-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ink), var(--right));
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(20, 49, 95, 0.14);
}

.match-cta::after {
  content: ">";
  font-size: 0.9rem;
  line-height: 1;
}

.match-selector-item small {
  color: var(--muted);
  font-size: 0.8rem;
}

.momentum-wrap {
  display: grid;
  gap: 6px;
}

.momentum-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.momentum-labels small {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.momentum-bar {
  display: grid;
  grid-template-columns: minmax(0, var(--left-pct, 50%)) minmax(0, var(--right-pct, 50%));
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(100, 116, 139, 0.16);
  border: 1px solid rgba(20, 49, 95, 0.12);
}

.momentum-segment.left {
  background: linear-gradient(90deg, var(--left), var(--left-deep));
}

.momentum-segment.right {
  background: linear-gradient(90deg, var(--right-deep), var(--right));
}

.match-time {
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.total-score-form {
  gap: 14px;
  flex-wrap: wrap;
}

.duel-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.duel-form label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

.duel-picker {
  margin-bottom: 16px;
}

.player-setup-card {
  padding-bottom: 10px;
}

.setup-summary {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.setup-toggle {
  white-space: nowrap;
}

.setup-fields {
  display: grid;
}

.player-setup-card.is-collapsed {
  padding-bottom: 16px;
}

.player-setup-card.is-collapsed .section-heading.compact {
  margin-bottom: 0;
}

.player-flow-card {
  display: grid;
  gap: 16px;
  height: auto;
  overflow: visible;
}

.player-flow-card.is-disabled {
  opacity: 0.7;
}

.player-match-info {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 8px;
}

.match-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.95rem;
}

.match-info-row strong {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.player-stand {
  text-align: center;
  border-radius: 12px;
  padding: 14px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 8vw, 3.2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--ink), var(--right));
}

[data-role="player-momentum"] {
  margin-top: -4px;
}

.hole-entry {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.final-screen {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 251, 0.98));
  padding: 18px;
  display: grid;
  gap: 12px;
  box-shadow: 0 18px 32px rgba(20, 49, 95, 0.08);
}

.final-screen.is-left {
  border-color: rgba(29, 91, 217, 0.22);
}

.final-screen.is-right {
  border-color: rgba(197, 48, 48, 0.22);
}

.final-screen.is-square {
  border-color: rgba(100, 116, 139, 0.22);
}

.final-scoreline {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 8vw, 3.4rem);
  line-height: 0.95;
  color: var(--ink);
  text-transform: uppercase;
}

.final-summary {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.final-meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.score-flow-card {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(20, 49, 95, 0.1);
}

.score-flow-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.score-flow-head small {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.score-flow-head small:last-child {
  text-align: right;
}

.score-flow-chart {
  height: 52px;
}

.score-flow-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.score-flow-midline {
  stroke: rgba(100, 116, 139, 0.28);
  stroke-width: 1.2;
  stroke-dasharray: 3 3;
}

.score-flow-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hole-kicker {
  margin: 0;
  font-size: clamp(1.3rem, 4.8vw, 1.8rem);
  font-weight: 800;
}

.hole-helper {
  margin: 6px 0 14px;
  color: var(--muted);
}

.hole-current {
  margin: -6px 0 12px;
  color: var(--ink);
  font-weight: 700;
}

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

.updown-button {
  min-height: 110px;
  border-radius: 16px;
  border: 3px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  padding: 14px 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 11vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  position: relative;
  transition: transform 120ms ease, box-shadow 140ms ease, border-color 140ms ease, opacity 120ms ease;
}

.updown-button.is-up {
  background: rgba(29, 91, 217, 0.12);
  color: var(--left-deep);
}

.updown-button.is-down {
  background: rgba(197, 48, 48, 0.12);
  color: var(--right-deep);
}

.updown-button.is-square {
  background: rgba(100, 116, 139, 0.16);
  color: #475569;
}

.updown-button.is-selected {
  transform: translateY(-2px) scale(1.02);
  border-color: #0f172a;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.95),
    0 0 0 8px rgba(20, 49, 95, 0.24),
    0 12px 22px rgba(20, 49, 95, 0.2);
}

.updown-button.is-selected::after {
  content: "GEKOZEN";
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 0.62rem;
  line-height: 1;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.35);
  border-radius: 999px;
  padding: 5px 7px;
}

.updown-button:active {
  transform: translateY(1px) scale(0.99);
}

.updown-button:disabled,
.next-hole:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.next-hole {
  width: 100%;
  min-height: 56px;
  font-size: 1.1rem;
}

.next-hole.is-finished {
  background: linear-gradient(135deg, #b42318, #dc2626);
  color: #fff;
  box-shadow: 0 12px 24px rgba(180, 35, 24, 0.22);
}

.next-hole.is-locked {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  color: #fff;
}

.hole-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.hole-nav-button {
  min-height: 52px;
  font-size: 1rem;
}

.hole-overview {
  margin-top: 10px;
  overflow: hidden;
}

.hole-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  gap: 6px;
}

.hole-chip {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  min-height: 50px;
  display: grid;
  place-items: center;
  gap: 1px;
  cursor: pointer;
}

.hole-chip-number {
  font-size: 0.64rem;
  color: var(--muted);
  font-weight: 700;
}

.hole-chip-value {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--ink);
}

.hole-chip.is-active {
  border-color: rgba(20, 49, 95, 0.35);
  box-shadow: 0 8px 16px rgba(20, 49, 95, 0.1);
}

body[data-entry-theme="left"] .player-stand {
  background: linear-gradient(135deg, var(--left), var(--left-deep));
}

body[data-entry-theme="right"] .player-stand {
  background: linear-gradient(135deg, var(--right-deep), var(--right));
}

body[data-entry-theme="left"] .next-hole {
  background: linear-gradient(135deg, var(--left-deep), var(--left));
}

body[data-entry-theme="right"] .next-hole {
  background: linear-gradient(135deg, var(--right-deep), var(--right));
}

.duel-picker select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
}

.total-score-form label {
  display: grid;
  gap: 8px;
  min-width: 180px;
  flex: 1 1 180px;
  font-size: 0.92rem;
  font-weight: 700;
}

input,
button,
select {
  font: inherit;
}

input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
  color: var(--ink);
}

.editor-summary {
  margin-bottom: 18px;
}

.hole-editor {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 18px;
}

.hole-controls {
  display: inline-flex;
  gap: 8px;
  margin-top: 14px;
}

.hole-button {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.hole-button.is-active[data-value="left"] {
  background: rgba(29, 91, 217, 0.14);
  color: var(--left-deep);
  border-color: rgba(29, 91, 217, 0.3);
}

.hole-button.is-active[data-value="square"] {
  background: rgba(100, 116, 139, 0.16);
  color: #475569;
  border-color: rgba(100, 116, 139, 0.3);
}

.hole-button.is-active[data-value="right"] {
  background: rgba(197, 48, 48, 0.12);
  color: var(--right-deep);
  border-color: rgba(197, 48, 48, 0.24);
}

.scoreline-grid {
  display: grid;
  grid-template-columns: repeat(var(--hole-count, 9), minmax(86px, 1fr));
  gap: 12px;
}

.hole-lane {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.hole-lane-top,
.hole-lane-bottom,
.hole-lane-mid {
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
}

.hole-lane-top,
.hole-lane-bottom {
  height: 44px;
}

.hole-lane-mid {
  border-top: 2px solid rgba(20, 49, 95, 0.3);
  border-bottom: 2px solid rgba(20, 49, 95, 0.3);
  height: 34px;
  color: #475569;
}

.hole-lane-top.active {
  background: rgba(29, 91, 217, 0.16);
  color: var(--left-deep);
}

.hole-lane-mid.active {
  background: rgba(100, 116, 139, 0.18);
}

.hole-lane-bottom.active {
  background: rgba(197, 48, 48, 0.16);
  color: var(--right-deep);
}

.match-filter-input {
  margin-bottom: 12px;
  padding: 10px 14px;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.match-filter-input::placeholder {
  color: var(--muted);
}

.match-filter-input:focus {
  outline: none;
  border-color: rgba(20, 49, 95, 0.4);
  box-shadow: 0 0 0 3px rgba(20, 49, 95, 0.08);
}

.player-hcp {
  display: block;
  font-size: 0.75rem;
  color: #475569;
  margin-top: 2px;
  font-weight: 600;
}

.hole-lane-label {
  display: block;
  padding: 6px 8px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (min-width: 1081px) {
  body[data-page="dashboard"] .site-header {
    margin-bottom: 14px;
    gap: 12px;
  }

  body[data-page="dashboard"] .brand-logo {
    width: 60px;
    height: 60px;
  }

  body[data-page="dashboard"] .site-nav {
    gap: 8px;
  }

  body[data-page="dashboard"] .nav-link {
    padding: 9px 14px;
    font-size: 0.82rem;
  }

  body[data-page="dashboard"] .dashboard-layout {
    gap: 10px;
  }

  body[data-page="dashboard"] .hero-card {
    padding: 14px 22px 12px;
  }

  body[data-page="dashboard"] .hero-copy {
    margin-bottom: 6px;
  }

  body[data-page="dashboard"] .hero-copy h2 {
    margin-bottom: 4px;
  }

  body[data-page="dashboard"] .scoreboard {
    margin-top: 2px;
  }

  body[data-page="dashboard"] .score-side {
    min-height: 124px;
    padding: 16px 24px;
  }

  body[data-page="dashboard"] .center-logo {
    width: min(164px, 16vw);
    min-width: 112px;
  }

  body[data-page="dashboard"] .score-projection {
    margin-top: 8px;
  }

  body[data-page="dashboard"] .score-meta {
    margin-top: 8px;
  }

  body[data-page="dashboard"] .matches-panel {
    padding: 14px 18px 16px;
  }

  body[data-page="dashboard"] .section-heading {
    margin-bottom: 8px;
  }

  body[data-page="dashboard"] .live-column {
    max-height: calc(var(--dashboard-row-height) * var(--dashboard-rows-visible));
  }

  body[data-page="dashboard"] .live-row {
    gap: 7px;
    padding: 6px 2px;
    font-size: 0.74rem;
  }

  body[data-page="dashboard"] .carousel-card {
    padding: 10px 12px;
    gap: 5px;
  }

  body[data-page="dashboard"] .match-legend {
    gap: 8px 14px;
    margin-top: 10px;
    font-size: 0.68rem;
  }
}

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

  .beheer-layout .editor-card {
    grid-column: auto;
    grid-row: auto;
  }

  .carousel-card {
    flex-basis: calc((100% - 14px) / 2);
  }

  .live-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body[data-page="dashboard"] {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  body[data-page="dashboard"] .page-shell {
    height: auto;
    min-height: 100dvh;
  }

  body[data-page="dashboard"] .dashboard-layout {
    height: auto;
    overflow: visible;
  }

  .page-shell {
    padding: 20px 14px 32px;
  }

  body[data-page="score-invoer"] .page-shell {
    padding-bottom: 12px;
    gap: 10px;
  }

  .site-header {
    margin-bottom: 8px;
  }

  .brand-lockup {
    gap: 10px;
  }

  .brand-logo {
    width: 58px;
    height: 58px;
  }

  .live-overview-title {
    font-size: 0.86rem;
  }

  .live-column {
    max-height: 420px;
  }

  .live-row {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .live-row .match-chip.live-status {
    order: 1;
  }

  .live-course {
    order: 2;
  }

  .live-row-dot {
    order: 3;
    margin-left: auto;
  }

  .live-teams {
    order: 4;
    flex-basis: 100%;
  }

  .live-progress {
    order: 5;
    margin-left: auto;
  }

  .brand-kicker {
    font-size: 0.68rem;
  }

  .site-header h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  body[data-page="score-invoer"] .site-nav {
    display: none;
  }

  .score-screen,
  .score-screen.is-active {
    gap: 10px;
  }

  .player-flow-card {
    gap: 10px;
  }

  .control-card {
    padding: 16px;
    border-radius: 18px;
  }

  .detail-status {
    font-size: 0.74rem;
    padding: 6px 10px;
  }

  .duel-picker select {
    min-height: 52px;
    font-size: 1rem;
  }

  .setup-toggle {
    width: 100%;
  }

  .scoreboard {
    grid-template-columns: 1fr;
  }

  .score-projection {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .score-side-left {
    text-align: left;
  }

  .score-side-left .score-side-watermark,
  .score-side-right .score-side-watermark {
    opacity: 0.14;
  }

  .center-logo {
    width: min(164px, 40vw);
    min-width: 112px;
  }

  .carousel-card {
    flex-basis: 88%;
  }

  .carousel-nav {
    display: none;
  }

  .timeline-score {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }

  .scoreline-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .updown-button {
    min-height: 108px;
    font-size: clamp(1.55rem, 7.2vw, 2.35rem);
    letter-spacing: 0.01em;
  }

  .hole-overview-grid {
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 5px;
  }

  .hole-chip {
    min-height: 44px;
    border-radius: 9px;
  }

  .hole-chip-number {
    font-size: 0.58rem;
  }

  .hole-chip-value {
    font-size: 1.08rem;
  }

  .updown-button.is-selected::after {
    display: none;
  }

  .site-header,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

.score-projection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px auto 0;
  padding: 10px 16px;
  max-width: 560px;
  border: 1px solid rgba(14, 124, 65, 0.18);
  border-radius: 14px;
  background: rgba(14, 124, 65, 0.06);
}

.score-projection-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #0b1f3a;
  font-size: 0.78rem;
}

.score-projection-note {
  color: #64748b;
  font-size: 0.7rem;
}

.score-projection-result {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22a45a;
  box-shadow: 0 0 0 4px rgba(34, 164, 90, 0.12);
}

.score-projection-value {
  color: #0e7c41;
  font-size: 1.25rem;
  white-space: nowrap;
}

.score-projection-matches {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

body[data-page="dashboard"] .hero-card {
  padding: 0;
}

body[data-page="dashboard"] .scoreboard {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(90deg, #0d58d7 0 50%, #cf252b 50% 100%);
}

body[data-page="dashboard"] .score-side {
  min-height: 360px;
  padding: 54px clamp(28px, 5vw, 70px) 118px;
  border-radius: 0;
}

body[data-page="dashboard"] .score-side-left,
body[data-page="dashboard"] .score-side-right {
  text-align: center;
  align-items: center;
}

body[data-page="dashboard"] .team-label {
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 800;
  line-height: 1.2;
}

body[data-page="dashboard"] .score-number {
  font-size: clamp(5.6rem, 11vw, 9.5rem);
}

body[data-page="dashboard"] .center-badge {
  position: absolute;
  z-index: 8;
  top: 41%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

body[data-page="dashboard"] .center-logo {
  width: clamp(150px, 20vw, 260px);
  min-width: 0;
}

body[data-page="dashboard"] .scoreboard-summary {
  position: relative;
  z-index: 6;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.5fr);
  align-items: center;
  gap: clamp(18px, 4vw, 58px);
  min-height: 86px;
  margin: -104px 30px 26px;
  padding: 18px clamp(22px, 5vw, 58px);
  border: 1px solid rgba(20, 49, 95, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 36px rgba(20, 49, 95, 0.14);
  backdrop-filter: blur(14px);
}

body[data-page="dashboard"] .score-projection {
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

body[data-page="dashboard"] .score-projection-heading {
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-page="dashboard"] .score-projection-value {
  font-size: 1.65rem;
}

body[data-page="dashboard"] .score-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 18px;
  margin: 0;
  font-size: 0.78rem;
}

body[data-page="dashboard"] .score-stats span {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  white-space: nowrap;
}

body[data-page="dashboard"] .score-stats strong {
  font-size: 1.3rem;
}

@media (min-width: 1081px) and (min-height: 700px) {
  body[data-page="dashboard"][data-display="fullscreen"] {
    zoom: 0.8;
  }

  body[data-page="dashboard"][data-display="fullscreen"] .site-nav {
    display: none;
  }
}

@media (max-width: 760px) {
  body[data-page="dashboard"] .page-shell {
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
  }

  body[data-page="dashboard"] .dashboard-layout {
    gap: 14px;
  }

  body[data-page="dashboard"] .hero-card,
  body[data-page="dashboard"] .matches-panel {
    border-radius: 24px;
  }

  body[data-page="dashboard"] .matches-panel {
    padding: 18px 18px 20px;
  }

  body[data-page="dashboard"] .site-header {
    align-items: center;
    text-align: center;
  }

  body[data-page="dashboard"] .brand-lockup,
  body[data-page="dashboard"] .site-nav {
    justify-content: center;
    width: 100%;
  }

  body[data-page="dashboard"] .scoreboard {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 250px;
  }

  body[data-page="dashboard"] .score-side {
    min-height: 250px;
    padding: 26px 18px 98px;
  }

  body[data-page="dashboard"] .team-label {
    font-size: clamp(0.68rem, 2.8vw, 0.82rem);
  }

  body[data-page="dashboard"] .score-number {
    font-size: clamp(3.2rem, 15vw, 4.4rem);
  }

  body[data-page="dashboard"] .center-badge {
    top: 37%;
  }

  body[data-page="dashboard"] .center-logo {
    width: clamp(86px, 24vw, 112px);
  }

  body[data-page="dashboard"] .scoreboard-summary {
    grid-template-columns: 1fr;
    gap: 7px;
    min-height: 88px;
    margin: -84px 12px 14px;
    padding: 9px 12px 10px;
    border-radius: 12px;
  }

  body[data-page="dashboard"] .score-projection-heading {
    font-size: 0.64rem;
  }

  body[data-page="dashboard"] .score-projection-value {
    font-size: 1.4rem;
  }

  body[data-page="dashboard"] .score-stats {
    gap: 8px;
    font-size: 0.58rem;
  }

  body[data-page="dashboard"] .score-stats span {
    grid-template-columns: auto auto auto;
    gap: 4px;
    min-width: 0;
    text-align: center;
    white-space: normal;
  }

  body[data-page="dashboard"] .score-stats strong {
    font-size: 1rem;
    line-height: 1;
  }

  body[data-page="dashboard"] .signage-bottom-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body[data-page="dashboard"] .signage-table {
    overflow: visible;
  }

  body[data-page="dashboard"] .signage-panel-heading {
    align-items: flex-start;
  }

  body[data-page="dashboard"] .signage-panel-heading h2 {
    min-width: 0;
    font-size: 1.45rem;
    line-height: 1;
  }

  body[data-page="dashboard"] .signage-panel-heading > span {
    flex: 0 0 auto;
    padding-top: 4px;
    white-space: nowrap;
  }

  body[data-page="dashboard"] .live-column {
    max-height: none;
    overflow: visible;
  }

  body[data-page="dashboard"] .live-columns[data-role="live-columns"],
  body[data-page="dashboard"] .signage-table[data-role="results-table"],
  body[data-page="dashboard"] .signage-table[data-role="upcoming-table"] {
    min-height: 0;
  }

  body[data-page="dashboard"] .signage-table[data-role="results-table"] {
    grid-template-columns: 1fr;
    gap: 0;
  }

  body[data-page="dashboard"] .live-columns,
  body[data-page="dashboard"] .live-columns[data-role="live-columns"] {
    grid-template-columns: 1fr;
    gap: 0;
  }

  body[data-page="dashboard"] .live-row {
    grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) auto 8px;
    gap: 5px 8px;
    padding: 11px 0;
    font-size: 0.78rem;
  }

  body[data-page="dashboard"] .live-row .match-chip.live-status {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    min-width: 0;
    padding: 4px 9px;
    font-size: 0.62rem;
  }

  body[data-page="dashboard"] .live-course {
    grid-column: 2 / 4;
    grid-row: 1;
    min-width: 0;
    align-self: center;
    font-size: 0.62rem;
    line-height: 1.05;
    text-align: left;
  }

  body[data-page="dashboard"] .live-row-dot {
    grid-column: 5;
    grid-row: 1;
    justify-self: end;
  }

  body[data-page="dashboard"] .live-team-a,
  body[data-page="dashboard"] .live-team-b {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  body[data-page="dashboard"] .live-row > .live-team-a {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
  }

  body[data-page="dashboard"] .live-vs {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
  }

  body[data-page="dashboard"] .live-row > .live-team-b {
    grid-column: 3 / 6;
    grid-row: 2;
    text-align: left;
  }

  body[data-page="dashboard"] .live-progress {
    grid-column: 4;
    grid-row: 1;
    min-width: 36px;
    align-self: center;
    text-align: right;
    white-space: nowrap;
  }
}