/* Typsnitt lagras på egen server (inga anrop till Google). Licens: SIL OFL 1.1, se assets/fonts. */
@font-face { font-family: 'Familjen Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/familjen-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Familjen Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/familjen-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Familjen Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/familjen-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

/* POKÉPRIS – katalogkänsla: ljus papperston, mörkt bläck, en grön "valuta"-accent.
   Layout: smal huvudkolumn (max 1240px), kortbilderna bär sidan, data i monospace. */
:root {
  color-scheme: light;
  --bg: #f5f6f4;
  --surface: #ffffff;
  --surface-2: #eef1ee;
  --ink: #121a17;
  --ink-2: #33403b;
  --muted: #5d6964;
  --line: #dfe4e0;
  --line-strong: #c7cec9;
  --accent: #0d6b52;
  --accent-ink: #0a5341;
  --accent-soft: #e2f1eb;
  --warn-ink: #7a4f00;
  --warn-soft: #fbf0d9;
  --danger-ink: #a12a1c;
  --danger-soft: #fbe7e3;
  --focus: #1b74e4;
  --accent-bright: #18a37b;
  --gold: #a87a12;
  --gold-soft: #fcf2d8;
  --aurora-1: #c9efe0;
  --aurora-2: #ffe1cc;
  --aurora-3: #e3dcff;
  --aurora-4: #d4ecff;
  --tier-common: #8a938f;
  --tier-uncommon: #2f9465;
  --tier-rare: #2f74c8;
  --tier-ultra: #8c4fd0;
  --tier-secret: #c18a12;

  --font-display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-1: 0 1px 2px rgb(18 26 23 / 6%), 0 1px 1px rgb(18 26 23 / 4%);
  --shadow-2: 0 10px 28px -12px rgb(18 26 23 / 28%), 0 2px 6px rgb(18 26 23 / 6%);
  --card-ratio: 63 / 88;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 92% -8%, rgb(201 239 224 / 70%), transparent 62%),
    radial-gradient(900px 460px at -6% 2%, rgb(255 225 204 / 55%), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; outline: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff;
  padding: 10px 14px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); }
}

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  font: 600 0.75rem/1 var(--font-body); letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Header ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30;
  background: rgb(245 246 244 / 92%);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgb(245 246 244 / 88%);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px 24px;
  min-height: 64px;
  padding-block: 10px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 24px; height: 28px; }
.brand-word, .footer-brand {
  font: 700 1.25rem/1 var(--font-display); letter-spacing: 0.02em;
}
.brand-word span, .footer-brand span { color: var(--accent); }

