/* Movie Seeker – flach, dunkel als Standard (Film schaut man abends), Akzent Projektor-Bernstein.
   Eine Schrift (Outfit aus /_fonts/hoshibi-fonts.css), Radien <= 6px, keine Schatten/Blur, Übergänge 120ms. */
:root {
  --bg: #0e0e10;
  --surface: #151518;
  --surface-2: #1c1c20;
  --line: #2a2a2f;
  --line-strong: #3a3a41;
  --text: #ecebe8;
  --muted: #9b9aa3;
  --accent: #e0a030;
  --accent-hover: #ebb04a;
  --accent-ink: #1a1203;
  --accent-text: #f0b954;
  --ok: #4cb084;
  --danger: #e0645a;
  --font: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --r: 4px;
  --wrap: min(1280px, calc(100% - 2rem));
  --nav-h: 56px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f5f2; --surface: #ffffff; --surface-2: #efede8; --line: #dedbd3; --line-strong: #c9c5ba;
    --text: #1b1b1d; --muted: #5d5d66; --accent: #a86e08; --accent-hover: #8f5d05; --accent-ink: #ffffff;
    --accent-text: #8f5d05; --ok: #1f7a55; --danger: #b8372d; color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.55 var(--font); min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; width: var(--wrap); margin: 0 auto; padding: 1.5rem 0 3rem; }
h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--accent); }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* Kopfzeile */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.top-in { width: var(--wrap); margin: 0 auto; min-height: var(--nav-h); display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; padding: 0.4rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.brand svg { width: 1.6rem; height: 1.6rem; color: var(--text); }
.nav { display: flex; gap: 0.25rem; }
.nav a { padding: 0.45rem 0.7rem; border-radius: var(--r); text-decoration: none; color: var(--muted); transition: color 120ms, background-color 120ms; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
.search { display: flex; }
.search input { width: 11rem; }
@media (max-width: 760px) {
  .top-in { gap: 0.5rem 1rem; }
  .top-right { margin-left: 0; width: 100%; order: 3; }
  .search { flex: 1; }
  .search input { width: 100%; }
  .nav { order: 2; margin-left: auto; }
}

/* Formularelemente und Knöpfe – ein Vokabular */
input, select, button { font: inherit; color: inherit; }
input[type="search"], input[type="number"], select {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r);
  padding: 0.5rem 0.7rem; min-height: 2.5rem; transition: border-color 120ms;
}
input::placeholder { color: var(--muted); }
input:hover, select:hover { border-color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 2.5rem; padding: 0.5rem 1rem;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--r); cursor: pointer;
  text-decoration: none; font-weight: 500; transition: background-color 120ms, border-color 120ms;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn[aria-pressed="true"], .btn.is-on { border-color: var(--accent); color: var(--accent-text); }
.btn-primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: transparent; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-text { background: none; border-color: transparent; color: var(--muted); }
.btn-text:hover { color: var(--text); border-color: transparent; }
.btn svg { width: 1rem; height: 1rem; }

/* Seitenkopf */
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 0.5rem 0 1.25rem; }
.head p { margin: 0; color: var(--muted); }
section + section { margin-top: 2.5rem; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.9rem; }
.sec-head a { color: var(--muted); font-size: 0.9rem; }

