/*
  The design system: the site's pages (Django templates) and the pieces the
  player shares with them (buttons, panels, messages, fields).

  Every colour, the font, corner roundness and the set pictures come from the
  theme (`/theme.css`, written by pages/theme.py from the admin's theme
  editor). This file uses only those variables, never a colour of its own, so
  a change in the editor reaches every page. The variables:

    --color-bg  --color-surface  --color-surface-glass  --color-text  --color-muted
    --color-border  --color-primary  --color-on-primary  --color-primary-soft
    --color-accent  --color-on-accent  --color-accent-soft  --color-good
    --color-good-soft  --color-bad  --color-bad-soft  --color-backdrop
    --color-button  --color-on-button  --color-band  --color-on-band  --color-band-light
    --color-signup-text  --color-find-text  --color-second-text  --color-demo-link
    --font-body  --font-heading  --radius  --radius-small  --radius-large
    --picture-home-banner  --picture-scene-background  --picture-end-screen
    (each picture also has a "-display": block when set, none when not)

  Logical properties (margin-inline-start, padding-inline…) instead of
  left/right, so layouts mirror by themselves when dir="rtl".

  Spacing steps: 0.25 · 0.5 · 0.75 · 1 · 1.5 · 2 · 3 rem.
  Type: 1rem body (the browser's size, so a TV's zoom setting is respected);
  headings step up by about a quarter each.
*/

* { box-sizing: border-box; }

/* accounts/show-password: the theme's heading font (the text font unless one is picked). */
h1, h2, h3, .site-header__brand { font-family: var(--font-heading); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.25; font-weight: 700; margin-block: 0 0.75rem; }
h1 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); }
h2 { font-size: 1.4rem; margin-block-start: 0.5rem; }
h3 { font-size: 1.15rem; }
p { margin-block: 0 1rem; }

/* Nikud sits above and below letters; give Hebrew content a little more room. */
.content:lang(he), .content[dir="rtl"], [dir="auto"].content { line-height: 1.9; }

a { color: var(--color-primary); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

/* One focus ring everywhere, for keyboards and TV remotes. */
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* --- Page frame: header, page, footer --- */

/* The footer stays at the bottom of short pages. */
.site-shell { display: flex; flex-direction: column; min-height: 100vh; }
.site-shell > main { flex: 1 0 auto; width: 100%; }

/* For keyboard users: the first Tab shows a link straight past the header. */
.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 20;
  padding: 0.5rem 1rem; border-radius: var(--radius);
  background: var(--color-primary); color: var(--color-on-primary);
}
.skip-link:focus { top: 0.5rem; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  padding-block: 0.75rem;
  padding-inline: 1.5rem;
  background: var(--color-surface);
  border-block-end: 1px solid var(--color-border);
}
.site-header__brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 1.15rem; color: var(--color-text); text-decoration: none;
}
.site-header__logo { display: block; height: 2.25rem; width: auto; max-width: 10rem; object-fit: contain; }
.site-header__nav { display: flex; align-items: center; gap: 0.5rem 1.25rem; flex-wrap: wrap; }
.site-header__nav > a { color: var(--color-text); text-decoration: none; font-weight: 600; font-family: var(--font-heading); }
.site-header__nav > a:hover, .site-header__nav > a[aria-current="page"] {
  color: var(--color-primary); text-decoration: underline; text-underline-offset: 0.3em;
}
/* The header's "Sign up": its own text colour in the theme (site/home-band-loop-and-text-colour). */
.site-header__nav > a.button { color: var(--color-signup-text); text-decoration: none; }

/* Account menu: a <details> element, so it needs no JavaScript. */
.account-menu { position: relative; }
.account-menu__button {
  list-style: none; cursor: pointer; font-weight: 600; font-family: var(--font-heading);
  padding: 0.35rem 0.75rem; border: 1px solid var(--color-border); border-radius: var(--radius);
}
.account-menu__button::-webkit-details-marker { display: none; }
.account-menu__button::after { content: " ▾"; color: var(--color-muted); }
.account-menu[open] .account-menu__button { border-color: var(--color-primary); }
.account-menu__panel {
  position: absolute; inset-inline-end: 0; top: calc(100% + 0.4rem); z-index: 10;
  display: flex; flex-direction: column; gap: 0.6rem; min-width: 14rem;
  padding: 1rem; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
}
.account-menu__panel .link-button { text-align: start; }
.account-menu__email {
  margin: 0; padding-block-end: 0.6rem; border-block-end: 1px solid var(--color-border);
  color: var(--color-muted); font-size: 0.9rem; overflow-wrap: anywhere;
}

/* Phones: the name on one line, the links on the next. */
@media (max-width: 34rem) {
  .site-header { padding-inline: 1rem; }
  .site-header__nav { width: 100%; justify-content: flex-start; }
  .account-menu__panel { inset-inline-end: auto; inset-inline-start: 0; }
}

/* Phone menu (site/home-band-loop-and-text-colour). static/js/site-menu.js shows the ☰ button
   and marks the header "has-menu"; below 900px the links then fold away until the button opens
   them ("is-open") as a panel under the header, one link per line, with Account (its own list
   opening in place) and Sign up at the bottom. Wider screens never see the button. */
