/* Kastelein Darts: alleen aanvullingen op de centrale website-stijl. */
/* Safari op iPhone: de browser scrollt verticaal; html en body krijgen geen
   tweede scrollvlak door overflow-x:hidden uit de algemene stijlen. */
@media (max-width: 900px) {
  html.darts-page,
  body.darts-page {
    height: auto !important;
    overflow: visible !important;
  }

  body.darts-page {
    min-height: 100vh;
    min-height: 100dvh;
  }

  body.darts-page > .topbar,
  body.darts-page > main,
  body.darts-page main .hero,
  body.darts-page main .section,
  body.darts-page > .footer {
    width: 100%;
    max-width: 100%;
    overflow-x: clip !important;
    overflow-y: visible !important;
  }

  @supports not (overflow: clip) {
    body.darts-page > .topbar,
    body.darts-page > main,
    body.darts-page main .hero,
    body.darts-page main .section,
    body.darts-page > .footer {
      overflow-x: hidden !important;
    }
  }
}

.darts-topbar-nav { gap: 24px; }

.darts-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.darts-nav > a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.darts-nav > a:not(.btn):hover,
.darts-nav > a:not(.btn):focus-visible { background: rgba(200, 164, 93, 0.14); }

.darts-nav .btn {
  min-height: 44px;
  padding-inline: 16px;
  white-space: nowrap;
}

.darts-page-main { padding: 0 0 42px; }
.darts-heading-section { padding-top: 30px; }

.darts-page-heading {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: clamp(22px, 4vw, 34px) clamp(130px, 22vw, 260px) clamp(22px, 4vw, 34px) clamp(22px, 4vw, 34px);
}

.darts-hero-mascot {
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  bottom: -52px;
  width: clamp(112px, 17vw, 205px);
  max-height: 270px;
  object-fit: contain;
  filter: drop-shadow(10px 14px 14px rgba(0, 0, 0, .28));
  pointer-events: none;
}

.darts-page-title {
  margin: 8px 0 0;
  max-width: 920px;
  font-size: clamp(38px, 6vw, 72px);
}

.darts-content-section { padding-top: 22px; }

.darts-page-main .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.darts-page-main .card {
  min-height: 0;
  padding: clamp(20px, 3vw, 30px);
  background: linear-gradient(180deg, rgba(34, 25, 18, 0.94), rgba(22, 17, 14, 0.98));
}

.darts-page-main .card h2,
.darts-page-main .card h3,
.darts-page-main .section-title h2 {
  margin-top: 0;
  font-family: "Playfair Display", serif;
}

.darts-page-main .lead {
  max-width: 720px;
  font-size: clamp(17px, 2vw, 20px);
}

