/* whist.dk - ren statisk CSS */
:root {
  --groen: #0f3d24; --groen-moerk: #0a2515; --groen-lys: #1d5a37; --filt: #14532d;
  --guld: #c9a43a; --guld-lys: #f0d57a; --creme: #f7f4ec; --tekst: #1c2a22; --bloed: #4b5a51;
  --linje: #dcd6c6; --roed: #c0262d; --hvid: #fff; --skygge: 0 1px 3px rgba(0,0,0,.08), 0 6px 18px rgba(0,0,0,.06);
  --kort-b: 58px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 1.0625rem; line-height: 1.6; color: var(--tekst); background: var(--creme); }
a { color: #14532d; }
a:hover { color: #0a2515; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.smal { max-width: 780px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 6px 10px; z-index: 50; }

/* Top og menu */
.top { background: var(--groen-moerk); color: #fff; border-bottom: 3px solid var(--guld); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: .2px; }
.brand img { width: 34px; height: 34px; }
.brand b { color: var(--guld-lys); }
.menu { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.menu a { color: #e8f0ea; text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: .95rem; }
.menu a:hover, .menu a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
.menu-mobil { display: none; }
@media (max-width: 760px) {
  .menu { display: none; }
  .menu-mobil { display: block; position: relative; }
  .menu-mobil summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; color: #fff; font-weight: 700; }
  .menu-mobil summary::-webkit-details-marker { display: none; }
  .menu-mobil summary .streger { display: inline-block; width: 18px; height: 2px; background: #fff; box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff; }
  .menu-mobil[open] summary { background: rgba(255,255,255,.12); }
  .menu-mobil nav { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; background: var(--groen-moerk); border: 1px solid rgba(240,213,122,.5); border-radius: 12px; padding: 6px; min-width: 220px; box-shadow: 0 10px 30px rgba(0,0,0,.35); display: flex; flex-direction: column; }
  .menu-mobil nav a { color: #fff; text-decoration: none; padding: 11px 14px; border-radius: 8px; }
  .menu-mobil nav a[aria-current="page"], .menu-mobil nav a:hover { background: rgba(255,255,255,.12); }
}

/* Indhold */
.hero { padding: 18px 0 6px; }
h1 { font-size: 1.85rem; line-height: 1.2; margin: 6px 0 6px; color: var(--groen-moerk); }
.ingress { color: var(--bloed); margin: 0 0 6px; }
.indhold h2 { font-size: 1.4rem; margin: 34px 0 8px; color: var(--groen-moerk); line-height: 1.25; }
.indhold h3 { font-size: 1.12rem; margin: 22px 0 6px; color: var(--groen-moerk); }
.indhold p, .indhold li { max-width: 72ch; }
.indhold ul, .indhold ol { padding-left: 22px; }
.indhold li { margin: 4px 0; }
.boks { background: #fff; border: 1px solid var(--linje); border-left: 4px solid var(--guld); border-radius: 12px; padding: 12px 16px; margin: 16px 0; }
.boks p { margin: 6px 0; }
.kort-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 14px 0; }
.kortlink { display: block; background: #fff; border: 1px solid var(--linje); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--tekst); box-shadow: var(--skygge); }
.kortlink strong { display: block; color: var(--groen-moerk); }
.kortlink span { color: var(--bloed); font-size: .93rem; }
.faq details { background: #fff; border: 1px solid var(--linje); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { color: var(--bloed); margin: 8px 0 4px; }
.kilder li { font-size: .95rem; }
.lille { font-size: .9rem; color: var(--bloed); }

/* Tabeller: én linje pr. celle, scroll i rammen, fast første kolonne på mobil */
.tabel-wrap { overflow-x: auto; margin: 12px 0 18px; -webkit-overflow-scrolling: touch; border-radius: 12px; background-color: #fff;
  background: linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) left center / 24px 100% no-repeat local,
              linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) right center / 24px 100% no-repeat local,
              radial-gradient(farthest-side at 0 50%, rgba(15,23,42,.18), transparent) left center / 10px 100% no-repeat scroll,
              radial-gradient(farthest-side at 100% 50%, rgba(15,23,42,.18), transparent) right center / 10px 100% no-repeat scroll; background-color: #fff; }
table.data { border-collapse: collapse; width: auto; min-width: 100%; background: transparent; border: 1px solid var(--linje); border-radius: 12px; font-size: .95rem; }
table.data th, table.data td { padding: 8px 12px; border-bottom: 1px solid var(--linje); text-align: left; white-space: nowrap; }
table.data th { background: #f1efe6; font-weight: 700; }
table.data td.tal, table.data th.tal { text-align: right; font-variant-numeric: tabular-nums; }
table.data tr.sum td { font-weight: 800; background: #faf8f1; }
@media (max-width: 480px) { table.data { font-size: .85rem; } table.data th, table.data td { padding: 6px 9px; } }
table.data tr.sum td:first-child { background: #faf8f1; }
@media (max-width: 760px) { .tabel-wrap table.data tr.sum td:first-child { background: #faf8f1; } .tabel-wrap table.data th:first-child, .tabel-wrap table.data td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--linje); } .tabel-wrap table.data thead th:first-child { background: #f1efe6; } }

/* Fod */
.bund { background: var(--groen-moerk); color: #d9e4dc; margin-top: 48px; padding: 28px 0 22px; border-top: 3px solid var(--guld); }
.bund a { color: #fff; }
.bund-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.bund h2 { font-size: 1rem; color: var(--guld-lys); margin: 0 0 8px; }
.bund ul { list-style: none; padding: 0; margin: 0; }
.bund li { margin: 4px 0; }
.bund p { margin: 8px 0 0; font-size: .95rem; }
@media (max-width: 720px) { .bund-grid { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- Spillet ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.spil { max-width: 1040px; margin: 8px auto 0; padding: 0 16px; --sk: 56px; }
.spil > noscript, .spil .uden-js { display: block; background: #fff; border: 1px solid var(--linje); border-radius: 12px; padding: 16px; }
.spil.klar .uden-js { display: none; }
.spil :focus-visible { outline: 3px solid #ffd84d; outline-offset: 2px; }
.spil-live:focus, .spil-live:focus-visible { outline: none; }
.spil-live { position: relative; background: #14532d radial-gradient(ellipse at 50% 40%, #1f7a45 0%, #17603a 45%, #0e3f22 100%); border-radius: 18px; padding: 10px; color: #fff; box-shadow: inset 0 0 0 2px rgba(201,164,58,.6), inset 0 0 40px rgba(0,0,0,.25), var(--skygge); }

/* Infobjælken */
.spil-info { position: sticky; top: 0; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: rgba(6,28,15,.94); border: 1px solid rgba(240,213,122,.4); border-radius: 12px; padding: 6px; margin-bottom: 6px; }
.chip { flex: none; display: flex; align-items: baseline; gap: 6px; background: rgba(255,255,255,.08); border-radius: 8px; padding: 3px 9px; font-size: .9rem; line-height: 1.35; white-space: nowrap; }
.chip > span { color: var(--guld-lys); font-size: .68rem; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
.chip strong { font-weight: 700; color: #fff; }
.chip small { font-weight: 500; color: #cfe0d4; font-size: .8em; }
.chip.melding { background: rgba(240,213,122,.2); }
.chip.melding strong { color: #fff6d6; }
.chip .roed { color: #ff9196; } .chip .sort { color: #fff; }
.udvid { display: none; margin-left: auto; appearance: none; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; border-radius: 8px; min-width: 44px; min-height: 36px; font-size: 1rem; cursor: pointer; }

/* Fladen: bord + hånd, og handlingspanelet */
.flade { display: block; }
.hoejre { margin-top: 8px; }
.bord { display: grid; gap: 4px; align-items: center; }
.bord-4 { grid-template-columns: 82px minmax(0, 1fr) 82px; grid-template-areas: "nord nord nord" "vest midte oest" "syd syd syd"; }
.bord-3 { grid-template-columns: 82px minmax(0, 1fr) 82px; grid-template-areas: "vest midte oest" "syd syd syd"; }
.bord-3 .plads.vest, .bord-3 .plads.oest { align-self: start; }
.bord-2 { grid-template-columns: minmax(0, 1fr); grid-template-areas: "nord" "midte" "syd"; }
.plads { position: relative; text-align: center; padding: 4px 2px; border-radius: 12px; border: 2px solid transparent; min-width: 0; }
.plads.nord { grid-area: nord; justify-self: center; padding: 3px 14px; }
.plads.vest { grid-area: vest; } .plads.oest { grid-area: oest; }
.plads.syd { grid-area: syd; justify-self: center; display: flex; align-items: center; gap: 8px; padding: 2px 12px; }
.plads.tur { border-color: var(--guld-lys); background: rgba(240,213,122,.13); box-shadow: 0 0 0 3px rgba(240,213,122,.15); }
.plads .navn { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3px 4px; font-size: .95rem; line-height: 1.2; }
.plads .tal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 6px; font-size: .76rem; color: #d3e4d8; line-height: 1.3; }
.plads .tal span { white-space: nowrap; }
.plads.syd .tal { font-size: .8rem; }
.sagt { display: inline-block; background: #fff; color: var(--groen-moerk); font-weight: 800; border-radius: 8px; padding: 0 7px; font-size: .78rem; white-space: nowrap; }
.sagt.pas { background: #f2dede; color: #7a1f25; }
.rolle { font-style: normal; font-size: .62rem; text-transform: uppercase; letter-spacing: .4px; padding: 1px 5px; border-radius: 6px; background: rgba(255,255,255,.2); white-space: nowrap; font-weight: 700; }
.rolle.melder { background: var(--guld); color: #1b1404; }
.rolle.makker { background: #8fd3a6; color: #072212; }
.rolle.ud { background: transparent; border: 1px solid rgba(240,213,122,.7); color: var(--guld-lys); }
.ryg { display: flex; justify-content: center; height: 30px; margin: 3px 0 2px; }
.ryg i { width: 20px; height: 29px; margin-left: -14px; border-radius: 4px; background: #8b1e2b repeating-linear-gradient(45deg, rgba(255,255,255,.14) 0 2px, transparent 2px 5px); border: 2px solid #fff; box-shadow: 0 1px 2px rgba(0,0,0,.35); }
.ryg i:first-child { margin-left: 0; }
.ryg.tom { height: 30px; }

/* Midten: stikket, katten, meldingerne */
.midte { grid-area: midte; position: relative; height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; overflow: hidden; }
.stik-felt { display: flex; align-items: center; justify-content: center; gap: 14px; }
.stik { position: relative; width: calc(var(--sk) * 3 + 16px); height: calc(var(--sk) * 1.4 * 2 + 12px); max-width: 100%; }
.bord-2 .stik { width: calc(var(--sk) + 20px); }
.bord-3 .stik { height: calc(var(--sk) * 1.4 * 1.75); }
.stikkort { position: absolute; --kb: var(--sk); }
.stikkort.syd { left: 50%; bottom: 0; transform: translateX(-50%); z-index: 2; }
.stikkort.nord { left: 50%; top: 0; transform: translateX(-50%); }
.stikkort.vest { left: 0; top: 50%; transform: translateY(-50%); z-index: 1; }
.stikkort.oest { right: 0; top: 50%; transform: translateY(-50%); z-index: 1; }
.bord-3 .stikkort.vest, .bord-3 .stikkort.oest { top: 0; transform: none; }
.stikkort.vandt .kort { box-shadow: 0 0 0 3px var(--guld-lys), 0 6px 16px rgba(0,0,0,.45); }
.stikkort.ud::before { content: "ud"; position: absolute; top: -9px; left: 50%; transform: translateX(-50%); z-index: 3; background: var(--guld-lys); color: #241a02; font-size: .6rem; font-weight: 800; text-transform: uppercase; border-radius: 6px; padding: 0 5px; line-height: 1.4; }
.stik.sidste { opacity: .95; }
.stik-tom { position: absolute; inset: 0; display: grid; place-items: center; }
.midte-tekst { font-size: .9rem; color: var(--guld-lys); font-weight: 700; text-align: center; line-height: 1.3; }
.vinder-tekst { font-size: 1rem; }
.midte .note { margin: 0; font-size: .8rem; color: #e5efe8; text-align: center; max-width: 34ch; line-height: 1.3; }
.beskeder { text-align: center; max-width: 40ch; }
.beskeder p { margin: 2px 0; font-size: .86rem; color: #f3f7f4; line-height: 1.3; }
.beskeder p:last-child { color: #fff6d6; font-weight: 700; }
.meldelog { list-style: none; padding: 0; margin: 4px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 100%; }
.meldelog li { background: rgba(255,255,255,.12); border-radius: 8px; padding: 1px 8px; font-size: .82rem; white-space: nowrap; }
.meldelog li b { color: var(--guld-lys); font-weight: 700; }
.kat { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; --kb: var(--sk); }
.kat.lukket { --kb: 26px; gap: 3px; opacity: .9; }
.kat.vendt { gap: 4px; }
.kat small, .bunke small { width: 100%; text-align: center; color: #cfe0d4; font-size: .72rem; }
.bunke { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; width: calc(var(--sk) * 2 + 10px); --kb: var(--sk); }
.kort.bag b { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: .9rem; font-weight: 800; text-shadow: 0 1px 2px #000; }

/* Kort */
.kort { --kb: 60px; position: relative; display: inline-block; flex: none; width: var(--kb); aspect-ratio: 5 / 7; background: linear-gradient(180deg, #fff 0%, #faf8f2 100%); color: #151515; border: 1px solid #bfb8a4; border-radius: calc(var(--kb) * .11); padding: 0; margin: 0; font: inherit; line-height: 1; box-shadow: 0 1px 2px rgba(0,0,0,.25), 0 3px 8px rgba(0,0,0,.18); user-select: none; -webkit-user-select: none; vertical-align: top; text-align: left; -webkit-tap-highlight-color: transparent; }
.raekke .kort, .stikkort .kort, .kat .kort, .bunke .kort, .aabne .kort { --kb: inherit; }
.kort.roed { color: #c4161c; }
.kort .ix { position: absolute; left: 5%; top: 3%; display: flex; flex-direction: column; align-items: center; width: 34%; }
.kort .ix b { font-size: calc(var(--kb) * .34); font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.kort .ix i { font-style: normal; font-size: calc(var(--kb) * .27); line-height: 1; margin-top: 1px; }
.kort .ix.ned { left: auto; top: auto; right: 5%; bottom: 3%; transform: rotate(180deg); }
.kort .mid { position: absolute; left: 22%; right: 22%; top: 20%; bottom: 20%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: calc(var(--kb) * .5); line-height: 1; }
.kort.billede .mid { border: 1px solid currentColor; border-radius: 4px; font-size: calc(var(--kb) * .26); opacity: .95; background: rgba(0,0,0,.025); }
.kort.billede .mid b { font-size: calc(var(--kb) * .4); font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
.kort.joker { background: linear-gradient(160deg, #fff 0%, #f4edff 100%); color: #5b21b6; }
.kort.joker .mid { left: 14%; right: 14%; }
.kort.joker .mid svg { width: 78%; height: auto; fill: #f2b705; stroke: #5b21b6; stroke-width: 1.6; stroke-linejoin: round; }
.kort.joker .mid em { font-style: normal; font-weight: 800; font-size: calc(var(--kb) * .13); letter-spacing: .08em; margin-top: 2px; }
.kort.bag { background: #8b1e2b repeating-linear-gradient(45deg, rgba(255,255,255,.14) 0 3px, transparent 3px 7px); border: 3px solid #fff; }
.kort.lille { --kb: 34px; }
.kort.lille .mid, .kort.lille .ix.ned { display: none; }
.kort.lille .ix { width: 80%; left: 8%; }
.kort.lille .ix b { font-size: 15px; } .kort.lille .ix i { font-size: 13px; }

/* Bordlæggerens åbne kort */
.aaben-raekke { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; background: rgba(0,0,0,.18); border-radius: 10px; padding: 4px 8px; margin: 4px 0; }
.aaben-raekke .etiket { font-size: .78rem; color: var(--guld-lys); font-weight: 700; }
.aabne { display: flex; --kb: 34px; }
.aabne .kort + .kort { margin-left: -10px; }

/* Din hånd */
.haand { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 12px 0 4px; min-height: 100px; }
.raekke { display: flex; justify-content: center; max-width: 100%; }
.haand .kort { cursor: default; transition: transform .12s ease, box-shadow .12s ease, filter .12s; }
.haand .kort.lovlig, .haand .kort.vaelgbar { cursor: pointer; }
@media (hover: hover) { .haand .kort.lovlig:hover, .haand .kort.vaelgbar:hover { transform: translateY(-6px); } }
.haand .kort.ulovlig, .haand .kort.laast { filter: brightness(.6) saturate(.55); }
.haand .kort.valgt { transform: translateY(-10px); box-shadow: 0 0 0 3px #ffd84d, 0 6px 14px rgba(0,0,0,.45); }
.haand .kort.ny { box-shadow: 0 0 0 3px #7fe0a0, 0 3px 8px rgba(0,0,0,.3); }
.haand .kort.ny::after { content: "ny"; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); background: #7fe0a0; color: #062312; font-size: .62rem; font-weight: 800; text-transform: uppercase; border-radius: 6px; padding: 0 5px; line-height: 1.5; }
.tom-haand { margin: 6px 0; color: #cfe0d4; font-size: .9rem; font-style: italic; }

/* Handlingspanelet */
.handling { background: rgba(6,28,15,.55); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 8px 10px; min-height: 52px; }
.handling.din { background: rgba(240,213,122,.15); border-color: rgba(240,213,122,.55); }
.handling p { margin: 2px 0 8px; }
.spoerg { font-size: .95rem; line-height: 1.4; }
.handling .vent { color: #d3e4d8; font-style: italic; margin: 6px 0; }
.knapper { display: flex; flex-wrap: wrap; gap: 6px; }
.knapper.to { display: grid; grid-template-columns: 1fr 1fr; }
.knapper.kuloerer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.knapper.kuloerer .knap { flex-direction: row; gap: 6px; }
.knapper.kuloerer .sym { font-size: 1.3rem; }
.knap { appearance: none; border: 1px solid rgba(0,0,0,.08); background: #fff; color: var(--groen-moerk); font: inherit; font-weight: 700; font-size: .95rem; padding: 8px 12px; border-radius: 10px; cursor: pointer; min-height: 44px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.knap small { font-weight: 500; font-size: .75rem; color: var(--bloed); }
.knap:hover:not(:disabled) { background: #fff8de; }
.knap:disabled { opacity: .45; cursor: default; }
.knap.primaer { background: var(--guld-lys); border-color: var(--guld); color: #241a02; }
.knap.primaer:hover:not(:disabled) { background: #f7e19a; }
.knap.lys { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); box-shadow: none; font-weight: 600; font-size: .88rem; }
.knap.lys:hover:not(:disabled) { background: rgba(255,255,255,.1); }
.knap.lys[aria-pressed="true"] { background: rgba(240,213,122,.2); border-color: var(--guld-lys); }
.knap.mini { min-height: 34px; padding: 3px 10px; font-size: .82rem; }
.knap .roed { color: #c4161c; } .knap .sort { color: #111; }
.meld-top { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.meld-top .spoerg { flex: 1; margin: 0; }
.meld-top .knap.pas { flex: none; width: 96px; min-height: 52px; background: #fbe4e4; color: #7a1f25; font-size: 1.1rem; }
.meld-gitter { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.meld-gitter .hoved { font-size: .64rem; text-transform: uppercase; letter-spacing: .4px; color: var(--guld-lys); text-align: center; font-weight: 700; }
.meld-gitter .tom { min-height: 44px; }
.knap.m { min-height: 44px; padding: 2px 1px; font-size: .8rem; font-weight: 700; border-radius: 8px; }
.knap.m.tal b { font-size: 1.15rem; }
.knap.m.sol { background: #e7edff; color: #1e3a8a; font-size: .72rem; line-height: 1.05; }
.knap.m:disabled { opacity: .22; box-shadow: none; }
.knap.m.hoejest { opacity: .55; outline: 2px solid var(--guld-lys); }
.lille-note { font-size: .74rem; color: #cfe0d4; margin: 6px 0 0 !important; line-height: 1.3; }
.vaerktoej { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.vaerktoej .knap { flex: 1 1 0; }
.sidste-stik { background: rgba(0,0,0,.2); border-radius: 10px; padding: 6px 10px; margin-top: 6px; font-size: .85rem; }
.sidste-stik p { margin: 0 0 4px; }
.ss-kort { display: flex; gap: 10px; flex-wrap: wrap; }
.ss-kort figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem; color: #d3e4d8; }
.ss-kort figure.vandt .kort { box-shadow: 0 0 0 3px var(--guld-lys); }
.ss-kort figure.vandt figcaption { color: var(--guld-lys); font-weight: 700; }
.forloeb { background: rgba(0,0,0,.2); border-radius: 10px; padding: 6px 10px; margin-top: 6px; font-size: .85rem; max-height: none; }
.forloeb ol { margin: 0; padding-left: 20px; }
.forloeb li { margin: 2px 0; }

/* Resultat */
.resultat h3 { margin: 2px 0 4px; color: var(--guld-lys); font-size: 1.2rem; }
.resultat p { margin: 4px 0; }
.res-liste { margin: 4px 0; padding-left: 18px; }
.pointrunde { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0; }
.stilling-linje { font-size: .9rem; color: #e5efe8; }
.plus { color: #8fe0a8; } .minus { color: #ff9ca0; }
.vinder { font-size: 1.15rem; font-weight: 800; color: var(--guld-lys); }

/* Pointtavle og indstillinger */
.stilling-boks, .ind-boks { background: #fff; border: 1px solid var(--linje); border-radius: 12px; padding: 8px 12px; margin-top: 8px; }
.stilling-boks summary, .ind-boks summary { cursor: pointer; font-weight: 700; color: var(--groen-moerk); min-height: 44px; display: flex; align-items: center; }
.stilling .roed { color: var(--roed); } .stilling .sort { color: #111; }
.indstillinger { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 18px; align-items: start; padding: 8px 0 4px; }
.valg { display: flex; flex-direction: column; gap: 3px; font-size: .88rem; font-weight: 700; color: var(--groen-moerk); }
.valg small { font-weight: 400; color: var(--bloed); font-size: .8rem; line-height: 1.35; }
.valg select { font: inherit; font-weight: 500; padding: 6px 8px; border-radius: 8px; border: 1px solid #bdb6a3; background: #fff; min-height: 44px; max-width: 100%; }
.valg.tjek { display: grid; grid-template-columns: 24px 1fr; column-gap: 8px; align-items: center; }
.valg.tjek input { width: 22px; height: 22px; margin: 0; accent-color: var(--groen-lys); }
.valg.tjek small { grid-column: 2; }
.valg.forfra p { margin: 0 0 6px; font-weight: 500; }
.ind-boks .knap { border-color: #bdb6a3; }

/* Mobil (stående) */
@media (max-width: 560px) {
  body { font-size: 1rem; }
  h1 { font-size: 1.45rem; }
  .spil { padding: 0 6px; --sk: 54px; }
  .spil-live { padding: 6px; border-radius: 14px; }
  .udvid { display: block; }
  .spil-info:not(.udvidet) { flex-wrap: nowrap; overflow: hidden; padding-right: 54px; }
  .spil-info:not(.udvidet) .udvid { position: absolute; right: 0; top: 0; bottom: 0; border: 0; border-radius: 0 12px 12px 0; background: linear-gradient(to right, rgba(6,28,15,0), rgba(6,28,15,.97) 30%); min-width: 60px; padding-left: 14px; }
  .spil-info:not(.udvidet) .chip small { display: none; }
  .spil-info:not(.udvidet) .chip.melding > span { display: none; }
  .spil-info:not(.udvidet) .chip { padding: 2px 7px; font-size: .84rem; gap: 4px; }
  .bord-4, .bord-3 { grid-template-columns: 74px minmax(0, 1fr) 74px; }
  .plads .navn { font-size: .86rem; }
  .ryg { height: 26px; } .ryg i { width: 16px; height: 24px; margin-left: -12px; }
  .midte { height: 206px; }
  .bord-2 .midte { height: 214px; }
  .knap { font-size: .9rem; }
  .lille-note { display: none; }
  .meld-top .spoerg { font-size: .88rem; }
}
@media (max-width: 350px) {
  .bord-4, .bord-3 { grid-template-columns: 64px minmax(0, 1fr) 64px; }
  .spil { --sk: 50px; }
  .plads .tal { font-size: .7rem; }
  .knap.m { font-size: .72rem; }
}
/* Tablet */
@media (min-width: 561px) { .spil { --sk: 64px; } .midte { height: 240px; } .bord-4, .bord-3 { grid-template-columns: 110px minmax(0, 1fr) 110px; } }
/* Bred skærm eller lav, bred skærm (mobil på langs): bord til venstre, handlinger til højre */
@media (min-width: 980px), (min-width: 680px) and (max-height: 520px) {
  .flade { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
  .hoejre { margin-top: 0; position: sticky; top: 60px; }
}
@media (min-width: 980px) { .spil { --sk: 70px; } .midte { height: 262px; } .ryg { height: 34px; } .ryg i { width: 22px; height: 32px; margin-left: -15px; } }
/* Lav skærm (mobil på langs): kompakt, infobjælken følger ikke med */
@media (max-height: 520px) and (orientation: landscape) {
  .spil { --sk: 42px; }
  .meld-gitter .tom { min-height: 34px; }
  .meld-gitter { gap: 3px; }
  .spil-info { position: static; padding: 4px; margin-bottom: 4px; }
  .chip { font-size: .8rem; padding: 1px 7px; }
  .flade { grid-template-columns: minmax(0, 1fr) 250px; gap: 8px; }
  .hoejre { position: static; }
  .bord-4, .bord-3 { grid-template-columns: 92px minmax(0, 1fr) 92px; }
  .midte { height: 156px; }
  .bord-2 .midte { height: 156px; }
  .bord-2 .stik-felt { gap: 10px; }
  .bord-2 .stik { width: calc(var(--sk) * 2 + 12px); height: calc(var(--sk) * 1.4 + 4px); }
  .bord-2 .stikkort.nord { left: 0; top: 0; transform: none; } .bord-2 .stikkort.syd { left: auto; right: 0; bottom: 0; transform: none; }
  .ryg { height: 20px; margin: 1px 0; } .ryg i { width: 13px; height: 19px; margin-left: -10px; border-width: 1px; }
  .plads { padding: 1px 2px; } .plads .navn { font-size: .8rem; }
  .plads.nord { padding: 1px 10px; display: flex; gap: 8px; align-items: center; }
  .haand { padding: 8px 0 2px; gap: 8px; min-height: 0; }
  .handling { padding: 6px 8px; }
  .spoerg { font-size: .85rem; }
  .knap { min-height: 40px; font-size: .85rem; padding: 6px 8px; }
  .knap.m { min-height: 34px; font-size: .7rem; }
  .meld-top .knap.pas { min-height: 40px; width: 72px; }
  .lille-note { display: none; }
  .knapper.kuloerer { grid-template-columns: 1fr 1fr; }
}