.site-menu-button { display: none; }
@media (max-width: 900px) {
  .site-header.has-menu { position: relative; flex-wrap: nowrap; }
  .site-header.has-menu .site-menu-button {
    display: inline-flex; align-items: center; gap: 0.4rem; margin-inline-start: auto;
    padding: 0.45rem 0.8rem; min-height: 2.75rem; cursor: pointer;
    font: inherit; font-family: var(--font-heading); font-weight: 600; color: var(--color-text);
    background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
  }
  .site-menu-button:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }
  .site-menu-button__cross, .is-open .site-menu-button__bars { display: none; }
  .is-open .site-menu-button__cross { display: inline; }
  .site-header--home.has-menu .site-menu-button { grid-area: nav; justify-self: end; margin: 0; }

  .site-header.has-menu .site-header__nav { display: none; }
  .site-header.has-menu.is-open .site-header__nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; inset-inline: 0; z-index: 20; grid-area: auto;
    width: auto; padding: 0.5rem 1rem 1rem; font-size: 1.1rem;
    background: var(--color-surface); border-block-end: 1px solid var(--color-border);
    box-shadow: 0 0.75rem 1.5rem rgb(0 0 0 / 0.12);
  }
  .has-menu .site-header__nav > a { padding: 0.8rem 0.25rem; border-block-end: 1px solid var(--color-border); }
  .has-menu .site-header__nav > a.button { margin-block-start: 0.9rem; padding: 0.8rem; border: 0; text-align: center; justify-content: center; }
  /* Account: its list opens in place inside the menu, not as a dropdown. */
  .has-menu .account-menu { margin-block-start: 0.9rem; }
  .has-menu .account-menu__button { display: block; padding: 0.7rem 0.8rem; }
  .has-menu .account-menu__panel {
    position: static; min-width: 0; margin-block-start: 0.5rem; box-shadow: none;
  }
}

.site-footer {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem;
  padding: 1.25rem 1.5rem; color: var(--color-muted); font-size: 0.9rem;
  border-block-start: 1px solid var(--color-border); background: var(--color-surface);
}

/* Shown on every page while a staff member previews the draft theme. */
.draft-banner {
  margin: 0; padding: 0.35rem 1.5rem; text-align: center; font-size: 0.9rem;
  background: var(--color-accent-soft); color: var(--color-text);
  border-block-end: 1px solid var(--color-accent);
}

/* Announcements (9a): bars under the header, from Admin → Announcements. */
.announcements { display: flex; flex-direction: column; }
.announcement {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 1.5rem;
  background: var(--color-primary-soft); color: var(--color-text);
  border-block-end: 1px solid var(--color-primary);
}
.announcement--news { background: var(--color-good-soft); border-color: var(--color-good); }
.announcement--warning { background: var(--color-accent-soft); border-color: var(--color-accent); }
.announcement__text { margin: 0 auto; text-align: center; }
.announcement__text a { margin-inline-start: 0.5rem; font-weight: 600; color: inherit; }
.announcement__close {
  flex: none; border: 0; background: none; color: inherit; cursor: pointer;
  font-size: 1.4rem; line-height: 1; padding: 0.15rem 0.4rem; border-radius: var(--radius-small);
}
.announcement__close:hover, .announcement__close:focus-visible { background: var(--color-surface-glass); }

/* Page widths: reading pages, card grids, small forms. */
.site-main { max-width: 48rem; margin-inline: auto; padding: 2rem 1.5rem 3rem; }
.site-main--wide { max-width: 72rem; }
.site-main--narrow { max-width: 30rem; }
@media (max-width: 34rem) { .site-main { padding: 1.5rem 1rem 2.5rem; } }

/* --- Buttons --- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 2.75rem; padding: 0.55rem 1.15rem;
  border: 1px solid var(--color-button); border-radius: var(--radius);
  background: var(--color-button); color: var(--color-on-button);
  font: inherit; font-family: var(--font-heading); font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.button:hover { filter: brightness(1.08); }
.button:active { filter: brightness(0.95); }
.button:disabled { opacity: 0.55; cursor: not-allowed; filter: none; }
.button--quiet {
  background: var(--color-surface); color: var(--color-text); border-color: var(--color-border);
}
.button--quiet:hover { filter: none; border-color: var(--color-primary); }
.button--small { min-height: 2.25rem; padding: 0.35rem 0.9rem; }
.button--large { min-height: 3.25rem; padding: 0.75rem 1.6rem; font-size: 1.1rem; }
.button--block { width: 100%; }

/* 9a: "Continue with Google" under the sign-in and sign-up forms. */
.social-login { margin-block: 1.25rem; }
.social-login__or { display: flex; align-items: center; gap: 0.75rem; color: var(--color-muted); margin-block: 0 1rem; }
.social-login__or::before, .social-login__or::after { content: ""; flex: 1; border-block-start: 1px solid var(--color-border); }
/* Google's own light "G" button (static/img/google-g.svg, from Google's download, unchanged):
   its white circle keeps the mark's colours on any theme. */
.social-login__google { display: flex; align-items: center; justify-content: center; gap: 0.6rem; }
.social-login__mark { flex: none; width: 28px; height: 28px; }
.button--danger { background: var(--color-surface); color: var(--color-bad); border-color: var(--color-bad); }
.button--danger:hover { filter: none; background: var(--color-bad-soft); }

.inline-form { display: inline; margin: 0; }
.link-button {
  background: none; border: 0; padding: 0; font: inherit;
  color: var(--color-primary); text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer;
}

/* --- Panels and cards --- */

.panel-box, .room-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  padding: 1.25rem 1.5rem;
}

/* --- Messages --- */

.messages { list-style: none; padding: 0; margin: 1rem auto 0; max-width: 48rem; padding-inline: 1.5rem; }
.message {
  padding: 0.65rem 1rem; border-radius: var(--radius);
  background: var(--color-primary-soft); border-inline-start: 4px solid var(--color-primary);
  margin-block-end: 0.5rem;
}
.message--success { background: var(--color-good-soft); border-color: var(--color-good); }
.message--warning { background: var(--color-accent-soft); border-color: var(--color-accent); }
.message--error { background: var(--color-bad-soft); border-color: var(--color-bad); }

