/* Tidbit Trivia website: the app's look for the "games like" pages
   (*-alternative.html, 1.4). The owner asked for the app's animated background,
   its normal top menu and a centred page (2026-11-01). Colours, type, the top
   menu and the raised buttons follow the web app: src/theme.css,
   src/web-layout.css and src/default-background.css. Dark is the default, as
   in the app; a stored light choice or a light system theme gets the light set. */

@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/fredoka-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/nunito-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/nunito-latin-800-normal.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  /* The app's unit: 17px on a phone, 24px on a wide window. */
  --u: clamp(17px, calc(1.1vw + 8px), 24px);
  --field: #08090e;
  --surface: #181820;
  --line: #3a3a49;
  --text: #fbfaff;
  --muted: #9f9dac;
  --muted-strong: #cbc8d6;
  --focus-ring: #ff9f36;
  --edge: #050508;
  --amber: #ff9f36;
  --amber-deep: #c56616;
  --amber-ink: #2d2103;
  --neutral-control: #d8d5e3;
  --neutral-control-deep: #777283;
  --neutral-control-ink: #1b1820;
  --radius-sm: calc(var(--u) * 0.5);
  --radius-md: calc(var(--u) * 0.72);
  --radius-lg: calc(var(--u) * 1.05);
  --depth: calc(var(--u) * 0.2);
  --navbar-h: calc(var(--u) * 2.9);
  --gutter: clamp(12px, calc(var(--u) * 0.75), 24px);
  --t-dur-ui: 160ms;
  --t-ease-standard: cubic-bezier(.2, 0, 0, 1);
}

:root[data-theme='light'] {
  color-scheme: light;
  --field: #f6f6f3;
  --surface: #ffffff;
  --line: #d2d2ca;
  --text: #222126;
  --muted: #636168;
  --muted-strong: #4d4b52;
  --focus-ring: #342f3e;
  --edge: #d2d2ca;
  --amber: #e88720;
  --amber-deep: #ae5910;
  --neutral-control: #dedbe7;
  --neutral-control-deep: #aaa4b3;
  --neutral-control-ink: #242128;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    color-scheme: light;
    --field: #f6f6f3;
    --surface: #ffffff;
    --line: #d2d2ca;
    --text: #222126;
    --muted: #636168;
    --muted-strong: #4d4b52;
    --focus-ring: #342f3e;
    --edge: #d2d2ca;
    --amber: #e88720;
    --amber-deep: #ae5910;
    --neutral-control: #dedbe7;
    --neutral-control-deep: #aaa4b3;
    --neutral-control-ink: #242128;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--field);
  color: var(--text);
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.6;
}

img, svg { display: block; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 30;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
}

.skip-link:focus { top: 12px; }

/* ---------- the animated background ----------
   The app's Tidbit shapes (src/js/default-background.js). The colour is the
   still first frame; app-look.js draws the shapes over it. */

#shape-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  background: var(--field);
}

/* ---------- the top menu (the app's web navbar) ---------- */

.appbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--navbar-h);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.appbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--u) * 0.5);
  height: 100%;
  max-width: calc(var(--u) * 48 + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.navsections {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 0.25);
  min-width: 0;
}

.navgroup { position: relative; }

.navlink {
  --nav-tone: #b98186;
  appearance: none;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u) * 0.28);
  min-height: calc(var(--u) * 1.85);
  padding-inline: calc(var(--u) * 0.42);
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: calc(var(--u) * 0.83);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--t-dur-ui) var(--t-ease-standard);
}

