/* ==========================================================================
   LPS Gyűjtemény – design rendszer
   ==========================================================================
   Mobilra tervezve, onnan nő felfelé. Minden szín, méret és térköz token,
   így egy helyen átszínezhető az egész app.
   Sötét mód: a rendszer beállítását követi, de kézzel felülírható.
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* ── Márkaszínek ──────────────────────────────────────────────────── */
  --brand-50:  #fff1f7;
  --brand-100: #ffe0ee;
  --brand-200: #ffc2dd;
  --brand-300: #ff94c2;
  --brand-400: #fb5fa3;
  --brand-500: #ec3487;
  --brand-600: #d61a6d;
  --brand-700: #b01256;
  --brand-800: #911449;
  --brand-900: #7a1540;

  --violet-100: #f3e8ff;
  --violet-300: #d4a9f7;
  --violet-500: #9c43d6;
  --violet-600: #8427bd;

  /* Állapotszínek */
  --owned-bg:   #e8f8ec;
  --owned-fg:   #157f3b;
  --owned-line: #4bbf74;
  --wish-bg:    #e9f1ff;
  --wish-fg:    #1d5fd0;
  --wish-line:  #6ca2f5;

  /* ── Felületek ────────────────────────────────────────────────────── */
  --bg:         #fdf5f9;
  --bg-elev:    #ffffff;
  --bg-sunken:  #f6edf3;
  --surface:    #ffffff;
  --surface-2:  #faf6f9;

  --text:       #241a21;
  --text-soft:  #6b5c66;
  --text-faint: #9c8d96;
  --line:       #efe2ea;
  --line-soft:  #f6eef3;

  --accent:     var(--brand-500);
  --accent-ink: #ffffff;

  --shadow-1: 0 1px 2px rgb(36 26 33 / .06), 0 1px 3px rgb(36 26 33 / .04);
  --shadow-2: 0 4px 12px rgb(36 26 33 / .08), 0 2px 4px rgb(36 26 33 / .04);
  --shadow-3: 0 12px 32px rgb(36 26 33 / .16);

  /* ── Forma ────────────────────────────────────────────────────────── */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-full: 999px;

  /* ── Térköz ───────────────────────────────────────────────────────── */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px;

  /* ── Tipográfia ───────────────────────────────────────────────────── */
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system,
          "Segoe UI Variable", "Segoe UI", Roboto, sans-serif;
  --fs-xs:  0.75rem;
  --fs-sm:  0.8125rem;
  --fs-md:  0.9375rem;
  --fs-lg:  1.0625rem;
  --fs-xl:  clamp(1.15rem, 1rem + 0.7vw, 1.4rem);
  --fs-2xl: clamp(1.4rem, 1.1rem + 1.4vw, 1.9rem);

  /* ── Elrendezés ───────────────────────────────────────────────────── */
  --nav-h: 60px;                       /* alsó navigáció magassága */
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --tap: 44px;                         /* legkisebb érintési célpont */

  --ease: cubic-bezier(.32, .72, 0, 1);
  --dur: 220ms;
}