/* --- Fields (allauth's forms and ours) --- */

form p { margin-block: 0 1rem; }
.site-main label { font-weight: 600; }
/* Text, email and password fields everywhere (the builder had these from 1a); the
   rest only on the site's pages and in the player, so the builder keeps its own.
   Written out in full, not with :is()/:where(): browsers older than 2021 (some TVs)
   drop a whole rule when they meet a selector they don't know (1.5b). */
input[type="email"], input[type="date"], input[type="password"], input[type="text"],
.site-main input[type="number"], .site-main select, .site-main textarea,
.player input[type="number"], .player select, .player textarea {
  width: 100%; min-height: 2.75rem; padding: 0.5rem 0.7rem;
  font: inherit; color: var(--color-text); background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-small);
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-accent); outline-offset: 0; border-color: var(--color-accent);
}
input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--color-primary); vertical-align: middle; }
.helptext, .hint { display: block; color: var(--color-muted); font-size: 0.9rem; margin-block: 0.25rem; }
.errorlist { color: var(--color-bad); padding-inline-start: 1rem; margin-block: 0.25rem; }

/* --- Tables --- */

.room-table { width: 100%; border-collapse: collapse; background: var(--color-surface); border-radius: var(--radius); overflow: hidden; }
.room-table th, .room-table td {
  text-align: start; padding: 0.6rem 0.75rem; border-block-end: 1px solid var(--color-border);
}
.room-table th { font-weight: 600; color: var(--color-muted); }

/* 7e: My studio's tabs (Rooms · Earnings · Reports), number columns, report filters. */
.studio-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.25rem; }
.studio-tabs a {
  padding: 0.35rem 0.9rem; border: 1px solid var(--color-border); border-radius: 999px;
  text-decoration: none; color: inherit; background: var(--color-surface);
}
.studio-tabs a[aria-current="page"] { background: var(--color-primary); color: var(--color-on-primary); border-color: var(--color-primary); }
.room-table .rp-num { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; margin-block-end: 1.5rem; }
.rp-empty { padding: 1.5rem; text-align: center; color: var(--color-muted); }
.report-filters { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: flex-end; margin-block-end: 1rem; }
.report-filters label { display: block; font-size: 0.85rem; font-weight: 600; }

/* 5a: a game's facts (when, level, time…) as a row of small labelled boxes that wrap. */
.facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0 0 1.5rem; }
.facts dt { color: var(--color-muted); font-size: 0.85rem; }
.facts dd { margin: 0; font-weight: 600; }
.room-table tr:last-child td { border-block-end: 0; }

/* 7c: on a phone, a `--cards` room table shows each row as a card, every cell
   labelled from its data-label (the column heading), so nothing runs off screen. */
@media (max-width: 40rem) {
  .room-table--cards { background: none; }
  .room-table--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .room-table--cards, .room-table--cards tbody, .room-table--cards tr, .room-table--cards td { display: block; }
  .room-table--cards tr {
    margin-block-end: 0.75rem; padding: 0.5rem 0.75rem;
    background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
  }
  .room-table--cards td { display: flex; gap: 0.75rem; justify-content: space-between; padding: 0.3rem 0; border: 0; }
  .room-table--cards td[data-label]::before { content: attr(data-label); color: var(--color-muted); font-size: 0.9rem; }
  .room-table--cards .room-table__title { font-weight: 600; font-size: 1.05rem; }
  .room-table--cards .room-table__actions { justify-content: flex-end; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- Home page --- */

.hero { text-align: center; margin-block-end: 3rem; }
.hero__title { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); max-width: 22em; margin-inline: auto; }
.hero__lead { font-size: 1.2rem; color: var(--color-muted); max-width: 34em; margin-inline: auto; }
.hero__sample { font-size: 1.15rem; }
.hero__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; margin-block-start: 1.5rem; }

.steps__title { text-align: center; margin-block-end: 1.5rem; }
.steps__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.step {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-large); padding: 1.5rem;
}
.step p { margin: 0; color: var(--color-muted); }
.step__number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; margin-block-end: 0.75rem; border-radius: 50%;
  background: var(--color-accent); color: var(--color-on-accent); font-weight: 700;
}

/* --- Builder room list (the builder's own look is Phase 7) --- */

/* My studio (7a): a creator's storage */
.storage { margin-block: 1rem; }
.storage__heading { font-size: 1rem; margin-block: 0 0.35rem; }
.storage__bar { inline-size: min(100%, 24rem); block-size: 0.75rem; accent-color: var(--color-primary); }

.new-room { margin-block: 1rem 2rem; }
.new-room label { display: block; margin-block-end: 0.25rem; }
.new-room__row { display: flex; gap: 0.5rem; }
.new-room__row input { flex: 1; }
.builder-fallback { max-width: 40rem; margin: 4rem auto; padding: 0 1.5rem; }

/* --- My rooms --- */

.play-section { margin-block-end: 3rem; }
.card-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
}
.room-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.room-card__cover { aspect-ratio: 16 / 9; background: var(--color-primary-soft); }
.room-card__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* No cover: a plain panel with a soft stripe in the theme's colours. */
.room-card__cover--none {
  background: linear-gradient(135deg, var(--color-primary-soft), var(--color-accent-soft));
}
.room-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.5rem 1.5rem; }
.room-card__title { font-size: 1.3rem; margin-block: 0 0.5rem; }
.room-card__meta { color: var(--color-muted); margin-block-end: 0.25rem; }
.room-card__text { margin-block-end: 1rem; }
.room-card--continue .button { margin-block-start: auto; }
.room-card--continue .hint { margin-block-end: 1rem; }
/* "End this game" (2c): a quiet link under Continue, not a second button. */
.room-card__end { align-self: center; margin-block-start: 0.6rem; font-size: 0.9rem; color: var(--color-muted); }