.tagline {
  font-family: "Playfair Display", serif;
  font-size: clamp(27px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.08;
}

.tagline span,
.rank { color: var(--green); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.darts-page-main button.btn {
  font: inherit;
  cursor: pointer;
}

.btn.danger {
  border-color: rgba(199, 111, 122, 0.5);
  background: rgba(199, 111, 122, 0.14);
}

.notice {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid rgba(131, 182, 148, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(131, 182, 148, 0.12);
  color: var(--text);
}

.notice-error {
  border-color: rgba(199, 111, 122, 0.52);
  background: rgba(199, 111, 122, 0.13);
}

.notice ul {
  margin: 8px 0 0;
  padding-left: 22px;
}

.form-card { max-width: 720px; }
.field { margin: 0 0 18px; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(11, 9, 8, 0.82);
  color: var(--text);
  font: inherit;
}

.field input:focus {
  border-color: var(--gold);
  outline: 3px solid rgba(200, 164, 93, 0.2);
}

.field small,
.muted { color: var(--muted); }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check label { margin: 0; }
.check input { width: 22px; height: 22px; flex: 0 0 auto; }
.honeypot { position: absolute; left: -9999px; }

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

.metric {
  min-width: 0;
  padding: 19px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.metric strong {
  display: block;
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-size: 30px;
  line-height: 1.1;
}

.metric span { color: var(--muted); font-size: 13px; }

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 38px 0 14px;
}

.section-title h2,
.section-title p { margin-bottom: 0; }
.section-title p { color: var(--muted); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.darts-page-main table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.darts-page-main th,
.darts-page-main td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.darts-page-main th {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.darts-page-main tbody tr:last-child td { border-bottom: 0; }
.empty { padding: 38px 20px; color: var(--muted); text-align: center; }

.account-state {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(131, 182, 148, 0.13);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.live-watch {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  margin-top: 22px;
  overflow: hidden;
  isolation: isolate;
}

.live-watch::before {
  position: absolute;
  z-index: -1;
  right: -16%;
  bottom: -54%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(145, 200, 62, .13), transparent 67%);
  content: "";
}

.live-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8a8379;
  box-shadow: 0 0 0 6px rgba(138, 131, 121, .1);
  transition: background .25s ease, box-shadow .25s ease;
}

.live-watch.is-live .live-dot {
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(145, 200, 62, .12), 0 0 22px rgba(145, 200, 62, .7);
  animation: live-pulse 1.8s ease-in-out infinite;
}

@keyframes live-pulse {
  50% { transform: scale(.78); opacity: .7; }
}

.live-watch h2 {
  margin: 10px 0 8px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.live-watch-copy > p { max-width: 670px; color: var(--muted); }

.live-score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 23px;
}

.live-score-grid > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 13px;
  background: rgba(0, 0, 0, .2);
}

.live-score-grid span,
.board-caption {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.live-score-grid strong {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--text);
  font-size: clamp(18px, 2.6vw, 27px);
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-watch.is-live #live-score,
.live-watch.is-live #live-turn-score { color: var(--gold); }

.live-hits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 41px;
  margin-top: 13px;
}

.live-hit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(145, 200, 62, .3);
  border-radius: 999px;
  background: rgba(145, 200, 62, .09);
  color: var(--text);
  font-weight: 800;
}

.live-hit b {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #10150a;
  font-size: 12px;
}

.live-privacy { margin: 7px 0 0; font-size: 12px; }

.public-dartboard-wrap {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.public-dartboard {
  width: min(100%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: saturate(.5) brightness(.72);
  opacity: .72;
  transition: filter .3s ease, opacity .3s ease, transform .3s ease;
}

.live-watch.is-live .public-dartboard {
  filter: saturate(1) brightness(1);
  opacity: 1;
  transform: scale(1.015);
}

.public-dartboard svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 20px 25px rgba(0, 0, 0, .38));
}

.public-dartboard .board-number {
  fill: #eee8dc;
  font: 800 31px/1 system-ui, sans-serif;
}

.public-dartboard .live-marker text {
  fill: #0d1109;
  font: 900 25px/1 system-ui, sans-serif;
}

.public-dartboard .marker-pop {
  transform-box: fill-box;
  transform-origin: center;
  animation: marker-land .28s cubic-bezier(.2, .9, .3, 1.3) both;
}

@keyframes marker-land {
  from { opacity: 0; transform: scale(2.5); }
  to { opacity: 1; transform: scale(1); }
}

.board-caption { text-align: center; }

/* Aansluiting op het centraal beheerde seizoensthema. */
.seasonal-theme .darts-page-main .metric,
.seasonal-theme .darts-page-main .table-wrap,
.seasonal-theme .darts-page-main .notice,
.seasonal-theme .darts-page-main .field input {
  border-color: var(--seasonal-line, rgba(255, 255, 255, 0.12));
}

.seasonal-theme .darts-page-main .metric,
.seasonal-theme .darts-page-main .table-wrap {
  background: var(--seasonal-soft, var(--panel));
}

@media (max-width: 900px) {
  .darts-topbar-nav { align-items: flex-start; flex-wrap: wrap; }
  .darts-nav {
    flex: 1 1 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .darts-page-main .hero-grid { grid-template-columns: 1fr; }
  .live-watch { grid-template-columns: 1fr; }
  .public-dartboard { width: min(82vw, 430px); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .darts-heading-section { padding-top: 16px; }
  .darts-page-heading,
  .darts-page-main .card { padding: 16px; }
  .darts-page-heading { padding-right: 105px; }
  .darts-hero-mascot { width: 92px; right: 10px; bottom: -22px; opacity: .88; }
  .darts-page-title { font-size: clamp(34px, 12vw, 50px); }
  .darts-profile-title {
    width: calc(100% + 89px);
    max-width: none;
    font-size: clamp(21px, 7.2vw, 32px);
    letter-spacing: -.035em;
    white-space: nowrap;
  }
  .darts-nav { gap: 2px; }
  .darts-nav > a:not(.btn) { padding-inline: 10px; font-size: 14px; }
  .darts-nav .btn { padding-inline: 12px; font-size: 14px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .live-score-grid { grid-template-columns: 1fr 1fr; }
  .live-watch { gap: 20px; }
  .metric { padding: 15px; }
  .section-title { align-items: flex-start; flex-direction: column; }
}