.header-search { position: relative; max-width: 460px; width: 100%; justify-self: center; }
.header-search input {
  width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); padding: 0 16px 0 40px; font-size: 0.95rem;
  transition: border-color .15s, box-shadow .15s;
}
.header-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-icon { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

.main-nav { display: flex; gap: 4px; }
.main-nav a {
  text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 999px; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px; transition: background-color .15s, color .15s;
}
.main-nav a:hover { background: var(--surface-2); color: var(--ink); }
.main-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav-count {
  font: 500 0.72rem/1 var(--font-mono); background: var(--accent); color: #fff; border-radius: 999px; padding: 3px 6px;
}
.main-nav a[aria-current="page"] .nav-count { background: #fff; color: var(--ink); }

@media (max-width: 760px) {
  .header-row { grid-template-columns: auto 1fr; }
  .main-nav { justify-self: end; }
  .main-nav a { padding: 8px 10px; }
  .header-search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  html { scroll-padding-top: 130px; }
  body[data-route="search"] .header-search { display: none; }
}
@media (max-width: 380px) {
  .brand-word { font-size: 1.1rem; }
  .main-nav a { padding: 7px 8px; font-size: 0.92rem; }
}

/* ---------- Generic blocks ---------- */
.page { padding-block: 28px 64px; display: grid; gap: 48px; }
.page > * { min-width: 0; }
.section { display: grid; gap: 18px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.section-head p { color: var(--muted); max-width: 62ch; margin-top: 6px; }
.link-arrow { font-weight: 600; color: var(--accent-ink); text-decoration: none; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

.page-title { display: grid; gap: 8px; }
.page-title h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page-title p { color: var(--muted); max-width: 64ch; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.875rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs li { display: flex; gap: 6px; align-items: center; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: contents; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); font-weight: 600; font-size: 0.95rem; cursor: pointer; text-decoration: none; color: var(--ink);
  transition: background-color .15s, border-color .15s, transform .15s var(--ease);
}
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #24302c; border-color: #24302c; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-small { height: 34px; padding: 0 12px; font-size: 0.875rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2); font-size: 0.8rem; font-weight: 500; white-space: nowrap;
}
.chip-accent { background: var(--accent-soft); color: var(--accent-ink); }
.chip-warn { background: var(--warn-soft); color: var(--warn-ink); }
.chip-outline { background: transparent; border: 1px solid var(--line-strong); }
a.chip { text-decoration: none; }
a.chip:hover { background: var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(28px, 5vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center;
}
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); font-weight: 700; letter-spacing: -0.03em; }
.hero-lede { font-size: 1.125rem; color: var(--ink-2); margin-top: 14px; max-width: 46ch; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.search-xl { position: relative; }
.search-xl input {
  width: 100%; height: 60px; border-radius: 16px; border: 1.5px solid var(--line-strong);
  background: var(--bg); padding: 0 132px 0 52px; font-size: 1.05rem;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.search-xl input:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-xl .search-icon { left: 18px; width: 20px; height: 20px; }
.search-xl .btn { position: absolute; right: 8px; top: 8px; height: 44px; }
.hero-hints { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.875rem; color: var(--muted); }

.hero-fan { position: relative; height: 320px; min-width: 0; }
.hero-fan .fan-card {
  position: absolute; top: 50%; left: 50%; width: 168px; aspect-ratio: var(--card-ratio); border-radius: 9px;
  overflow: hidden; box-shadow: var(--shadow-2); background: var(--surface-2);
  transform-origin: 50% 120%;
  transition: transform .5s var(--ease);
}
.hero-fan .fan-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-fan .fan-card:nth-child(1) { transform: translate(-50%, -50%) rotate(-14deg) translateX(-62px); }
.hero-fan .fan-card:nth-child(2) { transform: translate(-50%, -50%) rotate(0deg) translateY(-12px); z-index: 2; }
.hero-fan .fan-card:nth-child(3) { transform: translate(-50%, -50%) rotate(14deg) translateX(62px); }
.hero-fan:hover .fan-card:nth-child(1) { transform: translate(-50%, -50%) rotate(-18deg) translateX(-82px); }
.hero-fan:hover .fan-card:nth-child(3) { transform: translate(-50%, -50%) rotate(18deg) translateX(82px); }
.hero-fan .fan-card:hover { z-index: 3; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-fan { height: 230px; order: -1; }
  .hero-fan .fan-card { width: 124px; }
}
@media (max-width: 520px) {
  .search-xl input { padding-right: 16px; height: 56px; }
  .search-xl .btn { display: none; }
  .hero-fan { display: none; }
}

/* ---------- Card grid & tiles ---------- */
.card-grid {
  display: grid; gap: 22px 18px;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}
@media (max-width: 520px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
}
.tile {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; text-decoration: none; color: inherit; min-width: 0;
  border-radius: var(--radius); outline-offset: 4px;
}
.tile-img {
  position: relative; aspect-ratio: var(--card-ratio); border-radius: 4.6% / 3.3%; overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2), #e6eae7);
  box-shadow: var(--shadow-1);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.tile-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.tile-img img.is-loaded { opacity: 1; }
.tile:hover .tile-img, .tile:focus-visible .tile-img { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.tile-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; min-width: 0; }
.tile-name { font-weight: 600; font-size: 0.95rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-meta { font-size: 0.8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-price { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; min-height: 38px; align-content: start; font-size: 0.9rem; margin-top: 2px; }
.tile-price .amount { font: 500 0.98rem/1.25 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.tile-price .src { font-size: 0.72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-price .missing { font-size: 0.8rem; color: var(--muted); }
.tile-badges { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; }
.tile-badge {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgb(255 255 255 / 92%); color: var(--accent-ink); box-shadow: var(--shadow-1); font: 600 0.72rem/1 var(--font-mono);
}

.img-fallback {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; text-align: center; padding: 12px;
  color: var(--muted); font-size: 0.8rem;
}
.img-fallback strong { font-family: var(--font-display); color: var(--ink-2); font-size: 0.95rem; }

/* Skeletons */
.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 6px; }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 60%), transparent);
  transform: translateX(-100%); animation: shimmer 1.3s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-line { height: 12px; }
.sk-line.w60 { width: 60%; }
.sk-line.w40 { width: 40%; }
.sk-tile { display: grid; gap: 10px; }
.sk-tile .skeleton.card { aspect-ratio: var(--card-ratio); border-radius: 9px; }

.spinner {
  width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line-strong); border-top-color: var(--accent);
  animation: spin .8s linear infinite; display: inline-block; vertical-align: -3px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.page-loading { padding-block: 64px; display: flex; gap: 10px; align-items: center; color: var(--muted); }

/* ---------- Set tiles ---------- */
.set-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 520px) { .set-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.set-tile {
  display: grid; grid-template-rows: 92px auto; text-decoration: none; color: inherit; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .2s var(--ease), transform .2s var(--ease);
}
.set-tile:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.set-logo { display: grid; place-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg); border-radius: var(--radius) var(--radius) 0 0; }
.set-logo img { max-height: 62px; width: auto; max-width: 100%; object-fit: contain; }
.set-logo .logo-text { font: 700 1.05rem/1.15 var(--font-display); text-align: center; color: var(--ink-2); }
.set-info { padding: 12px 14px; display: grid; gap: 4px; min-width: 0; }
.set-info .name { font-weight: 600; display: flex; gap: 8px; align-items: center; min-width: 0; }
.set-info .name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-info .name img { width: 18px; height: 18px; object-fit: contain; flex: none; }
.set-info .meta { font-size: 0.8rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Toolbar & filters ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: end;
  padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.field { display: grid; gap: 5px; min-width: 0; }
.field label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.field input, .field select {
  height: 40px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface);
  padding: 0 12px; font-size: 0.95rem; min-width: 0;
}
.field select { padding-right: 30px; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%235d6964' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-grow { flex: 1 1 240px; }
.field-set { flex: 1 1 200px; }
.field-rarity { flex: 0 1 200px; }
.field-sort { flex: 0 1 200px; }
.field select:disabled { opacity: .55; }
@media (max-width: 520px) { .field-rarity, .field-sort, .field-set { flex: 1 1 140px; } }

.result-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.result-count { font-weight: 600; }
.result-note { font-size: 0.85rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.load-more { display: flex; justify-content: center; padding-top: 8px; }

.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-2);
}
.notice svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--muted); }
.notice-warn { background: var(--warn-soft); border-color: #efd9a8; color: var(--warn-ink); }
.notice-warn svg { color: var(--warn-ink); }
.notice-error { background: var(--danger-soft); border-color: #f2c3ba; color: var(--danger-ink); }
.notice-error svg { color: var(--danger-ink); }
.notice .btn { margin-top: 10px; }

.empty {
  text-align: center; padding: 48px 20px; background: var(--surface); border: 1px dashed var(--line-strong);
  border-radius: var(--radius); display: grid; gap: 10px; justify-items: center;
}
.empty h2, .empty h3 { font-size: 1.3rem; }
.empty p { color: var(--muted); max-width: 52ch; }
.empty .chips { justify-content: center; margin-top: 6px; }


/* ---------- Card detail ---------- */
.card-detail { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .card-detail { grid-template-columns: 1fr; gap: 28px; } }
.card-visual { position: sticky; top: 96px; display: grid; gap: 14px; }
@media (max-width: 900px) { .card-visual { position: static; max-width: 360px; width: 100%; margin-inline: auto; } }
.card-visual .tile-img { border-radius: 4.6% / 3.3%; box-shadow: var(--shadow-2); }
.card-visual .tile-img:hover { transform: none; }
.card-visual-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.card-head { display: grid; gap: 12px; }
.card-head h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
.card-sub { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--ink-2); }
.set-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--accent-ink); }
.set-link img { width: 20px; height: 20px; object-fit: contain; }
.set-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-number { font: 500 1rem/1 var(--font-mono); color: var(--ink); background: var(--surface-2); padding: 6px 10px; border-radius: 6px; }

.detail-stack { display: grid; gap: 28px; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-pad { padding: 20px; }
.panel h2 { font-size: 1.15rem; }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0; margin: 0; }
.facts div { padding: 12px 20px; border-top: 1px solid var(--line); min-width: 0; }
.facts dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 3px 0 0; font-weight: 500; overflow-wrap: anywhere; }

