:root {
  --bg: #120E15;
  --panel: #1C161F;
  --panel-2: #271F2C;
  --line: #3A3040;
  --text: #F4EEF6;
  --muted: #A79FAD;
  --violet: #7B3FC4;
  --violet-soft: #B98CF0;
  --gold: #D9B866;
  --red: #EF7B79;
  --green: #7FD69A;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 4vw, 38px); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--violet-soft); outline-offset: 2px; }

.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }

.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 32px;
  padding: 12px clamp(16px, 5vw, 64px); background: rgba(18, 14, 21, .88); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { display: flex; flex: none; align-items: center; gap: 12px; width: 16rem; min-width: 0; text-decoration: none; font-family: var(--display); font-size: 20px; white-space: nowrap; }
.brand img { flex: none; object-fit: contain; }
/* The brand has a fixed width (a long shop name is cut off), so the menu starts at the same place on every page. */
.brand span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.topbar nav { display: flex; gap: 22px; white-space: nowrap; }
.topbar nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: var(--text); }
.topbar nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
.topbar nav .desk-link, .topbar > .desk-link { color: var(--violet-soft); }
/* Three buttons, each with a small menu under it (site/menu.js). */
.topbar nav { align-items: center; }
.menu-group { position: relative; }
.menu-button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 2px; background: none; border: 0;
  color: var(--muted); font-size: 15px; cursor: pointer; white-space: nowrap; }
.menu-button:hover, .menu-button[aria-expanded="true"], .menu-group.current .menu-button { color: var(--text); }
.menu-group.current .menu-button { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
.menu-button .caret { width: 7px; height: 7px; margin: -3px 2px 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .15s; }
.menu-button[aria-expanded="true"] .caret { margin-top: 3px; transform: rotate(225deg); }
.menu-panel { position: absolute; top: calc(100% + 8px); left: -12px; z-index: 20; display: grid; gap: 2px; min-width: 230px; padding: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(0, 0, 0, .5); white-space: normal; }
.menu-panel[hidden] { display: none; }
.topbar nav .menu-panel a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.topbar nav .menu-panel a:hover { background: var(--panel-2); }
.topbar nav .menu-panel a[aria-current="page"] { color: var(--gold); text-decoration: none; }
.menu-panel small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.topbar > .desk-link { flex: none; padding: 6px 2px; font-size: 15px; text-decoration: none; white-space: nowrap; }
.topbar > .desk-link:hover { color: var(--text); }
/* Two small flags at the right, the current one lit: present, not in the way. The cart (shop only) comes after them. */
.topbar .language { margin-left: auto; }
.language { display: inline-flex; gap: 2px; }
.language button, .language a { display: inline-grid; place-items: center; min-width: 32px; min-height: 32px; padding: 0; background: none;
  border: 1px solid transparent; border-radius: 6px; cursor: pointer; opacity: .5; transition: opacity .15s; }
.language button:hover, .language a:hover { opacity: .85; }
.language button[aria-pressed="true"], .language [aria-current] { opacity: 1; border-color: var(--line); background: var(--panel-2); }
.flag { display: block; width: 20px; height: 14px; border-radius: 2px; background-position: center; background-size: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.flag-nl { background-image: url("/static/flag-nl.svg"); }
.flag-en { background-image: url("/static/flag-en.svg"); }
.cart-button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 8px; cursor: pointer; white-space: nowrap;
}
.cart-button:hover { border-color: var(--violet-soft); }
.cart-button #cart-count { min-width: 22px; padding: 0 6px; border-radius: 11px; background: var(--violet); font-size: 13px; line-height: 22px; text-align: center; }

.hero {
  padding: clamp(64px, 11vw, 132px) clamp(16px, 5vw, 64px) clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(70% 120% at 85% 0%, rgba(123, 63, 196, .28), transparent 62%), radial-gradient(50% 90% at 100% 100%, rgba(217, 184, 102, .1), transparent 70%);
}
.hero h1 { max-width: 20ch; font-size: clamp(44px, 7.5vw, 84px); }
.lead { max-width: 54ch; margin: 24px 0 34px; color: #D5CDDA; font-size: clamp(17px, 2vw, 20px); }

.primary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; background: var(--violet);
  border: 1px solid var(--violet); border-radius: 8px; color: #fff; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .15s;
}
.primary:hover:not(:disabled) { background: #8E51DA; }
.primary:disabled { background: var(--panel-2); border-color: var(--line); color: var(--muted); cursor: default; }

.shop, .steps { padding: clamp(48px, 7vw, 80px) clamp(16px, 5vw, 64px); }
.shop-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.shop-head p { margin: 0; color: var(--muted); }

.filters { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(140px, 1fr)); gap: 12px; margin: 24px 0 32px; }
.filters label, #order-form label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
input, select, textarea { width: 100%; min-height: 44px; padding: 8px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; color: var(--text); }
textarea { resize: vertical; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 24px 20px; }
.tile { display: flex; flex-direction: column; width: 100%; padding: 0; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; }
.tile-photo { overflow: hidden; aspect-ratio: 3 / 4; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; transition: border-color .18s, transform .18s; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; }
.tile:hover .tile-photo { border-color: var(--gold); transform: translateY(-3px); }
.tile h3 { margin: 12px 0 0; font-family: var(--display); font-size: 19px; font-weight: 500; line-height: 1.25; }
.tile small { color: var(--muted); font-size: 14px; }
.tile .row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 6px; }
.tile b { font-size: 17px; font-weight: 600; }
.in-cart .tile-photo { border-color: var(--violet-soft); }
.empty { color: var(--muted); }

