:root {
  --bg: #0b0a10;
  --bg-2: #15131d;
  --panel: #1c1a26;
  --panel-2: #272334;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.66);
  --faint: rgba(255, 255, 255, 0.42);
  --accent: #7349f5;
  --accent-bright: #b44bf5;
  --accent-soft: #9c6bff;
  --identity: #18d9b4;
  --identity-bright: #2be7a5;
  --ok: #2be7a5;
  --warn: #ffb020;
  --bad: #ff3b5c;
  --brand: linear-gradient(135deg, var(--accent-bright), var(--accent));
  --identity-grad: linear-gradient(135deg, var(--identity-bright), var(--identity));
  --radius: 18px;
  --radius-sm: 12px;
  --tap: 48px;
  --tabbar: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg), #100c1c 50%, var(--bg)) fixed;
}
body.has-tabs { padding-bottom: calc(var(--tabbar) + var(--safe-bottom)); }
body.has-bar { padding-bottom: calc(132px + var(--safe-bottom)); }
body.has-sheet { overflow: hidden; }

a { color: var(--accent-soft); }
a:hover { text-decoration: none; }
img, video { max-width: 100%; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.01em; }
h1 { font-size: 1.9rem; font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 750; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 10px; }
small { font-size: 0.82rem; }

.wrap { width: 100%; max-width: 600px; margin: 0 auto; padding: 0 16px; }
.icon { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* --- header, tabs, footer ---------------------------------------------------- */

.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 10, 16, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 10px; height: 56px; }
.top .brand {
  display: flex; align-items: center; gap: 8px; margin-right: auto;
  font-weight: 800; font-size: 1.1rem; color: var(--text); text-decoration: none; letter-spacing: 0.01em;
}
.top .brand img { width: 28px; height: 28px; }

.round-btn {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  cursor: pointer; text-decoration: none; padding: 0; font: inherit;
}
.round-btn:hover { background: var(--panel-2); }
.avatar {
  width: 100%; height: 100%; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 0.95rem; color: #fff;
  background: var(--brand);
}
.avatar.big { width: 54px; height: 54px; flex: none; font-size: 1.4rem; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: 0.85rem; font-weight: 650; color: var(--text); white-space: nowrap; text-decoration: none;
}
.pill .icon { color: var(--accent-soft); }

.results-btn {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px;
  padding: 0 12px; border-radius: 999px; text-decoration: none; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); font-size: 0.88rem; font-weight: 650;
}
.results-btn .badge {
  position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--bad); color: #fff; font-size: 0.72rem; font-weight: 800; border: 2px solid var(--bg);
}
@media (max-width: 400px) {
  .results-btn .label { display: none; }
  .results-btn { width: 40px; padding: 0; justify-content: center; }
  .top .brand span { display: none; }
}

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 12;
  display: flex; justify-content: center;
  padding: 0 8px var(--safe-bottom);
  background: rgba(16, 14, 24, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid var(--line);
}
.tabbar.off { display: none; }
.tab {
  flex: 1; max-width: 150px; height: var(--tabbar);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--faint); text-decoration: none; font-size: 0.7rem; font-weight: 650;
}
.tab[aria-current="page"] { color: var(--text); }
.tab[aria-current="page"] .icon { color: var(--accent-soft); }

main { flex: 1; padding: 16px 0 36px; }

