:root {
  --ground: #edf0f3;
  --surface: #ffffff;
  --surface-2: #f3f5f8;
  --line: #d7dde4;
  --ink: #131a22;
  --muted: #58656f;
  --navy: #1c2b45;
  --on-navy: #ffffff;
  --navy-soft: #e1e8f3;
  --gold: #8a6619;
  --gold-soft: #f4e7c6;
  --warn: #855600;
  --warn-soft: #fff1cf;
  --ok: #2a6a47;
  --ok-soft: #dbeee2;
  --danger: #b42318;
  --danger-soft: #fce4e1;
  --g-char: #2f6bd8;
  --g-event: #d97a1f;
  --g-stage: #1f9d74;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --font-display: "Saira Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 12px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0d1116;
    --surface: #151b22;
    --surface-2: #1c242d;
    --line: #2b3541;
    --ink: #e6ebf0;
    --muted: #9aa6b2;
    --navy: #a9c1ea;
    --series-1: #3987e5;
    --series-2: #d95926;
    --on-navy: #0d1116;
    --navy-soft: #1f2b3d;
    --gold: #deb55e;
    --gold-soft: #3a2f17;
    --warn: #f0c261;
    --warn-soft: #362a0f;
    --ok: #84cda1;
    --ok-soft: #163225;
    --danger: #ff8b7f;
    --danger-soft: #3b1a17;
    --g-char: #5f8fe8;
    --g-event: #c97a2e;
    --g-stage: #2f9c78;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ground: #0d1116;
  --surface: #151b22;
  --surface-2: #1c242d;
  --line: #2b3541;
  --ink: #e6ebf0;
  --muted: #9aa6b2;
  --navy: #a9c1ea;
  --series-1: #3987e5;
  --series-2: #d95926;
  --on-navy: #0d1116;
  --navy-soft: #1f2b3d;
  --gold: #deb55e;
  --gold-soft: #3a2f17;
  --warn: #f0c261;
  --warn-soft: #362a0f;
  --ok: #84cda1;
  --ok-soft: #163225;
  --danger: #ff8b7f;
  --danger-soft: #3b1a17;
  --g-char: #5f8fe8;
  --g-event: #c97a2e;
  --g-stage: #2f9c78;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.45 var(--font-body);
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  -webkit-text-size-adjust: 100%;
}
body.locked { overflow: hidden; }

button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
[hidden] { display: none !important; }
a { color: var(--navy); }