.tag-list { list-style: none; padding: 0; margin: 0 0 0.75rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  padding: 0.1rem 0.65rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  background: var(--color-accent-soft); color: var(--color-text);
}

.level-picker__title { font-size: 0.95rem; color: var(--color-muted); margin-block: auto 0.5rem; padding-block-start: 0.5rem; }
.level-picker { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); }
.level-button {
  display: flex; flex-direction: column; justify-content: center; height: 100%; min-height: 3.25rem;
  padding: 0.5rem 0.8rem; border-radius: var(--radius);
  border: 1px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text); text-decoration: none; line-height: 1.25;
}
.level-button:hover { border-color: var(--color-primary); background: var(--color-primary-soft); }
.level-button--default { border-color: var(--color-primary); }
.level-button__name { font-weight: 700; }
.level-button__age { font-size: 0.85rem; color: var(--color-muted); }

.empty-state {
  padding: 2rem; text-align: center; color: var(--color-muted);
  border: 2px dashed var(--color-border); border-radius: var(--radius-large);
}
.empty-state p { margin: 0; }

/* Tables scroll sideways on a phone instead of squeezing. */
.table-scroll { overflow-x: auto; position: relative; } /* relative: keeps visually-hidden headings inside */

/* "This uses one play. Start?" */
.site-main.confirm-page { max-width: 36rem; }
.confirm-card .room-card__body { padding: 1.5rem 1.75rem 1.75rem; }
.confirm-card h1 { font-size: 1.6rem; }
.confirm-card .form-actions { margin-block-start: 0.5rem; }

/* One screen or Team game (3c): two big buttons, easy to hit with a TV remote. */
.start-choice { display: grid; gap: 0.75rem; margin-block: 1rem; }
.start-choice__option {
  display: flex; flex-direction: column; gap: 0.25rem; text-align: start;
  padding: 0.9rem 1.1rem; border-radius: var(--radius);
  border: 2px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text); font: inherit; line-height: 1.3; cursor: pointer;
}
.start-choice__option strong { font-size: 1.1rem; }
.start-choice__option span { color: var(--color-muted); font-size: 0.95rem; }
.start-choice__option:hover, .start-choice__option:focus-visible {
  border-color: var(--color-primary); background: var(--color-primary-soft);
}

/* Personal fields (9i): what the host fills in before choosing how to play. */
.personal-fields { border: 0; padding: 0; margin: 0 0 0.5rem; display: grid; gap: 0.6rem; }
.personal-fields legend { font-weight: 600; margin-block-end: 0.2rem; padding: 0; }
.personal-fields .hint { margin: 0; }
.personal-fields__field { display: grid; gap: 0.25rem; margin: 0; }
.personal-fields__field input { width: 100%; }

/* Organization page (4d): invitation links to copy. */
.invite-link { display: grid; gap: 0.4rem; margin-block-end: 1rem; }
.invite-link input, .invite-link__input { width: 100%; min-width: 14rem; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.85rem; }

/* Which organization pays (4d): radio list on the start page. */
.pay-from { border: 0; padding: 0; margin: 0 0 0.5rem; display: grid; gap: 0.4rem; }
.pay-from legend { font-weight: 600; margin-block-end: 0.4rem; padding: 0; }
.pay-from__option {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.9rem;
  border: 2px solid var(--color-border); border-radius: var(--radius);
  background: var(--color-surface); cursor: pointer;
}
.pay-from__option:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-soft); }
.pay-from__left { color: var(--color-muted); font-size: 0.95rem; }
.pay-from__note { font-weight: 600; margin-block: 0.75rem; }