.foot { border-top: 1px solid var(--line); padding: 20px 0 28px; color: var(--faint); font-size: 0.8rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
.foot a { color: var(--muted); }
body.has-bar .foot { display: none; }

.page-bar {
  display: flex; align-items: center; gap: 12px; margin: 0 0 14px; min-height: 40px;
}
.page-bar h2 { margin: 0; font-size: 1.15rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tab-head { margin: 4px 0 18px; }
.tab-head h1 { margin-bottom: 4px; }
.tab-head p { color: var(--muted); margin: 0; }
.home-head { margin: 4px 0 16px; }
.home-head h1 { font-size: 2rem; margin: 6px 0 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; color: var(--faint); text-transform: uppercase;
}
.home-head .eyebrow { color: var(--accent-soft); }
.section-head { margin-bottom: 12px; }
.section-head h3 { margin-bottom: 2px; }
.section-head p { margin: 0; }

/* --- banners and notes --------------------------------------------------------- */

.banner {
  background: linear-gradient(90deg, #2a1b4d, #3a1030);
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.banner .wrap { padding-top: 10px; padding-bottom: 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.banner strong { color: var(--warn); }

.toast {
  position: fixed; left: 50%; bottom: calc(88px + var(--safe-bottom)); transform: translateX(-50%);
  max-width: calc(100% - 32px); width: max-content;
  background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 12px 16px; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55); z-index: 70;
  font-size: 0.92rem; animation: rise 0.2s ease-out;
}
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } }

.note { color: var(--muted); font-size: 0.9rem; }
.note.warn { color: var(--warn); }
.note .icon { vertical-align: -2px; }
.fine { color: var(--faint); font-size: 0.78rem; margin: 8px 0 0; }
.center { text-align: center; }
.error {
  background: rgba(255, 59, 92, 0.1); border: 1px solid rgba(255, 59, 92, 0.4);
  color: #ffc9d2; border-radius: var(--radius-sm); padding: 10px 12px; margin: 10px 0; font-size: 0.92rem;
}
.info {
  background: rgba(115, 73, 245, 0.12); border: 1px solid rgba(156, 107, 255, 0.35);
  border-radius: var(--radius-sm); padding: 10px 12px; margin: 0 0 12px; font-size: 0.9rem; color: var(--muted);
}
.info b { color: var(--text); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.loading { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 40px 0; }
.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 36px 16px; color: var(--muted);
}
.empty > .icon { color: var(--faint); margin-bottom: 6px; }
.empty h3 { color: var(--text); margin: 0; }
.empty.failed > .icon { color: var(--bad); }

/* --- cards, forms, buttons -------------------------------------------------- */

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 14px;
}
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card-top h3 { margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 20px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 750; cursor: pointer; text-decoration: none;
  background: var(--brand); color: #fff;
  box-shadow: 0 8px 22px rgba(115, 73, 245, 0.35);
}
.btn.block { width: 100%; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 0.86rem; box-shadow: none; }
.btn.ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--line-strong); box-shadow: none; }
.btn.danger { background: rgba(255, 59, 92, 0.12); color: var(--bad); border: 1px solid rgba(255, 59, 92, 0.45); box-shadow: none; }
.btn.glass { background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.link-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 0;
  background: none; border: 0; color: var(--muted); font: inherit; font-size: 0.9rem; font-weight: 650;
  cursor: pointer; text-decoration: none;
}
.link-btn.accent { color: var(--accent-soft); }
.link-btn.danger { color: var(--bad); }
.link-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.row-links { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--panel-2); border: 0; color: var(--muted); cursor: pointer;
}
.outline-pill {
  display: inline-flex; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 0.82rem; font-weight: 700; color: #fff; white-space: nowrap;
}
.pill-btn {
  flex: none; min-height: 34px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; font: inherit; font-size: 0.82rem; font-weight: 750;
}
.pill-btn.ghost { background: var(--panel-2); border: 1px solid var(--line-strong); }

.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.center { justify-content: center; }
.row > .btn { flex: 1 1 auto; }
.stack > * + * { margin-top: 12px; }
.stack-sm > * + * { margin-top: 8px; }
.stack-lg > * + * { margin-top: 16px; }
.stack-sm > *, .stack > *, .stack-lg > * { margin-bottom: 0; }
.stack-sm > :is(strong, span, small), .stack > :is(strong, span, small) { display: block; }
.grow { flex: 1; min-width: 0; }

label.field { display: block; font-weight: 650; margin-bottom: 6px; }
.field-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
input[type="email"], input[type="text"], input[type="url"], input[type="search"], input[inputmode="numeric"], textarea, select {
  width: 100%; min-height: var(--tap); padding: 0 14px; font: inherit; color: var(--text);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
textarea { padding: 12px 14px; resize: vertical; min-height: 96px; line-height: 1.4; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
input.changed { border-color: var(--accent-soft); }
input:focus-visible, textarea:focus-visible, select:focus-visible, .btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-soft); outline-offset: 2px;
}
.code-input { letter-spacing: 0.4em; font-size: 1.4rem !important; text-align: center; }