/* Price panel */
.price-panel { overflow: hidden; }
.price-hero { padding: 22px 20px 18px; display: grid; gap: 10px; }
.price-hero .label-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.price-big { font: 500 clamp(2.1rem, 5vw, 2.8rem)/1 var(--font-mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price-big.is-missing { font: 600 1.6rem/1.1 var(--font-display); color: var(--muted); letter-spacing: 0; }
.price-orig { font: 400 0.9rem/1.4 var(--font-mono); color: var(--muted); }
.price-meta { font-size: 0.85rem; color: var(--muted); display: grid; gap: 2px; }
.price-section { border-top: 1px solid var(--line); padding: 16px 20px; display: grid; gap: 10px; }
.price-section h3 { font: 600 0.95rem/1.3 var(--font-body); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.price-section h3 .src-date { font-weight: 400; color: var(--muted); font-size: 0.82rem; }
.table-scroll { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.price-table th, .price-table td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.price-table td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.price-table td.num small { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.price-table td.empty-cell { color: var(--line-strong); }
.price-table th.num { text-align: right; }
.price-table tr:last-child td { border-bottom: 0; }
.kind-tag { display: inline-block; font-size: 0.72rem; color: var(--muted); }
.price-foot { padding: 14px 20px; background: var(--bg); border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); display: grid; gap: 6px; }
.price-foot a { color: var(--accent-ink); }

/* Collection controls */
.collect-box { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 20px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: var(--surface); }
.stepper button { width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer; font-size: 1.1rem; }
.stepper button:hover { background: var(--surface-2); }
.stepper output { min-width: 34px; text-align: center; font: 500 0.95rem/1 var(--font-mono); }
.fav-btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.fav-btn svg { width: 16px; height: 16px; }

/* Attacks */
.moves { display: grid; gap: 0; }
.move { padding: 14px 20px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.move-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.move-name { font-weight: 600; }
.move-dmg { font: 500 1rem/1 var(--font-mono); }
.move-cost { display: flex; gap: 4px; flex-wrap: wrap; }
.move p { color: var(--ink-2); font-size: 0.92rem; }
.energy { font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; background: var(--surface-2); color: var(--ink-2); }

/* Horizontal rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(140px, 160px); gap: 16px; overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x proximity; }
.rail > * { scroll-snap-align: start; }
.rail .tile.is-current .tile-img { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Set header */
.set-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 4vw, 36px); }
.set-header .logo { max-height: 110px; width: auto; max-width: 280px; object-fit: contain; }
@media (max-width: 700px) { .set-header { grid-template-columns: 1fr; } .set-header .logo { order: -1; max-height: 80px; } }
.set-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 14px; }
.set-facts div { display: grid; gap: 2px; }
.set-facts dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.set-facts dd { margin: 0; font: 500 1.05rem/1.3 var(--font-mono); }
.set-facts dd.text { font-family: var(--font-body); }

.progress { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; width: 140px; }
.progress span { display: block; height: 100%; background: var(--accent); transition: width .2s; }

/* Pokémon picks */
.poke-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (max-width: 520px) { .poke-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.poke-tile {
  position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 10px 12px 10px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .2s var(--ease); min-width: 0;
}
.poke-tile:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.poke-thumb { width: 56px; aspect-ratio: var(--card-ratio); border-radius: 4px; overflow: hidden; background: var(--surface-2); }
.poke-thumb img { width: 100%; height: 100%; object-fit: cover; }
.poke-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poke-sub { font-size: 0.78rem; color: var(--muted); }

/* CTA band */
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--ink); color: #f2f5f3; border-radius: 20px; padding: clamp(24px, 4vw, 40px);
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: #fff; }
.cta-band p { color: #b9c4bf; margin-top: 6px; max-width: 54ch; }
.cta-band .btn { background: #fff; color: var(--ink); border-color: #fff; }

/* Collection */
.coll-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; }
.coll-summary div { padding: 18px 20px; border-left: 1px solid var(--line); }
.coll-summary div:first-child { border-left: 0; }
@media (max-width: 600px) { .coll-summary div { border-left: 0; border-top: 1px solid var(--line); } .coll-summary div:first-child { border-top: 0; } }
.coll-summary dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.coll-summary dd { margin: 4px 0 0; font: 500 1.6rem/1.15 var(--font-mono); font-variant-numeric: tabular-nums; }
.coll-summary dd small { display: block; font: 400 0.8rem/1.4 var(--font-body); color: var(--muted); margin-top: 4px; }
.coll-list { display: grid; gap: 0; }
.coll-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); }
.coll-row:first-child { border-top: 0; }
.coll-row .poke-thumb { width: 56px; }
.coll-row .name { font-weight: 600; text-decoration: none; }
.coll-row .name:hover { text-decoration: underline; }
.coll-row .meta { font-size: 0.8rem; color: var(--muted); }
.coll-row .controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.coll-row .value { font: 500 0.95rem/1.2 var(--font-mono); text-align: right; min-width: 88px; }
@media (max-width: 600px) {
  .coll-row { grid-template-columns: 48px minmax(0, 1fr); }
  .coll-row .controls { grid-column: 1 / -1; justify-content: space-between; }
}
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 999px; }
.tabs button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-weight: 500; color: var(--ink-2); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