/* Filter */
.filters { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.filters label { display: grid; gap: 0.2rem; font-size: 0.8rem; color: var(--muted); }
.filters .btn { align-self: end; }

/* Poster-Raster */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1.25rem 0.9rem; list-style: none; margin: 0; padding: 0; }
@media (max-width: 480px) { .grid { grid-template-columns: repeat(2, 1fr); } }
.poster { display: block; text-decoration: none; }
.poster-frame { position: relative; display: block; aspect-ratio: 2 / 3; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.poster-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 160ms; }
.poster:hover .poster-frame img { transform: scale(1.02); }
.poster:hover .poster-title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.2em; }
.poster-none { position: absolute; inset: 0; display: grid; place-items: center; padding: 0.75rem; text-align: center; color: var(--muted); font-size: 0.85rem; }
.poster-title { display: block; margin-top: 0.5rem; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.poster-meta { display: block; font-size: 0.85rem; color: var(--muted); }
.mark { position: absolute; left: 0; top: 0.5rem; padding: 0.15rem 0.5rem; font-size: 0.75rem; font-weight: 600; background: var(--accent); color: var(--accent-ink); border-radius: 0 var(--r) var(--r) 0; }
.mark-watched { background: var(--ok); color: #05150e; }

/* Blättern */
.row .mark { position: static; border-radius: var(--r); }
.grid > li { content-visibility: auto; contain-intrinsic-size: auto 18rem; }
.grid-sm > li { contain-intrinsic-size: auto 14.5rem; }
.more { display: grid; justify-items: center; gap: 0.75rem; margin-top: 2rem; min-height: 3rem; }
.more p { margin: 0; font-size: 0.9rem; }
.more [hidden], .pager[hidden] { display: none; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; }
.pager .muted { font-size: 0.9rem; }

/* Kalender */
.month { margin-top: 2rem; }
.month h2 { padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); margin-bottom: 0.25rem; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 4.5rem 3rem 1fr auto; gap: 1rem; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.row:hover .row-title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.2em; }
.row-date { color: var(--accent-text); font-variant-numeric: tabular-nums; font-weight: 500; }
.row-thumb { width: 3rem; height: auto; align-self: start; aspect-ratio: 2 / 3; background: var(--surface); border-radius: var(--r); object-fit: cover; }
.row-title { font-weight: 500; }
.row-sub { display: block; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 480px) { .row { grid-template-columns: 3.5rem 2.5rem 1fr; } .row .mark { display: none; } .row-thumb { width: 2.5rem; } }

/* Filmseite */
.movie-hero { position: relative; }
.movie-backdrop { height: clamp(10rem, 28vw, 20rem); background: var(--surface); border-radius: var(--r); overflow: hidden; }
.movie-backdrop img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.movie { display: grid; grid-template-columns: minmax(10rem, 16rem) 1fr; grid-template-rows: auto 1fr; gap: 0 2rem; margin-top: 1.5rem; position: relative; align-items: start; }
.movie > .poster-frame { grid-row: 1 / span 2; margin-top: -6rem; }
.movie-info { grid-column: 2; padding-top: 1.25rem; }
.movie .poster-frame { outline: 4px solid var(--bg); }
@media (max-width: 680px) { .movie { grid-template-columns: 8rem 1fr; gap: 0 1rem; } .movie > .poster-frame { grid-row: 1; margin-top: -3.5rem; } .movie-info { grid-column: 1 / -1; grid-row: 2; } }
.movie-head { align-self: end; padding-bottom: 0.5rem; }
.movie-head .sub { color: var(--muted); margin-top: 0.4rem; }
.tagline { color: var(--muted); font-style: italic; margin-bottom: 1rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem; margin: 1.5rem 0; padding: 1rem 0; border-block: 1px solid var(--line); }
.facts dt { font-size: 0.8rem; color: var(--muted); }
.facts dd { margin: 0.1rem 0 0; font-weight: 500; }
.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin: 1.25rem 0; }
.rate { display: flex; gap: 0.25rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.25rem; }
.rate[hidden] { display: none; }
.rate button { min-width: 2.25rem; padding-inline: 0.4rem; }
.providers { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0.5rem 0 0; padding: 0; }
.providers img { width: 2.5rem; height: 2.5rem; border-radius: var(--r); }
.providers li { display: grid; gap: 0.2rem; justify-items: center; width: 4rem; text-align: center; font-size: 0.7rem; color: var(--muted); line-height: 1.2; }
.cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.4rem 1.5rem; list-style: none; margin: 0.5rem 0 0; padding: 0; }
.cast span { display: block; font-size: 0.85rem; color: var(--muted); }
.trailer { aspect-ratio: 16 / 9; width: 100%; max-width: 48rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.trailer-open { max-width: 48rem; }

/* Hinweise, leere Zustände */
.notice { padding: 1rem 1.1rem; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); }
.notice h2 { margin-bottom: 0.3rem; }
.notice p { margin: 0; color: var(--muted); }
.empty { padding: 2.5rem 0; max-width: 34rem; }
.empty h2 { margin-bottom: 0.4rem; }
.empty p { color: var(--muted); }
.status-line { min-height: 1.5rem; color: var(--muted); font-size: 0.9rem; }
.status-line.err { color: var(--danger); }