/* ── Sötét mód ──────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #151013;
    --bg-elev:   #1e171c;
    --bg-sunken: #100c0f;
    --surface:   #1e171c;
    --surface-2: #261d23;

    --text:       #f6edf2;
    --text-soft:  #bfaeb8;
    --text-faint: #8b7a84;
    --line:       #342831;
    --line-soft:  #2a1f27;

    --brand-50:  #2a1420;
    --brand-100: #3a1a2c;
    --accent:     var(--brand-400);
    --accent-ink: #1a0e14;

    --owned-bg:   #15301f;
    --owned-fg:   #7fe0a3;
    --owned-line: #2f7d4d;
    --wish-bg:    #15233f;
    --wish-fg:    #9cc4ff;
    --wish-line:  #2f5da8;

    --shadow-1: 0 1px 2px rgb(0 0 0 / .4);
    --shadow-2: 0 4px 14px rgb(0 0 0 / .45);
    --shadow-3: 0 16px 40px rgb(0 0 0 / .6);
  }
}

:root[data-theme="dark"] {
  --bg:        #151013;
  --bg-elev:   #1e171c;
  --bg-sunken: #100c0f;
  --surface:   #1e171c;
  --surface-2: #261d23;

  --text:       #f6edf2;
  --text-soft:  #bfaeb8;
  --text-faint: #8b7a84;
  --line:       #342831;
  --line-soft:  #2a1f27;

  --brand-50:  #2a1420;
  --brand-100: #3a1a2c;
  --accent:     var(--brand-400);
  --accent-ink: #1a0e14;

  --owned-bg:   #15301f;
  --owned-fg:   #7fe0a3;
  --owned-line: #2f7d4d;
  --wish-bg:    #15233f;
  --wish-fg:    #9cc4ff;
  --wish-line:  #2f5da8;

  --shadow-1: 0 1px 2px rgb(0 0 0 / .4);
  --shadow-2: 0 4px 14px rgb(0 0 0 / .45);
  --shadow-3: 0 16px 40px rgb(0 0 0 / .6);
}

/* ==========================================================================
   Alapok
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  padding-bottom: calc(var(--nav-h) + var(--safe-b));
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }

:where(button, a, input, select, [tabindex]):focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

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

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

/* ==========================================================================
   Fejléc
   ========================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 40;
  padding: calc(var(--safe-t) + var(--s-3)) var(--s-4) var(--s-3);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-row { display: flex; align-items: center; gap: var(--s-3); }

.title {
  font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.02em;
  display: flex; align-items: baseline; gap: var(--s-2);
  flex: 1; min-width: 0; white-space: nowrap;
}
.title small {
  font-size: var(--fs-xs); font-weight: 500; color: var(--text-faint);
  letter-spacing: 0;
}
/* Keskeny képernyőn a fejlécben a gombokra kell a hely, nem az alcímre. */
@media (max-width: 430px) {
  .title small { display: none; }
  .topbar-row { gap: var(--s-1); }
  .icon-btn { width: 40px; }
}

.icon-btn {
  width: var(--tap); height: var(--tap); flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-full); font-size: 1.15rem;
  color: var(--text-soft); transition: background var(--dur) var(--ease);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn[aria-pressed="true"] { background: var(--brand-100); color: var(--brand-600); }

/* Keresőmező */
.search {
  position: relative; margin-top: var(--s-3);
}
.search input {
  width: 100%; height: var(--tap);
  padding: 0 var(--s-10) 0 calc(var(--s-4) + 22px);
  border: 1.5px solid var(--line); border-radius: var(--r-full);
  background: var(--surface); color: var(--text);
  font-size: var(--fs-md); outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.search input::placeholder { color: var(--text-faint); }
.search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}
.search-icon {
  position: absolute; left: var(--s-4); top: 50%; translate: 0 -50%;
  color: var(--text-faint); pointer-events: none; font-size: 1rem;
}
.search-clear {
  position: absolute; right: var(--s-2); top: 50%; translate: 0 -50%;
  width: 34px; height: 34px; border-radius: var(--r-full);
  display: none; place-items: center; color: var(--text-faint);
}
.search[data-filled="1"] .search-clear { display: grid; }

/* ==========================================================================
   Szűrő-chipek
   ========================================================================== */
.chips {
  display: flex; gap: var(--s-2); margin-top: var(--s-3);
  overflow-x: auto; scrollbar-width: none;
  padding-bottom: 2px; scroll-padding-inline: var(--s-4);
  /* A sáv a fejléc széléig fusson, de a chipek ne lógjanak ki */
  margin-inline: calc(var(--s-4) * -1); padding-inline: var(--s-4);
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: none; height: 36px; padding: 0 var(--s-4);
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--line); border-radius: var(--r-full);
  background: var(--surface); color: var(--text-soft);
  font-size: var(--fs-sm); font-weight: 600; white-space: nowrap;
  transition: all var(--dur) var(--ease);
}
.chip:hover { border-color: var(--brand-300); }
.chip[aria-pressed="true"], .chip.is-on {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
}
.chip .count {
  font-variant-numeric: tabular-nums; font-weight: 700;
  opacity: .75; font-size: var(--fs-xs);
}
.chip-filter[data-active="1"] {
  background: var(--brand-100); border-color: var(--brand-300); color: var(--brand-700);
}