/* Joining a team game on a phone (3c): one centred card, big code field. */
.join-card { max-width: 26rem; margin-inline: auto; }
.join-card input.join-code-input {
  font-size: 1.8rem; letter-spacing: 0.3em; text-transform: uppercase; text-align: center;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

/* --- Shop (Phase 2) --- */
.price { font-size: 1.75rem; font-weight: 700; margin-block: 0.25rem 0.5rem; color: var(--color-text); }
.price__was { font-size: 1.1rem; font-weight: 400; opacity: 0.7; margin-inline-end: 0.5rem; }
.price__now { font-weight: 700; }
.coupon-form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-block: 1rem 0.5rem; }
.coupon-form input { flex: 1 1 10rem; min-width: 0; }
.offer-facts { padding-inline-start: 1.25rem; margin-block: 0 1rem; color: var(--color-muted); }
.offer-facts li { margin-block-end: 0.2rem; }
.offer-card .button--block { margin-block-start: auto; }
.confirm-card .message { margin-block: 0 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --- Forms (allauth's pages: templates/allauth/elements/) --- */

.form { display: flex; flex-direction: column; gap: 1rem; margin-block-end: 1.5rem; }
.field label { display: block; margin-block-end: 0.3rem; }
.field--check { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.6rem; }
.field--check label { flex: 1; }
/* 8c: the help under a checkbox (sign-up's terms) takes its own line. */
.field--check .helptext, .field--check .errorlist { flex-basis: 100%; }
.field--check input { flex: none; margin-block-start: 0.3rem; }
.field--check label { margin: 0; font-weight: 400; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--color-bad); }
/* accounts/show-password: the eye button sits inside the box at its end (right in English,
   left in Hebrew: inset-inline-end follows the page's direction), and the box leaves room
   for it so long passwords don't run under it. */
.password-box { position: relative; }
.password-box input { padding-inline-end: 3rem; }
.password-box__toggle {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: 2.75rem;
  display: flex; align-items: center; justify-content: center;
  padding: 0; border: 0; background: none; color: var(--color-muted); cursor: pointer;
  border-radius: var(--radius-small);
}
.password-box__toggle[hidden] { display: none; }
.password-box__toggle:hover { color: var(--color-text); }
.password-box__toggle:focus-visible { outline: 3px solid var(--color-accent); outline-offset: -3px; }
.password-box__eye-off { display: none; }
.password-box__toggle[aria-pressed="true"] .password-box__eye { display: none; }
.password-box__toggle[aria-pressed="true"] .password-box__eye-off { display: block; }
.field .helptext ul { margin: 0.25rem 0 0; padding-inline-start: 1.1rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.form-actions--stack { flex-direction: column; align-items: stretch; }
.billing-actions { margin-block-start: 0.75rem; }
.message ul.errorlist { margin: 0; padding: 0; list-style: none; color: inherit; }

.badge {
  display: inline-block; margin-inline-start: 0.35rem; padding: 0.05rem 0.5rem;
  font-size: 0.8rem; font-weight: 600; border-radius: 999px;
  background: var(--color-primary-soft); color: var(--color-text);
}
.badge--good { background: var(--color-good-soft); }
.badge--warning { background: var(--color-accent-soft); }
/* 5c: the free demo room's label (catalog card, room page, /demo/). */
.badge--free { background: var(--color-good-soft); }
p.badge--free { margin-inline-start: 0; align-self: flex-start; width: fit-content; }


/* The free demo's page (5c): one radio row per level. */
.demo-continue { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.demo-new { font-size: 1.1rem; margin-block: 1.5rem 0.5rem; }

/* Gift links (products/gift-a-play): the giver's message, the person's games, their address. */
.gift-message {
  margin: 0 0 1rem; padding: 0.75rem 1rem; border-inline-start: 4px solid var(--color-accent);
  background: var(--color-accent-soft); border-radius: var(--radius-large); font-style: italic;
}
.gift-claim label { display: block; font-weight: 600; margin-block-end: 0.25rem; }
.gift-claim input[type="text"] { width: 100%; }
.gift-games { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.5rem; }
.gift-games li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.gift-back { width: 100%; font-family: monospace; }
/* The giver's gift link pages (products/gift-a-play-2). */
.gift-funding { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.5rem; }
.gift-funding li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.copy-field { display: flex; gap: 0.5rem; }
.copy-field input { flex: 1; min-width: 0; font-family: monospace; }
.gift-numbers { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 1rem 0; }
.gift-numbers dt { font-size: 0.85rem; color: var(--color-muted); }
.gift-numbers dd { margin: 0; font-size: 1.5rem; font-weight: 700; }
.confirm-card h2 { font-size: 1.1rem; margin-block: 1.5rem 0.5rem; }
.demo-levels fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.demo-levels legend { font-weight: 700; margin-block-end: 0.5rem; }
.demo-level {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; cursor: pointer;
  padding: 0.75rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-large);
  background: var(--color-surface);
}
.demo-level:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-soft); }
.demo-level:focus-within { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* Sign up, log in, verify email, reset password: the page is one centred card. */
.site-shell > main.auth-card {
  flex: 0 0 auto; margin-block: 2.5rem auto; padding: 2rem;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
}
.auth-card h1 { font-size: 1.6rem; }
.auth-card > :last-child { margin-block-end: 0; }
@media (max-width: 34rem) {
  .site-shell > main.auth-card { margin-block-start: 1rem; margin-inline: 1rem; width: auto; padding: 1.5rem 1.25rem; }
}

/* Account settings: tabs above the page. */
.tabs { display: flex; gap: 0.25rem; flex-wrap: wrap; margin-block-end: 2rem; border-block-end: 1px solid var(--color-border); }
.tabs a {
  padding: 0.5rem 1rem; color: var(--color-muted); text-decoration: none; font-weight: 600;
  border-block-end: 3px solid transparent; margin-block-end: -1px;
}
.tabs a:hover { color: var(--color-text); }
.tabs a[aria-current="page"] { color: var(--color-primary); border-block-end-color: var(--color-primary); }

/* --- Not found, server error --- */

.message-page { text-align: center; padding-block: 3rem; }
.message-page p:last-child { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }

/* Room page and "what you hold" lines (2b). Theme variables only. */
.access-line { margin-block: 0 0.5rem; font-weight: 600; }
.access-line .hint { font-weight: 400; margin-inline-start: 0.4rem; }
.access-card { margin-block-start: 1rem; border-color: var(--color-primary); }
.confirm-page section + section { margin-block-start: 1.5rem; }
.room-card--lapsed { opacity: 0.8; }
.room-card--lapsed .room-card__cover { filter: grayscale(1); }
.room-card--lapsed .button { margin-block-start: auto; }
.room-card__more { margin-block: 1rem 0; font-size: 0.95rem; }
.empty-state p + p { margin-block-start: 1rem; }

/* --- Catalog and categories (5b) --- */

.catalog-filters {
  display: grid; gap: 0.75rem 1rem; align-items: end; margin-block-end: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-large); padding: 1rem 1.25rem;
}
.catalog-filters .field { margin: 0; }
.catalog-filters select { width: 100%; }
.catalog-filters__actions { display: flex; align-items: center; gap: 1rem; }
.catalog-count { color: var(--color-muted); }
.catalog-card__link { color: inherit; text-decoration: none; }
.catalog-card__link:hover { text-decoration: underline; }
.catalog-card__yours { color: var(--color-good); font-weight: 600; margin-block: 0 0.75rem; }
.catalog-card__button { margin-block-start: auto; }
.room-facts { margin: 0 0 1rem; display: grid; gap: 0.2rem; }
/* Each fact reads as one line ("Ages: Grades 1–3 · …") that wraps under itself. */
.room-facts dt { display: inline; color: var(--color-muted); }
.room-facts dt::after { content: ": "; }
.room-facts dd { display: inline; margin: 0; }
.category-hero { margin-block-end: 2rem; }
.category-hero__picture {
  display: block; width: 100%; max-height: 22rem; object-fit: cover;
  border-radius: var(--radius-large); margin-block-end: 1.5rem;
}
.category-hero__text { font-size: 1.1rem; max-width: 42em; }
.hero--left { text-align: start; }
.hero--left .hero__title, .hero--left .hero__lead { margin-inline: 0; }
.hero--left .hero__actions { justify-content: flex-start; }
.schools-text { font-size: 1.1rem; max-width: 42em; margin-block-end: 2.5rem; }