.check {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--radius-sm);
  background: var(--panel-2); border: 1px solid var(--line); cursor: pointer; font-size: 0.92rem;
}
.check + .check { margin-top: 10px; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.check.small { padding: 10px; font-size: 0.84rem; color: var(--muted); }
.check.small input { width: 20px; height: 20px; }
.rules { margin: 12px 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--panel-2); font-size: 0.88rem; }
.rules ul { list-style: none; padding: 0; margin: 8px 0 0; color: var(--muted); }
.rules li + li { margin-top: 4px; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; margin-top: 12px; }
.toggle-row .fine { margin-top: 2px; }
input[role="switch"] {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0;
  width: 50px; height: 30px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-strong);
  position: relative; cursor: pointer; transition: background 0.15s;
}
input[role="switch"]::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; transition: transform 0.15s;
}
input[role="switch"]:checked { background: var(--accent); border-color: var(--accent); }
input[role="switch"]:checked::after { transform: translateX(20px); }

.stepper-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.stepper-row .field-head { margin: 0; }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--panel-2); border-radius: 999px; padding: 4px; }
.stepper button {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--panel); color: var(--text);
  font-size: 1.2rem; cursor: pointer;
}
.stepper strong { min-width: 32px; text-align: center; }
.advanced { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
.advanced summary {
  display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; list-style: none; padding: 6px 0;
}
.advanced summary::-webkit-details-marker { display: none; }
.advanced[open] summary { margin-bottom: 12px; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; margin: 10px 0 0; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--muted);
  font: inherit; font-size: 0.85rem; font-weight: 650; cursor: pointer; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--brand); border-color: transparent; color: #fff; }
.chip.static { cursor: default; min-height: 26px; padding: 0 10px; font-size: 0.75rem; }
.chips.small { margin-top: 6px; }

.segmented {
  display: flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line); margin: 10px 0;
}
.segmented button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px;
  border-radius: 999px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer;
}
.segmented button[aria-pressed="true"] { background: var(--brand); color: #fff; }

.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); color: var(--text); font-size: 0.72rem; font-weight: 700; white-space: nowrap;
}

progress {
  width: 100%; height: 8px; border: 0; border-radius: 999px; overflow: hidden;
  appearance: none; -webkit-appearance: none; background: var(--panel-2);
}
progress::-webkit-progress-bar { background: var(--panel-2); }
progress::-webkit-progress-value { background: var(--brand); }
progress::-moz-progress-bar { background: var(--brand); }