/* ==========================================================================
   Rács és kártyák
   ========================================================================== */
main { padding: var(--s-4); }

.meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3); margin-bottom: var(--s-3);
  font-size: var(--fs-sm); color: var(--text-faint);
}

#viewport { position: relative; }

/* A sormagasság FIX. A virtuális görgetés ebből számol, így nem kell a
   kártyákat mérni – azok magassága a kép betöltésétől és a név hosszától
   függene, és az első rajzoláskor még téves értéket adna. */
#grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-auto-rows: var(--row-h, 292px);
  gap: var(--s-3);
  align-content: start;
}
@media (min-width: 560px) { #grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); --row-h: 306px; } }
@media (min-width: 900px) { #grid { gap: var(--s-4); } }

.card {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
  box-shadow: var(--shadow-1);
  height: 100%;          /* a rács fix sormagasságát tölti ki */
  min-height: 0;
}
.card-body { overflow: hidden; }
@media (hover: hover) {
  .card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--brand-300); }
}
.card:active { transform: scale(.985); }

.card.owned  { border-color: var(--owned-line); background: color-mix(in srgb, var(--owned-bg) 42%, var(--surface)); }
.card.wished { border-color: var(--wish-line);  background: color-mix(in srgb, var(--wish-bg) 42%, var(--surface)); }

.card-media {
  position: relative; aspect-ratio: 1;
  background: var(--surface-2);
  display: grid; place-items: center;
}
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: var(--s-2); }
.card-media .ph { font-size: 2.4rem; opacity: .35; }

.badge {
  position: absolute; inset-block-start: var(--s-2); inset-inline-end: var(--s-2);
  width: 26px; height: 26px; border-radius: var(--r-full);
  display: none; place-items: center;
  font-size: .72rem; font-weight: 800; color: #fff;
  box-shadow: var(--shadow-1);
}
.card.owned  .badge { display: grid; background: var(--owned-line); }
.card.wished .badge { display: grid; background: var(--wish-line); }

.card-body { padding: var(--s-3); display: grid; gap: 2px; }
.card-num  { font-size: var(--fs-xs); color: var(--text-faint); font-weight: 600; font-variant-numeric: tabular-nums; }
.card-name { font-size: var(--fs-sm); font-weight: 700; line-height: 1.25;
             overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-sub  { font-size: var(--fs-xs); color: var(--brand-600); font-weight: 600; }
.card-nick { font-size: var(--fs-xs); color: var(--violet-500); font-weight: 600; }
.card-tags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 2px; }
.tag {
  font-size: .68rem; font-weight: 600; padding: 1px 7px;
  border-radius: var(--r-full); background: var(--brand-100); color: var(--brand-700);
}

