/* internetpoker.dk - "baglokalet": kul-sort bord, cremefarvede kort, kortrød, Bricolage + Public Sans + JetBrains Mono */
@font-face { font-family: "Bricolage"; src: url("/assets/fonts/bricolage-grotesque-vf.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans-vf.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-vf.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bord: #17191d;
  --bord-2: #1f2228;
  --flade: #262a31;
  --creme: #f1ebde;
  --tekst: #e6e1d6;
  --graa: #aaa59a;
  --streg: #343841;
  --roed: #e5534b;
  --roed-moerk: #c23a32;
  --kort: #f7f2e7;
  --kort-sort: #1b1c1f;
  --kort-roed: #c22d26;
  --display: "Bricolage", "Arial Narrow", system-ui, sans-serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --bredde: 70rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body { margin: 0; background: var(--bord); color: var(--tekst); font-family: var(--sans); font-size: 1.075rem; line-height: 1.62; }
img, svg { max-width: 100%; }
a { color: var(--creme); text-decoration-color: var(--roed); text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--roed); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); color: var(--creme); line-height: 1.05; margin: 0 0 0.55em; font-weight: 750; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.3rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.7vw, 2rem); }
p { margin: 0 0 1em; }
.ramme { width: min(100% - 2.5rem, var(--bredde)); margin-inline: auto; }
.spring { position: absolute; left: -999px; top: 0; background: var(--creme); color: var(--bord); padding: 0.6rem 1rem; z-index: 10; }
.spring:focus { left: 1rem; top: 1rem; }

.top { border-bottom: 1px solid var(--streg); }
.top-ind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.5rem; padding-block: 0.95rem; }
.ordmaerke { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; font-family: var(--display); font-weight: 750; font-size: 1.25rem; color: var(--creme); }
.ordmaerke svg { width: 2rem; }
.om-bag { fill: #3a3f48; }
.om-for { fill: var(--kort); }
.om-spar { fill: var(--kort-roed); }
.ordmaerke .dk { color: var(--graa); font-weight: 500; }
.menu { display: flex; flex-wrap: wrap; gap: 0.2rem 1.3rem; }
.menu a { color: var(--graa); text-decoration: none; padding: 0.3rem 0; font-weight: 600; font-size: 1rem; }
.menu a:hover { color: var(--creme); }
.menu a[aria-current="page"] { color: var(--creme); box-shadow: inset 0 -2px 0 var(--roed); }

.helt { padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem); }
.helt-ind { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.overlinje { font-family: var(--mono); font-size: 0.85rem; color: var(--roed); margin-bottom: 1.1rem; letter-spacing: 0.02em; }
.indledning { font-size: clamp(1.12rem, 1.8vw, 1.27rem); color: var(--graa); max-width: 36em; }
.knapper { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.knap { display: inline-block; font: inherit; font-weight: 700; background: var(--roed-moerk); color: #fff; text-decoration: none; padding: 0.8rem 1.35rem; border-radius: 999px; border: 0; cursor: pointer; }
.knap:hover { background: #a42c25; color: #fff; }
.knap-lys { background: transparent; color: var(--creme); box-shadow: inset 0 0 0 1.5px var(--graa); }
.knap-lys:hover { background: var(--flade); color: #fff; }

/* spillekort */
.kort { display: inline-grid; place-items: center; width: 2.6rem; height: 3.6rem; background: var(--kort); color: var(--kort-sort); border-radius: 6px; font-family: var(--display); font-weight: 750; font-size: 1.05rem; line-height: 1; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 6px 14px -8px rgba(0, 0, 0, 0.6); }
.kort > span { display: grid; justify-items: center; gap: 0.15rem; }
.kort i { font-style: normal; font-size: 1.15rem; font-family: "Segoe UI Symbol", "Apple Symbols", var(--sans); }
.kort.roed { color: var(--kort-roed); }
.haand { display: inline-flex; gap: 0.3rem; flex-wrap: nowrap; }
.helt-kort { text-align: center; }
.vifte { display: inline-flex; padding: 1.5rem 0 1rem; }
.vifte .kort { width: 4.6rem; height: 6.4rem; font-size: 1.6rem; margin-inline: -0.55rem; }
.vifte .kort i { font-size: 1.8rem; }
.vifte .kort:nth-child(1) { transform: rotate(-16deg) translateY(14px); }
.vifte .kort:nth-child(2) { transform: rotate(-8deg) translateY(3px); }
.vifte .kort:nth-child(4) { transform: rotate(8deg) translateY(3px); }
.vifte .kort:nth-child(5) { transform: rotate(16deg) translateY(14px); }
.vifte-tekst { font-family: var(--mono); font-size: 0.85rem; color: var(--graa); max-width: 22rem; margin: 1rem auto 0; }

.sektion { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--streg); }
.sektion-lys { background: var(--bord-2); }
.to-spalter { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.runde { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.6rem; }
.runde li { display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem; background: var(--flade); border-radius: 10px; }
.runde-navn { font-family: var(--display); font-weight: 750; color: var(--creme); font-size: 1.1rem; }
.runde li span:last-child { color: var(--graa); font-size: 0.95rem; }
.runde-lodret { grid-template-columns: 1fr; }
.runde-lodret li { flex-direction: row; gap: 1rem; align-items: baseline; }
.runde-lodret .runde-navn { flex: none; width: 5.5rem; }
.tal { margin: 0 0 1.2rem; }
.tal div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--streg); }
.tal dt { color: var(--graa); }
.tal dd { margin: 0; font-family: var(--mono); font-weight: 700; color: var(--creme); white-space: nowrap; }
.pil { font-weight: 700; }
.pil::after { content: " \2192"; }

.tekstside { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem); }
.side-top { max-width: 46rem; margin-bottom: 2.5rem; }
.side-top h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
.artikel { max-width: 42rem; }
.artikel h2 { margin-top: 2em; }
.artikel ul { padding-left: 1.3rem; }
.artikel li { margin-bottom: 0.55rem; }
.note { font-size: 0.97rem; color: var(--graa); background: var(--flade); padding: 0.9rem 1.1rem; border-radius: 8px; }
.handlinger dt { font-family: var(--display); font-weight: 750; color: var(--creme); margin-top: 0.9rem; font-size: 1.1rem; }
.handlinger dd { margin: 0.1rem 0 0; color: var(--graa); }
.tjek { list-style: none; padding: 0 !important; }
.tjek li { position: relative; padding-left: 1.8rem; }
.tjek li::before { content: "\2660"; position: absolute; left: 0; color: var(--roed); }

.haender { list-style: none; margin: 0 0 3rem; padding: 0; display: grid; gap: 0.6rem; }
.haender li { display: grid; grid-template-columns: 2.4rem 1fr auto 9rem; align-items: center; gap: 1rem 1.25rem; padding: 1rem 1.25rem; background: var(--flade); border-radius: 12px; }
.h-nr { font-family: var(--mono); font-weight: 700; font-size: 1.1rem; color: var(--roed); }
.h-tekst h2 { font-size: 1.3rem; margin: 0 0 0.15rem; }
.h-tekst p { margin: 0; color: var(--graa); font-size: 0.97rem; }
.h-tal { margin: 0; display: grid; text-align: right; font-family: var(--mono); font-size: 0.88rem; }
.h-tal span:first-child { color: var(--creme); font-weight: 700; }
.h-tal span:last-child { color: var(--graa); }

.tabel-wrap { overflow-x: auto; margin-bottom: 1rem; }
.tabel { width: 100%; border-collapse: collapse; font-size: 0.98rem; margin-bottom: 1rem; }
.tabel th, .tabel td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--streg); white-space: nowrap; }
.tabel th { color: var(--graa); font-weight: 600; font-size: 0.9rem; }
.tabel td:first-child { white-space: normal; }
.tabel td:not(:first-child), .tabel th:not(:first-child) { text-align: right; font-family: var(--mono); }