/* --- Home page sections (5b) --- */
/* Category tiles: a picture with the name over it (the home page's band, accounts/show-password,
   draws them bigger; see "Home page band" below). */

.home-section { margin-block-end: 3rem; }
.home-section__more { margin-block-start: 1rem; }
.category-tile {
  position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden;
  border-radius: var(--radius-large); color: inherit; text-decoration: none;
  background: var(--color-primary-soft);
}
.category-tile__picture { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
/* The name, over the bottom of the picture: shown on hover and keyboard focus. */
.category-tile__name {
  position: absolute; inset: auto 0 0 0; padding: 2rem 1rem 0.85rem;
  font-weight: 700; font-size: 1.15rem; color: #fff;
  background: linear-gradient(to top, rgb(0 0 0 / 0.7), rgb(0 0 0 / 0));
  opacity: 0; transform: translateY(0.4rem); transition: opacity 0.2s, transform 0.2s;
}
.category-tile:hover .category-tile__name,
.category-tile:focus-visible .category-tile__name { opacity: 1; transform: none; }
.category-tile:hover .category-tile__picture { transform: scale(1.04); }
.category-tile:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; }
/* Touch screens can't hover: always show the name there. */
@media (hover: none) {
  .category-tile__name { opacity: 1; transform: none; }
}
/* No picture: the name is the tile. */
.category-tile--text {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(135deg, var(--color-accent-soft), var(--color-primary-soft));
  border: 1px solid var(--color-border);
}
.category-tile--text .category-tile__name {
  position: static; opacity: 1; transform: none; background: none; padding: 1rem;
  color: var(--color-text); font-size: 1.6rem; line-height: 1.2;
}
.category-tile--text:hover { border-color: var(--color-primary); }
.home-schools {
  background: var(--color-primary-soft); border-radius: var(--radius-large);
  padding: 2rem; margin-block-end: 2rem; text-align: center;
}
.home-schools p { max-width: 34em; margin-inline: auto; }
.catalog-offers { margin-block-start: 3rem; }

