:root[data-theme=dark] {
  --bg: #191a13;
  --surface: #24261c;
  --surface-alt: #303224;
  --text: #f5f1e4;
  --muted: #c0beac;
  --line: #666752;
  --ink: #d4ef6c;
  --accent: #d0fa42;
  --accent-text: #182011;
  --bonus: #ffc277;
}

.club-app .site-shell > footer {
  position: relative;
  isolation: isolate;
}
.club-app .site-shell > footer::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 58px;
  height: 64px;
  right: 0;
  bottom: 0;
  background: url(score-grass.webp) right bottom / contain no-repeat;
  mask-image: linear-gradient(145deg, transparent 20%, #000 78%);
  opacity: .6;
  pointer-events: none;
}
.score-promo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 16px;
  padding: clamp(15px, 3vw, 35px);
  border: 1px solid #55432a;
  border-radius: 18px;
  background: radial-gradient(ellipse at 90% 0%, #503818, transparent 53%), #14170f;
  color: #faf7ef;
}
.score-promo::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url(score-pudge.webp) right center / auto 100% no-repeat;
  mask-image: linear-gradient(90deg, transparent 40%, #000 74%);
}
.score-promo::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 60px;
  height: 70px;
  bottom: 0;
  left: 0;
  background: url(score-grass.webp) left bottom / contain no-repeat;
  mask-image: linear-gradient(35deg, #000, transparent 75%);
  pointer-events: none;
}
.score-promo-copy {max-width: 72%}
.score-promo h2 {margin: .22em 0; color: inherit; font: 800 clamp(23px, 5vw, 54px)/1.04 system-ui, sans-serif}
.score-promo p {margin: .5em 0}
.score-promo .score-prize {color: #d0fa42; font-weight: 750}
.score-promo button {margin-top: .4em; background: #d0fa42; color: #17200c; border: 0; border-radius: 10px}
.score-promo button:hover:not(:disabled) {background: #ddff68}
.score-form {display: grid; gap: 12px; margin: 14px 0}
.score-match {min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 10px}
.score-match legend {font-weight: 750; padding: 0 4px}
.score-options {display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px}
.score-options label {margin: 0}
.score-options input[type=number] {max-width: 120px}
.score-option {position: relative}
.score-option input {position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer}
.score-option span {display: grid; min-width: 51px; min-height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 7px}
.score-option input:checked + span {background: var(--accent); color: var(--accent-text)}
.score-option input:focus-visible + span {outline: 2px solid var(--bonus); outline-offset: 2px}

@media (max-width: 850px) {
  .club-app .mobile-nav::after {
    content: '';
    position: absolute;
    pointer-events: none;
    right: 0;
    bottom: 0;
    width: 34px;
    height: 25px;
    opacity: .48;
    background: url(score-grass.webp) right bottom / contain no-repeat;
    mask-image: linear-gradient(145deg, transparent, #000 76%);
  }
}

.score-admin-match { display:flex; align-items:center; gap:12px; padding:12px; margin:8px 0; border:1px solid var(--line); border-radius:10px; overflow-wrap:anywhere }
.score-admin-match input[type=checkbox] { flex:0 0 22px; width:22px; height:22px; margin:0 }
.score-admin-match:has(input:checked) { background:var(--surface-alt) }
.score-admin-match span { min-width:0 }
.score-team { display:inline-flex; align-items:center; gap:6px }
.score-emblem { position:relative; display:inline-grid; place-items:center; width:28px; height:28px; border-radius:50%; background:var(--surface-alt); font-size:12px; overflow:hidden }
.score-emblem img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; background:var(--surface) }

.score-page { max-width: 720px; margin-inline: auto; }
.score-page .score-back {
  border: 0;
  background: transparent;
  padding-inline: 0;
  margin-bottom: 4px;
}
.score-page .score-spotlight {
  margin-bottom: 18px;
  padding: clamp(18px, 5vw, 38px);
  border: 1px solid #8a6e44;
  border-radius: 15px;
  background: radial-gradient(ellipse at 96% 0%, #815328, transparent 68%), linear-gradient(140deg, #263823, #111d16);
  color: #fff6df;
}
.score-page .score-spotlight h1 {
  margin: 5px 0 8px;
  color: inherit;
  font: 700 clamp(31px, 7vw, 48px)/1.12 Georgia, serif;
  letter-spacing: 0;
  text-transform: none;
}
.score-page .score-spotlight-meta { margin: 0; color: #f2e7d3; font-size: 13px; }
.score-page .score-spotlight .score-prize { margin: 0 0 6px; color: #f4cb76; font-weight: 700; }
.score-page .score-form { max-width: none; gap: 13px; }
.score-page .score-match { padding: 10px clamp(9px, 3vw, 22px) 13px; }
.score-page .score-match legend {
  max-width: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.score-page .score-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  text-align: center;
}
.score-page .score-team {
  display: flex;
  flex-direction: column;
  overflow-wrap: anywhere;
  font-weight: 700;
}
.score-page .score-emblem {
  width: 68px;
  height: 68px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-alt);
  font-size: 20px;
}
.score-page .score-emblem:has(img) { background: #f7f2e5; }
.score-page .score-emblem:has(img) > span { visibility: hidden; }
.score-page .score-emblem img { padding: 7px; background: transparent; filter: drop-shadow(0 0 1px #2e392c); }
.score-page .score-emblem img[src^="static/contest-logos/"] { padding: 0; filter: none; }
.score-page .score-match > p { margin: 10px 0 0; text-align: center; }
.score-page .score-options { justify-content: center; }
.score-page .score-option { flex: 1 1 48px; }
.score-page .score-option span { min-width: 0; }
.score-page .score-option input:checked + span {
  border-color: #986e27;
  background: #e5b959;
  color: #242511;
}
.score-page details.panel { padding: 10px 13px; }
.score-page details.panel summary { min-height: 0; }

/* The shared three-column betting layout must not squeeze administration. */
.travobet-admin.layout { display:block; max-width:1100px; margin-inline:auto }
.travobet-admin.layout > section { min-width:0 }
.score-admin-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px }
#score-challenge-matches { max-height:560px; overflow-y:auto; padding-right:6px }
.score-admin-match .score-emblem { flex:0 0 28px; white-space:nowrap }
.score-admin-match > span:last-child { flex:1; min-width:0; font-weight:400 }
.score-admin-match strong { font-weight:700 }
.score-admin-match[hidden] { display:none }
@media(max-width:560px) { .score-admin-filters { grid-template-columns:1fr } .score-admin-match { gap:8px; padding:10px } }

/* Owner workspace: four independent sections; open the daily workflow first. */
.travobet-admin.layout { max-width:1320px; width:100%; box-sizing:border-box }
.travobet-admin > section { margin-bottom:18px }
.admin-workspace { margin:0 0 12px; min-width:0; background:var(--surface); border:1px solid var(--line); border-radius:14px }
.admin-workspace > summary { cursor:pointer; padding:15px 20px; min-height:58px }
.admin-workspace > summary span { display:inline-grid; gap:2px; vertical-align:middle; margin-left:8px }
.admin-workspace > summary strong { font:700 clamp(21px,3vw,31px)/1.1 var(--display) }
.admin-workspace > summary small { color:var(--muted); font-size:13px }
.admin-workspace[open] > summary { border-bottom:1px solid var(--line); background:var(--surface-alt); border-radius:14px 14px 0 0 }
.admin-workspace-body { padding:clamp(14px,3vw,30px); min-width:0; overflow-wrap:anywhere }
.admin-workspace-body [hidden] { display:none !important }
.admin-workspace-body hr { border:0; border-top:1px solid var(--line); margin:26px 0 }
#admin-game h2 { font-size:clamp(30px,5vw,46px); margin:0 0 8px }
#score-challenge-create { margin-top:18px }
#score-challenge-create fieldset { min-width:0 }
#score-challenge-list article { border-top:1px solid var(--line); margin-top:16px; padding-top:12px }
#score-challenge-list article h3 { margin:0 }
#score-challenge-deadline { font-weight:700 }
#score-challenge-status { position:sticky; bottom:10px; background:var(--surface-alt); padding:8px 12px; border-radius:8px; z-index:1 }
#score-challenge-status:empty { display:none }
.admin-secondary { margin:16px 0 }
.admin-secondary > summary { cursor:pointer; font-weight:650 }
#contest-accounts { max-height:320px; overflow:auto }
#report { overflow-x:auto }
@media(max-width:560px) { .admin-workspace > summary { padding-inline:12px } }

.score-admin-publish { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 18px; background:var(--surface-alt); border:1px solid var(--line); border-radius:10px; padding:13px 16px }
.score-admin-publish p { margin:0; flex:1 1 240px }
#score-challenge-load { min-height:44px }
#score-challenge-status a { margin-left:8px; font-weight:700 }
@media(max-width:560px) { .score-admin-publish button { width:100% } }

.result-card { margin:8px 0 }
.result-card summary { cursor:pointer; padding-block:10px }
.result-card summary small { display:block; margin:4px 0 0 18px; color:var(--muted); font-weight:400 }
.result-card form { padding:0 6px 8px }
.result-score { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px }
.result-score input { width:100%; box-sizing:border-box }
