/* CALIBRE Play - homepage (guess the grade). Ported from the approved mock-up. */
html body .gtg-wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: 16px; }
html body .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html body .gtg-mat { border-bottom: 1px solid var(--play-line); }
html body .gtg-game { display: grid; grid-template-columns: 1fr minmax(240px, 340px); gap: 26px 44px; align-items: center; padding-block: 26px 34px; }
html body .gtg-copy { min-width: 0; }
html body .gtg-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
html body .gtg-pill { font: 800 12.5px/1 var(--f-body); color: var(--play-ink); padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--play-grass) 22%, var(--play-card)); border: 1.5px solid var(--play-grass); white-space: nowrap; }
html body .gtg-pill.full { border-color: var(--play-electric); background: color-mix(in srgb, var(--play-electric) 18%, var(--play-card)); }
html body .gtg-game h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.02; margin: 10px 0 0; }
html body .gtg-lede { font-size: 18px; max-width: 36ch; margin: 10px 0 0; color: var(--play-ink); }

/* guess buttons: dark tiles, coloured number + outline */
html body .gtg-guess { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; max-width: 470px; }
html body .gtg-guess .g { --tone: var(--play-ink); font: 400 26px/1 var(--f-display); padding: 14px 4px 12px; border: 2px solid var(--tone); border-radius: 14px; background: var(--play-card); color: var(--tone); box-shadow: var(--play-shadow); cursor: pointer; transition: transform .08s, box-shadow .08s, opacity .2s; min-height: 44px; }
html body .gtg-guess .g small { display: block; font: 800 11px/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; color: var(--play-ink); opacity: .78; }
html body .gtg-guess .g:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0,0,0,.45); }
html body .gtg-guess .g[data-v="8.5"] { --tone: var(--play-water); } html body .gtg-guess .g[data-v="9"] { --tone: var(--play-grass); }
html body .gtg-guess .g[data-v="9.5"] { --tone: var(--play-psychic); } html body .gtg-guess .g[data-v="10"] { --tone: var(--play-electric); }
html body .gtg-guess[aria-disabled="true"] .g { opacity: .35; pointer-events: none; }
html body .gtg-guess .g.picked { opacity: 1; outline: 3px solid var(--tone); outline-offset: 2px; background: color-mix(in srgb, var(--tone) 22%, var(--play-card)); }
html body .gtg-score { display: flex; gap: 10px; align-items: center; margin-top: 14px; font-weight: 800; font-size: 14px; }
html body .gtg-score .dots { display: flex; gap: 5px; }
html body .gtg-score .dots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(242,242,251,.45); background: transparent; }
html body .gtg-score .dots i.now { background: var(--play-ink); border-color: var(--play-ink); }
html body .gtg-score .dots i.ok { background: var(--play-grass); border-color: var(--play-grass); }
html body .gtg-score .dots i.no { background: var(--play-fire); border-color: var(--play-fire); }

