/* Playtime landing page. Tokens and fonts live in base.css.
   Frame: a game store page. A filled bar across the top. The first screen is the search:
   the headline next to three number tiles, one search field as wide as the page, then the
   shelf of game boxes from edge to edge. Below it a bento of cards, the questions inside one
   card, and a closing card with spines standing along its bottom. Flat colour only. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-size-adjust: 100%; color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.5 var(--sans); }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; border-radius: 8px; background: #fff; color: var(--bg); font-weight: 600; }
.skip:focus { left: 12px; }
:root {
  --pad: max(24px, calc((100vw - 1280px) / 2));
  --r: 14px;            /* every card */
  --board: #2C2C31;     /* the shelf board */
  --lip: #1A1A1D;       /* its front edge */
  --hover: #2B2B30;     /* panel-2, hovered */
}

/* ---------- small pieces ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--accent); color: var(--bg);
  font: 700 16px/1 var(--sans); white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease-out, transform .15s ease-out;
}
.btn:hover { background: #FFD466; }
.btn:active { transform: scale(.97); }
.btn svg { flex: none; width: 18px; height: 18px; }
.btn--quiet { background: var(--panel-2); color: var(--text); }
.btn--quiet:hover { background: var(--hover); }
.note { font-size: 14px; color: var(--text-3); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* The requirements line: site.js turns each requirement into a tag. */
.tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.tags span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--panel-2); }

/* ---------- nav: a filled bar, links next to the wordmark ---------- */

.nav { position: sticky; top: 0; z-index: 50; background: var(--panel); border-bottom: 1px solid transparent; transition: border-color .2s ease-out; }
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: 28px; height: 68px; padding: 0 var(--pad); }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.logo img { border-radius: 8px; }
.nav__links { display: flex; gap: 2px; }
.nav__links a, .foot__links a { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 10px; font-size: 16px; font-weight: 600; color: var(--text-2); transition: background-color .15s ease-out, color .15s ease-out; }
.nav__links a:hover, .foot__links a:hover { background: var(--panel-2); color: var(--text); }
.nav .btn { height: 44px; margin-left: auto; padding: 0 18px; font-size: 15px; }

/* ---------- first screen: headline and tiles, the search field, the shelf ---------- */

.hero { padding: 44px 0 0; }
.hero > :not(.shelf):not(.shelf__board) { margin-left: var(--pad); margin-right: var(--pad); }
.hero__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; }
h1 { font-size: clamp(38px, 4.45vw, 64px); line-height: 1.02; letter-spacing: -.02em; font-weight: 800; }

