@font-face { font-family: "Familjen Grotesk"; src: url("fonts/familjen-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Familjen Grotesk"; src: url("fonts/familjen-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Familjen Grotesk"; src: url("fonts/familjen-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Familjen Grotesk"; src: url("fonts/familjen-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-latin-wght-italic.woff2") format("woff2-variations"); font-weight: 100 900; font-style: italic; font-display: swap; }

/* Same metrics as the web fonts, so text does not reflow when they arrive (layout shift). */
@font-face { font-family: "Familjen Fallback"; src: local("Arial"), local("Liberation Sans"), local("Helvetica"); size-adjust: 96%; ascent-override: 107%; descent-override: 23.5%; line-gap-override: 0%; }
@font-face { font-family: "Montserrat Fallback"; src: local("Arial"), local("Liberation Sans"), local("Helvetica"); size-adjust: 109%; ascent-override: 89%; descent-override: 23%; line-gap-override: 0%; }

/* Svapoo: navy night, crown gold, violet and cyan neon. Same values as android/.../ui/theme/Theme.kt */
:root {
  --mat: #121726;
  --mat-deep: #0C101B;
  --paper: #F4F5FA;
  --sleeve: #FFFFFF;
  --ink: #161A2E;
  --muted: #5B6080;
  --hair: #E3E5EF;
  --line: #D3D6E4;
  --line-strong: #9EA3BF;
  --gold: #F2B32A;
  --gold-foil: linear-gradient(180deg, #FFE68A 0%, #F7BC2E 55%, #E39A14 100%);
  --gold-ink: #2A1B00;
  --violet: #7C4DFF;
  --cyan: #3FD4FF;
  --action: #F2B32A;
  --action-press: #E39A14;
  --danger: #A3241C;
  --ok: #17694A;
  --on-mat: #F2F1FF;
  --on-mat-muted: #A9AECB;
  --tile-bg: #ECEEF5;
  --holo: conic-gradient(from 210deg at 50% 50%, #B8F2E2, #C9D5FF, #F8CCEF, #FFE9A8, #B8F2E2);
  --display: "Montserrat", "Montserrat Fallback", system-ui, sans-serif;
  --slab-radius: 18px;
  --tile-radius: 14px;
  --control-radius: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0B0F19;
    --sleeve: #151B2B;
    --ink: #EDEEFF;
    --muted: #A3A8C6;
    --hair: #232A3F;
    --line: #313953;
    --line-strong: #4D567A;
    --tile-bg: #1C2336;
    --danger: #FF9CA8;
    --ok: #6FD9AE;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.5 "Familjen Grotesk", "Familjen Fallback", system-ui, sans-serif;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 3.8vw, 2.6rem); line-height: 1.08; }
h2 { font-size: 1.45rem; line-height: 1.2; }
:focus-visible { outline: 2.5px solid var(--violet); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 30; background: var(--sleeve); padding: .5rem .75rem; }
.wrap { width: min(1240px, 100%); margin: 0 auto; padding: 1.75rem 16px 2.75rem; }
.narrow { width: min(680px, 100%); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.1rem; }
.section-head > a { font-weight: 600; }

/* Header */
.top { background: var(--mat); color: var(--on-mat); border-bottom: 1px solid rgb(124 77 255 / .5); box-shadow: 0 1px 18px rgb(124 77 255 / .18); }
.top-in { width: min(1240px, 100%); margin: 0 auto; padding: .65rem 16px; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; text-decoration: none; line-height: 1; margin: -4px 0; }
.logo img { height: 28px; width: auto; }
@media (max-width: 379px) { .logo img { height: 24px; } .top-nav .btn { font-size: .85rem; padding-inline: .55rem; } }
@media (min-width: 480px) { .logo img { height: 38px; } }
@media (min-width: 860px) { .logo img { height: 48px; } }
.top-search { flex: 1 1 140px; display: flex; min-width: 0; }
.top-search input[type=search] { flex: 1; min-width: 0; border: 0; border-radius: 999px 0 0 999px; padding: .5rem 1rem; font: inherit; background: var(--on-mat); color: #1C1633; }
.top-search input::placeholder { color: #625B7A; }
.top-search button { border: 0; border-radius: 0 999px 999px 0; background: var(--violet); color: #fff; padding: 0 1.1rem 0 .9rem; font: inherit; font-weight: 700; cursor: pointer; }
.top-search button:hover { background: #6A3BEE; }
.top-nav { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; justify-content: space-between; flex-basis: 100%; min-width: 0; font-weight: 500; font-size: .95rem; }
.top-in:not(:has(.top-search)) .top-nav { flex: 1; flex-basis: auto; justify-content: flex-end; }
.top-nav .btn { min-height: 2.2rem; padding: .2rem .65rem; white-space: nowrap; font-size: .9rem; }
.top-in:not(:has(.top-search)) { gap: .75rem; }
.top-in:not(:has(.top-search)) .top-nav { gap: .4rem .7rem; }
.menu summary { max-width: 5.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-wide { display: none; }
.top-nav > a:not(.btn) { text-decoration: none; }
.top-nav > a:not(.btn):hover, .menu summary:hover { text-decoration: underline; }
@media (min-width: 860px) {
  .top-in { flex-wrap: nowrap; }
  .top-search { max-width: 460px; }
  .top-nav { flex-basis: auto; flex-wrap: nowrap; margin-left: auto; gap: 1.1rem; font-size: 1rem; }
  .top-nav > .nav-wide { display: inline; }
  .menu-list .nav-narrow { display: none; }
  .top-nav .btn { min-height: 2.6rem; padding: .45rem 1.2rem; font-size: 1rem; }
  .menu summary { max-width: 12rem; }
}
.count { display: inline-block; min-width: 1.3em; margin-left: .3em; padding: 0 .35em; border-radius: 1em; background: var(--violet); color: #fff; text-align: center; font-size: .78rem; font-weight: 700; line-height: 1.5; }
.menu { position: relative; }
.menu summary { cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; z-index: 20; min-width: 13rem; margin-top: .6rem; background: var(--sleeve); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: .4rem; display: grid; box-shadow: 0 18px 40px rgb(20 10 45 / .18); }
.menu-list a, .menu-list button { display: block; padding: .5rem .7rem; text-decoration: none; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 8px; }
.menu-list a:hover, .menu-list button:hover { background: var(--paper); }
.notice-bar { background: var(--gold-foil); color: var(--gold-ink); padding: .5rem 16px; display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* Buttons: pills. Gold foil for the main action, midnight for the second. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.6rem; padding: .45rem 1.15rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--sleeve); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { border-color: var(--ink); }
.btn-action { background: var(--gold-foil); color: var(--gold-ink); border-color: #C27F0C; font-weight: 700; }
.btn-action:hover { background: var(--gold-foil); border-color: var(--gold-ink); filter: saturate(1.15) brightness(1.03); }
.btn-dark { background: var(--mat); color: var(--on-mat); border-color: var(--mat); }
.btn-dark:hover { background: #222A45; border-color: #222A45; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); filter: brightness(.9); }
.btn-quiet { border-color: var(--line); font-weight: 500; }
.btn-wide { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.btn[disabled] { opacity: .55; cursor: progress; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-danger { color: #2A0806; }
  :root:not([data-theme="light"]) .btn-dark { background: var(--violet); border-color: var(--violet); }
}

/* Hero: a royal stage. Deep violet with a lavender haze, a faint crown lattice, gold and violet light shards in the corners,
   card backs floating at the edges and a little gold dust. The layers drift with the pointer (--mx, --my set by app.js). */
.hero { --mx: 0; --my: 0; position: relative; isolation: isolate; overflow: hidden; color: var(--on-mat);
  background:
    radial-gradient(48% 62% at 58% 46%, rgb(160 132 240 / .34), transparent 72%),
    radial-gradient(30% 40% at 74% 58%, rgb(124 77 255 / .42), transparent 70%),
    linear-gradient(180deg, #1B1240 0%, #150D33 55%, #0F0926 100%); }
.stage { position: absolute; inset: 0; z-index: -1; pointer-events: none; box-shadow: inset 0 0 140px 30px rgb(6 2 20 / .75); }
.stage-layer { position: absolute; inset: -24px; --d: 10;
  transform: translate3d(calc(var(--mx) * var(--d) * 1px), calc(var(--my) * var(--d) * 1px), 0); transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.stage-crowns { --d: 6; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cpath d='M0 0L96 96M96 0L0 96' stroke='%23C9B8FF' stroke-opacity='.05'/%3E%3Cg fill='%23C9B8FF' fill-opacity='.08'%3E%3Cpath d='M38 58l-3-16 8 6 5-10 5 10 8-6-3 16Z'/%3E%3Cpath d='M-10 10l-3-16 8 6 5-10 5 10 8-6-3 16ZM86 10l-3-16 8 6 5-10 5 10 8-6-3 16ZM-10 106l-3-16 8 6 5-10 5 10 8-6-3 16ZM86 106l-3-16 8 6 5-10 5 10 8-6-3 16Z'/%3E%3C/g%3E%3C/svg%3E") center / 96px 96px;
  -webkit-mask-image: radial-gradient(70% 80% at 55% 45%, #000 30%, transparent 85%); mask-image: radial-gradient(70% 80% at 55% 45%, #000 30%, transparent 85%); }

/* Light shards: bands that cut the corners, each with a slow glint running along it */
.stage-shards { --d: 12; }
.shard { position: absolute; width: min(48vw, 640px); height: 96px; overflow: hidden;
  background: linear-gradient(180deg, transparent 0 30%, #F2B32A 30% 33%, transparent 33% 46%, rgb(124 77 255 / .85) 46% 74%, rgb(84 46 196 / .55) 74% 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%, #000 65%, transparent); mask-image: linear-gradient(90deg, transparent, #000 35%, #000 65%, transparent); }
.shard::after { content: ""; position: absolute; inset: 0; width: 22%;
  background: linear-gradient(90deg, transparent, rgb(255 236 170 / .85), transparent); transform: translateX(-120%); animation: glint 9s ease-in-out infinite; }
.shard-tl { top: -10px; left: -14%; rotate: -33deg; }
.shard-tr { top: -24px; right: -18%; rotate: 33deg; height: 64px; }
.shard-bl { bottom: 0; left: -16%; rotate: 31deg; height: 120px; }
.shard-br { bottom: 18px; right: -20%; rotate: -31deg; height: 54px; }
.shard-tr::after { animation-delay: 2.2s; } .shard-bl::after { animation-delay: 4.5s; } .shard-br::after { animation-delay: 6.7s; }
@keyframes glint { 0% { transform: translateX(-120%); } 22%, 100% { transform: translateX(560%); } }

/* Card backs: never real cards, so no brand art. A gold frame and a simple emblem. */
.stage-cards { --d: 28; }
.stage-left, .stage-right { display: none; }
.cardback { --ry: 0deg; --rz: 0deg; position: absolute; width: 124px; aspect-ratio: 5 / 7; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(155deg, #43298F 0%, #26165E 55%, #170D3C 100%);
  box-shadow: 0 0 0 1.5px rgb(242 179 42 / .6), 0 22px 44px rgb(6 2 20 / .6), 0 0 44px rgb(124 77 255 / .45);
  transform: perspective(800px) rotateY(calc(var(--ry) + var(--mx) * 12deg)) rotateX(calc(var(--my) * -10deg)) rotate(var(--rz));
  transition: transform .9s cubic-bezier(.2,.8,.2,1); animation: drift 7s ease-in-out infinite alternate; }
.cardback::before { content: ""; position: absolute; inset: 8px; border: 1.5px solid rgb(242 179 42 / .5); border-radius: 7px; }
.cardback svg { width: 52%; fill: #E8B947; filter: drop-shadow(0 0 10px rgb(242 179 42 / .5)); }
.cardback-2 { background: linear-gradient(155deg, #F6D77A 0%, #D9A43A 50%, #A8741A 100%); box-shadow: 0 0 0 1.5px #FFE9A6, 0 22px 44px rgb(6 2 20 / .6), 0 0 40px rgb(242 179 42 / .35); }
.cardback-2::before { border-color: rgb(42 22 96 / .45); }
.cardback-2 svg { fill: #3A2380; filter: none; }
.cardback-1 { --ry: 28deg; --rz: -16deg; left: -74px; top: 0; }
.cardback-2 { --ry: 18deg; --rz: 7deg; left: -16px; top: 96px; width: 104px; animation-delay: -2.5s; }
.cardback-3 { --ry: -26deg; --rz: 10deg; right: 34px; top: 40px; width: 104px; animation-delay: -1s; }
.cardback-4 { --ry: -30deg; --rz: -8deg; right: -52px; top: 0; animation-delay: -4s; }
@keyframes drift { from { translate: 0 -6px; } to { translate: 0 8px; } }

/* Gold dust */
.stage-dust { --d: 18; }
.stage-dust i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #FFE6A0; box-shadow: 0 0 8px 1px rgb(255 211 90 / .8);
  opacity: 0; animation: twinkle 5s ease-in-out infinite; }
.stage-dust i:nth-child(1) { left: 12%; top: 18%; } .stage-dust i:nth-child(2) { left: 27%; top: 64%; animation-delay: -1.2s; }
.stage-dust i:nth-child(3) { left: 41%; top: 12%; animation-delay: -3.1s; } .stage-dust i:nth-child(4) { left: 48%; top: 78%; animation-delay: -.6s; }
.stage-dust i:nth-child(5) { left: 63%; top: 9%; animation-delay: -2.4s; } .stage-dust i:nth-child(6) { left: 71%; top: 70%; animation-delay: -4.2s; }
.stage-dust i:nth-child(7) { left: 84%; top: 24%; animation-delay: -1.8s; } .stage-dust i:nth-child(8) { left: 92%; top: 56%; animation-delay: -3.7s; }
.stage-dust i:nth-child(9) { left: 6%; top: 46%; animation-delay: -2.9s; } .stage-dust i:nth-child(10) { left: 35%; top: 40%; animation-delay: -.3s; width: 2px; height: 2px; }
.stage-dust i:nth-child(11) { left: 56%; top: 34%; animation-delay: -4.6s; width: 2px; height: 2px; } .stage-dust i:nth-child(12) { left: 78%; top: 44%; animation-delay: -1.5s; width: 2px; height: 2px; }
.stage-dust i:nth-child(13) { left: 20%; top: 88%; animation-delay: -3.4s; } .stage-dust i:nth-child(14) { left: 88%; top: 86%; animation-delay: -.9s; }
@keyframes twinkle { 0%, 100% { opacity: 0; scale: .6; } 45% { opacity: .95; scale: 1.15; } }
.hero.is-away .shard::after, .hero.is-away .cardback, .hero.is-away .stage-dust i { animation-play-state: paused; }

/* The crown over the stage, with gold and violet rules running out from it */
.crest { display: none; }

/* The coin: the badge on the front, black with "Market" on the back, a gold milled edge between. */
.coin { --t: 7px; position: absolute; left: 10px; bottom: 26px; z-index: 7; width: 92px; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%;
  background: none; cursor: pointer; perspective: 760px; rotate: -10deg; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.coin:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
.coin-lift, .coin-body { position: absolute; inset: 0; transform-style: preserve-3d; }
.coin-body { --angle: 0deg; --tilt-x: 0deg; --tilt-y: 0deg;
  transform: rotateX(var(--tilt-x)) rotateY(calc(var(--angle) + var(--tilt-y))); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
@media (hover: hover) { .coin:hover .coin-body { --tilt-x: 10deg; --tilt-y: -18deg; } }
.coin-face { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.coin-front { transform: translateZ(calc(var(--t) / 2)); }
.coin-front img { display: block; width: 100%; height: 100%; }
.coin-back { inset: 2.6%; transform: rotateY(180deg) translateZ(calc(var(--t) / 2)); display: grid; place-items: center; background: #000; }
.coin-back span { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 19px; letter-spacing: -.02em; color: #FFFFFF; }
.coin-rim { position: absolute; inset: 0; border-radius: 50%; background: #B8892C; }
.coin-rim:nth-child(odd) { background: #8E6418; }
.coin-rim-1 { transform: translateZ(calc(var(--t) * .4)); } .coin-rim-2 { transform: translateZ(calc(var(--t) * .3)); }
.coin-rim-3 { transform: translateZ(calc(var(--t) * .2)); } .coin-rim-4 { transform: translateZ(calc(var(--t) * .1)); }
.coin-rim-6 { transform: translateZ(calc(var(--t) * -.1)); } .coin-rim-7 { transform: translateZ(calc(var(--t) * -.2)); }
.coin-rim-8 { transform: translateZ(calc(var(--t) * -.3)); } .coin-rim-9 { transform: translateZ(calc(var(--t) * -.4)); }
.coin-shadow { position: absolute; left: 8%; right: 8%; bottom: -12%; height: 18%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgb(4 1 14 / .6), transparent); }
/* 404: a big coin to toss, it takes you home */
.notfound { text-align: center; padding: 48px 0 72px; }
.notfound-code { margin: 0; font-family: var(--display); font-weight: 800; font-style: italic; font-size: clamp(72px, 22vw, 140px); line-height: 1; letter-spacing: -.04em; color: var(--gold); }
.notfound h1 { margin: 8px 0; }
.coin.coin-big { position: relative; left: auto; bottom: auto; display: block; width: 180px; margin: 40px auto 28px; --t: 12px; animation: coin-float 3.2s ease-in-out infinite; }
.coin.coin-big:disabled { cursor: default; animation: none; }
.coin-big .coin-back span { font-size: 34px; }
.notfound-say { margin: 0; min-height: 1.6em; font-family: var(--display); font-weight: 800; font-size: 20px; }
.notfound-skip { display: inline-block; margin-top: 18px; font-size: 14px; color: var(--muted, inherit); }
@keyframes coin-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .coin.coin-big { animation: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (min-width: 600px) {
  .stage-right { display: block; inset: 0 0 auto auto; width: 300px; height: 300px; }
  .cardback-3 { display: none; }
}
@media (min-width: 1100px) {
  .stage-right { top: 24px; }
  .cardback-3 { display: grid; }
  .crest { display: block; position: absolute; left: 50%; top: 14px; width: 84px; translate: -50% 0; }
  .crest svg { display: block; width: 100%; filter: drop-shadow(0 0 18px rgb(242 179 42 / .45)); }
  .crest::before, .crest::after { content: ""; position: absolute; top: 58%; width: min(30vw, 360px); height: 9px;
    background: linear-gradient(90deg, transparent, #F2B32A) 0 0 / 100% 2px no-repeat, linear-gradient(90deg, transparent, rgb(124 77 255 / .9)) 0 7px / 100% 2px no-repeat; }
  .crest::before { right: calc(100% + 6px); }
  .crest::after { left: calc(100% + 6px); scale: -1 1; }
}
@media (prefers-reduced-motion: reduce) {
  .shard::after, .cardback, .stage-dust i { animation: none; }
  .stage-dust i { opacity: .6; }
  .stage-layer, .cardback, .coin-body { transition: none; }
}

.hero-in { position: relative; width: min(1240px, 100%); margin: 0 auto; padding: 1.75rem 16px 0; display: grid; gap: 1.25rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 4.3rem); line-height: 1.04; letter-spacing: -.025em; max-width: 14ch; text-wrap: balance; font-weight: 900; font-style: italic;
  text-shadow: 0 0 28px rgb(124 77 255 / .55); }
.hero-copy { padding-bottom: .25rem; max-width: 36rem; }
.hero-search { display: flex; gap: .5rem; margin-top: 1.5rem; max-width: 34rem; padding: .3rem; border-radius: 999px; background: var(--on-mat); box-shadow: 0 10px 30px rgb(5 2 20 / .35); }
.hero-search input[type=search] { flex: 1; min-width: 0; min-height: 2.9rem; border: 0; border-radius: 999px; padding: 0 1rem; font: inherit; font-size: 1.08rem; background: transparent; color: #1C1633; }
.hero-search input::placeholder { color: #625B7A; }
.hero-search input[type=search]:focus-visible { outline-offset: -2px; }
.hero-search .btn { min-height: 2.9rem; padding-inline: 1.4rem; }
.hero-link { display: inline-block; margin-top: 1rem; color: var(--on-mat); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.btn-hero { background: transparent; color: var(--on-mat); border-color: var(--on-mat-muted); }
.btn-hero:hover { border-color: var(--on-mat); background: rgb(255 255 255 / .08); }
.kira { position: absolute; width: 22px; height: 22px; fill: #FFE29A; }
.kira-2 { fill: #FFFFFF; }
.kira-1 { right: 30%; bottom: 280px; width: 16px; height: 16px; }
.kira-2 { right: 9%; bottom: 300px; }
.fan { position: relative; height: 262px; display: flex; justify-content: center; }
.fan-card { --offset: calc(var(--i) - 2); position: absolute; top: 22px; width: 118px; background: #fff; color: #161A2E; border-radius: 12px; border: 1px solid #9C7CFF; padding: 5px; text-decoration: none; overflow: hidden;
  box-shadow: 0 18px 40px rgb(0 0 0 / .5), 0 0 26px rgb(124 77 255 / .45); transform-origin: 50% 130%;
  transform: rotate(calc(var(--offset) * 12deg)) translateY(calc(var(--offset) * var(--offset) * 6px));
  animation: deal .75s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: calc(var(--i) * 55ms); z-index: var(--i); }
.fan-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(112deg, transparent 38%, rgb(255 255 255 / .65) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%; background-position: 140% 0; animation: sheen 1.3s ease-out 1 both; animation-delay: calc(.75s + var(--i) * 90ms); }
.fan-card:nth-child(1) { --i: 0; } .fan-card:nth-child(2) { --i: 1; } .fan-card:nth-child(3) { --i: 2; } .fan-card:nth-child(4) { --i: 3; } .fan-card:nth-child(5) { --i: 4; }
.fan-card:hover { translate: 0 -12px; z-index: 9; }
.fan-label { display: inline-block; margin: 0 0 4px; padding: 0 .45rem; border-radius: 999px; background: var(--gold-foil); color: var(--gold-ink); font-size: .7rem; font-weight: 700; line-height: 1.35rem; min-height: 1.35rem; }
.fan-label:empty { background: none; }
.fan-card img { width: 100%; aspect-ratio: 5/7; object-fit: cover; border-radius: 8px; }
.fan-1 .fan-card, .fan-2 .fan-card, .fan-3 .fan-card, .fan-4 .fan-card { --offset: calc(var(--i) - 1); }
@keyframes deal { from { transform: rotate(0) translateY(80px); opacity: 0; } }
@keyframes sheen { to { background-position: -40% 0; } }
@media (prefers-reduced-motion: reduce) { .fan-card, .fan-card::after { animation: none; } }
@media (min-width: 860px) {
  .hero-in { grid-template-columns: 1.05fr 1fr; padding-top: 3rem; min-height: 430px; }
  .hero-copy { padding-bottom: 3rem; }
  .coin { --t: 10px; left: calc(52% - 10px); bottom: 54px; width: 148px; }
  .coin-back span { font-size: 30px; }
  .kira-1 { right: auto; bottom: auto; left: 57%; top: 12%; }
  .kira-2 { bottom: auto; top: 52%; }
  .fan { height: 420px; align-self: end; }
  .fan-card { width: 196px; top: 34px; padding: 7px; }
  .fan-label { font-size: .85rem; }
}

@media (min-width: 1100px) { .hero-in { padding-top: 5rem; } }
/* The left card backs only where the page margin leaves them room beside the headline */
@media (min-width: 1380px) { .stage-left { display: block; inset: auto auto 90px 0; width: 260px; height: 280px; } }

/* Category rail */
.tabs { position: relative; width: min(1240px, 100%); margin: 0 auto; padding: 1rem 16px 1.25rem; display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: .42rem 1rem; border: 1px solid rgb(244 241 251 / .25); border-radius: 999px; color: var(--on-mat); text-decoration: none; font-weight: 500; white-space: nowrap; background: rgb(17 12 37 / .35); }
.tab:hover { background: rgb(244 241 251 / .12); border-color: rgb(244 241 251 / .5); }
.tab-head { background: var(--gold-foil); color: var(--gold-ink); border-color: transparent; font-weight: 700; }
.tab-head:hover { background: var(--gold-foil); border-color: var(--gold-ink); }
.tab:not(.tab-head):hover { border-color: rgb(63 212 255 / .7); box-shadow: 0 0 14px rgb(63 212 255 / .25); }

/* Listing tiles: photo first, price under it, nothing in the way */
.slab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 1.4rem .85rem; }
@media (min-width: 700px) { .slab-grid { grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); gap: 1.9rem 1.15rem; } }
.slab { position: relative; min-width: 0; }
.slab-link { display: block; text-decoration: none; color: inherit; }
.slab-window { position: relative; aspect-ratio: 5/7; background: var(--tile-bg); border-radius: var(--tile-radius); overflow: hidden; display: grid; place-items: center; }
.slab-link:hover .slab-window { box-shadow: 0 0 0 2px var(--violet), 0 6px 22px rgb(124 77 255 / .25); }
.slab-window img { width: 100%; height: 100%; object-fit: cover; }
.slab-empty { color: var(--muted); font-size: .9rem; }
.slab-status { position: absolute; left: 0; right: 0; top: 44%; padding: .25rem; background: var(--mat); color: var(--on-mat); text-align: center; font-weight: 700; }
.slab-off .slab-window img { opacity: .5; }
.tile-chip { position: absolute; left: 8px; top: 8px; max-width: calc(100% - 3.5rem); padding: 0 .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-grade { background: var(--gold-foil); color: var(--gold-ink); }
.tile-type { background: var(--mat); color: var(--on-mat); }
.tile-heart { position: absolute; right: 8px; top: 8px; z-index: 2; width: 2.15rem; height: 2.15rem; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / .94); color: #1C1633; cursor: pointer; box-shadow: 0 2px 10px rgb(20 10 45 / .2); }
.tile-heart svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; }
.tile-heart[aria-pressed="true"] { color: var(--violet); }
.tile-heart[aria-pressed="true"] svg { fill: currentColor; }
.slab-price { margin: .6rem .1rem 0; font-size: 1.08rem; font-weight: 700; letter-spacing: -.005em; font-variant-numeric: tabular-nums; }
.slab-title { margin: .1rem .1rem 0; font-size: .95rem; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.slab-set, .slab-place { margin: .1rem .1rem 0; color: var(--muted); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Graded label, used by the big photo on listing and card pages */
.slab-label { display: flex; align-items: baseline; gap: .5rem; min-height: 2.2rem; padding: .3rem .6rem; border-radius: 10px 10px 0 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.slab-grade { font-weight: 700; white-space: nowrap; font-size: .95rem; }
.slab-graded .slab-label { background: var(--mat); color: var(--on-mat); border-color: var(--mat); }
.slab-graded .slab-grade { color: #FFD45C; }
.slab-graded .slab-label .slab-set { color: var(--on-mat-muted); }

/* The hologram sticker marks secure payment, and nothing else */
.holo { display: inline-block; padding: .08rem .5rem; border-radius: 999px; background: var(--holo); color: #1C1633; font-size: .78rem; font-weight: 600; white-space: nowrap; border: 1px solid rgb(28 22 51 / .55); }
.holo-corner { position: absolute; left: 8px; bottom: 8px; }
@media (max-width: 400px) { .holo-corner { font-size: .7rem; padding: .05rem .35rem; } }

/* Browse */
.browse { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .browse { grid-template-columns: 250px minmax(0, 1fr); align-items: start; } }
.filter-box { background: var(--sleeve); border: 1px solid var(--line); border-radius: var(--slab-radius); padding: .7rem .9rem; }
.filter-box summary { font-weight: 700; cursor: pointer; }
.filter-box form { margin-top: .75rem; }
.results-count { font-size: 1.25rem; }
.sort label { display: flex; gap: .5rem; align-items: center; font-weight: 500; }
.sort select { width: auto; }
.pager { display: flex; justify-content: center; gap: .5rem; margin-top: 1.5rem; }
.center-link { text-align: center; }

/* Forms */
.stack { display: grid; gap: .85rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; align-items: start; }
label { display: grid; gap: .25rem; font-weight: 500; min-width: 0; }
input:not([type=checkbox], [type=radio], [type=file]), select, textarea { width: 100%; min-height: 2.6rem; padding: .45rem .6rem; border: 1px solid var(--line-strong); border-radius: var(--control-radius); background: var(--sleeve); color: var(--ink); font: inherit; font-weight: 400; }
textarea { resize: vertical; }
input.invalid, select.invalid, textarea.invalid { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .88rem; font-weight: 500; }
.hint { color: var(--muted); font-weight: 400; font-size: .88rem; }
.check { display: flex; gap: .5rem; align-items: center; font-weight: 400; flex-wrap: wrap; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--mat); flex: none; }
.form-error { color: var(--danger); font-weight: 500; }
.form-done { color: var(--ok); font-weight: 500; }
.form-part { border: 0; border-top: 1px solid var(--line); padding: .9rem 0 .4rem; margin: 0; display: grid; gap: .85rem; min-width: 0; }
.form-part legend { font-weight: 700; font-size: 1.2rem; padding: 0 .5rem 0 0; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--control-radius); overflow: hidden; }
.segmented label { display: block; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; padding: .55rem .25rem; text-align: center; font-weight: 600; background: var(--sleeve); cursor: pointer; }
.segmented input:checked + span { background: var(--mat); color: var(--on-mat); }
.segmented input:focus-visible + span { outline: 3px solid var(--action); outline-offset: -3px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .5rem; }
.photo { position: relative; aspect-ratio: 5/7; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo button { position: absolute; top: 3px; right: 3px; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 1.5px solid #0E2023; background: #fff; color: #0E2023; font-size: 1rem; line-height: 1; cursor: pointer; }
.photo-add { aspect-ratio: 5/7; display: grid; place-items: center; text-align: center; padding: .4rem; border: 1px dashed var(--line-strong); border-radius: 6px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.photo-add:hover, .photo-add:focus-within { background: var(--sleeve); }
.photo-add input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.secure-choice { background: var(--sleeve); border: 1px solid var(--hair); border-radius: var(--control-radius); padding: .7rem; display: grid; gap: .3rem; }

/* Listing page */
.detail { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .detail { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2.5rem; align-items: start; } .detail-media { position: sticky; top: 1rem; } }
.big-slab { background: var(--sleeve); border: 1px solid var(--line); border-radius: 14px; padding: 10px; max-width: 480px; margin: 0 auto; }
.big-slab .slab-label { min-height: 2.5rem; align-items: center; }
.big-slab .slab-grade { font-size: 1.3rem; }
.big-slab .slab-set { font-size: .95rem; }
.big-window { width: 100%; }
.thumbs { display: flex; gap: .4rem; overflow-x: auto; margin: .6rem auto 0; max-width: 480px; }
.thumbs button { flex: none; width: 62px; aspect-ratio: 5/7; padding: 0; border: 1px solid var(--hair); border-radius: 5px; overflow: hidden; background: var(--paper); cursor: pointer; }
.thumbs button[aria-current] { border-color: var(--gold); border-width: 2px; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-main { display: grid; gap: .6rem; min-width: 0; }
.detail-main h2 { margin-top: 1rem; }
.crumb { color: var(--muted); }
.detail-price { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.type-tag { display: inline-block; font-size: 1rem; vertical-align: middle; padding: .1rem .5rem; background: var(--mat); color: var(--on-mat); border-radius: 4px; letter-spacing: 0; }
.status-line { font-weight: 700; color: var(--danger); }
.buy-box, .owner-box { display: grid; gap: .6rem; margin-top: .5rem; }
.owner-box { background: var(--sleeve); border: 1px solid var(--hair); border-radius: var(--control-radius); padding: .8rem; }
.secure-note { font-size: .95rem; }
.warn-note { padding: .6rem .75rem; border-left: 4px solid var(--action); background: var(--sleeve); font-size: .95rem; }
.ask { display: grid; gap: .4rem; }
.ask label { font-weight: 600; }
.plain { margin: 0; padding: 0; list-style: none; }
.prose { white-space: pre-line; overflow-wrap: anywhere; max-width: 68ch; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.seller p { color: var(--muted); }
.seller-name { font-weight: 700; font-size: 1.1rem; }
.founder-badge { display: inline-block; justify-self: start; width: fit-content; padding: .1rem .65rem; border-radius: 999px; background: var(--gold-foil); color: var(--gold-ink); font-size: .8rem; font-weight: 700; line-height: 1.5; }
.founder-hint { margin: .75rem 0 1rem; padding: .6rem .9rem; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--control-radius); background: var(--sleeve); font-size: .92rem; }
.small-meta { color: var(--muted); font-size: .88rem; margin-top: 1rem; }

/* Rows: inbox and orders */
.rows { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { border-bottom: 1px solid var(--hair); }
.row { display: flex; gap: .75rem; padding: .7rem .25rem; text-decoration: none; align-items: center; }
.row:hover { background: var(--sleeve); }
.row-thumb { flex: none; display: block; width: 50px; aspect-ratio: 5/7; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-body { flex: 1; min-width: 0; display: grid; }
.row-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; }
.row-end { display: grid; justify-items: end; gap: .2rem; color: var(--muted); font-size: .85rem; }

/* Chat */
.chat-head { display: flex; gap: .75rem; align-items: center; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.menu-right summary { padding: .2rem .6rem; font-weight: 700; }
.safety-line { color: var(--muted); font-size: .86rem; padding: .5rem 0; }
.messages { display: flex; flex-direction: column; gap: .5rem; padding: .5rem 0 1rem; min-height: 40vh; }
.bubble { align-self: flex-start; max-width: min(80%, 30rem); background: var(--sleeve); border: 1px solid var(--hair); border-radius: 10px 10px 10px 2px; padding: .45rem .7rem; }
.bubble p { white-space: pre-line; overflow-wrap: anywhere; }
.bubble.mine { align-self: flex-end; background: var(--mat); color: var(--on-mat); border-color: var(--mat); border-radius: 10px 10px 2px 10px; }
.bubble-meta { display: flex; gap: .6rem; font-size: .75rem; opacity: .75; margin-top: .15rem; }
.composer { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: end; background: var(--paper); padding: .5rem 0; }
.composer .form-error { grid-column: 1 / -1; }

/* Checkout and orders */
.checkout-grid { display: grid; gap: 1.5rem; margin-top: 1rem; }
@media (min-width: 800px) { .checkout-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2.5rem; align-items: start; } }
.summary { background: var(--sleeve); border: 1px solid var(--line); border-radius: var(--slab-radius); padding: 1rem; display: grid; gap: .6rem; }
.sums { display: grid; grid-template-columns: 1fr auto; row-gap: .2rem; margin: 0; }
.sums dd { margin: 0; padding-left: 1rem; text-align: right; }
.sum-total { font-weight: 700; font-size: 1.15rem; padding-top: .35rem; border-top: 1px solid var(--line); }
.how { margin: .4rem 0 0; padding-left: 1.2rem; font-size: .92rem; display: grid; gap: .3rem; }
.order { display: grid; gap: 1rem; }
.order-status { background: var(--sleeve); border: 1px solid var(--line); border-left-width: 6px; border-radius: 6px; padding: .75rem .9rem; }
.status-completed { border-left-color: var(--ok); }
.status-disputed, .status-refunded { border-left-color: var(--danger); }
.status-paid, .status-shipped, .status-pending_payment { border-left-color: var(--action); }
address { font-style: normal; }
.panel { background: var(--sleeve); border: 1px solid var(--hair); border-radius: var(--control-radius); padding: 1rem; margin-top: 1rem; }
.panel summary { font-weight: 600; cursor: pointer; }
.panel form { margin-top: .75rem; }
.order-actions { margin-top: .5rem; }
.order-actions .panel { margin-top: 0; }
/* Order progress: paid > shipped > on its way > delivered > confirmed */
.progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .25rem; counter-reset: none; }
.progress-step { position: relative; display: grid; justify-items: center; gap: .15rem; text-align: center; font-size: .8rem; color: var(--muted, #6b6b78); }
.progress-step::before { content: ""; position: absolute; top: 14px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.progress-step:first-child::before { display: none; }
.progress-step.is-done::before, .progress-step.is-current::before { background: var(--ok); }
.progress-dot { position: relative; z-index: 1; width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--sleeve); border: 2px solid var(--line); }
.progress-step.is-done .progress-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.progress-step.is-current .progress-dot { border-color: var(--action); color: var(--action); box-shadow: 0 0 0 4px color-mix(in srgb, var(--action) 22%, transparent); }
.progress-step.is-current .progress-label, .progress-step.is-done .progress-label { color: var(--ink, inherit); font-weight: 600; }
.progress-when, .progress-detail { font-size: .72rem; line-height: 1.25; }
.progress-detail { max-width: 12ch; overflow-wrap: anywhere; }
.track-events { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .9rem; }
.track-when { color: var(--muted, #6b6b78); font-variant-numeric: tabular-nums; margin-right: .35rem; }
@media (max-width: 520px) { .progress-step { font-size: .7rem; } .progress-detail { display: none; } }
.auth { width: min(440px, 100%); display: grid; gap: 1rem; }
.profile-head { display: grid; gap: .25rem; margin-bottom: 1.5rem; }
.reviews { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; max-width: 68ch; }
.text-page { display: grid; gap: 1rem; }
.text-page p { max-width: 68ch; }
.admin h2 { margin-top: 1.5rem; }
.empty { display: grid; justify-items: center; gap: 1rem; padding: 3rem 1rem; text-align: center; border: 1.5px dashed var(--hair); border-radius: var(--slab-radius); }

/* Footer, toast, dialog */
.foot { background: var(--mat-deep); color: var(--on-mat); margin-top: 1.5rem; }
.foot-in { width: min(1240px, 100%); margin: 0 auto; padding: 1.1rem 16px; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.foot-site { font-weight: 700; }
.foot-langs { margin-left: auto; display: flex; flex-wrap: wrap; gap: .4rem .8rem; }
.foot-langs a[aria-current] { font-weight: 700; text-decoration: none; }
.toast { position: fixed; left: 50%; bottom: 1.25rem; translate: -50% 0; z-index: 40; background: var(--ink); color: var(--paper); padding: .55rem 1rem; border-radius: var(--control-radius); max-width: calc(100vw - 32px); }
.dialog { border: 1px solid var(--line); border-radius: var(--slab-radius); padding: 1.25rem; width: min(440px, calc(100vw - 32px)); background: var(--sleeve); color: var(--ink); }
.dialog::backdrop { background: rgb(17 12 37 / .62); }
.dialog form { display: grid; gap: .85rem; }
.row-end.dialog-actions, .dialog .row-end { display: flex; justify-content: flex-end; gap: .5rem; font-size: 1rem; }

/* Secure trade */
.trade-page { display: grid; gap: 1rem; }
.trade-pair { display: grid; gap: .75rem; align-items: start; }
.trade-swap { font-size: 2rem; font-weight: 700; text-align: center; line-height: 1; color: var(--muted); }
@media (min-width: 760px) {
  .trade-pair { grid-template-columns: minmax(0, 260px) auto minmax(0, 260px); justify-content: start; gap: 1.5rem; }
  .trade-pair:has(.trade-col-wide) { grid-template-columns: minmax(180px, 260px) auto minmax(0, 1fr); }
  .trade-swap { align-self: center; }
}
.trade-col { display: grid; gap: .5rem; min-width: 0; align-content: start; }
.trade-col > .slab { max-width: 260px; }
.trade-card { display: grid; max-width: 260px; padding: 6px 6px 10px; background: var(--sleeve); border: 1px solid var(--line); border-radius: var(--slab-radius); text-decoration: none; }
.trade-card .slab-title { min-height: 0; }
.trade-ship { color: var(--muted); font-size: .92rem; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.pick { display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; }
.pick-card { display: grid; gap: .3rem; padding: 6px; background: var(--sleeve); border: 1px solid var(--hair); border-radius: var(--slab-radius); font-weight: 400; }
.pick input:checked + .pick-card { border: 2.5px solid var(--gold); padding: 5px; background: var(--paper); }
.pick input:focus-visible + .pick-card { outline: 3px solid var(--action); outline-offset: 2px; }
.pick-thumb { display: block; aspect-ratio: 5/7; background: var(--paper); border-radius: 4px; overflow: hidden; }
.pick-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pick-title { font-size: .9rem; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.deposits { max-width: 30rem; }
.quote { padding-left: .8rem; border-left: 3px solid var(--hair); }
.row-pair { display: flex; gap: 3px; flex: none; }
.row-pair .row-thumb { width: 38px; }
.status-trade-completed { border-left-color: var(--ok); }
.status-trade-disputed, .status-trade-forfeited { border-left-color: var(--danger); }
.status-trade-awaiting_deposits, .status-trade-in_progress, .status-trade-proposed, .status-trade-settling { border-left-color: var(--action); }
.pick-set { border: 0; margin: 0; padding: 0; display: grid; gap: .6rem; min-width: 0; }
.pick-set legend { padding: 0; margin-bottom: .6rem; }

/* Card catalog */
.catalog { display: grid; gap: .85rem; }
.catalog-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; }
.catalog-search select { grid-column: 1; }
.catalog-search .btn { grid-column: 2; grid-row: 1 / span 2; }
@media (min-width: 640px) { .catalog-search { grid-template-columns: minmax(0, 1fr) 12rem auto; } .catalog-search select { grid-column: auto; } .catalog-search .btn { grid-column: auto; grid-row: auto; } }
.catalog .rows { margin-top: 0; }
.row-price { color: var(--ink); font-size: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.badge-pending { display: inline-block; padding: 0 .4rem; border-radius: 4px; background: var(--action); color: #1E1600; font-size: .8rem; font-weight: 600; }
.missing-card { display: grid; gap: .5rem; justify-items: start; }
.card-sub { font-size: 1.05rem; color: var(--muted); }
.owned-line { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-weight: 600; }
.card-actions { display: grid; gap: .5rem; margin-top: .3rem; }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { text-align: left; padding: .45rem .4rem; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.price-table thead th { border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 500; font-size: .88rem; }
.price-table tbody th { font-weight: 600; }
.price-table td:nth-child(2) { font-weight: 700; }
.price-table input { min-height: 2.2rem; }
.sale-kind { text-align: right; font-size: .85rem; }
.sale-kind .holo { white-space: nowrap; }
.catalog-ref { display: flex; gap: .75rem; align-items: center; justify-content: space-between; padding: .65rem .8rem; background: var(--sleeve); border: 1px solid var(--line); border-radius: var(--control-radius); text-decoration: none; }
.catalog-ref:hover { background: var(--paper); }
.catalog-ref .row-end { text-align: right; }
.link-like { text-decoration: underline; color: var(--ink); font-weight: 600; }
.card-chip { display: inline-flex; align-items: center; gap: .4rem; margin-top: .35rem; padding: .15rem .3rem .15rem .6rem; border: 1px solid var(--line); border-radius: 999px; background: var(--sleeve); font-size: .92rem; max-width: 100%; }
.card-chip a:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-x { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; text-decoration: none; font-weight: 700; }
.chip-x:hover { background: var(--paper); }

/* Catalog picker in the listing form */
.card-linked { display: flex; gap: .75rem; align-items: center; justify-content: space-between; padding: .6rem .75rem; border: 1px solid var(--gold); border-radius: var(--control-radius); background: var(--sleeve); }
.card-search { display: grid; gap: .4rem; position: relative; }
.suggest { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--sleeve); max-height: 22rem; overflow-y: auto; }
.suggest li + li { border-top: 1px solid var(--hair); }
.suggest button { display: grid; gap: .1rem; width: 100%; padding: .55rem .7rem; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.suggest button span { color: var(--muted); font-size: .88rem; }
.suggest button:hover, .suggest button:focus-visible { background: var(--paper); }
.suggest-empty { padding: .55rem .7rem; color: var(--muted); }
.price-hint { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline; padding: .55rem .75rem; border-left: 4px solid var(--mat); background: var(--sleeve); }
.similar .rows { margin-top: .5rem; }
.similar-row { display: grid; gap: .1rem; }
.similar-row span { color: var(--muted); font-size: .88rem; }

/* Collection */
.collection { display: grid; gap: .85rem; }
.pill-tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.pill-tabs a { padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; background: var(--sleeve); }
.pill-tabs a[aria-current] { background: var(--mat); color: var(--on-mat); border-color: var(--mat); }
.collection-sum { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; align-items: baseline; }
.collection-sum .hint { flex-basis: 100%; }
.collection .rows { margin-top: 0; }
.entry { padding-bottom: .6rem; }
.entry .row:hover { background: none; }
.entry-actions { padding-left: calc(50px + 1rem); }
.entry-actions .btn { min-height: 2.2rem; padding: .25rem .75rem; font-size: .92rem; }
@media (max-width: 480px) { .entry-actions { padding-left: .25rem; } }
.sub-head { margin-top: 1.5rem; }
.sub-status { font-weight: 600; }
.sub-approved { color: var(--ok); }
.sub-rejected { color: var(--danger); }
.segmented-two { grid-template-columns: 1fr 1fr; }
.submission .plain li { display: flex; flex-wrap: wrap; gap: .4rem .75rem; align-items: center; padding: .25rem 0; }
@media (max-width: 560px) { .card-linked { flex-wrap: wrap; } .card-linked .row-sub { white-space: normal; } }

/* Midnight foil: finishing for the components above */
.form-part legend { font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.segmented { border-radius: 999px; padding: 3px; gap: 3px; background: var(--sleeve); }
.segmented span { border-radius: 999px; }
.segmented input:focus-visible + span { outline: 2.5px solid var(--violet); outline-offset: -3px; }
.big-slab { border-radius: 22px; padding: 12px; box-shadow: 0 24px 50px rgb(20 20 60 / .1); }
.big-slab .slab-label { border-radius: 12px 12px 0 0; }
.big-window { border-radius: 0 0 12px 12px; }
.big-window img { object-fit: contain; }
.type-tag { border-radius: 999px; padding: .1rem .7rem; }
.foot { border-top: 1px solid rgb(124 77 255 / .45); }
.foot-site img { height: 30px; width: auto; }
.panel, .owner-box, .secure-choice { border-radius: 16px; }
.dialog { border-radius: 20px; box-shadow: 0 30px 80px rgb(10 5 30 / .35); }
.warn-note { border-left-color: var(--gold); border-radius: 0 10px 10px 0; }
.price-hint { border-left-color: var(--gold); border-radius: 0 10px 10px 0; }
.badge-pending { background: var(--gold-foil); color: var(--gold-ink); border-radius: 999px; }
.detail-main h2 { margin-top: 1.25rem; }

/* Sign in with Google and Apple, profile step */
.social-auth { display: grid; gap: .6rem; }
.btn-social { gap: .6rem; min-height: 2.9rem; width: 100%; font-weight: 600; }
.btn-social img { width: 20px; height: 20px; flex: none; }
.btn-google { background: #FFFFFF; color: #1F1F1F; border-color: #747775; }
.btn-google:hover { background: #F6F7FB; }
.btn-apple { background: #000000; color: #FFFFFF; border-color: #000000; }
.btn-apple:hover { background: #1C1C1E; border-color: #1C1C1E; }
.social-terms { margin: 0; text-align: center; }
.social-terms a { color: inherit; }
.divider { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .9rem; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--hair); }
.onboarding .lead { color: var(--muted); margin-top: -.25rem; }
.onboarding h2, .narrow .panel h2 { display: flex; align-items: center; gap: .5rem; margin: 0; }
.ok-chip { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--ok); color: var(--sleeve); font-size: .8rem; }
.code-input { font-size: 1.4rem; letter-spacing: .35em; max-width: 12rem; font-variant-numeric: tabular-nums; }
.row-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.phone-current { margin: 0; }
.method-list { margin: 0; padding-left: 1.1rem; }
.notice-inline { background: var(--gold-foil); color: var(--gold-ink); border-radius: 12px; padding: .6rem .9rem; font-weight: 600; }
.done-panel { border-color: var(--ok); }
.done-panel .btn { justify-self: start; }
.skip-later { margin-top: 1rem; }
@media (max-width: 479px) { .narrow .two { grid-template-columns: 1fr; } }
.link:disabled { opacity: .55; cursor: default; text-decoration: none; }
#identity > .stack { margin-top: .75rem; }

/* Item type, grading and condition chips */
.sub-part { border: 0; padding: 0; margin: 0; display: grid; gap: .55rem; min-width: 0; }
.sub-part legend { font-weight: 600; padding: 0 0 .35rem; }
.segmented:has(> label:nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { position: relative; }
.chip[hidden] { display: none; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-flex; gap: .4rem; align-items: baseline; padding: .45rem .8rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--sleeve); cursor: pointer; font-weight: 500; }
.chip strong { font-family: var(--font-display, inherit); font-weight: 800; }
.chip input:checked + span { background: var(--mat); color: var(--on-mat); border-color: var(--mat); }
.chip input:focus-visible + span { outline: 3px solid var(--action); outline-offset: 2px; }
[data-condition-help]:empty, [data-condition-help]:not(:has(span:not([hidden]))) { display: none; }

/* Trade wish lists */
.want-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.want-chips li { display: inline-flex; align-items: center; gap: .25rem; padding: .3rem .7rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; }
.want-chips a { color: inherit; }
.want-chips button { border: 0; background: none; font: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 .1rem; }
.want-editor h3 { margin: 0; font-size: 1.05rem; }
.wants { margin: .25rem 0 1rem; }
.wants h2, .wants h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.want-match { display: inline-block; font-size: .75rem; font-weight: 700; padding: .05rem .5rem; border-radius: 999px; background: var(--gold-foil); color: var(--gold-ink); }
.offer-total { font-weight: 700; margin: .6rem 0 0; }
.trade-cards { display: grid; gap: .75rem; }

/* Auctions */
.auction-tag { background: var(--violet); }
.tile-auction { background: var(--violet); color: #fff; font-variant-numeric: tabular-nums; box-shadow: 0 2px 8px rgb(20 10 45 / .25); }
.tile-chip + .tile-auction { top: calc(8px + 1.85rem); }  /* under the grade chip */
.slab-caption { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.auction-box { display: grid; gap: .75rem; padding: 1rem; margin-bottom: .75rem; border: 1px solid var(--line); border-radius: var(--slab-radius); background: var(--sleeve); }
.auction-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.auction-head > div { display: grid; gap: .1rem; }
.auction-price { font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.auction-clock { text-align: right; }
.auction-clock strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.ok-note { padding: .6rem .75rem; border-left: 4px solid var(--ok); background: var(--paper); font-size: .95rem; margin: 0; }
.bid-history summary { cursor: pointer; font-weight: 600; }
.bid-history ol { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .35rem; }
.bid-history li { display: grid; grid-template-columns: 1fr auto; gap: 0 .75rem; padding: .35rem 0; border-top: 1px solid var(--hair); }
.bid-history li .hint { grid-column: 1 / -1; }
.bid-form input { font-size: 1.15rem; font-weight: 600; }

/* Country and language menu */
.locale-menu summary { display: inline-flex; align-items: center; gap: .35rem; max-width: none; font-weight: 600; }
.locale-list { min-width: 15rem; }
.menu-head { margin: .4rem .7rem .1rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.menu-list a[aria-current="true"] { font-weight: 700; background: var(--paper); }

/* FAQ */
.faq-toc { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.faq-toc a { padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: inherit; font-weight: 600; }
.faq h2 { margin-top: 1.6rem; }
.faq-item { border-bottom: 1px solid var(--line); padding: .2rem 0; }
.faq-item summary { cursor: pointer; padding: .75rem 0; font-weight: 600; font-size: 1.05rem; }
.faq-item p { margin: 0 0 .9rem; line-height: 1.6; }
.faq-contact { margin-top: 1.5rem; }
@media (max-width: 479px) { .auction-clock { text-align: left; } }

/* Admin panel */
.admin-shell { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 1.5rem; align-items: start; padding-top: 1.25rem; }
.admin-nav { position: sticky; top: 1rem; display: grid; gap: .15rem; padding: .5rem; background: var(--sleeve); border: 1px solid var(--hair); border-radius: var(--slab-radius); }
.admin-nav a { display: flex; justify-content: space-between; align-items: center; padding: .5rem .7rem; border-radius: var(--control-radius); color: inherit; text-decoration: none; font-weight: 600; }
.admin-nav a:hover { background: var(--paper); }
.admin-nav a[aria-current] { background: var(--mat); color: var(--on-mat); }
.admin h1 { margin: 0 0 .75rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: .75rem; margin: .5rem 0 1.25rem; }
.stat { display: grid; gap: .15rem; align-content: start; padding: .9rem 1rem; background: var(--sleeve); border: 1px solid var(--hair); border-radius: var(--slab-radius); color: inherit; text-decoration: none; }
.stat span { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stat strong { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); }
.stat-strong { background: var(--mat); color: var(--on-mat); border-color: var(--mat); }
.stat-strong span, .stat-strong small { color: inherit; opacity: .8; }
.stat-alert { border-color: var(--action); box-shadow: inset 4px 0 0 var(--action); }
.admin-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.admin-filter input[type=search] { flex: 1 1 16rem; }
.admin-filter select { width: auto; }
.table-scroll { overflow-x: auto; border: 1px solid var(--hair); border-radius: var(--slab-radius); background: var(--sleeve); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table th, .admin-table td { padding: .55rem .7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
.admin-table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; background: var(--paper); }
.admin-table tbody tr:last-child td, .admin-table tbody tr:last-child th { border-bottom: 0; }
.admin-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.subaccounts-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; }
.release-line { margin: -.4rem 0 1rem; font-size: .85rem; }
.admin-table .actions { min-width: 12rem; text-align: right; }
.admin-table .actions .btn { margin: .15rem 0 .15rem .25rem; padding: .3rem .6rem; font-size: .85rem; }
.admin-kv { max-width: 40rem; background: var(--sleeve); border: 1px solid var(--hair); }
.admin-kv th { width: 55%; font-weight: 600; }
.admin-note { color: var(--action); font-weight: 600; }
.admin-pager { display: flex; gap: .75rem; align-items: center; margin-top: .75rem; }
.pill { display: inline-block; padding: .05rem .55rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.pill-active, .pill-completed { color: var(--ok); border-color: currentColor; }
.pill-removed, .pill-disputed, .pill-refunded { color: var(--action); border-color: currentColor; }
.notice-site { background: var(--mat); color: var(--on-mat); }
label.check { display: flex; gap: .6rem; align-items: flex-start; }
@media (max-width: 800px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { position: static; display: flex; overflow-x: auto; }
  .admin-nav a { white-space: nowrap; gap: .4rem; }
}

/* Profile button and its menu */
.user-menu summary.btn { display: inline-flex; align-items: center; gap: .4rem; max-width: 11rem; list-style: none; }
.user-menu summary.btn::-webkit-details-marker { display: none; }
.user-menu summary.btn span { overflow: hidden; text-overflow: ellipsis; }
.user-menu summary.btn:hover { text-decoration: none; }
.user-menu .menu-list { right: 0; left: auto; min-width: 14rem; }
.menu-list a.menu-primary { margin: .35rem; padding: .55rem .7rem; border-radius: var(--control-radius); background: var(--mat); color: var(--on-mat); font-weight: 700; text-align: center; }
.menu-list a.menu-primary:hover { background: var(--mat); filter: brightness(1.25); }
/* Footer: app badge and payment marks */
.foot-extra { align-items: center; gap: .75rem 1.25rem; padding-top: 0; }
.store-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border: 1px solid rgb(255 255 255 / .55); border-radius: 8px; color: inherit; text-decoration: none; font-weight: 600; font-size: .9rem; }
a.store-badge:hover { background: rgb(255 255 255 / .1); }
span.store-badge { opacity: .75; }
.pay-marks { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .85rem; }
.pay-label { opacity: .8; margin-right: .2rem; }
.pay-mark { padding: .2rem .6rem; border-radius: 6px; background: #fff; color: #121726; font-weight: 800; font-size: .78rem; letter-spacing: .01em; }
@media (max-width: 599px) { .pay-marks { margin-left: 0; } }
/* Admin sign-in and tools */
.admin-login { max-width: 30rem; }
.admin-tools { display: flex; gap: .75rem; padding: .5rem .7rem 0; font-size: .85rem; }
.admin-tools a[aria-current] { font-weight: 700; text-decoration: none; }
.admin-nav button.link { text-align: left; padding: .4rem .7rem; font-size: .85rem; }
.admin-table td:nth-last-child(2) { white-space: nowrap; }

/* Category strip with arrows */
.tabs-wrap { position: relative; width: min(1240px, 100%); margin: 0 auto; }
.tabs-wrap .tabs { width: auto; margin: 0 44px; padding-left: 8px; padding-right: 8px; scroll-behavior: smooth;
  mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.tabs-arrow { position: absolute; top: calc(50% - .125rem); transform: translateY(-50%); z-index: 1; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgb(244 241 251 / .35); background: rgb(17 12 37 / .85); color: var(--on-mat); cursor: pointer; }
.tabs-arrow:hover { border-color: rgb(63 212 255 / .8); box-shadow: 0 0 14px rgb(63 212 255 / .3); }
.tabs-prev { left: 8px; } .tabs-next { right: 8px; }
.carousel-fits .tabs-arrow { display: none; }
.carousel-fits .tabs { margin: 0; mask-image: none; }
/* Language and currency menu */
.currency-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; padding: .25rem .7rem .4rem; }
.currency-grid button { padding: .4rem 0; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--sleeve); font: inherit; font-weight: 600; cursor: pointer; text-align: center; width: auto; }
.currency-grid button[aria-pressed="true"] { background: var(--mat); color: var(--on-mat); border-color: var(--mat); }
.currency-grid .currency-wide { grid-column: 1 / -1; }
.menu-note { margin: 0 .7rem .5rem; font-size: .78rem; color: var(--muted); line-height: 1.35; }
/* Payment marks */
.pay-logo { height: 26px; width: auto; border-radius: 4px; background: #fff; padding: 3px 6px; box-sizing: content-box; }
.pay-strip { height: 40px; width: auto; max-width: 100%; object-fit: contain; }
@media (max-width: 599px) { .pay-strip { height: 30px; } }

/* Reviews */
.stars { color: #f5a623; letter-spacing: .05em; white-space: nowrap; }
.stars i { font-style: normal; color: var(--line-strong); }
.review-summary { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; padding: 1rem 1.25rem; margin-bottom: 1rem; background: var(--sleeve); border: 1px solid var(--hair); border-radius: var(--slab-radius); }
.review-score { display: grid; justify-items: start; gap: .1rem; }
.review-score strong { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.review-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; flex: 1 1 16rem; max-width: 26rem; }
.review-bars li { display: grid; grid-template-columns: 2.6rem 1fr 2rem; gap: .5rem; align-items: center; font-size: .85rem; }
.review-bars .bar { height: .5rem; border-radius: 999px; background: var(--paper); overflow: hidden; }
.review-bars .bar i { display: block; height: 100%; background: #f5a623; border-radius: 999px; }
.reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.reviews li { padding: .9rem 1.1rem; background: var(--sleeve); border: 1px solid var(--hair); border-radius: var(--slab-radius); }
.reviews li p { margin: .25rem 0 0; }
.review-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0; }
.review-reply { margin-top: .6rem !important; padding: .6rem .8rem; border-left: 3px solid var(--line-strong); background: var(--paper); border-radius: 0 6px 6px 0; }
.review-answer { margin-top: .5rem; }
.review-answer summary { cursor: pointer; font-weight: 600; font-size: .9rem; }

/* Support chat */
.support { position: fixed; right: 18px; bottom: 18px; z-index: 40; }
.support-fab { width: 56px; height: 56px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--gold-foil); color: var(--gold-ink); box-shadow: 0 8px 24px rgb(10 8 30 / .35); }
.support-fab:hover { filter: brightness(1.06); }
.support-panel { position: absolute; right: 0; bottom: 68px; width: min(370px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column; background: var(--sleeve); color: var(--ink, #121726); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgb(10 8 30 / .35); overflow: hidden; }
.support-panel[hidden] { display: none; }
.support-panel header { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; background: var(--mat); color: var(--on-mat); }
.support-panel header strong { flex: 1; }
.support-panel header button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; font-size: 1.3rem; line-height: 1; padding: 0 .2rem; }
.support-panel header .support-back { font-size: .85rem; }
.support-body { padding: 1rem; overflow-y: auto; display: grid; gap: .6rem; }
.support-body[hidden] { display: none; }
.support-body p { margin: 0; }
.support-choice { display: grid; gap: .15rem; text-align: left; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font: inherit; cursor: pointer; color: inherit; }
.support-choice:hover { border-color: var(--line-strong); }
.support-choice span { font-size: .85rem; color: var(--muted); }
.support-chat { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; max-height: 300px; overflow-y: auto; }
.support-chat li { padding: .55rem .75rem; border-radius: 12px; max-width: 88%; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; line-height: 1.4; }
.support-chat .from-ai { background: var(--paper); justify-self: start; border-bottom-left-radius: 4px; }
.support-chat .from-user { background: var(--mat); color: var(--on-mat); justify-self: end; border-bottom-right-radius: 4px; }
.support-body form[data-support-ask] { display: flex; gap: .4rem; }
.support-body form[data-support-ask] input { flex: 1; min-width: 0; }
.support-note { font-size: .75rem; color: var(--muted); }
.support-escalate { justify-self: start; font-size: .85rem; padding: .35rem .8rem; }
@media (max-width: 599px) { .support { right: 12px; bottom: 12px; } .support-fab { width: 50px; height: 50px; } }
/* Tickets in the admin panel */
.ticket { margin-bottom: 1rem; display: grid; gap: .6rem; }
.ticket-high { box-shadow: inset 4px 0 0 var(--action); }
.ticket-head { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.ticket-thread { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ticket-thread li { padding: .6rem .8rem; border-radius: 10px; background: var(--paper); }
.ticket-thread li p { margin: .15rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ticket-thread .from-admin { background: var(--sleeve); border: 1px solid var(--line-strong); }
.ticket-thread .from-ai { border-left: 3px solid var(--violet); }
.is-copied { outline: 2px solid var(--ok); }

/* Listing photo viewer: turn the card, then inspect it under a loupe */
.photo-tag { position: absolute; left: 0; right: 0; bottom: 0; padding: .15rem .25rem; font-size: .68rem; font-weight: 700; text-align: center; background: rgb(14 32 35 / .78); color: #fff; }
.photo.is-required .photo-tag::after { content: " *"; color: var(--gold, #E8C24A); }
.big-window { display: block; }
.viewer { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1200px; touch-action: pan-y; cursor: grab; outline-offset: 3px; user-select: none; -webkit-user-select: none; }
.viewer.is-dragging { cursor: grabbing; }
.flip { position: relative; width: 100%; transform-style: preserve-3d; transform: rotateY(var(--ry, 0deg)); transition: transform .55s cubic-bezier(.2, .8, .2, 1); }
.viewer.is-dragging .flip { transition: none; }
.viewer .flip-face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 6px; background: var(--paper); }
.viewer .flip-back { transform: rotateY(180deg); }
.viewer .flip:not(:has(.flip-back)) .flip-face { position: static; height: auto; }
.viewer img.flat { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.viewer-bar { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; gap: .4rem; pointer-events: none; }
.viewer-btn { pointer-events: auto; border: 1px solid var(--line); background: rgb(255 255 255 / .92); color: #0E2023; border-radius: 999px; padding: .3rem .75rem; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; box-shadow: 0 1px 4px rgb(0 0 0 / .25); }
.viewer-btn:hover { background: #fff; }
.lightbox { border: 0; padding: 0; width: min(96vw, 1100px); max-height: 94vh; border-radius: 14px; background: #0B0F19; color: #EDEEFF; overflow: hidden; }
.lightbox::backdrop { background: rgb(5 3 15 / .86); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox-top { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .6rem .8rem; }
.lightbox-faces { display: flex; gap: .35rem; flex: 1 1 auto; }
.lightbox-faces .viewer-btn[aria-current] { background: var(--gold, #E8C24A); border-color: var(--gold, #E8C24A); }
.lightbox-level { display: flex; align-items: center; gap: .5rem; font-size: .85rem; }
.lightbox-stage { position: relative; margin: 0; display: grid; place-items: center; overflow: hidden; touch-action: none; cursor: crosshair; min-height: 50vh; }
.lightbox .lightbox-stage img { max-width: 100%; max-height: calc(94vh - 8rem); object-fit: contain; display: block; }
.loupe { position: absolute; width: var(--loupe, 190px); height: var(--loupe, 190px); border-radius: 50%; border: 3px solid #fff; box-shadow: 0 6px 24px rgb(0 0 0 / .6), inset 0 0 0 1px rgb(0 0 0 / .4); background-repeat: no-repeat; pointer-events: none; }
.lightbox-hint { margin: 0; padding: .4rem .8rem .7rem; color: #A3A8C6; }
@media (max-width: 600px) { .lightbox { width: 100vw; max-height: 100vh; border-radius: 0; } .loupe { --loupe: 150px; } }
@media (prefers-reduced-motion: reduce) { .flip { transition: none; } }

/* The fan cards turn: drag one sideways to see the back, hover to tilt it under the light */
.fan-card { perspective: 800px; overflow: visible; background: none; border: 0; padding: 0; box-shadow: none; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.fan-card.is-dragging { cursor: grabbing; }
.fan-turn { display: block; position: relative; transform-style: preserve-3d; transform: rotateY(calc(var(--turn, 0deg) + var(--tx, 0deg))) rotateX(var(--ty, 0deg)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.fan-card.is-dragging .fan-turn, .fan-card.is-tilting .fan-turn { transition: transform .08s linear; }
.fan-card.is-dragging .fan-turn { transition: none; }
.fan-side { display: block; background: #fff; border: 1px solid #9C7CFF; border-radius: 12px; padding: 5px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 18px 40px rgb(0 0 0 / .5), 0 0 26px rgb(124 77 255 / .45); }
.fan-reverse { position: absolute; inset: 0; transform: rotateY(180deg); background: #2A1660; border-color: #E8C24A; }
.fan-reverse img { height: 100%; }
.fan-card::after { z-index: 2; }
.fan-hint { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-size: .78rem; letter-spacing: .02em; color: #C9B8FF; opacity: .85; pointer-events: none; }
@media (max-width: 859px) { .fan-hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .fan-turn { transition: none; } }

/* Terms and privacy policy */
.legal-page { max-width: 52rem; display: grid; gap: 1rem; }
.legal-toc { border: 1px solid var(--line, #ddd); border-radius: 12px; padding: 1rem 1.25rem; }
.legal-toc ol { columns: 2 16rem; margin: .5rem 0 0; padding-left: 1.4rem; }
.legal-toc li { break-inside: avoid; margin: .15rem 0; }
.legal-body h2 { margin: 2rem 0 .5rem; scroll-margin-top: 5rem; }
.legal-body h3 { margin: 1.25rem 0 .35rem; font-size: 1.05rem; scroll-margin-top: 5rem; }
.legal-body p, .legal-body li { line-height: 1.6; max-width: 70ch; }
.legal-body ul, .legal-body ol { padding-left: 1.4rem; display: grid; gap: .35rem; }
.legal-table { overflow-x: auto; }
.legal-table table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.legal-table th, .legal-table td { border: 1px solid var(--line, #ddd); padding: .5rem .65rem; text-align: left; vertical-align: top; }
.legal-table th { background: rgba(127, 127, 127, .12); }

/* Share menu */
.menu-list [hidden] { display: none; }
.share { display: inline-block; position: relative; margin: .25rem 0 .5rem; }
.share > summary { list-style: none; cursor: pointer; }
.share > summary::-webkit-details-marker { display: none; }
.share .menu-list { right: auto; left: 0; }
.safety-warning { border: 1px solid var(--warn, #c98a00); border-radius: 12px; padding: .75rem 1rem; line-height: 1.5; }

/* Translate */
.translate-btn { font-size: .85rem; margin-top: .25rem; }
.translated { margin: .35rem 0; padding: .6rem .8rem; border-left: 3px solid var(--line, #ccc); background: rgba(127, 127, 127, .08); border-radius: 0 10px 10px 0; display: grid; gap: .25rem; }
.translated p { margin: 0; }

/* Advertising strip */
.ad-strip { position: relative; background: var(--paper); border-bottom: 1px solid var(--line); }
.ad-track { position: relative; max-width: 1200px; margin: 0 auto; aspect-ratio: 8 / 1; max-height: 110px; min-height: 48px; overflow: hidden; }
.ad-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; display: block; pointer-events: none; }
.ad-slide.is-active { opacity: 1; pointer-events: auto; }
.ad-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-tag { position: absolute; top: 4px; left: max(8px, calc((100% - 1200px) / 2 + 8px)); font-size: .65rem; letter-spacing: .06em; text-transform: uppercase; background: rgb(0 0 0 / .55); color: #fff; padding: 1px 6px; border-radius: 4px; pointer-events: none; }
.ad-dots { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.ad-dot { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: rgb(255 255 255 / .55); box-shadow: 0 0 0 1px rgb(0 0 0 / .25); cursor: pointer; }
.ad-dot.is-active { background: #fff; }
@media (prefers-reduced-motion: reduce) { .ad-slide { transition: none; } }
.banner-thumb { max-width: 220px; max-height: 60px; object-fit: contain; }
.banner-order { width: 4.5rem; }
.lang-pick { display: flex; gap: 1rem; flex-wrap: wrap; border: 0; padding: 0; }

.verdict { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--line); }
.verdict-positive { background: #dff3e4; color: #14532d; }
.verdict-neutral { background: #eceff3; color: #374151; }
.verdict-negative { background: #fbe0e0; color: #7f1d1d; }
.verdict-summary { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 1rem; }
.verdict-summary b { margin-left: .25rem; }
.verdict-counts a { color: inherit; text-decoration: none; }
.notice-warn { background: #fff4e5; color: #7a4100; }

/* Review form: three face buttons */
.verdict-pick { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.verdict-pick legend { padding: 0; margin-bottom: .4rem; font-weight: 600; }
.verdict-choice { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .7rem .4rem; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; background: var(--surface, transparent); color: var(--pick); transition: border-color .12s, background .12s, color .12s; }
.verdict-choice:hover { border-color: var(--pick); }
.verdict-choice-positive { --pick: #2e7d32; --pick-bg: #e3f4e6; }
.verdict-choice-neutral { --pick: #6b7280; --pick-bg: #eceff3; }
.verdict-choice-negative { --pick: #c62828; --pick-bg: #fbe3e3; }
.verdict-choice:has(input:checked) { border-color: var(--pick); background: var(--pick-bg); }
.verdict-choice:has(input:focus-visible) { outline: 3px solid var(--pick); outline-offset: 2px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .verdict-choice-positive { --pick: #6fcf77; --pick-bg: #16301a; }
  :root:not([data-theme="light"]) .verdict-choice-neutral { --pick: #b4bcc8; --pick-bg: #262b33; }
  :root:not([data-theme="light"]) .verdict-choice-negative { --pick: #ff7b7b; --pick-bg: #3a1818; }
}
:root[data-theme="dark"] .verdict-choice-positive { --pick: #6fcf77; --pick-bg: #16301a; }
:root[data-theme="dark"] .verdict-choice-neutral { --pick: #b4bcc8; --pick-bg: #262b33; }
:root[data-theme="dark"] .verdict-choice-negative { --pick: #ff7b7b; --pick-bg: #3a1818; }
.pill-ok { background: #e3f4e6; color: #2e7d32; border-color: #2e7d32; }
.pill-bad { background: #fbe3e3; color: #c62828; border-color: #c62828; }
.store-soon { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .72em; }
.ticket-urgent { box-shadow: inset 6px 0 0 #c62828; background: color-mix(in srgb, #c62828 7%, transparent); }
.support-choice-urgent { border-color: #c62828; }

/* Events and promotions */
.top-nav .nav-news { color: #e6b422; font-weight: 700; text-decoration: none; letter-spacing: .01em; }
.top-nav .nav-news:hover { color: #ffd34d; text-decoration: underline; }
.news-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--sleeve, transparent); }
.news-image { display: block; width: 100%; height: auto; max-height: 640px; object-fit: contain; background: rgba(0,0,0,.04); }
.news-body { padding: 1rem 1.1rem 1.1rem; }
.news-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0; }
.news-kind { padding: .05rem .6rem; border-radius: 999px; border: 1px solid var(--line); font-size: .78rem; font-weight: 700; }
.news-kind-event { background: #fff4cc; color: #7a5a00; border-color: #e6b422; }
.news-kind-promo { background: #e3f4e6; color: #1f6b2a; border-color: #2e7d32; }
.news-text { white-space: pre-line; }
.news-ended { opacity: .6; }

.invite-link code { display: block; padding: 10px 12px; border: 1px solid var(--line, #ddd); border-radius: 8px; word-break: break-all; user-select: all; }
.invite .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.is-copied { background: var(--ok, #2f7d4f); color: #fff; }

.news-translations { border: 1px solid var(--line); border-radius: 10px; padding: .75rem; display: grid; gap: .6rem; }
.news-tr { display: grid; gap: .3rem; }

/* Phones: header menus open as a panel the width of the screen instead of hanging off the button that opened them */
@media (max-width: 859px) {
  .top-in { position: relative; }
  .top-nav .menu { position: static; }
  .top-in .menu-list, .top-in .user-menu .menu-list { left: 16px; right: 16px; width: auto; min-width: 0; max-height: 70vh; overflow-y: auto; }
}

/* Plain text under the listings on the front page: explains the site to people and search engines */
.seo-about { padding-top: 1rem; padding-bottom: 2.5rem; color: var(--muted); }
.seo-about > * { max-width: 62rem; }
.seo-about h2 { font-size: 1.05rem; margin: 0 0 .5rem; color: var(--ink); }
.seo-about p { margin: 0 0 .7rem; font-size: .95rem; line-height: 1.6; }

/* Home: why it is safe to buy here */
.trust { padding-bottom: 0; }
.trust h2 { margin: 0 0 1rem; }
.trust-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust-grid li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .75rem; row-gap: .15rem; align-items: start; padding: .9rem 1rem; background: var(--sleeve); border: 1px solid var(--hair); border-radius: var(--tile-radius); }
.trust-grid svg { grid-row: 1 / span 2; width: 26px; height: 26px; fill: none; stroke: var(--violet); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust-grid strong { font-size: .98rem; }
.trust-grid span { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.slab-bid { margin: .15rem 0 0; font-weight: 700; font-size: .9rem; color: var(--violet); }
.tile-auction.is-soon { background: #C0261C; color: #fff; }
.want-alerts { margin: 1rem 0 .25rem; }

/* The site's own shop: listings are shown as sponsored by the site */
.slab-sponsor { display: block; width: fit-content; max-width: 100%; margin: .35rem .1rem .3rem; padding: .05rem .5rem; border: 1px solid var(--gold); border-radius: 999px; background: var(--sleeve); color: var(--ink); font-size: .74rem; font-weight: 700; line-height: 1.45; }
.sponsor-badge { display: inline-block; width: fit-content; max-width: 100%; padding: .1rem .7rem; border-radius: 999px; background: var(--gold-foil); color: var(--gold-ink); font-size: .8rem; font-weight: 700; line-height: 1.5; }
.sponsor-note { max-width: 62ch; margin: .6rem 0 0; color: var(--muted); font-size: .92rem; }
.sponsor-box { display: grid; gap: .6rem; margin-bottom: 1rem; padding: .8rem .9rem; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--control-radius); background: var(--sleeve); }
.sponsor-box p { margin: 0; font-size: .92rem; }
.sponsor-title { font-weight: 700; }
.gate-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.gate-list li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; font-size: .92rem; }
.gate-list li::before { content: "○"; width: 1rem; text-align: center; color: var(--muted); }
.gate-list li > span { flex: 1 1 8rem; }
.gate-list li.is-done::before { content: "✓"; color: #1E7A3C; font-weight: 700; }
:root[data-theme="dark"] .gate-list li.is-done::before { color: #6fcf77; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gate-list li.is-done::before { color: #6fcf77; } }

/* The Shop page and its link in the header */
.top-nav .nav-shop { color: #fff; font-weight: 700; text-decoration: none; letter-spacing: .01em; padding: .15rem .7rem; border: 1px solid #e6b422; border-radius: 999px; }
.top-nav > a.nav-shop:hover { background: #e6b422; color: #2A1B00; text-decoration: none; }
.shop-head { display: grid; gap: .35rem; justify-items: start; margin-bottom: 1rem; }
.shop-head h1 { margin: .2rem 0 0; }
.shop-intro { margin: 0; max-width: 62ch; color: var(--muted); }
.shop-rules { max-width: 40rem; margin-bottom: 1.25rem; }
.shop-restock { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .9rem; max-width: 40rem; margin-bottom: 1rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--sleeve); }
h1 + .sponsor-box { margin-top: .8rem; }
.shop-owner { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.shop-switch .btn { justify-self: start; }
.restock-label { font-weight: 700; }
.restock-clock { font-size: 1.6rem; line-height: 1.1; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.restock-note { flex-basis: 100%; color: var(--muted); font-size: .88rem; }
.rule-list { margin: 0; padding-left: 1.2rem; display: grid; gap: .25rem; font-size: .92rem; }
.shop-fee { color: var(--muted); font-size: .88rem; }
.sponsor-more { font-size: .88rem; font-weight: 700; justify-self: start; }
