/* Spilkurv's look (#19): "tactile game UI" – light, saturated, buttons you want to press.
   Rubik is self-hosted (public/fonts, OFL): the browser only ever talks to Spilkurv. */
@font-face {
  font-family: 'Rubik';
  src: url('/fonts/rubik-latin-wght.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
:root {
  /* the palette */
  --ink: #1C1A3A;        /* text, outlines, hard shadows */
  --paper: #F2F4FF;      /* page */
  --card: #FFFFFF;
  --cobalt: #3047F5;     /* primary buttons (white text), links */
  --sun: #FFD43B;        /* the answer card, the logo, the main call to action (ink text) */
  --mint: #22C993;       /* on / selected / done (ink text) */
  --pink: #FF7EB9;       /* stickers and badges (ink text) */
  --muted: #4A4868;
  --soft: #E6E8FA;       /* dividers, off-state fills */
  --tint-a: #8F9CFF;
  --tint-b: #FF9F5A;
  --on-color: #1C1A3A;   /* text on sun / mint / pink – the same in dark mode */
  --outline: var(--ink);
  --shadow: var(--ink);
  --link: var(--cobalt);
  /* names the older styles use */
  --bg: var(--paper);
  --surface: var(--card);
  --line: var(--soft);
  --accent: var(--cobalt);
  --accent-soft: #E3E7FF;
  --good: #0B7A55;       /* green text (mint is too light for text) */
  --good-soft: #D3F7EA;
  --warn: #7A4E00;
  --warn-soft: #FFF3C4;
  --bad: #C0262D;
  /* the consoles' game-card colours (#137): only on cartridge frames, the "2" tab, console pills and legend dots –
     never on text or notices. The card red is its own, warmer and brighter than --bad. White on both: ≥ 4.5:1. */
  --switch2: #D62F2A;    /* white text 4.88:1; 3.22:1 against the dark cards */
  --switch1: #4A4A55;    /* white text 8.74:1 */
  --radius: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F2F4FF;      /* text */
    --paper: #15142B;
    --card: #211F40;
    --muted: #C3C4E4;
    --soft: #363462;
    --outline: #C9CCF5;  /* light outlines */
    --shadow: #07061A;
    --link: #A9B4FF;
    --accent-soft: #2A2D63;
    --good: #5BE3B4;
    --good-soft: #163B33;
    --warn: #FFD43B;
    --warn-soft: #3A3317;
    --bad: #FF8A8F;
    --cobalt: #3F55FF;
    --switch1: #73737E;  /* light enough for the dark cards (3.36:1 on #211F40), white text still 4.68:1 */
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.5 'Rubik', system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}
main { max-width: 1100px; margin: 0 auto; padding: 16px; }
a { color: var(--link); }
button, input { font: inherit; color: inherit; }
button {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
}
button:hover { border-color: var(--muted); }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { button.primary { color: #0b1f1d; } }
button:disabled { opacity: .55; cursor: default; }
button.link { border: 0; background: none; padding: 0 4px; color: var(--accent); }
input[type=text], input[type=url], input[type=search] {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 9px 12px;
}
input:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.topbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  max-width: 1100px; margin: 0 auto; padding: 14px 16px 0;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 20px; color: var(--ink); text-decoration: none; }
.tagline { color: var(--muted); font-size: 14px; }
.foot { max-width: 1100px; margin: 32px auto; padding: 0 16px; color: var(--muted); font-size: 13px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
h1 { font-size: 26px; margin: 0; line-height: 1.25; }
h2 { font-size: 18px; margin: 0 0 10px; }
.hero h1 { font-size: 30px; }
.hero p { max-width: 640px; color: var(--muted); }

.list-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.list-name { border: 1px solid transparent; background: none; font-size: 26px; font-weight: 650; padding: 2px 6px; margin-left: -6px; border-radius: 8px; width: min(520px, 100%); }
.list-name:hover, .list-name:focus { border-color: var(--line); background: var(--surface); }

.search { position: relative; }
.results {
  position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  max-height: 380px; overflow-y: auto; box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.results .group { padding: 8px 12px 2px; font-size: 13px; color: var(--muted); font-weight: 600; }
.result { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; border-radius: 0; padding: 8px 12px; background: none; }
.result:hover, .result:focus, .result.active { background: var(--accent-soft); }
.result strong { color: var(--accent); }
.result .noimg { width: 36px; height: 36px; border-radius: 6px; background: var(--line); flex: none; }
.result:disabled { opacity: .6; }
.result img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; background: var(--line); }
.tag { display: inline-block; font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--line); color: var(--muted); white-space: nowrap; }
.tag.good { background: var(--good-soft); color: var(--good); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.accent { background: var(--accent-soft); color: var(--accent); }

.toggles { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.segmented button { border: 0; border-radius: 0; padding: 6px 14px; background: none; }
.segmented button + button { border-left: 1px solid var(--line); }
.segmented button.on { background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .segmented button.on { color: #0b1f1d; } }
/* Columns the list's format leaves out of the plans: visibly "for comparison only". */
td.excluded, th.excluded {
  background: repeating-linear-gradient(135deg, transparent 0 6px, var(--line) 6px 7px);
}
td.excluded, td.excluded a, th.excluded { color: var(--muted); }
td.excluded .price { opacity: .75; }
.compare-only { display: block; font-size: 11px; font-weight: 500; color: var(--warn); }
tfoot td, tfoot th { border-top: 2px solid var(--line); border-bottom: 0; font-weight: 600; }
tfoot th:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); }
tfoot td .sub, tfoot th .sub { font-weight: 400; }
tfoot td.cheapest .price { color: var(--good); }
.toggles label { display: flex; gap: 6px; align-items: center; cursor: pointer; }

.plan .total { font-size: 24px; font-weight: 700; margin: 2px 0; font-variant-numeric: tabular-nums; }
.plan .breakdown { font-size: 13px; color: var(--muted); }
.plan .shop { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.plan .shop-head { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.plan ul { margin: 4px 0; padding-left: 18px; font-size: 14px; }
.plan .ship { font-size: 13px; }
.compare { font-size: 14px; color: var(--muted); }

.notice { border-radius: var(--radius); padding: 10px 14px; background: var(--warn-soft); color: var(--warn); font-size: 14px; }
.notice.error { background: #fbe4e2; color: var(--bad); }
@media (prefers-color-scheme: dark) { .notice.error { background: #3a1a17; } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; vertical-align: top; }
th:first-child, td:first-child { text-align: left; white-space: normal; min-width: 180px; position: sticky; left: 0; background: var(--surface); }
thead th { font-size: 13px; color: var(--muted); font-weight: 600; }
thead th .ship-info { display: block; font-weight: 400; font-size: 11px; }
tbody tr:last-child td { border-bottom: 0; }
td.cheapest .price { color: var(--good); font-weight: 700; }
td .price { font-variant-numeric: tabular-nums; }
td .sub { display: block; font-size: 11px; color: var(--muted); }
.remove { border: 0; background: none; color: var(--muted); padding: 0 4px; font-size: 18px; line-height: 1; }
.remove:hover { color: var(--bad); }

.addlink input { padding: 5px 8px; font-size: 13px; }
.addlink button { padding: 4px 9px; font-size: 13px; }
.msg { font-size: 12px; white-space: normal; text-align: left; margin-top: 4px; }
.msg.bad { color: var(--bad); }
.msg.warn { color: var(--warn); }

.saved-lists a { display: block; padding: 6px 0; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
@media (max-width: 600px) {
  .list-name, h1 { font-size: 22px; }
  .plan .total { font-size: 22px; }
}
th .sub { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
tfoot td .muted { font-weight: 400; font-size: 13px; }
.result .tag + .tag { margin-left: 4px; }
.stock-out { color: var(--warn); font-weight: 600; font-size: 13px; }
.stock-soon { color: var(--accent); font-weight: 600; font-size: 13px; }
button.link.danger { color: var(--bad); }
.msg.bad { display: block; -webkit-line-clamp: unset; overflow: visible; }
/* The complete answer above the plan cards */
.answer { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  padding: 16px 18px; border-radius: var(--radius); background: var(--good-soft); border: 1px solid var(--good); }
.answer-label { font-size: 15px; font-weight: 700; margin: 0; }
.answer-total { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.answer-note { font-size: 14px; color: var(--ink); max-width: 360px; }
/* Version line in the footer and the "Hvad er nyt" page */
.foot p { margin: 0 0 6px; }
.build { font-variant-numeric: tabular-nums; }
.build .stale { color: var(--bad); }
.changelog ul { margin: 6px 0 0; padding-left: 20px; }
.changelog li + li { margin-top: 4px; }
.changelog .card.current { border-color: var(--accent); }
/* Price history chart: one series in the accent colour, recessive grid and axes */
.history-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.history-head h2 { margin: 0; }
.segmented.small button { padding: 3px 10px; font-size: 13px; }
.history-verdict { margin: 10px 0 4px; font-size: 15px; }
.history-chart { position: relative; }
.history-svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.history-svg .grid { stroke: var(--line); stroke-width: 1; }
.history-svg .axis { fill: var(--muted); font-size: 12px; }
.history-svg .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.history-svg .dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.history-svg .label { fill: var(--ink); font-size: 12px; font-weight: 600; }
.history-svg .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.history-tip { position: absolute; top: 4px; width: 170px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); box-shadow: 0 4px 14px rgba(0,0,0,.12); font-size: 13px; pointer-events: none; }
.history-table { margin-top: 6px; }
.history-table summary { cursor: pointer; color: var(--accent); }
.history-table table { margin-top: 6px; }
.history-table th, .history-table td { text-align: left; }
/* Smaller vertical rhythm inside a section */
.stack-sm > * + * { margin-top: 10px; }
.answer-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.answer-filter { margin-top: 6px; font-size: 14px; color: var(--warn); }
.answer-filter button.link { font-size: 14px; padding: 0; text-decoration: underline; }
/* The 1/2/3-shop alternatives in one row */
.alts { display: flex; gap: 8px; flex-wrap: wrap; }
.alt { display: flex; align-items: baseline; gap: 8px; padding: 7px 12px; }
.alt-label { color: var(--muted); font-size: 14px; }
.alt-total { font-weight: 650; font-variant-numeric: tabular-nums; }
.alt-tick { color: var(--good); font-weight: 700; }
.alt.cheapest { border-color: var(--good); }
.alt[aria-pressed=true] { background: var(--accent-soft); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.alt:disabled .alt-total { color: var(--muted); font-weight: 400; }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.plan-head h2 { margin: 0; }
.plan-shops { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 18px; }
.plan-follow { color: var(--accent); }
.plan-follow button.link { padding: 0; text-decoration: underline; }
/* Shop filter (per viewer) */
.shop-filter summary { cursor: pointer; color: var(--accent); font-size: 15px; width: fit-content; }
.shop-filter .shop-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 4px; }
.shop-filter label { display: flex; gap: 6px; align-items: center; cursor: pointer; font-size: 15px; }
.shop-filter p { margin: 4px 0 0; }
/* Game rows: one per game, the answer first; expand for every shop */
.games-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.games-head h2 { margin: 0; }
.games { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.game + .game { border-top: 1px solid var(--line); }
.game-row { display: flex; align-items: stretch; }
.game-toggle {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap;
  border: 0; border-radius: 0; background: none; padding: 12px 6px 12px 14px; text-align: left;
}
.game:first-child .game-toggle { border-top-left-radius: var(--radius); }
@media (hover: hover) { .game-toggle:hover { background: var(--accent-soft); } }
.chev { width: 0; height: 0; border: 5px solid transparent; border-left: 6px solid var(--muted); border-right: 0; transition: transform .15s; flex: none; }
.game.open .chev { transform: rotate(90deg); }
.game-title { flex: 1 1 240px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.buy { white-space: nowrap; }
.buy-shop { color: var(--muted); }
.buy .price { font-weight: 700; font-variant-numeric: tabular-nums; }
.buy.none { color: var(--muted); font-size: 14px; }
.game-row .remove { padding: 0 14px; border-radius: 0; }
.game-notes { padding: 0 14px 10px 33px; margin-top: -6px; color: var(--muted); }
.elsewhere { color: var(--warn); }
.searching { white-space: nowrap; }
/* The shop lines inside an open game */
.offers { padding: 0 14px 14px 33px; }
.offer-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.offer {
  display: grid; grid-template-columns: 230px minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline;
  padding: 7px 8px; border-bottom: 1px solid var(--line); font-size: 14px;
}
.offer-shop { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
.offer-name { font-weight: 600; }
.offer-value { min-width: 0; }
.offer-value .price { font-weight: 650; font-variant-numeric: tabular-nums; }
.offer-value .sub { font-size: 12px; color: var(--muted); }
.offer.cheapest .offer-value .price { color: var(--good); }
.offer.chosen { background: var(--good-soft); border-radius: 6px; }
.offer.excluded { color: var(--muted); }
.offer.excluded .price, .offer.excluded a { color: var(--muted); }
.found { color: var(--accent); }
.link-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.addlink { grid-column: 1 / -1; display: flex; gap: 6px; margin-top: 4px; }
.addlink input { padding: 5px 8px; font-size: 13px; min-width: 0; }
.offer .msg { grid-column: 1 / -1; }
.offer > .retry { grid-column: 1 / -1; justify-content: flex-start; }
/* Shops without a link: why, and "+ link" */
.missing-list { list-style: none; margin: 8px 0 0; padding: 0; }
.missing { display: flex; justify-content: space-between; align-items: baseline; gap: 2px 10px; flex-wrap: wrap; padding: 3px 8px; }
.missing-name { font-weight: 600; }
.missing.suggestion { background: var(--warn-soft); color: var(--ink); border-radius: 6px; padding: 7px 8px; margin-bottom: 4px; }
.missing.suggestion .link-actions { align-items: baseline; gap: 10px; }
.missing.suggestion button { padding: 3px 10px; font-size: 13px; }
.missing .msg { flex-basis: 100%; }
a.see-price { font-size: 13px; }
.blocked-line { color: var(--muted); }
/* "Pr. butik" matrix */
table.matrix { font-size: 13px; }
table.matrix th, table.matrix td { padding: 8px 6px; }
table.matrix th { white-space: normal; }
table.matrix tbody th { text-align: left; font-weight: 500; color: var(--ink); }
table.matrix td { white-space: nowrap; }
table.matrix td .sub, table.matrix th .sub { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
table.matrix td.chosen { box-shadow: inset 0 0 0 2px var(--good); }
table.matrix th:first-child { min-width: 120px; padding-left: 10px; }
.shop-cards { display: grid; gap: 10px; }
.shop-card { padding: 12px 14px; }
.shop-card-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.shop-card ul { list-style: none; margin: 6px 0; padding: 0; font-size: 14px; }
.shop-card li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 4px; }
.shop-card li.cheapest .price { color: var(--good); font-weight: 700; }
.shop-card li.chosen { box-shadow: inset 0 0 0 2px var(--good); border-radius: 4px; }
.shop-card-total { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 6px; font-weight: 600; }
.shop-card-total .sub { display: block; font-size: 11px; color: var(--muted); font-weight: 400; text-align: right; }
.shop-card.cheapest { border-color: var(--good); }
.shop-card.excluded { color: var(--muted); }
/* Phones: rows become cards, nothing scrolls sideways */
@media (max-width: 600px) {
  .games { border: 0; background: none; }
  .game { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .game + .game { border-top: 1px solid var(--line); margin-top: 8px; }
  .game-toggle { padding: 12px 4px 12px 12px; border-radius: var(--radius) 0 0 var(--radius); }
  .game-title { flex-basis: calc(100% - 20px); }
  .buy { padding-left: 16px; white-space: normal; }
  .game-notes { padding: 0 12px 10px 28px; }
  .offers { padding: 0 10px 12px; }
  .offer { grid-template-columns: 1fr auto; }
  .offer-value { grid-column: 1 / -1; grid-row: 2; }
  .offer > .link-actions:not(.retry) { grid-column: 2; grid-row: 1; }
  .answer-side { align-items: flex-start; }
  .alt { flex: 1 1 auto; justify-content: space-between; }
}
/* A saved link that looks like another game or edition */
.offer .suspect { grid-column: 1 / -1; background: var(--warn-soft); border-radius: 6px; padding: 7px 8px; margin-top: 4px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.offer .suspect .link-actions { align-items: baseline; gap: 10px; }
.offer .suspect button { padding: 3px 10px; font-size: 13px; }
.offer .suspect button.danger { color: var(--bad); }
/* Front page example and empty state */
.example { padding: 14px 18px; }
.example-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.example ul { list-style: none; margin: 0; padding: 0; }
.example li { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 14px; padding: 5px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.example .example-game { font-weight: 600; min-width: 0; }
.example .price { font-variant-numeric: tabular-nums; }
.example-total { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 8px; align-items: baseline; }
.example-total strong { font-size: 20px; color: var(--good); font-variant-numeric: tabular-nums; }
.example p { margin: 8px 0 0; }
figure.example { margin: 0; }
.empty-state p { margin: 4px 0 0; }
/* "Om Spilkurv" and "Privatliv" */
.prose { max-width: 680px; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 12px; }
.prose > h2 { margin-top: 28px; }
.prose > h1 + .lead { margin-top: 8px; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose .lead { font-size: 18px; }
@media (max-width: 600px) {
  .example li { grid-template-columns: 1fr auto; }
  .example li .muted { grid-column: 1; grid-row: 2; font-size: 14px; }
  .example li .price { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}
/* Cover thumbnails in game rows and the front-page example */
.thumb { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; background: var(--line); flex: none; display: block; }
.example li { grid-template-columns: 36px 1fr auto auto; align-items: center; }
/* Notes line up with the title: toggle padding + chevron + thumbnail + the gaps between them */
.game-notes { padding-left: 110px; } /* checkbox + chevron + thumbnail + gaps */
@media (max-width: 600px) {
  .game-title { flex-basis: calc(100% - 71px); }
  .buy { padding-left: 66px; }
  .game-notes { padding-left: 108px; }
  .example li { grid-template-columns: 36px 1fr auto; }
  .example li .thumb { grid-row: 1 / span 2; }
  .example li .muted { grid-column: 2; grid-row: 2; }
  .example li .price { grid-column: 3; grid-row: 1 / span 2; }
}
/* Buying: one checklist per shop in the chosen plan */
.buy-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.buy-shop-btn { font-weight: 600; }
.buy-shop-btn[aria-expanded=true] { background: var(--accent-soft); border-color: var(--accent); }
.buy-shop-btn.done { border-color: var(--good); }
.buy-progress { font-weight: 400; color: var(--muted); }
.buy-shop-btn.done .buy-progress { color: var(--good); font-weight: 700; }
.checklist { margin-top: 10px; }
.checklist-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.checklist-head h2 { margin: 0; }
.checklist p { margin: 6px 0; }
.checklist-items { list-style: none; margin: 8px 0; padding: 0; }
.checklist-items li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 4px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.checklist-items input { width: 20px; height: 20px; margin: 0; accent-color: var(--good); }
.checklist-items label { cursor: pointer; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.checklist-items li.ticked label { color: var(--muted); text-decoration: line-through; }
.checklist-items .price { font-variant-numeric: tabular-nums; }
.checklist-total > div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 14px; }
.checklist-sum { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px !important; font-size: 16px !important; }
@media (max-width: 600px) {
  .checklist-items li { grid-template-columns: auto 1fr auto; }
  .checklist-items li > a, .checklist-items li > span.muted { grid-column: 2; }
  .checklist-items li .price { grid-column: 3; grid-row: 1; }
  .buy-shop-btn { flex: 1 1 auto; }
}
/* "Med i beregningen": switch games on/off in a list (#17) */
.include { display: flex; align-items: center; padding-left: 12px; cursor: pointer; flex: none; }
.include input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.game.off .game-toggle, .game.off .game-notes { opacity: .55; }
.game.off .thumb { filter: grayscale(1); }
.active-count { margin: 0; font-size: 15px; }
.active-count button.link { padding: 0; text-decoration: underline; }
table.matrix tr.off { opacity: .5; }
/* Accounts (#11) */
.account { margin-left: auto; }
.account-btn { font-weight: 600; }
.account-menu { position: relative; }
.account-menu summary { cursor: pointer; list-style: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 15px; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-items { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; min-width: 170px; display: grid; gap: 4px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.account-items a, .account-items button.link { padding: 6px 0; text-align: left; font-size: 15px; }
.login-dialog { border: 1px solid var(--line); border-radius: 14px; padding: 22px; max-width: 380px; width: calc(100% - 32px); background: var(--surface); color: var(--ink); }
.login-dialog::backdrop { background: rgba(0,0,0,.4); }
.login-dialog h2 { margin: 0 0 8px; }
.login-buttons { display: grid; gap: 10px; margin: 14px 0; }
.login-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; border-radius: 8px; font-weight: 600; text-decoration: none; font-size: 16px; }
.login-btn .provider-icon { display: inline-flex; }
.login-apple { background: #000; color: #fff; border: 1px solid #000; }
.login-google { background: #fff; color: #1f1f1f; border: 1px solid #747775; }
.login-dev { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent); }
@media (prefers-color-scheme: dark) { .login-apple { background: #fff; color: #000; border-color: #fff; } .login-google { background: #131314; color: #e3e3e3; border-color: #8e918f; } }
.login-dialog form { text-align: right; }
.access-banner { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; }
.edit-link summary { cursor: pointer; color: var(--accent); width: fit-content; }
.edit-link .row input { flex: 1; min-width: 0; }
.edit-link button.link.danger { padding: 0; }
.my-lists { list-style: none; margin: 0; padding: 6px 18px; }
.my-lists li { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.my-lists li:last-child { border-bottom: 0; }
.my-lists li a { font-weight: 600; }
.my-lists li .link { margin-left: auto; }
.danger-btn { background: var(--bad); border-color: var(--bad); color: #fff; }
.list-name[readonly] { cursor: default; }
.list-name[readonly]:hover { border-color: transparent; background: none; }
@media (max-width: 600px) { .tagline { display: none; } }
.share-rows { margin-top: 10px; }
.share-row { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.share-row .row input { flex: 1; min-width: 0; }
.share-row button.link.danger { padding: 0; width: fit-content; }
.share-row > button { width: fit-content; }
/* "Hurtigvalg" (#18) */
.quickpick-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.quickpick-title { font-weight: 600; }
.quickpick-row h3 { font-size: 15px; margin: 12px 0 6px; }
.quickpick-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.quickpick-card { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px; text-align: left; border-radius: 10px; background: var(--surface); }
.quickpick-card:hover { border-color: var(--accent); }
.quickpick-card.in-list { border-color: var(--good); box-shadow: 0 0 0 1px var(--good) inset; background: var(--good-soft); }
.quickpick-cover { position: relative; width: 100%; }
.quickpick-cover .thumb { width: 100%; height: auto; aspect-ratio: 1; }
.quickpick-check { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--good); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.quickpick-name { font-size: 13px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.quickpick-price { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.quickpick-card .tag { white-space: normal; border-radius: 6px; font-size: 11px; line-height: 1.3; padding: 2px 6px; }
@media (max-width: 600px) { .quickpick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }

/* ================= #19: tactile components ================= */
h1, h2, h3 { color: var(--ink); letter-spacing: -0.01em; }
h1 { font-weight: 800; }
.price, .answer-total, .alt-total, .quickpick-price, .chip { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { :focus-visible { outline-color: var(--sun); } }

/* Pressables: buttons, choices, tiles, tabs */
button, .btn {
  border: 2px solid var(--outline); border-radius: 14px; background: var(--card); color: var(--ink);
  padding: 8px 14px; font-weight: 600; box-shadow: 0 4px 0 var(--shadow);
  transition: transform .06s, box-shadow .06s;
}
button:hover { border-color: var(--outline); filter: brightness(1.03); }
button:active:not(:disabled), .btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--shadow); }
button:disabled { opacity: .5; box-shadow: 0 2px 0 var(--shadow); }
.btn.primary, button.primary { background: var(--cobalt); border-color: var(--outline); color: #fff; }
@media (prefers-color-scheme: dark) { button.primary, .btn.primary { color: #fff; } }
.btn.sun { background: var(--sun); color: var(--on-color); }
.btn.big { font-size: 18px; padding: 14px 18px; border-radius: 18px; }
.btn.wide { width: 100%; }
.btn.small { padding: 5px 10px; font-size: 14px; border-radius: 12px; box-shadow: 0 3px 0 var(--shadow); }
/* Text-like buttons and plain controls don't get the toy look */
button.link, .link { border: 0; box-shadow: none; background: none; padding: 0 2px; color: var(--link); font-weight: 600; border-radius: 6px; }
button.link:active { transform: none; }
.result, .game-toggle, .fold-head, .status-toggle, .game-name, .account-menu summary { box-shadow: none; }
.result { border: 0; border-radius: 0; }
.result:active, .game-toggle:active, .fold-head:active, .game-name:active { transform: none; }
.icon-btn { width: 40px; height: 40px; padding: 0; display: inline-grid; place-items: center; border-radius: 12px; }
.icon-btn .provider-icon { display: inline-grid; }
.remove.icon-btn { width: 32px; height: 32px; font-size: 18px; line-height: 1; color: var(--muted); box-shadow: 0 2px 0 var(--shadow); }
input[type=text], input[type=url], input[type=search] { border: 2px solid var(--outline); border-radius: 14px; background: var(--card); color: var(--ink); padding: 11px 14px; }

/* Selected = pressed in */
.segmented { border: 2px solid var(--outline); border-radius: 14px; box-shadow: 0 4px 0 var(--shadow); background: var(--card); }
.segmented button { border: 0; border-radius: 0; box-shadow: none; }
.segmented button + button { border-left: 2px solid var(--outline); }
.segmented button.on { background: var(--mint); color: var(--on-color); }
@media (prefers-color-scheme: dark) { .segmented button.on { color: var(--on-color); } }
.choice-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.choice { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 16px; }
.choice-label { font-weight: 800; font-size: 17px; }
.choice-hint { font-size: 13px; font-weight: 400; color: var(--muted); }
.choice.on { background: var(--mint); color: var(--on-color); transform: translateY(3px); box-shadow: 0 1px 0 var(--shadow); }
.choice.on .choice-hint { color: var(--on-color); }

/* Plain content: white card, ink outline, no shadow */
.card { background: var(--card); border: 2px solid var(--outline); border-radius: 18px; padding: 16px; box-shadow: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border: 2px solid var(--outline); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip.soft { background: var(--soft); border-color: transparent; }
.chip.pink { background: var(--pink); color: var(--on-color); border-color: var(--on-color); }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.sticker { position: absolute; z-index: 1; background: var(--pink); color: var(--on-color); border: 2px solid var(--on-color); border-radius: 12px; padding: 4px 10px; font-weight: 800; font-size: 13px; transform: rotate(4deg); box-shadow: 0 3px 0 var(--on-color); }

/* Cartridges: the real cover in an ink frame with a notch; no cover → a coloured tile */
.cart { position: relative; display: block; width: 44px; height: 44px; flex: none; border: 2px solid var(--outline); border-radius: 8px 8px 10px 10px; background: var(--soft); overflow: hidden; }
.cart::before { content: ''; position: absolute; top: -2px; left: 50%; width: 38%; height: 5px; transform: translateX(-50%); background: var(--outline); border-radius: 0 0 4px 4px; z-index: 1; }
.cart img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cart.tint-a { background: var(--tint-a); }
.cart.tint-b { background: var(--tint-b); }
.cart.tint-c { background: var(--mint); }
.thumb { display: none; }

/* Top bar */
.brand { font-weight: 800; letter-spacing: -0.02em; }
.account-menu summary { border: 2px solid var(--outline); border-radius: 999px; padding: 4px 12px 4px 4px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--pink); color: var(--on-color); border: 2px solid var(--on-color); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.account-btn { padding: 6px 14px; }

/* ---------- front page ---------- */
.home .hero { position: relative; text-align: center; padding-top: 8px; }
.home .hero h1 { font-size: 34px; line-height: 1.12; font-weight: 900; letter-spacing: -0.02em; max-width: 620px; margin: 0 auto; }
.home .hero .lead { color: var(--muted); max-width: 520px; margin: 10px auto 0; font-size: 17px; }
.hero-art { position: relative; height: 150px; margin: 4px auto 14px; width: 300px; }
.hero-cart { position: absolute; top: 18px; }
.hero-cart .cart { width: 92px; height: 92px; border-width: 2.5px; box-shadow: 0 5px 0 var(--shadow); }
.hero-cart-0 { left: 18px; transform: rotate(-9deg); }
.hero-cart-1 { left: 104px; top: 6px; transform: rotate(3deg); z-index: 1; }
.hero-cart-2 { left: 190px; transform: rotate(10deg); }
.price-tag { position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%) rotate(-4deg); background: var(--sun); color: var(--on-color); border: 2px solid var(--on-color); border-radius: 10px; padding: 1px 7px; font-weight: 800; font-size: 13px; white-space: nowrap; }
.hero-sticker { top: 0; right: 4px; transform: rotate(8deg); }
.console-pick { text-align: center; }
.console-pick h2 { font-size: 22px; font-weight: 800; }
.console-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; max-width: 560px; margin: 0 auto; }
.console-btn { display: grid; gap: 2px; padding: 18px; border-radius: 18px; text-align: left; }
.console-name { font-size: 20px; font-weight: 800; }
.console-hint { font-size: 14px; font-weight: 400; opacity: .9; }

/* ---------- guided start ---------- */
/* The fixed bottom bars (guided start, "Tilføjer til listen") cover the page's end: keep the footer above them. */
body:has(.start-bar) { padding-bottom: 80px; }
.start-head { display: flex; justify-content: space-between; align-items: center; }
.back { font-weight: 600; }
.start h1 { font-size: 30px; font-weight: 900; }
.start-search { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.start-result { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border-radius: 14px; padding: 8px 10px; box-shadow: 0 3px 0 var(--shadow); }
.start-result .start-check { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--outline); background: var(--card); flex: none; }
.start-result.in-list { background: var(--good-soft); transform: translateY(2px); box-shadow: 0 1px 0 var(--shadow); }
.start-result.in-list .start-check { background: var(--mint); }
.start-result.in-list .start-check::after, .quickpick-card.in-list .quickpick-check::after { content: ''; display: block; width: 8px; height: 13px; margin: 3px auto 0; border: solid var(--on-color); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.start-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px max(16px, calc((100% - 1068px) / 2)); background: var(--on-color); color: #fff; }
.start-count { font-weight: 800; font-size: 17px; color: #fff; }
.start-bar .btn { min-width: 140px; }
.question h2 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.setting-switch { display: flex; justify-content: space-between; align-items: center; gap: 14px; cursor: pointer; }
.setting-switch > span:first-child { display: grid; gap: 2px; }

/* the switch (#17), restyled: 52×32, ink border, mint when on */
.switch { position: relative; display: inline-block; width: 52px; height: 32px; flex: none; cursor: pointer; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch-track { position: absolute; inset: 0; border: 2px solid var(--outline); border-radius: 999px; background: var(--soft); transition: background .15s; }
.switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 2px solid var(--outline); transition: transform .15s; }
.switch input:checked + .switch-track { background: var(--mint); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.switch input:disabled + .switch-track { opacity: .5; }

/* ---------- the list page ---------- */
.list-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.list-title { font-size: 28px; font-weight: 900; margin: 0; overflow-wrap: anywhere; }
.list-head .list-name { flex: 1; min-width: 200px; font-size: 22px; font-weight: 800; border: 2px solid var(--outline); background: var(--card); }
.list-layout { display: grid; gap: 16px; grid-template-areas: "answer" "kladde" "games"; }
.list-kladde { grid-area: kladde; }
.list-answer { grid-area: answer; display: grid; gap: 12px; align-content: start; }
.list-games { grid-area: games; }
@media (min-width: 900px) {
  .list-layout { grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "games answer" "kladde kladde"; align-items: start; }
  .list-answer { position: sticky; top: 16px; }
}

.answer-card { position: relative; background: var(--sun); color: var(--on-color); border: 2.5px solid var(--on-color); border-radius: 22px; padding: 18px; box-shadow: 0 6px 0 var(--on-color); display: grid; gap: 10px; }
.answer-card .answer-label { color: var(--on-color); }
.answer-card p { margin: 0; color: var(--on-color); }
.answer-total { font-size: 60px; line-height: 1; font-weight: 900; letter-spacing: -0.03em; margin: 0; color: var(--on-color); }
.answer-card .chip { background: #fff; color: var(--on-color); border-color: var(--on-color); }
.answer-card .sticker { top: -14px; right: 12px; }
.answer-card.calm { gap: 8px; }
.answer-shops { list-style: none; margin: 0; padding: 4px 12px; background: #fff; border: 2px solid var(--on-color); border-radius: 14px; color: var(--on-color); }
.answer-shops li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline; padding: 7px 0; }
.answer-shops li + li { border-top: 2px solid #E6E8FA; }
.answer-shops .muted { color: #4A4868; font-size: 14px; }
.answer-shop { font-weight: 700; }
.answer-shops .price { font-weight: 800; }
.answer-card .btn.primary { color: #fff; border-color: var(--on-color); box-shadow: 0 4px 0 var(--on-color); }
.status { display: grid; gap: 8px; }
.status-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.status-toggle { text-align: left; font-weight: 500; color: var(--muted); padding: 0; text-decoration: underline; text-decoration-color: var(--soft); text-underline-offset: 3px; }
.status-details { background: var(--card); border: 2px solid var(--outline); border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.status-details p { margin: 0; }
.status-details .notice { background: none; color: var(--ink); padding: 0; }

.games-card { display: grid; gap: 10px; }
.games-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.games-head h2 { margin: 0; font-size: 20px; font-weight: 800; }
.game-rows { list-style: none; margin: 0; padding: 0; }
.game-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.game-row + .game-row { border-top: 2px solid var(--soft); }
.game-row.off .cart, .game-row.off .game-main { opacity: .5; }
.game-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.game-name { border: 0; background: none; padding: 0; text-align: left; font-weight: 700; font-size: 16px; color: var(--ink); border-radius: 6px; }
.game-name:hover { text-decoration: underline; filter: none; }
.game-line { color: var(--muted); font-size: 14px; }
.game-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.add-area { border-top: 2px solid var(--soft); padding-top: 12px; }
.add-head { display: flex; justify-content: space-between; align-items: center; }
.add-head h3 { margin: 0; font-size: 17px; }

/* Folded rows */
.folds { padding: 0; overflow: hidden; }
.fold + .fold { border-top: 2px solid var(--soft); }
.fold-head { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 0; background: none; padding: 14px 16px; text-align: left; }
.fold-head:hover { background: var(--accent-soft); filter: none; }
.fold-text { flex: 1; display: grid; gap: 2px; }
.fold-title { font-weight: 800; font-size: 17px; }
.fold-summary { color: var(--muted); font-size: 14px; font-weight: 400; }
.fold .chev { width: 0; height: 0; border: 6px solid transparent; border-top: 7px solid var(--ink); border-bottom: 0; transition: transform .15s; }
.fold.open .chev { transform: rotate(180deg); }
.fold-body { padding: 4px 16px 18px; }
.fold-body .history.card { border: 0; padding: 0; }
.fold-body .games { border: 2px solid var(--soft); }
.setting-label { font-weight: 800; margin: 0 0 8px; }
.alt { border-radius: 14px; }
.alt[aria-pressed=true] { background: var(--sun); color: var(--on-color); transform: translateY(3px); box-shadow: 0 1px 0 var(--shadow); }
.alt[aria-pressed=true] .alt-label { color: var(--on-color); }
.alt.cheapest { border-color: var(--outline); }
.alt-best { font-size: 12px; font-weight: 800; background: var(--mint); color: var(--on-color); border-radius: 999px; padding: 0 8px; }
.plan .total { font-weight: 900; }

/* Buy checklist (#2), restyled: a tab per shop, big checkboxes, a sun total */
.buy-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.buy-shop-btn { display: grid; gap: 0; text-align: left; border-radius: 14px; }
.buy-shop-name { font-weight: 800; }
.buy-progress { font-size: 13px; font-weight: 500; color: var(--muted); }
.buy-shop-btn[aria-selected=true] { background: var(--cobalt); color: #fff; transform: translateY(3px); box-shadow: 0 1px 0 var(--shadow); }
.buy-shop-btn[aria-selected=true] .buy-progress { color: #fff; }
.buy-shop-btn.done:not([aria-selected=true]) { background: var(--mint); color: var(--on-color); }
.buy-shop-btn.done:not([aria-selected=true]) .buy-progress { color: var(--on-color); }
.checklist-items input[type=checkbox] { appearance: none; width: 28px; height: 28px; border: 2px solid var(--outline); border-radius: 8px; background: var(--card); display: grid; place-items: center; cursor: pointer; }
.checklist-items input[type=checkbox]:checked { background: var(--mint); }
.checklist-items input[type=checkbox]:checked::after { content: ''; width: 8px; height: 14px; margin-top: -3px; border: solid var(--on-color); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.sun-card { background: var(--sun); color: var(--on-color); border: 2px solid var(--on-color); border-radius: 14px; padding: 10px 14px; }
.sun-card .chip, .sun-card .muted, .sun-card span { color: var(--on-color); }
.checklist-total.sun-card > div { border-color: rgba(28,26,58,.25); }

/* Quick-pick tiles as cartridges */
.quickpick-card { border-radius: 16px; padding: 8px; gap: 6px; }
.quickpick-cover .cart { width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px 10px 12px 12px; }
.quickpick-check { display: none; position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--mint); border: 2px solid var(--on-color); z-index: 2; }
.quickpick-card.in-list { background: var(--good-soft); border-color: var(--outline); transform: translateY(3px); box-shadow: 0 1px 0 var(--shadow); }
.quickpick-card.in-list .quickpick-check { display: block; }
.quickpick-card .chip { white-space: normal; font-size: 12px; }

@media (max-width: 600px) {
  .home .hero h1 { font-size: 28px; }
  .answer-total { font-size: 52px; }
  .list-title { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: .001s !important; }
  button:active:not(:disabled), .btn:active:not(:disabled) { transform: none; }
}
/* Phones show the first name next to the avatar (#119). */
.game-row .remove.icon-btn { padding: 0; border: 2px solid var(--outline); border-radius: 10px; background: var(--card); }
.game-row .remove.icon-btn:hover { color: var(--bad); }
.status-toggle.link { color: var(--muted); font-weight: 500; }

/* ---------- Mine spil and Forslag til dig (#20) ---------- */
.quickpick-reason { font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.3; }
.quickpick-item { display: grid; gap: 4px; justify-items: center; }
.quickpick-item .quickpick-card { width: 100%; }
.own-btn { font-size: 13px; padding: 2px 4px; }
.chip.mint { background: var(--mint); color: var(--on-color); border-color: var(--on-color); }
button.chip { box-shadow: none; cursor: pointer; }
button.chip:active { transform: none; }
.game-chips { align-items: center; }
.for-you h2 { font-size: 22px; font-weight: 800; text-align: center; }
.home .for-you .quickpick-grid { margin: 0 auto; }
.owned-hint { display: grid; gap: 10px; background: var(--accent-soft); }
.owned-hint p { margin: 0; }
.owned-hint .row { display: flex; gap: 14px; align-items: center; }
.start-title { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.owned-list h2 { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.ask-dialog { border: 2px solid var(--outline); border-radius: 18px; }
.ask-q { font-size: 17px; font-weight: 600; margin: 0 0 16px; }
.ask-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
a.btn { text-decoration: none; display: inline-block; }

/* ---------- list rows (#22): [switch] [cartridge] [title + price] [⋯] ---------- */
.game-row .switch { order: 0; }
.row-menu { position: relative; flex: none; }
.icon-btn.more { width: 44px; height: 44px; font-size: 22px; line-height: 1; letter-spacing: 1px; box-shadow: 0 2px 0 var(--shadow); }
.icon-btn.more[aria-expanded=true] { background: var(--soft); transform: translateY(2px); box-shadow: 0 0 0 var(--shadow); }
.row-menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; max-width: min(300px, calc(100vw - 32px)); display: grid; gap: 4px; padding: 8px; background: var(--card); border: 2px solid var(--outline); border-radius: 14px; box-shadow: 0 4px 0 var(--shadow); }
.row-menu-title { margin: 2px 6px 6px; font-size: 13px; font-weight: 600; color: var(--muted); overflow-wrap: anywhere; }
.row-menu-list [role=menuitem] { text-align: left; border: 0; box-shadow: none; border-radius: 10px; padding: 10px 12px; font-weight: 600; background: none; }
.row-menu-list [role=menuitem]:hover, .row-menu-list [role=menuitem]:focus-visible { background: var(--accent-soft); filter: none; }
.row-menu-list [role=menuitem]:active { transform: none; }
.row-menu-list .danger { color: var(--bad); }
/* Titles: at most two lines on a phone; the full title is in the tooltip and the ⋯ menu. */
@media (max-width: 700px) {
  .game-row .game-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 10px 10px 10px 16px; background: var(--on-color); color: #fff; border-radius: 14px; box-shadow: 0 4px 0 rgba(0,0,0,.35); font-weight: 600; }
.toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast .btn { flex: none; }
@media (prefers-color-scheme: dark) { .toast { background: #F2F4FF; color: #1C1A3A; } }

/* ---------- covers that link to Nintendo (#24) ---------- */
.cart-link { position: relative; display: block; flex: none; border-radius: 10px; text-decoration: none; }
.cart-link .cart { transition: transform .08s; }
.cart-link:hover .cart { transform: translateY(-2px); }
.cart-badge { position: absolute; right: -6px; bottom: -6px; z-index: 2; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--card); color: var(--ink); border: 2px solid var(--outline); font-size: 11px; font-weight: 800; line-height: 1; }
.game-row .switch + .cart-link, .game-row .switch + .cart { margin-left: 6px; } /* clear of the switch */
.checklist-items li { grid-template-columns: auto auto 1fr auto auto; }
.cart-link.small .cart { width: 32px; height: 32px; border-radius: 6px 6px 8px 8px; }
.cart-link.small .cart-badge { width: 16px; height: 16px; font-size: 9px; right: -5px; bottom: -5px; }
.row-menu-list a[role=menuitem] { display: block; text-decoration: none; color: var(--ink); padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.row-menu-list a[role=menuitem]:hover, .row-menu-list a[role=menuitem]:focus-visible { background: var(--accent-soft); }
@media (max-width: 600px) {
  .checklist-items li { grid-template-columns: auto auto 1fr auto; }
  .checklist-items li > a:not(.cart-link), .checklist-items li > span.muted { grid-column: 3; }
  .checklist-items li .price { grid-column: 4; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) { .cart-link:hover .cart { transform: none; } }

/* ---------- "Tilføj … til" (#23): a bottom sheet on the phone, a centred dialog on wider screens ---------- */
.sheet { border: 2px solid var(--outline); border-radius: 22px; padding: 18px; width: min(440px, calc(100% - 32px)); max-height: 80vh; overflow: auto; background: var(--card); color: var(--ink); box-shadow: 0 6px 0 var(--shadow); }
.sheet::backdrop { background: rgba(10, 9, 30, .45); }
.sheet h2 { margin: 0 0 12px; font-size: 20px; font-weight: 800; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .sheet { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 22px 22px 0 0; border-bottom: 0; box-shadow: none; }
}
.target-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.target-choice { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 12px; border-radius: 16px; }
.target-choice.remembered { background: var(--accent-soft); }
.target-choice:disabled { opacity: .6; box-shadow: 0 1px 0 var(--shadow); }
.target-covers { display: flex; flex: none; }
.target-covers .cart { width: 34px; height: 34px; border-radius: 6px 6px 8px 8px; }
.target-covers .cart + .cart { margin-left: -12px; }
.target-text { flex: 1; min-width: 0; display: grid; }
.target-name { font-weight: 800; overflow-wrap: anywhere; }
.target-meta { font-size: 13px; font-weight: 400; color: var(--muted); }
.sheet-cancel { display: block; margin: 12px auto 0; }
/* Two lines, so a phone shows the list's name: "Tilføjer til listen" small, the name bold under it. */
.target-bar-text { display: grid; color: #fff; min-width: 0; line-height: 1.3; }
.target-bar-label { font-size: 13px; opacity: .85; }
.target-bar-text strong { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.target-bar-actions { display: flex; gap: 8px; flex: none; }
.target-bar .btn { min-width: 0; }
body:has(#target-bar) .toast { bottom: 84px; }

/* ---------- price alert (#21) ---------- */
.alert-card { display: grid; gap: 10px; padding: 14px 16px; }
.alert-card.on { background: var(--good-soft); }
.alert-row { display: flex; gap: 12px; align-items: flex-start; }
.alert-row .switch { margin-top: 2px; }
.alert-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.alert-title { margin: 0; font-weight: 700; }
.alert-amount { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.alert-amount .alert-price { width: 7.5em; padding: 8px 12px; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.alert-to { margin: 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.alert-ask { display: grid; gap: 8px; }
.alert-ask label { display: grid; gap: 4px; font-weight: 600; }
.alert-ask .row { display: flex; gap: 14px; align-items: center; }
.alert-note { margin: 0; font-size: 13px; color: var(--muted); }
.alert-note.warn { color: var(--warn); font-weight: 600; }
input[type=email] { border: 2px solid var(--outline); border-radius: 14px; background: var(--card); color: var(--ink); padding: 10px 14px; font: inherit; width: 100%; }
.history-svg .threshold { stroke: var(--bad); stroke-width: 2; stroke-dasharray: 6 5; }
.history-svg .threshold-label { fill: var(--bad); }
.alert-confirm { display: grid; gap: 8px; justify-items: start; }

/* ---------- price change per game (#28) ---------- */
.period-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.period-label { font-size: 14px; color: var(--muted); font-weight: 600; }
.period-switch button { padding: 5px 12px; font-size: 14px; }
.game-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.change-wrap { position: relative; display: inline-flex; }
.change-pill { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px 1px 6px; border-radius: 999px; border: 2px solid var(--on-color); box-shadow: none; font-size: 13px; font-weight: 800; color: var(--on-color); font-variant-numeric: tabular-nums; line-height: 1.4; }
.change-pill:active { transform: none; }
.change-pill.down, .change-chip.down { background: var(--mint); color: var(--on-color); }
.change-pill.up, .change-chip.up { background: var(--pink); color: var(--on-color); }
.change-arrow { width: 11px; height: 11px; fill: currentColor; flex: none; }
.answer-card .chip.change-chip { gap: 4px; border-color: var(--on-color); }
.answer-card .chip.change-chip.down { background: var(--mint); }
.answer-card .chip.change-chip.up { background: var(--pink); }
.lowest-sticker { display: inline-block; background: var(--sun); color: var(--on-color); border: 2px solid var(--on-color); border-radius: 8px; padding: 0 7px; font-size: 12px; font-weight: 800; transform: rotate(-3deg); }
.change-popover { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; width: min(290px, calc(100vw - 48px)); padding: 12px; background: var(--card); color: var(--ink); border: 2px solid var(--outline); border-radius: 14px; box-shadow: 0 4px 0 var(--shadow); display: grid; gap: 6px; text-align: left; font-size: 14px; }
.change-title { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.change-line { margin: 0; }
.change-line.muted { font-size: 12px; color: var(--muted); }
.mini-chart { width: 100%; height: auto; }
.game-row.off .change-pill, .game-row.off .lowest-sticker { opacity: 1; } /* the row's dimming already applies */
/* The popover spans the row, so it never runs off a phone screen. */
.game-row { position: relative; }
.change-wrap { position: static; }
.change-popover { left: 0; right: 0; width: auto; max-width: 420px; top: calc(100% - 4px); }

/* ---------- why a price is old (#34) ---------- */
.price-reason { color: var(--muted); }
.price-reason.stock-out { color: var(--bad); }
.period-note { margin: 0; font-size: 13px; color: var(--muted); }
.list-stale { margin: 0; }
.alert-shift { display: grid; gap: 6px; } .alert-shift .row { display: flex; gap: 14px; align-items: center; }

/* ---------- "Priser i alle butikker": each game's header like a "Dine spil" row (#39) ---------- */
.games .game { border-radius: 14px; }
.games .game-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.games .game-head .switch + .cart-link, .games .game-head .switch + .cart { margin-left: 2px; }
.games .game-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 4px 6px; margin: -4px -6px; border: 0; border-radius: 10px; background: none; text-align: left; color: var(--ink); }
.games .game-head-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.games .game-title { flex: none; font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.games .buy { white-space: normal; font-size: 14px; color: var(--muted); }
.games .buy .price { color: var(--ink); }
.fold .games .game .chev, .games .game .chev { width: 0; height: 0; border: 6px solid transparent; border-top: 7px solid var(--ink); border-bottom: 0; transform: none; transition: transform .15s; flex: none; }
.fold .games .game.open .chev, .games .game.open .chev { transform: rotate(180deg); }
.games .game-notes { padding: 0 12px 10px 12px; margin-top: -4px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.games .game-notes .game-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.games .game.off .game-head .cart-link, .games .game.off .game-head .cart, .games .game.off .game-toggle, .games .game.off .game-notes { opacity: .5; }
@media (max-width: 700px) {
  .games .game-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .games .game-notes { padding-left: 12px; }
}
@media (prefers-reduced-motion: reduce) { .games .game .chev { transition: none; } }
.games .game-head .buy { padding-left: 0; display: block; } /* the old indents were for the checkbox + arrow layout */

/* ---------- /statistik (#52) ---------- */
.stats-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stats-kpis > div { display: grid; gap: 2px; }
.stats-kpi { font-size: 36px; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.stats-page h2 { font-size: 18px; font-weight: 800; margin: 0 0 8px; }
.stats-page h3 { font-size: 15px; margin: 14px 0 6px; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stats-table td { padding: 5px 0; border-bottom: 1px solid var(--soft); }
.stats-table .num, .stats-bar .num { text-align: right; font-variant-numeric: tabular-nums; padding-left: 10px; white-space: nowrap; }
.stats-bars { display: grid; gap: 6px; }
.stats-bar { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.stats-bar-track { height: 14px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.stats-bar-fill { display: block; height: 100%; background: var(--cobalt); border-radius: 999px; }
.stats-answer { font-weight: 800; margin: 0 0 10px; }
.history-svg .stats-col { fill: var(--mint); }

/* ---------- back office (#53) and the site banner ---------- */
.site-banner { background: var(--sun); color: var(--on-color); border-bottom: 2px solid var(--on-color); padding: 10px 16px; text-align: center; font-weight: 700; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-tabs a { padding: 6px 12px; border: 2px solid var(--outline); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; background: var(--card); }
.admin-tabs a.on { background: var(--mint); color: var(--on-color); }
.admin h2 { font-size: 18px; font-weight: 800; margin: 0 0 10px; }
.admin-dl { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.admin-dl dt { color: var(--muted); }
.admin-dl dd { margin: 0; overflow-wrap: anywhere; }
.admin-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.admin-log li.error { color: var(--bad); }
.admin-shop { display: grid; gap: 12px; }
.admin-shop-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-shop-head h2 { margin: 0; }
.admin-shop .row, .admin-review-item .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-ship { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; align-items: end; }
.admin-ship .row { grid-column: 1 / -1; }
.admin-field { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.admin-field input { padding: 8px 10px; font-size: 15px; }
.admin-review { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.admin-review-item { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 2px solid var(--soft); }
.admin-insert, .admin-banner { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-insert input[type=url], .admin-insert input[name=nsuid], .admin-banner input[name=text] { flex: 1 1 220px; }
.admin select { border: 2px solid var(--outline); border-radius: 12px; padding: 8px; background: var(--card); color: var(--ink); font: inherit; }
.admin-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }

/* ---------- "Antal" in the ⋯ menu (#51) ---------- */
.qty-stepper { display: flex; align-items: center; gap: 8px; padding: 6px 12px; }
.qty-label { flex: 1; font-weight: 600; }
.qty-stepper .icon-btn.small { width: 36px; height: 36px; font-size: 20px; line-height: 1; box-shadow: 0 2px 0 var(--shadow); }
.qty-value { min-width: 2ch; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- public game and category pages (#60) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 14px; margin-bottom: 8px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--link); }
.game-page-head { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.game-page-cover.cart { width: 160px; height: 160px; border-radius: 16px; flex: none; }
.game-page-intro { flex: 1 1 260px; display: grid; gap: 10px; }
.game-page h1 { font-size: 30px; font-weight: 900; letter-spacing: -0.02em; margin: 0; }
.game-page h2, .category-page h2 { font-size: 20px; font-weight: 800; margin: 0 0 10px; }
.game-actions { display: grid; gap: 6px; justify-items: start; }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table th, .price-table td { text-align: left; padding: 9px 8px 9px 0; border-bottom: 2px solid var(--soft); vertical-align: top; }
.price-table thead th { font-size: 13px; color: var(--muted); font-weight: 700; }
.price-table tbody th { font-weight: 800; }
.price-table .num { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-table .price-note { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.price-table .muted-row td, .price-table .muted-row th { color: var(--muted); }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.ssr-chart { margin: 16px 0 4px; font-size: 13px; color: var(--muted); }
.ssr-chart-plot { position: relative; height: 160px; margin: 8px 8px 0 64px; }
.ssr-chart-plot .history-svg { width: 100%; height: 100%; overflow: visible; }
.ssr-chart-y { position: absolute; right: calc(100% + 8px); transform: translateY(-50%); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ssr-chart-dot { position: absolute; right: -5px; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--surface); }
.ssr-chart-x { display: flex; justify-content: space-between; margin: 6px 8px 0 64px; }
@media (max-width: 600px) {
  .price-table thead { display: none; }
  .price-table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-bottom: 2px solid var(--soft); }
  .price-table th, .price-table td { border: 0; padding: 0; }
  .price-table td:nth-of-type(1) { grid-column: 2; grid-row: 1; text-align: right; }
  .price-table td:nth-of-type(n+2) { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
  .price-table td:nth-of-type(2)::before { content: 'Fragt: '; }
  .price-table td:nth-of-type(4)::before { content: 'Pris fra '; }
}
.game-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.category-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.category-card { display: grid; gap: 4px; padding: 10px; border: 2px solid var(--outline); border-radius: 16px; background: var(--card); color: var(--ink); text-decoration: none; height: 100%; align-content: start; }
.category-card img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; object-fit: cover; background: var(--soft); }
.category-name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.category-price { font-weight: 800; font-variant-numeric: tabular-nums; }
.category-card .chip { white-space: normal; font-size: 12px; justify-self: start; }
.chip.down { background: var(--mint); color: var(--on-color); border-color: var(--on-color); }

/* "Dagens deal" (#56) */
.deal-slot:empty { display: none; }
.deal { max-width: 560px; margin: 0 auto; width: 100%; }
.deal-kicker { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.deal-body { display: flex; gap: 14px; align-items: flex-start; }
.deal-body > .cart { width: 88px; height: 88px; flex: none; }
.deal-body > .cart img { width: 100%; height: 100%; }
.deal-text { min-width: 0; }
.deal-text p { margin: 4px 0; }
.deal-title { margin: 0; font-size: 19px; line-height: 1.2; }
.deal-title a { color: inherit; }
.deal-price { font-size: 17px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.deal-price strong { font-size: 22px; }
.deal-changed { color: var(--bad); font-weight: 600; }
.deal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.deal-note { margin: 10px 0 0; }
.category-page .deal { margin: 0; }

/* "Dine lister på denne enhed" (#62) */
.saved-list-items { list-style: none; margin: 0; padding: 0; }
.saved-list { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 2px solid var(--soft); }
.saved-list:first-child { border-top: 0; }
.saved-list > a { flex: 1; min-width: 0; display: flex; flex-direction: column; text-decoration: none; }
.saved-list .saved-name { font-weight: 700; text-decoration: underline; overflow-wrap: anywhere; }
.saved-list .saved-meta { color: var(--muted); }
.saved-forget { flex: none; font-size: 20px; line-height: 1; }
.saved-list > a { padding: 0; }

/* Euro rate: Automatisk / Fast kurs (#63) */
.admin-eur { display: grid; gap: 8px; justify-items: start; }
.admin-radio { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.admin-radio input[type=radio] { width: auto; margin: 0; }
.admin-radio input[name=eur] { width: 7em; }
/* Æske / Download groups on the game page (#75) */
.price-table .group-row th { padding-top: 14px; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.price-table tbody:first-of-type .group-row th { padding-top: 4px; }
.tag.format { background: var(--soft); }

/* Kladde (#77) */
.kladde-actions { flex-wrap: wrap; gap: 8px; }
.login-value { margin: 4px 0 12px; padding-left: 20px; color: var(--muted); }

/* Udforsk (#73) */
.genre-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.genre-row .chip { text-decoration: none; }
.explore-filters { display: grid; gap: 10px; }
.explore-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.explore-group-label { font-size: 13px; font-weight: 800; color: var(--muted); min-width: 92px; }
.chip.toggle { cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; }
.chip.toggle.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.chip.toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.explore-sort { align-items: center; gap: 16px; flex-wrap: wrap; }
.explore-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.explore-card { display: flex; gap: 12px; padding: 12px; border: 2px solid var(--outline); border-radius: 14px; background: var(--card); }
.explore-card > .cart { width: 72px; height: 72px; flex: none; }
.explore-text { min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.explore-text p { margin: 0; }
.explore-title { margin: 0; font-size: 16px; line-height: 1.25; }
.explore-title a { color: inherit; }
.explore-chips { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.explore-pages { justify-content: center; align-items: center; gap: 12px; margin-top: 12px; }
@media (max-width: 600px) { .explore-group-label { min-width: 100%; } .explore-grid { grid-template-columns: 1fr; } }
/* Tags by title (#93) */
.admin-tag-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.admin-tag-pick input[type=search] { max-width: 420px; }
/* Why a link needs a login (#92) */
.addlink { flex-wrap: wrap; }
.addlink-why { flex-basis: 100%; margin: 0 0 2px; }

/* Season and guide pages (#88) */
.season-item { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.season-add { align-self: flex-start; }
.season-page section h2 { margin-top: 8px; }
.guide-example ul { margin: 6px 0; padding-left: 20px; }
.guide-saving { font-size: 18px; }
.shipping-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.shipping-table th, .shipping-table td { text-align: left; padding: 8px 8px 8px 0; border-bottom: 2px solid var(--soft); vertical-align: top; }
.shipping-table thead th { font-size: 13px; color: var(--muted); }
.shipping-table .price-note { display: block; font-size: 12px; color: var(--muted); }
@media (max-width: 600px) {
  .shipping-table thead { display: none; }
  .shipping-table tr { display: block; padding: 8px 0; border-bottom: 2px solid var(--soft); }
  .shipping-table th, .shipping-table td { display: block; border: 0; padding: 1px 0; }
  .shipping-table td::before { content: attr(data-label) ': '; color: var(--muted); }
}

/* Back office → Indstillinger: the login self-check per provider (#97) */
.admin-logincheck { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.admin-logincheck li.small:not(.notice) { padding: 0 2px; }

/* ---------- Phones, part 1 (#104): the answer first, search and console choice up top, Udforsk results first ---------- */
/* The kladde's one card, under the answer */
.kladde-card p { margin: 0; }
.kladde-card .kladde-line { font-size: 15px; }
.kladde-card .kladde-actions { margin-top: 10px; align-items: center; }
.kladde-card.asking h2 { margin: 0 0 6px; font-size: 20px; }
.kladde-more-body { margin-top: 10px; }

/* "Med"/"Fra" on the switch */
.switch.worded { width: 62px; }
.switch.worded input:checked + .switch-track::after { transform: translateX(30px); }
.switch-word { position: absolute; top: 50%; transform: translateY(-50%); font-size: 10px; font-weight: 800; line-height: 1; color: var(--ink); pointer-events: none; }
.on-word { left: 8px; display: none; }
.off-word { right: 8px; color: var(--muted); }
.switch input:checked + .switch-track .on-word { display: block; }
.switch input:checked + .switch-track .off-word { display: none; }
.games-hint { margin: 4px 0 8px; }
.period-block { margin-bottom: 12px; }
/* The front page's search: phones only */
.home-search { display: none; }
.home-search input { width: 100%; }
.home-privacy { text-align: center; }
/* Udforsk: "Filtre" is a phone thing */
.explore-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.explore-filter-btn { display: none; }
.explore-more-home .explore-more { display: grid; gap: 10px; }
.explore-sheet .explore-more { display: grid; gap: 12px; margin-bottom: 16px; }
.explore-sheet-head { display: flex; align-items: center; justify-content: space-between; }
.explore-sheet-head h2 { margin: 0; }
.explore-sheet .explore-group-label { min-width: 100%; }
@media (max-width: 700px) {
  .home .hero-art, .home .hero .lead { display: none; }
  .home .hero { padding-top: 0; }
  .home .hero h1 { font-size: 24px; }
  .home-search { display: block; }
  .home .console-pick h2 { font-size: 19px; }
  .home .console-btn { padding: 14px 16px; }
  .explore .lead { display: none; }
  .explore-filter-btn { display: inline-block; }
  .explore-more-home { display: none; }
  .explore-group-genre { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; scroll-padding: 16px; }
  .explore-group-genre::-webkit-scrollbar { display: none; }
  .explore-group-genre .explore-group-label { display: none; }
  .explore-group-genre .chip { flex: none; }
}

/* ---------- Phones, part 2 (#105): the app frame – tab bar, top bar with back, the main button, bottom panels ---------- */
/* Desktop: none of it. */
.tabbar, .main-bar, .top-back, .top-title, .sheet-handle { display: none; }
.account-btn .provider-icon { display: none; } /* the person icon is the phone's "Log ind" */
@keyframes panel-up { from { transform: translateY(100%); } to { transform: none; } }
@media (max-width: 700px) {
  :root { --tabbar-h: 60px; --safe-b: env(safe-area-inset-bottom, 0px); }
  body { padding-bottom: calc(var(--tabbar-h) + var(--safe-b)); }
  /* The tab bar */
  .tabbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--card); border-top: 2px solid var(--outline); padding-bottom: var(--safe-b); }
  .tabbar ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--tabbar-h); font-size: 12px; font-weight: 700; color: var(--muted); text-decoration: none; }
  .tab svg { padding: 2px 14px; border-radius: 999px; box-sizing: content-box; }
  .tab[aria-current=page] { color: var(--ink); }
  .tab[aria-current=page] svg { background: var(--sun); color: var(--on-color); }
  .tab:focus-visible { outline: 3px solid var(--cobalt); outline-offset: -3px; }
  /* Bars that sit on top of it: the guided start's "Videre", "Tilføjer til listen …", the main button, toasts */
  .start-bar { bottom: calc(var(--tabbar-h) + var(--safe-b)); }
  body:has(.start-bar) { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 80px); }
  .main-bar { display: block; position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-b)); z-index: 30; padding: 8px 16px; background: var(--bg); border-top: 2px solid var(--outline); }
  .main-bar[hidden] { display: none; }
  .main-bar .btn { margin: 0; }
  body:has(.main-bar) { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 70px); }
  .toast { bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px); }
  body:has(#target-bar) .toast, body:has(.main-bar:not([hidden])) .toast { bottom: calc(var(--tabbar-h) + var(--safe-b) + 84px); }
  /* The top bar: the brand on a tab's own page; below it a back arrow and the page's title */
  .topbar { flex-wrap: nowrap; gap: 8px; padding-top: max(10px, env(safe-area-inset-top, 0px)); padding-bottom: 8px; min-height: 52px; position: sticky; top: 0; z-index: 35; background: var(--bg); }
  .topbar .tagline, .topbar.deep .brand { display: none; }
  .topbar.deep .top-back { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; margin-left: -6px; }
  .topbar.deep .top-title { display: block; flex: 1; min-width: 0; font-weight: 800; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* The title fades in once the page's heading has scrolled away (#120) */
  .topbar.deep .top-title { opacity: 0; transition: opacity .18s ease; }
  .topbar.deep .top-title.shown { opacity: 1; }
  .start-head .back { display: none; } /* the top bar's arrow does that now */
  /* "Log ind" with its word next to the icon (#119), 44 px tall */
  .account-btn { min-height: 44px; padding: 0 14px 0 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; }
  .account-btn .provider-icon { display: inline-grid; margin: 0; }
  .account-menu summary { min-height: 44px; }
  /* The footer stays for its links, quieter */
  .foot { margin: 24px auto 16px; font-size: 12px; }
  .foot-links { font-size: 13px; }
  /* Tap targets of at least 44 px: text links that are buttons, and chips */
  .link-actions > a, .link-actions > button, button.link.small, .kladde-more, a.chip, button.chip, .game-links a { min-height: 44px; display: inline-flex; align-items: center; }
  button.link.small { padding: 0 8px; }
  /* Bottom panels instead of centred boxes */
  dialog.panel { margin: auto 0 0; width: 100%; max-width: 100%; max-height: 85vh; overflow: auto; border-radius: 22px 22px 0 0; border: 2px solid var(--outline); border-bottom: 0; padding: 10px 18px calc(18px + var(--safe-b)); box-shadow: none; background: var(--card); color: var(--ink); }
  dialog.panel[open] { animation: panel-up .22s ease-out; }
  dialog.panel::backdrop { background: rgba(10, 9, 30, .45); }
  .sheet-handle { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--muted); opacity: .4; margin: 0 auto 12px; }
}
@media (max-width: 700px) and (prefers-reduced-motion: reduce) { dialog.panel[open] { animation: none; } .topbar.deep .top-title { transition: none; } }

/* Dagens deal per format (#110): the label, the "Æske | Download" switch, both cards on /tilbud */
.deal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.deal-head .deal-kicker { margin: 0; }
.deal-missing { margin: 0 0 8px; }
.deal-pair { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.deal-pair .deal { max-width: none; margin: 0; }

/* Feedback (#113) */
.feedback-dialog form { text-align: left; }
.feedback-dialog textarea { width: 100%; font: inherit; resize: vertical; }
.feedback-dialog .feedback-email input { width: 100%; }
.feedback-count { display: block; text-align: right; }
.feedback-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.feedback-thanks { font-size: 18px; font-weight: 700; }
.answer-feedback { margin: -6px 0 0; } /* the grid's gap is enough (#120) */
.admin-feedback { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.admin-feedback li { border-top: 2px solid var(--soft); padding-top: 10px; }
.admin-feedback li.read { opacity: .75; }
.admin-feedback p { margin: 0 0 6px; }
.feedback-text { white-space: pre-wrap; overflow-wrap: anywhere; }

/* /tilbud while the history is short (#118): the deal card's cover, the gaps and the weekly drops */
img.deal-cover { object-fit: cover; }
.gaps h2, .drops h2 { margin: 8px 0 4px; }
.gaps > p.muted.small, .drops > p.muted.small { margin: 0 0 10px; }

/* Polish (#120): edition chips, the gift guide's meta line */
.edition-chip { font-size: 11px; padding: 1px 7px; vertical-align: middle; white-space: nowrap; }
.quickpick-card .edition-chip { align-self: flex-start; margin-top: 2px; }
.gift-meta { font-size: 13px; color: var(--muted); }

/* "Dine lister" (#124): list cards on the front page and under "Lister" – stacked on phones, 2–3 across on desktop */
.home-lists-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.home-lists-head h1 { margin: 0; }
.list-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.list-card { position: relative; height: 100%; border: 2px solid var(--outline); border-radius: 18px; background: var(--card); box-shadow: 0 4px 0 var(--shadow); }
.list-card-link { display: flex; gap: 14px; padding: 14px; color: var(--ink); text-decoration: none; height: 100%; border-radius: 16px; }
.list-card-link:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.list-card-covers { flex: none; display: grid; grid-template-columns: repeat(2, 36px); grid-auto-rows: 36px; gap: 6px; align-content: start; }
.list-card-covers .cart { width: 36px; height: 36px; border-radius: 7px 7px 9px 9px; }
.list-card-covers > .cart:only-child { width: 78px; height: 78px; grid-column: span 2; grid-row: span 2; }
.list-card-text { min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding-right: 36px; }
.list-card-name { font-weight: 800; font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
.list-card-total { font-size: 15px; }
.list-card-total strong { font-size: 22px; font-weight: 900; }
.list-card-note { color: var(--warn); font-weight: 600; }
.list-card .chip.change-chip { font-size: 13px; }
.list-card-menu { position: absolute; top: 8px; right: 8px; }
.home-new { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.home-new .home-search { flex: 1 1 280px; min-width: 0; }
.home-search.always { display: block; }
.home.with-lists .console-pick { margin-top: 28px; }
.row-menu-list[hidden] { display: none; } /* the list cards toggle it with hidden (#124) */
.list-card-where { white-space: nowrap; }

/* "Om spillet" (#125): the ⓘ in a tile's corner – a 44 px tap target with a small visible circle – and the panel */
.quickpick-item, .explore-card, .start-search-item { position: relative; }
.info-btn { position: absolute; top: 0; left: 0; z-index: 2; width: 44px; height: 44px; padding: 0; border: 0; background: none; box-shadow: none; display: grid; place-items: center; cursor: pointer; }
.info-btn span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--ink); border: 2px solid var(--outline); font: italic 800 14px/1 Georgia, 'Times New Roman', serif; box-shadow: 0 2px 0 var(--shadow); }
.info-btn:hover span { background: var(--accent-soft); }
.info-btn:focus-visible { outline: 3px solid var(--cobalt); outline-offset: -4px; border-radius: 12px; }
.explore-card .info-btn { top: 4px; left: 4px; }
.start-search-item .info-btn { left: auto; right: 0; top: 50%; transform: translateY(-50%); }
.start-search-item .start-result { padding-right: 48px; }
.game-info-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.game-info-head > .cart { width: 96px; height: 96px; flex: none; border-radius: 12px 12px 14px 14px; }
.game-info-price { margin: 6px 0 0; font-size: 16px; }
.game-info-actions { margin-top: 12px; gap: 8px; }
.game-info .game-info-close { text-align: right; margin-top: 10px; }
.game-info h2 { overflow-wrap: anywhere; }

/* Nintendo's trailers (#128): a click-to-play box at 16:9; YouTube's player only after a tap */
.trailer-box { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; border: 2px solid var(--outline); background: #000; }
.trailer-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trailer-play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: var(--sun); border: 3px solid var(--on-color); box-shadow: 0 4px 0 var(--on-color); }
.trailer-play::after { content: ''; position: absolute; left: 28px; top: 20px; border-style: solid; border-width: 16px 0 16px 24px; border-color: transparent transparent transparent var(--on-color); }
.trailer-box:hover .trailer-play, .trailer-box:focus-visible .trailer-play { transform: scale(1.06); }
.trailer-box:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.trailer-frame { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; background: #000; }
.trailer-note { margin: 6px 0 0; }
.trailer-wrap { margin-bottom: 12px; }
@media (prefers-reduced-motion: reduce) { .trailer-box:hover .trailer-play { transform: none; } }

/* Deleting a list from its card (#131) */
.list-card-face { position: relative; z-index: 1; height: 100%; background: var(--card); border-radius: 16px; touch-action: pan-y; }
.swipe-action { display: none; }
.card-del { position: absolute; top: 4px; right: 4px; z-index: 2; width: 44px; height: 44px; padding: 0; border: 0; background: none; box-shadow: none; display: grid; place-items: center; cursor: pointer; }
.card-del span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; line-height: 1; font-weight: 700; color: var(--ink); background: var(--soft); }
.card-del:hover span, .card-del:focus-visible span { background: var(--bad); color: #fff; }
.card-del:focus-visible { outline: 3px solid var(--cobalt); outline-offset: -4px; border-radius: 12px; }
@media (hover: hover) and (pointer: fine) {
  /* Computer: the × shows on hover, or when anything in the card has keyboard focus; no "…" */
  .card-del { opacity: 0; transition: opacity .12s; }
  .list-card:hover .card-del, .list-card:focus-within .card-del { opacity: 1; }
  .list-card .list-card-menu { display: none; }
}
@media (hover: none) {
  /* Touch: no permanent × – swipe left reveals "Slet" behind the card, and "…" holds the same choice */
  .card-del { display: none; }
  .list-card { overflow: hidden; }
  .swipe-action { display: block; position: absolute; top: 0; right: 0; bottom: 0; width: 96px; border: 0; border-radius: 0; background: var(--bad); color: #fff; font-weight: 800; font-size: 16px; box-shadow: none; }
}
.list-cards > li.removing { transition: opacity .2s ease, transform .2s ease; opacity: 0; transform: scale(.96); }
@media (prefers-reduced-motion: reduce) { .list-cards > li.removing { transition: none; } .card-del { transition: none; } }
.confirm-dialog p { margin: 0 0 14px; }
.confirm-buttons { gap: 10px; }
.confirm-dialog .danger-btn { background: var(--bad); border-color: var(--on-color); color: #fff; } /* "Slet listen" in red (#131) */

/* The buy path (#133): the main button per shop, links that say where they go, "Åbnet" */
.buy-next { display: grid; gap: 6px; justify-items: start; margin: 4px 0 10px; }
.buy-next-btn { min-height: 44px; display: inline-flex; align-items: center; }
.buy-next-btn:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.buy-next-line { margin: 0; }
.buy-next.done .buy-done { margin: 0; font-weight: 700; color: var(--good); }
.checklist-items .buy-link { white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; padding: 0 2px; }
.checklist-items label { min-width: 0; overflow-wrap: anywhere; }
.opened-tag { margin-left: 6px; background: var(--accent-soft); color: var(--accent); vertical-align: middle; }

/* ---------- the console mark (#137): the cartridge in the real game card's colour ---------- */
.cart.cart-sw2 { border: 3px solid var(--switch2); }
.cart.cart-sw1 { border-color: var(--switch1); }
.cart.cart-sw2::before { background: var(--switch2); }
.cart.cart-sw1::before { background: var(--switch1); }
/* Switch 2's "2" tab on the cartridge's top corner: the console without relying on colour. Decoration (aria-hidden). */
.cart-tab::after { content: '2'; }
.cart-tab { position: absolute; top: 0; right: 0; z-index: 2; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 0 0 0 6px; background: var(--switch2); color: #fff; font-size: 10px; font-weight: 800; line-height: 14px; text-align: center; }
.quickpick-cover .cart-tab, .category-card .cart-tab, .deal-body .cart-tab, .game-info-head .cart-tab, .hero-cart .cart-tab { min-width: 20px; height: 20px; font-size: 13px; line-height: 20px; border-radius: 0 0 0 8px; }
.game-page-cover .cart-tab { min-width: 26px; height: 26px; font-size: 16px; line-height: 26px; border-radius: 0 0 0 10px; }
.category-card .cart { width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px 10px 12px 12px; }
.category-card .cart img { border-radius: 0; }
.result .cart { width: 36px; height: 36px; }
/* The pill: solid, white text – real text, so screen readers hear the console. */
.console-pill { display: inline-block; padding: 1px 8px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap; vertical-align: middle; }
.console-pill.sw2 { background: var(--switch2); }
.console-pill.sw1 { background: var(--switch1); }
.quickpick-card .console-pill { align-self: flex-start; font-size: 11px; padding: 0 7px; }
.start-title, .checklist-items label { overflow-wrap: anywhere; }
.start-title .console-pill, .checklist-items label .console-pill { margin-left: 6px; }
.category-name .console-pill { display: table; margin-top: 4px; }
.game-page-console { margin: 0; }
.result .console-pill + .tag, .result .tag + .console-pill { margin-left: 4px; }
/* On a phone the list rows and the buy list leave it to the frame and tab – the pill stays for screen readers. */
@media (max-width: 600px) {
  .game-row .game-chips .console-pill, .checklist-items label .console-pill { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; margin: 0; }
}
/* The legend: a small empty cartridge in each console button and Konsol chip. */
.cart.cart-mini { display: inline-block; width: 26px; height: 30px; flex: none; background: var(--card); border-radius: 5px 5px 7px 7px; vertical-align: middle; }
.cart-mini .cart-tab { min-width: 11px; height: 11px; padding: 0 2px; font-size: 8px; line-height: 11px; border-radius: 0 0 0 4px; }
.console-btn { display: flex; align-items: center; gap: 14px; }
.console-text { display: grid; gap: 2px; }
.chip .cart.cart-mini { width: 14px; height: 16px; border-width: 2px; border-radius: 3px 3px 4px 4px; }
.chip .cart-mini::before { display: none; }
.chip .cart-mini .cart-tab { min-width: 6px; height: 6px; padding: 0; font-size: 0; border-radius: 0 0 0 3px; }
.chip.toggle .cart-mini { margin-right: 2px; }
.konsol-note { margin-left: 4px; }

/* ---------- the front page's scene (#142): Anders' illustrated road, behind everything ---------- */
.scene { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity .5s ease; }
.scene.shown { opacity: 1; }
.scene-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--horizon, 40%); }
@media (prefers-reduced-motion: reduce) { .scene { transition: none; } }
/* Dark mode: the same scene dimmed – the whole scene, so the sky above a tall window's picture dims with it. */
@media (prefers-color-scheme: dark) { .scene { filter: brightness(.6) saturate(.85); } }
/* Windows taller than the picture (#148): the picture at the full width, anchored to the bottom, nothing cut off at
   the sides; above it sky in the picture's own top-edge colours (scene.js SCENES.sky), the deepest further up, and
   the picture's top 9 % faded into it so there's no line – also where a cloud touches the edge. scenePlacement() in
   scene.js does the same sums for the layout. */
@media (min-width: 1100px) and (max-aspect-ratio: 1672/941) {
  .scene { background: linear-gradient(to bottom, var(--sky-top) 0%, var(--sky-top) 35%, transparent 100%), linear-gradient(to right, var(--sky-left), var(--sky-middle), var(--sky-right)); }
  .scene-img { position: absolute; left: 0; right: 0; bottom: 0; height: auto; aspect-ratio: 1672 / 941; -webkit-mask-image: linear-gradient(transparent, #000 9%); mask-image: linear-gradient(transparent, #000 9%); }
}
/* Narrow windows: a band at the top, behind the header and the first heading, fading into the page. */
@media (max-width: 1099px) {
  .scene { position: absolute; bottom: auto; height: 210px; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
  .scene-on.scene-top .topbar { background: transparent; }
}
/* Text that sits directly on the scene stands on Spilkurv's own signs (#144): white, a 2 px outline, rounded, a small
   hard shadow straight down – the family of the cards and chips. Opaque, so the text keeps its normal contrast.
   Cards, the search field, tiles and chips are opaque already. */
@media (min-width: 1100px) {
  .scene-on .home h1, .scene-on .home h2, .scene-on .home .lead, .scene-on .home-privacy, .scene-on .home-lists-head a,
  .scene-on .topbar .brand, .scene-on .topbar .tagline {
    width: fit-content; max-width: 100%; padding: 3px 14px; border: 2px solid var(--outline); border-radius: 12px;
    background: var(--card); box-shadow: 0 3px 0 var(--shadow);
  }
  .scene-on .topbar .tagline, .scene-on .home-privacy, .scene-on .home-lists-head a { padding: 1px 10px; border-radius: 10px; }
  .scene-on .home .hero h1, .scene-on .home .hero .lead, .scene-on .console-pick h2, .scene-on .for-you h2, .scene-on .home-privacy { margin-inline: auto; }
  .scene-on .foot { width: fit-content; max-width: calc(100% - 32px); padding: 12px 16px; border: 2px solid var(--outline); border-radius: 16px; background: var(--card); box-shadow: 0 3px 0 var(--shadow); }
}
/* Phones and narrow windows keep #142's soft panel: there only the band at the top is behind the text. */
@media (max-width: 1099px) {
  .scene-on .home h1, .scene-on .home h2, .scene-on .home .lead, .scene-on .home-privacy, .scene-on .home-lists-head a,
  .scene-on .topbar .brand, .scene-on .topbar .tagline {
    width: fit-content; max-width: 100%; padding: 2px 10px; border-radius: 12px;
    background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
  .scene-on .home .hero h1, .scene-on .home .hero .lead, .scene-on .console-pick h2, .scene-on .for-you h2, .scene-on .home-privacy { margin-inline: auto; }
}
/* "Nearest is most important": the content at the bottom of the first screen, "Dine lister" nearest. The open view to
   the horizon is at most a quarter of the window (--horizon); the rest grows the content (--grow 0…1, #144). */
.home.near-first { display: flex; flex-direction: column; justify-content: space-between; min-height: var(--first-screen, auto); padding-top: var(--horizon, 0); }
.home.roomy > * + * { margin-top: calc(16px + 32px * var(--grow, 0)); }
.home.roomy .for-you .quickpick-grid { zoom: calc(1 + .15 * var(--grow, 0)); }
/* The compact console switch (#144): for people with lists, in the genre row on wide windows. */
.console-genres { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; }
.console-genres .genre-row { margin: 0; }
.console-compact { display: none; align-items: center; }
.console-compact-label { padding: 0 6px 0 10px; font-size: 13px; font-weight: 800; }
.console-compact button { display: inline-flex; align-items: center; gap: 6px; }
.console-compact .cart.cart-mini { width: 14px; height: 16px; border-width: 2px; border-radius: 3px 3px 4px 4px; }
.console-compact .cart-mini::before { display: none; }
.console-compact .cart-mini .cart-tab { min-width: 6px; height: 6px; padding: 0; font-size: 0; border-radius: 0 0 0 3px; }
.console-compact .cart-mini .cart-tab::after { content: none; }
@media (min-width: 1100px) {
  .home.compact-console .console-pick { display: none; }
  .home.compact-console .console-compact { display: inline-flex; }
  /* "Dine lister" gets more weight (#144): the biggest sign, bigger covers, name and price, more padding. */
  .scene-on .home-lists-head h1 { font-size: 30px; }
  .scene-on .home-lists .list-card-link { padding: calc(18px + 4px * var(--grow, 0)); gap: 16px; }
  .scene-on .home-lists .list-card-covers { --cover: calc(48px * (1 + .15 * var(--grow, 0))); grid-template-columns: repeat(2, var(--cover)); grid-auto-rows: var(--cover); }
  .scene-on .home-lists .list-card-covers .cart { width: 100%; height: 100%; }
  .scene-on .home-lists .list-card-covers > .cart:only-child { width: calc(var(--cover) * 2 + 6px); height: calc(var(--cover) * 2 + 6px); }
  .scene-on .home-lists .list-card-name { font-size: calc(20px * (1 + .1 * var(--grow, 0))); }
  .scene-on .home-lists .list-card-total strong { font-size: calc(26px * (1 + .1 * var(--grow, 0))); }
  /* The bigger price gets its own line, with where it's bought under it (no dot). */
  .scene-on .home-lists .list-card-total { display: flex; flex-direction: column; line-height: 1.25; }
  .scene-on .home-lists .list-card-dot { display: none; }
}
/* Even tiles (#144): every tile in a row the same height, the price line at the bottom. */
.quickpick-grid > li { display: flex; }
.quickpick-grid > li > * { flex: 1 1 auto; min-width: 0; }
.quickpick-item { grid-template-rows: 1fr auto; }
.quickpick-price { margin-top: auto; }