/* Prose page */
.prose { max-width: 70ch; display: grid; gap: 14px; }
.prose h2 { font-size: 1.35rem; margin-top: 18px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.prose a { color: var(--accent-ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 28px; padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); }
.footer-grid > div { display: grid; gap: 10px; align-content: start; min-width: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-head { font-weight: 600; font-size: 0.85rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.9rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 500; font-size: 0.9rem;
  box-shadow: var(--shadow-2); z-index: 50; max-width: calc(100% - 32px);
}

/* Page enter */
.page { animation: page-in .28s var(--ease); }
@keyframes page-in { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}


/* =====================================================================
   Lyft: varmare, mer levande uttryck (färg, hologlans, rörelse)
   ===================================================================== */

.eyebrow-accent { color: var(--accent); margin-bottom: 6px; }
.grad-text {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-bright) 45%, #d39a1c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 16px -8px rgb(13 107 82 / 70%);
}
.btn-primary:hover { background: linear-gradient(135deg, #1bb386, var(--accent-ink)); border-color: transparent; }

/* Hero */
.hero { isolation: isolate; border-color: rgb(255 255 255 / 70%); box-shadow: 0 30px 60px -40px rgb(18 26 23 / 35%); background: var(--surface); }
.hero > * { position: relative; z-index: 1; }
.hero > .hero-aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.hero-aurora::before, .hero-aurora::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(48px); opacity: .9;
}
.hero-aurora::before {
  width: 62%; height: 120%; right: -12%; top: -30%;
  background: radial-gradient(circle at 40% 40%, var(--aurora-1), transparent 60%), radial-gradient(circle at 70% 70%, var(--aurora-3), transparent 55%);
  animation: aurora 18s ease-in-out infinite alternate;
}
.hero-aurora::after {
  width: 55%; height: 90%; right: 18%; bottom: -45%;
  background: radial-gradient(circle at 50% 50%, var(--aurora-2), transparent 60%), radial-gradient(circle at 20% 30%, var(--aurora-4), transparent 55%);
  animation: aurora 22s ease-in-out infinite alternate-reverse;
}
@keyframes aurora { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-6%, 4%, 0) scale(1.08); } }
.search-xl input { background: rgb(255 255 255 / 85%); }

.hero-fan { perspective: 1000px; }
.hero-fan .fan-card { overflow: visible; background: transparent; box-shadow: none; }
.fan-inner {
  position: relative; width: 100%; height: 100%; border-radius: 9px; overflow: hidden;
  box-shadow: 0 24px 40px -18px rgb(18 26 23 / 45%), 0 4px 10px rgb(18 26 23 / 10%);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .35s var(--ease);
}
.fan-inner.is-tilting { transition: transform .06s linear; }
.fan-inner img { width: 100%; height: 100%; object-fit: cover; }
.hero-fan .fan-card:nth-child(2) .fan-inner { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.hero-fan .fan-card { width: 184px; }
@media (max-width: 860px) { .hero-fan .fan-card { width: 132px; } }

/* Hologlans – används på kortbilder */
.holo {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgb(255 255 255 / 55%), transparent 42%),
    linear-gradient(115deg, transparent 18%, rgb(255 80 160 / 22%) 34%, rgb(80 200 255 / 22%) 48%, rgb(255 225 80 / 22%) 62%, rgb(120 255 180 / 18%) 74%, transparent 88%);
  background-size: 100% 100%, 220% 220%;
  background-position: center, var(--mx, 50%) var(--my, 50%);
  mix-blend-mode: soft-light;
  opacity: 0; transition: opacity .3s;
}
.js-tilt.is-tilting .holo { opacity: 1; }

/* Kortrutor */
.tile-img {
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  will-change: transform;
}
.tile:hover .tile-img, .tile:focus-visible .tile-img {
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
  box-shadow: 0 22px 36px -18px rgb(18 26 23 / 45%), 0 0 0 1px rgb(255 255 255 / 60%);
}
.tile-img.is-tilting { transition: transform .06s linear, box-shadow .22s var(--ease); }
.tile:hover .tile-name { color: var(--accent-ink); }
.tile[data-tier="secret"] .tile-img {
  box-shadow: 0 0 0 2px rgb(214 168 54 / 70%), 0 14px 30px -16px rgb(150 90 210 / 55%);
}
.tile[data-tier="secret"] .holo { opacity: .35; animation: sheen 6s ease-in-out infinite; }
.tile[data-tier="ultra"] .tile-img { box-shadow: 0 0 0 1.5px rgb(140 79 208 / 35%), var(--shadow-1); }
@keyframes sheen { 0%, 100% { background-position: center, 0% 50%; } 50% { background-position: center, 100% 50%; } }

.tile-price .amount {
  justify-self: start; padding: 3px 9px; border-radius: 7px;
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 500;
}
.tile[data-tier="secret"] .tile-price .amount { background: var(--gold-soft); color: var(--gold); }