/* --- 6a: reviews and stars --- */
.stars { display: inline-flex; gap: 0.05em; line-height: 1; vertical-align: -0.05em; }
.stars__star { color: var(--color-border); }
.stars__star--on { color: var(--color-accent); }
.room-rating { margin: 0 0 0.5rem; }
.room-rating a { color: inherit; text-decoration: none; display: inline-flex; gap: 0.5rem; align-items: center; }
.room-rating a:hover .room-rating__text, .room-rating a:focus-visible .room-rating__text { text-decoration: underline; }
.room-rating__text { color: var(--color-muted); }
.catalog-card__rating { margin: 0 0 0.75rem; display: flex; gap: 0.4rem; align-items: center; color: var(--color-muted); font-size: 0.95em; }
.reviews { margin-block: 2rem; }
.review-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1rem; }
.review { border-block-end: 1px solid var(--color-border); padding-block-end: 1rem; }
.review__head { margin: 0 0 0.4rem; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.review__by { color: var(--color-muted); }
.review__text { overflow-wrap: anywhere; }
.star-picker { border: 0; padding: 0; margin: 0; }
.star-picker legend { padding: 0; margin-block-end: 0.3rem; }
.star-picker__choices { display: flex; flex-direction: column; gap: 0.25rem; align-items: flex-start; }
.star-picker__choice { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.star-picker__stars { color: var(--color-accent); letter-spacing: 0.1em; }
.review-form-card textarea { width: 100%; }

/* --- 6a: testimonials --- */
.testimonials { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.testimonial { margin: 0; padding: 1.25rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); display: flex; flex-direction: column; gap: 0.75rem; }
.testimonial blockquote { margin: 0; font-size: 1.05em; }
.testimonial figcaption { display: flex; align-items: center; gap: 0.75rem; color: var(--color-muted); }
.testimonial__name { color: var(--color-text); font-weight: 600; display: block; }
.testimonial__picture { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; flex: none; }

/* 8c: About, Contact, Privacy policy, Terms of service (pages/site_page.html). */
.site-page { max-width: 42em; margin-inline: auto; padding-block: 1rem 3rem; }
.site-page__lead { font-size: 1.15rem; color: var(--color-muted); }
.site-page__text { line-height: 1.6; }
.site-page__text h2 { font-size: 1.25rem; margin-block: 2rem 0.5rem; }
.site-page__text ul { padding-inline-start: 1.25rem; }
.site-page__text li { margin-block: 0.35rem; }
.site-page__updated { margin-block-start: 2.5rem; }

/* 8c: the footer's page links. */
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.25rem; }
.site-footer__links a { color: inherit; }
.site-footer p { margin: 0; }

/* 9h: our payment page (templates/commerce/pay.html). Stripe draws the card form inside
   #payment-element; this only gives it room and spaces the summary above it. */
.pay-summary { margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--color-border, #e5e7eb); }
.pay-summary__name { margin: 0 0 0.25rem; font-size: 1.1rem; }
.pay-form__element { min-height: 12rem; margin-bottom: 1rem; }
.pay-form .message[hidden] { display: none; }
.saved-cards { list-style: none; margin: 0 0 0.75rem; padding: 0; display: grid; gap: 0.5rem; }
.saved-cards__card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.6rem 0.8rem; border: 1px solid var(--color-border, #e5e7eb); border-radius: 8px;
}
.saved-cards__actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
/* 9h-2b: a subscription's Change panel on the Purchases page. */
.sub-change summary { cursor: pointer; }
.sub-change__form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; margin-top: 0.5rem; }
.sub-change__form select { max-width: 100%; }

/* --- Home page header and band (owner, 2026-11-15; accounts/show-password) --- */

/* The home page's header: the logo and name small on top, then the page's heading on the
   left and the menu on the right. Other pages keep the one-row header. */
.site-header--home {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "brand brand" "title nav";
  align-items: center; gap: 0.25rem 2rem;
  padding-block: 0.75rem 1.25rem; padding-inline: clamp(1.5rem, 3vw, 3rem);
}
.site-header--home .site-header__brand { grid-area: brand; justify-self: start; color: var(--color-primary); }
.site-header--home .site-header__logo { height: 2.75rem; }
.site-header__title {
  grid-area: title; margin: 0; line-height: 1.1; color: var(--color-text);
  font-size: clamp(1.6rem, 0.9rem + 2.4vw, 3.4rem);
}
.site-header--home .site-header__nav { grid-area: nav; gap: 0.5rem 1.75rem; font-size: 1.15rem; }
@media (max-width: 900px) {
  /* Narrower: the name and the menu share the top row (the menu wraps under itself if it must),
     and the heading takes the full width under them. */
  .site-header--home { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "brand nav" "title title"; gap: 0.75rem 1rem; }
  .site-header--home .site-header__nav { justify-content: flex-end; gap: 0.4rem 1rem; font-size: 1rem; }
}

/* The band: full width, in the theme's band colour, fading in from a little lighter at the top.
   Its words take the colour the theme picked to read on it (--color-on-band). */
.home-band {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(2rem, 4vw, 4.5rem);
  background: linear-gradient(to bottom, var(--color-band-light), var(--color-band) 45%);
  color: var(--color-on-band);
}
/* The theme's banner picture (Admin → Theme), when one is set: faintly, behind everything. */
.home-band__banner {
  display: var(--picture-home-banner-display);
  position: absolute; inset: 0; z-index: -1; opacity: 0.18;
  background: var(--picture-home-banner) center / cover no-repeat;
}

/* The band's layout on a laptop, as a grid of three columns and two rows:

     | peek | big picture | words              |
     | peek | big picture | small, small, sm…  |

   The pictures are one sideways strip (.showcase__track) laid over all of it; the words sit on
   top of the strip's empty top-right corner. The sizes are variables so the strip and the grid
   agree: the big picture is exactly as wide as the "big" column, so the arrows (drawn over that
   column) land on it. */
.home-band__inner {
  --peek: clamp(2.5rem, 5vw, 5.5rem);
  --gap: clamp(1rem, 2.2vw, 2.25rem);
  --small: clamp(8.5rem, 12vw, 14rem);              /* the small pictures' height */
  --big: calc((100% - var(--peek) - 2 * var(--gap)) * 0.56);
  display: grid;
  grid-template-columns: var(--peek) var(--big) minmax(0, 1fr);
  grid-template-rows: minmax(9rem, auto) var(--small);
  column-gap: var(--gap); row-gap: 1.75rem;
  max-width: 120rem; margin-inline: auto;
}
.home-band__words {
  grid-column: 3; grid-row: 1; align-self: center; position: relative; z-index: 1;
  text-align: center; padding-inline-end: clamp(1rem, 3vw, 3rem);
}
.home-band__lead {
  margin: 0 auto; max-width: 34em; font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.3rem); line-height: 1.6;
}
.home-band__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; margin-block-start: 1.5rem; }
/* The band's two buttons are big and bold (19px+ bold counts as large text, so lighter words
   on the button colour stay readable), each with its own text colour in the theme. */