.beregner { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; background: var(--flade); border-radius: 14px; padding: clamp(1.25rem, 3vw, 2rem); margin-bottom: 3rem; }
.beregner h2 { grid-column: 1 / -1; margin: 0; }
.b-felter { display: grid; gap: 1rem; align-content: start; }
.b-felter > label { display: flex; justify-content: space-between; font-weight: 700; }
.b-felter output { font-family: var(--mono); color: var(--creme); font-size: 1.2rem; }
input[type="range"] { width: 100%; accent-color: var(--roed); }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
legend { font-weight: 700; margin-bottom: 0.45rem; padding: 0; }
.valg-knap { display: flex; gap: 0.6rem; align-items: center; padding: 0.55rem 0.8rem; border-radius: 8px; background: var(--bord-2); cursor: pointer; }
.valg-knap input { accent-color: var(--roed); }
.valg-knap:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--roed); }
.b-resultat { background: var(--kort); color: var(--kort-sort); border-radius: 12px; padding: 1.4rem; }
.b-stor { margin: 0 0 1rem; display: grid; gap: 0.2rem; }
.b-stor strong { font-family: var(--display); font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; color: var(--kort-roed); font-weight: 800; }
.b-stor span { color: #4a4740; }
.b-resultat dl { margin: 0; }
.b-resultat dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-top: 1px solid #ddd5c4; }
.b-resultat dt { color: #4a4740; }
.b-resultat dd { margin: 0; font-family: var(--mono); font-weight: 700; }

.bund { border-top: 1px solid var(--streg); padding-block: 2.2rem 2.6rem; color: var(--graa); font-size: 0.97rem; }
.bund-ind { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem 3rem; }
.bund-navn { font-family: var(--display); font-weight: 750; color: var(--creme); font-size: 1.15rem; margin: 0 0 0.4rem; }
.bund-note { margin: 0; max-width: 34rem; }
.bund nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; align-content: start; }
.bund nav a { color: var(--tekst); }

@media (max-width: 960px) { .runde { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .helt-ind, .to-spalter, .beregner, .bund-ind { grid-template-columns: 1fr; }
  .haender li { grid-template-columns: 2rem 1fr; }
  .haender .haand, .haender .h-tal { grid-column: 2; }
  .h-tal { text-align: left; grid-template-columns: auto auto; justify-content: start; gap: 1rem; }
}
@media (max-width: 520px) {
  .runde { grid-template-columns: 1fr 1fr; }
  .kort { width: 2.2rem; height: 3.1rem; font-size: 0.95rem; }
  .vifte .kort { width: 3.6rem; height: 5rem; font-size: 1.3rem; margin-inline: -0.45rem; }
  .runde-lodret { grid-template-columns: 1fr; }
  .runde-lodret li { flex-direction: column; gap: 0.2rem; }
}