/* the card, the slab label, the rulers */
html body .gtg-case { position: relative; width: min(100%, 330px); margin: 0 auto; perspective: 900px; }
html body .slab2 { position: relative; border-radius: 18px; transform-style: preserve-3d; transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform .25s ease-out, padding .45s cubic-bezier(.2,.9,.3,1), background .3s, box-shadow .3s; cursor: grab; touch-action: pan-y; }
html body .slab2.revealed { padding: 10px; background: linear-gradient(160deg, rgba(255,255,255,.85), rgba(225,232,245,.7)); box-shadow: 0 0 0 2px rgba(255,255,255,.35), 0 8px 0 rgba(0,0,0,.45), inset 0 0 18px rgba(255,255,255,.9); }
html body .slab2 .label { height: 0; overflow: hidden; transition: height .45s cubic-bezier(.2,.9,.3,1); }
html body .slab2.revealed .label { height: 76px; }
html body .slab2 .label .in { margin-bottom: 9px; height: 67px; display: grid; grid-template-columns: 1fr 74px; gap: 8px; background: #fbfaf7; border: 2px solid #c8553d; border-radius: 6px; padding: 6px 6px 6px 9px; color: #17162b; }
html body .slab2 .brandline { font: 700 15px/1 var(--f-brand); letter-spacing: .2em; color: #17162b; }
html body .slab2 .nm { font: 800 12.5px/1.2 var(--f-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; color: #17162b; }
html body .slab2 .meta { font: 500 10.5px/1.25 var(--f-data); color: #545675; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body .slab2 .gbox { background: #c8553d; color: #fff; border-radius: 4px; display: grid; place-items: center; text-align: center; padding: 2px; }
html body .slab2 .gbox b { font: 400 26px/1 var(--f-display); color: #fff; }
html body .slab2 .gbox span { font: 800 8.5px/1.1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
html body .slab2 .scan { position: relative; aspect-ratio: 760 / 1062; border-radius: 5% / 3.6%; overflow: hidden; box-shadow: 0 16px 24px rgba(0,0,0,.35); background: var(--play-card); }
html body .slab2 .scan img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
html body .slab2 .shine { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; opacity: .55; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.9) 45%, rgba(255,120,200,.55) 52%, rgba(120,220,255,.55) 58%, transparent 72%); background-size: 260% 260%; background-position: var(--mx, 50%) var(--my, 50%); }
@property --mx { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@keyframes gtg-sway { 0%, 100% { --mx: 30%; } 50% { --mx: 70%; } }
html body .slab2.idle .shine { animation: gtg-sway 5s ease-in-out infinite; }
html body .slab2 .ruler { position: absolute; display: none; font: 500 11px/1 var(--f-data); color: #fff; pointer-events: none; }
html body .slab2.revealed .ruler { display: flex; animation: gtg-pop .4s ease .35s both; }
html body .slab2 .ruler.h { left: 0; right: 0; top: 50%; height: 0; }
html body .slab2 .ruler.h::before { content: ""; position: absolute; left: 0; right: 0; top: 0; border-top: 2px dashed rgba(255,255,255,.95); filter: drop-shadow(0 0 1.5px rgba(0,0,0,.9)); }
html body .slab2 .ruler.v { top: 0; bottom: 0; left: 50%; width: 0; }
html body .slab2 .ruler.v::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; border-left: 2px dashed rgba(255,255,255,.95); filter: drop-shadow(0 0 1.5px rgba(0,0,0,.9)); }
html body .slab2 .ruler i { position: absolute; font-style: normal; background: #17162b; color: #f2f2fb; padding: 4px 6px; border-radius: 6px; white-space: nowrap; }
html body .slab2 .ruler.h i.a { left: 6px; transform: translateY(-50%); } html body .slab2 .ruler.h i.b { right: 6px; transform: translateY(-50%); }
html body .slab2 .ruler.v i.a { top: 8px; left: 0; transform: translateX(-50%); } html body .slab2 .ruler.v i.b { bottom: 8px; left: 0; transform: translateX(-50%); }
html body .slab2 .ruler i.worst { background: var(--play-fire); color: var(--play-on); }
@keyframes gtg-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
html body .gtg-hint { text-align: center; font-size: 13px; color: var(--play-muted); margin-top: 10px; }

/* result panel */
html body .gtg-result { padding: 16px; margin-top: 16px; max-width: 470px; }
html body .gtg-result h2 { font-size: 26px; margin: 0; }
html body .gtg-result .card-id { font-size: 14px; color: var(--play-muted); margin: 4px 0 10px; }
html body .gtg-result .verdict { font: 400 15px/1 var(--f-display); display: inline-block; padding: 6px 10px; border-radius: 8px; border: 2px solid; margin-bottom: 8px; color: var(--play-ink); }
html body .gtg-result .verdict.ok { border-color: var(--play-grass); background: color-mix(in srgb, var(--play-grass) 30%, var(--play-card)); }
html body .gtg-result .verdict.no { border-color: var(--play-electric); background: color-mix(in srgb, var(--play-electric) 26%, var(--play-card)); }
html body .gtg-result .subs { display: grid; gap: 8px; margin: 12px 0; }
html body .gtg-result .sub { display: grid; grid-template-columns: 92px 1fr 44px; gap: 10px; align-items: center; font-weight: 800; font-size: 14px; }
html body .gtg-result .track, html body .gtg-result .fill { display: block; }
html body .gtg-result .track { height: 12px; border-radius: 999px; background: var(--play-card-2); overflow: hidden; border: 1.5px solid var(--play-line); }
html body .gtg-result .fill { height: 100%; width: 0; border-radius: 999px; transition: width .7s cubic-bezier(.2,.9,.3,1); }
html body .gtg-result .num { font-family: var(--f-data); text-align: right; font-variant-numeric: tabular-nums; }
html body .gtg-result .sub.c .fill { background: var(--play-water); } html body .gtg-result .sub.k .fill { background: var(--play-fire); }
html body .gtg-result .sub.e .fill { background: var(--play-grass); } html body .gtg-result .sub.s .fill { background: var(--play-psychic); }
html body .gtg-result .why { margin: 0; font-size: 15px; }
html body .gtg-result .split { font: 500 13px/1.5 var(--f-data); color: var(--play-muted); margin: 6px 0 10px; }
html body .gtg-result .corners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 4px; }
html body .gtg-result .corners figure { margin: 0; text-align: center; font: 800 11px/1.2 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--play-muted); }
html body .gtg-result .corners img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; border: 2px solid var(--play-line); display: block; margin-bottom: 4px; object-fit: cover; background: #0a0f1b; }
html body .gtg-result .rule { font-size: 13.5px; color: var(--play-muted); margin: 8px 0 0; }
html body .gtg-result .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
html body .gtg-after { display: block; margin-top: 14px; font-weight: 800; color: var(--play-fire-ink); text-decoration: none; }
html body .gtg-after:hover { text-decoration: underline; }

/* sections below */
html body .gtg-sleeve { padding-block: 46px; }
html body .gtg-sleeve.gtg-tight { padding-top: 0; }
html body .gtg-sleeve h2 { font-size: clamp(28px, 4.6vw, 44px); margin: 0; }
html body .gtg-intro { max-width: 60ch; color: var(--play-muted); margin: 10px 0 0; font-size: 17px; }
html body .gtg-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
html body .gtg-tiles .tile { --tone: var(--play-ink); border: 1.5px solid color-mix(in srgb, var(--tone) 55%, var(--play-card)); border-radius: var(--play-r); padding: 16px; background: color-mix(in srgb, var(--tone) 16%, var(--play-card)); box-shadow: var(--play-shadow); min-width: 0; }
html body .gtg-tiles .tile h3 { font: 400 22px/1.1 var(--f-display); color: var(--tone); margin: 0; }
html body .gtg-tiles .tile p { margin: 8px 0 0; font-size: 15px; font-weight: 600; }
html body .gtg-tiles .tile .stat { font: 500 13px/1.3 var(--f-data); margin-top: 10px; display: block; color: var(--play-muted); }
html body .gtg-tiles .tile.c { --tone: var(--play-water); } html body .gtg-tiles .tile.k { --tone: var(--play-fire); }
html body .gtg-tiles .tile.e { --tone: var(--play-grass); } html body .gtg-tiles .tile.s { --tone: var(--play-psychic); }
html body .gtg-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
html body .gtg-steps .step { background: var(--play-card); border: 1px solid var(--play-line); border-radius: var(--play-r); padding: 16px; min-width: 0; }
html body .gtg-steps .step b { font: 400 16px/1 var(--f-display); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--play-card); color: var(--play-electric); border: 2px solid var(--play-electric); margin-bottom: 8px; }
html body .gtg-steps .step h3 { font-size: 20px; margin: 0; }
html body .gtg-steps .step p { margin: 6px 0 0; color: var(--play-muted); font-size: 15px; }
html body .gtg-offer { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: center; background: color-mix(in srgb, var(--play-ghost) 30%, var(--play-card)); border: 1.5px solid color-mix(in srgb, var(--play-ghost) 70%, var(--play-card)); border-radius: 24px; padding: 26px; box-shadow: 0 7px 0 rgba(0,0,0,.45); }
html body .gtg-offer h2 { font-size: clamp(30px, 5vw, 50px); }
html body .gtg-offer .left p { margin: 10px 0 16px; font-size: 17px; }
html body .gtg-offer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-weight: 600; }
html body .gtg-offer li { display: flex; gap: 10px; align-items: baseline; }
html body .gtg-offer li::before { content: ""; flex: 0 0 10px; height: 10px; border-radius: 50%; background: var(--play-electric); transform: translateY(-1px); }
html body .gtg-offer .meter { margin-top: 12px; font: 500 13px var(--f-data); }
html body .gtg-offer .meter .track { height: 10px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid var(--play-line); overflow: hidden; margin-top: 6px; max-width: 320px; }
html body .gtg-offer .meter .fill { height: 100%; background: var(--play-electric); }
html body .gtg-strip { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; border-top: 1px dashed var(--play-line); padding-block: 22px; }
html body .gtg-strip:last-child { border-bottom: 1px dashed var(--play-line); }
html body .gtg-strip h2 { font-size: clamp(22px, 3.4vw, 32px); max-width: 24ch; }
html body .gtg-strip p { margin: 6px 0 0; color: var(--play-muted); max-width: 52ch; }
html body .gtg-verify { display: flex; gap: 8px; flex-wrap: wrap; }
html body .gtg-verify input { min-width: 0; width: 220px; padding: 12px 14px; font: 500 15px var(--f-data); }
html body #fx { position: fixed; inset: 0; pointer-events: none; z-index: 70; width: 100%; height: 100%; }

@media (max-width: 860px) { html body .gtg-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  html body .gtg-game { grid-template-columns: 1fr; padding-block: 12px 20px; gap: 10px; }
  html body .gtg-copy { display: contents; }
  html body .gtg-head { order: 1; } html body .gtg-case { order: 2; width: min(100%, 250px, 25vh); }
  html body .gtg-guess, html body .gtg-score, html body .gtg-result { order: 3; }
  html body .gtg-guess { margin-top: 0; max-width: none; } html body .gtg-score { margin-top: 0; justify-content: center; }
  html body .gtg-game h1 { font-size: 34px; margin-top: 6px; } html body .gtg-lede { font-size: 15px; margin-top: 6px; }
  html body .gtg-hint { margin-top: 6px; font-size: 12px; }
  html body .gtg-guess .g { padding: 11px 4px 9px; font-size: 23px; }
  html body .gtg-result { max-width: none; }
  html body .gtg-steps, html body .gtg-offer { grid-template-columns: 1fr; }
  html body .gtg-offer { padding: 20px; }
  html body .gtg-verify input { flex: 1 1 160px; }
}
@media (max-width: 420px) { html body .gtg-tiles { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  html body .slab2, html body .slab2 .label, html body .slab2 .ruler, html body .slab2 .shine, html body .gtg-result .fill { transition: none !important; animation: none !important; }
}

/* sizing: padding inside widths (the mock-up set this globally; scoped to the homepage here) */
html body main, html body main *, html body main *::before, html body main *::after { box-sizing: border-box; }
html body .slab2 .label .in > div:first-child { min-width: 0; }

/* "Skip the game" link for people who just want to order (2026-10-07) */
html body .gtg-skip { display: inline-block; margin-top: 10px; font-weight: 800; font-size: 14px; color: var(--play-fire-ink); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
@media (max-width: 760px) { html body .gtg-skip { order: 3; text-align: center; margin-top: 0; } }

/* offer box: breathing room around the button (owner screenshot, 7 Oct) */
html body .gtg-offer .left p { margin: 10px 0 18px; }
html body .gtg-offer .meter { margin-top: 18px; }

/* anchored sections (#how, #pricing) land below the sticky top bar, not under it */
html body section[id], html body [id="how"], html body [id="pricing"] { scroll-margin-top: 84px; }

/* Questions collectors ask (homepage) */
html body .gtg-faq { margin-top: 18px; border-top: 1px solid var(--play-line); max-width: 760px; }
html body .gtg-faqi { border-bottom: 1px solid var(--play-line); }
html body .gtg-faqi summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 2px; min-height: 44px; font: 800 17px/1.35 var(--f-body); color: var(--play-ink); }
html body .gtg-faqi summary::-webkit-details-marker { display: none; }
html body .gtg-faqi summary::after { content: "+"; flex: 0 0 auto; font: 400 26px/1 var(--f-body); color: var(--play-fire-ink); transition: transform .15s; }
html body .gtg-faqi[open] summary::after { transform: rotate(45deg); }
html body .gtg-faqa p { margin: 0 0 18px; padding: 0 2px; color: var(--play-muted); font-size: 15.5px; line-height: 1.6; max-width: 64ch; }
html body .gtg-faqa a { color: var(--play-fire-ink); }
html body .gtg-faq-all { display: inline-block; margin-top: 14px; font-weight: 800; color: var(--play-fire-ink); padding: 6px 0; }
@media (prefers-reduced-motion: reduce) { html body .gtg-faqi summary::after { transition: none; } }

/* Browse the cards without guessing: arrows, "Just show me the grade" (2026-10-07).
   Phones: arrows sit in the empty space either side of the card, so nothing moves down.
   Wider screens: the card sits against the column edge, so the arrows sit under it, either side of the button. */
html body .gtg-stage { position: relative; perspective: 900px; }
html body .gtg-arrow { position: absolute; top: calc(100% + 10px); z-index: 2; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--play-line); background: var(--play-card); color: var(--play-ink); cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,.45); }
html body .gtg-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
html body .gtg-arrow.prev { left: 0; } html body .gtg-arrow.next { right: 0; }
html body .gtg-arrow:hover, html body .gtg-peek:hover { border-color: var(--play-ink); }
html body .gtg-arrow:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.45); }
html body .gtg-arrow:focus-visible, html body .gtg-peek:focus-visible { outline: 3px solid var(--play-electric); outline-offset: 2px; }
html body .gtg-browse { display: flex; justify-content: center; margin-top: 10px; }
html body .gtg-peek { white-space: nowrap; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--play-line); background: transparent; color: var(--play-ink); font: 800 14px/1 var(--f-body); cursor: pointer; }
html body .gtg-peek.used { visibility: hidden; }
html body .gtg-score { flex-wrap: wrap; row-gap: 6px; }
html body .gtg-score .dots i.seen { background: var(--play-muted); border-color: var(--play-muted); }
html body .gtg-score .dots i.now { outline: 2px solid var(--play-ink); outline-offset: 2px; }
@media (max-width: 760px) {
  html body .gtg-arrow { top: 50%; margin-top: -22px; }
  html body .gtg-arrow.prev { left: -58px; } html body .gtg-arrow.next { right: -58px; }
  html body .gtg-browse { margin-top: 8px; }
  html body .gtg-peek { min-height: 40px; font-size: 13.5px; }
  html body .gtg-hint { display: none; }
}