.steps { background: var(--panel); border-block: 1px solid var(--line); }
.steps ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 28px 0 0; padding: 0 0 0 1.4em; }
.steps li { padding-left: 4px; }
.steps li::marker { color: var(--muted); font-family: var(--display); font-size: 20px; }
.steps strong { display: block; margin-bottom: 4px; font-family: var(--display); font-size: 20px; font-weight: 500; }
.steps span { color: var(--muted); }

footer { display: flex; justify-content: space-between; gap: 32px; padding: 40px clamp(16px, 5vw, 64px); color: var(--muted); }
footer strong { color: var(--text); font-family: var(--display); font-size: 18px; font-weight: 500; }
footer p { margin: 4px 0 0; }
footer a { color: var(--violet-soft); }
.fineprint { max-width: 44ch; font-size: 14px; }
.powered { margin: 0; }
.shops-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.shop-tile { display: grid; gap: 4px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; transition: border-color .15s; }
.shop-tile:hover { border-color: var(--gold); }
.shop-tile strong { font-family: var(--display); font-size: 22px; font-weight: 500; }
.shop-tile span { color: var(--muted); font-size: 15px; }
.shops-search { display: grid; gap: 6px; max-width: 480px; margin: 24px 0 32px; color: var(--muted); font-size: 14px; }

dialog { color: var(--text); background: var(--panel); border: 1px solid var(--line); padding: 0; }
dialog::backdrop { background: rgba(8, 6, 10, .74); }
.close { position: absolute; top: 10px; right: 10px; z-index: 1; width: 40px; height: 40px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; font-size: 22px; line-height: 1; cursor: pointer; }

.sheet { width: min(940px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border-radius: 12px; }
.detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.detail-photo { padding: 24px; background: var(--bg); }
.detail-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; border-radius: 8px; }
.sides { display: flex; gap: 8px; margin-top: 12px; }
.sides button { flex: 1; min-height: 40px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); cursor: pointer; }
.sides button[aria-pressed="true"] { border-color: var(--violet-soft); color: var(--text); }
.detail-text { padding: 56px 32px 32px; }
.detail-text h2 { font-size: 34px; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 24px 0; }
dt { color: var(--muted); }
dd { margin: 0; }
.price { margin: 0 0 20px; font-family: var(--display); font-size: 32px; }

