/* Pointle. The house base (colours, font, page, masthead) comes from the jacob.gg kit, loaded first:
   https://biccyanzac-pixel.github.io/jacob.gg/kit/jgg.css. This file adds Pointle's own colours and components. */
:root {
  /* drawing colours used by the canvases */
  --ink: var(--text);
  --ink-2: var(--muted);
  --you: #ffd166;
  --sea: #142f52;
  --land: #2e6a4f;
  --coast: #86d8ae;
  --coast-globe: #9fe8c2;
  --grid: rgb(255 255 255 / 0.18);
  --sky: #4aa3df;
  --sky-2: #a8d8f5;
  --earth: #8a5a3b;
  --mantle: #d9480f;
  --core: #ffb703;
}

@media (prefers-color-scheme: light) {
  :root {
    --sea: #cfe3f7;
    --land: #9fd3b4;
    --coast: #2f7d57;
    --coast-globe: #2f7d57;
    --grid: rgb(20 22 40 / 0.18);
    --you: #e0a100;
  }
}

[hidden] { display: none !important; }
a { color: var(--accent); }
button { font: inherit; cursor: pointer; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.5rem;
}
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.eyebrow { margin: 0; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
#daynum { color: var(--accent); }
.countdown { font-variant-numeric: tabular-nums; }
.challenge-label { margin-bottom: 0.35rem; }
.prompt { margin: 0; font-size: clamp(1.5rem, 5vw, 2rem); line-height: 1.2; font-weight: 650; letter-spacing: -0.02em; text-wrap: balance; }
.target-where { color: var(--accent); }
.small-prompt { font-size: clamp(1.25rem, 4.4vw, 1.6rem); }
.riddle-note { margin: 0.5rem 0 0; font-size: 0.92rem; color: var(--muted); }
.attempts-note { margin: 0.4rem 0 0; font-size: 0.82rem; font-weight: 600; color: var(--accent); }
.hint { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.9rem; }
.center { text-align: center; }
.warn { color: var(--warn); }
.screen { animation: rise 0.3s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .screen { animation: none; } }

/* --- buttons and fields (ridd-le) --- */
.submit {
  width: 100%; padding: 0.85rem 1rem; font-weight: 650; letter-spacing: 0.02em; color: #fff;
  background: var(--accent); border: 0; border-radius: 10px; transition: filter 0.15s ease, opacity 0.15s ease;
  margin-top: 1rem;
}
.submit:hover:not(:disabled) { filter: brightness(1.08); }
.submit:disabled { opacity: 0.45; cursor: not-allowed; }
.ghost-button {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.6rem 1rem; font-weight: 600; margin-top: 1rem;
}
.ghost-button:hover { border-color: var(--accent); }
.link { background: none; border: 0; padding: 0.4rem 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; margin-top: 0.75rem; }
.row-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.row-buttons > * { flex: 1 1 auto; }
.row-buttons select { margin-top: 1rem; }
.lock { font-size: 1.1rem; padding: 1rem; }

.play { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
input[type="text"], select {
  width: 100%; padding: 0.7rem 0.85rem; font: inherit; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
}
select { width: auto; }
input[type="text"]:focus-visible, .submit:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fineprint { margin: 0; text-align: center; font-size: 0.8rem; color: var(--muted); }
.error {
  margin: 0.75rem 0 0; padding: 0.6rem 0.75rem; font-size: 0.88rem; color: var(--bad);
  background: color-mix(in srgb, var(--bad) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); border-radius: 10px;
}
.error .help { display: block; color: var(--text); margin-top: 0.35rem; }

/* --- home --- */
.choices { display: grid; gap: 0.6rem; margin-top: 1.25rem; }

/* --- home: "Choose how to play" (one from each group) --- */
.pick { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.pick-title { margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.pick-step { display: flex; align-items: center; gap: 0.5rem; margin: 1.1rem 0 0.55rem; font-weight: 650; }
.step-num {
  display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 0.8rem; font-weight: 700;
}
.pick-need { margin-left: auto; font-size: 0.75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.pick-step.done .pick-need { color: var(--good); }
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.pick-grid.three { grid-template-columns: repeat(3, 1fr); }
.pick-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; text-align: center;
  padding: 0.85rem 0.6rem 0.9rem; color: var(--text); background: var(--surface-2);
  border: 2px solid var(--border); border-radius: 14px; transition: border-color 0.15s ease, background 0.15s ease;
}
.pick-card:hover:not(:disabled) { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.pick-card[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.pick-card[aria-checked="true"]::after {
  content: "✓"; position: absolute; top: 6px; right: 8px; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 700;
}
.pick-card:disabled { cursor: default; opacity: 0.9; }
.pick-card b { font-size: 0.98rem; }
.pick-card small { color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.pick-card.small { padding: 0.7rem 0.4rem 0.75rem; }
.pick-card.small b { font-size: 0.88rem; }
.pick-ico { font-size: 1.6rem; line-height: 1.2; }
.pick-art { width: 100%; max-width: 150px; height: auto; margin-bottom: 0.2rem; }
.art-ground { fill: none; stroke: var(--muted); stroke-width: 2; }
.art-globe { fill: var(--sea); stroke: var(--coast-globe); stroke-width: 2; }
.art-land { fill: none; stroke: var(--coast); stroke-width: 3; stroke-linecap: round; }
.art-target { fill: var(--you); }
.art-ray { fill: none; stroke: var(--you); stroke-width: 2.5; stroke-dasharray: 3 4; stroke-linecap: round; }
.art-phone { fill: var(--surface); stroke: var(--text); stroke-width: 2.5; }
.art-dot { fill: var(--text); }
.art-hand { stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.pick-card .qr { flex-direction: column; gap: 0.3rem; margin-top: 0.4rem; padding: 0; border: 0; }
.pick-card .qr #qr { display: block; padding: 5px; }
.pick-card .qr #qr svg { display: block; width: 84px; height: 84px; }
#start-play { margin-top: 0.9rem; }
.pick-privacy { margin-top: 0.7rem; font-size: 0.82rem; }
@media (max-width: 400px) {
  .pick-grid.three { grid-template-columns: 1fr; }
  .pick-card.small { flex-direction: row; justify-content: flex-start; gap: 0.6rem; text-align: left; padding: 0.6rem 0.8rem; }
  .pick-card.small b { min-width: 7.5em; }
}
.choice {
  display: flex; gap: 0.9rem; align-items: center; text-align: left; width: 100%;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 12px; padding: 0.9rem 1rem;
}
.choice:hover { border-color: var(--accent); }
.choice b { display: block; }
.choice small { display: block; color: var(--muted); font-size: 0.85rem; }
.ico { font-size: 1.6rem; line-height: 1; }
.qr { display: flex; gap: 1rem; align-items: center; padding: 0.9rem 1rem; border: 1px dashed var(--border); border-radius: 12px; }
.qr #qr { background: #fff; padding: 6px; border-radius: 8px; line-height: 0; flex: none; }
.qr #qr svg { width: 104px; height: 104px; }
.qr b, .qr small { display: block; }
.qr small { color: var(--muted); font-size: 0.85rem; }
.played { margin-top: 1rem; padding: 0.75rem 0.9rem; background: var(--surface-2); border-radius: 10px; font-size: 0.92rem; }
.played .played-row { display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline; }
.friend-note { margin: 0.75rem 0 0; padding: 0.6rem 0.8rem; background: var(--accent-soft); border-radius: 10px; font-size: 0.9rem; }
.archive-banner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem;
  margin: -0.25rem 0 1rem; padding: 0.55rem 0.8rem; border-radius: 10px; font-size: 0.88rem;
  background: color-mix(in srgb, var(--warn) 14%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
}
.archive-banner .link { margin: 0; }

/* --- location / setup --- */
.privacy {
  margin: 1rem 0 0; padding: 0.65rem 0.85rem; font-size: 0.85rem; color: var(--muted);
  background: var(--surface-2); border-radius: 10px;
}
.results { list-style: none; margin: 0.25rem 0 0; padding: 0; max-height: 260px; overflow: auto; }
.results li button {
  width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--border); color: var(--text); padding: 0.6rem 0.4rem;
}
.results li button:hover, .results li button:focus { background: var(--surface-2); }
.results small { margin-left: 0.4rem; color: var(--muted); }
.methods { border: 0; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.6rem; }
.methods legend { margin-bottom: 0.5rem; }
.method { display: flex; gap: 0.75rem; align-items: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 0.8rem 0.9rem; cursor: pointer; }
.method:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.method b, .method small { display: block; }
.method small { color: var(--muted); font-size: 0.85rem; }
.method input { width: 18px; height: 18px; accent-color: var(--accent); }
.fig8 { height: 70px; position: relative; margin: 0.75rem auto 0; width: 160px; }
.fig8 span { position: absolute; font-size: 26px; offset-path: path("M80,35 C120,0 160,35 120,55 C80,75 80,0 40,15 C0,35 40,75 80,35"); animation: fig8 2.6s linear infinite; }
@keyframes fig8 { to { offset-distance: 100%; } }
@supports not (offset-path: path("M0,0")) { .fig8 span { left: 66px; top: 18px; animation: none; } }

/* --- compass + tilt instrument --- */
.instrument { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 1.25rem 0 0.25rem; }
.compass { display: block; }
.compass-big { width: min(64vw, 250px); height: auto; }
.compass-small { width: 96px; height: 96px; }
.cmp-bezel { fill: var(--surface-2); stroke: var(--border); stroke-width: 3; }
.cmp-rose { transition: transform 0.08s linear; }
.cmp-tick { stroke: var(--muted); stroke-width: 1.2; }
.cmp-tick.major { stroke: var(--text); stroke-width: 2.4; }
.cmp-label { fill: var(--text); font: 700 17px system-ui, sans-serif; }
.cmp-label.minor { fill: var(--muted); font-size: 11px; }
.cmp-label.north { fill: var(--bad); font-size: 20px; }
.cmp-needle { fill: var(--bad); }
.cmp-lubber { fill: var(--accent); }
.cmp-deg { fill: var(--text); font: 800 30px system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.cmp-card { fill: var(--muted); font: 600 15px system-ui, sans-serif; }
.compass-small .cmp-label.minor { display: none; }
.compass-small .cmp-deg { font-size: 34px; }
.compass-small .cmp-card { display: none; }
.tilt-gauge { width: 54px; height: auto; max-height: 230px; }
.tg-sky { fill: var(--sky); }
.tg-earth { fill: var(--earth); }
.tg-tick { stroke: var(--muted); stroke-width: 2; }
.tg-horizon { stroke: var(--text); stroke-width: 3; }
.tg-mark { stroke: var(--bad); stroke-width: 5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.readline { text-align: center; margin: 0.25rem 0 0; font-weight: 650; font-variant-numeric: tabular-nums; font-size: 1.15rem; }

/* --- map mode --- */
.map-wrap { position: relative; height: min(64vh, 540px); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); margin-top: 1rem; background: #0b0c10; }
.map-canvas { width: 100%; height: 100%; display: block; outline: none; cursor: grab; touch-action: none; }
.map-canvas.over-arrow { cursor: pointer; }
.map-canvas:active, .map-canvas.grabbing-arrow { cursor: grabbing; }
.map-compass { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); pointer-events: none; filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.5)); }
.map-compass .cmp-bezel { fill: rgb(12 14 20 / 0.82); stroke: rgb(255 255 255 / 0.25); }
.map-compass .cmp-label, .map-compass .cmp-deg { fill: #fff; }
.map-compass .cmp-label.north { fill: #ff7a7a; }
.map-compass .cmp-tick.major { stroke: #fff; }
.map-readout { position: absolute; top: 108px; left: 50%; transform: translateX(-50%); background: rgb(0 0 0 / 0.6); color: #fff; padding: 2px 10px; border-radius: 999px; font-size: 0.85rem; font-weight: 650; font-variant-numeric: tabular-nums; pointer-events: none; white-space: nowrap; }
.tilt-ctl { position: absolute; right: 8px; top: 56px; bottom: 60px; display: flex; flex-direction: column; align-items: center; background: rgb(0 0 0 / 0.6); color: #fff; border-radius: 14px; padding: 8px 6px; width: 92px; }
.tilt-ctl label { font-size: 0.72rem; margin: 0 0 4px; font-weight: 650; }
/* the track: sky above level, earth below, with the horizon marked, like the phone's tilt gauge */
.tilt-track { position: relative; flex: 1 1 0; min-height: 0; width: 100%; }
.tilt-strip { position: absolute; left: 8px; top: 10px; bottom: 10px; width: 10px; border-radius: 5px; background: linear-gradient(to bottom, var(--sky), var(--sky-2) 50%, var(--earth) 50%, #5b3a25); }
.tilt-level { position: absolute; left: 2px; width: 46px; top: 50%; height: 0; border-top: 2px solid #fff; pointer-events: none; }
/* labels sit in their own column to the right of the slider, so the handle and fill can never cover them */
.tilt-level span, .tilt-tag { position: absolute; left: 52px; z-index: 2; font-size: 0.64rem; font-weight: 700; padding: 1px 5px; border-radius: 6px; background: rgb(0 0 0 / 0.55); pointer-events: none; white-space: nowrap; }
.tilt-level span { left: 50px; top: 0; transform: translateY(-50%); }
.tilt-tag { opacity: 0.85; }
.tilt-tag.up { top: 0; } .tilt-tag.down { bottom: 0; }
.tilt-ctl input { position: absolute; top: 0; bottom: 0; left: 20px; height: 100%; width: 28px; margin: 0; writing-mode: vertical-lr; direction: rtl; accent-color: #ff7a7a; }
.map-tip { position: absolute; bottom: 22px; left: 8px; right: 108px; margin: 0; font-size: 0.78rem; background: rgb(0 0 0 / 0.6); color: #fff; padding: 5px 9px; border-radius: 8px; pointer-events: none; }
.attrib { position: absolute; bottom: 0; left: 0; right: 0; margin: 0; font-size: 0.6rem; background: rgb(0 0 0 / 0.7); padding: 2px 6px; color: #ddd; }
.attrib a { color: #cde; }
.heading-ctl { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: center; margin-top: 0.75rem; }
.heading-ctl input, .sliders input { width: 100%; accent-color: var(--bad); }

/* --- reveal --- */
.score { margin: 0.15rem 0 0; font-size: clamp(3rem, 15vw, 4.5rem); line-height: 1; font-weight: 700; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; color: var(--accent); }
.score.good { color: var(--good); }
.score.bad { color: var(--bad); }
.rev-detail { margin: 0.5rem 0 0; }
.rev-viz { display: grid; grid-template-columns: 1fr 70px; gap: 0.6rem; align-items: stretch; margin-top: 1rem; }
.radar { width: 100%; aspect-ratio: 1; touch-action: none; }
.bar { width: 70px; height: 100%; touch-action: none; }
.legend { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; align-items: center; font-size: 0.85rem; color: var(--muted); margin: 0.5rem 0 0; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: -0.5rem; }
.dot.good { background: var(--good); } .dot.bad { background: var(--bad); } .dot.ink { background: var(--text); }
.globe-wrap { position: relative; width: 100%; max-width: 440px; margin: 1rem auto 0; }
.globe { width: 100%; aspect-ratio: 1; display: block; touch-action: none; cursor: grab; }
.globe-zoom { position: absolute; right: 8px; bottom: 8px; display: flex; flex-direction: column; gap: 6px; }
.globe-zoom button {
  width: 38px; height: 38px; border-radius: 50%; font-size: 1.3rem; line-height: 1; font-weight: 700;
  color: var(--text); background: color-mix(in srgb, var(--surface-2) 45%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 25%, transparent); backdrop-filter: blur(3px);
}
.globe-zoom button:hover:not(:disabled) { background: color-mix(in srgb, var(--surface-2) 80%, transparent); }
.globe-zoom button:disabled { opacity: 0.3; cursor: default; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.6rem; margin-top: 1rem; }
.fact { background: var(--surface-2); border-radius: 10px; padding: 0.6rem 0.75rem; }
.fact b { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.fact span { color: var(--muted); font-size: 0.82rem; }

/* --- done --- */
.attempt-list { list-style: none; margin: 1.1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.attempt-row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.6rem 0.8rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.attempt-score { font-variant-numeric: tabular-nums; font-weight: 700; }
.attempt-score.good { color: var(--good); } .attempt-score.bad { color: var(--bad); }
.share-preview { white-space: pre-wrap; background: var(--surface-2); border-radius: 10px; padding: 0.6rem 0.8rem; font: 0.85rem/1.45 ui-monospace, monospace; margin: 0.9rem 0 0; }
.attempts-done { margin: 1.1rem 0 0; padding: 0.7rem 0.9rem; font-size: 0.9rem; color: var(--muted); background: var(--surface-2); border-radius: 10px; text-align: center; }

/* --- leaderboard (ridd-le rows) --- */
.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.6rem; }
.tabs button { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.85rem; font-weight: 600; }
.tabs button.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.tabs.small button { font-size: 0.78rem; padding: 0.25rem 0.7rem; }
.rows { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.row { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; padding: 0.6rem 0.65rem; border-radius: 10px; border-top: 1px solid var(--border); }
.row:first-child { border-top: 0; }
.row.me { background: var(--accent-soft); border-top-color: transparent; }
.row-rank { font-size: 0.85rem; font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; }
.row.me .row-rank { color: var(--accent); }
.row-main { min-width: 0; }
.row-name { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { display: block; font-size: 0.8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-score { font-weight: 680; font-variant-numeric: tabular-nums; }
.row-gap { text-align: center; color: var(--muted); padding: 0.25rem 0; letter-spacing: 0.3em; list-style: none; }
.board-empty { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.92rem; }
.board-note { margin: 0.9rem 0 0; font-size: 0.8rem; color: var(--muted); }
.groups { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--border); font-size: 0.9rem; }
.groups summary { cursor: pointer; color: var(--muted); display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.groups summary select { padding: 0.3rem 0.5rem; font-size: 0.85rem; }
.inline { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.inline input { flex: 1; }
.inline .ghost-button { margin-top: 0; }

/* --- yesterday + archive (ridd-le) --- */
.yesterday-prompt { margin: 0.35rem 0 0.9rem; font-size: 0.92rem; color: var(--muted); }
.yesterday-rows { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.yesterday-row { display: flex; align-items: baseline; gap: 0.75rem; padding: 0.5rem 0.75rem; border-radius: 10px; background: var(--surface-2); }
.yesterday-score { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent); flex: none; min-width: 3em; }
.yesterday-mode { margin-left: auto; color: var(--muted); font-size: 0.82rem; }
.archive-note { margin: 0.5rem 0 1rem; color: var(--muted); font-size: 0.9rem; }
.archive-browse { background: var(--accent); color: #fff; border: none; border-radius: 0.5rem; padding: 0.5rem 1rem; font-weight: 600; }
.archive-list { list-style: none; margin: 0.75rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; max-height: 16rem; overflow-y: auto; }
.archive-list-item { width: 100%; display: flex; flex-direction: column; gap: 0.15rem; text-align: left; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.6rem 0.8rem; }
.archive-list-item:hover { border-color: var(--accent); }
.archive-list-day { font-size: 0.8rem; font-weight: 700; color: var(--accent); }
.archive-list-prompt { font-size: 0.9rem; color: var(--muted); }
.archive-list-empty { color: var(--muted); font-size: 0.9rem; }

/* --- practice --- */
.sliders { display: grid; gap: 0.4rem; margin-top: 0.75rem; }
.sliders label { display: grid; grid-template-columns: 5rem 1fr 3.5rem; align-items: center; gap: 0.6rem; font-variant-numeric: tabular-nums; }

/* --- footer --- */
.footer { text-align: center; }
.footer p { margin: 0.5rem 0 0; font-size: 0.8rem; color: var(--muted); }
.footer .privacy { text-align: left; }
.howto { text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem 1.2rem; margin-bottom: 0.75rem; }
.howto summary { cursor: pointer; font-weight: 600; }
.howto li { margin: 0.4rem 0; font-size: 0.92rem; }
.credits { font-size: 0.72rem !important; }

/* --- AR --- */
.ar { position: fixed; inset: 0; z-index: 50; background: #000; }
.ar video, .ar canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ar-hint { position: absolute; top: max(16px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); background: rgb(0 0 0 / 0.65); color: #fff; padding: 0.5rem 1rem; border-radius: 999px; font-weight: 650; white-space: nowrap; }
.ar-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 14px 16px max(14px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgb(0 0 0 / 0.75)); color: #fff; }
.ar-bar .submit { width: auto; margin: 0; }