/* Tabs (Watchlist) */
.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; flex-wrap: wrap; }
.tabs a { padding: 0.55rem 0.8rem; text-decoration: none; color: var(--muted); }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.tabs .count { color: var(--muted); font-variant-numeric: tabular-nums; margin-left: 0.25rem; font-size: 0.85rem; }
.tabs .sort { margin-left: auto; }

/* Einstellungen */
.settings { max-width: 36rem; }
.setting { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.setting p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.9rem; }

/* Fuß */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.foot-in { width: var(--wrap); margin: 0 auto; padding: 1.25rem 0; display: flex; gap: 0.5rem 1.5rem; flex-wrap: wrap; justify-content: space-between; }

.error-page { padding: 4rem 0; }
.error-page .code { font-size: 4rem; font-weight: 600; color: var(--accent-text); line-height: 1; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.prov-kind { margin: 0.9rem 0 0; }
.movie-info section h2 { margin-bottom: 0.6rem; }

.credit { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.tmdb-logo { display: block; height: 0.6rem; width: auto; opacity: 0.85; }

/* Start: Begrüßung und Übersicht */
.eyebrow { font-size: 0.85rem; color: var(--accent-text); font-weight: 500; margin-bottom: 0.15rem; }
.head-hello { align-items: flex-end; }
.btn .count { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.85rem; }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.panel { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 1rem 1.1rem; }
.panel + .panel { margin-top: 0; }
.panel-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.7rem; }
.panel-title h2 { font-size: 1.05rem; }
.panel-title a { color: var(--muted); font-size: 0.9rem; }
.panel > p { margin: 0; }
.rows-tight .row-slim { grid-template-columns: 7.5rem 1fr auto; padding: 0.5rem 0; }
.row-rel { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(3.6rem, 1fr)); gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.thumbs a { display: block; aspect-ratio: 2 / 3; border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumb-none { display: grid; place-items: center; height: 100%; padding: 0.3rem; font-size: 0.65rem; text-align: center; color: var(--muted); }

/* Anbieter anklickbar */
.providers a { display: grid; gap: 0.2rem; justify-items: center; text-decoration: none; color: inherit; border-radius: var(--r); padding: 0.15rem; }
.providers a:hover span { color: var(--text); }
.providers a:hover img { outline: 2px solid var(--accent); outline-offset: 1px; }
.prov-note { font-size: 0.8rem; margin: 0.6rem 0 0; }

/* Kalender: Tage mit Postern */
.jump { display: flex; gap: 0.25rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; align-items: center; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.jump a { padding: 0.5rem 0.8rem; text-decoration: none; color: var(--muted); white-space: nowrap; flex: none; }
.jump a:hover { color: var(--text); }
.toggle-mine { margin-left: auto; white-space: nowrap; flex: none; padding-left: 0.8rem; display: inline-flex; align-items: center; gap: 0.45rem; color: var(--muted); font-size: 0.9rem; cursor: pointer; }
.month { scroll-margin-top: calc(var(--nav-h) + 1rem); }
.month > h2 { margin: 0 0 0.9rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line-strong); }
.day { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 0.9rem 0 1.1rem; border-bottom: 1px solid var(--line); }
.day[hidden], .grid > li[hidden], .month[hidden] { display: none; }
.day-head { display: grid; align-content: start; gap: 0.05rem; position: sticky; top: calc(var(--nav-h) + 0.5rem); align-self: start; }
.day-num { font-size: 2rem; font-weight: 600; line-height: 1; color: var(--accent-text); }
.day-wd { font-weight: 500; }
.day-rel { color: var(--muted); font-size: 0.85rem; }
.grid-sm { grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: 1rem 0.75rem; }
.grid-sm .poster-title { font-size: 0.85rem; }
@media (max-width: 600px) {
  .day { grid-template-columns: 1fr; gap: 0.6rem; }
  .day-head { position: static; grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 0.6rem; }
  .day-num { font-size: 1.4rem; }
  .grid-sm { grid-template-columns: repeat(3, 1fr); }
}

/* Einstellungen (Aufbau wie AniSeeker: Navigation links, Karten rechts) */
.settings-layout { display: grid; grid-template-columns: 13rem 1fr; gap: 2rem; align-items: start; }
.settings-nav { position: sticky; top: calc(var(--nav-h) + 1rem); display: grid; gap: 0.15rem; }
.settings-nav a { padding: 0.5rem 0.7rem; border-radius: var(--r); text-decoration: none; color: var(--muted); transition: color 120ms, background-color 120ms; }
.settings-nav a:hover { color: var(--text); background: var(--surface-2); }
.settings-body { display: grid; gap: 1rem; max-width: 44rem; }
.s-card { scroll-margin-top: calc(var(--nav-h) + 1rem); }
.s-card h2 { margin-bottom: 0.3rem; }
.s-card > p { margin: 0 0 1rem; }
.who { display: flex; gap: 1.1rem; align-items: center; margin-bottom: 1.1rem; flex-wrap: wrap; }
.avatar { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: var(--r); background: var(--accent); color: var(--accent-ink); font-size: 1.4rem; font-weight: 600; flex: none; }
.who-data { display: grid; gap: 0.3rem; margin: 0; }
.who-data div { display: flex; gap: 0.75rem; }
.who-data dt { width: 7.5rem; color: var(--muted); }
.who-data dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 0.75rem 0; border-top: 1px solid var(--line); }
.toggle-row .d { color: var(--muted); font-size: 0.9rem; margin-top: 0.1rem; }
.switch { position: relative; flex: none; display: inline-block; width: 2.75rem; height: 1.6rem; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-strong); transition: background-color 120ms, border-color 120ms; }
.switch .track::after { content: ''; position: absolute; top: 2px; left: 2px; width: calc(1.6rem - 8px); height: calc(1.6rem - 8px); border-radius: 3px; background: var(--muted); transition: transform 120ms, background-color 120ms; }
.switch input:checked + .track { background: var(--accent); border-color: transparent; }
.switch input:checked + .track::after { transform: translateX(1.15rem); background: var(--accent-ink); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch input:disabled { cursor: default; }
.switch input:disabled + .track { opacity: 0.5; }
.s-danger { border-color: var(--danger); }
.btn-danger { background: var(--danger); border-color: transparent; color: #fff; }
.s-card .actions { margin: 0; }
.s-card [hidden] { display: none; }
@media (max-width: 760px) {
  .settings-layout { grid-template-columns: 1fr; gap: 1rem; }
  .settings-nav { position: static; grid-auto-flow: column; overflow-x: auto; border-bottom: 1px solid var(--line); }
  .settings-nav a { white-space: nowrap; }
}

.poster-title { hyphens: auto; overflow-wrap: break-word; }
.who-data dt { width: 9rem; flex: none; }
.s-card .status-line { min-height: 0; margin: 0.5rem 0 0; }
.s-card .status-line:empty { display: none; }
@media (max-width: 600px) { .who-data div { flex-direction: column; gap: 0; } .who-data dt { width: auto; font-size: 0.85rem; } }

.btn-me { gap: 0.5rem; padding-left: 0.4rem; }
.me-avatar { width: 1.5rem; height: 1.5rem; border-radius: var(--r); object-fit: cover; background: var(--surface-2); flex: none; }
.me-initial { display: grid; place-items: center; font-size: 0.8rem; font-weight: 600; background: var(--accent); color: var(--accent-ink); }
img.avatar { object-fit: cover; background: var(--surface-2); }
.settings-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
@media (max-width: 760px) { .settings-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); background: none; } }