.drawer { width: min(460px, 100vw); height: 100dvh; max-height: none; margin: 0 0 0 auto; border-width: 0 0 0 1px; }
.drawer > div { padding: 56px 24px 32px; }
.lines { display: grid; gap: 12px; margin: 20px 0; padding: 0; list-style: none; }
.lines li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; }
.lines img { width: 52px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }
.lines small { display: block; color: var(--muted); }
.lines button { background: none; border: 0; color: var(--violet-soft); font-size: 14px; cursor: pointer; }
.total { display: flex; justify-content: space-between; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.note { color: var(--muted); font-size: 14px; }
#order-form { display: grid; gap: 12px; }
.pair { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.error { margin: 0; color: var(--red); }
.trap { position: absolute; left: -9999px; }

.legal { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 72px) clamp(16px, 5vw, 32px); }
.legal h1 { font-size: clamp(36px, 6vw, 52px); }
.legal h2 { margin: 36px 0 8px; font-size: 25px; }
.legal p, .legal li { color: #D5CDDA; }
.legal ul { display: grid; gap: 6px; padding-left: 20px; }
.legal a, .note a { color: var(--violet-soft); }
.updated { color: var(--muted) !important; }
.topbar .language:last-child { margin-left: auto; }

/* The menu takes its own row once it no longer fits beside the logo; on a phone it scrolls sideways. */
@media (max-width: 1180px) {
  .topbar { flex-wrap: wrap; row-gap: 8px; }
  /* Three buttons fit on a phone: no sideways scrolling, which would also cut off the small menus. */
  .topbar nav { order: 10; flex-basis: 100%; margin-left: 0; gap: 24px; padding: 2px 0 4px; position: relative; }
  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar .language { margin-left: auto; }
}

@media (max-width: 860px) {
  .topbar { gap: 8px 12px; }
  /* The small menu spans the width under the buttons, easy to tap with a thumb. */
  .menu-group { position: static; }
  .menu-panel { left: 0; right: 0; top: calc(100% + 2px); min-width: 0; }
  .topbar nav .menu-panel a { padding: 13px 12px; font-size: 16px; }
  .language { margin-left: auto; }
  .brand { width: auto; }
  .brand span { display: none; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .search { grid-column: 1 / -1; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .steps ol { grid-template-columns: 1fr; gap: 20px; }
  footer { flex-direction: column; }
  .detail { grid-template-columns: 1fr; }
  .detail-text { padding: 20px 24px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Kaart opzoeken */
.lookup .lead { margin: 16px 0 28px; }
.lookup h1 { font-size: clamp(36px, 5vw, 56px); }
.lookup-form { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(180px, 1.4fr) minmax(120px, .8fr); gap: 12px 16px; align-items: end; max-width: 980px; }
.lookup-form label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.lookup-form .choice { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 0; padding: 0; border: 0; color: var(--muted); font-size: 14px; }
.lookup-form .choice legend { float: left; margin-right: 8px; padding: 0; }
.lookup-form .choice label { display: inline-flex; gap: 6px; align-items: center; color: var(--text); font-size: 15px; }
.lookup-form .choice input { width: auto; min-height: 0; }
.lookup-form .note { grid-column: 1 / -1; min-height: 1.6em; margin: 0; color: var(--muted); font-size: 14px; }
.lookup #status { margin: 8px 0 0; }
.muted { color: var(--muted); }
.secondary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-weight: 600; text-decoration: none; cursor: pointer;
}
.secondary:hover:not(:disabled) { border-color: var(--violet-soft); }
.secondary:disabled { color: var(--muted); cursor: default; }
.candidate, .chosen { max-width: 980px; margin-top: 32px; padding: clamp(20px, 3vw, 32px); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.candidate h2 { font-size: clamp(24px, 3vw, 32px); }
.candidate-body { display: grid; grid-template-columns: minmax(160px, 240px) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); margin-top: 16px; }
.picture img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.others { max-width: 980px; margin-top: 24px; }
.others h3 { margin: 0 0 12px; font-size: 18px; }
.others-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.others-list .other { display: grid; gap: 8px; width: 100%; padding: 8px; color: var(--text); text-align: left; background: transparent; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.others-list .other:hover, .others-list .other:focus-visible { border-color: var(--violet-soft); }
.others-list .other.current { border-color: var(--violet-soft); background: var(--panel); }
.others-list img, .others-list .no-picture a { padding: 8px; color: var(--violet-soft); text-align: center; }
.no-picture { width: 100%; height: auto; border-radius: 6px; }
.other-text { display: grid; gap: 2px; font-size: 13px; color: var(--muted); }
.other-text strong { color: var(--text); font-size: 14px; }
.others-pager { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.no-picture { display: grid; place-items: center; aspect-ratio: 5 / 7; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; font-size: 14px; }
.facts h3, .chosen h2 { margin: 0 0 12px; font-family: var(--display); font-size: clamp(24px, 3vw, 32px); font-weight: 500; }
.facts h3 + dl, .chosen dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; margin: 0 0 20px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.chosen .facts h3 { margin-top: 20px; font-size: 20px; }
.actions, .links { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 16px; }
#in-shops a { color: var(--violet-soft); }
.lookup-link { display: inline-block; margin-left: 16px; color: var(--violet-soft); }

@media (max-width: 860px) {
  .lookup-form { grid-template-columns: 1fr 1fr; }
  .lookup-form .wide, .lookup-form .choice, .lookup-form .primary { grid-column: 1 / -1; }
  .candidate-body { grid-template-columns: 1fr; }
  .candidate-body .picture { max-width: 220px; }
}
.psa { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 4px; }
.psa input { flex: 1 1 280px; font-family: ui-monospace, Consolas, monospace; font-size: 15px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Lookup: a fetched price is confirmed on the button itself, and the value row lights up briefly. */
#current-price.done { color: var(--text); background: transparent; border: 1px solid var(--line); cursor: default; opacity: 1; }
#chosen-facts.fresh dd:last-of-type { animation: fresh 2.4s ease-out; border-radius: 4px; }
@keyframes fresh { from { background: rgba(140, 92, 230, .35); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { #chosen-facts.fresh dd:last-of-type { animation: none; } }

/* The sites in their own colours, so they are recognised at a glance (approximations of their brand colours). */
.links .brand { color: #fff; border-color: transparent; }
.links .brand-cardmarket { background: #012e57; }
.links .brand-tcgplayer { background: #1d4ed8; }
.links .brand-psa { background: #c8102e; }
.links .brand-ebayverkocht, .links .brand-ebaysold, .links .brand-ebay { background: #fff; color: #0654ba; }
.links .brand-pricecharting { background: #2e7d32; }
.links .brand:hover, .links .brand:focus-visible { filter: brightness(1.15); }

/* Lookup: hidden means hidden, also for elements that are flex or grid. */
[hidden] { display: none !important; }
.lookup-form select { width: 100%; min-height: 44px; }
.visitor { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.visitor a { color: var(--violet-soft); }
/* The other versions beside the card on a wide screen, under it on a small one. */
.lookup-results { display: grid; gap: 24px; align-items: start; }
.lookup-results .others { max-width: none; margin-top: 32px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
@media (min-width: 1200px) {
  .lookup-results { grid-template-columns: minmax(0, 980px) minmax(300px, 1fr); }
  .lookup-results .others-list { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
.others-list .other { padding: 6px; }
.others-list img, .others-list .no-picture { aspect-ratio: 5 / 7; object-fit: cover; }
.other-text strong { overflow-wrap: anywhere; }

.live-login { display: grid; gap: 6px; padding: 12px 14px; color: var(--muted); font-size: 14px; background: rgba(140, 92, 230, .08); border: 1px solid var(--line); border-radius: 8px; }
.live-login a { color: var(--violet-soft); font-weight: 600; }

/* A shared collection (/c/<token>). */
.collection h2 { margin: 40px 0 16px; font-family: var(--display); font-weight: 500; }
.set-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 20px; margin: 0; padding: 0; list-style: none; }
.collection .set-list { grid-template-columns: minmax(0, 1fr); }
.set-list li { display: grid; gap: 16px; }
.collection-tabs { display: flex; gap: 8px; margin: 28px 0 0; border-bottom: 1px solid var(--line); }
.collection-tabs button { padding: 10px 18px; font: inherit; font-weight: 600; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; }
.collection-tabs button.on { color: var(--text); border-bottom-color: var(--gold); }
.set-open { display: grid; gap: 14px; padding: 0 0 12px; }
.set-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.set-filter button { padding: 6px 12px; font: inherit; font-size: 14px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.set-filter button.on { color: var(--text); border-color: var(--gold); }
.print-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 12px; }
.print { display: grid; gap: 6px; align-content: start; }
.print small { color: var(--muted); font-size: 13px; }
.print.missing .tile-photo { opacity: .35; filter: grayscale(1); }
.print.wished .tile-photo { opacity: .8; filter: none; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.wish-tag, .sale-tag { justify-self: start; padding: 2px 8px; font-size: 12px; font-weight: 600; color: var(--bg); background: var(--gold); border-radius: 999px; }
.sale-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; font-size: 14px; }
.sale-links a { color: var(--gold); }
.tile.for-sale .tile-photo { border-color: var(--violet-soft); }
@media (max-width: 700px) { .print-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.set-list .set-row { display: grid; gap: 6px; width: 100%; padding: 14px; font: inherit; color: inherit; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.set-list .set-row:hover, .set-list .set-row.on { border-color: var(--gold); }
.collection .cards-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 20px; margin: 20px 0 8px; }
.collection .cards-head h2 { margin: 0; }
.collection .cards-head label { display: flex; align-items: center; gap: 8px; margin-left: auto; color: var(--muted); font-size: 15px; }
.collection .cards-head select { padding: 6px 10px; font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.collection h3.group { margin: 28px 0 12px; color: var(--muted); font-size: 16px; font-weight: 600; }
.collection .link-button { padding: 0; font: inherit; color: var(--gold); background: none; border: 0; cursor: pointer; }
.collection .link-button.more { margin-top: 16px; }
.tile.wished { opacity: .55; }
.set-list .set-name { font-weight: 600; }
.set-list progress { width: 100%; accent-color: var(--gold); }
.set-list small { color: var(--muted); }
.collection .no-photo { display: grid; place-items: center; height: 100%; color: var(--muted); }

/* Card and set pages for search engines (/kaart/…, /set/…, /kaarten). */
.card-page section { margin-top: 40px; }
.card-page section h2 { margin-bottom: 14px; font-size: clamp(22px, 3vw, 28px); }
.crumbs { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.crumbs a { color: var(--violet-soft); text-decoration: none; }
.card-head { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; align-items: start; }
.card-head h1 { font-size: clamp(30px, 5vw, 48px); }
.card-head .number { color: var(--muted); font-size: .6em; }
.card-photo { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.card-photo.empty { display: grid; place-items: center; aspect-ratio: 5 / 7; color: var(--muted); background: var(--panel); }
.card-page .facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 20px 0; }
.card-page .facts dt { color: var(--muted); }
.card-page .facts dd { margin: 0; }
.card-page .muted { color: var(--muted); font-size: 14px; }
.card-page code { padding: 2px 6px; background: var(--panel-2); border-radius: 4px; font-size: 14px; }
.card-page .links { display: flex; flex-wrap: wrap; gap: 10px; }
.card-page .primary { display: inline-block; text-decoration: none; }
.for-sale { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.for-sale a { color: var(--gold); font-weight: 600; }
.set-cards, .set-list-cards, .set-index { display: grid; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.set-cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.set-cards a, .set-index a { color: var(--text); text-decoration: none; }
.set-cards a:hover, .set-index a:hover, .set-list-cards a:hover { color: var(--gold); }
.set-cards small, .set-index small { margin-left: 6px; color: var(--muted); }
/* A set page: a grid of the cards, picture first, with name, number, rarity and price below. */
.set-list-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 16px; }
.set-list-cards a { display: grid; gap: 4px; align-content: start; color: var(--text); text-decoration: none; }
.set-list-cards img, .set-list-cards .no-thumb { display: grid; place-items: center; width: 100%; height: auto; aspect-ratio: 5 / 7; margin-bottom: 4px;
  border-radius: 8px; object-fit: cover; background: var(--panel-2); border: 1px solid var(--line); transition: transform .15s, border-color .15s;
  color: var(--muted); font-family: var(--display); font-size: 20px; font-style: normal; }
.set-list-cards a:hover img, .set-list-cards a:focus-visible img, .set-list-cards a:hover .no-thumb { transform: translateY(-2px); border-color: var(--gold); }
.set-list-cards strong { font-size: 14px; font-weight: 600; line-height: 1.3; }
.set-list-cards a:hover strong { color: var(--gold); }
.set-list-cards span { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.set-list-cards b { color: var(--gold); font-size: 14px; font-weight: 600; }
.price-note { margin: -12px 0 8px; color: var(--muted); font-size: 15px; }

/* All sets: one picture per set (its most valuable card), the name small below. */
.set-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 16px; margin: 0; padding: 0; list-style: none; }
.set-tiles a { display: grid; gap: 6px; align-content: start; color: var(--text); text-decoration: none; }
.set-tiles img, .set-tiles .set-code { width: 100%; height: auto; aspect-ratio: 5 / 7; border-radius: 8px; object-fit: cover; background: var(--panel-2);
  border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.set-tiles .set-code { display: grid; place-items: center; color: var(--muted); font-family: var(--display); font-size: 22px; letter-spacing: .06em; }
.set-tiles strong { font-size: 14px; font-weight: 600; line-height: 1.3; }
.set-tiles small { color: var(--muted); font-size: 12px; }
.set-tiles a:hover img, .set-tiles a:focus-visible img, .set-tiles a:hover .set-code { transform: translateY(-2px); border-color: var(--gold); }
.set-tiles a:hover strong { color: var(--gold); }

/* A card page: previous and next card of the set, with the arrow keys. */
.card-steps { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin: -8px 0 24px; padding: 10px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.card-steps a { color: var(--violet-soft); text-decoration: none; font-weight: 600; }
.card-steps a span { color: var(--muted); font-weight: 400; }
.card-steps a:hover span { color: var(--text); }
.card-steps .step-next { text-align: right; }
.card-steps[hidden] { display: none; }
.card-steps p { margin: 0; color: var(--muted); font-size: 14px; text-align: center; }
.sorting { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.sorting a { color: var(--violet-soft); }
.sorting a[aria-current] { color: var(--text); font-weight: 600; text-decoration: none; }
.set-index { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.set-index a { display: grid; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.set-index small { margin-left: 0; }
@media (max-width: 640px) {
  .card-head { grid-template-columns: minmax(0, 1fr); }
  .card-photo { max-width: 260px; }
  .set-list-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
  .set-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
  .card-steps { grid-template-columns: 1fr 1fr; }
  .card-steps p { grid-column: 1 / -1; grid-row: 1; }
  .card-steps a span, .card-steps .keys { display: none; }
}

/* Lookup on a name alone: every version as a picture with its 30-day price. */
.grid-results { display: grid; gap: 12px; margin-bottom: 24px; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.grid-card { display: grid; gap: 8px; width: 100%; padding: 8px; color: inherit; text-align: left; background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; cursor: pointer; }
.grid-card:hover, .grid-card:focus-visible { border-color: var(--gold); }
.grid-card img, .grid-card .no-picture { width: 100%; height: auto; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 6px; }
.grid-card .other-text { display: grid; gap: 2px; }
.grid-card .other-text span { color: var(--muted); font-size: 13px; }
.other-price { color: var(--gold); font-weight: 600; }
.grid-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; justify-content: space-between; }
.grid-head .muted { margin: 0; color: var(--muted); }
.grid-sort { display: grid; gap: 4px; color: var(--muted); font-size: 14px; }
.grid-sort select { min-height: 40px; padding: 0 10px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }

/* Stijgers en dalers: a grid of cards with their price move. */
.movers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 16px; margin: 16px 0 40px; padding: 0; list-style: none; }
.movers a { display: grid; gap: 4px; text-decoration: none; }
.movers img, .movers .no-photo { width: 100%; aspect-ratio: 245 / 342; height: auto; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); }
.movers b { font-size: 20px; font-family: var(--display); }
.movers b.up { color: var(--green); }
.movers b.down { color: var(--red); }
.movers small { color: var(--muted); font-size: 13px; }
.movers span { font-size: 15px; }
.movers a:hover img { border-color: var(--gold); }
.movers .sealed-tile { display: grid; gap: 4px; }
.movers.sealed img, .movers.sealed .no-photo { aspect-ratio: 1; object-fit: contain; }
.sorting.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.sorting.checks .check { display: inline-flex; gap: 6px; align-items: center; min-height: 40px; text-decoration: none; }
.sorting.checks .check span { font-size: 22px; line-height: 1; color: var(--gold); }
.sorting.checks .check[aria-checked="false"] { color: var(--muted); }
.sorting.checks .check[aria-checked="false"] span { color: var(--muted); }
.calls { margin: -18px 0 24px; max-width: 70ch; }
.calls .call { margin: 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 15px; }
.calls .call a { color: var(--gold); white-space: nowrap; }

/* The visitor's own wishlist (wish.js): only shown when signed in at the desk. */
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.wish-button.on { border-color: var(--gold); color: var(--gold); }
.wish-button:not(.secondary) {
  justify-self: start; align-self: flex-start; min-height: 32px; margin-top: 6px; padding: 0 10px; background: none;
  border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 13px; cursor: pointer;
}
.wish-button:not(.secondary):hover:not(:disabled) { border-color: var(--violet-soft); color: var(--text); }
.wish-button:not(.secondary).on { border-color: var(--gold); color: var(--gold); }

/* Verzamelingen: the public collections. */
.collections-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 24px; }
.collection-tile { display: grid; gap: 6px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; transition: border-color .15s; }
.collection-tile:hover { border-color: var(--gold); }
.collection-tile strong { font-family: var(--display); font-size: 22px; font-weight: 500; }
.collection-tile span { color: var(--muted); font-size: 15px; }
.collection-pictures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; min-height: 40px; margin-bottom: 6px; }
.collection-pictures img { width: 100%; height: auto; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 4px; }

/* Pokèguessr (/minigames/pokeguessr): the card on the left and the question on the right on a computer, stacked on a phone,
   the picture never taller than about half the screen so the four prices stay in view. */
.game h1 { font-size: clamp(40px, 6vw, 64px); }
.game .lead { margin: 16px 0 24px; }
.game .calls { max-width: 980px; margin-bottom: 32px; }
.game section { max-width: 980px; }
.game-start { display: grid; gap: 20px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.game-start fieldset { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 0; padding: 0; border: 0; }
.game-start legend { width: 100%; margin-bottom: 8px; color: var(--muted); font-size: 14px; }
.game-languages label { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.game-languages input { width: 20px; height: 20px; accent-color: var(--violet); }
.game-start .game-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.game-modes .mode { position: relative; display: block; cursor: pointer; }
.game-modes .mode input { position: absolute; opacity: 0; }
.game-modes .mode > span { display: grid; gap: 4px; height: 100%; padding: 16px 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s; }
.game-modes .mode strong { font-family: var(--display); font-size: 22px; font-weight: 500; }
.game-modes .mode small { color: var(--muted); font-size: 14px; line-height: 1.4; }
.game-modes .mode input:checked + span { border-color: var(--violet-soft); background: rgba(123, 63, 196, .14); }
.game-modes .mode input:focus-visible + span { outline: 2px solid var(--violet-soft); outline-offset: 2px; }
.game-start .primary { justify-self: start; min-width: 14rem; }
.game-start p { margin: 0; }
.game-start p:empty { display: none; }
/* The page already keeps 88 px for the sticky menu (scroll-padding-top); a little more, not on top of that again. */
.game section { scroll-margin-top: 8px; }

.game-play { display: grid; gap: 12px; }
.game-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.game-head h2 { font-size: clamp(24px, 3vw, 30px); }
.game-score { margin: 0; color: var(--muted); }
.game-score strong { color: var(--gold); font-size: 22px; font-variant-numeric: tabular-nums; }
.game progress { width: 100%; height: 6px; appearance: none; border: 0; border-radius: 3px; background: var(--panel-2); overflow: hidden; }
.game progress::-webkit-progress-bar { background: var(--panel-2); }
.game progress::-webkit-progress-value { background: var(--violet); }
.game progress::-moz-progress-bar { background: var(--violet); }
.game-card { display: grid; grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 12px; }
.game-picture img { width: 100%; height: auto; aspect-ratio: 367 / 512; object-fit: contain; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.game-side { display: grid; gap: 12px; align-content: start; }
.game-side h3 { margin: 0; font-family: var(--display); font-size: clamp(26px, 3vw, 34px); font-weight: 500; line-height: 1.15; }
.game-side > p { margin: 0; }
.game-question { color: #D5CDDA; }
.game-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.game-options[hidden], .game-guess[hidden], .game-reveal[hidden] { display: none; }
.option { display: flex; gap: 12px; align-items: center; justify-content: center; min-height: 64px; padding: 0 16px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .15s, background .15s; }
.option:hover:not(:disabled) { border-color: var(--violet-soft); }
.option kbd { color: var(--muted); font: 13px var(--body); }
.option:disabled { cursor: default; opacity: .55; }
.option.right { opacity: 1; border-color: var(--green); background: rgba(127, 214, 154, .14); }
.option.wrong { opacity: 1; border-color: var(--red); background: rgba(239, 123, 121, .12); }
.game-guess { display: flex; gap: 10px; align-items: center; }
.game-guess .euro { color: var(--muted); font-size: 24px; }
.game-guess input { flex: 1 1 auto; min-width: 0; min-height: 56px; padding: 0 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  font-size: 24px; font-variant-numeric: tabular-nums; }
.game-guess .primary { min-height: 56px; }
.game-reveal { display: grid; gap: 8px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.game-reveal p { margin: 0; }
.game-reveal .primary { justify-self: start; margin-top: 4px; }
.game-points { font-family: var(--display); font-size: 28px; }
.game-points.points-good { color: var(--green); }
.game-points.points-close { color: var(--gold); }
.game-points.points-off { color: var(--red); }
.game-keys { font-size: 13px; }

.game-end { display: grid; gap: 12px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.game-end[hidden], .game-play[hidden], .game-start[hidden] { display: none; }
.game-end .eyebrow { margin: 0; }
.game-end h2 { font-size: clamp(36px, 5vw, 52px); color: var(--gold); }
.game-end .lead { margin: 0; }
.game-name { display: grid; gap: 8px; max-width: 520px; color: var(--muted); font-size: 14px; }
.game-name[hidden] { display: none; }
.game-name div { display: flex; gap: 10px; }
.game-name input { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: 16px; }
.game-name p { margin: 0; }
.game-daily { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: center; padding: 18px 20px;
  border: 1px solid var(--gold); border-radius: 12px; background: var(--panel); }
.game-daily h3 { margin: 0 0 4px; font-family: var(--display); font-size: 24px; font-weight: 500; color: var(--gold); }
.game-daily p { margin: 0; }
.game-daily-done { margin-top: 6px !important; font-size: 16px; }
.game-daily [hidden], .game-share [hidden] { display: none; }
.game-free { margin: 8px 0 0; font-size: 18px; color: var(--muted); font-weight: 500; }
.game-blocks { margin: 0; font-size: clamp(18px, 5.2vw, 24px); letter-spacing: 1px; white-space: nowrap; }
.game-share { display: grid; gap: 6px; justify-items: start; }
.game-share p { margin: 0; }
.game-card-link { color: var(--text); font-weight: 600; text-decoration: none; }
.game-card-link:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.game-summary .wish-button { margin-left: auto; }
@media (max-width: 600px) { .game-daily { grid-template-columns: 1fr; } }
/* Hoger of lager: two cards side by side, also on a phone; the whole card is the button. */
.hl-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: center; max-width: 640px; }
.hl-card { display: grid; gap: 8px; justify-items: center; padding: 12px; background: var(--panel); border: 2px solid var(--line); border-radius: 14px;
  color: var(--text); cursor: pointer; text-align: center; -webkit-touch-callout: none; user-select: none; }
.hl-card:hover:not(:disabled) { border-color: var(--violet-soft); }
.hl-card:disabled { cursor: default; }
.hl-card img { width: 100%; height: auto; aspect-ratio: 367 / 512; object-fit: contain; border-radius: 8px; pointer-events: none; }
.hl-card strong { font-size: 16px; line-height: 1.25; }
.hl-price { color: var(--gold); font-family: var(--display); font-size: 26px; font-variant-numeric: tabular-nums; }
.hl-card.right { border-color: var(--green); background: rgba(127, 214, 154, .12); }
.hl-card.wrong { border-color: var(--red); background: rgba(239, 123, 121, .1); }
.hl-or { color: var(--muted); font-family: var(--display); font-size: 22px; }
.game-play.loading .hl-pair { opacity: .35; }
@media (max-width: 600px) {
  .hl-pair { gap: 8px; }
  .hl-card { padding: 8px; }
  .hl-card strong { font-size: 14px; }
  .hl-price { font-size: 21px; }
  .hl-or { font-size: 16px; }
}
/* Welke set?: four set names, one under the other on a phone (long names). */
.set-options .option { justify-content: space-between; text-align: left; }
@media (max-width: 600px) { .set-options { grid-template-columns: 1fr; } .set-options .option { min-height: 52px; } }
.games-list { margin: 24px 0; }
.game-account { margin: 0; padding: 14px 18px; border: 1px solid var(--gold); border-radius: 12px; font-size: 17px; max-width: 520px; }
.game-account a { display: inline-block; margin-left: 4px; color: var(--gold); font-weight: 600; }
.game-end .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.game-summary { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.game-summary li { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; }
.game-summary img { width: 46px; height: auto; border-radius: 4px; }
.game-summary strong { display: block; font-weight: 600; }
.game-summary small { display: block; color: var(--muted); }
.game-summary b { min-width: 4.5ch; color: var(--gold); text-align: right; font-variant-numeric: tabular-nums; }

.game-top { display: grid; gap: 12px; margin-top: 48px; }
.game-tabs { display: flex; gap: 8px; }
.game-tabs [aria-pressed="true"] { border-color: var(--violet-soft); color: var(--text); background: rgba(123, 63, 196, .14); }
.game-board { display: grid; gap: 6px; max-width: 560px; margin: 0; padding: 0; list-style: none; }
.game-board li { display: grid; grid-template-columns: 2.2ch minmax(0, 1fr) auto auto; gap: 12px; align-items: baseline; padding: 10px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.game-board li:first-child { border-color: var(--gold); }
.game-board .place { color: var(--muted); font-variant-numeric: tabular-nums; }
.game-board .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-board small { color: var(--muted); font-size: 12px; }
.game-board b { color: var(--gold); font-variant-numeric: tabular-nums; }
#board-note { margin: 0; }

.game-calls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 980px; margin-top: 48px; }
.call-card { display: grid; gap: 6px; align-content: start; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; transition: border-color .15s; }
.call-card:hover { border-color: var(--gold); }
.call-card strong { font-family: var(--display); font-size: 21px; font-weight: 500; }
.call-card span { color: var(--muted); font-size: 15px; }
.call-card em { color: var(--gold); font-style: normal; }

@media (max-width: 760px) {
  .game-start .game-modes { grid-template-columns: 1fr; }
  .game-start .primary { justify-self: stretch; }
  .game-card { grid-template-columns: 1fr; gap: 16px; }
  .game-picture { display: flex; justify-content: center; }
  .game section { scroll-margin-top: 24px; } /* The menu is two rows on a phone: 88 + 24 px. */
  /* Small enough that the four prices and, after an answer, the points stay in view. */
  .game-picture img { width: auto; max-width: 100%; height: min(30svh, 300px); } /* svh: dvh changes while Safari folds its bar on scrolling, and the page jumped. */
  .game-side { gap: 10px; }
  .game-side h3 { font-size: 24px; }
  .option { min-height: 56px; font-size: 20px; }
  .game-keys { display: none; }
  .game-reveal .primary, .game-end .actions .primary { justify-self: stretch; width: 100%; }
  .game-calls { grid-template-columns: 1fr; }
  .game-summary li { grid-template-columns: 40px minmax(0, 1fr) auto auto; }
}

/* Pokèguessr's clock: the bar empties as the points for time run out; gold while full, then orange, then red. */
.game-timer { position: relative; display: grid; gap: 4px; }
.game-timer > span { display: block; width: 100%; height: 8px; border-radius: 4px; background: var(--gold); transition: background .3s; }
.game-timer[data-state="dropping"] > span { background: #EE9A4D; }
.game-timer[data-state="gone"] > span { background: var(--red); }
.game-timer small { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.game-rule { margin: 0; font-size: 14px; }
.game-reveal small { font-size: 14px; }

/* Pokèguessr's language bonus: under the languages, and as a small tag beside the score during a round. */
.game-start .game-bonus { width: 100%; margin: 0; color: var(--muted); font-size: 14px; }
.game-bonus strong { color: var(--gold); font-weight: 600; }
.game-bonus-tag { margin-right: 10px; padding: 2px 10px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); font-size: 13px; }
.game-bonus-tag[hidden] { display: none; }

/* Pokèguessr without jumps: the result keeps its room before the answer, and while the next card loads the last one turns
   invisible instead of empty, so the page never shrinks and grows again (it jumped with every card on an iPhone). */
.game-reveal:not(.shown) { visibility: hidden; }
.game-play.loading .game-picture, .game-play.loading .game-side > :not(#play-status) { visibility: hidden; }
.game-play.loading #play-status { position: absolute; }
.game-side { position: relative; }

/* Pokèguessr's keypad on a touch screen: a calculator of its own under the price, so the phone's keyboard never opens. */
.game-guess { flex-wrap: wrap; }
.keypad { display: grid; flex: 1 1 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.keypad[hidden] { display: none; }
.keypad button { min-height: 52px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; font-size: 24px; font-weight: 600;
  cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.keypad button:active { background: var(--panel-2); border-color: var(--violet-soft); }
.game-guess input[readonly] { caret-color: transparent; }
@media (max-width: 760px) {
  /* Hard mode on a phone: a smaller picture, so the price, the keypad and Raad fit on the screen. */
  .game-play.hard .game-picture img { height: min(22svh, 220px); }
}
.game-guess input { flex: 1 1 0; }
.game-guess .primary { flex: none; }
@media (max-width: 760px) {
  .game-play.hard .game-question { font-size: 15px; }
  .game-play.hard .game-side { gap: 8px; }
  .game-guess input, .game-guess .primary { min-height: 50px; }
  .keypad { gap: 6px; }
  .keypad button { min-height: 46px; font-size: 22px; }
}
@media (max-width: 760px) {
  /* The head on one row (Kaart 1 van 10, the bonus and the score), so the price and the whole keypad fit under the picture. */
  .game-head { gap: 8px; }
  .game-head h2 { font-size: 22px; white-space: nowrap; }
  .game-score { white-space: nowrap; font-size: 14px; }
  .game-score strong { font-size: 19px; }
  .game-bonus-tag { margin-right: 4px; padding: 1px 7px; font-size: 12px; }
  .game-play { gap: 8px; }
  .game-card { margin-top: 4px; gap: 10px; }
}

/* During a round the name cannot be selected or copied, and a long press on the picture opens no Look Up or image search
   (both made looking the price up quick). */
.game-play #card-name, .game-play .game-picture { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.game-play .game-picture img { pointer-events: none; }

/* The home page: my cards and the desk, with screenshots and real photos from my shop. */
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.home-actions .secondary { min-height: 48px; padding: 0 24px; }
.home-small { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.home-hero h1 { max-width: 16ch; font-size: clamp(38px, 5.2vw, 62px); }
.home-hero .screen { max-height: 560px; object-fit: cover; object-position: top; }
/* What we show of your photos: said plainly, beside the binder screenshot. */
.home-note { margin-top: 20px; padding: 16px 18px; border: 1px solid var(--gold); border-radius: 10px; background: rgba(217, 184, 102, .06); }
.home-note strong { display: block; margin-bottom: 4px; color: var(--gold); }
.home-text .home-note p { margin: 0; font-size: 16px; }
/* A screenshot beside a short story; every other row the other way round. */
.home-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center;
  padding: clamp(48px, 8vw, 96px) clamp(16px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.home-row.flip { background: var(--panel); }
.home-row.flip .home-shots { order: 2; }
.home-text { max-width: 34rem; }
.home-text h2 { margin-bottom: 16px; }
.home-text p:not(.eyebrow) { color: #D5CDDA; font-size: 17px; }
.home-shots { position: relative; display: flex; justify-content: center; gap: 20px; }
.phone { width: min(270px, 70vw); height: auto; border: 6px solid #2A2230; border-radius: 28px; background: var(--panel); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.home-shots.two .phone { width: min(240px, 42vw); }
.home-shots.two .phone:last-child { margin-top: 48px; }
.screen { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.desk-shot { display: block; padding-bottom: 40px; }
.desk-shot .phone.small { position: absolute; right: -8px; bottom: 0; width: 34%; border-width: 4px; border-radius: 20px; }
.home-more { margin-top: 24px; color: var(--muted); }
.home-more a, .home-link, .home-links a { color: var(--gold); font-weight: 600; text-decoration: none; }
.home-more a:hover, .home-link:hover, .home-links a:hover { text-decoration: underline; }
.home-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; }
.home-links a:not(:first-child) { color: var(--violet-soft); font-weight: 400; }
.home-band { padding: clamp(48px, 7vw, 80px) clamp(16px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.home-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 20px; margin-top: 28px; }
.home-card { display: grid; gap: 2px; text-decoration: none; }
.home-card .tile-photo { display: block; margin-bottom: 8px; }
.home-card:hover .tile-photo { border-color: var(--violet-soft); transform: translateY(-2px); }
.home-card small { color: var(--muted); font-size: 14px; }
.home-card b { font-weight: 600; }
.home-end { text-align: center; border-bottom: 0; }
.home-end .lead { margin: 16px auto 28px; }
.home-end .home-actions { justify-content: center; }
@media (max-width: 860px) {
  .home-hero, .home-row { grid-template-columns: 1fr; }
  .home-row.flip .home-shots { order: 0; }
  .home-hero .screen { max-height: 420px; }
}
@media (max-width: 560px) { .home-actions > a { flex: 1 1 100%; } .home-shop { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .home-card .tile-photo { transition: none; } }
