/* ======================================================
   Odense Backgammonklub – designsystem
   Farver fra logoet: sort, rød og hvid – på varmt "papir".
   ====================================================== */

:root {
  color-scheme: light;

  --paper:    #f6f2ea;
  --paper-2:  #efe9dd;
  --card:     #fffdf9;
  --ink:      #16130f;
  --ink-2:    #4a443b;
  --ink-3:    #7a7266;
  --line:     #e2dacb;
  --line-2:   #d3c9b6;

  --red:      #c8102e;
  --red-ink:  #a50d26;
  --red-soft: #fbe3e6;
  --gold:     #b98a1b;
  --felt:     #1f3b2d;

  --up:       #17803d;
  --down:     #c8102e;

  --board-dark: #16130f;
  --board-felt: #234536;
  --board-wood: #6b4a2b;
  --board-pt-a: #e9e1d0;
  --board-pt-b: #c8102e;

  --radius:   18px;
  --radius-s: 10px;
  --shadow:   0 1px 2px rgb(22 19 15 / .06), 0 8px 24px -12px rgb(22 19 15 / .18);
  --shadow-l: 0 2px 4px rgb(22 19 15 / .06), 0 24px 48px -20px rgb(22 19 15 / .35);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper:    #12100d;
    --paper-2:  #1a1713;
    --card:     #1e1a16;
    --ink:      #f3eee4;
    --ink-2:    #c9c0b0;
    --ink-3:    #948a7a;
    --line:     #2f2a23;
    --line-2:   #3d362d;
    --red:      #ef3b55;
    --red-ink:  #ff6b7f;
    --red-soft: #3a1219;
    --gold:     #e0b44a;
    --up:       #4cc274;
    --down:     #ff6b7f;
    --board-pt-a: #d9cfba;
    --shadow:   0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -12px rgb(0 0 0 / .6);
    --shadow-l: 0 2px 4px rgb(0 0 0 / .3), 0 24px 48px -20px rgb(0 0 0 / .8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper:    #12100d;
  --paper-2:  #1a1713;
  --card:     #1e1a16;
  --ink:      #f3eee4;
  --ink-2:    #c9c0b0;
  --ink-3:    #948a7a;
  --line:     #2f2a23;
  --line-2:   #3d362d;
  --red:      #ef3b55;
  --red-ink:  #ff6b7f;
  --red-soft: #3a1219;
  --gold:     #e0b44a;
  --up:       #4cc274;
  --down:     #ff6b7f;
  --board-pt-a: #d9cfba;
  --shadow:   0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -12px rgb(0 0 0 / .6);
  --shadow-l: 0 2px 4px rgb(0 0 0 / .3), 0 24px 48px -20px rgb(0 0 0 / .8);
}

/* ---------- Grundlag ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
@view-transition { navigation: auto; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--red-ink); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.muted { color: var(--ink-3); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -0.01em; }
.num { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section.alt { background: var(--paper-2); }
.section.tight { padding-block: clamp(36px, 5vw, 64px); }

.skip { position: absolute; left: 8px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; transform: translateY(-200%); }
.skip:focus { transform: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: .8em;
}
/* Kun den lille trekant er rød – rød er sparet til knapper og live-ting */
.eyebrow::before { content: ""; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 10px solid var(--red); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 62ch; }

/* ---------- Knapper ---------- */
.btn {
  --bg: var(--red); --fg: #fff;
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.3em; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--bg) 70%, transparent);
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn:hover { color: var(--fg); transform: translateY(-1px); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--bg) 80%, transparent); }
.btn.ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.ghost:hover { --fg: var(--red-ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.light { --bg: #fff; --fg: #16130f; }
.btn.small { padding: .55em 1em; font-size: .9rem; }
.btn svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
  view-transition-name: header;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.logo-mark { width: 34px; height: 34px; color: var(--ink); }
.brand-text { font-size: 1.02rem; letter-spacing: -0.01em; line-height: 1.1; }
.brand-text strong { font-weight: 800; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 999px;
  font-size: .93rem; font-weight: 600; color: var(--ink-2); text-decoration: none;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }

.header-tools { display: flex; gap: 4px; }
/* Sprogvalg: globus med sprogkode – klik viser sprogene med flag (<details>, virker også uden JavaScript) */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.icon-btn.lang-btn { width: auto; display: flex; align-items: center; gap: 5px; padding: 0 10px 0 9px; }
.lang-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lang-code { font-size: .74rem; font-weight: 800; letter-spacing: .06em; }
.lang-menu[open] > .lang-btn { background: var(--paper-2); }
.lang-list { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; min-width: 170px; margin: 0; padding: 6px; list-style: none;
  border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 14px 34px rgb(0 0 0 / .18); }
.lang-list a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--ink); text-decoration: none; font-weight: 600; }
.lang-list a:hover, .lang-list a:focus-visible { background: var(--paper-2); }
.lang-list a[aria-current] { font-weight: 800; }
.lang-list a[aria-current]::after { content: "✓"; margin-inline-start: auto; color: var(--red); }
.lang-flag { flex: none; width: 24px; height: 16px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgb(0 0 0 / .15); line-height: 0; }
.lang-flag svg { width: 100%; height: 100%; display: block; }
@media (max-width: 380px) { .icon-btn.lang-btn { padding: 0 6px; } .lang-code { display: none; } }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--paper-2); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}
.menu-btn { display: none; }

@media (max-width: 1300px) {
  /* Navnet bliver altid stående – på to linjer, så menuen kan være der */
  .brand-text strong { display: block; }
  .brand-text { font-size: .9rem; line-height: 1.05; }
  .nav a { padding: 8px 9px; font-size: .88rem; }
}
@media (max-width: 1140px) {
  .brand-text { display: inline; font-size: 1.02rem; line-height: 1.1; }
  .brand-text strong { display: inline; } /* én linje igen, når menuen er en burgermenu */
  .menu-btn { display: grid; }
  .js .nav {
    position: fixed; inset: 72px 0 auto 0; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .18s, transform .18s, visibility .18s;
    box-shadow: var(--shadow-l);
  }
  .js .nav.open { transform: none; opacity: 1; visibility: visible; }
  .js .nav ul { flex-direction: column; gap: 4px; }
  .js .nav a { padding: 12px 16px; font-size: 1.05rem; border-radius: 12px; }
  .nav { order: 3; width: 100%; }
  html:not(.js) .header-inner { flex-wrap: wrap; height: auto; padding-block: 12px; }
  html:not(.js) .nav ul { flex-wrap: wrap; }
  .header-tools { margin-left: auto; }
}

@media (max-width: 480px) {
  .header-inner { gap: 8px; height: 64px; }
  .js .nav { inset: 64px 0 auto 0; }
  .brand-text { font-size: .9rem; line-height: 1.05; }
  .brand-text strong { display: block; } /* to linjer – ellers er headeren bredere end en iPhone (390px) */
  .logo-mark { width: 30px; height: 30px; }
  .icon-btn { width: 36px; height: 36px; }
}