.home-band__actions .button { font-size: 1.2rem; font-weight: 700; color: var(--color-find-text); }
/* The second button: a white panel with its own words' colour. */
.home-band__actions .button--quiet {
  background: var(--color-surface); color: var(--color-second-text); border-color: var(--color-surface);
}
.home-band__demo { margin: 1.25rem 0 0; font-family: var(--font-heading); font-weight: 600; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.6rem); }
.home-band__demo a { color: var(--color-demo-link); text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
.home-band a:focus-visible, .home-band button:focus-visible { outline: 3px solid var(--color-on-band); outline-offset: 3px; }

/* No categories: just the words, centred in the band. */
.home-band--plain .home-band__inner { display: block; }
.home-band--plain .home-band__words { padding-inline: 1.5rem; }

/* The pictures. Which one is big is a class the script moves along (frontend/src/site/showcase.ts):
     .is-current  the big one          .is-peek    the one before it: a sliver at the edge
   every other one is small. It goes round (site/home-band-loop-and-text-colour): the script also
   sets each tile's CSS order, so the one before the first is the last. The sizes change with a
   transition, so moving looks like a slide. */
.showcase { grid-column: 1 / -1; grid-row: 1 / -1; position: relative; min-width: 0; }
.showcase__track {
  list-style: none; margin: 0; height: 100%;
  display: flex; align-items: flex-end; gap: var(--gap);
  padding: 0; overflow-x: auto; scrollbar-width: none; /* without the script: scrolls by hand */
}
/* While there's no picture before the big one, an empty spacer holds the sliver's place, so the
   big picture stays in its column. (A spacer, not padding: padding would make the strip's
   inside narrower, and every size here is a share of its width.) */
.showcase__track::before {
  content: ""; flex: 0 0 var(--peek);
  transition: flex-basis 0.5s ease, margin 0.5s ease;
}
.showcase.has-peek .showcase__track::before { flex-basis: 0; margin-inline-end: calc(-1 * var(--gap)); }
.showcase__track::-webkit-scrollbar { display: none; }
.showcase.is-ready .showcase__track { overflow: hidden; }
.showcase__item {
  flex: 0 0 calc(var(--small) * 1.5); height: var(--small); min-width: 0;
  transition: flex-basis 0.5s ease, height 0.5s ease, opacity 0.5s ease, margin 0.5s ease;
}
.showcase__item.is-current { flex-basis: var(--big); height: 100%; }
.showcase__item.is-peek { flex-basis: var(--peek); }
@media (prefers-reduced-motion: reduce) {
  .showcase__track::before, .showcase__item { transition: none; }
}
.showcase .category-tile { height: 100%; aspect-ratio: auto; box-shadow: 0 10px 30px rgb(0 0 0 / 0.35); }
/* In the band every name shows (no hover needed): big white letters with a shadow to read on
   any picture, low on the tile; the big picture's name is bigger still. */
.showcase .category-tile__name {
  inset: auto 0 0 0; padding: 0.5rem 0.75rem 0.9rem; text-align: center; line-height: 1.15;
  font-family: var(--font-heading); font-size: clamp(1.1rem, 0.8rem + 1vw, 1.9rem); color: var(--color-on-band);
  background: none; text-shadow: 0 2px 6px rgb(0 0 0 / 0.75), 0 0 2px rgb(0 0 0 / 0.6);
  opacity: 1; transform: none; transition: font-size 0.5s ease;
}
.showcase .is-current .category-tile__name { font-size: clamp(2.2rem, 1rem + 3.4vw, 4.75rem); padding: 0 4.5rem 1.25rem; }
.showcase .is-peek .category-tile__name { opacity: 0; }
.showcase .category-tile--text .category-tile__name { position: absolute; color: var(--color-text); text-shadow: none; inset: 0; display: grid; place-items: center; }
.showcase .category-tile:focus-visible { outline-color: var(--color-on-band); }

/* The two round arrows, over the big picture's two sides. The layer covers the big picture's
   column but lets clicks through to it; only the buttons themselves catch them. */
.showcase__arrows {
  position: absolute; inset-block: 0; z-index: 1; pointer-events: none;
  inset-inline-start: calc(var(--peek) + var(--gap)); width: var(--big);
  display: flex; align-items: center; justify-content: space-between; padding-inline: 1rem;
}
.showcase__arrow {
  pointer-events: auto; width: 4rem; height: 4rem; border-radius: 50%; padding: 0; cursor: pointer;
  display: grid; place-items: center; border: 0;
  color: #1c2433; background: rgb(255 255 255 / 0.6); box-shadow: 0 2px 10px rgb(0 0 0 / 0.25);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.showcase__arrow:hover:not(:disabled) { background: rgb(255 255 255 / 0.85); }
.showcase__arrow:disabled { opacity: 0.35; cursor: default; }
.showcase__arrow[hidden] { display: none; }
/* The chevron points forward; "back" turns it round, and right to left turns both. */
.showcase__arrow--back svg { transform: scaleX(-1); }
.showcase:dir(rtl) .showcase__arrow--next svg { transform: scaleX(-1); }
.showcase:dir(rtl) .showcase__arrow--back svg { transform: none; }

/* Tablets and phones (owner: the big picture comes first): the pictures on top, as one row
   where the current one fills most of the width and the next one peeks in at the side; the
   words under them. Swipe or the arrows move it along. */
@media (max-width: 900px) {
  .home-band { padding-block: 1.25rem 2rem; }
  .home-band__inner { display: flex; flex-direction: column; gap: 1.5rem; --gap: 0.75rem; }
  .showcase__track {
    height: auto; align-items: stretch;
    padding-inline: 1rem;
    touch-action: pan-y; /* sideways swipes are ours; up and down still scroll the page */
  }
  .showcase__track::before, .showcase.has-peek .showcase__track::before { flex-basis: 0; margin-inline-end: calc(-1 * var(--gap)); }
  .showcase__item, .showcase__item.is-current { flex-basis: 85%; height: auto; aspect-ratio: 4 / 3; }
  .showcase__item.is-peek {
    flex-basis: 0; opacity: 0; margin-inline-end: calc(-1 * var(--gap));
  }
  .showcase .category-tile__name { font-size: 1.4rem; }
  .showcase .is-current .category-tile__name { font-size: clamp(2rem, 1rem + 5vw, 3.25rem); padding-inline: 3.5rem; }
  .showcase__arrows { inset-inline-start: 1rem; width: calc((100% - 2rem) * 0.85); padding-inline: 0.6rem; }
  .showcase__arrow { width: 3rem; height: 3rem; }
  .home-band__words { padding-inline: 1.25rem; }
}

/* products/monthly-plays-on-subscriptions: a plan out of plays, on My rooms. */
.used-up { margin-block-end: 2rem; }
.used-up h2 { margin-block-start: 0; }
.used-up h3 { font-size: 1rem; margin-block: 1rem 0.25rem; }
.used-up__list { list-style: none; padding: 0; margin: 0; }
.used-up__list li { padding-block: 0.35rem; }
.used-up__list .sub-change__form { margin-top: 0; align-items: center; }
