/* mahjong-spil.dk - blåt-og-hvidt porcelæn: kold hvid glasur, kobolt underglasur, celadon kun for "fri" og hint. */
@font-face { font-family: "Atkinson Next"; src: url("/fonts/atkinson-next-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Mahjong Tegn"; src: url("/fonts/mahjong-tegn.woff2") format("woff2"); font-weight: 700; font-display: block; unicode-range: U+4E00, U+4E03, U+4E09, U+4E2D, U+4E5D, U+4E8C, U+4E94, U+516B, U+516D, U+5317, U+5357, U+56DB, U+6771, U+767C, U+842C, U+897F; }

:root {
  --kobolt-950: #0c1a40;
  --kobolt-900: #112457;
  --kobolt-800: #17306f;
  --kobolt-700: #1d3f8f;
  --kobolt-600: #2650b0;
  --kobolt-200: #c9d5ee;
  --kobolt-100: #e6ecf8;
  --glasur: #f6f8fc;
  --glasur-2: #edf1f9;
  --blaek: #13203f;
  --blaek-2: #3a4766;
  --celadon: #9fd3bd;
  --celadon-moerk: #1f6e52;
  --vermillon: #c4362b;
  --bord: #183478;
  --radius: 10px;
  --ease-ud: cubic-bezier(0.23, 1, 0.32, 1);
  --maal: 68ch;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--glasur); color: var(--blaek); font: 400 1.0625rem/1.55 "Atkinson Next", system-ui, -apple-system, "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; }
::selection { background: var(--kobolt-200); color: var(--kobolt-950); }
img, svg { display: block; max-width: 100%; }
a { color: var(--kobolt-700); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--kobolt-900); }
:focus-visible { outline: 3px solid var(--kobolt-600); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--glasur); color: var(--kobolt-900); padding: 10px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { top: 10px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }

/* ---------- Skal: koboltheader ---------- */
.top { background: var(--kobolt-700); color: #fff; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand:hover { color: #fff; }
.brand img { width: 34px; height: 34px; }
.brand b { font-weight: 500; opacity: .78; }
.menu { display: none; gap: 4px; }
.menu a { color: #fff; text-decoration: none; padding: 10px 12px; border-radius: 8px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.menu a:hover { background: var(--kobolt-800); }
.menu a[aria-current="page"] { background: var(--kobolt-900); }
.menu-mobil { position: relative; }
.menu-mobil summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 8px; font-weight: 700; color: #fff; }
.menu-mobil summary::-webkit-details-marker { display: none; }
.menu-mobil summary:hover { background: var(--kobolt-800); }
.streger, .streger::before, .streger::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.streger::before, .streger::after { content: ""; position: absolute; left: 0; }
.streger::before { top: -6px; } .streger::after { top: 6px; }
.menu-mobil nav { position: absolute; right: 0; top: calc(100% + 6px); background: var(--kobolt-900); border-radius: 12px; padding: 8px; min-width: 220px; z-index: 50; display: grid; box-shadow: 0 12px 32px rgba(0, 0, 0, .3); }
.menu-mobil nav a { color: #fff; text-decoration: none; padding: 12px 14px; border-radius: 8px; font-weight: 600; }
.menu-mobil nav a[aria-current="page"], .menu-mobil nav a:hover { background: var(--kobolt-700); }
@media (min-width: 900px) { .menu { display: flex; } .menu-mobil { display: none; } }

/* ---------- Spillet ---------- */
.spil { background: var(--bord); color: #fff; }
.spil-ramme { display: grid; grid-template-rows: auto 1fr auto auto; height: calc(100svh - 56px); min-height: 340px; max-height: 980px; padding-top: 8px; }
.vaerktoej { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 0 0 8px; }
.spil-h1 { font-size: 1.125rem; line-height: 1.2; margin: 0; font-weight: 800; letter-spacing: -0.01em; color: #fff; flex: 1 1 auto; min-width: 0; }
.vaelg-raekke { display: flex; align-items: center; gap: 8px; }
.etiket { font-size: .875rem; color: var(--kobolt-200); }
.layoutvalg { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px 0 14px; border-radius: 999px; border: 0; background: var(--kobolt-800); color: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: background-color .15s ease, transform .16s var(--ease-ud); }
.layoutvalg svg { width: 18px; height: 18px; }
.layoutvalg:hover { background: var(--kobolt-900); }
.layoutvalg:active { transform: scale(.97); }
.stats { display: flex; gap: 4px 16px; margin: 0; flex-wrap: wrap; }
.stats div { display: flex; align-items: baseline; gap: 6px; }
.stats dt { font-size: .8125rem; color: var(--kobolt-200); }
.stats dd { margin: 0; font-weight: 800; font-size: 1rem; }
.spilflade { position: relative; min-height: 0; display: grid; }
.braet { position: relative; overflow: hidden; display: grid; place-items: center; border-radius: 14px; background: var(--kobolt-800); outline-offset: 3px; touch-action: manipulation; }
.braet.kan-panorere { overflow: auto; place-items: start; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.braet.kan-panorere .stak { margin: auto; }
.stak { position: relative; margin: auto; transition: transform .35s var(--ease-ud); }
.handlinger { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px 0 6px; }
.status { min-height: 1.5em; margin: 0 0 8px; font-size: .9375rem; color: var(--kobolt-100); }
.status.vigtig { color: #fff; font-weight: 700; }

.knap { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--kobolt-700); color: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: background-color .15s ease, transform .16s var(--ease-ud), opacity .15s ease; -webkit-tap-highlight-color: transparent; }
.knap svg { width: 20px; height: 20px; flex: none; }
.knap:hover { background: var(--kobolt-600); }
.knap:active { transform: scale(.97); }
.knap:disabled { opacity: .45; cursor: default; transform: none; background: var(--kobolt-800); }
.knap-primaer { background: var(--glasur); color: var(--kobolt-900); }
.knap-primaer:hover { background: #fff; }
@media (max-width: 420px) { .handlinger .knap { flex-direction: column; gap: 2px; min-height: 54px; font-size: .8125rem; padding: 0 4px; } }

.zoomgruppe { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; z-index: 5; }
.zoomgruppe[hidden] { display: none; }
.zoom { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--glasur); color: var(--kobolt-900); display: grid; place-items: center; cursor: pointer; transition: transform .16s var(--ease-ud); }
.zoom svg { width: 22px; height: 22px; }
.zoom:active { transform: scale(.95); }
.zoom:disabled { opacity: .5; }

/* Brikken: porcelænsflade med kobolt bagside (siderne ned og til højre), hvert lag forskudt op og til venstre */
.brik { position: absolute; width: var(--w); height: var(--h); padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.brik::before { content: ""; position: absolute; inset: 0; transform: translate(var(--d), var(--d)); border-radius: calc(var(--w) * .12); background: var(--kobolt-600); box-shadow: inset calc(var(--d) * -.5) calc(var(--d) * -.5) 0 var(--kobolt-900); }
.brik::after { content: ""; position: absolute; inset: 0; transform: translate(calc(var(--d) * .5), calc(var(--d) * .5)); border-radius: calc(var(--w) * .12); background: #dfe5f0; }
.brik svg { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: calc(var(--w) * .12); background: var(--glasur); box-shadow: inset 0 0 0 1px rgba(19, 32, 63, .12), inset 2px 2px 0 #fff; transition: transform .16s var(--ease-ud), filter .2s ease, box-shadow .15s ease; padding: calc(var(--w) * .02); }
.brik:focus { outline: none; }
.braet.fremhaev .brik:not(.fri) svg { filter: brightness(.88) saturate(.7); background: #e9edf4; }
.braet.fremhaev .brik.fri svg { background: #fff; box-shadow: inset 0 0 0 2.5px var(--celadon), inset 4px 4px 0 #fff; }
.braet.fremhaev .brik.fri::after { background: #e6f4ee; }
@media (hover: hover) and (pointer: fine) {
  .brik.fri:hover svg { transform: translate(-1px, -2px); }
}
.brik.valgt svg { transform: translate(-2px, -4px); box-shadow: inset 0 0 0 3px var(--kobolt-600), inset 4px 4px 0 #fff; background: #fff; }
.brik.valgt::after { background: var(--kobolt-200); }
.brik.hint svg { box-shadow: inset 0 0 0 3px var(--celadon-moerk), inset 4px 4px 0 #fff; background: #f1fbf6; animation: hint 1.1s var(--ease-ud) 2; }
.brik.fokus svg { box-shadow: inset 0 0 0 3px #f2b84b, inset 4px 4px 0 #fff; }
.brik.fjernes { pointer-events: none; }
@keyframes hint { 0%, 100% { transform: none; } 40% { transform: translateY(-4px); } }

.sejr { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; padding: 20px; z-index: 6; background: var(--kobolt-800); border-radius: 14px; }
.sejr[hidden] { display: none; }
.sejr h2 { font-size: clamp(1.75rem, 5vw, 2.75rem); line-height: 1.05; letter-spacing: -0.02em; margin: 6px 0 0; }
.sejr p { margin: 0; color: var(--kobolt-100); }
.sejr .dialog-knapper { justify-content: center; margin-top: 14px; }
.sejr-fliser { display: flex; justify-content: center; gap: 6px; }
.sejr-fliser .mini { width: 38px; height: 50px; border-radius: 6px; background: var(--glasur); box-shadow: 3px 3px 0 var(--kobolt-600); display: block; }

/* Dialoger (åbnes kun ved tryk) */
.dialog { border: 0; padding: 0; border-radius: 18px; max-width: min(560px, calc(100vw - 24px)); width: 100%; background: var(--glasur); color: var(--blaek); box-shadow: 0 24px 64px rgba(12, 26, 64, .45); }
.dialog-lille { max-width: min(400px, calc(100vw - 24px)); }
.dialog::backdrop { background: rgba(12, 26, 64, .55); }
.dialog[open] { animation: dlg .22s var(--ease-ud); }
@keyframes dlg { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.dialog-indre { padding: 20px; display: grid; gap: 14px; max-height: calc(100svh - 32px); overflow: auto; }
.dialog h2 { margin: 0; font-size: 1.5rem; line-height: 1.15; }
.dialog p { margin: 0; }
.dialog-knapper { display: flex; flex-wrap: wrap; gap: 10px; }
.dialog .knap { background: var(--kobolt-100); color: var(--kobolt-900); }
.dialog .knap:hover { background: var(--kobolt-200); }
.dialog .knap-primaer { background: var(--kobolt-700); color: #fff; }
.dialog .knap-primaer:hover { background: var(--kobolt-800); }
.layoutliste { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lay input { position: absolute; opacity: 0; pointer-events: none; }
.layoutvalg-kort { display: grid; gap: 4px; padding: 12px; border-radius: 12px; background: #fff; cursor: pointer; height: 100%; box-shadow: inset 0 0 0 2px var(--kobolt-100); transition: box-shadow .15s ease, transform .16s var(--ease-ud); }
.layoutvalg-kort svg { height: 64px; width: 100%; margin-bottom: 4px; }
.layoutvalg-kort .navn { font-weight: 800; }
.layoutvalg-kort .forkl { font-size: .875rem; color: var(--blaek-2); line-height: 1.35; }
.lay input:checked + .layoutvalg-kort { box-shadow: inset 0 0 0 3px var(--kobolt-600); background: var(--kobolt-100); }
.lay input:focus-visible + .layoutvalg-kort { outline: 3px solid var(--kobolt-600); outline-offset: 2px; }
.layoutvalg-kort:active { transform: scale(.98); }
.afkryds { display: flex; align-items: center; gap: 10px; }
.afkryds input { width: 22px; height: 22px; accent-color: var(--kobolt-700); }
.afkryds label { cursor: pointer; }

/* Desktop: værktøjslinjen på én række, handlingerne ved siden af hinanden */
@media (min-width: 900px) {
  .spil-ramme { grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; column-gap: 16px; padding-top: 12px; padding-bottom: 12px; }
  .vaerktoej { grid-column: 1 / -1; }
  .spilflade { grid-column: 1; grid-row: 2 / 4; }
  .handlinger { grid-column: 2; grid-row: 2; grid-template-columns: 1fr; align-content: start; width: 168px; padding: 0; }
  .status { grid-column: 2; grid-row: 3; align-self: end; font-size: .875rem; }
  .spil-h1 { font-size: 1.375rem; }
}
/* Telefon på langs: værktøj og knapper i en sidekolonne, brættet i hele højden */
@media (max-height: 500px) and (orientation: landscape) {
  .top-inner { min-height: 44px; }
  .menu-mobil summary, .menu a { min-height: 40px; }
  .brand img { width: 28px; height: 28px; }
  .spil-ramme { grid-template-columns: minmax(0, 1fr) 188px; grid-template-rows: auto minmax(0, 1fr) auto; column-gap: 10px; height: calc(100svh - 44px); min-height: 300px; padding-top: 6px; padding-bottom: 6px; }
  .vaerktoej { grid-column: 2; grid-row: 1 / 3; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 6px; padding: 0; overflow: auto; }
  .spil-h1 { font-size: 1rem; flex: none; }
  .vaelg-raekke .etiket { display: none; }
  .layoutvalg { min-height: 40px; justify-content: space-between; }
  .stats { gap: 0 10px; }
  .stats dt { font-size: .75rem; }
  .stats dd { font-size: .875rem; }
  .spilflade { grid-column: 1; grid-row: 1 / 4; }
  .handlinger { grid-column: 2; grid-row: 3; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0; }
  .handlinger .knap { min-height: 44px; font-size: .8125rem; padding: 0 6px; gap: 4px; flex-direction: row; }
  .handlinger .knap svg { width: 16px; height: 16px; }
  .spil-ramme { position: relative; }
  .status { position: absolute; left: 8px; bottom: 12px; max-width: calc(100% - 214px); margin: 0; padding: 6px 10px; border-radius: 8px; background: var(--kobolt-950); color: #fff; font-size: .8125rem; line-height: 1.3; z-index: 7; pointer-events: none; }
  .status:empty { display: none; }
  .stat-mulige { display: none !important; }
}

/* ---------- Læsesider ---------- */
.efter { padding: 56px 0 72px; }
.prosa { max-width: var(--maal); }
.prosa h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; letter-spacing: -0.015em; margin: 2.2em 0 .5em; color: var(--kobolt-900); text-wrap: balance; }
.prosa h3 { font-size: 1.1875rem; line-height: 1.25; margin: 1.6em 0 .35em; color: var(--kobolt-900); }
.prosa p, .prosa li { max-width: var(--maal); }
.prosa ul, .prosa ol { padding-left: 1.3em; }
.prosa li { margin: .3em 0; }
.ingress { font-size: 1.25rem; line-height: 1.5; color: var(--blaek); }
.side-hoved { background: var(--kobolt-700); color: #fff; padding: 40px 0 0; }
.side-hoved h1 { font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 14px; max-width: 16ch; text-wrap: balance; }
.side-hoved .ingress { color: var(--kobolt-100); max-width: 60ch; margin: 0 0 28px; }
.hoved-billede { margin: 0; }
.hoved-billede img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 16px 16px 0 0; background: var(--kobolt-800); }
.figur { margin: 2em 0; }
.figur img { border-radius: 14px; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--kobolt-100); }
.figur figcaption { font-size: .9375rem; color: var(--blaek-2); margin-top: 8px; }
.cta { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px; background: var(--kobolt-700); color: #fff; font-weight: 700; text-decoration: none; transition: background-color .15s ease, transform .16s var(--ease-ud); }
.cta:hover { background: var(--kobolt-800); color: #fff; }
.cta:active { transform: scale(.97); }
.faq details { background: #fff; border-radius: 12px; margin: 8px 0; box-shadow: inset 0 0 0 1px var(--kobolt-100); }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 48px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--kobolt-700); transition: transform .2s var(--ease-ud); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 16px 16px; }

/* Brik-tabeller og brik-rækker på regelsiderne (farve kun inde i brikkerne) */
.brikraekke { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; padding: 0; list-style: none; }
.brikraekke li { margin: 0; display: grid; justify-items: center; gap: 4px; font-size: .8125rem; color: var(--blaek-2); text-align: center; width: 56px; }
.mini-brik { width: 48px; height: 64px; border-radius: 6px; background: var(--glasur); box-shadow: inset 0 0 0 1px rgba(19, 32, 63, .14), 3px 3px 0 var(--kobolt-600); }
.tabel-wrap { overflow-x: auto; margin: 1.2em 0; -webkit-overflow-scrolling: touch; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--kobolt-100); }
.tabel-wrap table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: .9375rem; }
.tabel-wrap th, .tabel-wrap td { text-align: left; padding: 10px 14px; white-space: nowrap; vertical-align: top; }
.tabel-wrap thead th { background: var(--kobolt-100); color: var(--kobolt-900); }
.tabel-wrap tbody tr:nth-child(even) { background: var(--glasur); }
.tabel-wrap tbody th { position: sticky; left: 0; background: inherit; background-color: #fff; font-weight: 700; }
.tabel-wrap tbody tr:nth-child(even) th { background-color: var(--glasur); }
@media (max-width: 640px) { .tabel-wrap.lang th[scope="row"] { white-space: normal; max-width: 45vw; min-width: 120px; } }
.tegning { margin: 1.6em 0; background: #fff; border-radius: 14px; padding: 16px; box-shadow: inset 0 0 0 1px var(--kobolt-100); }
.tegning figcaption { font-size: .9375rem; color: var(--blaek-2); margin-top: 8px; }
.kilder { font-size: .9375rem; }

/* Forsidens indhold under spillet: to kolonner på desktop */
.efter-grid { display: grid; gap: 8px 56px; }
@media (min-width: 1000px) { .efter-grid { grid-template-columns: minmax(0, 1fr) 340px; } .efter-side { padding-top: 2.6em; } }
.efter-side .figur { margin-top: 0; }
.layout-galleri { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 1em 0 1.6em; padding: 0; list-style: none; }
.prosa .layout-galleri { padding-left: 0; }
.layout-galleri li { margin: 0; max-width: none; }
.layout-galleri button { width: 100%; height: 100%; display: grid; align-content: start; gap: 2px; text-align: left; font: inherit; color: var(--blaek); background: #fff; border: 0; border-radius: 12px; padding: 12px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--kobolt-100); transition: box-shadow .15s ease, transform .16s var(--ease-ud); }
.layout-galleri button:hover { box-shadow: inset 0 0 0 2px var(--kobolt-600); }
.layout-galleri button:active { transform: scale(.98); }
.layout-galleri svg { height: 56px; width: 100%; margin-bottom: 6px; }
.layout-galleri strong { font-weight: 800; color: var(--kobolt-900); }
@media (max-width: 899px) { .layout-galleri { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; } .layout-galleri li { flex: 0 0 148px; scroll-snap-align: start; } }
.layout-galleri span { display: block; font-size: .875rem; color: var(--blaek-2); }

/* ---------- Fod ---------- */
.bund { background: var(--kobolt-900); color: var(--kobolt-100); padding: 40px 0 48px; }
.bund-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .bund-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.bund h2 { font-size: 1rem; color: #fff; margin: 0 0 8px; }
.bund ul { list-style: none; padding: 0; margin: 0; }
.bund li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--kobolt-100); }
.bund li a:hover { color: #fff; }
.bund p { margin: 10px 0 0; max-width: 40ch; }
.bund .brand { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.prosa > h2:first-child, .prosa > .ingress:first-child { margin-top: 0; }
.brikraekke li { width: auto; min-width: 56px; white-space: nowrap; }
.efter-grid > * { min-width: 0; }
/* Musselmalet kant: en malet bølgebort i underglasurblå under headeren og over foden */
.top { position: relative; }
.top::after, .bund::before { content: ""; display: block; height: 10px; background-repeat: repeat-x; background-size: 28px 10px; }
.top::after { position: absolute; left: 0; right: 0; bottom: -10px; z-index: 2; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 10'%3E%3Cpath d='M0 0h28v2c-4 0-5 7-7 7s-3-5-7-5-5 5-7 5-3-7-7-7z' fill='%231d3f8f'/%3E%3Ccircle cx='14' cy='2.4' r='1.3' fill='%2317306f'/%3E%3C/svg%3E"); pointer-events: none; }
.bund { position: relative; }
.bund::before { position: absolute; left: 0; right: 0; top: -10px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 10'%3E%3Cpath d='M0 10h28V8c-4 0-5-7-7-7s-3 5-7 5-5-5-7-5-3 7-7 7z' fill='%23112457'/%3E%3C/svg%3E"); }

/* ---------- Mahjong connect: ét lag, brikkerne i et gitter, linjen mellem to brikker ---------- */
.connect-stak { transition: none; }
.forbindelse { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 20; overflow: visible; }
.forb-kant { fill: none; stroke: var(--kobolt-950); stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.forb-streg { fill: none; stroke: var(--celadon); stroke-linecap: round; stroke-linejoin: round; }
.str-galleri { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.forbind-raekke { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 14px 16px; }
.forbind-raekke svg { width: 100%; height: auto; }
.tabel-wrap thead th:first-child { position: sticky; left: 0; z-index: 1; }
@media (min-width: 641px) { .tabel-wrap.lang td, .tabel-wrap.lang th { white-space: normal; } .tabel-wrap.lang table { min-width: 0; } .tabel-wrap.lang th[scope="row"] { min-width: 150px; } }
.sejr-fliser { flex-wrap: wrap; }
@media (max-width: 360px) { .sejr-fliser .mini { width: 32px; height: 42px; } }