.navlink[data-nav='play'] { --nav-tone: #a982ff; }
.navlink[data-nav='social'] { --nav-tone: #62d94f; }
.navlink[data-nav='help'] { --nav-tone: #ffd563; }

.navlink:hover,
.navlink:focus-visible,
.navlink.is-open {
  background: color-mix(in srgb, var(--nav-tone) 25%, var(--surface));
}

.navlink.is-open {
  border-end-start-radius: 0;
  border-end-end-radius: 0;
}

.navlink:focus-visible,
.navdropdown__link:focus-visible,
.btn:focus-visible,
.appfooter a:focus-visible,
.mode__name:focus-visible {
  outline: calc(var(--u) * 0.09) solid var(--focus-ring);
  outline-offset: calc(var(--u) * 0.08);
}

.navlink__brand {
  flex: 0 0 auto;
  width: calc(var(--u) * 1.2);
  height: calc(var(--u) * 1.2);
  object-fit: contain;
}

.navlink__icon {
  flex: 0 0 auto;
  width: calc(var(--u) * 0.82);
  height: calc(var(--u) * 0.82);
  color: var(--nav-tone);
  fill: currentColor;
}

.navlink__caret {
  flex: 0 0 auto;
  width: calc(var(--u) * 0.46);
  height: calc(var(--u) * 0.46);
  margin-inline-start: calc(var(--u) * 0.06);
  fill: currentColor;
  opacity: 0.7;
  transition: rotate var(--t-dur-ui) var(--t-ease-standard);
}

.navlink[aria-expanded='true'] .navlink__caret { rotate: 180deg; }

.navdropdown {
  --nav-tone: #a982ff;
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  z-index: 100;
  width: calc(var(--u) * 12.5);
  max-width: calc(100vw - var(--gutter) * 2);
  padding: calc(var(--u) * 0.3);
  border: 1px solid color-mix(in srgb, var(--nav-tone) 28%, var(--line));
  border-radius: var(--radius-md);
  border-start-start-radius: 0;
  background: var(--surface);
  box-shadow: 0 calc(var(--u) * 0.55) calc(var(--u) * 1.5) rgb(0 0 0 / 0.3);
  animation: nav-dropdown-reveal 180ms var(--t-ease-standard) both;
}

#nav-social-panel { --nav-tone: #62d94f; }
#nav-help-panel { --nav-tone: #ffd563; }

.navdropdown[hidden] { display: none; }

/* Reveal downward from the trigger without moving or scaling the text. */
@keyframes nav-dropdown-reveal {
  from { opacity: 0; clip-path: inset(0 0 100% 0); }
  to { opacity: 1; clip-path: inset(calc(var(--u) * -3)); }
}

.navdropdown__list { margin: 0; padding: 0; list-style: none; }

.navdropdown__item--separated {
  margin-top: calc(var(--u) * 0.24);
  padding-top: calc(var(--u) * 0.24);
  border-top: 1px solid var(--line);
}

.navdropdown__link {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 0.5);
  min-height: calc(var(--u) * 1.95);
  padding: calc(var(--u) * 0.34) calc(var(--u) * 0.45);
  border-radius: var(--radius-sm);
  color: var(--muted-strong);
  font-size: calc(var(--u) * 0.72);
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

.navdropdown__link[data-nav-destination='freeplay'] { --nav-tone: #a982ff; }
.navdropdown__link[data-nav-destination='higherLower'] { --nav-tone: #4ed5a0; }
.navdropdown__link[data-nav-destination='arena'] { --nav-tone: #ff8a2e; }
.navdropdown__link[data-nav-destination='study'] { --nav-tone: #8fa2d8; }
.navdropdown__link[data-nav-destination='modes'] { --nav-tone: #58b9ff; }
.navdropdown__link[data-nav-destination='friends'] { --nav-tone: #62d94f; }
.navdropdown__link[data-nav-destination='party'] { --nav-tone: #a982ff; }
.navdropdown__link[data-nav-destination='rooms'] { --nav-tone: #48cad8; }
.navdropdown__link[data-nav-destination='cosmetics'] { --nav-tone: #ff5ba7; }
.navdropdown__link[data-nav-destination='blog'] { --nav-tone: #8fa2d8; }
.navdropdown__link[data-nav-destination='updates'] { --nav-tone: #ffba68; }
.navdropdown__link[data-nav-destination='bugReport'] { --nav-tone: #ff8a7e; }
.navdropdown__link[data-nav-destination='feedback'] { --nav-tone: #74e2ae; }
.navdropdown__link[data-nav-destination='tutorial'] { --nav-tone: #ffd563; }
.navdropdown__link[data-nav-destination='support'] { --nav-tone: #71bafa; }

.navdropdown__link:hover,
.navdropdown__link:focus-visible {
  background: color-mix(in srgb, var(--nav-tone) 14%, var(--surface));
  color: var(--text);
}

.navdropdown__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: calc(var(--u) * 1.15);
  height: calc(var(--u) * 1.15);
  border-radius: calc(var(--u) * 0.3);
  background: color-mix(in srgb, var(--nav-tone) 16%, var(--surface));
  color: var(--nav-tone);
}

.navdropdown__icon svg {
  width: calc(var(--u) * 0.8);
  height: calc(var(--u) * 0.8);
  fill: currentColor;
}

/* Create account and Sign in: two columns of one width, as in the app. */
.navaccount__doors {
  display: inline-grid;
  flex: 0 0 auto;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: calc(var(--u) * 0.3);
}

/* ---------- raised buttons (the app's .btn) ---------- */

.btn {
  --control-tone: var(--neutral-control);
  --control-depth: var(--neutral-control-deep);
  --control-ink: var(--neutral-control-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u) * 0.4);
  min-height: calc(var(--u) * 2.35);
  padding: calc(var(--u) * 0.48) calc(var(--u) * 0.85);
  border: calc(var(--u) * 0.09) solid transparent;
  border-radius: var(--radius-md);
  background: var(--control-tone);
  color: var(--control-ink);
  box-shadow: 0 var(--depth) 0 var(--control-depth);
  font: inherit;
  font-size: calc(var(--u) * 0.83);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--t-dur-ui) var(--t-ease-standard), box-shadow var(--t-dur-ui) var(--t-ease-standard);
}

.btn:hover {
  transform: translateY(calc(var(--u) * -0.05));
  box-shadow: 0 calc(var(--depth) + var(--u) * 0.05) 0 var(--control-depth);
}

.btn:active {
  transform: translateY(var(--depth));
  box-shadow: none;
}

.btn--sm {
  min-height: calc(var(--u) * 1.75);
  padding: calc(var(--u) * 0.26) calc(var(--u) * 0.58);
  border-radius: var(--radius-sm);
  font-size: calc(var(--u) * 0.66);
}

.btn--amber {
  --control-tone: var(--amber);
  --control-depth: var(--amber-deep);
  --control-ink: var(--amber-ink);
}

.btn svg {
  flex: 0 0 auto;
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
}

/* ---------- the page ---------- */

.page {
  position: relative;
  z-index: 1;
  display: grid;
  gap: calc(var(--u) * 1.4);
  width: min(100% - 32px, calc(var(--u) * 40));
  margin-inline: auto;
  padding-block: calc(var(--u) * 2.4) calc(var(--u) * 2.8);
  text-align: center;
}

.hero {
  display: grid;
  justify-items: center;
  gap: calc(var(--u) * 1.15);
  padding-bottom: calc(var(--u) * 0.4);
}

.hero__title {
  display: grid;
  justify-items: center;
  gap: calc(var(--u) * 0.55);
  margin: 0;
  font-family: "Fredoka", "Nunito", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.05;
}

.hero__like {
  font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4.25rem);
  letter-spacing: -0.01em;
  text-wrap: balance;
  text-shadow: 0 0.06em 0 var(--edge);
}

.hero__try {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3em 0.45em;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.8rem);
}

.hero__try-word { text-shadow: 0 0.06em 0 var(--edge); }

/* "Tidbit Trivia" is the web app's own Home logo (owner, 2026-11-01): the same
   picture, markup and crop as Home (src/web-layout.css .home-brand__lockup).
   The picture has empty canvas around the art; the lockup shows only the art's
   window (x=85, y=194, 1505x616 of 1672x941) without redrawing it. */
.home-brand__lockup {
  display: block;
  position: relative;
  flex: 0 0 auto;
  inline-size: min(calc(var(--u) * 15.5), 72vw);
  aspect-ratio: 1505 / 616;
  overflow: hidden;
}

.home-brand__lockup > .home-brand__wordmark {
  position: absolute;
  inset-inline-start: -5.64784%;
  inset-block-start: -31.49351%;
  width: 111.09635%;
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* "Play Tidbit Trivia free" is the page's one call to play, so it wears the
   finish of the app's liveliest call to action (src/theme.css .premium-cta,
   and the sheen on Premium's "Best value" ribbon): a highlight crosses the face
   every few seconds, a warm glow grows when you point at it, the button lifts,
   and a press sinks it onto its edge and lets it spring back. Only the
   highlight travels, so nothing around the button moves. Reduced motion keeps
   the face still. */
.btn--play {
  --depth: calc(var(--u) * 0.3);
  --play-glow: color-mix(in srgb, var(--amber) 38%, transparent);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(var(--u) * 3.1);
  padding: calc(var(--u) * 0.72) calc(var(--u) * 1.6);
  border-radius: var(--radius-lg);
  box-shadow:
    0 var(--depth) 0 var(--control-depth),
    0 0 calc(var(--u) * 1.4) var(--play-glow);
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.5rem);
  white-space: normal;
  transition:
    transform 340ms cubic-bezier(.34, 1.56, .64, 1),
    box-shadow 340ms var(--t-ease-standard),
    filter 340ms var(--t-ease-standard);
}

/* Above the face, under the words: the button is its own stacking context.
   The ribbon's quick glint would cross a button this wide in a blink, so here
   the highlight eases across in about a second, once every 4.6 seconds. */
.btn--play::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(100deg, transparent 35%, rgb(255 255 255 / 0.55) 50%, transparent 65%);
  content: '';
  pointer-events: none;
  transform: translateX(-100%);
  animation: play-sheen 4.6s ease-in-out infinite;
}

@keyframes play-sheen {
  0%, 60% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.btn--play:hover,
.btn--play:focus-visible {
  --play-glow: color-mix(in srgb, var(--amber) 75%, transparent);
  transform: translateY(calc(var(--u) * -0.09));
  box-shadow:
    0 calc(var(--depth) + var(--u) * 0.09) 0 var(--control-depth),
    0 0 calc(var(--u) * 1.6) var(--play-glow);
  filter: saturate(1.12) brightness(1.05);
}

.btn--play:active {
  --play-glow: color-mix(in srgb, var(--amber) 40%, transparent);
  transform: translateY(var(--depth));
  box-shadow: 0 0 calc(var(--u) * 1.4) var(--play-glow);
  transition-duration: var(--t-dur-micro);
}

.hero__lead {
  max-width: 38em;
  margin: 0;
  padding: calc(var(--u) * 0.8) calc(var(--u) * 1.1);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: var(--muted-strong);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  text-wrap: pretty;
}

.panel {
  --tone: #a982ff;
  display: grid;
  justify-items: center;
  gap: calc(var(--u) * 0.75);
  padding: calc(var(--u) * 1.3) clamp(16px, calc(var(--u) * 1.4), 40px) calc(var(--u) * 1.5);
  border: 2px solid color-mix(in srgb, var(--tone) 38%, var(--line));
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 calc(var(--u) * 0.25) 0 color-mix(in srgb, var(--tone) 42%, var(--edge));
}

.panel--free { --tone: #ff9f36; }
.panel--friends { --tone: #ff5ba7; }

.panel h2,
.about h2 {
  margin: 0;
  font-family: "Fredoka", "Nunito", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

.panel h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }

.panel p {
  max-width: 38em;
  margin: 0;
  color: var(--muted-strong);
  text-wrap: pretty;
}

.panel p a {
  color: var(--text);
  font-weight: 800;
  text-decoration-color: var(--tone);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.panel .btn { margin-top: calc(var(--u) * 0.2); }

.btn--party {
  --control-tone: #ff5ba7;
  --control-depth: #a83262;
  --control-ink: #251018;
}

/* What you can play for free: one raised card per game, in its app colour.
   /discord-trivia's three steps use the same cards, numbered. */
.modes,
.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: calc(var(--u) * 0.75);
  width: 100%;
  margin: calc(var(--u) * 0.2) 0 calc(var(--u) * 0.3);
  padding: 0;
  list-style: none;
}

.mode,
.step {
  --tone: #a982ff;
  --tone-deep: #654ca9;
  --tone-ink: #17131c;
  display: grid;
  flex: 1 1 calc(var(--u) * 10.5);
  justify-items: center;
  align-content: start;
  gap: calc(var(--u) * 0.4);
  max-width: calc(var(--u) * 11.6);
  padding: calc(var(--u) * 0.9) calc(var(--u) * 0.8) calc(var(--u) * 1);
  border: 2px solid color-mix(in srgb, var(--tone) 50%, var(--line));
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--tone) 9%, var(--surface));
  box-shadow: 0 calc(var(--u) * 0.18) 0 color-mix(in srgb, var(--tone) 55%, var(--edge));
}

.mode[data-mode='daily'] { --tone: #ffd563; --tone-deep: #917629; --tone-ink: #28200b; }
.mode[data-mode='higher-lower'] { --tone: #4ed5a0; --tone-deep: #2a8a66; --tone-ink: #0c2118; }
.mode[data-mode='party'] { --tone: #ff5ba7; --tone-deep: #a83262; --tone-ink: #251018; }
.mode[data-mode='arena'] { --tone: #ff8a2e; --tone-deep: #b0581a; --tone-ink: #2a1406; }

.mode__icon,
.step::before {
  display: grid;
  place-items: center;
  width: calc(var(--u) * 2.2);
  height: calc(var(--u) * 2.2);
  border-radius: calc(var(--u) * 0.6);
  background: var(--tone);
  color: var(--tone-ink);
  box-shadow: 0 calc(var(--u) * 0.14) 0 var(--tone-deep);
}

.mode__icon svg {
  width: calc(var(--u) * 1.25);
  height: calc(var(--u) * 1.25);
  fill: currentColor;
}

.mode__name {
  color: var(--text);
  font-family: "Fredoka", "Nunito", "Segoe UI", system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.mode__name:hover {
  text-decoration: underline;
  text-decoration-color: var(--tone);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.mode__text,
.step__text {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.98rem;
  line-height: 1.5;
}

.steps { counter-reset: step; }
.step { counter-increment: step; }

.step::before {
  content: counter(step);
  font-family: "Fredoka", "Nunito", "Segoe UI", system-ui, sans-serif;
  font-size: calc(var(--u) * 1.15);
  font-weight: 700;
  line-height: 1;
}

/* /discord-trivia's hero puts the name first, "Play" and the Home logo, then
   where you play it, under the Activity's cover art. */
.hero__try--first { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3rem); }

.hero__where {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.8rem);
  letter-spacing: -0.01em;
  text-shadow: 0 0.06em 0 var(--edge);
}

.cover {
  width: min(100%, 44rem);
  margin: 0 auto;
}

.cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  background: #08090e;
  box-shadow: 0 calc(var(--u) * 0.25) 0 var(--edge);
}

.about {
  display: grid;
  justify-items: center;
  gap: calc(var(--u) * 0.35);
  padding: calc(var(--u) * 0.8) calc(var(--u) * 1);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}

.about h2 { font-size: 1.15rem; }

.about p {
  max-width: 40em;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- footer ---------- */

.appfooter {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.appfooter__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 28px;
  width: min(100% - 32px, calc(var(--u) * 48));
  margin-inline: auto;
  padding-block: 20px;
}

.appfooter__brand img {
  width: 32px;
  height: 32px;
}

.appfooter nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
}

.appfooter nav a {
  color: var(--muted-strong);
  font-weight: 800;
  text-decoration: none;
}

.appfooter nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ---------- phones ----------
   The app's phone bar has no room for the account doors; the four sections
   share the width. */

@media (max-width: 767px) {
  .navaccount__doors { display: none; }
  .navsections {
    flex: 1 1 auto;
    justify-content: space-between;
  }
  .navgroup { position: static; }
  .navdropdown {
    position: fixed;
    top: var(--navbar-h);
    right: var(--gutter);
    left: var(--gutter);
    width: auto;
    border-start-start-radius: var(--radius-md);
  }
  .panel { gap: calc(var(--u) * 0.65); }
  .mode,
  .step { max-width: none; flex-basis: 100%; }
}

@media (max-width: 359px) {
  .navlink:not([data-nav='home']) .navlink__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .navdropdown { animation: none; }
  .btn,
  .btn--play,
  .navlink,
  .navlink__caret { transition: none; }
  .btn--play::after { animation: none; }
}