.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--line-strong); border-top-color: var(--accent-soft);
  animation: spin 0.9s linear infinite; margin: 8px auto;
}
.spinner.small { width: 22px; height: 22px; border-width: 2px; margin: 0; flex: none; }
.spinner.inline { display: inline-block; width: 14px; height: 14px; border-width: 2px; margin: 0 6px -2px 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- sheets and alerts ----------------------------------------------------------- */

.sheet {
  position: fixed; inset: 0; z-index: 40; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); animation: slide 0.22s ease-out;
}
.sheet.dark { background: #000; }
@keyframes slide { from { transform: translateY(24px); opacity: 0; } }
.sheet-bar {
  position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 8px; height: 54px; padding: 0 16px; background: rgba(11, 10, 16, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.sheet-bar > .link-btn { justify-self: start; color: var(--accent-soft); }
.sheet-bar strong { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-trailing { justify-self: end; }
.sheet-body { width: 100%; max-width: 600px; margin: 0 auto; padding: 16px 16px calc(110px + var(--safe-bottom)); }
.sheet-body > * + * { margin-top: 12px; }
.submit-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  background: linear-gradient(180deg, transparent, var(--bg) 30%);
}
.submit-bar > * { max-width: 568px; margin-left: auto; margin-right: auto; }
.submit-bar .note { text-align: center; margin: 6px auto 0; }

.alert-layer {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px;
  background: rgba(0, 0, 0, 0.6); animation: fade 0.15s ease-out;
}
@keyframes fade { from { opacity: 0; } }
.alert-box {
  width: 100%; max-width: 340px; background: var(--panel-2); border: 1px solid var(--line-strong);
  border-radius: 20px; padding: 20px; text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.alert-box h3 { margin-bottom: 6px; }
.alert-actions { display: flex; gap: 10px; margin-top: 16px; }
.alert-actions .btn { flex: 1; min-height: 44px; padding: 0 12px; }

/* --- home and explore ------------------------------------------------------- */

.poster-0 { background-image: linear-gradient(135deg, #2a1b4d, #6b2e8f, #c0407f); }
.poster-1 { background-image: linear-gradient(135deg, #0e2a47, #1e6e8c, #21c0a8); }
.poster-2 { background-image: linear-gradient(135deg, #3a1030, #8a1e5a, #f0616d); }

.hero { margin: 0 -16px 18px; }
.hero-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  gap: 0; padding: 0;
}
.hero-track::-webkit-scrollbar { display: none; }
.hero-card {
  position: relative; flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 5; max-height: 72vh;
  overflow: hidden; color: #fff; text-decoration: none; border-radius: 0;
}
@media (min-width: 600px) { .hero { margin: 0 0 18px; } .hero-card { border-radius: var(--radius); } }
.hero-video, .tile-video, .stage-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-shade, .tile-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 30%, transparent 50%, rgba(0, 0, 0, 0.85));
}
.hero-tags { position: absolute; top: 14px; left: 16px; display: flex; gap: 6px; }
.hero-text { position: absolute; left: 16px; right: 16px; bottom: 18px; display: flex; flex-direction: column; gap: 4px; }
.hero-text strong { font-size: 1.6rem; line-height: 1.1; font-weight: 800; }
.hero-text > span { color: rgba(255, 255, 255, 0.8); font-size: 0.92rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots span { width: 6px; height: 6px; border-radius: 999px; background: var(--line-strong); transition: width 0.2s; }
.dots span.on { width: 18px; background: var(--accent-soft); }

.shelf { margin: 0 0 22px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.shelf-head h2 { margin: 0; font-size: 1.15rem; }
.see-all { font-size: 0.85rem; font-weight: 700; text-decoration: none; }
.shelf-row {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  margin: 0 -16px; padding: 0 16px;
}
.shelf-row::-webkit-scrollbar { display: none; }
.shelf-row .tile-card { flex: 0 0 38%; max-width: 180px; scroll-snap-align: start; }

.tile-card {
  position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 16px;
  color: #fff; text-decoration: none; border: 1px solid var(--line);
}
.tile-badge {
  position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.5); font-size: 0.7rem; font-weight: 750;
}
.tile-title {
  position: absolute; left: 10px; right: 10px; bottom: 10px; font-weight: 750; font-size: 0.88rem; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.stagger { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.stagger .tile-card:nth-child(even) { margin-top: 0; }
.stagger .tile-card.wide { grid-column: span 2; aspect-ratio: 16 / 11; }
@media (min-width: 560px) { .stagger { grid-template-columns: repeat(3, 1fr); } .stagger .tile-card.wide { grid-column: span 1; aspect-ratio: 9 / 16; } }

.search {
  display: flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; color: var(--faint);
}
.search input { flex: 1; min-height: 44px; padding: 0; background: none; border: 0; }
.search input:focus-visible { outline: none; }
.clear-btn { width: 28px; height: 28px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--panel-2); color: var(--muted); cursor: pointer; }

.action-banner {
  display: flex; align-items: center; gap: 14px; padding: 18px; margin: 0 0 22px; border-radius: var(--radius);
  background: var(--brand); color: #fff; text-decoration: none;
}
.action-banner strong { flex: 1; font-size: 1.05rem; }

.service-card {
  display: flex; align-items: center; gap: 14px; padding: 16px; margin: 0 0 14px; border-radius: var(--radius);
  color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.14);
}
.service-card.brand { background: linear-gradient(135deg, rgba(180, 75, 245, 0.85), rgba(115, 73, 245, 0.85)); }
.service-card.identity { background: linear-gradient(135deg, rgba(43, 231, 165, 0.75), rgba(24, 217, 180, 0.55)); color: #04241c; }
.service-icon {
  width: 50px; height: 50px; flex: none; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.2);
}
.service-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.service-text strong { font-size: 1.02rem; }
.service-text span { font-size: 0.86rem; opacity: 0.88; }
.service-text em { font-size: 0.8rem; opacity: 0.78; }
.service-meta { font-weight: 750; font-size: 0.78rem !important; opacity: 1 !important; }

.ai-banner {
  display: flex; align-items: center; gap: 14px; padding: 18px; margin: 4px 0 14px; border-radius: var(--radius);
  text-decoration: none; color: #fff;
  background: linear-gradient(135deg, #0e2a47, #1e6e8c 60%, #21c0a8);
}
.ai-banner div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ai-banner span { font-size: 0.88rem; opacity: 0.85; }

.enroll-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 0 0 14px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid rgba(24, 217, 180, 0.35); color: var(--text); text-decoration: none;
}
.enroll-card.ready { border-color: var(--line); }
.enroll-face {
  width: 52px; height: 52px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--identity-grad); color: #04241c;
}
.enroll-face img { width: 100%; height: 100%; object-fit: cover; }
.enroll-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.enroll-text span { color: var(--muted); font-size: 0.86rem; }
.enroll-card.compact { padding: 10px 12px; }
.enroll-card.compact .enroll-face { width: 40px; height: 40px; }
.duo { display: grid; column-gap: 14px; }

/* --- AI tools ------------------------------------------------------------------- */

.own-clip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px; margin: 0 0 14px;
  border-radius: var(--radius); color: #fff; text-decoration: none; background: var(--brand);
}
.own-clip strong { font-size: 1.25rem; }
.own-clip > span:not(.btn) { opacity: 0.88; font-size: 0.92rem; }
.own-clip .btn { margin-top: 8px; background: rgba(255, 255, 255, 0.2); box-shadow: none; }
.own-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.2); }

.model-list { display: grid; gap: 12px; }
.model-card {
  display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none;
}
.model-card > .icon { color: var(--faint); }
.model-icon { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; color: #fff; }
.model-icon.big { width: 60px; height: 60px; border-radius: 18px; }
.model-text { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.model-text > span:not(.eyebrow) { color: var(--muted); font-size: 0.86rem; }
.model-text .chips { flex-wrap: wrap; overflow: visible; }
.model-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.model-head h1 { margin: 2px 0 0; font-size: 1.7rem; }
.run-btn { box-shadow: 0 10px 26px rgba(115, 73, 245, 0.4); }
.media-chip {
  position: relative; display: inline-flex; align-items: center; min-height: 64px; border-radius: 12px; overflow: hidden;
  background: var(--panel-2); border: 1px solid var(--line);
}
.media-chip img { width: 64px; height: 64px; object-fit: cover; display: block; }
.media-caption { display: inline-flex; align-items: center; gap: 6px; padding: 0 34px 0 12px; font-size: 0.84rem; max-width: 240px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.image-grid img { width: 100%; border-radius: 12px; display: block; background: #000; }

/* --- results ------------------------------------------------------------------- */

.results > * + * { margin-top: 12px; }
.result {
  display: flex; gap: 14px; padding: 12px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
}
.result-thumb {
  position: relative; width: 96px; flex: none; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; border: 0; padding: 0;
  display: grid; place-items: center; color: #fff; cursor: pointer;
}
.result-thumb:disabled { cursor: default; }
.result-thumb img, .result-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.result-thumb .play {
  position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.result-thumb > .icon, .result-thumb > .spinner { position: relative; }
.result-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.result-text .row { margin-top: 6px; gap: 8px; }
.status { font-size: 0.8rem; font-weight: 750; color: var(--muted); }
.status.ready { color: var(--ok); }
.status.failed { color: var(--bad); }
.status.running, .status.queued { color: var(--accent-soft); }

/* --- media ------------------------------------------------------------------- */

.frame {
  width: 100%; border-radius: var(--radius); background: #000; display: block;
  max-height: 72vh; object-fit: contain;
}
.stage {
  position: relative; aspect-ratio: 9 / 16; max-height: 62vh; margin: 0 auto 12px; border-radius: var(--radius);
  overflow: hidden; width: min(100%, calc(62vh * 9 / 16));
}
.stage.own { background: #000; }
.stage.own video { width: 100%; height: 100%; object-fit: contain; display: block; }
.stage .tag.over { position: absolute; top: 12px; left: 12px; background: rgba(0, 0, 0, 0.5); }
.stage-bottom { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: center; }
.preview-image { width: 100%; border-radius: var(--radius-sm); display: block; }

.generate-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 11;
  padding: 12px 0 calc(12px + var(--safe-bottom));
  background: rgba(11, 10, 16, 0.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.generate-bar .note { text-align: center; margin: 8px 0 0; font-size: 0.84rem; }

/* --- cast, people, photos ------------------------------------------------------- */

.photo-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.photo-chip { position: relative; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex: none; background: var(--panel-2); }
.photo-chip.tall { width: 54px; height: 72px; }
.photo-chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chip-x {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center; background: rgba(0, 0, 0, 0.65); color: #fff; cursor: pointer;
}
.photo-add {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 100%; min-height: 96px; border-radius: 14px; border: 1.5px dashed var(--line-strong);
  background: var(--panel-2); color: var(--muted); font: inherit; font-size: 0.86rem; font-weight: 650; cursor: pointer;
}
.photo-add > span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.photo-add small { color: var(--faint); font-weight: 500; }
.photo-add.small { width: auto; min-width: 64px; min-height: 64px; padding: 0 14px; flex-direction: row; }

.person { padding: 10px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.person + .person { margin-top: 8px; }
.person-row { display: flex; align-items: center; gap: 10px; }
.person-main {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none;
  color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.person-face {
  position: relative; width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--panel); color: var(--faint); border: 2px solid transparent;
}
.person-face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.person-face.you { border-color: var(--identity); }
.person-face .tick, .animal-pic .tick {
  position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--identity); color: #04241c; border: 2px solid var(--panel-2);
}
.person-text { display: flex; flex-direction: column; min-width: 0; }
.person-text small { color: var(--muted); }
.person-extra { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.person-extra > * + * { margin-top: 8px; }
.finding { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--panel-2); margin-bottom: 8px; }
.finding p { margin: 2px 0 0; }

.animal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.animal-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
  color: var(--muted); font: inherit; font-size: 0.8rem; font-weight: 650; cursor: pointer; text-align: center;
}
.animal-pic {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 18px; display: grid; place-items: center;
  background: var(--panel-2); border: 2px solid var(--line); color: var(--faint);
}
.animal-pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.animal-tile[aria-pressed="true"] { color: var(--text); }
.animal-tile[aria-pressed="true"] .animal-pic { border-color: var(--identity); }

.outfit { display: flex; gap: 14px; align-items: center; }
.outfit-thumb {
  width: 64px; height: 88px; flex: none; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  background: var(--panel-2); color: var(--faint);
}
.outfit-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* --- your own clip --------------------------------------------------------------- */

.pick-tile {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.pick-icon { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.pick-text { display: flex; flex-direction: column; min-width: 0; }
.pick-text small { color: var(--muted); }
.link-field {
  display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 14px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); color: var(--faint);
}
.link-field input { flex: 1; min-width: 0; min-height: 42px; padding: 0; background: none; border: 0; }
.link-field input:focus-visible { outline: none; }
.link-field .btn { min-height: 40px; box-shadow: none; }
.problem {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px;
  background: rgba(255, 59, 92, 0.1); border: 1px solid rgba(255, 59, 92, 0.35);
}
.problem > .icon { color: var(--bad); margin-top: 2px; }
.problem.warn { background: rgba(255, 176, 32, 0.1); border-color: rgba(255, 176, 32, 0.35); }
.problem.warn > .icon { color: var(--warn); }

/* --- on-screen text ------------------------------------------------------------ */

.text-change {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); font-size: 0.88rem;
}
.text-change > span { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.text-change s { color: var(--faint); }
.text-change small { color: var(--muted); }
.text-line { display: flex; gap: 12px; align-items: flex-start; }
.text-thumb {
  position: relative; width: 84px; flex: none; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center; background: var(--panel-2); color: var(--faint);
}
.text-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.text-box { position: absolute; border: 2px solid var(--warn); border-radius: 3px; box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.25); }

/* --- change with words and the filmstrip ----------------------------------------- */

.moments-row {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2);
  font-size: 0.86rem; color: var(--muted);
}
.moments-row span { flex: 1; min-width: 0; }

.filmstrip { user-select: none; -webkit-user-select: none; }
.strip { position: relative; height: 64px; border-radius: 10px; overflow: hidden; background: var(--panel-2); touch-action: none; }
.strip-frames { position: absolute; inset: 0; display: flex; }
.strip-frame { flex: 1; background-size: cover; background-position: center; opacity: 0.55; }
.strip-windows { position: absolute; inset: 0; }
.strip-window {
  position: absolute; top: 0; bottom: 0; border: 3px solid var(--accent-soft); border-radius: 8px;
  background: rgba(156, 107, 255, 0.16); cursor: grab; touch-action: none;
}
.strip-window.on { border-color: var(--warn); background: rgba(255, 176, 32, 0.14); }
.grip { position: absolute; top: -3px; bottom: -3px; width: 18px; cursor: ew-resize; touch-action: none; }
.grip::after { content: ""; position: absolute; top: 50%; left: 50%; width: 4px; height: 22px; margin: -11px 0 0 -2px; border-radius: 2px; background: #fff; }
.grip.start { left: -10px; }
.grip.end { right: -10px; }
.strip-head { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; pointer-events: none; box-shadow: 0 0 4px rgba(0, 0, 0, 0.6); }
.strip-caption { margin-top: 8px; font-size: 0.84rem; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }
.strip-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-top: 4px; }

/* --- face scan ------------------------------------------------------------------ */

.scan-intro { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; margin-bottom: 16px; }
.scan-face {
  width: 104px; height: 104px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--identity-grad); color: #04241c; margin-bottom: 6px;
}
.scan-face img { width: 100%; height: 100%; object-fit: cover; }
.tips { list-style: none; padding: 0; margin: 0 0 16px; }
.tips li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; color: var(--muted); font-size: 0.92rem; }
.tips li::before { content: ""; width: 7px; height: 7px; margin-top: 8px; flex: none; border-radius: 50%; background: var(--identity); }

.scan { display: flex; flex-direction: column; align-items: center; text-align: center; }
.scan-top { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.scan-dots { display: flex; gap: 6px; }
.scan-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); transition: all 0.2s; }
.scan-dots span.done { background: var(--identity); }
.scan-dots span.on { width: 22px; border-radius: 999px; background: var(--text); }
.scan-title { margin: 0 0 12px; font-size: 1.35rem; }
.scan-stage {
  position: relative; width: min(100%, 360px); aspect-ratio: 3 / 4; border-radius: 28px; overflow: hidden; background: #000;
}
.scan-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.scan-ring { position: absolute; inset: 6% 10%; width: 80%; height: 88%; pointer-events: none; }
.scan-ring ellipse { fill: none; stroke-width: 2.2; }
.scan-ring .track { stroke: rgba(255, 255, 255, 0.35); }
.scan-ring .fill { stroke: var(--identity); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 0.1s linear; }
.scan-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.scan-stage.flashing .scan-flash { opacity: 0.6; transition: none; }
.scan-coach { margin: 14px 0 2px; font-weight: 700; font-size: 1.02rem; min-height: 1.5em; }
.scan-status { min-height: 1.4em; }
.scan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; width: 100%; }
.scan-grid figure { margin: 0; }
.scan-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; display: block; }
.scan-grid figcaption { font-size: 0.7rem; color: var(--faint); margin-top: 3px; }
.scan-done {
  width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; margin: 10px auto 12px;
  background: var(--identity-grad); color: #04241c;
}
.photo-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; margin: 14px 0 18px; }
.photo-step {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
  color: var(--muted); font: inherit; font-size: 0.78rem; font-weight: 650; cursor: pointer; text-align: center;
}
.photo-plus {
  width: 100%; aspect-ratio: 3 / 4; border-radius: 14px; display: grid; place-items: center;
  background: var(--panel-2); border: 1.5px dashed var(--line-strong); color: var(--faint);
}
.photo-step img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; border: 2px solid var(--identity); display: block; }
.photo-step em { color: var(--warn); font-style: normal; }
.photo-step.has { color: var(--text); }

/* --- sign in ------------------------------------------------------------------- */

.google-slot {
  display: flex; justify-content: center; height: 40px; overflow: hidden;
  border-radius: 999px; position: relative;
}
/* The frame is 44px tall with a light page behind the pill. Crop that edge. */
.google-slot iframe { margin-top: -2px; }
/* Google's stand-in shares the frame's box and is styled inline, which the page's
   policy blocks, so it balloons. Hide that element only: Google sizes the frame
   from this slot, and hiding the slot or its box leaves the frame at no height. */
.google-slot [role="button"] {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 0.85rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* --- plans, coins and account -------------------------------------------------- */

.pill.upgrade { background: var(--brand); border-color: transparent; }
.pill.upgrade .icon { color: #fff; }
.pill .icon, .balance .icon, .pack .icon { color: var(--warn); }
.packs { display: grid; gap: 10px; }
.pack {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px;
}
.pack .row { gap: 12px; }
.pack .row > span { display: flex; flex-direction: column; }
.pack strong { font-size: 1.05rem; }
.pack .btn { min-height: 40px; padding: 0 16px; box-shadow: none; }
.balance { display: flex; align-items: center; gap: 8px; }
.balance strong { font-size: 2.4rem; line-height: 1; font-weight: 800; }
.center-link { display: flex; margin: 4px auto 0; color: var(--accent-soft); }
.plan-mark, .paywall-mark {
  display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--brand); color: #fff;
}
.plan-mark { width: 44px; height: 44px; }

.paywall-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-top: 8px; }
.paywall-mark { width: 64px; height: 64px; box-shadow: 0 10px 30px rgba(115, 73, 245, 0.45); }
.paywall-head h2 { margin: 0; font-size: 1.7rem; }
.paywall-head .info { margin: 0; text-align: left; width: 100%; }
.paywall-features { list-style: none; margin: 18px 0 8px; padding: 0; display: grid; gap: 10px; }
.paywall-features li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.paywall-features .icon { color: var(--accent-soft); flex: none; }
.plan-options { display: grid; gap: 10px; }
.plan-option {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; text-align: left;
  background: var(--panel); border: 2px solid var(--line-strong); border-radius: 16px;
  color: var(--text); font: inherit; cursor: pointer;
}
.plan-option[aria-checked="true"] { border-color: var(--accent-soft); background: rgba(115, 73, 245, 0.14); }
.plan-option .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.plan-option strong { display: flex; align-items: center; gap: 8px; font-size: 1.02rem; }
.plan-radio {
  width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--line-strong);
}
.plan-option[aria-checked="true"] .plan-radio { border: 7px solid var(--accent-soft); }
.plan-price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.plan-price strong { font-size: 1.05rem; }
.badge-pill {
  display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--brand);
  color: #fff; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.02em;
}
.history { margin-top: 14px; border-top: 1px solid var(--line); }
.history-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.history-row > span { display: flex; flex-direction: column; min-width: 0; }
.history-row .plus { color: var(--ok); }
.history-row .minus { color: var(--muted); }
.link-list { display: flex; flex-direction: column; }
.link-list a {
  display: flex; align-items: center; gap: 10px; padding: 12px 0; color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--line); font-size: 0.95rem;
}
.link-list a:last-child { border-bottom: 0; }
.link-list .icon { color: var(--faint); }