.eyebrow { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.78; }
.hint { margin: 0; color: var(--muted); font-size: 14px; }
.help { font-family: var(--font-mono); font-size: 12px; overflow-wrap: anywhere; }
.fineprint { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.err { color: var(--danger); font-size: 14px; }
.stack { display: grid; gap: 8px; }
/* Auto-godkendelse i tjeklisten */
.auto-verify { align-items: center; gap: 6px 12px; margin-top: 8px; }
.auto-verify .hint { flex: 1 1 220px; font-size: 12px; }
/* Graderingstjek */
.grade-check { gap: 6px; }
.grade-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.grade-row > span:first-child { display: grid; gap: 1px; }
.grade-row small { color: var(--muted); font-size: 12px; }
.grade-row .segmented button.ok[aria-pressed="true"] { background: var(--ok-soft); color: var(--ok); }
.grade-row .segmented button.bad[aria-pressed="true"] { background: var(--danger-soft); color: var(--danger); }
/* Stempel-kig: udsnit af dit foto, hvor stempler og folie-tekst sidder */
.stamp-peek { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.stamp-peek figure { margin: 0; display: grid; gap: 3px; }
.stamp-peek .peek { aspect-ratio: 3 / 2; border-radius: 8px; background-color: var(--surface-2); background-repeat: no-repeat; cursor: zoom-in; border: 1px solid var(--line); }
.stamp-peek figcaption { font-size: 11px; color: var(--muted); text-align: center; text-transform: uppercase; letter-spacing: 0.04em; }
.picker-cm { align-items: center; gap: 8px 12px; }
.picker-cm .hint { flex: 1 1 200px; font-size: 12px; }
.btn.danger-soft { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
/* Link ud af appen, sat op som en knap */
.btn.link-out { text-decoration: none; display: inline-flex; align-items: center; }

/* Sortering og farver i samlingen */
.sortbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sortbar[hidden], .collection-sum[hidden] { display: none; }
.sort-pick { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.sort-pick select { min-height: 36px; padding: 0 28px 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; }
.color-dots { display: flex; align-items: center; gap: 6px; }
.color-dot { position: relative; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 2px solid var(--line); background: var(--dot, var(--surface-2)); cursor: pointer; }
.color-dot[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.color-dot.dimmed { opacity: 0.35; }
.color-dot b { position: absolute; right: -4px; bottom: -4px; min-width: 16px; padding: 0 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 10px; line-height: 14px; font-variant-numeric: tabular-nums; }
.color-clear { min-height: 30px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: 12px; cursor: pointer; }
.collection-sum { font-size: 13px; color: var(--muted); }
.collection-sum b { color: var(--ink); font-variant-numeric: tabular-nums; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 6px 2px 2px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.group-head:first-child { margin-top: 0; }
.group-head small { font-family: var(--font-body, inherit); font-weight: 400; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.group-head .swatch, .slot .swatch { display: inline-block; width: 11px; height: 11px; margin-right: 6px; border-radius: 50%; background: var(--dot); vertical-align: baseline; }
.slot .swatch { width: 9px; height: 9px; margin-right: 0; }
.binder .group-head { grid-column: 1 / -1; }
/* Lommen er en knap inde i en ramme: uden fuld bredde retter den sig efter prisens længde */
.binder .pocket { width: 100%; }

/* Krydset der fjerner et kort. Ligger oven på kortet, så det er ét tryk hvor som helst. */
.card-wrap { position: relative; }
.card-x {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.card-x:hover, .card-x:focus-visible { color: var(--danger); border-color: var(--danger); }
.binder .card-x { top: 4px; left: 4px; right: auto; width: 26px; height: 26px; }
/* Plads til krydset, så det aldrig dækker prisen */
.stack .slot { padding-right: 38px; }
.stack:empty { display: none; }

/* Top */

.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
  background: #1c2b45;
  color: #ffffff;
}
.bar-session { min-width: 0; display: grid; text-align: left; background: none; border: 0; padding: 2px 0; cursor: pointer; color: #ffffff; }
.bar-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-name::after { content: " ▾"; font-size: 13px; opacity: 0.7; }
.bar-value { display: block; text-align: right; flex-shrink: 0; background: none; border: 0; padding: 2px 0; margin: 0; font: inherit; color: #ffffff; cursor: pointer; border-radius: 8px; }
.bar-value .eyebrow::after { content: " ›"; }
.bar-value:hover .bar-amount { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.bar-value:focus-visible { outline: 2px solid #f2d48a; outline-offset: 3px; }
.bar-amount { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.05; color: #f2d48a; font-variant-numeric: tabular-nums; }
.bar-pending { display: block; font-size: 11px; opacity: 0.7; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-pending[hidden] { display: none; }
#save-state.saving::after { content: " · gemmer"; }
#save-state.failed { color: #ffb4ab; opacity: 1; }

.main { max-width: 720px; margin: 0 auto; padding: 12px 12px 20px; }
.panels, .panel { display: grid; gap: 12px; }

.section-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.15; text-wrap: balance; }
.section-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; }
.section-row .hint { font-size: 13px; }

/* Knapper og felter */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.primary { background: var(--navy); color: var(--on-navy); border-color: transparent; }
.btn.big { min-height: 54px; font-size: 17px; padding-inline: 22px; }
.btn.small { min-height: 34px; padding: 5px 11px; font-size: 14px; }
.btn.quiet { background: transparent; border-color: transparent; color: var(--navy); }
.btn.danger { color: var(--danger); }

input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
}
.field { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.field.inline { grid-template-columns: auto 1fr; align-items: center; gap: 10px; font-size: 14px; }

.segmented { display: flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--surface); }
.segmented button { flex: 1; min-height: 40px; padding: 6px 8px; border: 0; background: transparent; font-weight: 700; font-size: 14px; cursor: pointer; }
.segmented button + button { border-left: 1px solid var(--line); }
.segmented button[aria-checked="true"] { background: var(--navy); color: var(--on-navy); }
.segmented.compact button { min-height: 34px; font-size: 13px; padding: 4px 10px; }
.segmented.conditions button { font-family: var(--font-mono); font-size: 13px; padding: 4px 2px; }

.notice { padding: 12px 14px; border-radius: var(--radius); background: var(--warn-soft); font-size: 15px; }
.notice b { color: var(--warn); }
.empty-state { margin: 0; padding: 16px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 15px; }

/* Adgang og opsætning */

.setup { display: grid; gap: 12px; padding: 20px 18px; margin-top: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.setup-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.05; }
.setup p { margin: 0; }
.setup ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.setup .search input { font-family: var(--font-mono); }
.loading { display: flex; align-items: center; gap: 10px; padding: 24px 4px; color: var(--muted); }

/* Kamera */

.camera {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: min(66vh, 640px);
  border-radius: var(--radius);
  background: #070a0e;
  color: #ffffff;
}
.camera video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame {
  position: absolute;
  left: 50%;
  top: 46%;
  height: 72%;
  aspect-ratio: 63 / 88;
  transform: translate(-50%, -50%);
  border-radius: 14px;
  box-shadow: 0 0 0 100vmax rgb(4 7 11 / 0.48);
  outline: 3px solid rgb(255 255 255 / 0.9);
  transition: outline-color 0.15s;
}
.frame.found { outline-color: #f2d48a; }
.frame.captured, .frame.done { outline-color: #7fd3a0; }
.camera-progress {
  position: absolute;
  left: 50%;
  bottom: 68px;
  transform: translateX(-50%);
  width: 44%;
  height: 4px;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.28);
  overflow: hidden;
}
.camera-progress i { display: block; height: 100%; width: 0; background: #f2d48a; transition: width 0.1s linear; }
.flash { position: absolute; inset: 0; background: #ffffff; opacity: 0; pointer-events: none; transition: opacity 0.3s ease-out; }
.flash.on { opacity: 0.6; transition: none; }
.camera-top {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.8);
  font-variant-numeric: tabular-nums;
}
.camera-top span:last-child { color: #f2d48a; }
.camera-status {
  position: absolute;
  left: 50%;
  bottom: 78px;
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.66);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.camera-controls { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; align-items: center; gap: 12px; }
.shutter { width: 58px; height: 58px; border-radius: 50%; border: 4px solid #ffffff; background: rgb(255 255 255 / 0.25); cursor: pointer; }
.shutter:active { background: rgb(255 255 255 / 0.6); }
.cam-btn { min-height: 40px; min-width: 56px; padding: 0 12px; border: 0; border-radius: 999px; background: rgb(0 0 0 / 0.58); color: #ffffff; font-weight: 700; cursor: pointer; }
.cam-btn[aria-pressed="true"] { background: #f2d48a; color: #131a22; }
.camera-tip { max-width: 320px; font-size: 12px; line-height: 1.4; opacity: 0.8; }
.camera-tip[hidden] { display: none; }
.camera-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: radial-gradient(circle at 50% 35%, #1f2f47, #070a0e 70%);
}
.camera-start p { margin: 0; max-width: 32ch; color: #d9e1ea; }
.camera-start .btn.primary { background: #f2d48a; color: #131a22; }
.link-button { color: #b9c7d8; font-size: 14px; text-decoration: underline; cursor: pointer; }

.scan {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px 8px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.scan img { width: 46px; aspect-ratio: 63 / 88; object-fit: cover; border-radius: 4px; background: var(--surface-2); display: block; }
.scan.check { background: var(--warn-soft); border-color: transparent; }
.scan.retry, .scan.error { border-color: var(--danger); }
.scan-body { display: grid; gap: 2px; min-width: 0; }
.scan-body b { line-height: 1.2; overflow-wrap: anywhere; }
.scan-state { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.scan.added .scan-state { color: var(--ok); }
.scan.retry .scan-state, .scan.error .scan-state { color: var(--danger); }
.scan-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.scan-tools { display: grid; gap: 8px; }
.command { display: flex; gap: 8px; }
.command input { font-family: var(--font-mono); }
.help { margin-top: -4px; }
.spinner { display: inline-block; flex-shrink: 0; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--navy); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Godkendelse */

.review { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.review.attention { background: var(--warn-soft); border-color: transparent; }
.review-body { display: grid; gap: 4px; min-width: 0; }
.pair { display: flex; gap: 6px; align-items: flex-start; }
.flags { margin: 2px 0; padding-left: 18px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* Kortbilleder */

.art { display: block; width: 58px; aspect-ratio: 120 / 168; border-radius: 4px; background-color: var(--surface-2); background-repeat: no-repeat; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08); flex-shrink: 0; }
.art.empty { display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.art { position: relative; overflow: hidden; }
.art-hi { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.taught-tag { position: absolute; left: 3px; bottom: 3px; padding: 0 5px; border-radius: 999px; background: rgb(8 12 18 / 0.72); color: #fff; font-size: 9px; font-weight: 700; }
.art.large { width: 124px; }
.crop { display: block; width: 62px; aspect-ratio: 63 / 88; object-fit: cover; border-radius: 4px; background: var(--surface-2); flex-shrink: 0; }
.crop.large { width: 124px; }
.pair .art, .pair .crop { width: 72px; }

.code { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; padding: 0 5px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.rarity { font-family: var(--font-mono); font-size: 11px; font-weight: 600; padding: 0 5px; border-radius: 4px; background: var(--surface-2); color: var(--ink); }
.rarity.r-top { background: var(--gold-soft); color: var(--gold); }
.rarity.r-sr { background: var(--navy-soft); color: var(--navy); }
.pill { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.single { background: var(--navy-soft); color: var(--navy); }
.pill.grade { background: var(--gold-soft); color: var(--gold); }
.pill.unknown { background: var(--warn-soft); color: var(--warn); }
.pill.listed { background: var(--ok-soft); color: var(--ok); }
.pill.sold { background: var(--ink); color: var(--surface); }
.price { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; color: var(--muted); }
.slot-title { font-weight: 700; line-height: 1.25; }

/* Samling */

.toolbar { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips:empty { display: none; }
.chips[hidden] { display: none; }
/* Prisgrænsen: en stille række under filtrene, så den ikke larmer mere end de vigtige knapper */
.price-floor { align-items: center; }
.price-floor .chip { padding: 4px 10px; font-size: 13px; }
.price-floor-label { flex-shrink: 0; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); padding-right: 2px; }
.chip { flex-shrink: 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; cursor: pointer; }
.chip b { font-variant-numeric: tabular-nums; color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--on-navy); border-color: transparent; }
.chip[aria-pressed="true"] b { color: inherit; }

.slot { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 10px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.slot.attention { border-color: var(--warn); }
.slot.sold { opacity: 0.72; }
.slot-body { display: grid; gap: 3px; min-width: 0; }
.slot-side { display: grid; justify-items: end; gap: 4px; }
.qty { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.loc { overflow-wrap: anywhere; }

.binder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.pocket { position: relative; display: grid; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; }
.pocket .art { width: 100%; }
.pocket.attention { border-color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn); }
.pocket.sold { opacity: 0.6; }
.pocket-qty { position: absolute; top: 9px; right: 9px; padding: 0 6px; border-radius: 999px; background: #1c2b45; color: #ffffff; font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.pocket-meta { position: absolute; bottom: 30px; left: 9px; padding: 1px 7px; border-radius: 999px; background: rgb(8 12 18 / 0.78); color: #f0c93a; font-size: 11px; font-weight: 700; backdrop-filter: blur(4px); }
.meta-pill { background: var(--gold-soft); color: var(--gold); }
/* Til Dua: grøn = giv trygt, gul = måske, lilla = givet væk */
.pill.gift-safe { background: var(--ok-soft); color: var(--ok); }
.pill.gift-maybe { background: var(--warn-soft); color: var(--warn); }
.pill.gift { background: rgb(155 95 214 / 0.18); color: #9b5fd6; }
.pocket-meta.gift-safe { color: #7fe0a8; }
.pocket-meta.gift-maybe { color: #f0c93a; }
.chip.dua[aria-pressed="false"] { border-color: #b98ae6; }
.gift-box .gift-floors { margin-top: 6px; flex-wrap: wrap; }
.gift-box .gift-show { margin-top: 8px; max-width: 460px; }
.gift-box .actions .btn { white-space: nowrap; }
.gift-box .actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pocket-price { font-family: var(--font-display); font-weight: 700; font-size: 15px; text-align: center; font-variant-numeric: tabular-nums; }

/* Salg */

.hero { display: grid; gap: 8px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.hero-amount { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
.counts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--muted); }
.counts b { color: var(--ink); font-variant-numeric: tabular-nums; }
.split { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--surface-2); }
.split span { display: block; height: 100%; }
.s-grade, .k-grade { background: var(--gold); }
.s-single, .k-single { background: var(--navy); }
.s-bulk, .k-bulk { background: var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }
.routes { display: grid; gap: 8px; }
.route { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: start; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.route.recommended { border: 2px solid var(--navy); padding: 13px; }
.route-key { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1; color: var(--navy); }
.route-body { display: grid; gap: 4px; min-width: 0; }
.route-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.route-body p { margin: 0; font-size: 14px; color: var(--muted); }
.route-body .why { color: var(--ink); }
.route-amount { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sold-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 12px 14px; border-radius: var(--radius); background: var(--ok-soft); font-size: 15px; }
.export { display: grid; gap: 8px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* Bundnavigation */

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px max(8px, env(safe-area-inset-left)) calc(4px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.tabbar button { position: relative; display: grid; justify-items: center; gap: 1px; padding: 6px 4px; border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.tabbar button[aria-current="page"] { color: var(--navy); }
.tab-badge { position: absolute; top: 2px; left: calc(50% + 8px); min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #ffffff; font-size: 11px; line-height: 18px; font-variant-numeric: tabular-nums; }
[data-tab="samling"] .tab-badge { background: var(--muted); }

/* Ark */

.sheet-backdrop { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; background: rgb(6 10 16 / 0.55); }
.sheet { width: min(720px, 100%); max-height: 92vh; overflow: auto; display: grid; gap: 14px; padding: 16px 16px calc(22px + env(safe-area-inset-bottom)); background: var(--surface); border-radius: 16px 16px 0 0; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sheet-title { margin: 0 0 4px; font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.1; text-wrap: balance; }
.sheet-photo { display: flex; gap: 12px; align-items: flex-start; }
.sheet-section { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.detail-top { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; }
.detail-images { display: flex; gap: 8px; }
.detail-price { display: grid; gap: 4px; align-content: start; min-width: 0; overflow-wrap: anywhere; }
.big-price { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.link { color: var(--navy); font-weight: 700; font-size: 14px; }
.attention-box { margin: 0; padding: 10px 12px 10px 28px; border-radius: 9px; background: var(--warn-soft); }
.detail-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.detail-block { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.label { font-weight: 700; font-size: 15px; }

/* Kortets plads i metaen: en dom, tre tal og de dæk, der spiller det */
.card-play .play-verdict { margin: 0; font-weight: 600; }
.play-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.play-stats div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); min-width: 0; }
.play-stats b { font-size: 18px; font-variant-numeric: tabular-nums; }
.play-stats span { font-size: 12px; color: var(--muted); }
.play-decks { display: grid; gap: 6px; }
.play-deck { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.play-deck.st { grid-template-columns: minmax(0, 1fr) auto; }
.play-deck span { display: flex; flex-direction: column; min-width: 0; }
.play-deck b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.play-deck small { font-size: 12px; color: var(--muted); }
.play-deck em { display: flex; flex-direction: column; align-items: flex-end; font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.play-deck em small { font-weight: 400; font-size: 11px; }
.play-deck .swatch { width: 12px; height: 12px; border-radius: 50%; background: var(--dot); }
.detail-actions { padding-top: 12px; border-top: 1px solid var(--line); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.stepper button { width: 42px; height: 38px; border: 0; background: var(--surface-2); font-size: 20px; cursor: pointer; }
.stepper output { min-width: 40px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
/* Tallet kan trykkes: så kan antallet skrives i stedet for mange tryk på plus */
.stepper-count { min-width: 44px; height: 38px; border: 0; border-inline: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; cursor: pointer; }
.qty-chips { flex-wrap: wrap; margin-bottom: 10px; }
.qty-chips .chip { min-width: 46px; justify-content: center; }
.search { display: flex; gap: 8px; }
.search input { font-family: var(--font-mono); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.tile { position: relative; display: grid; gap: 4px; padding: 6px; text-align: left; background: var(--surface-2); border: 2px solid transparent; border-radius: 9px; cursor: pointer; }
.tile .zoom, .mini-tile .zoom { top: 4px; right: 4px; }
.tile:hover { border-color: var(--line); }
.tile.selected { border-color: var(--navy); }
.tile .art { width: 100%; }
.tile b { font-size: 14px; line-height: 1.2; }
.tile span { font-size: 12px; color: var(--muted); }
.tile .price { font-size: 17px; color: var(--ink); }
.session-list { display: grid; }
.session-item { display: flex; justify-content: space-between; gap: 10px; padding: 12px 4px; background: none; border: 0; border-top: 1px solid var(--line); text-align: left; cursor: pointer; }
.session-item.current { font-weight: 700; }
.session-item span:last-child { color: var(--muted); font-size: 14px; white-space: nowrap; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toggle-row input { width: 22px; min-height: 22px; height: 22px; accent-color: #1c2b45; }

/* Forstør et billede */

[data-zoom] { cursor: zoom-in; }
.zoom {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(6 10 16 / 0.62);
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  cursor: zoom-in;
}
.has-zoom { position: relative; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  padding: calc(12px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom));
  background: rgb(6 10 16 / 0.94);
  color: #ffffff;
}
.lightbox-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; }
.lightbox-head .btn { background: rgb(255 255 255 / 0.12); color: #ffffff; border-color: transparent; }
.lightbox-tabs { justify-self: center; background: rgb(255 255 255 / 0.1); border-color: rgb(255 255 255 / 0.2); }
.lightbox-tabs button { color: #ffffff; }
.lightbox-tabs button[aria-checked="true"] { background: #f2d48a; color: #131a22; }
.lightbox-stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; }
.lightbox-stage .art { width: min(100%, calc((100vh - 220px) * 120 / 168)); max-height: calc(100vh - 220px); border-radius: 10px; box-shadow: none; }
.lightbox-stage img { position: absolute; max-width: 100%; max-height: calc(100vh - 220px); border-radius: 10px; object-fit: contain; opacity: 0; transition: opacity 0.15s; }
.lightbox-stage img.ready { opacity: 1; }
.lightbox-stage img.solo { position: static; opacity: 1; }
.lightbox-actions { display: flex; justify-content: center; gap: 8px; }
.lightbox-actions:empty { display: none; }
.lightbox-actions .btn.primary { background: #f2d48a; color: #131a22; }
.alikes { display: grid; gap: 6px; }
.alike { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); text-align: left; cursor: pointer; }
.alike[aria-pressed="true"] { border-color: var(--navy); }
.alike span { font-size: 14px; }
.alike b { font-family: var(--font-display); font-size: 17px; font-variant-numeric: tabular-nums; }

.toast { position: fixed; left: 50%; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 30; transform: translateX(-50%); width: min(640px, calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--ink); color: var(--ground); font-size: 15px; box-shadow: 0 6px 20px rgb(0 0 0 / 0.25); }
.toast.error { background: var(--danger); color: #ffffff; }
.toast-action { flex-shrink: 0; padding: 4px 10px; border: 1px solid currentColor; border-radius: 7px; background: transparent; color: inherit; font-weight: 700; cursor: pointer; }

/* Store samlinger: hurtigvalg af udgave, annullér og dobbelttjek */

.scan { grid-template-columns: 46px 1fr 34px; }
.scan-x {
  width: 34px;
  height: 34px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.scan.check .scan-x { background: transparent; }
.scan-wide, .scan .scan-actions { grid-column: 1 / -1; }
.scan .scan-actions { justify-content: flex-start; }
.variant-strip { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 4px; scroll-snap-type: x proximity; }
.mini-tile {
  position: relative;
  flex: 0 0 82px;
  display: grid;
  gap: 2px;
  padding: 4px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
}
.scan:not(.check) .mini-tile { background: var(--surface-2); }
.mini-tile .art { width: 100%; }
.mini-tile span { font-size: 11px; line-height: 1.15; color: var(--muted); }
.mini-tile b { font-family: var(--font-display); font-size: 15px; font-variant-numeric: tabular-nums; }
.mini-tile.selected { border-color: var(--navy); }
.mini-more { flex: 0 0 56px; border: 1px dashed var(--line); border-radius: 8px; background: transparent; font-weight: 700; cursor: pointer; }
.checklist { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--warn-soft); }
.checklist > div { display: grid; gap: 2px; min-width: 0; }
.review-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.review-compare figure { margin: 0; display: grid; gap: 4px; }
.review-compare figcaption { font-size: 13px; color: var(--muted); text-align: center; }
.crop.xl, .art.xl { width: 100%; }
.review-actions .btn.big { flex: 1; }
.more { width: 100%; margin-top: 8px; }
.all-clear { margin: 0; padding: 12px 14px; border-radius: var(--radius); background: var(--ok-soft); }
details.sheet-section summary { cursor: pointer; }

@media (min-width: 560px) {
  .detail-top { grid-template-columns: auto 1fr; gap: 16px; }
  .review-compare { max-width: 440px; }
  .binder { grid-template-columns: repeat(4, 1fr); }
  .art { width: 66px; }
  .pair .art, .pair .crop { width: 88px; }
  .art.large, .crop.large { width: 150px; }
  .camera { aspect-ratio: 4 / 3; }
  .frame { height: 82%; }
}

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
  .btn:active { transform: none; }
  .flash, .flash.on { transition: none; }
}

/* Flere enheder: fælles liste over seneste kort, og stor visning på computeren */

.scan-panel { grid-template-areas: "camera" "feed" "tools" "review"; }
.scan-panel > .camera { grid-area: camera; }
.scan-panel > .scan-feed { grid-area: feed; display: grid; gap: 8px; min-width: 0; }
.scan-panel > .scan-tools { grid-area: tools; }
.scan-panel > #review { grid-area: review; }
.feed-head { align-items: center; margin-top: 2px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.live.on { color: var(--ok); }
.live.on::before { background: var(--ok); animation: live-pulse 2s ease-in-out infinite; }
.live.offline { color: var(--danger); }
.live.offline::before { background: var(--danger); }
@keyframes live-pulse { 50% { opacity: 0.35; } }
.scan .feed-art { width: 46px; }
.scan.fresh, .spot.fresh { animation: arrive 1.6s ease-out; }
@keyframes arrive { 0% { box-shadow: 0 0 0 3px #f2d48a; transform: translateY(-6px); } 100% { box-shadow: 0 0 0 0 transparent; transform: none; } }
#spotlight:empty { display: none; }
.spot-empty { display: grid; gap: 10px; padding: 22px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.spot-empty p { margin: 0; max-width: 56ch; color: var(--muted); }
.spot { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.spot.check { border-color: var(--warn); }
.spot-images { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.spot-images figure { margin: 0; display: grid; gap: 4px; }
.spot-images figcaption { font-size: 13px; color: var(--muted); text-align: center; }
.spot-body { display: grid; gap: 8px; align-content: start; min-width: 0; }
.spot-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.05; text-wrap: balance; }
.spot .mini-tile { flex-basis: 96px; }
.qr { display: grid; place-items: center; padding: 8px; background: #ffffff; border-radius: 10px; }
.qr svg { width: min(260px, 70vw); height: auto; }

@media (min-width: 900px) {
  .main { max-width: 1180px; }
  .scan-panel { grid-template-columns: 340px minmax(0, 1fr); grid-template-areas: "camera feed" "tools feed" "review feed"; grid-template-rows: auto auto 1fr; align-items: start; column-gap: 18px; }
  .scan-panel .camera { aspect-ratio: 3 / 4; max-height: 440px; }
  .scan-feed > #scans { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); align-items: start; }
  .panel[data-panel="samling"], .panel[data-panel="salg"] { width: 100%; max-width: 780px; margin-inline: auto; }
  .tabbar { grid-auto-columns: 120px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .scan.fresh, .spot.fresh, .live.on::before { animation: none; }
}

/* Fjernkamera: telefonens billede på skærmen */

.remote-bar {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  max-width: 88%;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgb(6 10 16 / 0.72);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.remote-bar.live::before { content: "● "; color: #7fd3a0; }
.camera video[poster] { object-fit: contain; background: #070a0e; }
.camera-start .btn { width: 100%; max-width: 280px; }

/* Priser: valuta og åbenhed om hvor de kommer fra */

.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.segmented.currency { flex: 0 0 auto; }
.segmented.currency button { min-width: 44px; font-family: var(--font-display); font-size: 15px; }
.explainer { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); }
.chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: step; }
.chain li { display: grid; gap: 1px; padding-left: 26px; position: relative; }
.chain li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--on-navy);
  font-size: 11px;
  font-weight: 700;
}
.chain b { font-size: 14px; }
.chain span { font-size: 13px; color: var(--muted); }
.sources { display: grid; gap: 10px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }

/* Ret et forkert gæt */

.guesses { display: grid; gap: 2px; }
.guess-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.guesses.prints .guess-label { color: var(--gold); }
.print-hint { font-size: 12px; color: var(--muted); line-height: 1.35; }
.print-hint ul { margin: 2px 0 0; padding-left: 16px; }
.print-hint li + li { margin-top: 2px; }
.pill.prints { background: var(--gold-soft); color: var(--gold); }
.mini-tile span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Find kortet: billeder mens du skriver */

#picker-count { font-size: 13px; }
.sheet .tiles { max-height: 58vh; overflow-y: auto; }
.sheet-photo .crop.large { max-height: 180px; width: auto; }

/* Tjek-visningen: dit foto og katalogets billede side om side, bekræft med få tryk */

.check-progress { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.check-progress-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 15px; }
.check-progress-top span { font-family: var(--font-display); font-size: 20px; color: var(--ok); }
.bar-track { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar-track i { display: block; height: 100%; background: var(--ok); border-radius: 4px; transition: width 0.3s; }
.check-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.check-tools .hint { font-size: 12px; }
.check-list { display: grid; gap: 8px; margin-top: 8px; }

.check-row {
  position: relative;
  display: grid;
  grid-template-columns: 40px auto minmax(0, 1fr);
  gap: 8px 10px;
  align-items: start;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.check-row.selected { border-color: var(--navy); background: var(--navy-soft); }
.check-row.verified { border-color: transparent; background: var(--ok-soft); }
.check-box {
  width: 40px;
  height: 40px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--on-navy);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.check-row.selected .check-box { background: var(--navy); border-color: var(--navy); }
.check-row.verified .check-box { background: var(--ok); border-color: var(--ok); color: #ffffff; }
.check-images { display: flex; gap: 5px; }
.check-images figure { margin: 0; display: grid; gap: 2px; width: 62px; }
.check-images img, .check-images .art, .check-images .crop { width: 62px; aspect-ratio: 63 / 88; height: auto; border-radius: 5px; object-fit: cover; display: block; }
.check-images .crop { background: var(--surface-2); }
.check-images figcaption { font-size: 10px; text-align: center; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.check-body { display: grid; gap: 4px; align-content: start; min-width: 0; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
/* kun titlen viger for krydset, så resten af linjerne får fuld bredde */
.check-title { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.1; overflow-wrap: anywhere; padding-right: 30px; }
.check-route { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.check-route .price { font-family: var(--font-display); font-size: 19px; font-variant-numeric: tabular-nums; }
.route-tag { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; }
.route-tag.single { background: var(--navy); color: var(--on-navy); }
.route-tag.grade { background: var(--gold); color: #ffffff; }
.route-tag.bulk { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.route-tag.unknown { background: var(--warn-soft); color: var(--warn); }
.route-tag.sold, .route-tag.listed { background: var(--ok-soft); color: var(--ok); }
.check-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.check-buttons { display: flex; align-items: center; gap: 6px; }
.check-foot .btn.small { min-height: 40px; padding-inline: 14px; }
.btn.wrong { color: var(--danger); }
.verified-mark { font-weight: 700; color: var(--ok); font-size: 14px; padding-inline: 6px; }
.check-fix { grid-column: 1 / -1; display: grid; gap: 8px; padding-top: 4px; border-top: 1px dashed var(--line); }
.check-foot .stepper button { width: 40px; height: 40px; font-size: 20px; }
.check-foot .stepper output { min-width: 30px; font-size: 18px; }

.check-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(62px + env(safe-area-inset-bottom));
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--navy);
  color: var(--on-navy);
  box-shadow: 0 -4px 16px rgb(0 0 0 / 0.25);
}
.check-bar-actions { display: flex; gap: 8px; }
.check-bar .btn { border-color: transparent; }
.check-bar .btn.primary { background: #f2d48a; color: #131a22; }

@media (min-width: 900px) {
  .check-list { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
  .check-bar { left: 50%; right: auto; transform: translateX(-50%); width: min(720px, 94vw); border-radius: 12px 12px 0 0; }
  .panel[data-panel="samling"] { max-width: 1180px; }
}

/* Zoom i det store billede */

.lightbox-stage { touch-action: none; cursor: zoom-in; user-select: none; -webkit-user-select: none; }
.lightbox-stage.zoomed { cursor: grab; }
.zoom-layer { display: grid; place-items: center; width: 100%; height: 100%; transform-origin: center center; will-change: transform; position: relative; }
.zoom-layer img { -webkit-user-drag: none; pointer-events: none; }
.zoom-layer .art { pointer-events: none; }
.lightbox-actions { flex-wrap: wrap; align-items: center; }
.zoom-tools { display: inline-flex; align-items: center; gap: 6px; }
.zoom-tools .btn { background: rgb(255 255 255 / 0.12); color: #ffffff; border-color: transparent; min-width: 40px; }
#zoom-level { min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.zoom-hint { flex-basis: 100%; margin: 0; text-align: center; font-size: 12px; color: rgb(255 255 255 / 0.6); }

/* Tjek: hurtige bud, sprog, og handlinger for flere kort */

.check-quick { grid-column: 1 / -1; display: grid; gap: 3px; padding: 6px 8px; border-radius: 9px; background: var(--warn-soft); }
.check-quick .guess-label { color: var(--warn); }
.btn.lang { min-width: 44px; font-family: var(--font-mono); font-size: 12px; padding-inline: 8px; }
.btn.lang[aria-pressed="true"] { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.check-bar-count { display: inline-flex; align-items: baseline; gap: 8px; }
.check-bar .link-button { color: inherit; opacity: 0.8; font-size: 13px; text-decoration: underline; background: none; border: 0; cursor: pointer; }
.check-bar .btn.danger { background: transparent; color: #ffb4ab; border-color: rgb(255 255 255 / 0.25); }
.check-bar .btn.small { background: rgb(255 255 255 / 0.12); color: inherit; }
.check-buttons { flex-wrap: wrap; justify-content: flex-end; }

/* Sortér først, ret bagefter */

.check-guide { margin: 8px 0 0; padding: 10px 12px; border-radius: 9px; background: var(--navy-soft); font-size: 14px; }
.chip.alert { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip.alert[aria-pressed="true"] { background: var(--warn); color: #ffffff; }
.check-row.wrong { border-color: var(--warn); }
.check-doubt { grid-column: 1 / -1; font-size: 12px; font-weight: 700; color: var(--warn); }
.fix-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.checklist.upgrade { margin-top: 8px; background: var(--ok-soft); }
.check-bar { flex-wrap: wrap; }
.check-bar-actions { flex-wrap: wrap; justify-content: flex-end; }

/* Vælg selv: automatisk eller manuelt */

.mode-switch { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgb(6 10 16 / 0.62); }
.mode-switch button {
  flex: 1;
  min-height: 34px;
  padding: 5px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.mode-switch button[aria-checked="true"] { background: #f2d48a; color: #131a22; }
.mode-switch.big { flex-direction: column; gap: 6px; width: min(300px, 100%); background: rgb(255 255 255 / 0.08); border-radius: 12px; }
.mode-switch.big button { display: grid; gap: 1px; border-radius: 9px; min-height: 52px; font-size: 15px; }
.mode-switch.big small { font-weight: 400; font-size: 12px; opacity: 0.75; }
/* Timer: sekunder mellem billederne, og nedtællingen i den store knap */
.timer-row { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 3px; border-radius: 999px; background: rgb(6 10 16 / 0.62); color: #ffffff; }
.timer-row[hidden] { display: none; }
.timer-row button { width: 44px; height: 38px; border: 0; border-radius: 999px; background: rgb(255 255 255 / 0.14); color: #ffffff; font-size: 22px; line-height: 1; cursor: pointer; }
.timer-row button:active { background: rgb(255 255 255 / 0.32); }
.timer-row span { min-width: 132px; text-align: center; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.camera-start .timer-row { background: rgb(255 255 255 / 0.08); }
.shutter.timer { display: grid; place-items: center; color: #ffffff; font-family: var(--font-display); font-weight: 700; font-size: 24px; font-variant-numeric: tabular-nums; }
.shutter.timer.paused { border-color: #f2d48a; color: #f2d48a; font-size: 20px; }
.camera-controls { flex-direction: column; gap: 8px; padding-inline: 16px; }
.camera-controls .mode-switch { width: min(280px, 100%); }
/* Kontrollerne fylder nu to rækker, så status og fremdrift flyttes op over dem. */
.camera-status { bottom: 132px; }
.camera-progress { bottom: 122px; }
/* Plus og minus står på hver side af den store knap, så timeren ikke koster en række mere:
   rammen ER det, der bliver fotograferet, og den må ikke gemme sig bag knapperne. */
.cam-btn.step { min-width: 44px; width: 44px; padding: 0; font-size: 24px; line-height: 1; }
.cam-btn.step[hidden] { display: none; }
.camera-buttons { display: flex; align-items: center; justify-content: center; gap: 12px; }
.camera.manual .shutter { box-shadow: 0 0 0 4px rgb(242 212 138 / 0.5); }
.camera.manual .frame { outline-color: rgb(255 255 255 / 0.7); }

/* Meta: de bedste dæk og hvor tæt samlingen er */
.meta-hero .segmented { align-self: start; flex: 0 0 auto; }
.meta-hero .segmented button { white-space: nowrap; }
.meta-lead { margin: 0; font-size: 17px; }
.meta-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; }
.meta-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: -6px; vertical-align: -1px; }
.meta-legend .k-sure { background: linear-gradient(135deg, #e0473c, #f0c93a 50%, #3b7ddd); }
.meta-legend .k-have { background: linear-gradient(135deg, #e0473c, #f0c93a 50%, #3b7ddd); opacity: 0.45; }
.meta-legend .k-none { background: #3a3f46; }

.meta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 12px; }
.meta-tile { position: relative; display: grid; gap: 3px; align-content: start; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent; }
.meta-tile:active .lf { transform: scale(0.97); }
.meta-rank { position: absolute; top: 7px; left: 7px; z-index: 3; padding: 1px 8px; border-radius: 999px; background: rgb(8 12 18 / 0.72); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 15px; backdrop-filter: blur(4px); }
/* Pilen som i en fodboldtabel: grøn op, rød ned */
.meta-move { display: inline-block; margin-left: 6px; font-family: var(--font-body, inherit); font-size: 12px; font-weight: 800; vertical-align: 1px; }
.meta-move.up { color: #3ddc84; }
.meta-move.down { color: #ff6b6b; }
.meta-move.new { padding: 0 5px; border-radius: 999px; background: #f0c93a; color: #1b1b1b; font-size: 10px; letter-spacing: .04em; }
.meta-stats .meta-move.up { color: var(--ok); }
.meta-stats .meta-move.down { color: var(--danger, #d8372f); }
.meta-tile-name { margin-top: 5px; font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.08; }
.meta-tile-sub { color: var(--muted); font-size: 13px; line-height: 1.25; }
.meta-tile-sub b { color: var(--ink); }

/* Lederkortet som måler: fuld farve op til det bekræftede, svagere farve op til det scannede, gråt resten */
.lf { position: relative; display: block; width: 100%; aspect-ratio: 600 / 838; border-radius: 11px; overflow: hidden; background: #1a1f26; box-shadow: 0 6px 18px rgb(0 0 0 / 0.28), inset 0 0 0 1px rgb(255 255 255 / 0.06); transition: transform 0.15s; isolation: isolate; }
.lf-layer { position: absolute; inset: 0; background-repeat: no-repeat; }
.lf-base { filter: grayscale(1) brightness(0.3) contrast(0.9); }
.lf-have { filter: saturate(0.8) brightness(0.88); clip-path: inset(calc(100% - var(--have)) 0 0 0); transition: clip-path 1.1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.lf-sure { filter: saturate(1.15) brightness(1.04); clip-path: inset(calc(100% - var(--sure)) 0 0 0); transition: clip-path 1.1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.lf-line { position: absolute; left: 0; right: 0; bottom: var(--have); z-index: 2; height: 3px; margin-bottom: -1px; background: var(--deck); box-shadow: 0 0 10px 2px var(--deck); transition: bottom 1.1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.lf::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: 2; background: linear-gradient(transparent, rgb(0 0 0 / 0.55)); pointer-events: none; }
.lf-pct { position: absolute; left: 0; right: 0; bottom: 6px; z-index: 3; text-align: center; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 38px; line-height: 1; text-shadow: 0 2px 10px rgb(0 0 0 / 0.85), 0 0 2px rgb(0 0 0 / 0.9); font-variant-numeric: tabular-nums; }
.lf-pct small { font-size: 0.55em; margin-left: 1px; }
.lf.big { width: 150px; flex-shrink: 0; }
.lf.big .lf-pct { font-size: 34px; }
@media (prefers-reduced-motion: reduce) { .lf-have, .lf-sure, .lf-line { transition: none; } }

.meta-sheet-top { display: flex; gap: 14px; align-items: stretch; }
.meta-stats { display: grid; gap: 8px; align-content: center; min-width: 0; }
.meta-stats div { display: grid; }
.meta-stats b { font-family: var(--font-display); font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.meta-stats span { color: var(--muted); font-size: 13px; }
.meta-h { margin: 10px 0 0; font-family: var(--font-display); font-size: 17px; letter-spacing: 0.02em; }
.meta-cards { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.meta-card { display: grid; grid-template-columns: 34px 42px minmax(0, 1fr) auto; grid-template-areas: "art count name price" "art count share price"; column-gap: 8px; align-items: center; padding: 4px 6px; border-radius: 8px; background: var(--surface-2); }
.meta-card-price { grid-area: price; display: grid; justify-items: end; gap: 1px; padding: 2px 0 2px 4px; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meta-card-price b { font-size: 14px; }
.meta-card-price small { color: var(--muted); font-size: 11px; }
.meta-card-price.none { color: var(--muted); font-size: 12px; }
.meta-card.done .meta-card-price small { font-size: 12px; }
.meta-buy { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.meta-buy div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.meta-buy span { color: var(--muted); font-size: 13px; }
.meta-buy b { font-family: var(--font-display); font-size: 24px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.meta-buy div:first-child b { color: var(--gold); }
.meta-tile-cost { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.1; color: var(--gold); font-variant-numeric: tabular-nums; }
.meta-card .art { width: 34px; }
.meta-art { grid-area: art; display: block; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 4px; -webkit-tap-highlight-color: transparent; }
.meta-art:active .art { transform: scale(0.94); }
.meta-art[aria-expanded="true"] .art { outline: 2px solid var(--ok); outline-offset: 1px; }
.meta-card.editing { grid-template-areas: "art count name price" "art count share price" "step step step step"; }
.meta-step { grid-area: step; display: flex; align-items: center; gap: 10px; padding: 6px 0 2px; }
.meta-step .set-stepper { flex: none; width: 128px; }
.meta-step-hint { flex: 1; color: var(--muted); font-size: 12px; }
.meta-count { grid-area: count; font-family: var(--font-mono); font-weight: 700; font-size: 14px; text-align: center; padding: 2px 0; border-radius: 6px; font-variant-numeric: tabular-nums; }
.meta-card.miss .meta-count { background: var(--danger-soft); color: var(--danger); }
.meta-card.part .meta-count { background: var(--warn-soft); color: var(--warn); }
.meta-card.done .meta-count { background: var(--ok-soft); color: var(--ok); }
.meta-card-name { grid-area: name; min-width: 0; font-size: 14px; line-height: 1.35; }
.meta-card-share { grid-area: share; color: var(--muted); font-size: 12px; }
.meta-source { text-align: center; }

/* Mærket på en scanning, der hører til et top-dæk */
.meta-hit { justify-self: start; margin-top: 4px; padding: 2px 9px 2px 7px; border: 1px solid color-mix(in srgb, var(--deck) 55%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--deck) 16%, transparent); color: var(--ink); font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.meta-hit::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: var(--deck); box-shadow: 0 0 6px var(--deck); }
.st-new { color: var(--gold); }

/* Analyse af et meta-dæk */
.deck-analysis { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.deck-analysis .meta-h { margin-top: 2px; }
.style-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.style-stats div { display: grid; justify-items: center; padding: 6px 2px; border-radius: 8px; background: var(--surface); }
.style-stats b { font-family: var(--font-display); font-size: 22px; line-height: 1; }
.style-stats span { color: var(--muted); font-size: 11px; text-align: center; }
.curve { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; height: 92px; align-items: end; padding: 0 4px; }
.curve div { display: grid; grid-template-rows: 1fr auto auto; justify-items: center; height: 100%; }
.curve i { align-self: end; width: 70%; min-height: 3px; border-radius: 4px 4px 0 0; background: var(--navy); }
.curve b { font-size: 13px; line-height: 1.2; }
.curve span { color: var(--muted); font-size: 11px; }
.style-lines { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: 14px; }
.mu-title { margin: 4px 0 0; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.mu-title.up { color: var(--ok); }
.mu-title.down { color: var(--danger); }
.mu-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mu-chip { display: grid; justify-items: center; gap: 2px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: inherit; font: inherit; text-align: center; cursor: default; }
button.mu-chip { cursor: pointer; }
.mu-chip .art { width: 46px; }
.mu-chip .mu-name { font-size: 12px; line-height: 1.15; }
.mu-chip b { font-family: var(--font-display); font-size: 19px; line-height: 1; }
.mu-chip.up b { color: var(--ok); }
.mu-chip.down b { color: var(--danger); }
.mu-chip small { color: var(--muted); font-size: 11px; }
.mu-all summary { cursor: pointer; font-weight: 700; font-size: 14px; padding: 4px 0; }
.mu-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.mu-list li { display: grid; grid-template-columns: minmax(0, 1fr) 70px 42px; grid-template-areas: "name bar pct" "name small small"; column-gap: 8px; align-items: center; font-size: 13px; }
.mu-list li.few { opacity: 0.6; }
.mu-list .mu-name { grid-area: name; }
.mu-list .mu-bar { grid-area: bar; height: 6px; border-radius: 3px; background: var(--danger-soft); overflow: hidden; }
.mu-list .mu-bar i { display: block; height: 100%; background: var(--ok); }
.mu-list b { grid-area: pct; text-align: right; font-variant-numeric: tabular-nums; }
.mu-list small { grid-area: small; color: var(--muted); font-size: 11px; text-align: right; }
.deck-analysis .fineprint { margin: 0; }
.mu-code { color: var(--muted); font-family: var(--font-mono); font-size: 10px; }
.mu-title { color: var(--muted); }
.mu-title.up { color: var(--ok); }
.mu-title.down { color: var(--danger); }
.shop-list { display: grid; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.shop-list .actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Konto og venner */
.device-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.device-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.device-list li > span:first-child { display: grid; gap: 1px; min-width: 0; }
.device-list small { color: var(--muted); font-size: 12px; }
.row-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.invite-box { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.invite-box p { margin: 0; }
.friend-has { color: var(--ok); font-weight: 700; }
.friend-hint { color: var(--ok); }
.about ul { margin: 4px 0 10px; padding-left: 18px; display: grid; gap: 4px; }

/* Guide, hjemmeskærm og "flere muligheder" */
.guide-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.guide-steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; }
.guide-steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--on-navy); font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.guide-steps b { font-size: 17px; }
.guide-steps span { color: var(--muted); font-size: 15px; line-height: 1.4; }
.more-options { width: 100%; }
.more-options > summary { cursor: pointer; padding: 10px 0; color: var(--muted); font-weight: 700; font-size: 14px; list-style: none; text-align: center; }
.more-options > summary::-webkit-details-marker { display: none; }
.more-options > summary::after { content: " ▾"; }
.more-options[open] > summary::after { content: " ▴"; }
.camera-start .more-options[open] { display: grid; gap: 10px; justify-items: center; }
.scan-tools.more-options > summary { text-align: left; }
.summary-note { color: var(--ink); font-weight: 400; }
.load-notice .bar-track { display: block; margin-top: 8px; }
.install-notice .actions { display: inline-flex; gap: 6px; margin-left: 6px; flex-wrap: wrap; }

/* Logoet */
.gate-logo { display: block; width: 96px; height: 96px; border-radius: 22%; box-shadow: 0 8px 24px rgb(0 0 0 / 0.3); }
.gate-logo.big { width: 128px; height: 128px; margin: 0 auto 8px; }
.loading .gate-logo { margin: 0 auto 14px; }
.guide-head { justify-content: flex-start; gap: 12px; }
.guide-head .gate-logo { width: 56px; height: 56px; box-shadow: none; }
.loading:has(.gate-logo) { flex-direction: column; justify-content: center; padding-top: 16vh; text-align: center; }
.setup:has(.gate-logo) { text-align: center; }

/* ---------- Mens du scanner ---------- */
.lock { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; opacity: 0; z-index: 2; }
.lock polygon { fill: rgb(242 212 138 / 0.14); stroke: #f2d48a; stroke-width: 4; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgb(242 212 138 / 0.9)); }
.lock.on { animation: lock-in 1.1s ease-out forwards; transform-origin: 50% 46%; }
@keyframes lock-in {
  0% { opacity: 0; transform: scale(1.05); }
  14% { opacity: 1; transform: scale(1); }
  70% { opacity: 1; }
  100% { opacity: 0; }
}

.scan-pop { position: absolute; left: 8px; right: 8px; top: 4px; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 3px 8px; border-radius: 12px; background: rgb(10 14 20 / 0.86); border: 1px solid rgb(255 255 255 / 0.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #ffffff; opacity: 0; transform: translateY(-10px) scale(0.98); pointer-events: none; transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.scan-pop.on { opacity: 1; transform: none; pointer-events: auto; }
.pop-main { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pop-art.art { width: 26px; }
.pop-main { flex: 1; min-width: 0; gap: 8px; }
.pop-text { display: grid; gap: 1px; min-width: 0; }
.pop-text b { font-family: var(--font-display); font-size: 16px; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-text small { color: #b8c4d1; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-price { margin-left: auto; padding-left: 4px; font-family: var(--font-display); font-weight: 700; font-size: 18px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pop-price.nice { color: #f2d48a; }
.pop-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pop-state { padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pop-state.ok { background: rgb(127 211 160 / 0.18); color: #7fd3a0; }
.pop-state.check { background: rgb(240 194 97 / 0.18); color: #f0c261; }
.scan-pop .meta-hit { color: #ffffff; margin-top: 0; }
.pop-undo { flex-shrink: 0; margin-left: 2px; padding: 3px 9px; border: 1px solid rgb(255 255 255 / 0.3); border-radius: 999px; background: none; color: #d9e1ea; font-size: 12px; font-weight: 700; cursor: pointer; }
.scan-pop.check { border-color: rgb(240 194 97 / 0.45); }
.scan-pop.miss { border-color: rgb(240 194 97 / 0.6); }
.scan-pop.miss b { color: #f0c261; }
.scan-pop.jackpot { border: 2px solid #f2d48a; background: linear-gradient(135deg, rgb(64 46 10 / 0.96), rgb(18 14 6 / 0.94)); box-shadow: 0 0 26px rgb(242 212 138 / 0.55); }
.scan-pop.jackpot.on { animation: shine 1.6s ease-in-out 2; }
.pop-flag { position: absolute; top: auto; bottom: -12px; left: 14px; padding: 2px 11px; border-radius: 999px; background: #f2d48a; color: #131a22; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; box-shadow: 0 2px 10px rgb(0 0 0 / 0.4); animation: flag-pop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.6); }
@keyframes shine { 50% { box-shadow: 0 0 44px rgb(242 212 138 / 0.95); } }
@keyframes flag-pop { from { transform: scale(0.4) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }

.jackpot-burst { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background:
    radial-gradient(circle at 50% 46%, rgb(242 212 138 / 0.55), rgb(242 212 138 / 0) 58%),
    repeating-conic-gradient(from 0deg at 50% 46%, rgb(242 212 138 / 0.28) 0deg 5deg, transparent 5deg 16deg); }
.jackpot-burst::before, .jackpot-burst::after { content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, #fff6d8 0 2px, transparent 3px), radial-gradient(circle, #f2d48a 0 3px, transparent 4px),
    radial-gradient(circle, #fff6d8 0 2px, transparent 3px), radial-gradient(circle, #f2d48a 0 2px, transparent 3px),
    radial-gradient(circle, #fff6d8 0 3px, transparent 4px), radial-gradient(circle, #f2d48a 0 2px, transparent 3px);
  background-size: 100% 100%; background-repeat: no-repeat;
  background-position: 18% 30%, 80% 22%, 30% 70%, 72% 64%, 50% 14%, 88% 48%; }
.jackpot-burst::after { background-position: 10% 55%, 62% 34%, 40% 20%, 84% 78%, 24% 86%, 58% 80%; }
.jackpot-burst.on { animation: burst 1.7s ease-out forwards; }
.jackpot-burst.on::before { animation: sparkle 1.7s ease-out forwards; }
.jackpot-burst.on::after { animation: sparkle 1.7s 0.25s ease-out forwards; }
@keyframes burst {
  0% { opacity: 0; transform: scale(0.6) rotate(0deg); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.35) rotate(18deg); }
}
@keyframes sparkle {
  0% { opacity: 0; transform: translateY(10px) scale(0.6); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-30px) scale(1.2); }
}

.scan-value-wrap { position: relative; }
.scan-plus { position: absolute; right: 0; top: 100%; color: #7fd3a0; font-size: 16px; opacity: 0; white-space: nowrap; }
.scan-plus.on { animation: rise 1.5s ease-out forwards; }
@keyframes rise {
  0% { opacity: 0; transform: translateY(6px); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-22px); }
}

.run-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.run-stats div { display: grid; justify-items: center; padding: 12px 6px; border-radius: 12px; background: var(--surface-2); }
.run-stats b { font-family: var(--font-display); font-size: 26px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.run-stats span { color: var(--muted); font-size: 13px; }
.run-best { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--gold-soft); }
.run-best span { display: grid; gap: 1px; }
.run-best small { color: var(--muted); font-size: 12px; }
.run-best b { font-family: var(--font-display); font-size: 19px; }
.run-best em { font-style: normal; font-weight: 700; color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .lock.on, .jackpot-burst.on, .jackpot-burst.on::before, .jackpot-burst.on::after, .scan-plus.on, .scan-pop.jackpot.on, .pop-flag { animation-duration: 0.01s; }
}
.rejected-note { display: block; font-size: 12px; margin: 2px 0 4px; }

/* Sæt-fanen: sektioner, og sættet som en samlemappe i nummerorden */
.set-section { margin: 18px 2px 8px; font-family: var(--font-display); font-size: 20px; }
.set-sheet-mode { margin: 12px 0 8px; }
.set-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin: 12px 0; }
.set-card { position: relative; display: grid; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: inherit; font: inherit; cursor: pointer; text-align: center; }
.set-card .art { width: 100%; }
.set-card.missing { border-style: dashed; }
.set-card.missing .art { filter: grayscale(1) opacity(0.35); }
.set-card-num { font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.set-card-num small { display: block; font-family: var(--font-body); font-size: 10px; font-weight: 400; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-card-price { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.set-card .pocket-qty { top: 6px; right: 6px; }

/* Til Dua: − antal + under hvert kort */
.gift-stepper { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; margin-top: 6px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 14px; text-align: center; overflow: hidden; }
.gift-stepper button { height: 36px; border: 0; background: transparent; color: inherit; font-size: 22px; font-weight: 700; cursor: pointer; }
.gift-stepper button:disabled { opacity: 0.3; cursor: default; }
.gift-stepper b { font-size: 16px; }
.gift-stepper.zero { background: var(--surface-2); color: var(--muted); }
.gift-stepper.changed { box-shadow: inset 0 0 0 2px var(--ok); }
.gift-box .gift-howto { display: block; margin-top: 6px; }

/* Statistik: tal-felter, søjler i én farve (navy), top 10 */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 8px 0 4px; }
.stat-tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); min-width: 0; }
.stat-tile span { font-size: 12px; color: var(--muted); }
.stat-tile b { font-size: 22px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-tile small { font-size: 12px; color: var(--muted); }
.stat-h { margin: 18px 0 6px; font-size: 16px; }
.stat-tile-btn { border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.stat-tile-btn:hover, .stat-tile-btn:focus-visible { box-shadow: inset 0 0 0 1.5px var(--series-1); }
.stat-tile .stat-tile-go { color: var(--series-1); font-weight: 700; }

/* Samlingens værdi over tid */
.vd-total { font-variant-numeric: tabular-nums; }
.vd-change { margin: 2px 0 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.vd-change span { color: var(--muted); }
.vd-ranges { margin: 12px 0 10px; }
.vd-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.vd-part { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); min-width: 0; }
.vd-part > span { font-size: 12px; color: var(--muted); }
.vd-part b { grid-column: 1 / -1; font-size: 18px; font-variant-numeric: tabular-nums; }
.vd-part small { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.vd-key { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.vd-key.line { width: 14px; height: 2px; border-radius: 1px; background: var(--series-1); margin-right: 6px; }
.vd-key.bars { width: 10px; height: 10px; border-radius: 3px 3px 0 0; background: var(--series-2); margin-right: 6px; }
.vd-key.none { width: 0; height: 10px; }
.vd-key.market { width: 14px; height: 10px; margin-right: 6px; background: linear-gradient(to bottom, var(--ok) 0 50%, var(--danger) 50% 100%); clip-path: polygon(0 80%, 30% 40%, 55% 60%, 100% 0, 100% 20%, 55% 80%, 30% 60%, 0 100%); }
.vd-part-market.up b { color: var(--ok); }
.vd-part-market.down b { color: var(--danger); }
.vd-part-market b small { font-size: 13px; color: inherit; font-weight: 700; }
.vd-zero { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.7; }
.vd-m-line { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.vd-m-line.up { stroke: var(--ok); }
.vd-m-line.down { stroke: var(--danger); }
.vd-m-area.up { fill: var(--ok); opacity: 0.12; }
.vd-m-area.down { fill: var(--danger); opacity: 0.12; }
.vd-market .vd-dot.up, .vd-market.up .vd-hover { fill: var(--ok); }
.vd-market .vd-dot.down, .vd-market.down .vd-hover { fill: var(--danger); }
.vd-movers-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 14px 0 6px; }
.vd-movers-head .vd-h { margin: 0; }
.vd-mover-delta.up { color: var(--ok); }
.vd-mover-delta.down { color: var(--danger); }
.vd-charts { position: relative; }
.vd-h { display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; margin: 12px 0 2px; font-size: 14px; }
.vd-h small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 4px; }
.vd-svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.vd-grid { stroke: var(--line); stroke-width: 1; }
.vd-grid.base { stroke: var(--muted); }
.vd-tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.vd-line { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.vd-area { fill: var(--series-1); opacity: 0.1; }
.vd-dot, .vd-hover { fill: var(--series-1); stroke: var(--surface); stroke-width: 2; }
.vd-bar { fill: var(--series-2); }
.vd-end { fill: var(--ink); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vd-cross { stroke: var(--muted); stroke-width: 1; }
.vd-hit { fill: transparent; }
.vd-tip { position: absolute; top: 28px; width: 170px; padding: 6px 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 14px rgb(0 0 0 / 0.15); font-size: 12px; pointer-events: none; font-variant-numeric: tabular-nums; }
.vd-tip div { white-space: nowrap; }
.vd-tip span { color: var(--muted); }
.vd-movers { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.vd-movers ul, .vd-movers ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vd-movers ol { counter-reset: vd-rank; }
.vd-movers ol > li { counter-increment: vd-rank; }
.vd-movers ol > li::before { content: counter(vd-rank); min-width: 1.4em; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.vd-movers-when { margin-top: 6px; }
.vd-mover { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; min-width: 0; }
.vd-movers ol > .vd-mover { grid-template-columns: auto 34px 1fr auto; }
.vd-mover .art, .vd-mover img { width: 34px; }
.vd-sealed { font-size: 22px; text-align: center; }
.vd-mover-name { display: grid; min-width: 0; }
.vd-mover-name b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-mover-name small { font-size: 12px; color: var(--muted); }
.vd-mover-delta { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vd-table { margin: 14px 0 4px; }
.vd-table summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.vd-table-wrap { overflow-x: auto; margin-top: 8px; }
.vd-table table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.vd-table th, .vd-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.vd-table th:first-child { text-align: left; }
.vd-table thead th { color: var(--muted); font-weight: 700; font-size: 12px; }
.vd-table small { color: var(--muted); }
@media (max-width: 560px) {
  .vd-movers { grid-template-columns: 1fr; }
  .vd-part b { font-size: 16px; }
}
.stat-bars { display: grid; gap: 6px; }
.stat-row { display: grid; grid-template-columns: minmax(80px, 30%) 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.stat-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-label .swatch { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; background: var(--dot); vertical-align: -1px; }
.stat-track { height: 14px; }
.stat-track i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--navy); }
.stat-val { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.stat-val b { color: var(--ink); font-weight: 600; }
.stat-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 20px; }
.stat-table { display: grid; gap: 4px; }
.stat-top { display: grid; grid-template-columns: 22px 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.stat-top .art { width: 36px; }
.stat-rank { font-weight: 700; color: var(--muted); text-align: center; }
.stat-top-name { display: flex; flex-direction: column; min-width: 0; }
.stat-top-name b, .stat-top-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-top-name small { font-size: 12px; color: var(--muted); }
.stat-top-price { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.stat-cols { display: grid; grid-template-columns: repeat(14, 1fr); gap: 2px; height: 80px; align-items: end; border-bottom: 1px solid var(--line); }
.stat-col { height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.stat-col i { display: block; width: 100%; max-width: 24px; border-radius: 4px 4px 0 0; background: var(--navy); }
.stat-cols-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; }
.toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.back-link { margin-bottom: 12px; }
@media (max-width: 520px) { .toolbar { grid-template-columns: 1fr auto; } .toolbar .toolbar-actions { grid-column: 1 / -1; justify-self: start; } }

/* Prisgrafen: trend i blå (plads 1), laveste udbud i orange (plads 2), tynde linjer, hårfine gitterlinjer */
.price-history .pc-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pc-pick { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.pc-pick select { max-width: 260px; }
.pc-ranges { margin-top: 4px; }
.pc-custom { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.pc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 4px; }
.pc-stats div { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); min-width: 0; }
.pc-stats b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-stats span, .pc-stats small { font-size: 12px; color: var(--muted); }
.pc-delta.up { color: var(--ok); }
.pc-delta.down { color: var(--danger); }
.pc-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.pc-key { display: inline-block; width: 14px; height: 2px; margin-right: 6px; border-radius: 1px; vertical-align: middle; }
.pc-key.trend { background: var(--series-1); }
.pc-key.low { background: var(--series-2); }
.pc-wrap { position: relative; }
.pc-svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.pc-svg:focus { outline: none; }
.pc-grid { stroke: var(--line); stroke-width: 1; }
.pc-tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.pc-trend { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pc-low { fill: none; stroke: var(--series-2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pc-dot { fill: var(--series-1); stroke: var(--surface); stroke-width: 2; }
.pc-end { fill: var(--ink); font-size: 12px; font-weight: 700; }
.pc-cross { stroke: var(--muted); stroke-width: 1; }
.pc-hit { fill: transparent; }
.pc-tip { position: absolute; top: 0; width: 150px; padding: 6px 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 14px rgb(0 0 0 / 0.15); font-size: 12px; pointer-events: none; }
.pc-tip div { white-space: nowrap; }
.pc-tip span { color: var(--muted); }
.pc-alarms { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.pc-alarm { display: inline-flex; align-items: center; gap: 4px; }
.pc-alarm.hit { background: var(--ok-soft); color: var(--ok); }
.pc-alarm-x { border: 0; background: transparent; color: inherit; font-size: 15px; cursor: pointer; padding: 0 2px; }
.pc-compare { display: grid; gap: 4px; }
.pc-compare-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: inherit; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.pc-compare-row.on { border-color: var(--series-1); }
.pc-ranges button { padding-left: 4px; padding-right: 4px; white-space: nowrap; font-size: 13px; }

/* Kortsøgning */
.cs-q { width: 100%; margin: 4px 0 10px; }
.cs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0; }
.cs-label { min-width: 84px; font-size: 13px; font-weight: 600; color: var(--muted); }
.cs-row select { max-width: 100%; }
.cs-ranges label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.cs-ranges input[type="number"] { width: 68px; }
.cs-ranges input[type="text"] { width: 150px; }
.cs-wrap { flex-wrap: wrap; overflow: visible; }
.cs-tri.no { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.cs-more summary { cursor: pointer; font-weight: 600; margin: 6px 0; }
.cs-chips { flex-wrap: wrap; margin: 8px 0; }
.cs-active { background: var(--navy-soft); }
.cs-count { margin: 6px 0; font-size: 14px; }
.cs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.cs-card { position: relative; display: grid; gap: 2px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cs-card .art { width: 100%; }
.cs-card.have { border-color: var(--ok); }
.cs-card .pocket-meta { bottom: auto; top: 8px; left: 8px; }
.cs-name { font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-meta { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-price { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.cs-price small { font-family: var(--font-body); font-weight: 400; font-size: 11px; color: var(--muted); }

/* Log ind og opret bruger: forsiden */
body.gated { padding-bottom: 0; }
body.welcoming .bar { display: none; }
body.welcoming .main { max-width: none; padding: 0; }
.welcome {
  --hero: #1c2b45;
  display: grid;
  grid-template-areas: "hero" "auth" "points";
  min-height: 100vh;
  min-height: 100dvh;
  align-content: start;
}
.welcome-hero {
  grid-area: hero;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "brand brand" "copy fan";
  align-items: center;
  gap: 14px 18px;
  padding: calc(16px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 58px max(20px, env(safe-area-inset-left));
  background: radial-gradient(120% 90% at 100% 0%, #2c4470 0%, var(--hero) 60%);
  color: #ffffff;
  overflow: hidden;
}
.welcome-bg { display: none; }
.nowrap { white-space: nowrap; }
.welcome-brand { grid-area: brand; display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: 0.01em; }
.welcome-brand .gate-logo { width: 40px; height: 40px; box-shadow: 0 4px 12px rgb(0 0 0 / 0.35); }
.welcome-copy { grid-area: copy; display: grid; gap: 8px; }
.welcome-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 8vw, 34px); line-height: 1.02; text-wrap: balance; }
.welcome-lead { margin: 0; color: rgb(255 255 255 / 0.8); font-size: 15px; line-height: 1.4; max-width: 42ch; }
.welcome-fan { --fan-w: 54px; grid-area: fan; display: flex; align-items: flex-end; justify-content: center; padding: 14px calc(var(--fan-w) * 0.2) 0; }
@media (max-width: 359px) { .welcome-fan { --fan-w: 42px; } }
.fan-card { width: var(--fan-w); margin-inline: calc(var(--fan-w) * -0.2); transform-origin: 50% 100%; }
.card-back { display: grid; place-items: center; width: 100%; aspect-ratio: 120 / 168; border-radius: calc(var(--fan-w) * 0.07); background: linear-gradient(155deg, var(--cb-1), var(--cb-2)); box-shadow: inset 0 0 0 calc(var(--fan-w) * 0.035) rgb(255 255 255 / 0.9), inset 0 0 0 calc(var(--fan-w) * 0.06) var(--cb-2), 0 10px 22px rgb(0 0 0 / 0.4); }
.card-back img { width: 56%; height: auto; border-radius: 22%; box-shadow: 0 4px 12px rgb(0 0 0 / 0.3); }
.fan-0 .card-back { --cb-1: #d2453a; --cb-2: #8e1f19; }
.fan-1 .card-back { --cb-1: #33507f; --cb-2: #131f33; }
.fan-2 .card-back { --cb-1: #e9c26a; --cb-2: #a67a22; }
.fan-0 { transform: rotate(-13deg) translateY(4px); }
.fan-1 { position: relative; z-index: 1; transform: translateY(-8px); }
.fan-2 { transform: rotate(13deg) translateY(4px); }

.welcome .setup.auth {
  grid-area: auth;
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 440px;
  margin: -40px 12px 0;
  gap: 12px;
  padding: 18px 16px;
  box-shadow: 0 14px 36px rgb(10 20 35 / 0.16);
}
@media (min-width: 468px) { .welcome .setup.auth { width: 100%; justify-self: center; margin-inline: 0; padding: 22px 22px 18px; } }
.auth-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.1; }
.auth-form { display: grid; gap: 12px; margin: 2px 0 0; text-align: left; }
.auth-form label { display: grid; gap: 5px; font-size: 14px; font-weight: 700; }
.auth-form label small { font-weight: 400; color: var(--muted); }
.auth-form input { width: 100%; min-height: 48px; font-size: 16px; }
.auth-form select { width: 100%; min-height: 48px; font-size: 16px; }
.auth-form label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; line-height: 1.4; }
.auth-form label.check input { width: 22px; min-height: 22px; flex: none; margin-top: 1px; }
.auth-form input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-soft); outline: 2px solid transparent; }
.auth-form .btn.primary { width: 100%; margin-top: 2px; }
.auth-form .btn.quiet, .auth .btn.quiet { justify-self: start; padding-inline: 4px; }
.auth .btn.back { margin-top: -4px; }
.auth .search { display: flex; gap: 8px; }
.pw { position: relative; display: block; }
.pw input { padding-right: 64px; }
.pw-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); min-height: 34px; padding: 4px 10px; border: 0; border-radius: 7px; background: var(--surface-2); color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer; }

.welcome-points { grid-area: points; display: grid; gap: 14px; width: 100%; max-width: 440px; justify-self: center; padding: 24px 20px calc(28px + env(safe-area-inset-bottom)); }
.welcome-points ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.welcome-points li { display: grid; gap: 2px; padding-left: 18px; position: relative; }
.welcome-points li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.welcome-points strong { font-size: 15px; }
.welcome-points span { color: var(--muted); font-size: 14px; line-height: 1.4; }
.welcome-foot { margin: 0; color: var(--muted); font-size: 13px; }

@media (min-width: 900px) {
  .welcome {
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
    grid-template-areas: "hero auth" "points auth";
    grid-template-rows: 1fr auto;
    align-content: stretch;
  }
  .welcome-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "copy" "fan";
    align-content: center;
    gap: 22px;
    padding: 48px clamp(40px, 6vw, 88px) 24px;
    background: none;
  }
  .welcome-bg { display: block; grid-column: 1; grid-row: 1 / 3; background: radial-gradient(80% 60% at 100% 0%, #2c4470 0%, var(--hero) 70%); }
  .welcome-hero, .welcome-points { grid-column: 1; position: relative; }
  .welcome-brand { font-size: 28px; }
  .welcome-brand .gate-logo { width: 52px; height: 52px; }
  .welcome-title { font-size: clamp(44px, 4.4vw, 60px); max-width: 13ch; }
  .welcome-lead { font-size: 18px; }
  .welcome-fan { --fan-w: clamp(92px, min(10vw, 16vh), 150px); justify-content: flex-start; padding: 28px 0 8px calc(var(--fan-w) * 0.2); }
  .welcome .setup.auth { align-self: center; justify-self: center; width: min(420px, calc(100% - 48px)); margin: 32px 0; padding: 28px 28px 22px; box-shadow: 0 18px 48px rgb(10 20 35 / 0.12); }
  .welcome-points { max-width: none; justify-self: stretch; padding: 8px clamp(40px, 6vw, 88px) 44px; color: #ffffff; }
  .welcome-points ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; max-width: 640px; }
  .welcome-points li::before { background: #f2d48a; }
  .welcome-points span, .welcome-foot { color: rgb(255 255 255 / 0.72); }
  .welcome-foot .link-btn { color: #ffffff; }
}
.trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.link-btn { border: 0; background: none; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.recovery-code { margin: 12px 0; padding: 14px; border-radius: 10px; background: var(--surface-2); font-family: var(--font-mono); font-size: 20px; font-weight: 700; letter-spacing: 0.06em; text-align: center; user-select: all; word-break: break-all; }

/* Mange kort på én gang: liste, sæt og startdæk */
.camera-start .btn.bulk-start { min-height: 38px; background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.22); color: #ffffff; font-size: 14px; }
.btn.bulk-tools { width: 100%; margin: 10px 0 6px; }
.bulk-text { width: 100%; min-height: 150px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font: 15px/1.45 var(--font-mono); resize: vertical; }
.bulk-text:focus { border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-soft); outline: 2px solid transparent; }
.bulk-actions { margin: 8px 0 4px; }
.bulk-actions label.btn { cursor: pointer; }
.bulk-ways { display: grid; gap: 8px; margin-top: 10px; }
.bulk-way { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.bulk-way span { color: var(--muted); font-size: 14px; }
.bulk-summary { margin: 12px 0 8px; font-size: 16px; }
.bulk-choice { display: grid; gap: 6px; margin: 8px 0; padding: 10px 12px; border-radius: var(--radius); background: var(--warn-soft); }
.bulk-errors { margin: 8px 0; font-size: 14px; }
.bulk-errors summary { cursor: pointer; color: var(--danger); font-weight: 700; }
.bulk-errors ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.bulk-errors code { font-size: 12px; }
.bulk-errors small { color: var(--muted); }
.bulk-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 2px; max-height: 44vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.bulk-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 10px; }
.bulk-row + .bulk-row { border-top: 1px solid var(--line); }
.bulk-row .art { width: 32px; }
.bulk-name { display: grid; min-width: 0; }
.bulk-name b, .bulk-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bulk-name small { color: var(--muted); font-size: 12px; }
.bulk-qty { font-family: var(--font-mono); font-weight: 600; }
.btn.bulk-go { width: 100%; margin-top: 6px; }

.set-edit-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 4px 0 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); }
.set-edit-bar.on { background: var(--ok-soft); }
.set-edit-bar .hint { flex: 1 1 220px; font-size: 13px; }
.set-card.edit { cursor: default; }
.set-hit { position: relative; display: block; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 4px; -webkit-tap-highlight-color: transparent; }
.set-hit:active .art { transform: scale(0.96); }
.set-card.edit .pocket-qty { top: 3px; right: 3px; }
.set-stepper { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-radius: 999px; background: var(--ok-soft); color: var(--ok); overflow: hidden; }
.set-stepper button { height: 34px; border: 0; background: transparent; color: inherit; font-size: 20px; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.set-stepper button:disabled { opacity: 0.3; cursor: default; }
.set-stepper b { min-width: 18px; font-size: 14px; font-variant-numeric: tabular-nums; }
.set-cards.editing { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.st-add { display: grid; gap: 6px; margin: 10px 0; }

/* Forsiden: synlig uden login, også før scripts er kørt (og for Google) */
html:not(.has-token) .bar, html:not(.has-token) #gate { display: none; }
html:not(.has-token) body { padding-bottom: 0; }
html:not(.has-token) .main { max-width: none; padding: 0; }
html.has-token #landing { display: none; }
.auth-slot { display: contents; }
.welcome-more { color: inherit; font-weight: 700; }
@media (min-width: 900px) { .welcome-more { color: #ffffff; } }

.landing-more { display: grid; gap: 8px; padding: 8px 0 calc(24px + env(safe-area-inset-bottom)); }
.lp-section { width: 100%; max-width: 980px; margin: 0 auto; padding: 36px max(20px, env(safe-area-inset-left)) 12px; scroll-margin-top: 16px; }
.lp-h2 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 5vw, 40px); line-height: 1.05; text-wrap: balance; }
.lp-lead { margin: 0 0 18px; max-width: 70ch; color: var(--muted); font-size: 17px; line-height: 1.55; }
.lp-steps { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
@media (min-width: 760px) { .lp-steps { grid-template-columns: repeat(3, 1fr); } }
.lp-steps li { counter-increment: step; display: grid; gap: 6px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lp-steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--on-navy); font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.lp-steps b { font-size: 18px; }
.lp-steps span { color: var(--muted); line-height: 1.5; }
.lp-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .lp-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.lp-card { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lp-card h3 { margin: 0 0 10px; font-size: 19px; }
.lp-card p { margin: 0 0 10px; line-height: 1.55; }
.lp-card ul, .lp-tips { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.5; }
.lp-dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; }
.lp-dl dt { font-weight: 700; }
.lp-dl dd { margin: 0; color: var(--muted); line-height: 1.45; }
.lp-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.lp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lp-table th, .lp-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.lp-table th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.lp-table tr:last-child td { border-bottom: 0; }
.lp-table td:first-child { white-space: nowrap; }
.lp-codes { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.lp-codes div { display: grid; gap: 2px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lp-codes b { font-family: var(--font-mono); font-size: 22px; color: var(--navy); }
.lp-codes span { color: var(--muted); font-size: 14px; }
.lp-meta-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
@media (min-width: 760px) { .lp-meta-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lp-deck { display: grid; grid-template-columns: 34px 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lp-deck .art { width: 40px; }
.lp-rank { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--navy); text-align: center; }
.lp-deck-name { display: grid; min-width: 0; }
.lp-deck-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-deck-name small, .lp-deck-share small { color: var(--muted); font-size: 12px; }
.lp-deck-share { display: grid; justify-items: end; font-variant-numeric: tabular-nums; }
.lp-up { color: var(--ok); font-size: 12px; font-weight: 700; }
.lp-down { color: var(--danger); font-size: 12px; font-weight: 700; }
.lp-deck-empty { padding: 14px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
#faq details { padding: 14px 0; border-bottom: 1px solid var(--line); }
#faq summary { cursor: pointer; font-weight: 700; font-size: 17px; }
#faq details p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; max-width: 70ch; }
.lp-cta { width: calc(100% - 32px); max-width: 980px; margin: 28px auto 0; padding: 32px 24px; text-align: center; border-radius: calc(var(--radius) + 4px); background: #1c2b45; color: #ffffff; }
.lp-cta .lp-h2 { color: #ffffff; }
.lp-cta p { margin: 0 0 18px; color: rgb(255 255 255 / 0.78); }
.lp-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lp-cta .btn.primary { background: #f2d48a; color: #131a22; }
.lp-cta .btn:not(.primary) { background: transparent; color: #ffffff; border-color: rgb(255 255 255 / 0.4); }
.lp-foot { width: 100%; max-width: 980px; margin: 0 auto; padding: 24px 20px 8px; color: var(--muted); font-size: 13px; text-align: center; }
.lp-foot p { margin: 0 0 6px; }

/* Ejerens dashboard */
.dash-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 10px 0 18px; }
.dash-tile { display: grid; gap: 2px; padding: 12px 14px; background: var(--surface-2); border-radius: var(--radius); }
.dash-tile b { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.dash-tile span { font-size: 13px; color: var(--muted); }
.dash-tile small { font-size: 12px; color: var(--muted); }
.dash-chart { display: block; width: 100%; height: auto; margin: 6px 0 18px; }
.dash-bar { fill: var(--series-1); }
.dash-hit { fill: transparent; }
.dash-col:hover .dash-hit { fill: var(--surface-2); }
.dash-grid { stroke: var(--line); stroke-width: 1; }
.dash-tick { fill: var(--muted); font-size: 11px; font-family: var(--font-body); }
.dash-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.dash-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dash-table th, .dash-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dash-table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.dash-table td small { display: block; color: var(--muted); font-size: 12px; }
.dash-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.dash-table tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) {
  .lp-table thead { display: none; }
  .lp-table, .lp-table tbody, .lp-table tr, .lp-table td { display: block; }
  .lp-table tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .lp-table tr:last-child { border-bottom: 0; }
  .lp-table td { padding: 1px 0; border: 0; white-space: normal; }
  .lp-table td:first-child { font-size: 17px; }
  .lp-table td:last-child { color: var(--muted); font-size: 14px; }
}
.welcome-nav { margin-left: auto; padding: 6px 12px; border: 1px solid rgb(255 255 255 / 0.35); border-radius: 999px; color: #ffffff; font-family: var(--font-body); font-size: 14px; font-weight: 700; text-decoration: none; }
.lp-articles { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.lp-articles a { display: grid; gap: 4px; height: 100%; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; }
.lp-articles a:hover { border-color: var(--navy); }
.lp-articles b { font-size: 17px; line-height: 1.25; }
.lp-articles small { color: var(--muted); font-size: 14px; line-height: 1.4; }
.lp-k { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }

/* Den virtuelle binder: fuld skærm, eget læderlook uanset lyst/mørkt tema */
.vb {
  --vb-bg: #14110f; --vb-ink: #f3ece2; --vb-muted: #a99d8e; --vb-leather: #2b1d16; --vb-leather-hi: #3a2820;
  --vb-page: #1c1a19; --vb-pocket: #262322; --vb-accent: #d8a84a; --vb-b2: #4f9a5e;
  position: fixed; inset: 0; z-index: 60; overflow: auto; overscroll-behavior: contain;
  background: radial-gradient(ellipse at top, #231c18, var(--vb-bg) 60%); color: var(--vb-ink);
  font: 15px/1.4 var(--font-body); color-scheme: dark;
}
.vb button { font: inherit; }
.vb-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; max-width: 1500px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top)) 24px 8px; }
.vb-title { margin: 0; font-size: 20px; letter-spacing: 0.02em; }
.vb-sub { color: var(--vb-muted); font-size: 13px; }
.vb-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.vb-tabs button, .vb-toc button, .vb-close { background: #2a2421; color: var(--vb-ink); border: 1px solid #3b332e; border-radius: 999px; padding: 7px 14px; font-size: 14px; cursor: pointer; }
.vb-tabs button.on { background: var(--vb-accent); color: #1b140e; border-color: var(--vb-accent); font-weight: 700; }
.vb-tabs button[data-k="b2"].on { background: var(--vb-b2); border-color: var(--vb-b2); color: #0d1a10; }
.vb-ctrl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vb-q { width: 230px; min-height: 36px; background: #221d1a; border: 1px solid #3b332e; color: var(--vb-ink); border-radius: 999px; padding: 7px 14px; }
.vb-ctrl label { color: var(--vb-muted); font-size: 13px; display: flex; gap: 6px; align-items: center; cursor: pointer; }
.vb-ctrl label input { width: auto; min-height: 0; }
.vb-close { font-weight: 700; }
.vb-main { max-width: 1500px; margin: 0 auto; padding: 4px 24px calc(32px + env(safe-area-inset-bottom)); }
.vb-found { margin: 0; min-height: 0; color: #ffb4ab; font-size: 13px; }
.vb-found:empty { display: none; }
.vb-toc { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 14px; }
.vb-toc:empty { display: none; }
.vb-toc button { padding: 5px 11px; font-size: 13px; display: flex; gap: 7px; align-items: center; }
.vb-toc button i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.vb-toc button small { color: var(--vb-muted); }
.vb-toc button.cur { border-color: var(--vb-accent); }
.vb-toc2 { margin-top: -6px; }
.vb-toc2 button { font-size: 12px; padding: 4px 10px; }
.vb-bar { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 14px; }
.vb-bar button { width: 44px; height: 44px; border-radius: 50%; background: #2a2421; border: 1px solid #3b332e; color: var(--vb-ink); font-size: 20px; cursor: pointer; }
.vb-bar button:disabled { opacity: 0.3; cursor: default; }
.vb-info { min-width: 190px; color: var(--vb-muted); text-align: center; }
.vb-binder { display: grid; grid-template-columns: 1fr 22px 1fr; background: linear-gradient(145deg, var(--vb-leather-hi), var(--vb-leather)); border-radius: 18px; padding: 18px; box-shadow: 0 30px 60px rgb(0 0 0 / 0.55), inset 0 0 0 1px rgb(255 255 255 / 0.04); }
.vb-binder.one { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
.vb-spine { margin: 0 4px; border-radius: 4px; background: linear-gradient(90deg, rgb(0 0 0 / 0.45), rgb(255 255 255 / 0.04), rgb(0 0 0 / 0.45)); }
.vb-page { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-content: start; padding: 14px; border-radius: 10px; background: var(--vb-page); box-shadow: inset 0 0 30px rgb(0 0 0 / 0.5); }
.vb-pno { grid-column: 1 / -1; margin-top: 2px; color: var(--vb-muted); font-size: 12px; text-align: center; }
.vb-pocket { position: relative; display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 600 / 838; border-radius: 8px; background: var(--vb-pocket); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.05); overflow: hidden; cursor: zoom-in; color: inherit; }
.vb-pocket::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 8px; background: linear-gradient(125deg, rgb(255 255 255 / 0.14) 0%, rgb(255 255 255 / 0) 28%, rgb(255 255 255 / 0) 72%, rgb(255 255 255 / 0.06) 100%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.10); }
.vb-pocket.empty { cursor: default; }
.vb-pocket.empty::before { content: ""; position: absolute; inset: 14% 18%; border: 1px dashed #3a3431; border-radius: 6px; }
.vb-pocket img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; transition: transform 0.15s; }
.vb-pocket:hover img { transform: scale(1.02); }
.vb-pocket:focus-visible { outline: 3px solid var(--vb-accent); outline-offset: 2px; }
.vb-pocket.hit { outline: 3px solid var(--vb-accent); outline-offset: 2px; }
.vb-noimg { position: absolute; inset: 0; display: grid; place-items: center; padding: 10px; color: var(--vb-muted); font-size: 13px; text-align: center; }
.vb-don { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; background: linear-gradient(160deg, #3a2d1f, #1b140e); color: #f6d37a; font-weight: 700; font-size: 13px; text-align: center; }
.vb-badge { position: absolute; top: 6px; right: 6px; z-index: 2; padding: 2px 8px; border-radius: 999px; background: rgb(0 0 0 / 0.78); color: #ffffff; font-weight: 700; font-size: 13px; }
.vb-tag { position: absolute; left: 6px; bottom: 6px; z-index: 2; max-width: 85%; padding: 2px 7px; border-radius: 999px; background: rgb(0 0 0 / 0.78); color: #ffd98a; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vb-system { margin: 10px 0 0; color: var(--vb-muted); font-size: 13px; text-align: center; }
.vb-lb { position: fixed; inset: 0; z-index: 2; display: none; align-items: center; justify-content: center; gap: 28px; padding: 24px; background: rgb(8 6 5 / 0.94); cursor: pointer; }
.vb-lb.on { display: flex; }
.vb-lb img { max-height: 90vh; max-width: min(64vh, 60vw); border-radius: 14px; box-shadow: 0 20px 60px rgb(0 0 0 / 0.7); }
.vb-meta { max-width: 320px; }
.vb-meta h2 { margin: 0 0 6px; font-size: 22px; }
.vb-meta p { margin: 4px 0; color: var(--vb-muted); }
.vb-meta b { color: var(--vb-ink); }
.vb-why { margin-top: 12px; padding-top: 10px; border-top: 1px solid #3b332e; }
.vb-why b { color: var(--vb-accent); }
.vb-why p { color: #d9cfc3; }
.vb-hint { margin-top: 14px !important; font-size: 13px; }
.vb-tip { position: fixed; left: 0; top: 0; z-index: 3; width: 290px; padding: 12px 14px; pointer-events: none; opacity: 0; transition: opacity 0.12s; background: rgb(24 20 17 / 0.96); border: 1px solid #4a3f37; border-radius: 12px; box-shadow: 0 16px 40px rgb(0 0 0 / 0.6); font-size: 13px; }
.vb-tip.on { opacity: 1; }
.vb-tip .tn { font-weight: 700; font-size: 15px; }
.vb-tip .tn span { color: var(--vb-muted); font-weight: 500; font-size: 12px; }
.vb-tip .th { margin: 3px 0 6px; color: var(--vb-accent); font-weight: 700; }
.vb-tip p { margin: 4px 0 0; color: #d9cfc3; line-height: 1.4; }
.vb-tv { margin: 2px 0 4px; color: #9fe0a8; font-size: 20px; font-weight: 800; }
.vb-tv span { color: #cfe9d2; font-size: 13px; font-weight: 700; }
.vb-tv small { display: block; color: var(--vb-muted); font-size: 11px; font-weight: 500; }
.vb-tv.none { color: var(--vb-muted); font-size: 13px; }
@media (hover: none) { .vb-tip { display: none; } }
@media (max-width: 900px) {
  .vb-head, .vb-main { padding-left: 14px; padding-right: 14px; }
  .vb-binder { grid-template-columns: 1fr; padding: 10px; }
  .vb-spine { display: none; }
  .vb-page { gap: 8px; padding: 8px; }
  .vb-q { width: 100%; }
  .vb-ctrl { width: 100%; }
  .vb-lb { flex-direction: column; overflow: auto; justify-content: flex-start; }
  .vb-lb img { max-width: 88vw; max-height: 62vh; }
}
@media (prefers-reduced-motion: reduce) { .vb-pocket img { transition: none; } }
.vb-sprite { position: absolute; inset: 0; border-radius: 8px; }
@media (max-width: 900px) {
  .vb-head { position: relative; padding-right: 84px; }
  .vb-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 14px; }
}
/* Appens vinduer (fx "Del min binder") ligger oven på binderen */
body.vb-open .sheet-backdrop { z-index: 70; }
body.vb-open .toast { z-index: 75; }
.vb-action { background: var(--vb-accent); color: #1b140e; border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 700; cursor: pointer; }
.vb-cta { background: var(--vb-accent); color: #1b140e; border-radius: 999px; padding: 8px 16px; font-weight: 700; text-decoration: none; }
.vb-owner { margin: 0 0 2px; color: var(--vb-accent); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.share-facts { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.delt-body { padding: 0; background: #14110f; color: #f3ece2; }
.delt { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.delt-loading { display: flex; align-items: center; gap: 10px; color: #a99d8e; }
.delt-msg { max-width: 460px; text-align: center; }
.delt-msg h1 { font-family: var(--font-display); font-size: 32px; margin: 0 0 8px; }
.delt-msg p { color: #d9cfc3; }
.delt-msg .btn.primary { background: #d8a84a; color: #1b140e; }

/* Statistik: valg øverst */
.stat-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; background: var(--surface-2); border-radius: var(--radius); }
.stat-filters .segmented { flex: 0 1 auto; }
.stat-select { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.stat-select select { min-height: 34px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.stat-shown { margin: -4px 0 0; }
.stat-h-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.stat-h-row .stat-h { margin: 0; }

/* Forsiden: tal, menu, "Se det i aktion", funktioner og pile */
.lp-nav { position: sticky; top: 0; z-index: 4; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px max(16px, env(safe-area-inset-left)); background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.lp-nav::-webkit-scrollbar { display: none; }
.lp-nav a { flex: 0 0 auto; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.lp-nav a:hover { border-color: var(--navy); }
.lp-counters { width: 100%; max-width: 980px; margin: 18px auto 0; padding: 0 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .lp-counters { grid-template-columns: repeat(4, 1fr); } }
.lp-counters div { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.lp-counters b { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.lp-counters span { color: var(--muted); font-size: 13px; }

/* Farverne fra spillet som accent */
.c-red { --acc: #d8372f; } .c-yellow { --acc: #d9a81a; } .c-green { --acc: #1f9d5c; }
.c-blue { --acc: #2f7fd8; } .c-purple { --acc: #8a4fc7; } .c-black { --acc: #3a4250; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .c-black { --acc: #6b7684; } }
:root[data-theme="dark"] .c-black { --acc: #6b7684; }

.lp-feats { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.lp-feat { position: relative; display: grid; gap: 6px; align-content: start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lp-feat::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--acc); }
.lp-feat b { font-size: 17px; }
.lp-feat > span:last-child { color: var(--muted); font-size: 14px; line-height: 1.5; }
.lp-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--acc); color: #ffffff; box-shadow: 0 6px 16px color-mix(in srgb, var(--acc) 35%, transparent); }

.lp-phones { display: grid; grid-template-columns: 1fr; gap: 14px; justify-items: center; }
@media (min-width: 1200px) { .lp-phones { grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: start; } }
@media (min-width: 560px) and (max-width: 1199px) { .lp-phones { grid-template-columns: 1fr 1fr; gap: 22px; } .lp-phones .lp-arrow { display: none; } }
@media (min-width: 1200px) { .lp-demo { max-width: 1180px; } }
.lp-arrow { align-self: center; font-size: 28px; font-weight: 700; color: var(--muted); }
@media (max-width: 559px) { .lp-arrow { transform: rotate(90deg); } }
.lp-phone { margin: 0; width: 100%; max-width: 250px; display: grid; gap: 10px; }
.lp-phone figcaption { font-size: 14px; color: var(--muted); text-align: center; line-height: 1.4; }
.lp-phone figcaption b { display: block; color: var(--ink); font-size: 15px; }
.lp-screen { position: relative; aspect-ratio: 9 / 17; border-radius: 28px; padding: 14px 12px; background: #0f141b; color: #e6ebf0; border: 6px solid #232a33; box-shadow: 0 18px 40px rgb(10 20 35 / 0.25), inset 0 0 0 1px rgb(255 255 255 / 0.05); overflow: hidden; display: grid; align-content: start; gap: 10px; font-size: 12px; }
.lp-screen::before { content: ""; position: absolute; top: 6px; left: 50%; width: 60px; height: 5px; margin-left: -30px; border-radius: 99px; background: #232a33; }
.lp-demo-fallback { margin: 40% 8px 0; color: #9aa6b2; text-align: center; font-size: 13px; }
.dm-top { display: flex; justify-content: space-between; margin-top: 6px; color: #9aa6b2; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.dm-live { color: #84cda1; }
.dm-cam { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1.05; border-radius: 14px; background: radial-gradient(circle at 50% 40%, #243246, #070a0e 75%); overflow: hidden; }
.dm-cam .art.dm-card { width: 52%; border-radius: 6px; box-shadow: 0 10px 24px rgb(0 0 0 / 0.5); transform: rotate(-4deg); }
.dm-corner { position: absolute; width: 18px; height: 18px; border-color: #f2d48a; border-style: solid; }
.dm-corner.tl { top: 10%; left: 12%; border-width: 3px 0 0 3px; } .dm-corner.tr { top: 10%; right: 12%; border-width: 3px 3px 0 0; }
.dm-corner.bl { bottom: 10%; left: 12%; border-width: 0 0 3px 3px; } .dm-corner.br { bottom: 10%; right: 12%; border-width: 0 3px 3px 0; }
.dm-found { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 10px; border-radius: 12px; background: #1c242d; }
.dm-found b, .dm-list b, .dm-decks b { font-size: 12px; }
.dm-found small, .dm-list small, .dm-decks small { display: block; color: #9aa6b2; font-size: 10px; }
.dm-check { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #1f9d5c; color: #ffffff; font-weight: 700; }
.dm-price { color: #f2d48a; font-size: 14px !important; }
.dm-total { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: linear-gradient(135deg, #2c4470, #1c2b45); }
.dm-total small { color: #c8d3e3; font-size: 10px; }
.dm-total b { font-family: var(--font-display); font-size: 26px; color: #f2d48a; }
.dm-up { color: #84cda1; font-style: normal; font-size: 11px; }
.dm-down { color: #ff8b7f; font-style: normal; font-size: 11px; }
.dm-list, .dm-decks { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.dm-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 10px; gap: 6px; align-items: center; padding: 6px 8px; border-radius: 10px; background: #1c242d; }
.dm-list .art, .dm-decks .art { width: 26px; border-radius: 3px; }
.dm-list li > span, .dm-decks li > span { min-width: 0; }
.dm-list li > span b, .dm-decks li > span b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-binder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; border-radius: 12px; background: linear-gradient(145deg, #3a2820, #2b1d16); }
.dm-pocket { display: block; border-radius: 4px; overflow: hidden; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.dm-pocket .art { width: 100%; border-radius: 4px; }
.dm-binder-foot { display: flex; justify-content: space-between; color: #a99d8e; font-size: 11px; }
.dm-decks li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: center; padding: 8px; border-radius: 10px; background: #1c242d; }
.dm-bar { display: block; height: 5px; margin: 4px 0 2px; border-radius: 99px; background: #2b3541; overflow: hidden; }
.dm-bar i { display: block; height: 100%; border-radius: 99px; background: #84cda1; }

/* Trinene med pile imellem */
@media (min-width: 760px) {
  .lp-steps li { position: relative; }
  .lp-steps li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 22px; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--on-navy); font-weight: 700; }
}
.lp-steps li:nth-child(1)::before { background: #d8372f; } .lp-steps li:nth-child(2)::before { background: #d9a81a; } .lp-steps li:nth-child(3)::before { background: #1f9d5c; }
.lp-steps-cta { margin: 18px 0 0; text-align: center; }

/* Regnbuestriben fra spillets seks farver */
.lp-section .lp-h2::after { content: ""; display: block; width: 72px; height: 4px; margin-top: 8px; border-radius: 99px; background: linear-gradient(90deg, #d8372f 0 16.6%, #e6b820 0 33.3%, #1f9d5c 0 50%, #2f7fd8 0 66.6%, #8a4fc7 0 83.3%, #3a4250 0); }

/* Diskret glid ind, når man scroller (ikke for dem, der har slået bevægelse fra) */
@media (prefers-reduced-motion: no-preference) {
  .lp-feat, .lp-phone, .lp-steps li { animation: lp-in 0.6s ease-out both; animation-timeline: view(); animation-range: entry 0% cover 25%; }
  @keyframes lp-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- Feedet (feed.js) ---------- */
.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; }
.tabbar.has-feed button span { font-size: 11px; }
.fd-root { display: grid; gap: 12px; }
.fd-muted { color: var(--muted); }
.fd-tiny { font-size: 12px; }
.fd-head { display: grid; gap: 10px; padding-top: 4px; }
.fd-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fd-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1; letter-spacing: 0.01em; }
.fd-head-actions { display: flex; align-items: center; gap: 8px; }
.fd-bell, .fd-me { position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font-size: 18px; cursor: pointer; }
.fd-bell b { position: absolute; top: -4px; right: -4px; min-width: 19px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #ffffff; font-size: 11px; line-height: 19px; font-variant-numeric: tabular-nums; }
.fd-me { border: 0; background: none; }
.fd-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fd-filters .segmented { flex: 1 1 220px; }
.fd-region select { min-height: 36px; padding: 4px 30px 4px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; }
.fd-kid { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); font-size: 14px; }

.fd-list { display: grid; gap: 12px; }
.fd-post { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / 0.04); }
.fd-post.is-hidden { opacity: 0.7; border-style: dashed; }
.fd-hidden-note { margin: 0; font-size: 13px; color: var(--warn); font-weight: 700; }
.fd-post-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fd-author { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.fd-author-text { display: grid; min-width: 0; }
.fd-author-text b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-author-text small { font-size: 12px; color: var(--muted); }
.fd-more { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.fd-more:hover { background: var(--surface-2); }
.fd-text { margin: 0; font-size: 15.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.fd-text-big { font-size: 17px; }
.fd-ask { margin-bottom: 10px; }
.fd-have { justify-self: start; margin-top: 6px; }
.fd-dm-hint { align-self: center; }
.fd-optional { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.fd-optional summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.fd-optional[open] summary { margin-bottom: 8px; }
.fd-quick { display: grid; gap: 8px; margin: 10px 0 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.fd-quick-row { display: flex; gap: 10px; align-items: flex-start; }
.fd-quick-field { flex: 1; min-width: 0; }
.fd-quick textarea { width: 100%; min-height: 54px; resize: vertical; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: 15px; }
.fd-quick-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fd-quick-count { margin-left: auto; font-size: 12px; }

.fd-avatar { position: relative; flex-shrink: 0; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--navy-soft); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--gold); }
.fd-avatar.small { width: 32px; height: 32px; box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 3px var(--gold); }
.fd-avatar.big { width: 76px; height: 76px; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--gold); }
.fd-avatar.pick { width: 54px; height: 54px; box-shadow: none; }
.fd-avatar-art { position: absolute; left: -22%; top: -14%; width: 144%; aspect-ratio: 5 / 7; background-repeat: no-repeat; }
.fd-avatar-letter { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--navy); }

.fd-card { position: relative; display: block; flex-shrink: 0; aspect-ratio: 5 / 7; border-radius: 6px; overflow: hidden; background-color: var(--surface-2); background-repeat: no-repeat; }
.fd-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fd-card.big { width: min(46%, 210px); border-radius: 10px; box-shadow: 0 10px 24px -8px rgb(0 0 0 / 0.45); }
.fd-card.small { width: 84px; border-radius: 7px; box-shadow: 0 6px 14px -6px rgb(0 0 0 / 0.4); }
.fd-card.tiny { width: 36px; border-radius: 4px; }
.fd-card-none { display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.fd-zoom { display: contents; cursor: zoom-in; }
.fd-zoom .fd-card { cursor: zoom-in; transition: transform 0.2s ease; }
.fd-zoom:hover .fd-card { transform: rotate(-1.5deg) scale(1.02); }

.fd-fund { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; background: linear-gradient(135deg, var(--gold-soft), var(--surface-2) 70%); }
.fd-fund-info, .fd-deck-info { display: grid; gap: 4px; align-content: center; min-width: 0; }
.fd-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.fd-card-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.05; overflow-wrap: anywhere; }
.fd-card-sub { font-size: 13px; color: var(--muted); font-family: var(--font-mono); }
.fd-price { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; margin-top: 4px; }
.fd-jp { justify-self: start; }
.fd-deck { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.fd-deck-info .btn { justify-self: start; margin-top: 4px; }
.fd-meter { display: block; width: 100%; max-width: 220px; height: 8px; margin-top: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.fd-meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), #e8b650); }

.fd-binder { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; background: var(--surface-2); color: inherit; text-decoration: none; }
.fd-binder-cover { position: relative; display: grid; align-content: end; gap: 2px; width: 118px; aspect-ratio: 4 / 5; padding: 10px 10px 10px 22px; border-radius: 6px 12px 12px 6px; background: linear-gradient(145deg, #243a5e, #14213a); color: #ffffff; box-shadow: 0 10px 22px -10px rgb(0 0 0 / 0.6), inset 3px 0 0 rgb(255 255 255 / 0.08); }
.fd-binder-cover b { font-family: var(--font-display); font-size: 16px; line-height: 1.05; overflow-wrap: anywhere; }
.fd-binder-cover small { font-size: 11px; opacity: 0.8; }
.fd-rings { position: absolute; left: 7px; top: 14%; bottom: 14%; display: flex; flex-direction: column; justify-content: space-between; }
.fd-rings i { width: 8px; height: 8px; border-radius: 50%; background: #e8b650; box-shadow: 0 0 0 2px rgb(0 0 0 / 0.25); }
.fd-binder-cta { font-weight: 700; color: var(--navy); }

.fd-actions { display: flex; gap: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.fd-act { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 12px; border: 0; border-radius: 999px; background: none; color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.fd-act:hover { background: var(--surface-2); }
.fd-act.fd-static { cursor: default; }
.fd-act.fd-static:hover { background: none; }
.fd-heart { font-size: 18px; line-height: 1; }
.fd-like[aria-pressed="true"] { color: var(--danger); }
.fd-like.pop .fd-heart { animation: fd-pop 0.4s ease; }
@keyframes fd-pop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
.fd-end { text-align: center; padding: 6px 0 12px; }

.fd-empty { display: grid; justify-items: center; gap: 6px; padding: 28px 16px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; }
.fd-empty > span { font-size: 40px; }
.fd-empty b { font-family: var(--font-display); font-size: 22px; }
.fd-empty p { margin: 0; color: var(--muted); max-width: 34ch; }

.fd-welcome { display: grid; gap: 12px; padding: 18px 16px; border-radius: 18px; background: radial-gradient(120% 90% at 100% 0%, var(--gold-soft), transparent 60%), var(--surface); border: 1px solid var(--line); }
.fd-welcome p { margin: 0; }
.fd-welcome-icon { font-size: 44px; line-height: 1; }
.fd-form { display: grid; gap: 14px; }
.fd-field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.fd-field > span, .fd-field legend { font-weight: 700; font-size: 15px; padding: 0; }
.fd-field select, .fd-field input[type="search"], .fd-field textarea, .fd-comment-form textarea { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.fd-field textarea, .fd-comment-form textarea { resize: vertical; line-height: 1.4; }
.fd-check, .fd-radio { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.fd-check input, .fd-radio input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); flex-shrink: 0; }
.fd-radio { padding: 8px 0; border-bottom: 1px solid var(--line); }
.fd-avatars { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 8px; max-height: 250px; overflow-y: auto; padding: 4px; }
.fd-avatar-pick { display: grid; justify-items: center; gap: 4px; padding: 6px 2px; border: 2px solid transparent; border-radius: 12px; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.fd-avatar-pick small { font-size: 11px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-avatar-pick[aria-checked="true"] { border-color: var(--gold); background: var(--gold-soft); color: var(--ink); }

.fd-sheet { gap: 12px; }
.fd-h { margin: 6px 0 0; font-family: var(--font-display); font-size: 19px; }
.fd-comments { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fd-comment { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; }
.fd-comment.is-hidden { opacity: 0.6; }
.fd-comment-author { padding: 0; border: 0; background: none; cursor: pointer; }
.fd-comment-body p { margin: 0; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap; }
.fd-comment-body small { font-size: 12px; }
.fd-name { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.fd-comment-x { width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 13px; cursor: pointer; }
.fd-comment-x:hover { background: var(--surface-2); }
.fd-comment-form { display: flex; gap: 8px; align-items: flex-end; position: sticky; bottom: calc(-22px - env(safe-area-inset-bottom)); padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); background: var(--surface); }
.fd-comment-form textarea { flex: 1; min-height: 44px; }

.fd-profile-top { display: flex; gap: 16px; align-items: center; }
.fd-profile-text { display: grid; gap: 4px; min-width: 0; }
.fd-profile-name { font-family: var(--font-display); font-size: 26px; line-height: 1.05; overflow-wrap: anywhere; }
.fd-fav { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.fd-profile-text .pill { justify-self: start; }
.fd-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fd-counts div { display: grid; justify-items: center; padding: 10px 6px; border-radius: 12px; background: var(--surface-2); }
.fd-counts b { font-family: var(--font-display); font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
.fd-counts span { font-size: 12px; color: var(--muted); }
.fd-profile-actions .btn { flex: 1; }
.fd-profile-actions .btn.quiet { flex: 0 0 auto; }
.fd-danger { display: grid; gap: 4px; justify-items: start; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }

.fd-notes { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.fd-notes li.is-new .fd-note { background: var(--navy-soft); }
.fd-note { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
div.fd-note { cursor: default; }
.fd-note:hover { background: var(--surface-2); }
.fd-note-text { display: grid; gap: 2px; font-size: 15px; }
.fd-note-text small { font-size: 12px; }
.fd-note-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); font-size: 16px; flex-shrink: 0; }

.fd-picks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.fd-pick { display: grid; justify-items: start; gap: 4px; min-height: 118px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.fd-pick span { font-size: 28px; }
.fd-pick b { font-family: var(--font-display); font-size: 20px; }
.fd-pick small { color: var(--muted); font-size: 13px; }
.fd-pick:hover:not(:disabled) { border-color: var(--gold); background: var(--gold-soft); }
.fd-pick:disabled { opacity: 0.55; cursor: default; }
.fd-rows { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; max-height: 56vh; overflow-y: auto; }
.fd-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 8px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
button.fd-row:hover { background: var(--surface-2); }
.fd-row > span { display: grid; min-width: 0; }
.fd-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-row small { color: var(--muted); font-size: 12px; }
.fd-row-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.fd-preview { pointer-events: none; }
.fd-menu { display: grid; gap: 4px; }
.fd-menu-item { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--surface-2); color: var(--ink); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.fd-menu-item.danger { color: var(--danger); }
body.fd-open { overflow: hidden; }

/* Moderation i dashboardet */
.mod-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mod-item { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mod-text p { margin: 4px 0; overflow-wrap: anywhere; }
.mod-actions { display: flex; flex-wrap: wrap; gap: 6px; }

@media (min-width: 720px) {
  .fd-root { max-width: 640px; margin-inline: auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .fd-like.pop .fd-heart { animation: none; }
  .fd-zoom .fd-card { transition: none; }
}

/* Et delt opslag hos en, der ikke er logget ind */
.shared-teaser { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; width: min(560px, 100%); margin: 14px 0 0; color: var(--ink); padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(120% 100% at 0% 0%, var(--gold-soft), transparent 65%), var(--surface); box-shadow: 0 10px 30px -18px rgb(0 0 0 / 0.5); }
.shared-teaser-card { position: relative; flex-shrink: 0; width: 96px; aspect-ratio: 5 / 7; border-radius: 8px; overflow: hidden; background-color: var(--surface-2); background-repeat: no-repeat; box-shadow: 0 8px 18px -8px rgb(0 0 0 / 0.5); transform: rotate(-3deg); }
.shared-teaser-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shared-teaser-card.is-binder { display: grid; place-items: center; font-size: 40px; background: linear-gradient(145deg, #243a5e, #14213a); }
.shared-teaser-text { display: grid; gap: 6px; min-width: 0; }
.shared-teaser-text b { font-family: var(--font-display); font-size: 21px; line-height: 1.1; }
.shared-teaser-text > span:not(.fd-kicker) { color: var(--muted); font-size: 14px; }
.shared-teaser-text .btn { justify-self: start; }

/* Beskeder */
.fd-chat-head { align-items: center; }
.fd-safety { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 13px; }
.fd-chat { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 4px 0; list-style: none; min-height: 30vh; }
.fd-msg { align-self: flex-start; max-width: 80%; display: grid; gap: 2px; }
.fd-msg p { margin: 0; padding: 9px 13px; border-radius: 18px 18px 18px 6px; background: var(--surface-2); font-size: 15px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.fd-msg small { padding: 0 6px; font-size: 11px; color: var(--muted); }
.fd-msg.mine { align-self: flex-end; justify-items: end; }
.fd-msg.mine p { border-radius: 18px 18px 6px 18px; background: var(--navy); color: var(--on-navy); }
.fd-msg-empty { align-self: center; padding: 30px 0; color: var(--muted); }
.mod-context { margin: 6px 0; padding: 8px 10px; border-radius: 8px; background: var(--warn-soft); font-size: 13px; }
.mod-context pre { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-body); }

/* Fotos i feedet */
.fd-photos { display: grid; gap: 4px; border-radius: 12px; overflow: hidden; }
.fd-photos.n2, .fd-photos.n4 { grid-template-columns: 1fr 1fr; }
.fd-photos.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.fd-photos.n3 .fd-photo:first-child { grid-row: span 2; }
.fd-photo { display: block; padding: 0; border: 0; background: var(--surface-2); cursor: zoom-in; }
.fd-photo img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.fd-photos.n1 .fd-photo img { aspect-ratio: auto; max-height: 70vh; }
.fd-photos.n3 .fd-photo:first-child img { aspect-ratio: auto; height: 100%; }
.fd-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.fd-photo-thumb, .fd-photo-add { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.fd-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fd-photo-thumb button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgb(0 0 0 / 0.6); color: #ffffff; cursor: pointer; }
.fd-photo-add { gap: 2px; border: 2px dashed var(--line); color: var(--muted); cursor: pointer; }
.fd-photo-add span { font-size: 30px; line-height: 1; }
.fd-photo-add small { font-size: 12px; font-weight: 700; }
.mod-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.mod-photos figure { margin: 0; display: grid; gap: 2px; }
.mod-photos img { width: 140px; height: 140px; object-fit: contain; border-radius: 8px; background: var(--surface-2); }
.mod-photos figcaption { font-size: 11px; color: var(--muted); }

/* Forseglet: boxe, pakker og dæk i et gitter med store billeder */
.sealed-tools { display: grid; gap: 8px; margin: 6px 0 8px; }
.sealed-tools input { width: 100%; }
.sealed-types { flex-wrap: wrap; margin: 4px 0 8px; }
.sealed-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.sealed-list > .hint { grid-column: 1 / -1; }
.sealed-tile { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 8px; border-radius: 10px; background: var(--surface-2); }
.sealed-tile.owned { background: var(--ok-soft); }
.sealed-pic { position: relative; display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 4px; border-radius: 8px; background: var(--surface); overflow: hidden; }
.sealed-pic img { position: absolute; inset: 0; box-sizing: border-box; width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.sealed-icon { font-size: 48px; }
.sealed-pic .lang-chip { position: absolute; top: 6px; left: 6px; }
.sealed-kind { font-size: 12px; font-weight: 800; color: var(--navy); line-height: 1.25; }
.sealed-title { font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
.sealed-tile small { color: var(--muted); font-size: 12px; line-height: 1.25; }
.sealed-tile small.sealed-soon { color: var(--warn); font-weight: 700; }
.sealed-price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 6px; margin-top: auto; padding-top: 4px; font-variant-numeric: tabular-nums; }
.sealed-price b { font-size: 15px; }
.sealed-price small { font-size: 11px; }
.sealed-tile .set-stepper, .sealed-tile > .btn { width: 100%; margin-top: 4px; }
.sealed-tile.owned .set-stepper { background: var(--surface); }
.lang-chip { font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 1px 6px; border-radius: 999px; background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.lang-chip.jp { color: var(--danger); border-color: currentColor; }

/* Dækguide: sådan spiller du dækket */
.sheet.wide { width: min(1080px, 100%); max-height: 96vh; }
.guide-head-btns { display: flex; gap: 6px; flex-shrink: 0; }
.btn.guide-open { display: grid; justify-items: center; gap: 2px; width: 100%; padding: 12px; font-size: 16px; }
.btn.guide-open small { font-size: 12px; font-weight: 600; opacity: 0.85; }
.guide-art { display: block; }
.guide-art .art { width: 100%; border-radius: 6px; }
.guide-art.mini { width: 46px; flex-shrink: 0; }
.guide-art.leader { width: 150px; flex-shrink: 0; }
.guide-hero { display: flex; gap: 16px; align-items: flex-start; }
.guide-hero-text { display: grid; gap: 8px; min-width: 0; }
.guide-hero-text p { margin: 0; }
.guide-one { font-size: 17px; font-weight: 700; line-height: 1.35; }
.guide-mini { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.guide-nav { position: sticky; top: -16px; z-index: 2; padding: 8px 0; background: var(--surface); }
.guide-sec { display: grid; gap: 10px; scroll-margin-top: 56px; }
.guide-sec p { margin: 0; }
.guide-plan { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.guide-plan li { display: grid; gap: 4px; padding: 12px; border-radius: 10px; background: var(--surface-2); }
.guide-step { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--on-navy); font-weight: 800; font-size: 14px; }
.guide-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.guide-box { padding: 12px; border-radius: 10px; background: var(--surface-2); }
.guide-box.up { background: var(--ok-soft); }
.guide-box.down { background: var(--danger-soft); }
.guide-box ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
/* Kurven: søjler pr. cost, stablet i karakterer/events/stages med 2px mellemrum */
.guide-curve { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; align-items: end; height: 170px; }
.guide-curve button { display: grid; grid-template-rows: auto 1fr auto; height: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.guide-curve button:disabled { cursor: default; opacity: 0.5; }
.guide-curve b { font-size: 13px; font-variant-numeric: tabular-nums; text-align: center; }
.guide-curve .guide-bar { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-height: 0; }
.guide-curve .guide-bar i { display: block; width: 100%; min-height: 3px; border-radius: 0; }
.guide-curve .guide-bar i:first-child { border-radius: 4px 4px 0 0; }
.guide-curve button.on .guide-bar { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.guide-curve .x { padding-top: 4px; font-size: 12px; color: var(--muted); text-align: center; border-top: 1px solid var(--line); }
.t-C { background: var(--g-char); }
.t-E { background: var(--g-event); }
.t-S { background: var(--g-stage); }
.guide-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.guide-legend span { display: inline-flex; align-items: center; gap: 6px; }
.guide-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.guide-legend i.l-mine { height: 3px; background: var(--g-char); }
.guide-legend i.l-other { height: 0; border-top: 2px dashed var(--muted); border-radius: 0; }
.guide-legend i.spent { background: var(--g-event); }
.guide-don { width: 100%; max-width: 560px; height: auto; }
.guide-don .g { stroke: var(--line); stroke-width: 1; }
.guide-don .yl, .guide-don .xl { fill: var(--muted); font-size: 10px; text-anchor: middle; }
.guide-don .yl { text-anchor: end; }
.guide-don .l-mine { fill: none; stroke: var(--g-char); stroke-width: 2.5; stroke-linejoin: round; }
.guide-don .l-other { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 3; }
.guide-don .d-mine { fill: var(--g-char); stroke: var(--surface); stroke-width: 2; }
.guide-don .d-other { fill: var(--muted); stroke: var(--surface); stroke-width: 2; }
.guide-don .spent { fill: var(--g-event); opacity: 0.85; }
.guide-turns { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.guide-turns li { display: grid; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.guide-turn-head { display: flex; align-items: baseline; gap: 10px; }
.guide-don-dots { color: var(--g-char); letter-spacing: 1px; font-size: 12px; }
.guide-don-dots small { margin-left: 6px; color: var(--muted); letter-spacing: 0; }
.guide-turn-cards, .guide-combo-cards { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.guide-combo-cards .plus { font-weight: 800; color: var(--muted); }
/* Alle kort: 4 i bredden på computer, 2 på telefonen */
.guide-roles { flex-wrap: wrap; }
.guide-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 820px) { .guide-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.guide-cards > .hint { grid-column: 1 / -1; }
.guide-card { display: flex; flex-direction: column; gap: 5px; padding: 8px; border-radius: 10px; background: var(--surface-2); min-width: 0; }
.guide-card.flex { outline: 1px dashed var(--line); background: var(--surface); }
.guide-card p { font-size: 13px; line-height: 1.4; }
.guide-card-art { position: relative; display: block; }
.guide-count { position: absolute; padding: 1px 8px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.guide-count { top: auto; bottom: 8px; right: 6px; background: var(--navy); color: var(--on-navy); box-shadow: 0 0 0 2px var(--surface); }
.guide-role { font-size: 12px; font-weight: 800; color: var(--navy); }
.guide-card-name { font-size: 14px; line-height: 1.2; }
.guide-tip { color: var(--muted); }
.guide-card-stats { margin-top: auto; color: var(--muted); font-size: 11px; }
.guide-combos, .guide-mus { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.guide-combos li, .guide-mu { display: grid; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.guide-mu { grid-template-columns: 46px minmax(0, 1fr); align-items: start; column-gap: 10px; }
.guide-mu > div { display: grid; gap: 4px; }
.guide-mu-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.pill.up { background: var(--ok-soft); color: var(--ok); }
.pill.down { background: var(--danger-soft); color: var(--danger); }
@media (max-width: 560px) {
  .guide-hero { flex-direction: column; align-items: center; }
  .guide-art.leader { width: 130px; }
  .guide-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .guide-curve { height: 140px; gap: 3px; }
}
.guide-mini div { background: var(--surface-2); }
.guide-notice { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-weight: 700; }
.guide-combo-cards .guide-art.mini { width: 78px; }
.guide-turn-cards .guide-art.mini { width: 64px; }
.sealed-open { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sealed-open:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; border-radius: 8px; }
.sealed-open:active .sealed-pic { transform: scale(0.98); }
.sealed-more { font-size: 12px; font-weight: 800; color: var(--navy); }
.sealed-item-top { display: flex; gap: 16px; align-items: center; }
.sealed-pic.big { width: 180px; flex-shrink: 0; margin: 0; }
.sealed-item-value { display: grid; gap: 4px; min-width: 0; }
.sealed-item-value > span { font-size: 13px; color: var(--muted); }
.sealed-item-value > b { font-family: var(--font-display); font-size: 34px; line-height: 1; }
.sealed-item-value small { color: var(--muted); font-size: 12px; }
.sealed-item-value small.sealed-soon { color: var(--warn); font-weight: 700; }
.sealed-sell { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.sealed-sell small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.sealed-sell .net b { color: var(--ok); }
.sealed-links .btn { text-decoration: none; }
.sealed-item-own { display: flex; align-items: center; gap: 10px; }
.sealed-item-own .set-stepper { width: 140px; }
@media (max-width: 560px) { .sealed-item-top { flex-direction: column; align-items: stretch; } .sealed-pic.big { width: 100%; max-width: 240px; align-self: center; } }
.guide-mu.mirror { grid-column: 1 / -1; background: var(--navy-soft, var(--surface-2)); box-shadow: inset 0 0 0 2px var(--navy); }
.guide-mirror-h { font-size: 12px; font-weight: 800; color: var(--navy); }
.guide-mu:has(.guide-deep[open]) { grid-column: 1 / -1; }
.guide-deep summary { cursor: pointer; font-weight: 800; color: var(--navy); padding: 6px 0; }
.guide-deep-body { display: grid; gap: 10px; padding-top: 6px; }
.guide-deep-h { font-size: 13px; color: var(--navy); }
.guide-deep-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.guide-deep-cards li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: start; }
.guide-deep-cards .guide-art.mini { width: 56px; }
.guide-focus { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.guide-focus-btn { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.guide-focus-btn span { display: grid; gap: 2px; }
.guide-focus-btn small { color: var(--muted); font-size: 12px; }
.guide-mu-code { color: var(--muted); font-size: 11px; }
/* På vej: købte kort, der ikke er kommet endnu (falmet, så de ikke forveksles med samlingen) */
.incoming-box { display: grid; gap: 8px; margin: 4px 0 10px; padding: 10px 12px; border: 2px dashed var(--line); border-radius: 12px; background: var(--surface-2); }
.incoming-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.incoming-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.incoming-card { position: relative; display: grid; gap: 3px; flex: 0 0 84px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; text-align: left; cursor: pointer; }
.incoming-card .art { width: 84px; filter: grayscale(0.7) opacity(0.55); outline: 2px dashed var(--muted); outline-offset: -2px; }
.incoming-card small { font-size: 11px; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.incoming-tag { position: absolute; top: 4px; left: 4px; padding: 1px 6px; border-radius: 999px; background: var(--navy); color: var(--on-navy); font-size: 10px; font-weight: 800; }
.incoming-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.incoming-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "art name step" "art name done"; gap: 4px 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.incoming-row .art { grid-area: art; width: 44px; }
.incoming-name { grid-area: name; display: grid; gap: 1px; min-width: 0; }
.incoming-name small { color: var(--muted); font-size: 12px; }
.incoming-row .set-stepper { grid-area: step; width: 116px; }
.incoming-row > .btn { grid-area: done; justify-self: end; }
.incoming-row > .btn.primary { grid-area: step; }
/* Kamp-manual: tur for tur, bred på computeren, stablet på telefonen */
.btn.guide-manual-open { justify-self: start; }
.manual-top { display: flex; gap: 16px; align-items: center; }
.manual-vs { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.manual-vs .guide-art.mini { width: 72px; }
.manual-sum { display: grid; gap: 6px; min-width: 0; }
.manual-sum p { margin: 0; }
.manual-curve { max-width: 760px; }
.manual-curve .b-you, .guide-legend i.b-you { fill: var(--g-char); background: var(--g-char); opacity: 0.55; }
.manual-curve .b-them, .guide-legend i.b-them { fill: var(--muted); background: var(--muted); opacity: 0.45; }
.manual-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.manual-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.8fr); gap: 8px; align-items: stretch; }
.manual-turn { display: grid; place-items: center; border-radius: 10px; background: var(--navy); color: var(--on-navy); font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.manual-cell { display: grid; align-content: start; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.manual-cell p { margin: 0; font-size: 14px; line-height: 1.4; }
.manual-cell.you { background: var(--navy-soft); box-shadow: inset 3px 0 0 var(--g-char); }
.manual-cell.watch { background: var(--warn-soft); }
.manual-cell.watch p { color: var(--ink); }
.manual-who { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.manual-cell.you .manual-who { color: var(--navy); }
.manual-cell.watch .manual-who { color: var(--warn); }
.manual-win { margin-top: 4px; }
.manual-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 760px) {
  .manual-row { grid-template-columns: 1fr; }
  .manual-turn { justify-items: start; padding: 4px 12px; font-size: 16px; }
  .manual-top { flex-direction: column; align-items: flex-start; }
}
.manual-side { max-width: 460px; margin: 4px 0; }
.manual-side button { min-height: 44px; font-size: 15px; }
/* Dæk-fanen: Sæt nederst */
.daek-h { margin: 18px 0 0; scroll-margin-top: 70px; }

/* Træn: chess.com-agtige opgaver */
.tr-art { display: block; }
.tr-art .art { width: 100%; border-radius: 6px; }
.tr-hero .tr-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.tr-stats > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.tr-stats b { font-family: var(--font-display); font-size: 26px; line-height: 1; }
.tr-stats span { color: var(--muted); font-size: 12px; }
.tr-spark { width: 100%; height: 34px; color: var(--g-char, var(--navy)); }
.tr-daily { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: var(--navy-soft, var(--surface-2)); box-shadow: inset 0 0 0 2px var(--navy); }
.tr-daily-art { width: 76px; flex-shrink: 0; }
.tr-daily-text { display: grid; gap: 6px; min-width: 0; }
.tr-daily-text b { font-size: 18px; }
.tr-daily-text .btn { justify-self: start; }
.tr-sec { display: grid; gap: 8px; }
.tr-sec .chips { flex-wrap: wrap; }
.tr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tr-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: var(--surface-2); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tr-row:hover { background: var(--navy-soft, var(--surface-2)); }
.tr-row .tr-art { width: 44px; }
.tr-row-text { display: grid; gap: 2px; min-width: 0; }
.tr-row-text small { color: var(--muted); font-size: 12px; }
.tr-row-meta { display: grid; justify-items: end; gap: 2px; }
.tr-row-meta small { color: var(--muted); font-size: 12px; }
.tr-status { font-size: 13px; color: var(--navy); }
.tr-status.ok { color: var(--ok); }
.tr-status.bad { color: var(--danger); }
.tr-two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tr-card { display: grid; gap: 8px; align-content: start; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.tr-card .btn { justify-self: start; }
.tr-games { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tr-games li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.tr-games .tr-art { width: 36px; }
.tr-games span { display: grid; }
.tr-games small { color: var(--muted); font-size: 12px; }

.tr-ask { margin: 0; }
.tr-board { display: grid; gap: 10px; }
.tr-side { display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.tr-side.you { background: var(--navy-soft, var(--surface-2)); }
.tr-side-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; font-size: 14px; }
.tr-side-head span { color: var(--muted); }
.tr-units { display: flex; flex-wrap: wrap; gap: 10px; }
.tr-unit { position: relative; display: grid; gap: 3px; width: 104px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
button.tr-unit { cursor: pointer; }
.tr-unit-art { display: block; transition: transform 0.15s; }
.tr-unit.rested .tr-unit-art { transform: rotate(10deg) scale(0.92); filter: saturate(0.5) brightness(0.8); }
.tr-unit.selected .tr-unit-art .art { outline: 3px solid var(--g-char, var(--navy)); outline-offset: 2px; }
.tr-unit.target .tr-unit-art .art { outline: 3px dashed var(--danger); outline-offset: 2px; }
.tr-power { position: absolute; top: 4px; left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--navy); color: var(--on-navy); font-size: 13px; }
.tr-don { position: absolute; top: 4px; right: 4px; padding: 1px 6px; border-radius: 999px; background: var(--g-event, #d97a1f); color: #fff; font-size: 11px; font-weight: 800; }
.tr-unit-name { font-size: 12px; line-height: 1.2; }
.tr-tags { display: flex; flex-wrap: wrap; gap: 3px; }
.tr-kw { padding: 0 6px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 10px; font-weight: 800; }
.tr-kw.off { color: var(--muted); }
.tr-hand { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tr-hand > small { flex-basis: 100%; color: var(--muted); }
.tr-handcard { position: relative; display: grid; gap: 2px; justify-items: center; width: 62px; padding: 0; border: 0; background: none; color: inherit; font: inherit; }
button.tr-handcard { cursor: pointer; }
.tr-handcard .tr-art { width: 62px; }
.tr-handcard b { font-size: 12px; }
.tr-handcard small { font-size: 10px; color: var(--muted); }
.tr-handcard.picked .art { outline: 3px solid var(--ok); outline-offset: 2px; }
.tr-controls { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); }
.tr-don-step { width: 150px; }
.tr-attack { display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--danger-soft); }
.tr-attack-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: center; }
.tr-attack-row .tr-art { width: 56px; }
.tr-log { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; }
.tr-result { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; }
.tr-result.ok { background: var(--ok-soft); }
.tr-result.bad { background: var(--danger-soft); }
.tr-result > b { font-size: 18px; }
.tr-result p, .tr-result ul { margin: 0; }
.tr-delta b { font-family: var(--font-display); font-size: 20px; }
.tr-mhand { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.tr-mcard { display: grid; gap: 4px; }
.tr-mcard small { font-size: 12px; line-height: 1.2; }
@media (max-width: 560px) {
  .tr-hero .tr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-unit { width: 84px; }
  .tr-mhand { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Tæl: tæl samlingen op sæt for sæt */
.count-top { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 4px 0 10px; }
.count-pick { display: grid; gap: 4px; flex: 1 1 260px; min-width: 0; }
.count-pick span { font-size: 12px; font-weight: 700; color: var(--muted); }
.count-pick select { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; }
.count-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 8px; }
@media (max-width: 560px) { .count-sum { grid-template-columns: repeat(2, 1fr); } }
.count-sum-tile { display: grid; gap: 1px; padding: 9px 11px; border-radius: 10px; border: 1.5px solid transparent; font: inherit; color: inherit; text-align: left; cursor: pointer; min-width: 0; }
.count-sum-tile span { font-size: 12px; font-weight: 700; }
.count-sum-tile b { font-size: 18px; font-variant-numeric: tabular-nums; }
.count-sum-tile small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.count-sum-tile[aria-pressed="true"] { border-color: currentColor; }
.place-museum { --pl: var(--gold); --pl-soft: var(--gold-soft); }
.place-bog { --pl: var(--navy); --pl-soft: var(--navy-soft); }
.place-action { --pl: var(--ok); --pl-soft: var(--ok-soft); }
.place-dua { --pl: var(--warn); --pl-soft: var(--warn-soft); }
.count-sum-tile[class*="place-"] { background: var(--pl-soft); color: var(--pl); }
.count-sum-tile b { color: var(--ink); }
.count-chips { margin-bottom: 4px; }
.count-grid { display: grid; gap: 10px; margin-top: 8px; }
.count-grid.size-8 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.count-grid.size-16 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 700px) {
  .count-grid.size-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .count-grid.size-16 { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
}
.count-card { display: flex; flex-direction: column; gap: 6px; padding: 7px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.count-card.missing .count-art { opacity: 0.42; filter: grayscale(0.7); }
.count-card.counted { border-color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); }
.count-art { position: relative; }
.count-art .art { width: 100%; border-radius: 6px; }
.count-badge { position: absolute; right: 4px; bottom: 4px; min-width: 32px; padding: 2px 8px; border-radius: 999px; background: #1c2b45; color: #f2d48a; font-family: var(--font-display); font-weight: 800; font-size: 17px; text-align: center; box-shadow: 0 1px 4px rgb(0 0 0 / 0.35); }
.count-tick { position: absolute; left: 4px; top: 4px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ok); color: #fff; font-weight: 800; font-size: 14px; }
.count-name { display: grid; min-width: 0; line-height: 1.2; }
.count-name b { font-size: 13px; }
.count-name b small { font-weight: 700; color: var(--muted); }
.count-name span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.count-name .count-price { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.count-step { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.count-step button { min-height: 42px; border: 0; background: var(--surface-2); color: var(--ink); font-size: 22px; font-weight: 800; cursor: pointer; }
.count-step button:disabled { opacity: 0.35; cursor: default; }
.count-step b { min-width: 34px; text-align: center; font-family: var(--font-display); font-size: 22px; font-variant-numeric: tabular-nums; }
.place-split { display: flex; flex-wrap: wrap; gap: 3px; }
.place-chip { padding: 1px 6px; border-radius: 999px; background: var(--pl-soft); color: var(--pl); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.count-why { font-size: 11.5px; line-height: 1.25; color: var(--muted); }
.count-place { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.count-place button, .count-cycle { display: grid; place-items: center; gap: 0; min-height: 36px; padding: 2px 1px; border-radius: 8px; border: 1.5px dashed var(--line); background: var(--surface); color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; line-height: 1.05; }
.count-place button span { font-size: 9.5px; }
.count-place button[aria-pressed="true"], .count-cycle[class*="place-"] { border-style: solid; background: var(--pl-soft); border-color: var(--pl); color: var(--pl); }
.count-cycle { font-size: 10.5px; }
.count-set-h { grid-column: 1 / -1; margin: 10px 0 -2px; font-size: 15px; }
.count-rules { margin: 4px 0 8px; padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.count-rules summary { cursor: pointer; font-size: 13px; font-weight: 700; }
.count-rules-body { display: grid; gap: 8px; margin-top: 10px; }
.count-rule { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; font-size: 13px; font-weight: 700; }
.count-rules-list { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.count-rules-list b { color: var(--ink); }
.count-done { min-height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.count-done[aria-pressed="true"] { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.count-grid.size-16 .count-card { padding: 4px; gap: 4px; border-radius: 9px; }
.count-grid.size-16 .count-name span:not(.count-price) { display: none; }
.count-grid.size-16 .count-name b { font-size: 11px; }
.count-grid.size-16 .count-name .count-price { font-size: 11px; }
.count-grid.size-16 .count-step button { min-height: 32px; font-size: 18px; }
.count-grid.size-16 .count-step b { min-width: 22px; font-size: 17px; }
.count-grid.size-16 .count-badge { font-size: 13px; min-width: 26px; padding: 1px 5px; }
.count-grid.size-16 .count-cycle, .count-grid.size-16 .count-done { min-height: 28px; font-size: 10.5px; }
.count-grid.size-16 .place-chip { font-size: 10px; padding: 0 4px; }
.notice-inline { padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: 14px; }

/* Scanning uden noget i vejen: status kun når der sker noget, smal i toppen; tilstanden er én lille knap */
.camera-status { top: 44px; bottom: auto; padding: 4px 11px; font-size: 13px; background: rgb(0 0 0 / 0.55); }
.camera-status[data-quiet="true"] { display: none; }
.camera-controls .mode-switch { display: none; }
.cam-btn.mode-cycle { min-width: 0; padding: 0 12px; font-size: 13px; }
body.camera-live .toast { top: calc(10px + env(safe-area-inset-top)); bottom: auto; }

/* Byg: dækværkstedet. Bredt på computeren: filtre · kortgitter · dækket */
body.byg-open .main { max-width: 1480px; }
.byg-entry { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.byg-entry .hint { max-width: 60ch; }
.byg-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 8px; }
.byg-top .hint { flex-basis: 100%; }
.byg { display: grid; gap: 14px; align-items: start; }
@media (min-width: 1100px) {
  .byg { grid-template-columns: 250px minmax(0, 1fr) 360px; }
  .byg-side, .byg-deck { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; }
}
@media (min-width: 760px) and (max-width: 1099px) {
  .byg { grid-template-columns: 230px minmax(0, 1fr); }
  .byg-deck { grid-column: 1 / -1; }
}
.byg-side, .byg-deck { display: grid; gap: 10px; align-content: start; padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.byg-leader { display: grid; gap: 8px; }
.byg-leader .art { width: 110px; justify-self: center; }
.byg-pick, .byg-search, .byg-f { display: grid; gap: 4px; }
.byg-pick span, .byg-search span, .byg-f > span { font-size: 12px; font-weight: 700; color: var(--muted); }
.byg-side select, .byg-side input[type="search"] { width: 100%; min-height: 36px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.byg-f .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.byg-f .chip { min-height: 30px; padding: 3px 9px; font-size: 13px; }
.byg-check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.byg-lib-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.byg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.byg-card { display: grid; gap: 4px; padding: 5px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.byg-card.in { border-color: var(--series-1); box-shadow: inset 0 0 0 1px var(--series-1); }
.byg-card.banned { opacity: 0.55; }
.byg-hit { position: relative; display: block; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 6px; }
.byg-hit .art { width: 100%; border-radius: 6px; }
.byg-share { position: absolute; left: 4px; top: 4px; padding: 1px 6px; border-radius: 999px; background: rgb(0 0 0 / 0.66); color: #fff; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.byg-q { position: absolute; right: 4px; bottom: 4px; min-width: 28px; padding: 1px 7px; border-radius: 999px; background: #1c2b45; color: #f2d48a; font-family: var(--font-display); font-weight: 800; font-size: 16px; text-align: center; }
.byg-ban { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; }
.byg-ban.soon { background: var(--warn); }
.byg-card-foot { display: flex; align-items: center; gap: 4px; min-width: 0; }
.byg-card-name { display: grid; min-width: 0; flex: 1; line-height: 1.15; }
.byg-card-name b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.byg-card-name small { font-size: 11px; color: var(--muted); }
.byg-step { display: inline-flex; align-items: center; gap: 2px; }
.byg-step button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); color: var(--ink); font-weight: 800; font-size: 16px; cursor: pointer; }
.byg-step button:disabled { opacity: 0.35; cursor: default; }
.byg-step b { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.byg-step.big { justify-content: center; gap: 8px; margin-top: 8px; }
.byg-step.big button { width: 40px; height: 40px; font-size: 20px; }
.byg-deck-head { display: flex; align-items: center; gap: 8px; }
.byg-name { flex: 1; min-width: 0; min-height: 36px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; }
.byg-count { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--warn); font-variant-numeric: tabular-nums; }
.byg-count.ok { color: var(--ok); }
.byg-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.byg-variants { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.byg-curve { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; align-items: end; height: 92px; }
.byg-curve > div { display: grid; grid-template-rows: 14px 1fr 14px; height: 100%; text-align: center; font-size: 11px; }
.byg-curve b { font-variant-numeric: tabular-nums; }
.byg-curve small { color: var(--muted); }
.byg-bar { display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; }
.byg-bar i { display: block; border-radius: 3px 3px 0 0; }
.byg-bar .t-C { background: var(--g-char); } .byg-bar .t-E { background: var(--g-event); } .byg-bar .t-S { background: var(--g-stage); }
.byg-stats { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--muted); }
.byg-stats b { color: var(--ink); }
.byg-warn { margin: 0; padding: 8px 10px 8px 26px; border-radius: 9px; background: var(--warn-soft); color: var(--warn); font-size: 13px; display: grid; gap: 3px; }
.byg-warn-line { margin: 0; padding: 6px 10px; border-radius: 8px; background: var(--danger-soft); color: var(--danger); font-size: 13px; font-weight: 700; }
.byg-copies { display: grid; grid-template-columns: repeat(4, minmax(0, 72px)); gap: 10px; margin: 8px 0 2px; }
.byg-copies > div { display: grid; gap: 2px; text-align: center; font-size: 11.5px; }
.byg-copies i { display: flex; align-items: flex-end; height: 64px; border-bottom: 1px solid var(--line); }
.byg-copies i span { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--line); }
.byg-copies > div.most i span { background: var(--navy, var(--ink)); }
.byg-copies b { font-variant-numeric: tabular-nums; font-size: 12px; }
.byg-copies small { color: var(--muted); }
.byg-fb-summary { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; }
.byg-fb-roles { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.byg-fb-roles th, .byg-fb-roles td { padding: 6px 8px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.byg-fb-roles thead th { font-size: 12px; color: var(--muted); font-weight: 600; }
.byg-fb-roles th small, .byg-fb-roles td small { display: block; color: var(--muted); font-weight: 400; font-size: 11.5px; }
.byg-fb-roles .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.byg-fb-roles tr.byg-fb-sub td { border-bottom: 1px solid var(--line); padding-top: 0; }
.byg-fb-roles tr.low + .byg-fb-sub, .byg-fb-roles tr.high + .byg-fb-sub, .byg-fb-roles tr:has(+ .byg-fb-sub) th, .byg-fb-roles tr:has(+ .byg-fb-sub) td { border-bottom: 0; }
.byg-fb-scale { position: relative; display: inline-block; width: 90px; height: 10px; margin-right: 8px; vertical-align: middle; border-radius: 5px; background: var(--surface-2); }
.byg-fb-scale i { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: var(--line); }
.byg-fb-scale b { position: absolute; top: -3px; width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: var(--ok); }
.byg-fb-scale b.low, .byg-fb-scale b.high { background: var(--warn); }
.byg-fb-flag { display: inline-block; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 700; vertical-align: middle; }
.byg-fb-flag.ok { background: var(--ok-soft); color: var(--ok); }
.byg-fb-flag.low, .byg-fb-flag.high { background: var(--warn-soft); color: var(--warn); }
.byg-fb-tip { display: block; margin-top: 3px; font-size: 12.5px; }
.byg-fb-roles .byg-fb-tip small, .byg-feedback .byg-pairs small { display: inline; }
.byg-feedback .linkish { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.byg-ok-line { margin: 0; padding: 6px 10px; border-radius: 8px; background: var(--ok-soft); color: var(--ok); font-size: 13px; font-weight: 600; }
.byg-feedback { display: grid; gap: 6px; }
.byg-feedback .byg-pairs li { grid-template-columns: 1fr auto; column-gap: 8px; }
.byg-feedback .byg-pairs li > span:last-child:has(.btn) { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.byg-fb-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.byg-fb-stats li { display: grid; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 12.5px; }
.byg-fb-stats span { color: var(--muted); }
.byg-fb-stats b { font-size: 17px; font-variant-numeric: tabular-nums; }
.byg-fb-stats small { color: var(--muted); font-weight: 400; font-size: 12px; }
.byg-note-line { margin: 0; padding: 6px 10px; border-radius: 8px; background: var(--warn-soft); color: var(--warn); font-size: 13px; font-weight: 600; }
.byg-h { margin: 6px 0 2px; font-size: 14px; }
.byg-h small { font-weight: 400; color: var(--muted); font-size: 12px; }
.byg-list, .byg-sugg, .byg-pairs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.byg-row, .byg-sugg li { display: flex; align-items: center; gap: 6px; }
.byg-row.banned .byg-row-name b { color: var(--danger); text-decoration: line-through; }
.byg-row-name, .byg-sugg-name { flex: 1; min-width: 0; display: grid; padding: 3px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; line-height: 1.2; }
.byg-row-name b, .byg-sugg-name b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.byg-row-name small, .byg-sugg-name small { font-size: 11.5px; color: var(--muted); }
.byg-mine summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.byg-detail { display: grid; gap: 16px; }
@media (min-width: 700px) { .byg-detail { grid-template-columns: 220px 1fr; } }
.byg-detail-art .art { width: 100%; }
.byg-text { white-space: pre-wrap; padding: 10px 12px; border-radius: 9px; background: var(--surface-2); font-size: 14px; line-height: 1.45; }
.byg-tags .chip { font-size: 12px; min-height: 26px; padding: 2px 8px; }
.byg-pairs li { display: grid; gap: 1px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.byg-pairs li button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.byg-pairs li span { font-size: 12.5px; color: var(--muted); }
.byg-ta { width: 100%; min-height: 220px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; font-family: var(--font-mono); font-size: 13px; background: var(--surface); color: var(--ink); }
.byg-ok { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 11px; font-weight: 700; }
.byg-unchecked summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted); }
.byg-unchecked summary small { font-weight: 400; }
/* Kombinationer: 2–3 kort med trin, tjekket mod teksterne og reglerne */
.byg-kombo-open { width: 100%; margin-top: 6px; }
.byg-kombo-open small { font-weight: 400; opacity: .85; }
.byg-kombo-f { margin: 4px 0 10px; }
.byg-kombos { display: grid; gap: 10px; }
.byg-kombo { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.byg-kombo.compact { padding: 10px 12px; gap: 6px; }
.byg-kombo header { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.byg-kombo h3 { margin: 0; font-size: 15px; line-height: 1.3; flex: 1 1 220px; }
.byg-kombo p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.byg-kombo-tag { padding: 0 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 700; }
.byg-kombo-tag.hidden { background: var(--gold-soft); color: var(--ink); }
.byg-kombo-cards { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.byg-kombo-card { display: grid; gap: 2px; width: 92px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: center; cursor: pointer; }
.byg-kombo-card .art { width: 92px; }
.byg-kombo-card small { font-size: 11px; line-height: 1.2; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.byg-kombo-card.in small { color: var(--ok); font-weight: 700; }
.byg-kombo-plus { font-weight: 700; color: var(--muted); }
.byg-kombo-idea { font-weight: 600; }
.byg-kombo-steps { margin: 0; padding-left: 20px; display: grid; gap: 3px; font-size: 13.5px; line-height: 1.45; }
.byg-kombo details summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted); }
.byg-kombo details[open] { display: grid; gap: 6px; }
.byg-kombo footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.byg-kombo footer .hint { font-size: 12px; }
.byg-kombo .linkish { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* ---------- Delt opslag uden login: piratbinder.dk/o/<id> (kun selve opslaget) ---------- */
.op { min-height: 100vh; display: grid; place-items: center; padding: 24px 14px; }
.op-post { display: block; width: 100%; max-width: 520px; background: #1e1915; border: 1px solid #3a3029; border-radius: 22px; padding: 18px; color: #f3ece2; text-decoration: none; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
.op-head { display: flex; align-items: center; gap: 12px; }
.op-head b { display: block; font-size: 18px; }
.op-head small { color: #a99d8e; }
.op-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex: none; border: 2px solid #deb55e; display: grid; place-items: center; background: #2a231d; font-size: 22px; }
.op-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.op-text { margin: 14px 0 0; font-size: 17px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.op-text.big { font-size: 22px; font-weight: 700; }
.op-main { display: flex; gap: 14px; align-items: center; margin-top: 14px; padding: 12px; border-radius: 16px; background: linear-gradient(135deg, #2b231b, #1a1612); }
.op-card { flex: none; width: 44%; max-width: 230px; aspect-ratio: 63 / 88; border-radius: 10px; overflow: hidden; background: #2a231d; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 14px 40px -10px rgba(222,181,94,.45); }
.op-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.op-card-blank { display: grid; place-items: center; height: 100%; padding: 8px; text-align: center; font-weight: 700; }
.op-info { min-width: 0; display: grid; gap: 6px; }
.op-info.wide { width: 100%; }
.op-name { font-family: var(--font-display); font-size: 28px; line-height: 1.05; margin: 0; overflow-wrap: anywhere; }
.op-code { margin: 0; font-family: "IBM Plex Mono", monospace; font-size: 13px; color: #a99d8e; }
.op-price { margin: 4px 0 0; font-family: var(--font-display); font-size: 30px; font-weight: 700; color: #f3ece2; line-height: 1; }
.op-price small { display: block; margin-top: 6px; font-family: "Atkinson Hyperlegible", sans-serif; font-size: 12px; font-weight: 400; color: #a99d8e; }
.op-hint { margin: 0; color: #cfc4b5; }
.op-info .btn { justify-self: start; }
.op-stats { display: flex; gap: 18px; margin: 14px 2px 0; color: #a99d8e; font-size: 14px; }

/* ---------- Kort på vej via mail ---------- */
.mail-box { display: grid; gap: 8px; margin: 4px 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--gold-soft); }
.mail-box > b { font-size: 16px; }
.mail-box .hint { margin: 0; }
.mail-address { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mail-address code { flex: 1; min-width: 0; overflow-wrap: anywhere; padding: 8px 10px; border-radius: 10px; background: var(--card, #fff); font-family: "IBM Plex Mono", monospace; font-size: 14px; }
.mail-box > .btn.quiet { justify-self: start; }

/* ---------- Sprog: flaget øverst ---------- */
.lang-flag { position: fixed; top: max(6px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 60; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); background: rgba(255,255,255,.92); font-size: 19px; line-height: 1; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18); padding: 0; }
.lang-flag:hover { transform: translateX(-50%) scale(1.06); }
.lang-flag.fixed { display: none; }
html.has-token .lang-flag.fixed, .lang-flag.fixed.always { display: grid; }
.lang-flag.inline { position: static; transform: none; margin-left: 8px; flex: none; }
.lang-flag.inline:hover { transform: scale(1.06); }

/* Logoet øverst i midten af appen */
.bar { position: relative; }
.bar-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 9px; pointer-events: none; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
@media (max-width: 340px) { .bar-logo { display: none; } }
select.currency-select { max-width: 100%; }