/* Centering tags (owner, 7 Oct): no lines through the middle of the card - centering compares border widths,
   it isn't measured from the centre. Each tag now sits on the edge whose border it describes, with a bar on that edge,
   and a note under the card says the picture is an illustration. */
html body .slab2 .ruler.h::before, html body .slab2 .ruler.v::before { display: none; }
html body .slab2 .ruler i { border: 0 solid #fff; }
html body .slab2 .ruler.h i.a { left: 0; border-left-width: 4px; border-radius: 0 6px 6px 0; }
html body .slab2 .ruler.h i.b { right: 0; border-right-width: 4px; border-radius: 6px 0 0 6px; }
html body .slab2 .ruler.v i.a { top: 0; border-top-width: 4px; border-radius: 0 0 6px 6px; }
html body .slab2 .ruler.v i.b { bottom: 0; border-bottom-width: 4px; border-radius: 6px 6px 0 0; }
html body .gtg-browse { display: grid; place-items: center; }
html body .gtg-browse > * { grid-area: 1 / 1; }
html body .gtg-note { visibility: hidden; margin: 0; max-width: min(300px, calc(100vw - 32px)); padding: 0 50px; text-align: center; font-size: 12.5px; line-height: 1.35; color: var(--play-muted); }
html body .gtg-peek.used { display: none; }
html body .gtg-peek.used + .gtg-note { visibility: visible; }
@media (max-width: 760px) { html body .gtg-note { padding: 0; max-width: calc(100vw - 32px); width: max-content; } }
@media (min-width: 761px) { html body .gtg-note { padding: 54px 0 0; max-width: 100%; } }  /* wider screens: the note goes under the arrows, full card width */

/* Guides for collectors (homepage, 7 Oct 2026) */
html body .gtg-guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
html body .gtg-guide { --tone: var(--play-water); display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 14px; border-radius: var(--play-r); background: var(--play-card); border: 1px solid var(--play-line); border-top: 3px solid var(--tone); color: var(--play-ink); text-decoration: none; min-width: 0; }
html body .gtg-guide:nth-child(2) { --tone: var(--play-grass); } html body .gtg-guide:nth-child(3) { --tone: var(--play-psychic); }
html body .gtg-guide:hover { border-color: var(--play-ink); border-top-color: var(--tone); }
html body .gtg-guide:focus-visible { outline: 3px solid var(--play-electric); outline-offset: 2px; }
html body .gtg-guide-t { font: 800 17px/1.3 var(--f-body); }
html body .gtg-guide-x { font-size: 14.5px; line-height: 1.5; color: var(--play-muted); }
html body .gtg-guide-r { margin-top: auto; padding-top: 4px; font-weight: 800; font-size: 14px; color: var(--play-fire-ink); }
@media (max-width: 760px) { html body .gtg-guides { grid-template-columns: 1fr; } }