/* --- legal pages ------------------------------------------------------------ */

.legal main { padding-top: 28px; }
.legal h2 { margin-top: 28px; font-size: 1.2rem; }
.legal li { margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: 0.9rem; }

/* --- wide screens: tabs move up into the header, browsing grids spread out --------- */

@media (min-width: 960px) {
  body:not(.legal) .top .wrap, body:not(.legal) .foot .wrap, #view.wide { max-width: 1140px; padding: 0 24px; }
  body.has-tabs { padding-bottom: 0; }
  .tabbar, .tabbar.off {
    display: flex; top: 0; bottom: auto; left: 50%; right: auto; transform: translateX(-50%);
    padding: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .tab { flex: none; max-width: none; height: 56px; flex-direction: row; gap: 8px; padding: 0 14px; font-size: 0.9rem; }
  .tab:not([aria-current="page"]):hover { color: var(--muted); }

  .wide .hero-track { gap: 14px; }
  .wide .hero-card { flex: 0 0 calc((100% - 28px) / 3); max-height: none; scroll-snap-align: start; }
  .wide .stagger { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .wide .shelf-row {
    gap: 14px; margin: 0; padding: 0 0 8px;
    scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  }
  .wide .shelf-row .tile-card { flex: 0 0 calc((100% - 70px) / 6); max-width: none; }
  .duo { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
  .model-list { grid-template-columns: repeat(2, 1fr); }
}

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