.stats { display: grid; grid-template-columns: 172px 128px 128px; gap: 12px; }
.stats li { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: 16px 18px 15px; border-radius: var(--r); background: var(--panel); }
.stats b { font-size: 52px; line-height: 1; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats span { font-size: 15px; line-height: 1.25; color: var(--text-2); text-wrap: balance; }

.search { display: flex; align-items: center; height: 76px; margin-top: 28px; padding: 0 10px 0 22px; border: 2px solid rgba(255, 255, 255, .18); border-radius: 22px; background: var(--panel); font-size: 28px; }
.search__icon { flex: none; width: 26px; height: 26px; margin-right: 16px; color: var(--text-3); }
.search__at { font-weight: 500; color: var(--text-3); }
.search__nick { font-weight: 600; letter-spacing: -.01em; }
.search__caret { flex: none; width: 3px; height: 32px; margin-left: 4px; border-radius: 2px; background: var(--accent); animation: blink 1s steps(2) infinite; }
.search .btn { margin-left: auto; }
@keyframes blink { 50% { opacity: 0; } }

.shelfbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 24px; }
.sorts { display: flex; gap: 4px; padding: 4px; border-radius: var(--r); background: var(--panel); }
.sorts button { height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font: 600 15px var(--sans); cursor: pointer; transition: background-color .15s ease-out, color .15s ease-out; }
.sorts button:hover { color: var(--text); }
.sorts button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* The shelf. site.js gives each box --w and --h as plain numbers; --u turns them into a length. */
.shelf { --u: 1px; display: flex; align-items: flex-end; gap: 10px; height: calc(310 * var(--u) + 44px); margin-top: 6px; padding: 0 var(--pad); overflow: hidden; }
.spine {
  position: relative; flex: none; width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u)); display: grid; place-items: center;
  padding: 0; border: 0; border-radius: 8px 8px 0 0; background: var(--c); color: var(--ink);
  animation: land .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 70ms);
  transition: translate .2s cubic-bezier(.2, .8, .2, 1), background-color .15s ease-out, color .15s ease-out;
}
.spine:hover { translate: 0 -12px; }
.spine__t { padding: 0 10px 24px; text-align: center; font-size: 14px; line-height: 1.2; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.spine__h { position: absolute; left: 1px; bottom: calc(100% + 8px); color: var(--text); font-size: 15px; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.spine__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.spine__p { position: absolute; left: 8px; bottom: 8px; padding: 5px 7px 4px; border-radius: 6px; background: var(--bg); color: #fff; font-size: 11px; line-height: 1; font-weight: 700; letter-spacing: .05em; }
.spine.is-locked { background: var(--panel-2); }
button.spine { color: var(--text-2); font: 800 28px/1 var(--sans); letter-spacing: -.01em; cursor: pointer; }
button.spine:hover { background: var(--hover); color: var(--text); }
@keyframes land { from { opacity: 0; translate: 0 -46px; } }
.shelf__board { height: 14px; background: var(--board); border-bottom: 6px solid var(--lip); }

.more { display: flex; justify-content: flex-end; margin-top: 20px; }
.sheet { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px 40px; margin-top: 20px; padding: 22px 24px 22px 28px; border: 2px solid var(--accent); border-radius: var(--r); background: var(--panel); scroll-margin-bottom: 24px; animation: rise .4s cubic-bezier(.2, .8, .2, 1); }
.sheet[hidden], .more[hidden] { display: none; }
.sheet:focus { outline: none; }
.sheet h2 { font-size: 28px; line-height: 1.1; letter-spacing: -.015em; font-weight: 800; }
.sheet p { margin-top: 6px; font-size: 16px; color: var(--text-2); text-wrap: pretty; }
@keyframes rise { from { opacity: 0; translate: 0 12px; } }

/* ---------- the bento: player card, two shelves, three numbers ---------- */

h2 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.06; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; padding: 128px var(--pad) 0; }
.tile { padding: 36px; border-radius: var(--r); background: var(--panel); }
.lede { margin-top: 14px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; color: var(--text-2); text-wrap: pretty; }
.inset { border-radius: 12px; background: var(--bg); }

.tile--card { grid-column: span 7; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 364px); gap: 32px; }
.tile__text { display: flex; flex-direction: column; }
.ticks { display: grid; gap: 10px; margin-top: auto; padding-top: 28px; font-size: 17px; line-height: 1.3; font-weight: 600; }
.ticks li { position: relative; padding-left: 28px; text-wrap: pretty; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .34em; width: 12px; height: 6px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); rotate: -45deg; }

.pcard { display: flex; flex-direction: column; padding: 24px; }
.pcard__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pcard__nick { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.pcard__k { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 8px; background: var(--panel-2); font-size: 13px; font-weight: 600; color: var(--text-2); }
.pcard__n { margin-top: 26px; font-size: 92px; line-height: .86; font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.pcard__n span { margin-left: 6px; font-size: 32px; letter-spacing: 0; color: var(--text-3); }
.pcard__games { display: grid; gap: 12px; margin: 26px 0 24px; }
.pcard__games li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "art title hours" "art bar bar"; align-content: center; gap: 8px 14px; font-size: 16px; line-height: 1.2; font-weight: 600; }
/* .cover is the plain block site.js puts in when a cover image cannot be loaded. */
.pcard__games img, .pcard__games .cover { grid-area: art; width: 36px; height: 54px; border-radius: 5px; object-fit: cover; background: var(--c); }
.pcard__games span { grid-area: title; align-self: end; }
.pcard__games i { grid-area: bar; align-self: start; height: 10px; border-radius: 5px; background: var(--panel-2); }
.pcard__games i::before { content: ''; display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--c); }
.pcard__games b { grid-area: hours; align-self: end; font-weight: 700; font-variant-numeric: tabular-nums; }
.pcard__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pcard__meta li { flex: 1 1 auto; padding: 12px 14px 13px; border-radius: 10px; background: var(--panel); }
.pcard__meta span { display: block; font-size: 13px; color: var(--text-2); }
.pcard__meta b { font-size: 17px; font-weight: 700; }

