/* TUS(S) Reiber 3 – "Flutlicht" theme: crest black + orange, matchday-programme feel. */

:root {
  --orange: #ff7f00;
  --orange-strong: #ff9a2e;
  --orange-soft: rgb(255 127 0 / .14);
  --on-orange: #141414;

  --bg: #0f0f10;
  --surface: #19191b;
  --surface-2: #222225;
  --line: #2f2f34;
  --text: #f4f4f5;
  --muted: #a6a6ae;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgb(0 0 0 / .35);
  --max: 1140px;
  --gutter: clamp(16px, 4vw, 32px);
  --topbar-h: 68px;
  --tabbar-h: 0px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 12px); }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 100% -10%, rgb(255 127 0 / .10), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 400 clamp(16px, 1.1vw + 11px, 17px)/1.65 var(--font);
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-strong); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1, .display {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--orange); color: var(--on-orange); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.noscript { padding: 2rem; text-align: center; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  padding-top: env(safe-area-inset-top);
  background: rgb(15 15 16 / .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgb(255 255 255 / .06);
}
.topbar::after { /* crest split stripe */
  content: ""; position: absolute; inset: auto 0 -3px 0; height: 3px;
  background: linear-gradient(90deg, #000 0 50%, var(--orange) 50% 100%);
}
.topbar__inner {
  max-width: var(--max); margin: 0 auto; height: var(--topbar-h);
  padding: 0 var(--gutter); display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); margin-right: auto; }
.brand:hover { color: var(--text); }
.brand img { width: 44px; height: 44px; filter: drop-shadow(0 2px 6px rgb(0 0 0 / .5)); transition: transform .3s; }
.brand:hover img { transform: rotate(-8deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 1.25rem; text-transform: uppercase; }
.brand__claim { font-size: .78rem; color: var(--muted); }

.mainnav { display: flex; gap: 4px; }
.mainnav a {
  color: var(--text); font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s;
}
.mainnav a:hover { background: var(--surface-2); color: var(--text); }
.mainnav a[aria-current="page"] { background: var(--orange); color: var(--on-orange); }

/* ---------- Bottom tab bar (mobile) ---------- */
.tabbar { display: none; }
@media (max-width: 860px) {
  :root { --topbar-h: 60px; --tabbar-h: 66px; }
  .mainnav { display: none; }
  .brand img { width: 38px; height: 38px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgb(20 20 22 / .9);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-top: 1px solid rgb(255 255 255 / .08);
  }
  .tabbar a, .tabbar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--muted); font: 600 .7rem/1 var(--font); background: none; border: 0; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .tabbar svg { width: 24px; height: 24px; transition: transform .2s; }
  .tabbar [aria-current="page"] { color: var(--orange); }
  .tabbar [aria-current="page"] svg { transform: translateY(-2px); }
}

/* ---------- Layout ---------- */
.view { flex: 1; width: 100%; outline: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-block: clamp(32px, 6vw, 64px); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section__head h2 { margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--orange); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 8px;
}
.eyebrow::before { content: ""; width: 18px; height: 3px; background: var(--orange); border-radius: 2px; }
.page-head { padding-block: clamp(28px, 5vw, 56px) 8px; }
.page-head p { color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: 700 .95rem/1 var(--font); cursor: pointer; transition: transform .15s, background .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--orange); color: var(--on-orange); }
.btn--primary:hover { background: var(--orange-strong); color: var(--on-orange); }
.btn--ghost { background: rgb(255 255 255 / .06); color: var(--text); border-color: rgb(255 255 255 / .14); }
.btn--ghost:hover { background: rgb(255 255 255 / .12); color: var(--text); }
.btn--small { min-height: 36px; padding: 0 14px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(78vh, 680px); display: grid; align-items: end;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(15 15 16 / .1) 0%, rgb(15 15 16 / .55) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgb(15 15 16 / .75) 0%, transparent 70%);
}
.hero__content { width: 100%; padding-bottom: clamp(36px, 7vw, 72px); display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 3vw, 32px); align-items: center; }
.hero__crest { width: clamp(88px, 14vw, 150px); filter: drop-shadow(0 10px 25px rgb(0 0 0 / .6)); animation: crestIn .8s cubic-bezier(.2,.8,.2,1) both; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 5rem); margin: 0; text-shadow: 0 4px 30px rgb(0 0 0 / .5); }
.hero h1 span { color: var(--orange); }
.hero__claim { font-size: clamp(1rem, 1.6vw, 1.25rem); color: #e6e6e6; margin: 6px 0 20px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) {
  .hero__content { grid-template-columns: 1fr; }
}
@keyframes heroZoom { to { transform: scale(1); } }
@keyframes crestIn { from { opacity: 0; transform: translateY(20px) rotate(-12deg) scale(.8); } }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--orange); color: var(--on-orange); overflow: hidden;
  font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase;
  border-block: 3px solid #000;
}
.ticker__track { display: flex; width: max-content; animation: ticker 28s linear infinite; }
.ticker__item { padding: 10px 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 28px; }
.ticker__item::after { content: "⚽"; font-style: normal; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.grid--news { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid--team { grid-template-columns: repeat(auto-fill, minmax(min(46%, 190px), 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .25s;
}
a.card:hover { color: var(--text); transform: translateY(-4px); border-color: rgb(255 127 0 / .55); box-shadow: var(--shadow); }

.news-card { padding: 22px; gap: 10px; min-height: 240px; }
.news-card__no {
  font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 3.2rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgb(255 127 0 / .7);
  position: absolute; right: 18px; top: 12px;
}
.news-card h3 { font-size: 1.2rem; padding-right: 64px; margin: 0; }
.news-card p { color: var(--muted); font-size: .95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: .85rem; color: var(--muted); }
.news-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.news-card__more { color: var(--orange); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.news-card--featured { background: linear-gradient(135deg, rgb(255 127 0 / .22), var(--surface) 55%); }

.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 340px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 900px) { .scroller { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } }

.tile { padding: 22px; gap: 6px; min-height: 150px; justify-content: flex-end; }
.tile svg { width: 30px; height: 30px; color: var(--orange); margin-bottom: auto; }
.tile strong { font-size: 1.1rem; }
.tile span { color: var(--muted); font-size: .9rem; }

/* ---------- Feature (about Reiber) ---------- */
.about { background: var(--surface); border-block: 1px solid var(--line); }
.feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; padding: 28px 0; border-bottom: 1px dashed var(--line); }
.feature:last-child { border-bottom: 0; }
.feature--flip .feature__media { order: -1; }
.feature--wide { grid-template-columns: 1fr; }
.feature__text h3 { color: var(--orange); font-size: 1.35rem; }
.feature__text p { color: #dcdce0; }
.feature__media { margin: 0; justify-self: center; }
.feature__media img { border-radius: var(--radius); box-shadow: var(--shadow); transform: rotate(-1.5deg); border: 4px solid #fff; }
.feature--flip .feature__media img { transform: rotate(1.5deg); }
@media (max-width: 760px) {
  .feature, .feature--flip { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
}

/* ---------- Article ---------- */
.progress { position: fixed; z-index: 40; top: 0; left: 0; height: 3px; width: 100%; background: var(--orange); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.article { max-width: 72ch; margin: 0 auto; padding: clamp(28px, 5vw, 56px) var(--gutter) 24px; }
.article h1 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; color: var(--muted); font-size: .9rem; margin-bottom: 28px; }
.article__meta span { display: inline-flex; align-items: center; gap: 6px; }
.prose p { margin-bottom: 1.15em; hyphens: auto; }
.prose .lead { font-size: 1.15em; color: var(--text); font-weight: 600; border-left: 4px solid var(--orange); padding-left: 16px; }
.article > .prose > p:first-of-type:not(.lead)::first-letter {
  float: left; font-family: var(--font-display); font-weight: 800; font-style: italic;
  font-size: 3.4em; line-height: .9; padding: 4px 10px 0 0; color: var(--orange);
}
.prose h2 { margin-top: 1.6em; display: flex; align-items: center; gap: 12px; }
.prose h2::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--orange), transparent); }
.prose h3.kickoff {
  display: inline-block; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--orange-soft); color: var(--orange); padding: 5px 12px; border-radius: 999px; margin: .8em 0 .6em;
}
.prose figure { margin: 1.5em 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.prose figure img { border-radius: var(--radius-sm); border: 4px solid #fff; box-shadow: var(--shadow); }
.prose figcaption { color: var(--muted); font-size: .9rem; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.prose h2 + p, .prose strong { color: var(--text); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 72ch; margin: 8px auto 48px; padding: 0 var(--gutter); }
.pager a { padding: 16px 18px; gap: 4px; }
.pager small { color: var(--muted); display: flex; align-items: center; gap: 4px; }
.pager strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pager__next { text-align: right; grid-column: 2; }
.pager__next small { justify-content: flex-end; }

/* ---------- Team ---------- */
.team-photo { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.team-photo img { width: 100%; }
.team-photo + .ticker { border-radius: 0 0 var(--radius) var(--radius); margin-top: -6px; position: relative; }

.player { aspect-ratio: 3 / 4.2; }
.player__img { position: absolute; inset: 0; }
.player__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .5s; }
a.player:hover .player__img img { transform: scale(1.06); }
.player::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgb(0 0 0 / .92) 100%); }
.player__no {
  position: absolute; z-index: 1; top: 10px; left: 10px; min-width: 34px; height: 34px; padding: 0 8px;
  display: grid; place-items: center; border-radius: 10px;
  background: var(--orange); color: var(--on-orange); font-weight: 800; font-style: italic;
}
.player__body { position: relative; z-index: 1; margin-top: auto; padding: 14px; }
.player__nick { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.35rem; line-height: 1.05; display: block; }
.player__pos { color: #cfcfd4; font-size: .82rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.profile { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; padding-block: clamp(24px, 4vw, 48px); }
.profile__photo { position: sticky; top: calc(var(--topbar-h) + 20px); margin: 0; }
.profile__photo img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.profile__photo::before { /* crest split behind photo */
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1; border-radius: var(--radius);
  background: linear-gradient(90deg, #000 0 50%, var(--orange) 50%);
}
.profile h1 { margin-bottom: 4px; }
.profile__name { color: var(--muted); font-size: 1.1rem; margin-bottom: 24px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; margin: 0 0 24px; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.facts dt { color: var(--orange); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.facts dd { margin: 2px 0 0; }
.facts .facts--wide { grid-column: 1 / -1; }
.quote {
  position: relative; margin: 0 0 24px; padding: 22px 24px 22px 64px;
  background: var(--orange); color: var(--on-orange); border-radius: var(--radius);
  font-size: 1.15rem; font-weight: 700; font-style: italic;
}
.quote::before { content: "“"; position: absolute; left: 16px; top: -6px; font: 800 5rem/1 Georgia, serif; opacity: .35; }
.quote footer { font-size: .8rem; font-style: normal; font-weight: 600; opacity: .75; margin-top: 6px; }
.profile__nav { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) {
  .profile { grid-template-columns: 1fr; }
  .profile__photo { position: relative; top: 0; max-width: 340px; width: calc(100% - 14px); }
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); gap: 14px; }
.gallery button { padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); cursor: zoom-in; aspect-ratio: 1; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.05); }
.gallery span { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 10px; text-align: left; color: #fff; font-weight: 700; background: linear-gradient(transparent, rgb(0 0 0 / .85)); }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; color: #fff; }
.lightbox::backdrop { background: rgb(0 0 0 / .9); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 64px 16px; }
.lightbox img { max-height: 78dvh; max-width: min(92vw, 1100px); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.lightbox figcaption { font-weight: 700; }
.lightbox__close, .lightbox__nav {
  position: fixed; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; border: 0; background: rgb(255 255 255 / .12); color: #fff; cursor: pointer;
}
.lightbox__close { top: calc(16px + env(safe-area-inset-top)); right: 16px; }
.lightbox__nav { top: 50%; translate: 0 -50%; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox__nav[hidden] { display: none; }

/* ---------- Calendar / journey ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }
.consent { display: grid; justify-items: start; gap: 14px; }
.consent__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.consent label { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: .9rem; cursor: pointer; }
.consent input { accent-color: var(--orange); width: 18px; height: 18px; }
.embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.embed iframe { display: block; width: 100%; height: min(72vh, 680px); border: 0; }
.map img { width: 100%; border-radius: var(--radius-sm); background: #fff; }
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: #0b0b0c; margin-top: 24px; }
.footer__inner { max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter); display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand div { display: flex; flex-direction: column; line-height: 1.3; }
.footer__brand span, .footer__fine { color: var(--muted); font-size: .85rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__links a { color: var(--text); font-weight: 600; font-size: .92rem; }
.footer__links a:hover { color: var(--orange); }
.footer__fine { width: 100%; }

/* ---------- Bottom sheet ---------- */
.sheet {
  margin: auto auto 0; width: min(100%, 520px); max-height: 85dvh;
  border: 1px solid var(--line); border-bottom: 0; border-radius: 24px 24px 0 0;
  background: var(--surface); color: var(--text);
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
}
.sheet::backdrop { background: rgb(0 0 0 / .6); backdrop-filter: blur(3px); }
.sheet[open] { animation: sheetUp .28s cubic-bezier(.2,.8,.2,1); display: grid; gap: 12px; }
.sheet__handle { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 6px; }
.sheet__nav { display: grid; }
.sheet__nav a { display: flex; align-items: center; gap: 14px; padding: 14px 6px; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--line); }
.sheet__nav svg { color: var(--orange); width: 22px; height: 22px; }
.sheet__hint { color: var(--muted); font-size: .9rem; margin: 0; }
@keyframes sheetUp { from { transform: translateY(100%); } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; translate: -50% 0;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px);
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 8px 8px 18px; box-shadow: var(--shadow);
  font-size: .92rem; max-width: calc(100vw - 24px);
}
.toast[hidden] { display: none; }

/* ---------- Misc ---------- */
.skeleton { height: 1em; border-radius: 6px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; margin-bottom: .8em; }
@keyframes shimmer { to { background-position: -200% 0; } }

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; }
  .ticker__item[aria-hidden="true"] { display: none; }
}

@media print {
  .topbar, .tabbar, .footer, .pager, .progress, .ticker { display: none !important; }
  body { background: #fff; color: #000; }
}