.card-actions { display: flex; gap: var(--s-1); padding: 0 var(--s-2) var(--s-2); margin-top: auto; }
.act {
  flex: 1; height: 34px; border-radius: var(--r-md);
  font-size: var(--fs-xs); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  transition: all var(--dur) var(--ease);
}
.act-own  { background: var(--owned-bg); color: var(--owned-fg); }
.act-wish { background: var(--wish-bg);  color: var(--wish-fg); }
.card.owned  .act-own  { background: var(--owned-line); color: #fff; }
.card.wished .act-wish { background: var(--wish-line);  color: #fff; }
.act:hover { filter: brightness(.96); }

/* Többszörös kijelölés (17. feladat előkészítése) */
.card[data-selected="1"] { outline: 3px solid var(--accent); outline-offset: -3px; }

/* ==========================================================================
   Üres és töltő állapot
   ========================================================================== */
.empty {
  text-align: center; padding: var(--s-10) var(--s-4); color: var(--text-faint);
}
.empty .emoji { font-size: 3rem; margin-bottom: var(--s-3); }
.empty h2 { font-size: var(--fs-lg); color: var(--text-soft); margin-bottom: var(--s-2); }

.skeleton {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-3);
}
.skeleton div {
  aspect-ratio: .78; border-radius: var(--r-lg);
  background: linear-gradient(100deg, var(--surface-2) 30%, var(--line-soft) 50%, var(--surface-2) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }

/* ==========================================================================
   Alsó navigáció
   ========================================================================== */
.tabbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
  height: calc(var(--nav-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line);
}
.tab {
  display: grid; place-items: center; gap: 2px;
  font-size: .68rem; font-weight: 700; color: var(--text-faint);
  transition: color var(--dur) var(--ease);
  position: relative;
}
.tab .ico { font-size: 1.3rem; line-height: 1; transition: transform var(--dur) var(--ease); }
.tab[aria-selected="true"] { color: var(--accent); }
.tab[aria-selected="true"] .ico { transform: translateY(-1px) scale(1.08); }
.tab .pill {
  position: absolute; top: 4px; left: 50%; translate: -50% 0;
  width: 26px; height: 3px; border-radius: var(--r-full);
  background: var(--accent); opacity: 0; transition: opacity var(--dur) var(--ease);
}
.tab[aria-selected="true"] .pill { opacity: 1; }

/* ==========================================================================
   Lap (bottom sheet / dialógus)
   ========================================================================== */
dialog.sheet {
  border: none; padding: 0; margin: 0 0 0 auto;
  width: 100%; max-width: 100%;
  max-height: 92dvh; height: auto;
  background: var(--bg-elev); color: var(--text);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--shadow-3);
  position: fixed; inset: auto 0 0 0;
  overflow: hidden;
}
dialog.sheet::backdrop { background: rgb(0 0 0 / .45); backdrop-filter: blur(3px); }
dialog.sheet[open] { animation: sheet-up var(--dur) var(--ease); }
@keyframes sheet-up { from { transform: translateY(100%); } }

@media (min-width: 720px) {
  dialog.sheet {
    inset: 50% auto auto 50%; translate: -50% -50%;
    width: min(540px, 92vw); border-radius: var(--r-xl);
    max-height: 86dvh;
  }
  dialog.sheet[open] { animation: sheet-in var(--dur) var(--ease); }
  @keyframes sheet-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
}

.sheet-grip {
  width: 38px; height: 4px; border-radius: var(--r-full);
  background: var(--line); margin: var(--s-2) auto var(--s-1);
}
@media (min-width: 720px) { .sheet-grip { display: none; } }

.sheet-head {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-3) var(--s-4) var(--s-2);
}
.sheet-head h2 { font-size: var(--fs-lg); font-weight: 800; letter-spacing: -.01em; flex: 1; }
.sheet-head p { font-size: var(--fs-sm); color: var(--text-faint); margin-top: 2px; }

.sheet-body { padding: 0 var(--s-4) var(--s-4); overflow-y: auto; max-height: calc(92dvh - 120px); }
.sheet-foot {
  display: flex; gap: var(--s-2); padding: var(--s-3) var(--s-4);
  padding-bottom: calc(var(--s-3) + var(--safe-b));
  border-top: 1px solid var(--line-soft); background: var(--bg-elev);
}

/* ==========================================================================
   Űrlapelemek
   ========================================================================== */