.tile--duo { grid-column: span 5; display: flex; flex-direction: column; }
.duo { margin-top: auto; padding: 18px 20px; }
.tile--duo .lede { margin-bottom: 24px; }
.duo__who { margin-bottom: 8px; font-size: 15px; line-height: 1.2; font-weight: 700; }
.mini { display: flex; align-items: flex-end; gap: 4px; height: 54px; margin-bottom: 16px; border-bottom: 8px solid var(--board); }
.mini i { flex: 1 1 var(--w); height: 100%; border-radius: 4px 4px 0 0; background: var(--c, var(--panel-2)); }
.mini i:nth-child(2n) { height: 78%; }
.mini i:nth-child(3n) { height: 90%; }
.mini i:nth-child(5n) { height: 66%; }
.duo__common { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.duo__sum { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 1.2; color: var(--text-2); }
.duo__sum b { font-size: 48px; line-height: .9; font-weight: 800; letter-spacing: -.03em; color: var(--text); }
.duo__covers { display: flex; gap: 6px; }
.duo__covers img, .duo__covers .cover { width: 40px; height: 60px; border-radius: 6px; object-fit: cover; background: var(--s1); }
.duo__covers :nth-child(2) { background: var(--s3); }
.duo__covers :nth-child(3) { background: var(--s4); }

.facts { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); gap: 16px; }
.tile--num { display: flex; flex-direction: column; padding: 30px 32px 32px; }
.num { margin-bottom: auto; font-size: clamp(120px, 13.4vw, 192px); line-height: .8; font-weight: 800; letter-spacing: -.045em; }
.tile--num:nth-of-type(1) .num { color: var(--s1); }
.tile--num:nth-of-type(2) .num { color: var(--s3); }
.tile--num:nth-of-type(3) .num { color: var(--s4); }
.tile--num h3 { margin-top: 28px; font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.tile--num h3 + p { max-width: 32em; margin-top: 6px; font-size: 16px; color: var(--text-2); text-wrap: pretty; }

/* ---------- questions: one card, divided rows ---------- */

.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 48px; align-items: start; padding: 128px var(--pad) 0; }
.faq h2 { font-size: clamp(34px, 3.9vw, 56px); line-height: 1.02; letter-spacing: -.025em; font-weight: 800; }
.faq__box { border-radius: var(--r); background: var(--panel); }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 22px 22px 28px; font-size: 20px; line-height: 1.25; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline-offset: -4px; border-radius: 12px; }
.faq summary svg { flex: none; width: 36px; height: 36px; padding: 10px; border-radius: 10px; background: var(--panel-2); color: var(--text); transition: background-color .15s ease-out; }
.faq summary path { transform-origin: 8px 8px; transition: rotate .2s ease-out; }
.faq summary:hover svg { background: var(--hover); }
.faq details[open] summary path { rotate: 45deg; }
.faq details p { max-width: 60ch; padding: 0 28px 26px; color: var(--text-2); text-wrap: pretty; }

/* ---------- closing card: the spines stand on its bottom edge ---------- */

.final { padding: 128px var(--pad) 0; }
.final__card { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); min-height: 440px; border-radius: var(--r); background: var(--panel); overflow: hidden; }
.final__card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: var(--board); }
.final__text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 56px 0 70px 56px; }
.final h2 { font-size: clamp(44px, 6.1vw, 88px); line-height: .96; letter-spacing: -.03em; font-weight: 800; }
.final .btn { margin-top: 36px; }
.final .tags { margin-top: 16px; }
.final__shelf { display: flex; align-items: flex-end; gap: 6px; height: 330px; align-self: end; margin: 0 -22px 14px 24px; }
.final__shelf i { position: relative; flex: 1 1 var(--w); height: var(--h); border-radius: 4px 4px 0 0; background: var(--c); }
/* The label band every game case has near the top of its spine. */
.final__shelf i::before { content: ''; position: absolute; left: 0; right: 0; top: 18px; height: 10px; background: rgba(14, 14, 16, .26); }

/* ---------- footer: the bar again ---------- */

.foot { margin-top: 112px; background: var(--panel); }
.foot__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 48px; padding: 40px var(--pad) 48px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 2px; margin: 10px 0 0 -14px; }
.foot__links a { font-size: 15px; font-weight: 500; }
.foot p { max-width: 68ch; padding-top: 8px; font-size: 14px; line-height: 1.55; color: var(--text-2); }