/* Glücksrad und Würfel */
.wheel-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 3rem; align-items: center; padding: 1rem 0 2rem; }
.wheel-h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0.2rem 0 0.9rem; }
.wheel-layout .lead { max-width: 46ch; margin: 0 0 1.5rem; }
.segmented { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; }
.segmented button { padding: 0.5rem 1rem; min-height: 2.5rem; background: none; border: 0; color: var(--muted); cursor: pointer; transition: color 120ms, background-color 120ms; }
.segmented button + button { border-left: 1px solid var(--line-strong); }
.segmented button:hover:not(:disabled) { color: var(--text); }
.segmented button.active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.segmented button:disabled { opacity: 0.5; cursor: default; }
.wheel-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.2rem; }
.wheel-actions .btn { min-width: 7.5rem; }
.wheel-result { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1.2rem; align-items: center; padding: 1rem; margin-top: 1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.wheel-result[hidden] { display: none; }
.wheel-result img { width: 7rem; height: auto; aspect-ratio: 2 / 3; border-radius: var(--r); object-fit: cover; background: var(--surface-2); }
.wheel-result h2 { font-size: 1.4rem; margin-bottom: 0.2rem; }
.wheel-result p { margin: 0 0 0.9rem; font-size: 0.9rem; }
.wheel-wrap { position: relative; width: min(520px, 100%); aspect-ratio: 1; margin-inline: auto; }
.wheel-wrap > svg { width: 100%; height: 100%; transition: transform 5.2s cubic-bezier(0.12, 0.8, 0.12, 1); }
.wheel-pointer { position: absolute; top: -6px; left: 50%; translate: -50% 0; width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 24px solid var(--accent); z-index: 2; }
.wheel-center { position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-strong); display: grid; place-items: center; }
.wheel-center svg { width: 42%; height: auto; color: var(--text); transition: none; }
.wheel-wrap.dicing > svg, .wheel-wrap.dicing .wheel-center, .wheel-wrap.dicing .wheel-pointer { opacity: 0.18; transition: opacity 0.3s; }
.dice-stage { --die: clamp(84px, 22vw, 128px); position: absolute; inset: 0; display: grid; place-items: center; perspective: 900px; pointer-events: none; z-index: 3; }
.dice-stage[hidden] { display: none; }
.die-throw, .die-shadow { grid-area: 1 / 1; width: var(--die); height: var(--die); }
.die-throw { transform-style: preserve-3d; }
.die-shadow { align-self: center; translate: 0 calc(var(--die) * 0.62); height: calc(var(--die) * 0.2); border-radius: 50%; background: #000; opacity: 0.6; }
.die { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.die-face { position: absolute; inset: 0; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 14%; gap: 4%; border-radius: 12%; background: #f2eee6; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); backface-visibility: hidden; }
.die-face i { display: block; }
.die-face .pip { margin: 12%; border-radius: 50%; background: #1b1b20; }
.die-face .pip.one { margin: -18%; background: var(--accent); }
@media (max-width: 860px) { .wheel-layout { grid-template-columns: 1fr; gap: 2rem; } .wheel-wrap { order: -1; width: min(420px, 100%); } }
@media (max-width: 480px) { .wheel-result { grid-template-columns: 5rem minmax(0, 1fr); } .wheel-result img { width: 5rem; } }
.head-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.wheel-filters { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }
.wheel-filters label { display: grid; gap: 0.2rem; font-size: 0.8rem; color: var(--muted); }
.wheel-filters select { min-width: 8.5rem; max-width: 100%; }