.field { margin-bottom: var(--s-4); }
.field > label {
  display: block; font-size: var(--fs-xs); font-weight: 700;
  color: var(--text-soft); margin-bottom: var(--s-2);
  text-transform: uppercase; letter-spacing: .04em;
}
.field input[type=text], .field select {
  width: 100%; height: var(--tap); padding: 0 var(--s-3);
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); color: var(--text); outline: none;
  transition: border-color var(--dur) var(--ease);
}
.field select { appearance: none; padding-inline-end: var(--s-8);
  background-image: linear-gradient(45deg, transparent 50%, var(--text-faint) 50%),
                    linear-gradient(135deg, var(--text-faint) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus { border-color: var(--accent); }

.btn {
  height: var(--tap); padding: 0 var(--s-5);
  border-radius: var(--r-md); font-size: var(--fs-md); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  transition: all var(--dur) var(--ease);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); flex: 1; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: var(--surface-2); color: var(--text-soft); }
.btn-ghost:hover { background: var(--line-soft); }
.btn-danger { background: var(--surface-2); color: #c62828; }

/* Állapotválasztó */
.state-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); margin-bottom: var(--s-4); }
.state-pick button {
  height: 56px; border-radius: var(--r-md); border: 2px solid var(--line);
  background: var(--surface); font-size: var(--fs-sm); font-weight: 700;
  display: grid; place-items: center; gap: 2px; color: var(--text-soft);
  transition: all var(--dur) var(--ease);
}
.state-pick button .ico { font-size: 1.1rem; }
.state-pick button[aria-pressed="true"][data-v="owned"] { background: var(--owned-bg); border-color: var(--owned-line); color: var(--owned-fg); }
.state-pick button[aria-pressed="true"][data-v="wish"]  { background: var(--wish-bg);  border-color: var(--wish-line);  color: var(--wish-fg); }
.state-pick button[aria-pressed="true"][data-v=""]      { background: var(--surface-2); border-color: var(--text-faint); color: var(--text); }

/* Vásárlás gombok */
.buy { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.buy a {
  height: 38px; padding: 0 var(--s-4); border-radius: var(--r-md);
  font-size: var(--fs-sm); font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center;
}
.buy .ebay   { background: #ffce00; color: #1a1a1a; }
.buy .vinted { background: #09b1ba; color: #fff; }
.buy .google { background: #4285f4; color: #fff; }

.info-list { display: grid; gap: var(--s-2); margin-bottom: var(--s-4);
  background: var(--surface-2); border-radius: var(--r-md); padding: var(--s-3); font-size: var(--fs-sm); }
.info-list div { display: flex; gap: var(--s-2); }
.info-list dt { color: var(--text-faint); min-width: 92px; flex: none; font-weight: 600; }
.info-list dd { color: var(--text); }

.detail-img {
  width: 100%; max-width: 230px; margin: 0 auto var(--s-4);
  aspect-ratio: 1; object-fit: contain;
  background: var(--surface-2); border-radius: var(--r-lg); padding: var(--s-3);
}

/* ==========================================================================
   Értesítések
   ========================================================================== */
#toast {
  position: fixed; left: 50%; translate: -50% 0;
  bottom: calc(var(--nav-h) + var(--safe-b) + var(--s-3));
  z-index: 60; display: none; align-items: center; gap: var(--s-3);
  max-width: min(520px, calc(100vw - var(--s-8)));
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-lg); box-shadow: var(--shadow-3);
  background: #2b2229; color: #fff; font-size: var(--fs-sm); font-weight: 600;
}
#toast.show { display: flex; animation: toast-in var(--dur) var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
#toast.ok  { background: #1a6b3b; }
#toast.err { background: #a52121; }
#toast button {
  flex: none; padding: 6px 12px; border-radius: var(--r-full);
  background: rgb(255 255 255 / .2); color: #fff; font-weight: 700; font-size: var(--fs-xs);
}

.notice {
  display: none; align-items: center; gap: var(--s-3); flex-wrap: wrap;
  background: color-mix(in srgb, #ffb300 16%, var(--surface));
  border: 1.5px solid color-mix(in srgb, #ffb300 45%, transparent);
  border-radius: var(--r-lg); padding: var(--s-3) var(--s-4);
  margin-bottom: var(--s-4); font-size: var(--fs-sm); font-weight: 600;
}
.notice.show { display: flex; }
.notice p { flex: 1; min-width: 180px; }

/* ==========================================================================
   View Transitions
   ========================================================================== */
@view-transition { navigation: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--dur); }