/* Sällsynthet */
.rarity-chip {
  --tier: var(--tier-common);
  display: inline-flex; align-items: center; gap: 5px; justify-self: start; max-width: 100%;
  font-size: 0.72rem; font-weight: 600; line-height: 1; padding: 4px 8px 4px 6px; border-radius: 999px;
  color: color-mix(in srgb, var(--tier) 80%, #000); background: color-mix(in srgb, var(--tier) 13%, #fff);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rarity-chip.tier-uncommon { --tier: var(--tier-uncommon); }
.rarity-chip.tier-rare { --tier: var(--tier-rare); }
.rarity-chip.tier-ultra { --tier: var(--tier-ultra); }
.rarity-chip.tier-secret {
  --tier: var(--tier-secret);
  background: linear-gradient(100deg, #fff4d6, #f6e6ff 55%, #dff5ff);
  color: #7a560a;
}
.rarity-gem { width: 7px; height: 7px; flex: none; transform: rotate(45deg); border-radius: 1.5px; background: var(--tier); }
.tier-secret .rarity-gem { background: conic-gradient(from 0deg, #f3c34a, #e48bd6, #74c8f2, #f3c34a); }

/* Typer */
.type-chip {
  --type: var(--tier-common);
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 8px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; color: color-mix(in srgb, var(--type) 78%, #000);
  background: color-mix(in srgb, var(--type) 14%, #fff);
}
.type-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--type); box-shadow: inset 0 -2px 0 rgb(0 0 0 / 18%); }

/* Set-rutor */
.set-tile { overflow: hidden; }
.set-tile { --hue: 160; }
.set-tile .set-logo { background:
    radial-gradient(120% 140% at 0% 0%, hsl(var(--hue) 75% 92%), transparent 60%),
    radial-gradient(120% 140% at 100% 100%, hsl(calc(var(--hue) + 50) 80% 91%), transparent 60%),
    #fbfcfb; }
.set-logo img { filter: drop-shadow(0 4px 6px rgb(18 26 23 / 18%)); transition: transform .3s var(--ease); }
.set-tile:hover .set-logo img { transform: scale(1.06) rotate(-1deg); }
.set-logo .logo-text { color: hsl(var(--hue) 45% 28%); }

/* Pokémon-rutor */
.poke-tile {
  --type: var(--accent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--type) 16%, #fff) 0%, #fff 65%);
  border-color: color-mix(in srgb, var(--type) 22%, var(--line));
  overflow: hidden;
}
.poke-tile::after {
  content: ""; position: absolute; right: -18px; bottom: -18px; width: 70px; height: 70px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--type) 30%, transparent), transparent 70%);
}
.poke-thumb { box-shadow: 0 6px 12px -6px rgb(18 26 23 / 45%); transition: transform .3s var(--ease); }
.poke-tile:hover .poke-thumb { transform: rotate(-5deg) scale(1.06); }
.poke-tile:hover { border-color: color-mix(in srgb, var(--type) 45%, var(--line)); }
.poke-sub { display: inline-flex; align-items: center; gap: 6px; color: color-mix(in srgb, var(--type) 70%, #222); font-weight: 500; }

/* Kortsidan */
.card-stage { position: relative; isolation: isolate; padding: 18px; }
.card-stage::before {
  content: ""; position: absolute; inset: -6% -10%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--type, var(--accent)) 38%, transparent), transparent);
  filter: blur(26px); opacity: .9;
}
.card-visual .tile-img { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s var(--ease); }
.card-visual .tile-img.is-tilting { transition: transform .06s linear; }
.card-visual .tile-img:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.card-head h1 { background: linear-gradient(100deg, var(--ink) 55%, color-mix(in srgb, var(--type, var(--accent)) 85%, #000)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.price-panel { border-color: color-mix(in srgb, var(--accent) 22%, var(--line)); box-shadow: 0 20px 40px -32px rgb(13 107 82 / 55%); }
.price-hero { background: linear-gradient(135deg, #effaf5 0%, #ffffff 55%, #fff8ea 100%); }
.price-big { color: var(--accent-ink); }

/* CTA */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, #0a3b2f 0%, #0d6b52 55%, #138d6c 100%);
}
.cta-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(360px 220px at 88% 20%, rgb(255 210 120 / 35%), transparent 70%), radial-gradient(420px 260px at 10% 120%, rgb(140 220 255 / 25%), transparent 70%); }
.cta-band p { color: #cfe7de; }
.cta-band .btn:hover { background: #fff8e6; }

/* Samling */
.coll-summary dd { color: var(--ink); }
.coll-summary div:nth-child(3) dd { color: var(--accent-ink); }

@media (prefers-reduced-motion: reduce) {
  .hero-aurora::before, .hero-aurora::after, .hero-fan .fan-card:nth-child(2) .fan-inner, .tile[data-tier="secret"] .holo { animation: none; }
}

.set-symbol { width: 0.9em; height: 0.9em; object-fit: contain; flex: none; }
.card-stage { overflow: visible; }
.card-visual { overflow-x: clip; overflow-y: visible; }

/* Finjusteringar */
.poke-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 520px) {
  .poke-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-fan { display: block; height: 200px; order: 2; margin-top: -6px; }
  .hero-fan .fan-card { width: 106px; }
  .hero-fan .fan-card:nth-child(1) { transform: translate(-50%, -50%) rotate(-12deg) translateX(-46px); }
  .hero-fan .fan-card:nth-child(3) { transform: translate(-50%, -50%) rotate(12deg) translateX(46px); }
}
.card-stage::before { inset: -4% -14%; opacity: 1; filter: blur(30px); }
@media (min-width: 900px) { .poke-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Samling per variant, önskelista, setkomplettering ---------- */
.collect-panel { overflow: hidden; }
.collect-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px 14px; }
.collect-head h2 { font-size: 1.15rem; }
.variant-list { display: grid; }
.variant-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--line); }
.variant-info { display: grid; gap: 2px; min-width: 0; }
.variant-name { font-weight: 600; }
.variant-price { font: 500 0.88rem/1.2 var(--font-mono); color: var(--accent-ink); }
.variant-price.is-missing { font-family: var(--font-body); color: var(--muted); font-weight: 400; }
.wish-btn[aria-pressed="true"] { background: #fde8ee; border-color: #e36a8d; color: #b0284f; }
.wish-btn svg { width: 16px; height: 16px; }
.tile-badge.badge-wish { color: #c2305a; }
.tile-badge svg { width: 14px; height: 14px; }

.completion { display: grid; gap: 6px; }
.completion-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.completion-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-bright), var(--accent)); transition: width .4s var(--ease); }
.completion-text { display: flex; justify-content: space-between; gap: 8px; font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.completion-text b { color: var(--accent-ink); font-weight: 600; }
.set-info .completion { margin-top: 6px; }
.set-info .completion-bar { height: 5px; }

.completion-panel { padding: 20px; display: grid; gap: 14px;
  background: linear-gradient(135deg, #f1faf6, var(--surface) 60%); border-color: color-mix(in srgb, var(--accent) 18%, var(--line)); }
.completion-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.completion-head h2 { font-size: 1.2rem; }
.completion-panel .completion-bar { height: 12px; }
.completion-panel .completion-text { font-size: 0.85rem; }
.completion-facts { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 0; }
.completion-facts div { display: grid; gap: 2px; }
.completion-facts dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.completion-facts dd { margin: 0; font: 500 1.3rem/1.2 var(--font-mono); }
.completion-facts dd small { display: block; font: 400 0.8rem/1.4 var(--font-body); color: var(--muted); max-width: 46ch; }

.top-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (min-width: 1000px) { .top-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.myset-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.myset { display: grid; gap: 10px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .2s var(--ease); min-width: 0; }
.myset:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.myset-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.coll-controls { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; }
.variant-breakdown { color: var(--accent-ink); }
label.btn { cursor: pointer; }

.coll-row .value.is-missing { font: 400 0.85rem/1.2 var(--font-body); color: var(--muted); }
.tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { white-space: nowrap; }
@media (max-width: 520px) { .tabs button { padding: 7px 10px; font-size: 0.88rem; } }

/* =====================================================================
   Designrunda 2
   ===================================================================== */

/* Sidhuvud */
.brand-mark { color: var(--ink); transition: transform .3s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg); }
.header-search input { background: rgb(255 255 255 / 80%); }
.main-nav a[aria-current="page"] { background: var(--ink); }

/* Bottennavigering på mobil */
.bottom-nav { display: none; }
@media (max-width: 760px) {
  .main-nav { display: none; }
  .header-row { grid-template-columns: auto minmax(0, 1fr); min-height: 58px; }
  .header-search { grid-column: auto; grid-row: auto; }
  .header-search input { height: 40px; }
  body[data-route="search"] .header-row { grid-template-columns: auto; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    background: rgb(255 255 255 / 92%);
    backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -18px rgb(18 26 23 / 40%);
  }
  .bottom-nav a {
    position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 4px; border-radius: 12px;
    text-decoration: none; color: var(--muted); font-size: 0.72rem; font-weight: 600;
  }
  .bottom-nav svg { width: 24px; height: 24px; }
  .bottom-nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent-soft); }
  .bottom-nav .nav-count { position: absolute; top: 2px; left: calc(50% + 6px); font-size: 0.65rem; padding: 2px 5px; }
  .site-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* Hero-statistik */
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 4px 0 0; padding-top: 18px; border-top: 1px dashed var(--line-strong); }
.hero-stats div { display: grid; gap: 2px; }
.hero-stats dt { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hero-stats dd { margin: 0; }
.hero-stats b { font: 600 1.35rem/1.1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }

/* Set-sidans huvud */
.set-header {
  --hue: 160;
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(70% 120% at 100% 0%, hsl(var(--hue) 80% 90%), transparent 60%),
    radial-gradient(60% 120% at 0% 100%, hsl(calc(var(--hue) + 60) 85% 93%), transparent 65%),
    var(--surface);
  border-color: hsl(var(--hue) 40% 86%);
}
.set-header .logo { filter: drop-shadow(0 10px 18px rgb(18 26 23 / 22%)); max-height: 130px; max-width: 320px; }
.set-facts { gap: 10px; }
.set-facts div { padding: 8px 14px; border-radius: 12px; background: rgb(255 255 255 / 70%); border: 1px solid rgb(255 255 255 / 90%); box-shadow: var(--shadow-1); }

/* Prisspann */
.spectrum { margin: 4px 0 2px; display: grid; gap: 10px; padding: 14px 16px; border-radius: 12px; background: rgb(255 255 255 / 75%); border: 1px solid var(--line); }
.spectrum figcaption { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.spectrum-track { position: relative; height: 10px; border-radius: 99px; background: var(--surface-2); margin: 6px 6px; }
.spectrum-fill { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, #cfd6d2, var(--accent-bright), #d6a63a); opacity: .55; }
.spectrum-dot { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; transform: translate(-50%, -50%); border: 3px solid #fff; box-shadow: 0 2px 6px rgb(18 26 23 / 30%); }
.spectrum-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.82rem; color: var(--ink-2); }
.spectrum-legend li { display: inline-flex; align-items: center; gap: 6px; }
.spectrum-legend b { font: 500 0.85rem/1 var(--font-mono); color: var(--ink); }
.spectrum-key { width: 10px; height: 10px; border-radius: 50%; }
.tone-low { background: #9aa39f; }
.tone-main { background: var(--accent); }
.tone-avg { background: #d29a20; }
.tone-sell { background: #6b5bd2; }
.spectrum-dot.tone-main { width: 20px; height: 20px; z-index: 2; }

/* Energisymboler */
.move-name { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.move-cost-inline { display: inline-flex; gap: 3px; }
.energy-dot {
  --type: #9b958a;
  width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center;
  font: 700 0.68rem/1 var(--font-body); color: #fff;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--type) 55%, #fff), var(--type) 70%);
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / 18%), 0 1px 2px rgb(18 26 23 / 25%);
  text-shadow: 0 1px 1px rgb(0 0 0 / 30%);
}
.move-dmg { font: 600 1.15rem/1 var(--font-display); }
.move { transition: background-color .2s; }
.move:hover { background: color-mix(in srgb, var(--type, var(--accent)) 5%, #fff); }

/* Fakta */
.facts div { transition: background-color .2s; }
.facts div:hover { background: var(--bg); }

/* Tomma lägen med illustration */
.empty { background: linear-gradient(180deg, var(--surface), #f8faf9); border-style: solid; border-color: var(--line); }
.empty-art { position: relative; width: 120px; height: 92px; margin-bottom: 6px; }
.empty-art span {
  position: absolute; left: 50%; bottom: 0; width: 56px; height: 78px; border-radius: 7px; border: 3px solid #fff;
  box-shadow: 0 10px 20px -10px rgb(18 26 23 / 45%);
  transform-origin: 50% 110%;
}
.empty-art span:nth-child(1) { background: linear-gradient(135deg, var(--aurora-2), #f5b48f); transform: translateX(-50%) rotate(-16deg) translateX(-22px); }
.empty-art span:nth-child(2) { background: linear-gradient(135deg, var(--aurora-3), #a99cf0); transform: translateX(-50%) rotate(14deg) translateX(22px); }
.empty-art span:nth-child(3) { background: linear-gradient(135deg, var(--aurora-1), var(--accent-bright)); transform: translateX(-50%); z-index: 1; }
.empty-art span:nth-child(3)::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 1.6rem/1 var(--font-display); color: #fff; }

/* Mörk sidfot */
.site-footer { background: #0f1a16; color: #c9d4cf; border-top: 0; position: relative; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--accent-bright), #d6a63a, #a99cf0); }
.site-footer .muted { color: #93a29c; }
.footer-brand { color: #fff; }
.footer-brand span { color: #3fd0a6; }
.footer-head { color: #fff; }
.footer-links a { color: #a9b8b2; }
.footer-links a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: #8fc1ff; }

/* Verktygsrad */
.toolbar { box-shadow: 0 12px 28px -24px rgb(18 26 23 / 40%); }
.set-header { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
.set-header .logo { width: 100%; height: auto; max-height: 130px; object-fit: contain; justify-self: end; }
@media (max-width: 700px) { .set-header { grid-template-columns: minmax(0, 1fr); } .set-header .logo { width: auto; max-width: 70%; max-height: 80px; justify-self: start; } }
.completion-facts div { align-content: start; }

/* Språkväljare */
.header-row { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.lang-switch { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.lang-switch button {
  border: 0; background: transparent; cursor: pointer; border-radius: 999px; padding: 5px 9px;
  font: 600 0.76rem/1 var(--font-body); letter-spacing: 0.04em; color: var(--muted); transition: background-color .15s, color .15s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
@media (max-width: 760px) {
  .header-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  body[data-route="search"] .header-row { grid-template-columns: auto 1fr auto; }
  .lang-switch button { padding: 6px 8px; }
}
@media (max-width: 380px) { .brand-word { display: none; } }

/* Logotyp och headerbild */
.brand-mark { width: 24px; height: 28.5px; color: var(--accent); }
.hero.hero-image {
  grid-template-columns: minmax(0, 1fr);
  min-height: 440px;
  align-content: center;
  background:
    linear-gradient(90deg, var(--surface) 0%, rgb(255 255 255 / 92%) 34%, rgb(255 255 255 / 0%) 58%),
    url("/assets/hero.webp") right center / cover no-repeat,
    var(--surface);
}
.hero.hero-image .hero-copy { max-width: 560px; }
@media (max-width: 860px) {
  .hero.hero-image {
    min-height: 0;
    padding-bottom: 210px;
    background:
      linear-gradient(180deg, var(--surface) 52%, rgb(255 255 255 / 0%) 78%),
      url("/assets/hero.webp") 72% 100% / auto 260px no-repeat,
      var(--surface);
  }
}
@media (max-width: 520px) {
  .hero.hero-image { padding-bottom: 170px; background-size: auto, auto 220px, auto; }
}
@media (max-width: 760px) {
  .header-row, body[data-route="search"] .header-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand . lang" "search search search";
  }
  .brand { grid-area: brand; }
  .lang-switch { grid-area: lang; }
  .header-search { grid-area: search; }
  body[data-route="search"] .header-row { grid-template-areas: "brand . lang"; }
  html { scroll-padding-top: 120px; }
}
@media (max-width: 860px) {
  .hero.hero-image {
    padding-bottom: 190px;
    background:
      linear-gradient(180deg, var(--surface) 64%, rgb(255 255 255 / 0%) 84%),
      url("/assets/hero.webp") 72% 100% / auto 230px no-repeat,
      var(--surface);
  }
}

/* =====================================================================
   Grafiskt lyft, runda 3
   ===================================================================== */

main { overflow-x: clip; }

/* Subtil papperstextur i bakgrunden */
body {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.07 0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(1100px 520px at 92% -8%, rgb(201 239 224 / 70%), transparent 62%),
    radial-gradient(900px 460px at -6% 2%, rgb(255 225 204 / 55%), transparent 60%);
  background-repeat: repeat, no-repeat, no-repeat;
}

/* Sidhuvud vid scroll */
.site-header { transition: box-shadow .25s var(--ease), background-color .25s; }
body.is-scrolled .site-header { box-shadow: 0 10px 30px -20px rgb(18 26 23 / 45%); background: rgb(255 255 255 / 90%); }
body.is-scrolled .header-row { min-height: 56px; }

/* Typografi */
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; }
.grad-text {
  background-image: linear-gradient(100deg, var(--accent) 0%, var(--accent-bright) 30%, #d39a1c 55%, var(--accent-bright) 80%, var(--accent) 100%);
  background-size: 220% 100%;
  animation: grad-shift 9s ease-in-out infinite alternate;
}
@keyframes grad-shift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); letter-spacing: -0.02em; }
.eyebrow-accent { display: inline-flex; align-items: center; gap: 8px; }
.eyebrow-accent::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent-bright), #d6a63a); }

/* Kortrutor: typfärgad glöd och inglidning */
.tile { --type: var(--accent); }
.tile:hover .tile-img, .tile:focus-visible .tile-img {
  box-shadow: 0 26px 40px -20px color-mix(in srgb, var(--type) 70%, transparent), 0 0 0 1px rgb(255 255 255 / 70%);
}
.card-grid > .tile, .rail > .tile { animation: tile-in .55s var(--ease) both; }
.card-grid > .tile:nth-child(2), .rail > .tile:nth-child(2) { animation-delay: .03s; }
.card-grid > .tile:nth-child(3), .rail > .tile:nth-child(3) { animation-delay: .06s; }
.card-grid > .tile:nth-child(4), .rail > .tile:nth-child(4) { animation-delay: .09s; }
.card-grid > .tile:nth-child(5), .rail > .tile:nth-child(5) { animation-delay: .12s; }
.card-grid > .tile:nth-child(6), .rail > .tile:nth-child(6) { animation-delay: .15s; }
.card-grid > .tile:nth-child(n+7) { animation-delay: .18s; }
@keyframes tile-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.tile-name { font-family: var(--font-display); font-size: 1rem; letter-spacing: -0.005em; }

/* Set-rutor: färgsvep vid hover */
.set-tile .set-logo { background-size: 160% 160%, 160% 160%, auto; background-position: 0% 0%, 100% 100%, 0 0; transition: background-position .6s var(--ease); }
.set-tile:hover .set-logo { background-position: 30% 20%, 70% 80%, 0 0; }
.set-tile:hover { border-color: hsl(var(--hue) 45% 78%); }

/* I fokus */
.spotlight {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 24px; border: 1px solid color-mix(in srgb, var(--type) 25%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--type) 9%, #fff), #fff 55%, #fffaf0);
  box-shadow: 0 40px 70px -50px color-mix(in srgb, var(--type) 70%, transparent);
}
.spotlight-glow { position: absolute; z-index: -1; width: 520px; height: 520px; left: -140px; top: 50%; transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--type) 40%, transparent), transparent); filter: blur(20px); }
.spotlight-card { display: block; text-decoration: none; }
.spotlight-card .tile-img { box-shadow: 0 34px 50px -24px color-mix(in srgb, var(--type) 65%, #000), 0 0 0 1px rgb(255 255 255 / 70%); }
.spotlight-body { display: grid; gap: 14px; min-width: 0; }
.spotlight-body h3 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.03em; }
.spotlight-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; color: var(--ink-2); font-weight: 500; }
.spotlight-price { display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; background: rgb(255 255 255 / 80%); border: 1px solid var(--line); justify-self: start; min-width: 0; }
.spotlight-price .label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.spotlight-price strong { font: 500 clamp(2rem, 4.5vw, 2.8rem)/1 var(--font-mono); color: var(--accent-ink); letter-spacing: -0.02em; }
.spotlight-price .src { font-size: 0.8rem; color: var(--muted); }
@media (max-width: 720px) {
  .spotlight { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .spotlight-card { max-width: 220px; margin-inline: auto; }
}

/* Kortsidan: bakgrund hämtad ur kortets egen bild */
.card-page { position: relative; isolation: isolate; }
.card-backdrop {
  position: absolute; z-index: -1; top: -28px; left: 50%; width: 100vw; height: 640px; transform: translateX(-50%);
  background: radial-gradient(60% 70% at 25% 30%, color-mix(in srgb, var(--type, var(--accent)) 35%, transparent), transparent) center / cover no-repeat;
  background-size: cover; background-position: center 30%;
  filter: blur(80px) saturate(1.5); opacity: .4;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%); mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  pointer-events: none;
}
.card-stage::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -6px; height: 28px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(18 26 23 / 30%), transparent); filter: blur(6px);
}

/* Knappar */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 35%) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }

@media (prefers-reduced-motion: reduce) {
  .grad-text { animation: none; }
  .card-grid > .tile, .rail > .tile { animation: none; }
}

/* ---------- Sidfot v2 ---------- */
.footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 28px 36px; padding-block: 44px 28px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-about { display: grid; gap: 12px; align-content: start; max-width: 42ch; }
.footer-about p { color: #a9b8b2; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.25rem/1 var(--font-display); letter-spacing: 0.02em; color: #fff; }
.footer-brand .brand-mark { color: #3fd0a6; }
.footer-contact a { color: #fff; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 10%); padding-block: 18px calc(22px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; }
.footer-bottom p { color: #8a9a94; max-width: 110ch; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; }
@media (max-width: 760px) { .footer-bottom { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); } .site-footer { padding-bottom: 0; } }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; max-width: 820px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s var(--ease); }
.faq-item[open] { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); box-shadow: 0 16px 30px -26px rgb(13 107 82 / 60%); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 20px; font: 600 1.05rem/1.35 var(--font-display);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 20px 18px; color: var(--ink-2); max-width: 70ch; }
.faq-icon { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; background: var(--accent-ink); transform: translate(-50%, -50%); transition: transform .25s var(--ease); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.contact-box { display: grid; gap: 10px; max-width: 820px; }
.contact-box a { color: var(--accent-ink); }

/* ---------- Integritet ---------- */
.privacy-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 8px 0; }
.privacy-summary div { display: grid; gap: 4px; padding: 16px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); }
.privacy-summary strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--accent-ink); }
.privacy-summary span { font-size: 0.9rem; color: var(--ink-2); }
.privacy-toggle { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.notice a { color: var(--accent-ink); font-weight: 600; }

/* Tradera */
.tradera-box { display: grid; gap: 8px; }
.tradera-summary { font-size: 0.92rem; }
.tradera-summary strong { font: 500 1.15rem/1 var(--font-mono); color: var(--accent-ink); }
.tradera-list { list-style: none; margin: 0; padding: 0; display: grid; }
.tradera-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.88rem; min-width: 0; }
.tradera-list a { color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tradera-list a:hover { text-decoration: underline; }
.tradera-price { display: flex; gap: 10px; flex: none; color: var(--muted); }
.tradera-price b { font-family: var(--font-mono); font-weight: 500; color: var(--ink); }
.price-section > .btn { justify-self: start; }