.js [data-reveal] { opacity: 0; translate: 0 20px; transition: opacity .7s ease-out, translate .8s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* ---------- smaller screens ---------- */

@media (max-width: 1220px) {
  .hero__top { gap: 28px; }
  .stats { grid-template-columns: 136px 104px 108px; gap: 10px; }
  .stats li { padding: 14px 14px 13px; }
  .stats b { font-size: 40px; }
  .stats span { font-size: 14px; }
  /* The two feature cards go full width: words on the left, the interface on the right. */
  .tile--card, .tile--duo { grid-column: 1 / -1; }
  .tile--card { grid-template-columns: minmax(0, 1fr) clamp(344px, 44%, 480px); align-items: center; }
  .ticks { margin-top: 0; }
  .tile--duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; }
  .tile--duo h2 { align-self: end; }
  .tile--duo .lede { align-self: start; margin-bottom: 0; }
  .duo { grid-column: 2; grid-row: 1 / 3; align-self: center; margin-top: 0; }
}
@media (max-width: 1040px) {
  .hero__top { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .stats { grid-template-columns: 1.3fr 1fr 1fr; max-width: 520px; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .bento, .faq, .final { padding-top: 96px; }
  .facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tile--num:nth-of-type(3) { grid-column: 1 / -1; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .final__card { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .final__text { padding: 40px 32px 0; }
  .final__shelf { height: 190px; margin: 44px -20px 14px 32px; }
  .foot { margin-top: 96px; }
  .foot__in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  /* One column inside the feature cards: words, then the interface. */
  .tile--card { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tile--duo { display: flex; }
  .tile--duo h2, .tile--duo .lede, .duo { align-self: stretch; }
  .tile--duo .lede { margin-bottom: 24px; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }
  .nav__in { height: 60px; }
  .logo { font-size: 20px; }
  .nav .btn { height: 40px; padding: 0 16px; }
  .hero { padding-top: 28px; }
  .stats { grid-template-columns: 1.45fr 1fr 1fr; gap: 8px; max-width: none; }
  .stats li { padding: 12px 12px 11px; }
  .stats b { font-size: 30px; }
  .stats span { font-size: 13px; }
  .search { height: 64px; margin-top: 16px; padding: 0 8px 0 16px; border-radius: 18px; font-size: 21px; }
  .search__icon { display: none; }
  .search__caret { height: 26px; }
  .search .btn { height: 44px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
  .shelfbar { margin-top: 16px; }
  .sorts { width: 100%; }
  .sorts button { flex: 1 1 auto; padding: 0 8px; font-size: 14px; }
  .shelf { --u: .64px; padding: 0 24px; overflow-x: auto; scrollbar-width: none; }
  .shelf::-webkit-scrollbar { display: none; }
  .spine__h { font-size: 14px; }
  button.spine { font-size: 22px; }
  .more .btn { width: 100%; }
  .lede { font-size: 17px; line-height: 1.5; }
  .sheet { grid-template-columns: minmax(0, 1fr); padding: 22px 20px 20px; }
  .sheet h2 { font-size: 24px; }
  .sheet .actions { display: grid; }
  .tile { padding: 24px; }
  .tile--card .pcard { margin: 0 -8px -8px; padding: 20px; }
  .pcard__n { font-size: min(84px, 21vw); }
  .pcard__meta li { padding: 10px 11px 11px; }
  .duo { margin: 0 -8px -8px; padding: 18px 18px 16px; }
  .duo__sum b { font-size: 44px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .tile--num { padding: 24px 24px 26px; }
  .num { font-size: min(128px, 30vw); }
  .faq summary { padding: 18px 16px 18px 20px; font-size: 18px; }
  .faq details p { padding: 0 20px 22px; }
  .final__text { padding: 32px 24px 0; }
  .final .btn { width: 100%; margin-top: 28px; }
  .final__shelf { height: 150px; margin: 36px -9px 14px 24px; gap: 4px; }
  .final__shelf i { border-radius: 3px 3px 0 0; }
  .final__shelf i::before { top: 12px; height: 7px; }
  .foot__links { display: grid; grid-template-columns: auto auto; justify-content: start; }
  .foot__in { padding-top: 32px; padding-bottom: 40px; }
}

@media (max-width: 360px) {
  .search { padding-left: 12px; font-size: 19px; }
  .search .btn { padding: 0 11px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; translate: 0 0; transition: none; }
  .spine, .sheet { animation: none; }
  .spine, .faq summary path { transition: none; }
  .search__caret { animation: none; }
}

/* ---------- every screen size (added 2026-11-13) ---------- */
@media (min-width: 1600px) { :root { --pad: max(24px, calc((100vw - min(1280px + (100vw - 1600px) * 1.045, 1856px)) / 2)); } }
@media (min-width: 1600px) {
  h1 { font-size: clamp(64px, 25.6px + 2.4vw, 80px); }
  h2 { font-size: clamp(40px, 22px + 1.125vw, 48px); }
  .lede { font-size: clamp(20px, 14px + 0.375vw, 23px); }
}
/* ---------- end every screen size ---------- */