/* ---------- Søgning ---------- */
.search {
  width: min(560px, calc(100% - 32px)); margin: 12vh auto auto; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); color: var(--ink); box-shadow: var(--shadow-l);
}
.search::backdrop { background: rgb(10 8 6 / .45); backdrop-filter: blur(3px); }
.search-box { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.search-box svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.search-box input { flex: 1; border: 0; background: transparent; font: 500 1.1rem var(--font); color: var(--ink); outline: none; min-width: 0; }
kbd { font: 600 .72rem var(--mono); color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 6px; }
.search-results { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow: auto; }
.search-results a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.search-results a:hover, .search-results a[aria-selected="true"] { background: var(--paper-2); color: var(--ink); }
.search-results .r { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.search-results .none { padding: 12px; color: var(--ink-3); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: #14110e; color: #f6f2ea;
  padding-block: clamp(48px, 7vw, 96px) clamp(64px, 9vw, 120px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--hero-img, url("../../img/obk-hero.jpg")) center / cover no-repeat;
  opacity: .55; filter: saturate(.9); /* ikke højere, før galleribillederne er mindst 1600 px brede – ellers ses det, at de er strakt */
  animation: heroZoom 24s ease-out both;
}
/* Mørkt kun hvor teksten står (venstre) og i bunden ved nyhedsbåndet – billedet skal kunne ses til højre */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(20 17 14 / .92) 0%, rgb(20 17 14 / .78) 38%, rgb(20 17 14 / .3) 75%, rgb(20 17 14 / .2) 100%),
    linear-gradient(180deg, transparent 55%, #14110e 96%);
}
@media (max-width: 860px) {
  /* På mobil står teksten i hele bredden: mørkere oppefra og ned i stedet – og her passer lodrette billeder */
  /* Billedet fylder kun området bag teksten (ellers står motivet bag kortet med næste klubaften) og toner ud nedad */
  .hero::before { background-image: var(--hero-img-m, var(--hero-img, url("../../img/obk-hero.jpg"))); bottom: auto; height: 640px; background-position: center 45%; }
  .hero::after { background: linear-gradient(180deg, rgb(20 17 14 / .5) 0, rgb(20 17 14 / .7) 260px, rgb(20 17 14 / .9) 480px, #14110e 640px); }
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
/* Nyhedsticker i bunden af hero */
.ticker { display: flex; align-items: center; gap: 12px; margin-top: clamp(36px, 5vw, 56px); padding: 8px 10px 8px 8px; border-radius: 999px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); backdrop-filter: blur(6px); }
.tk-label { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tk-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: tkPulse 1.6s ease-in-out infinite; }
@keyframes tkPulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.tk-list { position: relative; flex: 1; min-width: 0; height: 1.6em; margin: 0; padding: 0; list-style: none; overflow: hidden; }
.tk-list li { position: absolute; inset: 0; opacity: 0; transform: translateY(70%); transition: opacity .45s ease, transform .45s ease; white-space: nowrap; overflow: hidden; line-height: 1.6; pointer-events: none; }
.tk-list li.on { opacity: 1; transform: none; pointer-events: auto; }
.tk-list li.out { opacity: 0; transform: translateY(-70%); }
.tk-list a { display: inline-block; white-space: nowrap; color: #d8d0c2; text-decoration: none; will-change: transform; }
.tk-list a b { color: #fff; }
.tk-list a:hover, .tk-list a:focus-visible { color: #ff8a9b; }
.tk-pause { flex: 0 0 auto; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: rgb(255 255 255 / .55); font-size: .7rem; cursor: pointer; }
.tk-pause:hover, .tk-pause[aria-pressed="true"] { color: #fff; background: rgb(255 255 255 / .1); }
@media (max-width: 600px) { .ticker { gap: 8px; } .tk-label { padding: 5px 9px; } }
@media (prefers-reduced-motion: reduce) { .tk-list li { transition: none; transform: none; } .tk-label::before { animation: none; } .tk-list { height: 3.2em; } .tk-list li, .tk-list a { white-space: normal; } }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: .3em; }
.hero h1 .serif { color: #ff8a9b; font-weight: 400; }
.hero .lead { color: #d8d0c2; }
.hero .eyebrow { color: #ff8a9b; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn.ghost { --fg: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .35); }
.hero .btn.ghost:hover { --fg: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; padding: 0; list-style: none; color: #cfc6b7; font-size: .95rem; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Bræt (interaktivt) ---------- */
.board-wrap { position: relative; }
.board {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 30px 40px rgb(0 0 0 / .5));
}
.board .frame { fill: var(--board-wood); }
.board .felt { fill: var(--board-felt); }
.board .pt-a { fill: var(--board-pt-a); }
.board .pt-b { fill: var(--board-pt-b); }
.board .bar { fill: #4f361f; }
/* Hvide brikker med tydelig mørk kant + skygge, så de kan ses på de lyse felter (også på mobil) */
.board .chk-w { fill: #fdfbf7; stroke: #4f4234; stroke-width: 2.4; filter: drop-shadow(0 1.5px 1.5px rgb(0 0 0 / .45)); }
.board .chk-b { fill: #1a1612; stroke: #5c5046; stroke-width: 1.6; filter: drop-shadow(0 1.5px 1.5px rgb(0 0 0 / .45)); }
/* Spejlvendt bræt (skolen, når man spiller sort): byt farverne tilbage */
.board.flipped .chk-w { fill: #1a1612; stroke: #5c5046; stroke-width: 1.6; }
.board.flipped .chk-b { fill: #fdfbf7; stroke: #4f4234; stroke-width: 2.4; }
.board .chk { transition: transform .55s cubic-bezier(.3,1.4,.5,1); }
.board-dice { position: absolute; right: 26%; top: 50%; translate: 50% -50%; display: flex; gap: 10px; pointer-events: none; }
.board-dice .die { width: clamp(30px, 5vw, 44px); height: auto; }
.die rect { fill: #fff; stroke: rgb(0 0 0 / .15); stroke-width: 2; }
.die circle { fill: #16130f; }
.board-dice .die rect { fill: #f8f4ec; }
.board-dice.rolling .die { animation: roll .6s cubic-bezier(.2,.8,.3,1.2); }
.board-dice.rolling .die:nth-child(2) { animation-delay: .07s; }
@keyframes roll {
  0% { transform: translate(-60px, -40px) rotate(-200deg) scale(.7); opacity: 0; }
  70% { transform: translate(4px, 2px) rotate(12deg) scale(1.05); opacity: 1; }
  100% { transform: none; }
}
.roll-row { display: flex; align-items: center; gap: 14px 18px; margin-top: 18px; flex-wrap: wrap; }
.roll-btn { flex-shrink: 0; }
.move-note { margin: 0; flex: 1; min-width: 200px; color: #d8d0c2; font-size: .95rem; line-height: 1.45; }
.move-note b { color: #fff; }
.move-note .mv { font-family: var(--mono); font-size: .9em; color: #ff8a9b; white-space: nowrap; }
.board .chk.moved { stroke: #ff8a9b; stroke-width: 2.5; }
.story-card {
  margin-top: 18px; padding: 18px 20px; border-radius: var(--radius);
  background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .12);
  backdrop-filter: blur(6px); color: #e9e2d5; font-size: .98rem; min-height: 5.2em;
}
.story-card .story-year { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ff8a9b; margin-bottom: 4px; }
.story-card a { color: #fff; }
.story-card .story-text { animation: fadeup .45s ease; }
/* Pilen i hjørnet: næste historie */
.story-card:has(.story-next) { position: relative; padding-right: 64px; }
.story-next {
  position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border-radius: 50%; border: 1px solid rgb(255 255 255 / .18); background: rgb(255 255 255 / .06); color: #ff8a9b;
  cursor: pointer; transition: background .2s, color .2s, transform .2s;
}
.story-next:hover { background: rgb(255 255 255 / .14); color: #fff; transform: scale(1.06); }
.story-next:focus-visible { outline: 2px solid #ff8a9b; outline-offset: 2px; }
.story-next svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.story-next.spin svg { animation: story-spin .5s cubic-bezier(.3, .8, .4, 1); }
@keyframes story-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .story-next.spin svg { animation: none; } }
[dir="rtl"] .story-card:has(.story-next) { padding-right: 20px; padding-left: 64px; }
[dir="rtl"] .story-next { right: auto; left: 12px; }
@keyframes fadeup { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Næste klubaften ---------- */
.next-strip { margin-top: -56px; position: relative; z-index: 2; }
.next-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px 32px; align-items: center;
  padding: clamp(20px, 3vw, 32px); border-radius: calc(var(--radius) + 6px);
  background: var(--card); box-shadow: var(--shadow-l); border: 1px solid var(--line);
}
.date-tile {
  display: grid; place-items: center; width: 92px; height: 98px; border-radius: 16px;
  background: var(--ink); color: var(--paper); text-align: center; line-height: 1;
}
.date-tile .wd { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ff8a9b; }
.date-tile .d { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.04em; margin: 2px 0; }
.date-tile .m { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.next-card h3 { font-size: 1.4rem; margin-bottom: .2em; }
.next-card p { margin: 0; color: var(--ink-2); }
.countdown { display: flex; gap: 8px; }
.countdown div { min-width: 64px; text-align: center; padding: 10px 6px; border-radius: 12px; background: var(--paper-2); }
.countdown b { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown span { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.next-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
@media (max-width: 860px) {
  .next-card { grid-template-columns: auto 1fr; }
  .countdown { grid-column: 1 / -1; }
  .countdown div { flex: 1; min-width: 0; }
}

/* ---------- Sektionshoved ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(24px, 4vw, 40px); flex-wrap: wrap; }
.section-head h2 { margin-bottom: .15em; }
.section-head .eyebrow { font-size: .88rem; }
.section-head .lead { margin: .3em 0 0; }
.more { font-weight: 700; text-decoration: none; white-space: nowrap; color: var(--red-ink); }
.more span { display: inline-block; transition: transform .15s; }
.more:hover span { transform: translateX(3px); }

/* ---------- Kort ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.card-pad { padding: clamp(18px, 2.4vw, 28px); }
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Tre veje ind i klubben */
.way { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.way:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-l); }
.way-img { aspect-ratio: 4 / 3; overflow: hidden; }
.way-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.way:hover .way-img img { transform: scale(1.04); }
.way .card-pad { flex: 1; display: flex; flex-direction: column; }
.way .tag { align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--red-soft); color: var(--red-ink); margin-bottom: 12px; }
.way h3 { font-size: 1.35rem; }
.way p { color: var(--ink-2); margin: 0; }
.way .go { margin-top: auto; padding-top: 16px; font-weight: 700; color: var(--red-ink); }

/* ---------- Nyheder ---------- */
.news-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; height: 100%; }
.news-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-l); }
/* WordPress-billederne er bannere i 768×335 – samme format her, så intet beskæres */
.news-img { aspect-ratio: 768 / 335; background: #fff; overflow: hidden; border-bottom: 1px solid var(--line); }
.news-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s ease; }
.news-card:hover .news-img img { transform: scale(1.03); }
.news-card .card-pad { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-meta { display: flex; gap: 10px; align-items: center; font-size: .82rem; color: var(--ink-3); font-weight: 600; }
.news-meta .cat { color: var(--red-ink); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.news-card h3 { font-size: 1.2rem; margin: 0; }
.news-card p { color: var(--ink-2); font-size: .96rem; margin: 0; }

.article { max-width: 760px; margin-inline: auto; }
.article-head { text-align: center; max-width: 860px; margin-inline: auto; }
.article-head h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.article-hero { max-width: 1000px; margin: 32px auto 40px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-l); }
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose img, .prose figure { border-radius: var(--radius-s); margin: 1.6em 0; max-width: 100%; height: auto; }
.prose figure img { margin: 0; }
.prose figcaption { font-size: .88rem; color: var(--ink-3); margin-top: 8px; }
.prose blockquote { margin: 1.6em 0; padding: .4em 0 .4em 1.2em; border-left: 3px solid var(--red); font-family: var(--serif); font-size: 1.2rem; font-style: italic; color: var(--ink-2); }
.prose a { color: var(--red-ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 8px; }
.prose iframe { max-width: 100%; }
.back-link { display: flex; width: max-content; gap: 6px; font-weight: 700; text-decoration: none; color: var(--ink-2); margin-bottom: 20px; }

.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 48px; }
.pager .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* ---------- Masterpoints ---------- */
.mp-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 960px) { .mp-layout { grid-template-columns: 1fr; } }

.standings { list-style: none; margin: 0; padding: 6px; counter-reset: none; }
.standings li {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px; position: relative;
}
.standings li + li { border-top: 1px solid var(--line); }
.standings li:hover { background: var(--paper-2); }
/* Top 8 går videre til årets finale */
.standings li.fin { background: color-mix(in srgb, var(--up) 11%, var(--card)); }
.standings li.out { background: color-mix(in srgb, var(--down) 8%, var(--card)); }
.standings li.fin:hover { background: color-mix(in srgb, var(--up) 18%, var(--card)); }
.standings li.out:hover { background: color-mix(in srgb, var(--down) 13%, var(--card)); }
.standings li + li { margin-top: 3px; }
.standings li.cut { display: block; padding: 8px 12px 4px; text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--up); background: none; }
.standings li.cut, .standings li.cut + li { border-top: 0; }
.standings li.cut span { display: inline-block; padding-top: 6px; border-top: 2px dashed var(--up); }
.standings .pos { font-weight: 800; font-size: 1.05rem; color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; }
.standings li:nth-child(1) .pos { color: var(--gold); }
.standings .who { min-width: 0; }
.standings .who a { font-weight: 700; text-decoration: none; }
.standings .who small { display: block; color: var(--ink-3); font-size: .82rem; }
.standings .bar { display: block; height: 4px; border-radius: 4px; background: var(--paper-2); margin-top: 6px; overflow: hidden; }
.standings .bar i { display: block; height: 100%; border-radius: 4px; background: var(--red); }
.standings .pts { font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.standings .pts small { font-size: .72rem; font-weight: 600; color: var(--ink-3); margin-left: 2px; }

.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 8px; margin-top: 12px; }
.podium .step { display: flex; flex-direction: column; align-items: stretch; text-align: center; min-width: 0; }
.podium .step > a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium .step a { font-weight: 700; text-decoration: none; font-size: .95rem; }
.podium .step small { display: block; color: var(--ink-3); font-size: .8rem; margin-bottom: 6px; }
.podium .block {
  display: grid; place-items: center; border-radius: 10px 10px 4px 4px;
  font-weight: 800; font-size: 1.4rem; color: #fff;
}
.podium .p1 .block { height: 96px; background: linear-gradient(180deg, #d9a92a, #a97a10); }
.podium .p2 .block { height: 70px; background: linear-gradient(180deg, #a8a29a, #7c766d); }
.podium .p3 .block { height: 52px; background: linear-gradient(180deg, #b77b46, #8a5427); }
.podium .avatar { margin: 0 auto 8px; }

.latest-list { list-style: none; padding: 0; margin: 0; }
.latest-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.latest-list li:last-child { border-bottom: 0; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }

/* Resultatfarver (kontroloversigt) */
.r-main-win   { --c: #d4a017; }
.r-main-final { --c: #9a948b; }
.r-main-semi  { --c: #b0703a; }
.r-cons-win   { --c: #2a78d6; }
.r-cons-loss  { --c: #86b6ef; }
.r-part       { --c: var(--line-2); }
.r-other      { --c: var(--ink-3); }
.chip .dot { background: var(--c); }

.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.matrix { border-collapse: separate; border-spacing: 0; font-size: .85rem; min-width: 100%; }
.matrix th, .matrix td { padding: 6px 4px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.matrix thead th { position: sticky; top: 0; background: var(--paper-2); font-weight: 700; color: var(--ink-2); font-size: .72rem; z-index: 1; }
.matrix thead th.t-mon { color: var(--red-ink); }
.matrix .name { position: sticky; left: 0; background: var(--card); text-align: left; padding-left: 14px; padding-right: 14px; font-weight: 600; z-index: 2; }
.matrix thead .name { z-index: 3; background: var(--paper-2); }
.matrix .tot { font-weight: 800; font-variant-numeric: tabular-nums; padding-inline: 12px; }
.matrix .cell span {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px;
  background: color-mix(in srgb, var(--c) 28%, transparent); color: var(--ink); font-weight: 800; font-size: .75rem;
  box-shadow: inset 0 0 0 1.5px var(--c);
}
.matrix .cell.r-part span { background: transparent; box-shadow: none; color: var(--ink-3); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }

/* ---------- Faneblade / filtre ---------- */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); gap: 2px; flex-wrap: wrap; }
.seg a, .seg button {
  padding: 7px 14px; border-radius: 999px; font: 600 .9rem var(--font); color: var(--ink-2);
  text-decoration: none; border: 0; background: transparent; cursor: pointer;
}
.seg a:hover, .seg button:hover { color: var(--ink); }
.seg [aria-current="true"], .seg [aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 24px; }

/* ---------- Statistik ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { padding: 18px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.kpi b { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi span { font-size: .85rem; color: var(--ink-3); font-weight: 600; }

.stat-group { margin-top: 48px; }
.stat-group > h2 { font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.stat-group > p { color: var(--ink-2); }

.rank-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
.rank-card > header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.rank-card h3 { margin: 0; font-size: 1.08rem; }
.rank-card header p { margin: 2px 0 0; font-size: .85rem; color: var(--ink-3); line-height: 1.4; }
.rank-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--paper-2); font-size: 1.2rem; }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.rank-list .pos { color: var(--ink-3); font-weight: 700; font-variant-numeric: tabular-nums; }
.rank-list .who { min-width: 0; }
.rank-list .who .vs { color: var(--ink-3); font-size: .85rem; }
.rank-list .who small { color: var(--ink-3); font-size: .8rem; }
.rank-list .val { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank-list .lead-row { padding-block: 10px; }
.rank-list .lead-row .who { font-weight: 700; }
.rank-list .lead-row .val { font-size: 1.15rem; }
.rank-list a { text-decoration: none; }
.rank-list a:hover { text-decoration: underline; }
.up { color: var(--up); }
.down { color: var(--down); }
.empty { color: var(--ink-3); font-size: .95rem; margin: 8px 0 0; }
.badge-rec { display: inline-flex; align-items: center; gap: 3px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; padding: 1px 6px; border-radius: 6px; background: var(--red-soft); color: var(--red-ink); vertical-align: 1px; margin-left: 4px; }

/* ---------- Grafer ---------- */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis-text { fill: var(--ink-3); font: 500 11px var(--font); }
.chart .series { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { opacity: .12; }
.chart .muted-series { stroke: var(--line-2); stroke-width: 1.5; }
.chart .hair { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .dot { stroke: var(--card); stroke-width: 2; }
.chart-tip {
  position: absolute; pointer-events: none; z-index: 5; min-width: 140px;
  padding: 10px 12px; border-radius: 10px; background: var(--ink); color: var(--paper);
  font-size: .82rem; line-height: 1.4; box-shadow: var(--shadow-l);
  transform: translate(-50%, calc(-100% - 14px)); white-space: nowrap;
}
.chart-tip b { font-size: 1rem; font-variant-numeric: tabular-nums; }
.chart-tip .k { display: inline-block; width: 12px; height: 2px; vertical-align: middle; margin-right: 6px; border-radius: 2px; }
.chart-tip .row { display: flex; justify-content: space-between; gap: 16px; }
.chart-tip .row span { opacity: .75; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chart-legend button {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font: 600 .82rem var(--font); cursor: pointer;
}
.chart-legend button i { width: 14px; height: 3px; border-radius: 2px; background: var(--c, var(--line-2)); }
.chart-legend button[aria-pressed="false"] { opacity: .55; }
.chart-legend button[aria-pressed="false"] i { background: var(--line-2); }
.chart-legend button:hover { border-color: var(--line-2); color: var(--ink); }

/* ---------- Spillere ---------- */
.avatar {
  position: relative; display: inline-grid; place-items: center; flex-shrink: 0;
  border-radius: 50%; overflow: hidden; background: var(--ink); color: var(--paper);
  font-weight: 800; letter-spacing: -0.02em;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.avatar-sm { width: 32px; height: 32px; font-size: .75rem; }
.avatar-md { width: 48px; height: 48px; font-size: 1rem; }
.avatar-lg { width: 112px; height: 112px; font-size: 2.2rem; box-shadow: 0 0 0 4px var(--card), 0 0 0 6px var(--red); }

.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.player-card { display: flex; gap: 14px; align-items: center; padding: 16px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.player-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-l); }
.player-card .nm { font-weight: 700; line-height: 1.25; }
.player-card .meta { font-size: .85rem; color: var(--ink-3); }
.player-card .rt { margin-left: auto; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.player-card .rt small { display: block; font-size: .72rem; color: var(--ink-3); font-weight: 600; }
.player-card.inactive { opacity: .6; }

.profile-head { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.profile-head h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0; }
.profile-head .sub { color: var(--ink-2); margin-top: 6px; display: flex; gap: 8px 16px; flex-wrap: wrap; }
.rating-big { text-align: right; }
.rating-big b { display: block; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.rating-big span { font-size: .85rem; color: var(--ink-3); font-weight: 600; }
@media (max-width: 760px) {
  .profile-head { grid-template-columns: auto 1fr; }
  .rating-big { grid-column: 1 / -1; text-align: left; }
}
.form-row { display: flex; gap: 4px; flex-wrap: wrap; }
.profile-head > div { min-width: 0; }
.profile-head h1 { overflow-wrap: break-word; }
@media (max-width: 480px) {
  .profile-head { gap: 16px; }
  .profile-head .avatar-lg { width: 80px; height: 80px; font-size: 1.7rem; }
  .profile-head h1 { font-size: 1.75rem; }
  .profile-head .form-row { gap: 3px; }
  .profile-head .form-row i { width: 19px; height: 19px; font-size: .65rem; }
}
.form-row i { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-size: .7rem; font-weight: 800; color: #fff; }
.form-row .W { background: var(--up); }
.form-row .L { background: var(--down); }

.persona { display: flex; gap: 14px; align-items: center; }
.persona .label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.persona .nm { font-weight: 700; font-size: 1.1rem; }
.persona .rec { font-size: .88rem; color: var(--ink-2); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table .r { text-align: right; font-variant-numeric: tabular-nums; }
.table tbody tr:hover { background: var(--paper-2); }
/* Smal skærm: skjul de mindst vigtige kolonner (.hide-sm) og stram cellerne, så ± og Top kan ses uden at scrolle */
@media (max-width: 480px) {
  .table .hide-sm { display: none; }
  .table th, .table td { padding: 9px 6px; }
}

/* Duel */
.duel-pick { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.duel-pick select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: 600 1rem var(--font); }
.duel-vs { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--red-ink); }
.duel-score { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; text-align: center; margin: 32px 0; }
.duel-score .side .nm { font-weight: 800; font-size: 1.2rem; margin-top: 10px; }
.duel-score .side .avatar { margin-inline: auto; }
.duel-score .big { font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.duel-score .big .sep { color: var(--ink-3); margin-inline: .15em; }
.duel-score .big { white-space: nowrap; }
.duel-score .side { min-width: 0; overflow-wrap: break-word; }
.duel-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--paper-2); gap: 2px; }
.duel-bar i:first-child { background: var(--red); }
.duel-bar i:last-child { background: var(--ink); }
@media (max-width: 640px) { .duel-pick { grid-template-columns: 1fr; } .duel-vs { text-align: center; } }
@media (max-width: 480px) {
  .duel-score { gap: 8px; margin: 20px 0; }
  .duel-score .avatar-lg { width: 84px; height: 84px; }
  .duel-score .side .nm { font-size: 1.05rem; }
  .duel-score .big { font-size: 2.6rem; }
  .duel-score .big .sep { margin-inline: .08em; }
}

/* ---------- Kalender ---------- */
.cal-month { margin-top: 40px; }
.cal-month h2 { font-size: 1.3rem; text-transform: capitalize; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.cal-list { list-style: none; margin: 0; padding: 0; }
.cal-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cal-item .day { text-align: center; line-height: 1.05; }
.cal-item .day b { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.04em; }
.cal-item .day span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.cal-item h3 { margin: 0 0 2px; }
.cal-item p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.cal-item.hl { background: linear-gradient(90deg, var(--red-soft), transparent 70%); border-radius: 12px; padding-inline: 12px; border-bottom-color: transparent; }
.cal-item.hl .day b { color: var(--red-ink); }
@media (max-width: 640px) { .cal-item { grid-template-columns: 60px 1fr; } .cal-item .btn { grid-column: 2; justify-self: start; } }

/* ---------- Kom og spil ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.photo { border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: var(--shadow-l); aspect-ratio: 1 / 1; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.facts { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.facts li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.facts svg { width: 22px; height: 22px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-weight: 700; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.5rem; font-weight: 400; color: var(--red); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 0 0 16px; max-width: 70ch; }
.lang-card { display: grid; grid-template-columns: 1fr 1fr; }
.lang-card > div { padding: clamp(20px, 3vw, 36px); }
.lang-card > div + div { border-left: 1px solid var(--line); }
@media (max-width: 640px) { .lang-card { grid-template-columns: 1fr; } .lang-card > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- På denne dag / citat ---------- */
.quote-band { background: var(--ink); color: var(--paper); }
.quote-band .eyebrow { color: #ff8a9b; }
.quote-band blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 2rem); line-height: 1.4; max-width: 40ch; }
.quote-band blockquote a { color: #fff; }

/* ---------- Side-hero (undersider) ---------- */
.page-hero { padding-block: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 40px); }
.page-hero h1 { margin-bottom: .2em; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(48px, 8vw, 96px); background: #14110e; color: #d8d0c2; font-size: .95rem; }
main:has(> .section.alt:last-child) + .site-footer { margin-top: 0; }
/* Backgammon-tunger i overgangen til sidefoden */
.board-edge {
  height: 28px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='28'%3E%3Cpath d='M0 0h48L24 28z' fill='%23c8102e'/%3E%3C/svg%3E") 0 0 / 96px 28px repeat-x,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='28'%3E%3Cpath d='M0 0h48L24 28z' fill='%23e9e1d0'/%3E%3C/svg%3E") 48px 0 / 96px 28px repeat-x,
    #14110e;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: 48px 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.site-footer .logo-mark { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 36ch; color: #a9a091; }
.footer-h { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #8d8475; margin-bottom: 14px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #f3eee4; text-decoration: none; }
.site-footer a:hover { color: #ff8a9b; }
.site-footer .muted { color: #8d8475; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #2a251f; font-size: .85rem; }

/* ---------- Fejlside ---------- */
.error-page { text-align: center; padding-block: 96px; }
.error-page .lead { margin-inline: auto; }
.dice-pair { display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; }
.dice-pair .die { width: 56px; }
.dice-pair .die rect { fill: var(--card); stroke: var(--line-2); }
.dice-pair .die circle { fill: var(--red); }
.debug { text-align: left; background: var(--paper-2); padding: 16px; border-radius: 10px; overflow-x: auto; font-size: .8rem; }

/* ---------- Scroll-animation ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ======================================================
   Admin
   ====================================================== */
.admin-bar { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.admin-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 12px; }
.admin-user { display: flex; align-items: center; gap: 12px; margin: 0; font-size: .9rem; }
.admin-main { padding-block: 32px 16px; }
.admin-main h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.alert { padding: 12px 16px; border-radius: 12px; font-weight: 600; margin-bottom: 16px; border: 1px solid; }
.alert-ok   { background: color-mix(in srgb, var(--up) 12%, var(--card)); border-color: color-mix(in srgb, var(--up) 40%, transparent); }
.alert-warn { background: color-mix(in srgb, var(--gold) 14%, var(--card)); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.alert-err  { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.alert ul { margin: 6px 0 0; padding-left: 20px; font-weight: 500; }

.field { display: grid; gap: 6px; }
.field label, .lbl { font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.input, .admin select {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--card); color: var(--ink); font: 500 1rem var(--font);
}
.input:focus, .admin select:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.input.num { width: 7em; text-align: right; font-variant-numeric: tabular-nums; }
.form-row-inline { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.form-row-inline .field { flex: 1; min-width: 140px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn.danger { --bg: var(--red-soft); --fg: var(--red-ink); box-shadow: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.login-card { max-width: 420px; margin: 8vh auto; }
.login-card .logo-mark { width: 48px; height: 48px; margin-bottom: 12px; }

.status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.status-chip.done { background: color-mix(in srgb, var(--up) 15%, transparent); color: var(--up); }
.status-chip.todo { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.status-chip.future { background: var(--paper-2); color: var(--ink-3); }
.status-chip.locked { background: var(--ink); color: var(--paper); }

.reg-list { list-style: none; margin: 0; padding: 0; }
.reg-list li { display: grid; grid-template-columns: 1fr 220px; gap: 12px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.reg-list li.changed { background: color-mix(in srgb, var(--gold) 12%, transparent); border-radius: 8px; }
.reg-list li.has-code .nm { font-weight: 700; }
.reg-list .nm small { color: var(--ink-3); font-weight: 500; }
.reg-list select { padding: 7px 10px; }
.reg-list select.c-MAIN_WIN { box-shadow: inset 4px 0 0 #d4a017; }
.reg-list select.c-MAIN_FINAL_LOSS { box-shadow: inset 4px 0 0 #9a948b; }
.reg-list select.c-MAIN_SEMI_LOSS { box-shadow: inset 4px 0 0 #b0703a; }
.reg-list select.c-CONSO_WIN { box-shadow: inset 4px 0 0 #2a78d6; }
.reg-list select.c-CONSO_LOSS { box-shadow: inset 4px 0 0 #86b6ef; }
.reg-list select.c-PARTICIPATION { box-shadow: inset 4px 0 0 var(--line-2); }
@media (max-width: 560px) { .reg-list li { grid-template-columns: 1fr; gap: 4px; } }
.sticky-save {
  position: sticky; bottom: 0; z-index: 5; margin-top: 16px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-l);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.log-list { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.log-list li { display: grid; grid-template-columns: 150px 110px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.log-list .t { color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .log-list li { grid-template-columns: 1fr; gap: 2px; } }

/* Registrering: deltager-chips og placeringer */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pick {
  position: relative; display: flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--card);
  cursor: pointer; user-select: none; font-weight: 600; transition: background .12s, border-color .12s, color .12s;
}
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span::before {
  content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px;
  border-radius: 5px; border: 1.5px solid var(--line-2); background: var(--paper);
}
.pick:hover { border-color: var(--ink-3); }
.pick.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pick.on span::before { background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--red); }
.pick:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }
.pick[hidden] { display: none; }
.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .role-grid { grid-template-columns: 1fr; } }
.role select { border-left: 5px solid var(--c, var(--line-2)); }
.role-MAIN_WIN { --c: #d4a017; }
.role-MAIN_FINAL_LOSS { --c: #9a948b; }
.role-MAIN_SEMI_LOSS { --c: #b0703a; }
.role-CONSO_WIN { --c: #2a78d6; }
.role-CONSO_LOSS { --c: #86b6ef; }

/* DBgF-kørsel */
.run-log { display: block; width: 100%; height: 360px; border: 0; border-radius: 12px; background: #14110e; color: #e9e2d5; padding: 12px; overflow: auto; font: 13px/1.5 var(--mono); white-space: pre-wrap; }
iframe.run-log { padding: 0; }

/* Næste klubaften i hero – kun mobil */
.next-mobile { display: none; }
@media (max-width: 900px) {
  .next-mobile {
    display: flex; gap: 16px; align-items: center; margin-top: 24px; padding: 14px;
    border-radius: var(--radius); text-decoration: none; color: #f6f2ea;
    background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  }
  .next-mobile:hover { color: #fff; border-color: rgb(255 255 255 / .35); }
  .next-mobile .date-tile { width: 72px; height: 80px; flex-shrink: 0; background: #f6f2ea; color: #16130f; }
  .next-mobile .date-tile .wd { color: var(--red); }
  .next-mobile .date-tile .d { font-size: 2rem; }
  .nm-body { display: flex; flex-direction: column; gap: 1px; line-height: 1.35; min-width: 0; font-size: .95rem; }
  .nm-label { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ff8a9b; margin-bottom: 2px; }
  .nm-body strong { font-size: 1.15rem; color: #fff; }
  .nm-place { color: #cfc6b7; }
  .nm-count { margin-top: 4px; font-size: .85rem; color: #cfc6b7; font-variant-numeric: tabular-nums; }
  .nm-count b { color: #fff; }
  .next-strip { display: none; }
  .hero-facts { display: none; }
  .hero { padding-bottom: clamp(48px, 9vw, 120px); }
}

/* ======================================================
   Kampe / Månedens kamp
   ====================================================== */
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; flex-shrink: 0; }
.swatch.w { background: #f6f2ea; box-shadow: inset 0 0 0 1.5px #b9ad97; }
.swatch.b { background: #1a1612; box-shadow: inset 0 0 0 1.5px #000; }
:root[data-theme="dark"] .swatch.b { box-shadow: inset 0 0 0 1.5px #5a5248; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .swatch.b { box-shadow: inset 0 0 0 1.5px #5a5248; } }

.match-board { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 28px rgb(0 0 0 / .35)); }
.match-board .tray { fill: #3b2918; }
.match-board .pt-num { fill: #e9dcc4; font: 600 10px var(--font); opacity: .55; }
.match-board .chk { transition: transform .5s cubic-bezier(.3,1.2,.5,1), r .3s; }
.match-board .chk-off { r: 7px; }
.mb-cube rect { fill: #f8f4ec; stroke: #16130f; stroke-width: 1.5; }
.mb-cube text { font: 800 15px var(--font); fill: #16130f; }
.mb-cube { transition: transform .4s ease; }
.mb-die rect { fill: #f8f4ec; stroke: rgb(0 0 0 / .2); stroke-width: 3; }
.mb-die circle { fill: #16130f; }
.mb-die.b rect { fill: #1f1a15; stroke: #000; }
.mb-die.b circle { fill: #f6f2ea; }
.flipped .mb-die.w rect { fill: #1f1a15; stroke: #000; }
.flipped .mb-die.w circle { fill: #f6f2ea; }
.flipped .mb-die.b rect { fill: #f8f4ec; stroke: rgb(0 0 0 / .2); }
.flipped .mb-die.b circle { fill: #16130f; }

.match-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 18px 24px; margin-bottom: 24px; }
.ms-side { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; min-width: 0; }
.ms-side.b { justify-content: flex-end; text-align: right; }
.ms-side .nm { overflow: hidden; text-overflow: ellipsis; }
.ms-side.winner .nm::after { content: " 🏆"; }
.ms-result { text-align: center; line-height: 1; }
.ms-result b { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ms-result span { margin: 0 .25em; color: var(--ink-3); font-size: 1.6rem; }
.ms-result small { display: block; margin-top: 6px; color: var(--ink-3); font-size: .78rem; font-weight: 600; }
@media (max-width: 560px) { .match-score { grid-template-columns: 1fr; text-align: center; } .ms-side, .ms-side.b { justify-content: center; } }

.match-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .match-layout { grid-template-columns: 1fr; } }
.match-viewer { scroll-margin-top: 90px; }
.step-meta { margin: 14px 0 2px; font-size: .85rem; }
.step-info { margin: 0; font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: 8px; min-height: 1.6em; }
.step-info::before { content: ""; width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.step-info.w::before { background: #f6f2ea; box-shadow: inset 0 0 0 1.5px #b9ad97; }
.step-info.b::before { background: #1a1612; }
.step-err { margin: 6px 0 0; min-height: 1.7em; font-size: .92rem; }
.step-err.big, .step-err.small, .step-err.ok { display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 700; }
.step-err.big { background: var(--red-soft); color: var(--red-ink); }
.step-err.small { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.step-err.ok { background: color-mix(in srgb, var(--up) 14%, transparent); color: var(--up); }
.step-controls { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.step-controls input[type=range] { flex: 1; min-width: 120px; accent-color: var(--red); }
.step-controls .icon-btn { background: var(--paper-2); font-size: .95rem; }
.game-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.game-chips .chip { border: 1px solid var(--line); cursor: pointer; font-variant-numeric: tabular-nums; min-width: 32px; justify-content: center; }
.game-chips .chip[aria-current="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.match-stats th { text-align: center; font-size: .78rem; }
.match-stats td { font-variant-numeric: tabular-nums; font-weight: 600; }
.match-stats td.win { color: var(--up); font-weight: 800; }
.worst-list { list-style: none; margin: 0; padding: 0; }
.worst-list li + li { border-top: 1px solid var(--line); }
.worst-list button { display: grid; grid-template-columns: 64px 1fr; gap: 10px; width: 100%; padding: 10px 4px; text-align: left; border: 0; background: none; color: var(--ink); font: inherit; font-size: .92rem; cursor: pointer; border-radius: 8px; }
.worst-list button:hover { background: var(--paper-2); }
.worst-list .err { font-weight: 800; color: var(--red-ink); font-variant-numeric: tabular-nums; }
.linklike { border: 0; background: none; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); cursor: pointer; }
.match-select { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.match-select select { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: 600 .92rem var(--font); max-width: min(420px, 70vw); }
.match-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.match-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-l); }
.match-card.featured { box-shadow: inset 0 0 0 2px var(--gold), var(--shadow); }
.match-card .tag { align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.match-card h3 { margin: 0; }
.mc-score { display: flex; gap: 8px; align-items: baseline; margin: 4px 0; font-size: 1.05rem; }
.mc-score .win { font-weight: 800; }

/* Video */
.yt { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow-l); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-cover { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; color: #fff; text-align: left; font: inherit; }
.yt-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .3s; opacity: .9; }
.yt-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(0 0 0 / .78)); }
.yt-cover:hover img { transform: scale(1.03); opacity: 1; }
.yt-play { position: absolute; left: 50%; top: 50%; width: clamp(60px, 10vw, 84px); aspect-ratio: 1; translate: -50% -50%; display: grid; place-items: center; border-radius: 50%; background: var(--red); box-shadow: 0 10px 30px rgb(0 0 0 / .45); transition: transform .2s; z-index: 1; }
.yt-play svg { width: 44%; fill: #fff; margin-left: 8%; }
.yt-cover:hover .yt-play, .yt-cover:focus-visible .yt-play { transform: scale(1.08); }
.yt-caption { position: absolute; left: clamp(14px, 3vw, 24px); right: clamp(14px, 3vw, 24px); bottom: clamp(12px, 2.5vw, 20px); z-index: 1; font-weight: 800; font-size: clamp(1rem, 2.2vw, 1.4rem); line-height: 1.25; text-shadow: 0 1px 8px rgb(0 0 0 / .5); }
.yt-caption small, .yt-meta small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #ffd27a; margin-bottom: 2px; }
.yt-meta small { color: var(--red-ink); }
.yt-note { margin: 10px 2px 0; font-size: .84rem; color: var(--ink-3); }
.yt-note a { color: inherit; font-weight: 700; }
.yt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 28px; }
.yt-pick { display: flex; flex-direction: column; gap: 8px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; border-radius: var(--radius-s); }
.yt-thumb { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-s); overflow: hidden; background: var(--paper-2); }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.yt-pick:hover .yt-thumb img { transform: scale(1.05); }
.yt-pick[aria-current] .yt-thumb { box-shadow: 0 0 0 3px var(--red); }
.yt-meta { display: flex; flex-direction: column; gap: 1px; padding: 0 2px; }
.yt-meta strong { font-size: .95rem; line-height: 1.3; }
.yt-meta em { font-style: normal; font-size: .8rem; color: var(--ink-3); }
.yt-home { display: grid; grid-template-columns: 1.9fr 1fr; gap: 24px; align-items: start; }
.yt-list.compact { margin-top: 0; grid-template-columns: 1fr; gap: 10px; }
.yt-list.compact .yt-pick { flex-direction: row; align-items: center; gap: 12px; padding: 6px; }
.yt-list.compact .yt-pick:hover, .yt-list.compact .yt-pick[aria-current] { background: var(--card); box-shadow: var(--shadow); }
.yt-list.compact .yt-thumb { flex: 0 0 120px; }
.yt-list.compact .yt-pick[aria-current] .yt-thumb { box-shadow: none; }
@media (max-width: 900px) { .yt-home { grid-template-columns: 1fr; } }
.sub-h { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 .5em; }
.yt-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.yt-obk { margin: 0 2px; font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.yt-obk::before { content: "♦ "; color: var(--red); }
.yt-obk a { color: var(--red-ink); }
.yt-list.compact .yt-obk { margin-left: 138px; margin-top: -4px; }

/* Backgammonskolen */
.sk-bar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 18px; }
.sk-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.sk-filters .chip { border: 1px solid var(--line); cursor: pointer; font: inherit; font-size: .85rem; font-weight: 700; padding: 6px 14px; }
.sk-filters .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sk-score { display: flex; gap: 14px; align-items: center; margin-left: auto; font-size: .92rem; font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.sk-card { display: grid; grid-template-columns: 1.25fr 1fr; overflow: hidden; }
.sk-card > div { padding: clamp(18px, 3vw, 28px); }
.sk-panel { border-left: 1px solid var(--line); }
@media (max-width: 900px) { .sk-card { grid-template-columns: 1fr; } .sk-panel { border-left: 0; border-top: 1px solid var(--line); } .sk-score { margin-left: 0; } }
.sk-scorecard { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 4px; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-s); background: var(--paper-2); }
.sk-scorecard > div { display: grid; justify-items: center; text-align: center; gap: 0; padding: 0 8px; }
.sk-scorecard small { font-size: .72rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.sc-side .nm { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.sc-side b { font-size: 2rem; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.sc-mid { border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); }
.sc-mid b { font-size: 1.25rem; font-weight: 800; line-height: 1.1; }
.sc-cube { border-left: 1px solid var(--line-2); }
.sc-cube span { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 3px; border-radius: 7px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .sk-scorecard { padding: 10px 6px; } .sk-scorecard > div { padding: 0 4px; } .sc-side b { font-size: 1.6rem; } .sc-side .nm { font-size: .8rem; gap: 4px; } .sk-scorecard small { font-size: .64rem; letter-spacing: .02em; } }
.sk-q { font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.35; margin: 0 0 16px; }
.sk-choices { display: grid; gap: 8px; }
.sk-choice { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: var(--radius-s); background: var(--card); color: var(--ink); font: inherit; font-weight: 700; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.sk-choice:hover { border-color: var(--ink); }
.sk-choice.selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--paper-2); }
.sk-choice.selected kbd { background: var(--ink); color: var(--paper); }
.sk-choice .go { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--red); color: #fff; font-family: var(--font); font-size: .82rem; font-weight: 800; }
.sk-choice.selected:hover .go { background: var(--red-ink); }
.sk-choice .go { animation: sk-pop .5s ease-out; white-space: nowrap; }
@keyframes sk-pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .sk-choice .go { animation: none; } }
.sk-help { margin: -6px 0 14px; font-size: .9rem; color: var(--ink-2); }
.sk-choice:active { transform: scale(.99); }
.sk-choice kbd { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--paper-2); color: var(--ink-3); font: 700 .78rem var(--font); }
.sk-choice .t { font-family: var(--mono); font-size: 1rem; }
.sk-choice .l { margin-left: auto; font-size: .85rem; font-variant-numeric: tabular-nums; }
.sk-choice .pl { flex-basis: 100%; padding-left: 36px; font-size: .75rem; font-weight: 600; color: var(--ink-3); }
.sk-choice.right { border-color: var(--up); background: color-mix(in srgb, var(--up) 10%, var(--card)); }
.sk-choice.right .l { color: var(--up); }
.sk-choice.wrong { border-color: var(--down); background: color-mix(in srgb, var(--down) 9%, var(--card)); }
.sk-choice.wrong .l { color: var(--down); }
.sk-choice.other { opacity: .75; }
.sk-choice.right, .sk-choice.wrong, .sk-choice.other { cursor: default; }
.sk-choices.browse .sk-choice { cursor: pointer; }
.sk-choices.browse .sk-choice:hover, .sk-choice.showing { opacity: 1; box-shadow: inset 0 0 0 1px currentColor; }
.sk-choice.showing .t::after { content: "  👁"; font-family: var(--font); }
/* Spil mod computeren (forsidens hero) */
.game-board .game-hit { fill: transparent; cursor: pointer; }
.game-board .game-hl { pointer-events: none; }
.game-board .game-src { fill: none; stroke: #ffc928; stroke-width: 2.5; stroke-dasharray: 5 4; opacity: .85; }
.game-board .mb-die { transition: opacity .25s; }
.game-board .mb-die.used { opacity: .35; }
.game [hidden] { display: none !important; }
/* Forstør: spillet over hele skærmen, brættet så stort som muligt (660×400 + plads til tekst under) */
.game-turn-hint { display: none; }
html.game-full-open, html.game-full-open body { overflow: hidden; }
.game.game-full {
  position: fixed; inset: 0; z-index: 1000; margin: 0; overflow: auto;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  background: #14110e;
}
.game.game-full .game-table { width: min(100%, calc((100dvh - 110px) * 1.65 + 50px)); }
.game.game-full .roll-row, .game.game-full .game-score, .game.game-full .game-fb { width: min(100%, calc((100dvh - 110px) * 1.65 + 50px)); }
.game.game-full .roll-row { margin-top: 8px; }
/* På tværs: brættet til venstre i fuld højde, tekst og knapper i en smal kolonne til højre */
@media (orientation: landscape) {
  .game.game-full { display: grid; grid-template-columns: auto minmax(150px, 220px); grid-template-rows: auto auto; align-content: center; justify-content: center; column-gap: 14px; }
  .game.game-full .game-table { grid-row: 1 / span 3; align-self: center; width: min(calc(100vw - 260px), calc((100dvh - 24px) * 1.65 + 50px)); }
  .game.game-full .game-fb { width: auto; }
  .game.game-full .roll-row, .game.game-full .game-score { width: auto; }
  .game.game-full .roll-row { align-self: end; margin: 0; }
  .game.game-full .move-note { min-width: 0; font-size: .88rem; }
  .game.game-full .game-score { align-self: start; font-size: .85rem; }
}
@media (orientation: portrait) { .game.game-full .game-turn-hint { display: block; margin: 14px 0 0; color: #cfc6b7; font-size: .9rem; } }
/* Fortryd / Spil oven på brættet (som på Backgammon Galaxy) */
.game [data-game-board] { position: relative; container-type: inline-size; }
.game-overlay { position: absolute; inset: 0; pointer-events: none; }
.game-ob {
  position: absolute; top: 50%; translate: -50% -50%; pointer-events: auto;
  padding: .5em 1.1em; border: 2px solid rgb(255 255 255 / .85); border-radius: 10px;
  background: rgb(18 14 10 / .82); color: #fff; font: 800 clamp(.8rem, 2.2vw, 1.05rem) var(--font); letter-spacing: .02em;
  cursor: pointer; box-shadow: 0 6px 16px rgb(0 0 0 / .35); animation: game-ob-in .25s ease-out;
  font-size: clamp(.68rem, 3cqi, 1.05rem); /* følger brættets størrelse */
}
.game-ob:hover { background: rgb(18 14 10 / .95); }
.game-ob.undo { left: 23.5%; }
.game-ob.play { left: 68.9%; background: var(--red); border-color: #fff; }
.game-ob.play:hover { background: var(--red-ink); }
.game-ob.double { left: 23.5%; background: #f6f2ea; color: #16130f; border-color: #16130f; }
.game-ob.double:hover { background: #fff; }
.game-ob.take { left: 23.5%; background: #17803d; }
.game-ob.take:hover { background: #12692f; }
.game-ob.pass { left: 68.9%; }
.game-ob.roll { left: 68.9%; background: #f6f2ea; color: #16130f; border-color: #16130f; padding: .5em 1.5em; }
.game-ob.roll:hover { background: #fff; }
.game-ob.roll.big { left: 45.5%; padding: .7em 1.6em; font-size: clamp(.85rem, 3.8cqi, 1.2rem); background: var(--red); color: #fff; border-color: #fff; }
.game-ob.roll.big:hover { background: var(--red-ink); }
@keyframes game-ob-in { from { opacity: 0; scale: .85; } }
@media (prefers-reduced-motion: reduce) { .game-ob { animation: none; } }
.game .roll-row { margin-top: 14px; }
/* Pip count i baren */
.game-board .game-pip { fill: #f6f2ea; font: 800 15px var(--font); font-variant-numeric: tabular-nums; pointer-events: none; paint-order: stroke; stroke: #2a1c10; stroke-width: 3px; }

/* Professor B. Gammon stort på brættet før spillet (og efter hvert spil) */
.game-intro {
  position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(8px, 2.4cqi, 16px); border-radius: 22px; background: radial-gradient(circle at 50% 45%, rgb(20 15 10 / .55), rgb(20 15 10 / .25) 70%);
  animation: game-ob-in .35s ease-out;
}
.game-intro.after { background: rgb(20 15 10 / .45); }
.prof.prof-big { width: clamp(90px, 30cqi, 190px); height: auto; filter: drop-shadow(0 10px 18px rgb(0 0 0 / .5)); animation: prof-bob 3s ease-in-out infinite; }
@keyframes prof-bob { 50% { transform: translateY(-4px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .prof.prof-big { animation: none; } }
.game-board.no-cube .mb-cube { display: none; }
.game-new span { margin-right: .35em; color: #cfc6b7; text-decoration: none; display: inline-block; }
/* Matchscore i siden (som på Galaxy) */
.game-table { display: flex; align-items: stretch; gap: 6px; }
.game-table [data-game-board] { flex: 1; min-width: 0; }
.game-side { flex: 0 0 clamp(34px, 7%, 50px); display: flex; flex-direction: column; justify-content: space-between; gap: 6px; padding: 4px 0; }
.gs-score { display: grid; place-items: center; aspect-ratio: 1 / 1.1; border-radius: 8px; background: #f6f2ea; color: #16130f; font: 800 clamp(1rem, 3.2vw, 1.7rem)/1 var(--font); font-variant-numeric: tabular-nums; box-shadow: 0 4px 10px rgb(0 0 0 / .3); }
.gs-score.me { background: #fff; outline: 2px solid #ffc928; outline-offset: -2px; }
.gs-len { display: grid; place-items: center; padding: 8px 0; border-radius: 8px; background: #2a1c10; color: #f6f2ea; text-align: center; line-height: 1.1; }
.gs-len b { font-size: clamp(.95rem, 2.6vw, 1.3rem); }
.gs-len small { font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; color: #cfc6b7; }
/* Valg af matchlængde på brættet */
.intro-msg { margin: 0; padding: 4px 12px; border-radius: 99px; background: rgb(20 15 10 / .7); color: #fff; font: 700 clamp(.75rem, 3cqi, 1rem) var(--font); text-align: center; }
.intro-btns { display: flex; gap: clamp(6px, 1.6cqi, 12px); flex-wrap: wrap; justify-content: center; }
.intro-btns button {
  padding: .6em 1.2em; border: 2px solid #fff; border-radius: 12px; background: var(--red); color: #fff; cursor: pointer;
  font: 800 clamp(.8rem, 3.2cqi, 1.15rem) var(--font); box-shadow: 0 8px 20px rgb(0 0 0 / .4);
}
.intro-btns button:hover { background: var(--red-ink); }
/* Rolig forside (data-game-calm): kun brættet med Professoren og én knap – spillet åbner i Forstør */
.game.inviting .game-side, .game.inviting .prof-row, .game.inviting .game-fb, .game.inviting .game-score,
.game.inviting .game-report, .game.inviting .game-turn-hint, .game.inviting .game-overlay { display: none; }
.game.inviting .game-intro { background: radial-gradient(circle at 50% 45%, rgb(20 15 10 / .6), rgb(20 15 10 / .3) 75%); }
.game.inviting .intro-btns button { font-size: clamp(.95rem, 3.8cqi, 1.3rem); padding: .7em 1.6em; }
/* Fejlrapport efter matchen */
.game-report { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14); color: #e9e2d5; font-size: .9rem; }
.game-report h4 { margin: 0 0 6px; font-size: 1rem; color: #fff; }
.game-report .rep-rate { margin: 0 0 6px; font-size: 1.05rem; }
.game-report .rep-rate b { font-size: 1.5rem; color: #ffc928; }
.game-report ul, .game-report ol { margin: 0 0 8px; padding-left: 1.2em; }
.game-report .rep-h { margin: 8px 0 4px; font-weight: 700; color: #fff; }
.game-report .rep-note { margin: 6px 0 0; font-size: .75rem; color: #a99e8b; }
/* Del dit resultat: lille forhåndsvisning af billedet + knap */
.game-report .rep-share { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgb(255 255 255 / .12); }
.game-report .rep-share img { width: 108px; aspect-ratio: 4 / 5; border-radius: 10px; box-shadow: 0 6px 18px rgb(0 0 0 / .4); flex: none; }
.game-report b { color: #fff; }

.game-intro-btn {
  padding: .7em 1.5em; border: 2px solid #fff; border-radius: 12px; background: var(--red); color: #fff; cursor: pointer;
  font: 800 clamp(.85rem, 3.6cqi, 1.25rem) var(--font); box-shadow: 0 8px 20px rgb(0 0 0 / .4);
}
.game-intro-btn:hover { background: var(--red-ink); }

/* Professor B. Gammon: portræt + taleboble */
.prof-row { align-items: flex-start; flex-wrap: nowrap; gap: 12px; }
.prof { flex: 0 0 auto; width: 58px; height: 58px; filter: drop-shadow(0 4px 8px rgb(0 0 0 / .35)); }
.prof .prof-bg { fill: #3a2a1c; stroke: #ffc928; stroke-width: 1.5; }
.prof-say {
  position: relative; flex: 1; min-width: 0; margin: 4px 0 0 !important; padding: 9px 13px;
  border-radius: 14px; background: rgb(255 255 255 / .09); border: 1px solid rgb(255 255 255 / .16);
}
.prof-say::before { /* lille spids mod professoren */
  content: ""; position: absolute; left: -7px; top: 16px; width: 12px; height: 12px;
  background: inherit; border-left: 1px solid rgb(255 255 255 / .16); border-bottom: 1px solid rgb(255 255 255 / .16);
  transform: rotate(45deg); backdrop-filter: none;
}
.gnu-tag { text-transform: none !important; letter-spacing: .01em !important; }
@media (max-width: 480px) { .prof { width: 46px; height: 46px; } .prof-say { padding: 8px 11px; } }
/* Fast plads til beskeder, så teksten under brættet ikke hopper, når den skifter længde */
.game .move-note { min-height: 2.9em; }
.game-fb { margin: 6px 0 0; min-height: 2.6em; font-size: .88rem; line-height: 1.45; color: #cfc6b7; }
.game-fb b { color: #fff; font-family: var(--mono); font-size: .92em; }
.gnu-tag { display: inline-block; margin-right: 4px; padding: 1px 7px; border-radius: 99px; background: rgb(255 201 40 / .18); color: #ffc928; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.game-score { margin: 10px 0 0; font-size: .9rem; color: #cfc6b7; font-variant-numeric: tabular-nums; }
.game-score b { color: #fff; font-size: 1.05rem; }
.game-new { padding: 0; border: 0; background: none; color: #ff8a9b; font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.game-new:hover { color: #fff; }

/* Pile for trækket på brættet */
.mb-arrows { pointer-events: none; animation: mb-arrows-in .35s ease-out .3s both; }
.mb-arrow-edge { fill: none; stroke: rgb(20 16 12 / .6); stroke-width: 8.5; stroke-linecap: round; }
.mb-arrow { fill: none; stroke: #ffc928; stroke-width: 4.5; stroke-linecap: round; }
.mb-arrow-head { fill: #ffc928; stroke: rgb(20 16 12 / .6); stroke-width: 1; }
@keyframes mb-arrows-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mb-arrows { animation: none; } }

/* Afstemning på Dagens stilling */
.sk-vote { flex-basis: 100%; display: flex; align-items: center; gap: 10px; padding-left: 36px; font-size: .8rem; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.sk-vote .bar { flex: 1; height: 6px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.sk-vote .bar i { display: block; height: 100%; border-radius: inherit; background: var(--ink-3); animation: sk-bar .8s ease-out; }
.sk-vote.mine .bar i { background: var(--red); }
.sk-vote b { min-width: 3.2em; text-align: right; color: var(--ink); }
@keyframes sk-bar { from { width: 0; } }
@media (prefers-reduced-motion: reduce) { .sk-vote .bar i { animation: none; } }
@media (hover: none) { .sk-vote { padding-left: 0; } }
.sk-votes-sum { margin-top: 10px !important; padding-top: 10px; border-top: 1px solid var(--line); font-size: .92rem; }
.sk-feedback { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-s); background: var(--paper-2); }
.sk-feedback p { margin: 0 0 6px; }
.sk-feedback p:last-child { margin: 0; }
.sk-verdict { font-weight: 800; font-size: 1.05rem; }
.sk-verdict.ok { color: var(--up); }
.sk-verdict.no { color: var(--down); }
.sk-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }
.sk-tip { margin: 12px 0 0; font-size: .8rem; text-align: right; }
@media (hover: none) { .sk-tip, .sk-choice kbd { display: none; } }

/* Forsiden */
.motm { background: linear-gradient(180deg, var(--paper), var(--paper-2)); }
.motm-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .motm-grid { grid-template-columns: 1fr; } }
.motm-score { display: grid; gap: 8px; margin-bottom: 20px; }
.motm-score > div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-size: 1.15rem; }
.motm-score b { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.motm-score .win span { font-weight: 800; }
.motm-score .win span::after { content: " 🏆"; }
.motm-bars { margin-bottom: 20px; }
.motm-bars .lbl { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin: 0 0 6px; }
.mbar { display: grid; grid-template-columns: 90px 1fr 56px; align-items: center; gap: 10px; margin-bottom: 6px; font-size: .92rem; }
.mbar > i { display: block; height: 10px; width: var(--w); border-radius: 0 4px 4px 0; min-width: 4px; }
.mbar > i.w { background: #d8cdb8; box-shadow: inset 0 0 0 1px #b9ad97; }
.mbar > i.b { background: #3a332b; }
.mbar b { text-align: right; font-variant-numeric: tabular-nums; }
.mbar.luck em { position: relative; height: 10px; background: linear-gradient(90deg, transparent calc(50% - 1px), var(--line-2) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)); }
.mbar.luck em i { position: absolute; top: 0; height: 100%; width: var(--w); }
.mbar.luck em i.pos { left: 50%; background: var(--up); border-radius: 0 4px 4px 0; }
.mbar.luck em i.neg { right: 50%; background: var(--down); border-radius: 4px 0 0 4px; }
@media (hover: none) { .kbd-tip { display: none; } }
.match-board-wrap { touch-action: pan-y; }

/* ======================================================
   Instagram og Facebook
   ====================================================== */
.social-icon svg { fill: none; stroke: currentColor; stroke-width: 2; }
.social-icon svg.fill, .social-btn svg.fill, .footer-social svg.fill { fill: currentColor; stroke: none; }
.social-icon.ig:hover { color: #d62976; background: color-mix(in srgb, #d62976 10%, transparent); }
.social-icon.fb:hover { color: #1877f2; background: color-mix(in srgb, #1877f2 10%, transparent); }

.social-buttons { display: inline-flex; gap: 8px; flex-wrap: wrap; }
/* Diskrete sociale links i hero */
.hero-social { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 22px 0 0; font-size: .95rem; color: #bfb6a8; }
.hero-social a { display: inline-flex; align-items: center; gap: 6px; color: #f6f2ea; font-weight: 700; text-decoration: none; transition: color .15s; }
.hero-social a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.hero-social a.ig:hover, .hero-social a.ig:focus-visible { color: #ff7aa2; }
.hero-social a.fb:hover, .hero-social a.fb:focus-visible { color: #7fb2ff; }
.next-mobile .nm-more { margin-top: 6px; font-size: .85rem; font-weight: 700; color: #ff8a9b; }

.social-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px;
  font: 700 .9rem var(--font); text-decoration: none; color: #fff; transition: transform .15s, box-shadow .15s;
}
.social-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.social-btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgb(0 0 0 / .5); }
.social-btn.ig { background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }
.social-btn.fb { background: #1877f2; }

.hero-follow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; color: #cfc6b7; font-weight: 600; font-size: .95rem; }

.nav-social { display: none; }
.footer-social { display: inline-flex; align-items: center; gap: 8px; }
.footer-social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

@media (max-width: 1140px) {
  .js .nav .nav-social { display: block; padding: 14px 16px 4px; border-top: 1px solid var(--line); margin-top: 8px; }
  .js .nav .nav-social .social-buttons { display: flex; }
  .js .nav .nav-social .social-btn { flex: 1; justify-content: center; padding-block: 12px; font-size: 1rem; }
}
@media (max-width: 520px) {
  .header-tools .social-icon { display: none; }
}

/* Plads til ikonerne i toppen */
.nav a { white-space: nowrap; }
@media (min-width: 1141px) {
  .header-inner { gap: 16px; }
  .nav a { padding: 8px 10px; font-size: .9rem; }
  .brand-text { font-size: .95rem; }
}
/* Knapperne i mobilmenuen må ikke arve menulinkenes udseende */
.js .nav .nav-social a.social-btn { display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; border-radius: 999px; padding: 12px 14px; font-size: 1rem; white-space: nowrap; }
.js .nav .nav-social a.social-btn.ig { background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }
.js .nav .nav-social a.social-btn.fb { background: #1877f2; }
.js .nav .nav-social a.social-btn:hover { color: #fff; filter: brightness(1.08); }

/* ======================================================
   Persisk (farsi): højre mod venstre med skriften Vazirmatn.
   Brættet, træk ("24/18 13/11"), terninger og skydere holdes venstre mod højre.
   ====================================================== */
:root[lang="fa"] { --font: "Vazirmatn", Tahoma, sans-serif; --serif: "Vazirmatn", Tahoma, serif; }
[dir="rtl"] body { line-height: 1.75; }
/* Bogstavafstand og kursiv ødelægger de sammenhængende persiske bogstaver */
[dir="rtl"] body, [dir="rtl"] body * { letter-spacing: 0 !important; }
[dir="rtl"] .serif { font-style: normal; font-weight: 700; }
[dir="rtl"] .brand-text { direction: ltr; }
[dir="rtl"] .match-board-wrap, [dir="rtl"] .game-table, [dir="rtl"] .sk-board, [dir="rtl"] .step-controls,
[dir="rtl"] .game-chips, [dir="rtl"] .motm-score b, [dir="rtl"] .countdown b { direction: ltr; }
[dir="rtl"] .sk-choice .t, [dir="rtl"] .move-note .mv { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .hero-next { transform: rotate(-1deg); }
[dir="rtl"] .hn-sticker { right: auto; left: -10px; transform: rotate(-6deg); }
@media (max-width: 900px) { [dir="rtl"] .hero-next { transform: none; } [dir="rtl"] .hn-sticker { left: 8px; } }
[dir="rtl"] .sk-choice .l, [dir="rtl"] .sk-vote b, [dir="rtl"] .pts, [dir="rtl"] .kpi b, [dir="rtl"] .rt { direction: ltr; unicode-bidi: isolate; }
/* Persisk: tal med fortegn og procent (+24.98, −3.17, 64 %) skal læses venstre mod højre */
[dir="rtl"] td.r, [dir="rtl"] .up, [dir="rtl"] .down, [dir="rtl"] .num, [dir="rtl"] .rating-big b, [dir="rtl"] .rt { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] td.r, [dir="rtl"] th.r { text-align: left; }

/* ======================================================
   Holdturneringen: /hold og /hold/{id}
   ====================================================== */
.team-kpis { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 8px; }
.team-kpis div { min-width: 120px; padding: 14px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.team-kpis b { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.team-kpis span { font-size: .8rem; color: var(--ink-3); font-weight: 600; }
.team-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 0 0; color: var(--ink-2); font-size: .95rem; }
.team-facts a { font-weight: 700; }
.team-next { margin-bottom: 24px; border-left: 5px solid var(--red); }
.team-next h2 { font-size: 1.35rem; margin: 0 0 8px; }
.team-next-list { margin: 0; padding-left: 1.1em; }
.team-next-list li { margin: 2px 0; }
.team-next .kt-invite { margin: 10px 0 0; font-weight: 700; }
.team-grid { align-items: start; }
.team-h { font-size: 1.3rem; margin: 0 0 12px; }
.team-player { display: flex; align-items: center; gap: 10px; }
.team-player .avatar { flex: none; }
.badge-title, .badge-cap { display: inline-block; padding: 1px 5px; border-radius: 5px; font-size: .68rem; font-weight: 800; letter-spacing: .04em; vertical-align: 1px; background: var(--paper-2); color: var(--ink-2); }
.badge-cap { background: var(--red); color: #fff; }
.form-row.mini { display: inline-flex; flex-wrap: nowrap; gap: 3px; }
.form-row.mini i { width: 18px; height: 18px; font-size: .62rem; flex: none; }
.team-roster td { vertical-align: middle; white-space: nowrap; }
.team-stand tr.ours td { background: color-mix(in srgb, var(--red) 10%, transparent); }
.team-stand td.pos { font-weight: 800; width: 1.5em; border-left: 4px solid transparent; }
.team-stand tr.zone-up td.pos { border-left-color: #1f8a4c; }
.team-stand tr.zone-down td.pos { border-left-color: var(--red); }
.team-legend { font-size: .82rem; margin: 10px 0 0; }
.zone-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; }
.zone-dot.up { background: #1f8a4c; } .zone-dot.down { background: var(--red); }
.team-program { list-style: none; margin: 0; padding: 0; }
.team-program > li { border-top: 1px solid var(--line); }
.team-program summary { display: grid; grid-template-columns: 5.2em 1fr auto; gap: 12px; align-items: center; padding: 12px 4px; cursor: pointer; list-style: none; }
.team-program summary::-webkit-details-marker { display: none; }
.team-program summary:hover { background: var(--paper-2); }
.tp-date { font-weight: 700; line-height: 1.2; }
.tp-date small, .tp-opp small { display: block; font-weight: 500; font-size: .8rem; color: var(--ink-3); }
.tp-score { font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 2.6em; text-align: end; }
.team-program li.res-w .tp-score { color: #1f8a4c; }
.team-program li.res-l .tp-score { color: var(--red); }
.team-program li.tp-next .tp-score { color: var(--ink-3); }
.tp-boards { padding: 0 4px 14px; }
.team-tile { display: block; text-decoration: none; color: inherit; transition: transform .15s; }
.team-tile:hover { transform: translateY(-3px); }
.team-tile h2 { font-size: 1.4rem; margin: 2px 0 8px; }
.team-tile-pos { margin: 0; font-size: 1rem; }
.team-tile-pos b { font-size: 1.6rem; }
.team-tile-next { margin: 10px 0 12px; font-size: .9rem; color: var(--ink-2); }
.team-tile-next small { display: block; color: var(--ink-3); }
@media (max-width: 600px) { .team-program summary { grid-template-columns: 4.4em 1fr auto; gap: 8px; } .team-kpis div { min-width: calc(50% - 6px); flex: 1; } }
/* Persisk: holdnavne som "13. Brigade" læses venstre mod højre */
[dir="rtl"] .team-stand td:nth-child(2), [dir="rtl"] .kt-team, [dir="rtl"] .tp-opp strong, [dir="rtl"] .team-tile h2, [dir="rtl"] .team-hero h1 { unicode-bidi: plaintext; }

/* ======================================================
   Kort i toppen af forsiden (næste klubaften) og holdkampens live-kort
   – flyttet hertil fra home.php, så scorekortet også kan vises i galleriet
   ====================================================== */
/* Næste klubaften som stort kort i toppen */
.hero-next {
  position: relative; padding: clamp(22px, 3vw, 34px); border-radius: calc(var(--radius) + 8px);
  background: var(--card); color: var(--ink); border-top: 6px solid var(--red);
  box-shadow: 0 24px 60px rgb(0 0 0 / .45); transform: rotate(1deg);
}
.hero-next.is-today, .hero-next.is-live { outline: 3px solid var(--red); outline-offset: 4px; }
.hn-label { margin: 0 0 14px; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.hn-main { display: flex; gap: 20px; align-items: center; }
.hero-next .date-tile { flex: none; width: 104px; height: 112px; }
.hero-next .date-tile .d { font-size: 2.9rem; }
.hn-title { margin: 0 0 .15em; color: var(--ink); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; }
.hn-when { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.hn-place { margin: 2px 0 0; color: var(--ink-2); }
.hn-place a { color: inherit; text-decoration-color: var(--red); text-underline-offset: 3px; }
.hero-next .next-info { margin: 12px 0 0 !important; }
.hero-next .countdown { margin-top: 20px; }
.hero-next .countdown div { flex: 1; min-width: 0; }
.hero-next .live-box { margin-top: 20px; }
.hero-next .next-actions { margin-top: 18px; align-items: center; }
.hero-next .more { font-weight: 700; color: var(--red); text-decoration: none; }
.hn-after { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-3); }
.hn-sticker {
  position: absolute; top: -18px; right: -10px; z-index: 2; padding: 8px 14px 7px; border-radius: 10px; border: 2.5px solid #fff;
  background: var(--red); color: #fff; font-size: .9rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  transform: rotate(6deg); box-shadow: 0 6px 16px rgb(0 0 0 / .35);
  animation: hn-sticker-in .6s cubic-bezier(.3, 1.6, .5, 1) both .4s;
}
@keyframes hn-sticker-in { from { transform: rotate(30deg) scale(0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hn-sticker { animation: none; } }
@media (max-width: 900px) { .hero-next { transform: none; } .hn-sticker { right: 8px; } }
@media (max-width: 420px) { .hero-next .date-tile { width: 84px; height: 94px; } .hero-next .date-tile .d { font-size: 2.3rem; } .hn-main { gap: 14px; } .hero-next .countdown div { padding: 8px 2px; } .hero-next .countdown b { font-size: 1.35rem; } }
/* Holdturneringen: live-kort (kampdag) og linjen i klubaften-kortet (dagene op til) */
.hn-team { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--paper-2); font-size: .9rem; color: var(--ink-2); }
.hn-team b { color: var(--ink); }
.kt-card { outline: 3px solid var(--red); outline-offset: 4px; align-self: start; } /* højt kort: start øverst, så det ikke stikker op under menuen */
.kt-live { display: inline-block; margin-inline-end: 8px; padding: 3px 8px 2px; border-radius: 6px; background: var(--red); color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; vertical-align: middle; animation: kt-blink 1.6s ease-in-out infinite; }
@keyframes kt-blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .kt-live { animation: none; } }
.kt-title { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
.kt-where { font-size: 1rem; font-weight: 600; color: var(--ink-2); }
.kt-match { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.kt-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.kt-team { font-weight: 700; font-size: .98rem; line-height: 1.25; color: var(--ink-2); }
.kt-team.ours { color: var(--ink); }
.kt-head .kt-team:last-child { text-align: end; }
.kt-score { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; padding: 0 6px; }
.kt-match.is-live .kt-score { color: var(--red); }
.kt-meta { margin: 2px 0 8px; text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.kt-match.is-live .kt-meta { color: var(--red); }
.kt-boards { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.kt-boards li { display: grid; grid-template-columns: 1fr auto 1fr; gap: 4px 10px; align-items: center; font-size: .88rem; }
.kt-p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kt-p.a { text-align: end; }
.kt-p a { color: inherit; }
.kt-boards .kt-p a { text-decoration: none; }
.kt-boards .kt-p a:hover, .kt-boards .kt-p a:focus-visible { text-decoration: underline; }
.kt-pts { font-variant-numeric: tabular-nums; min-width: 3.4em; text-align: center; }
.kt-boards li.fin.hw .kt-p.h, .kt-boards li.fin.aw .kt-p.a { font-weight: 800; }
.kt-boards li.fin.hw .kt-p.h::after, .kt-boards li.fin.aw .kt-p.a::before { content: "✓"; color: var(--up); margin: 0 4px; }
.kt-bars { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; height: 4px; }
.kt-bars i { display: block; height: 100%; border-radius: 2px; background: var(--ink-3); opacity: .5; justify-self: end; }
.kt-bars i:last-child { justify-self: start; }
.kt-boards li:not(.fin) .kt-bars i { background: var(--red); opacity: .8; }
.kt-empty { margin: 0; font-size: .88rem; color: var(--ink-3); text-align: center; }
.kt-foot { margin: 14px 0 0; font-size: .8rem; color: var(--ink-3); }
.kt-foot a { color: inherit; }
.kt-invite { margin: 8px 0 0; font-size: .92rem; font-weight: 700; color: var(--ink); }
/* Næste klubaften under toppen på kampdage – også på mobil (her er kortet ellers skjult) */
.next-strip.kt-strip { display: block; }
/* Næste klubaften som én linje under holdkampen (forsiden på kampdage) */
.kt-next-line p { margin: 18px 0 0; padding: 12px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: .95rem; }
.kt-next-line .eyebrow { display: inline; margin-right: 8px; }
@media (max-width: 760px) {
  .next-strip.kt-strip { margin-top: 24px; }
  .kt-strip .next-card { grid-template-columns: auto 1fr; }
  .kt-strip .countdown { grid-column: 1 / -1; }
  .kt-strip .countdown div { flex: 1; min-width: 0; }
}

/* ======================================================
   Billeder: miniaturer, album og lysboks
   ====================================================== */
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.ph-grid-lg { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.ph-thumb { position: relative; display: block; border-radius: 10px; overflow: hidden; background: var(--paper-2); aspect-ratio: 1; }
.ph-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
@media (hover: hover) { .ph-thumb:hover img { transform: scale(1.12); } .ph-thumb:hover { box-shadow: 0 8px 22px rgb(0 0 0 / .25); } }
.ph-strip { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.kt-photos { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.kt-photos-h { margin: 0 0 8px; font-size: .88rem; font-weight: 700; display: flex; justify-content: space-between; gap: 10px; }
.kt-photos-h a { font-weight: 700; color: var(--red); text-decoration: none; }
.tp-photos { padding: 0 4px 14px; }
.tp-photos .ph-strip { grid-template-columns: repeat(6, 1fr); max-width: 560px; margin-bottom: 8px; }
.tp-cam { font-size: .9rem; }
.album-card { display: block; text-decoration: none; color: inherit; overflow: hidden; transition: transform .15s; }
.album-card:hover { transform: translateY(-3px); }
.album-cover { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--paper-2); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-count { position: absolute; inset-inline-end: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; background: rgb(0 0 0 / .65); color: #fff; font-size: .8rem; }
.album-meta { display: block; }
.album-meta .eyebrow { display: flex; margin-bottom: 2px; }
.album-meta strong { font-size: 1.1rem; }
.album-people { color: var(--ink-2); }
.album-layout.with-score { display: grid; grid-template-columns: 1fr minmax(300px, 380px); gap: 24px; align-items: start; }
.album-score { transform: none; outline: 0; }
@media (max-width: 900px) { .album-layout.with-score { grid-template-columns: 1fr; } }
.lb { position: fixed; inset: 0; z-index: 2000; display: grid; grid-template-columns: auto 1fr auto; align-items: center; background: rgb(10 8 6 / .94); }
.lb[hidden] { display: none; }
.lb figure { margin: 0; display: grid; justify-items: center; gap: 10px; padding: 50px 0 16px; max-height: 100dvh; }
.lb img { max-width: 100%; max-height: calc(100dvh - 130px); object-fit: contain; border-radius: 6px; }
.lb figcaption { color: #e9e2d5; font-size: .92rem; text-align: center; padding: 0 12px; }
.lb figcaption a { color: #fff; }
.lb-num { color: #a99e8b; margin-inline-end: 8px; }
.lb button { border: 0; background: rgb(255 255 255 / .1); color: #fff; cursor: pointer; border-radius: 999px; }
.lb-prev, .lb-next { width: 48px; height: 48px; margin: 0 10px; font-size: 1.8rem; line-height: 1; }
.lb-x { position: absolute; top: 12px; inset-inline-end: 12px; width: 42px; height: 42px; font-size: 1.1rem; }
.lb button:hover { background: rgb(255 255 255 / .22); }
.lb-open, .lb-open body { overflow: hidden; }
@media (max-width: 600px) {
  .lb { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { position: absolute; bottom: 14px; }
  .lb-prev { inset-inline-start: 10px; } .lb-next { inset-inline-end: 10px; }
  .lb figure { padding: 56px 0 70px; }
}
/* Kalenderen: holdkampe */
.cal-item.cal-team .day b { color: var(--red); }
.cal-item.cal-team h3 a { color: inherit; }
.cal-badge { display: inline-block; margin-inline-start: 6px; padding: 2px 8px; border-radius: 999px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .04em; vertical-align: 2px; }
/* Skjult admin-link i sidefoden (copyright-linjen) – ser ud som almindelig tekst */
.footer-bottom .admin-link { color: inherit; text-decoration: none; cursor: default; }
/* Resultatkortet (kampdagen er slut): opsummeringen øverst */
.kt-sum { margin: 10px 0 4px; padding: 12px 14px; border-radius: 12px; background: var(--paper-2); font-size: .98rem; line-height: 1.5; color: var(--ink); }
.kt-sum a { color: inherit; }

/* ======================================================
   Spørg Paula Prime (assets/js/chat.js)
   ====================================================== */
.paula-fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 900;
  display: flex; align-items: center; gap: 8px; padding: 5px 16px 5px 5px; border: 0; border-radius: 999px;
  background: var(--card); color: var(--ink); font: 700 .95rem/1 var(--font); cursor: pointer;
  box-shadow: 0 8px 24px rgb(0 0 0 / .22), 0 0 0 1px var(--line); transition: transform .15s ease;
}
.paula-fab:hover { transform: translateY(-2px); }
.paula-fab .paula-face { width: 46px; height: 46px; }
.paula-face { flex: none; display: block; }
html.game-full-open .paula-fab, html.game-full-open .paula, html.game-full-open .paula-hello { display: none; }
/* Taleboblen over knappen første gang */
.paula-hello {
  position: fixed; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 900;
  display: flex; align-items: flex-start; gap: 2px; max-width: min(260px, calc(100vw - 32px));
  background: var(--card); color: var(--ink); border-radius: 16px 16px 4px 16px;
  box-shadow: 0 8px 24px rgb(0 0 0 / .2), 0 0 0 1px var(--line); animation: paula-hello .35s ease-out;
}
.paula-hello-text { flex: 1; border: 0; background: none; color: inherit; text-align: left; padding: 11px 4px 11px 14px; font: 600 .92rem/1.35 var(--font); cursor: pointer; }
.paula-hello-x { flex: none; border: 0; background: none; color: var(--ink); opacity: .55; width: 32px; height: 32px; margin: 4px 4px 0 0; border-radius: 50%; font-size: .85rem; cursor: pointer; }
.paula-hello-x:hover { opacity: 1; }
@keyframes paula-hello { from { opacity: 0; transform: translateY(8px); } }

.paula {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 950;
  width: min(380px, calc(100vw - 32px)); height: min(600px, calc(100dvh - 96px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); color: var(--ink); border-radius: 20px; box-shadow: 0 18px 50px rgb(0 0 0 / .3), 0 0 0 1px var(--line);
}
.paula[hidden] { display: none; }
.paula-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: #1f4436; color: #fff; }
.paula-head .paula-face { width: 44px; height: 44px; }
.paula-head div { flex: 1; min-width: 0; display: grid; }
.paula-head b { font-size: 1.05rem; }
.paula-head span { font-size: .8rem; opacity: .8; }
.paula-x { border: 0; background: rgb(255 255 255 / .12); color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 1rem; cursor: pointer; }
.paula-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.paula-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; }
.paula-msg .paula-face { width: 28px; height: 28px; }
.paula-msg p { margin: 0; padding: 9px 13px; border-radius: 16px; font-size: .93rem; line-height: 1.45; overflow-wrap: anywhere; }
.paula-msg.her p { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.paula-msg.me { align-self: flex-end; }
.paula-msg.me p { background: var(--red); color: #fff; border-bottom-right-radius: 4px; }
.paula-msg.err p { border-color: var(--red); }
.paula-msg.typing p { display: flex; gap: 4px; padding: 13px 14px; }
.paula-msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); opacity: .35; animation: paula-dot 1s infinite; }
.paula-msg.typing i:nth-child(2) { animation-delay: .15s; } .paula-msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes paula-dot { 50% { opacity: .9; transform: translateY(-3px); } }
.paula-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 36px; }
.paula-chips button { border: 1px solid var(--line-2); background: var(--card); color: var(--ink); border-radius: 999px; padding: 7px 12px; font: 600 .82rem/1.2 var(--font); cursor: pointer; text-align: left; }
.paula-chips button:hover { border-color: var(--red); color: var(--red); }
.paula-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid var(--line); background: var(--card); }
.paula-form textarea { flex: 1; resize: none; border: 1px solid var(--line-2); border-radius: 14px; padding: 9px 12px; font: 400 16px/1.35 var(--font); background: var(--paper); color: var(--ink); max-height: 120px; }
.paula-form textarea:focus { outline: 2px solid var(--red); outline-offset: -1px; }
.paula-form button { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--red); color: #fff; font-size: 1.05rem; cursor: pointer; }
.paula-form button:disabled { opacity: .5; cursor: default; }
@media (max-width: 520px) {
  .paula-fab .paula-face { width: 42px; height: 42px; }
  .paula-fab { padding: 4px 14px 4px 4px; }
  .paula { top: 0; right: 0; bottom: auto; width: 100vw; height: 100dvh; border-radius: 0; } /* chat.js retter top og højde efter tastaturet */
  html.paula-open, html.paula-open body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .paula-fab { transition: none; } .paula-msg.typing i, .paula-hello { animation: none; } }

/* ======================================================
   Admin → Statistik (src/pages/admin/stats.php + assets/js/stats-admin.js)
   Serie-farverne er tjekket for farveblindhed: rød, blå, guld
   ====================================================== */
.st-wrap, body.admin { --st-1: #c8102e; --st-2: #2a78d6; --st-3: #c98500; --st-heat: 200 16 46; }
:root[data-theme="dark"] body.admin { --st-1: #ef3b55; --st-2: #3987e5; --st-3: #c98500; --st-heat: 239 59 85; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.admin { --st-1: #ef3b55; --st-2: #3987e5; --st-3: #c98500; --st-heat: 239 59 85; } }

.st-toolbar { align-items: flex-end; }
.st-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; }
.st-custom { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.st-custom input { font: inherit; font-size: .9rem; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink); }

.st-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .st-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .st-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.st-kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.st-kpi-l { font-size: .82rem; color: var(--ink-3); font-weight: 600; }
.st-kpi b { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; letter-spacing: -.01em; }
.st-delta { font-size: .8rem; color: var(--ink-3); font-weight: 600; }
.st-delta.up { color: var(--up); }
.st-delta.down { color: var(--down); }
.st-note { font-size: .82rem; margin: 10px 0 20px; }

.st-card { margin-bottom: 16px; min-width: 0; }
.st-card h2 { font-size: 1.15rem; margin: 0; }
.st-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.st-sub { font-size: .85rem; margin: 4px 0 14px; }
.st-h3 { font-size: .95rem; margin: 18px 0 10px; }
.st-act .st-h3 { margin-top: 4px; }
.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.st-grid > .st-card { margin-bottom: 16px; }
.st-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .st-grid, .st-grid-3 { grid-template-columns: minmax(0, 1fr); gap: 0; } .st-grid-3 { gap: 8px; } }

.st-legend { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; margin: 0; padding: 0; font-size: .85rem; color: var(--ink-2); }
.st-legend li { display: inline-flex; align-items: center; gap: 6px; }
.st-legend i { width: 14px; height: 3px; border-radius: 2px; background: var(--st-1); }
.st-legend i.s2 { background: var(--st-2); } .st-legend i.s3 { background: var(--st-3); }
.st-legend-big { margin: 10px 0 4px; font-size: .92rem; }
.st-legend-big i { width: 12px; height: 12px; border-radius: 3px; }

/* Vandrette søjler: navn · søjle · tal */
.st-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.st-bars li { display: grid; grid-template-columns: minmax(0, 11rem) minmax(40px, 1fr) auto auto; gap: 10px; align-items: center; font-size: .9rem; min-height: 26px; }
.st-bar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.st-bar-name a { color: inherit; text-decoration: none; }
.st-bar-name a:hover { color: var(--red-ink); text-decoration: underline; }
.st-bar-track { height: 14px; }
.st-bar { display: block; height: 100%; min-width: 3px; background: var(--st-1); border-radius: 0 4px 4px 0; }
.st-bar.s2 { background: var(--st-2); } .st-bar.s3 { background: var(--st-3); }
.st-bars b { font-weight: 700; min-width: 2.5em; text-align: right; }
.st-bars small { min-width: 5.5em; text-align: right; font-size: .78rem; }
@media (max-width: 560px) { .st-bars li { grid-template-columns: minmax(0, 8rem) minmax(30px, 1fr) auto; } .st-bars small { display: none; } }

/* Fordeling på udstyr (100 %-søjle) */
.st-stack { display: flex; gap: 2px; height: 22px; border-radius: 6px; overflow: hidden; margin-top: 12px; }
.st-stack span { background: var(--st-1); min-width: 3px; }
.st-stack .s2 { background: var(--st-2); } .st-stack .s3 { background: var(--st-3); }

/* Linjegraf */
.st-chart { width: 100%; min-height: 220px; }
.st-chart svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.st-grid-l { stroke: var(--line); stroke-width: 1; }
.st-axis { stroke: var(--line-2); stroke-width: 1; }
.st-tick { fill: var(--ink-3); font: 500 11px var(--font); font-variant-numeric: tabular-nums; }
.st-line { fill: none; stroke: var(--st-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.st-line.s2 { stroke: var(--st-2); }
.st-area { fill: var(--st-1); opacity: .08; }
.st-dot { fill: var(--st-1); stroke: var(--card); stroke-width: 2; }
.st-dot.s2 { fill: var(--st-2); }
.st-cross { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.st-chart rect:focus { outline: none; }
.st-chart rect:focus-visible { stroke: var(--ink); stroke-width: 1; }

/* Ugedag × time */
.st-heat-grid { display: grid; grid-template-columns: 2.4em repeat(24, minmax(0, 1fr)); gap: 2px; font-size: .72rem; }
.st-heat-h { color: var(--ink-3); text-align: left; font-variant-numeric: tabular-nums; }
.st-heat-d { color: var(--ink-2); font-weight: 600; align-self: center; }
.st-cell { aspect-ratio: 1; border-radius: 3px; background: rgb(var(--st-heat) / var(--a)); box-shadow: inset 0 0 0 1px var(--line); }
.st-cell:hover, .st-cell:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.st-heat-key { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .78rem; color: var(--ink-3); }
.st-heat-key i { width: 120px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, rgb(var(--st-heat) / .12), rgb(var(--st-heat) / 1)); }

/* Tooltip */
.st-tip { position: absolute; z-index: 1000; pointer-events: none; background: var(--card); color: var(--ink); border-radius: 10px; padding: 8px 11px;
  box-shadow: var(--shadow-l), 0 0 0 1px var(--line); font-size: .85rem; min-width: 140px; }
.st-tip-h { font-size: .78rem; color: var(--ink-3); margin-bottom: 4px; }
.st-tip-r { display: flex; align-items: center; gap: 6px; }
.st-tip-r i { width: 12px; height: 2px; border-radius: 1px; background: var(--st-1); }
.st-tip-r i.s2 { background: var(--st-2); }
.st-tip-r b { font-variant-numeric: tabular-nums; }
.st-tip-r span { color: var(--ink-2); }

/* Handlinger */
.st-dl { margin: 0; display: grid; gap: 2px; }
.st-dl div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.st-dl dt { color: var(--ink-2); }
.st-dl dd { margin: 0; font-weight: 700; }
.st-dl small { font-weight: 500; }
.st-more { display: inline-block; margin-top: 10px; font-size: .88rem; }
.st-latest td { font-size: .85rem; white-space: nowrap; }

/* ======================================================
   Forsiden: Masterpointløbet (src/pages/home.php)
   Listen læses nedad i kolonner: 3 × 5 på computer, 8 + 7 på tablet (finalisterne i første kolonne), top 10 på mobil
   ====================================================== */
.mp-race { padding: clamp(16px, 2.2vw, 26px); }
.mp-race-top { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.mp-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; flex: 1 1 420px; font-size: .95rem; color: var(--ink-2); }
.mp-lines li { display: flex; gap: 8px; }
.mp-lines a { font-weight: 700; color: var(--ink); text-decoration: none; }
.mp-lines a:hover { color: var(--red-ink); text-decoration: underline; }
.mp-next { flex: 0 0 auto; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 14px; text-decoration: none;
  background: var(--red); color: #fff; box-shadow: var(--shadow); transition: transform .15s ease; }
.mp-next:hover { transform: translateY(-2px); }
.mp-next small { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.mp-next b { font-size: 1.05rem; }
.mp-next b::after { content: " →"; }

.mp-race-list { padding: 0; display: grid; grid-auto-flow: column; grid-template-rows: repeat(5, auto); grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; row-gap: 3px; }
.mp-race-list li { grid-template-columns: 30px minmax(0, 1fr) auto 2.6em; gap: 10px; padding: 8px 10px; }
.mp-race-list li + li { margin-top: 0; border-top: 0; }
.mp-race-list .who a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-race-list .pts { font-size: 1.1rem; }
.mp-race-list .mv { font-size: .78rem; font-weight: 700; text-align: right; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mp-race-list .mv.up { color: var(--up); }
.mp-race-list .mv.down { color: var(--down); }
.mp-race-list .mv.new { color: var(--gold); }
.mp-race-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; font-size: .82rem; color: var(--ink-2); }
.mp-key { display: inline-flex; align-items: center; gap: 6px; }
.mp-key i { width: 14px; height: 14px; border-radius: 4px; background: color-mix(in srgb, var(--up) 18%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--up) 40%, transparent); }
@media (max-width: 960px) { .mp-race-list { grid-template-rows: repeat(8, auto); grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .mp-race-list { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: minmax(0, 1fr); }
  .mp-race-list .mp-extra { display: none; }
  .mp-next { width: 100%; }
}
/* På forsiden er kun finalisterne farvet – resten står neutralt (ikke rødt som på masterpointsiden) */
.mp-race-list li.out { background: var(--paper); }
.mp-race-list li.out:hover { background: var(--paper-2); }
.mp-race-list .bar { margin-top: 5px; height: 3px; }
/* Admin → Statistik: flag ved lande, byer og seneste besøg */
.st-flag { display: inline-block; width: 20px; height: 15px; margin-right: 7px; vertical-align: -2px; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); object-fit: cover; }
.st-where { white-space: nowrap; }
.st-where small { color: var(--ink-3); }
.st-latest td a { color: inherit; }

/* Admin → Nyheder (src/pages/admin/news.php) */
.news-form .nf-row { display: grid; gap: 6px; margin-bottom: 16px; }
.news-form .nf-row > span { font-weight: 700; font-size: .92rem; }
.news-form input:not([type=file]):not([type=hidden]), .news-form textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper); color: var(--ink); width: 100%; }
.news-form textarea { font: 400 1rem/1.55 var(--font); resize: vertical; min-height: 280px; }
.news-form .nf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .news-form .nf-grid { grid-template-columns: 1fr; } }
.nf-image { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.nf-image img { width: 180px; height: 120px; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.nf-image > div { display: flex; gap: 8px; flex-wrap: wrap; }
.nf-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin-top: 10px; max-height: 320px; overflow: auto; padding: 4px; }
.nf-gallery button { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 8px; overflow: hidden; aspect-ratio: 1; }
.nf-gallery button:hover, .nf-gallery button:focus-visible { outline: 3px solid var(--red); }
.nf-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nf-help { font-size: .85rem; margin: -8px 0 16px; }
.nf-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.badge-draft { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line-2); font-size: .8rem; font-weight: 700; }
/* Del nyheden (src/pages/news_item.php) */
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 760px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid var(--line); }
.share-label { font-weight: 700; color: var(--ink-2); margin-right: 4px; }

/* Lær backgammon på 10 minutter (src/pages/learn.php + assets/js/learn.js) */
.learn-steps { display: flex; gap: 6px; margin-bottom: 16px; }
.learn-steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); transition: background .2s; }
.learn-steps i.on { background: var(--red); }
.learn-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .learn-grid { grid-template-columns: 1fr; } }
.learn-board .board { width: 100%; height: auto; display: block; }
.learn-card h2 { margin: 0 0 10px; font-size: 1.5rem; }
.learn-card p { margin: 0 0 12px; }
.learn-task { font-weight: 700; padding: 12px 14px; border-radius: 12px; background: var(--paper-2); }
.learn-msg { min-height: 1.5em; color: var(--ink-2); }
.learn-msg.ok { color: var(--up); font-weight: 700; }
.learn-msg.bad { color: var(--down); font-weight: 700; }
.learn-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.learn-btns [data-learn-next] { margin-left: auto; }
.learn-board .learn-dst { fill: rgb(255 201 40 / .35); stroke: #ffc928; stroke-width: 2.5; }
.learn-done { margin-top: 20px; text-align: center; }
.learn-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.learn-why { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--up) 10%, var(--card)); box-shadow: inset 3px 0 0 var(--up); }
/* Skolens kurser (src/pages/school.php) */
.sk-courses { margin-top: 8px; }
.sk-course { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; transition: transform .15s ease; }
.sk-course:hover { transform: translateY(-2px); }
.sk-course h2 { font-size: 1.3rem; margin: 2px 0 4px; }
.sk-course p { color: var(--ink-2); margin: 0; flex: 1; }
.sk-course-n { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.sk-h2 { margin: 0 0 16px; }
/* Paula som lærer i skolens kurser */
.learn-teacher { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.learn-teacher b { display: block; line-height: 1.1; }
.learn-teacher small { color: var(--ink-3); font-size: .82rem; }
.learn-face { flex: none; width: 46px; height: 46px; display: grid; place-items: center; font-size: 30px; }
.learn-face.big { width: 72px; height: 72px; font-size: 48px; }
.learn-face svg { width: 100%; height: 100%; display: block; }
.learn-done-paula { display: flex; gap: 14px; align-items: flex-start; justify-content: center; text-align: left; max-width: 640px; margin: 0 auto 16px; }
.learn-bubble { margin: 0; padding: 14px 16px; border-radius: 16px 16px 16px 4px; background: var(--paper-2); }
/* Paula bevæger sig lidt: svæver, nikker ved nyt trin, hopper ved rigtigt svar */
.learn-face svg { transform-origin: 50% 85%; animation: paula-float 4.2s ease-in-out infinite; }
.learn-face.talk svg { animation: paula-talk .55s ease-out, paula-float 4.2s ease-in-out .55s infinite; }
.learn-face.cheer svg { animation: paula-cheer .8s cubic-bezier(.3, 1.6, .5, 1), paula-float 4.2s ease-in-out .8s infinite; }
@keyframes paula-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes paula-talk { 0% { transform: rotate(0); } 30% { transform: rotate(-6deg); } 65% { transform: rotate(4deg); } 100% { transform: rotate(0); } }
@keyframes paula-cheer { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-12px) scale(1.08) rotate(-4deg); } 65% { transform: translateY(0) scale(.97) rotate(3deg); } 100% { transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .learn-face svg, .learn-face.talk svg, .learn-face.cheer svg { animation: none; } }
/* Dobbeltterningen i kurset: markeret og pulserende, når man skal trykke på den */
.learn-choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.learn-choices[hidden] { display: none; }
.learn-board .learn-cube-hl { fill: rgb(255 201 40 / .18); animation: learn-cube 1.4s ease-in-out infinite; }
@keyframes learn-cube { 50% { fill: rgb(255 201 40 / .45); } }
@media (prefers-reduced-motion: reduce) { .learn-board .learn-cube-hl { animation: none; } }
.learn-board .mb-cube { transition: transform .5s ease; }
/* Forsiden: smal reklame for Backgammonskolen under "Tre måder at spille på" */
.school-promo { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 14px 18px; border-radius: var(--radius); text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--up) 9%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--up) 25%, transparent); transition: transform .15s ease; }
.school-promo:hover { transform: translateY(-2px); }
.school-promo-face { flex: none; width: 52px; height: 52px; display: grid; place-items: center; font-size: 34px; }
.school-promo-face svg { width: 100%; height: 100%; display: block; animation: paula-float 4.2s ease-in-out infinite; }
.school-promo-txt { flex: 1; min-width: 0; color: var(--ink-2); }
.school-promo-txt b { color: var(--ink); }
.school-promo .btn { flex: none; }
@media (max-width: 640px) { .school-promo { flex-wrap: wrap; } .school-promo-txt { flex-basis: calc(100% - 66px); } .school-promo .btn { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .school-promo-face svg { animation: none; } }

/* Tirsdagsturneringen live fra drawboss (forsiden + /live, src/repo/live.php) */
.lv-table { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .9rem; }
.lv-table li { display: grid; grid-template-columns: 1.6em 1fr auto; gap: 8px; align-items: center; padding: 3px 0; border-bottom: 1px solid var(--line); }
.lv-table li:last-child { border-bottom: 0; }
.lv-table li:first-child .lv-name { font-weight: 800; }
.lv-rank { color: var(--ink-3); font-variant-numeric: tabular-nums; text-align: end; }
.lv-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-name a { color: inherit; }
.lv-wins { font-variant-numeric: tabular-nums; min-width: 1.6em; text-align: center; }
.lv-cols { display: flex; justify-content: space-between; margin: 0 0 4px; padding-inline-start: 2.1em; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
/* /live: runden nu (eller vinderen) først, stilling og billeder i højre kolonne, tidligere runder nedenunder.
   På mobil i samme rækkefølge: nu → stilling/billeder → tidligere runder. */
.lv-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "now side" "rest side"; gap: 18px 24px; align-items: start; }
.lv-now { grid-area: now; }
.lv-side { grid-area: side; }
.lv-rest { grid-area: rest; }
.lv-now, .lv-side, .lv-rest { display: grid; gap: 18px; }
.lv-grid .kt-match { margin: 0; border-top: 0; }
.lv-grid .kt-match.is-live { outline: 3px solid var(--red); outline-offset: 3px; }
.lv-h { font-size: 1.15rem; margin: 0 0 12px; }
.lv-side .kt-photos { margin: 0; padding: 0; border: 0; }
.lv-side .kt-foot { margin: 0; }
.lv-winner h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 4px; }
.lv-winner h2 a { color: inherit; }
.lv-winner p:last-child { margin: 0; }
.lv-prog { margin: -6px 0 12px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.hn-title + .lv-prog { margin: 2px 0 6px; }
.lv-upset { margin: 10px 0 0; font-size: .92rem; line-height: 1.45; color: var(--ink-2); }
.lv-upset a { color: inherit; }
/* Kontekst under hver kamp: "Indbyrdes 17-14 i 31 kampe" */
.kt-ctx { grid-column: 1 / -1; text-align: center; font-size: .74rem; color: var(--ink-3); line-height: 1.3; }
.lv-boards { gap: 12px; }
/* Korte navne ("Jesper W.") på smal skærm i stedet for afklippede navne */
.nm-s { display: none; }
@media (max-width: 800px) {
  .lv-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "now" "side" "rest"; }
}
@media (max-width: 440px) {
  .lv-boards .nm-f { display: none; }
  .lv-boards .nm-s { display: inline; }
}
/* Finaleregnemaskinen på /masterpoints */
.standings .race-badge { display: inline-block; margin-inline-start: 6px; padding: 2px 8px 1px; border-radius: 999px; background: color-mix(in srgb, var(--up) 14%, transparent); color: var(--up); font-size: .72rem; font-weight: 800; letter-spacing: .02em; vertical-align: 2px; white-space: nowrap; }
.standings .race-gap { color: var(--ink); }
.standings .race-left { display: block; margin-top: 3px; font-size: .78rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
/* Tirsdagsarkivet (/tirsdag og /tirsdag/ÅÅÅÅ-MM-DD) */
.tu-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: .92rem; font-weight: 700; }
.tu-nav a { text-decoration: none; }
.tu-year { font-size: 1.3rem; margin: 28px 0 12px; }
.tu-year:first-child { margin-top: 0; }
.tu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tu-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.tu-date { display: grid; place-items: center; width: 52px; height: 56px; border-radius: 10px; background: var(--paper-2); text-decoration: none; color: var(--ink); line-height: 1; }
.tu-d { font-size: 1.4rem; font-weight: 800; }
.tu-m { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.tu-who { display: grid; gap: 2px; font-weight: 700; min-width: 0; }
.tu-who a { color: inherit; }
.tu-who small { font-weight: 500; color: var(--ink-3); }
@media (max-width: 480px) { .tu-list li { grid-template-columns: auto 1fr; } .tu-list .more { display: none; } }
.lv-grid.lv-solo { grid-template-columns: minmax(0, 760px); grid-template-rows: none; grid-template-areas: "now" "side" "rest"; }
/* Milepæle på spillerprofilen */
.ms-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ms-list li { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--paper-2); font-size: .9rem; }
.ms-list small { color: var(--ink-3); }
.ms-list a { color: inherit; text-decoration: none; }
.ms-list a:hover b { text-decoration: underline; }
.ms-next { margin-bottom: 10px; }
.ms-next li { background: color-mix(in srgb, var(--red) 10%, transparent); }
/* Kort eller lang kamp på spillerprofilen */
.len-title { margin: 0 0 14px; font-size: 1.05rem; }
.len-bars { display: grid; gap: 10px; }
.len-row { display: grid; grid-template-columns: 9.5em 1fr auto; grid-template-areas: "lbl bar pct" "lbl sub sub"; align-items: center; column-gap: 12px; }
.len-row .lbl { grid-area: lbl; font-size: .9rem; font-weight: 600; }
.len-row .bar { grid-area: bar; position: relative; height: 10px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.len-row .bar::after { content: ""; position: absolute; left: calc(50% - 1px); top: 0; bottom: 0; width: 2px; background: var(--ink-3); opacity: .5; } /* 50 % */
.len-row .bar i { display: block; height: 100%; background: var(--ink-2); border-radius: inherit; }
.len-row.best .bar i { background: var(--red); }
.len-row b { grid-area: pct; font-variant-numeric: tabular-nums; }
.len-row small { grid-area: sub; color: var(--ink-3); font-size: .8rem; }
/* Følg en spiller (site.js: initFollow) */
.follow-btn { vertical-align: middle; margin-left: 12px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  font-family: inherit; font-size: .9rem; font-weight: 700; line-height: 1; letter-spacing: 0; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s; }
.follow-btn:hover { border-color: var(--red); }
.follow-btn[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.is-followed { background: color-mix(in srgb, #c9a227 16%, transparent) !important; border-radius: 10px; }
.is-followed .who > a::before, .is-followed .lv-name::before { content: "★ "; color: #c9a227; }
.player-card.is-followed { box-shadow: 0 0 0 2px #c9a227; }
/* DM: Odense-spillerne (src/repo/dm.php) – navn + hvad der sker nu / slutresultat; ude = dæmpet */
.dm-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; }
.dm-list li { display: grid; grid-template-columns: minmax(0, 11em) 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .92rem; align-items: baseline; }
.dm-list li:last-child { border-bottom: 0; }
.dm-list .dm-name { font-weight: 700; }
.dm-list .dm-txt { color: var(--ink-2); }
.dm-list li.dm-out .dm-name { font-weight: 600; color: var(--ink-3); }
@media (max-width: 480px) { .dm-list li { grid-template-columns: 1fr; gap: 0; } }
.dm-promo { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--red) 9%, transparent); font-size: .95rem; }
.dm-page .kt-match + .kt-match { margin-top: 14px; }
/* Opvarmning før første runde: noter (milepæle, nye ansigter) over listen */
.lv-notes { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.lv-warm .lv-wins { font-weight: 600; color: var(--ink-3); font-size: .88rem; }
/* Tirsdagens resultatbillede på live-kortet og /live: lille forhåndsvisning + del/hent */
.lv-share { display: flex; gap: 14px; align-items: center; margin: 14px 0 6px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--red) 8%, transparent); }
.lv-share img { display: block; width: 96px; height: auto; border-radius: 8px; box-shadow: 0 4px 14px rgb(0 0 0 / .25); }
.lv-share .btn.ghost { color: var(--ink); border-color: var(--line); background: var(--card); }
.lv-share-h { margin: 0 0 8px; font-weight: 800; }
.lv-share-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.lv-share-fb { font-size: .88rem; font-weight: 700; }
/* Sammenfoldet på profilen: "Vis alle …" og kort, der åbnes med et klik */
.fold { margin-top: 10px; }
.fold > summary { cursor: pointer; font-size: .88rem; font-weight: 700; color: var(--red-ink, var(--red)); list-style: none; }
.fold > summary::-webkit-details-marker, .fold-card > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: " ▾"; }
.fold[open] > summary { margin-bottom: 8px; }
.fold[open] > summary::after { content: " ▴"; }
.fold-card > summary { cursor: pointer; list-style: none; position: relative; padding-right: 28px; }
.fold-card > summary::after { content: "▾"; position: absolute; right: 0; top: 2px; color: var(--ink-3); font-size: 1.1rem; }
.fold-card[open] > summary::after { content: "▴"; }
.fold-card .len-title { margin: 8px 0 0; }
.fold-card[open] .len-bars { margin-top: 14px; }
/* Æresmedlem: mærket på spillerprofilen */
.hon-badge { margin: 4px 0 6px; }
.hon-badge span { display: inline-block; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, #c9a227 18%, transparent); color: var(--ink); font-size: .85rem; font-weight: 700; text-decoration: none; }
