/* Spieleabend – Moderation (mod.html): Design-Sprache „Matchtime“ (Bühnenschwarz + Gold, #295; Stilprobe
   docs/archiv/entwuerfe/stilprobe-farben-hover.html)
   Wiederkehrende Bausteine mit genau einer Bedeutung – Entwürfe in docs/archiv/entwuerfe/, Regeln in CLAUDE.md:
   - .mt-zone     Bühnenkante: Bereich mit abgeschrägter Ecke oben rechts, Strich in Zonenfarbe (--zone)
   - .mt-tally    Tally-Lampe: das sieht das Publikum gerade (.on)
   - .mt-bulbs    Lauflicht: hier läuft gerade etwas (Timer, Buzzer offen, Warten auf Eingaben)
   - .mt-key      Taste: Live-Aktion, drückt sich spürbar ein (Szenen, Effekte, Hauptaktion)
   - .mt-roll     Zählwerk: Zahl rollt bei Änderung (rollNumber in core.js)
   - .mt-ready    Lichtstreif: Hauptaktion ist „dran“ (zweimal, nicht dauerhaft)
   - .mt-build    Seitenaufbau: Zonen schalten nacheinander ein, Inhalte (.mt-rise) rücken nach
   - .mt-rig      Showbereit: Lampenreihe, so weit ist das hier vorbereitet (renderRig in start.js)
   - .mt-card     Karte: hebt sich beim Zeigen (Hover-Arten, unten)
   - .mt-line     Zeile: Licht von links beim Zeigen, Akzent-Licht wenn ausgewählt (.on)
   Bewegung nur bei echten Änderungen, höchstens ~0,5 s, bei prefers-reduced-motion aus. */
:root {
  --zone-game: #2fd2a8;
  --zone-stage: #8b7cff;
  --zone-fx: #7a7a84;
  --zone-evening: var(--accent);
  --tally: #ff4d5e;
  --bulb: #ffd34d;
  --cut: 16px;
  --lamp: #ffd98a;
  --tally-off: #2b2b30;
  --lamp-off: #232327;
  --sunken: #050506;
  --key-edge: #000000;
}

/* ----- Bühnenkante ----- */
.mt-zone {
  --zone: var(--line-strong);
  position: relative;
  background: var(--panel);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.mt-zone::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: calc(var(--cut) * 2.5);
  height: calc(var(--cut) * 2.5);
  pointer-events: none;
  /* Strich entlang der Schräge: beginnt dort, wo die Ecke abgeschnitten ist (cut / √2) */
  background: linear-gradient(225deg, transparent 0 calc(var(--cut) * 0.707), var(--zone) calc(var(--cut) * 0.707) calc(var(--cut) * 1.25), transparent calc(var(--cut) * 1.25));
}
.mt-zone.game { --zone: var(--zone-game); }
.mt-zone.stage { --zone: var(--zone-stage); }
.mt-zone.fx { --zone: var(--zone-fx); }
.mt-zone.evening { --zone: var(--zone-evening); }
.mt-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ----- Tally-Lampe ----- */
.mt-tally { display: inline-block; flex: none; width: 14px; height: 5px; border-radius: 1px; background: var(--tally-off); vertical-align: middle; }
.mt-tally.on { background: var(--tally); box-shadow: 0 0 8px var(--tally); }

/* ----- Lauflicht ----- */
.mt-bulbs { display: inline-flex; flex: none; align-items: center; gap: 4px; vertical-align: middle; }
.mt-bulbs i { width: 6px; height: 6px; border-radius: 50%; background: var(--bulb); opacity: 0.2; animation: mt-bulb 1.2s infinite; }
.mt-bulbs i:nth-child(2) { animation-delay: 0.15s; }
.mt-bulbs i:nth-child(3) { animation-delay: 0.3s; }
.mt-bulbs i:nth-child(4) { animation-delay: 0.45s; }
.mt-bulbs i:nth-child(5) { animation-delay: 0.6s; }
@keyframes mt-bulb { 0%, 100% { opacity: 0.2; } 40% { opacity: 1; box-shadow: 0 0 7px var(--bulb); } }

/* ----- Taste ----- */
.mt-key { border-bottom: 4px solid var(--key-edge); transition: transform 0.06s, border-bottom-width 0.06s; }
.mt-key:active:not(:disabled) { transform: translateY(3px); border-bottom-width: 1px; }

/* ----- Zählwerk ----- */
.mt-roll { display: inline-block; height: 1.2em; line-height: 1.2; overflow: hidden; vertical-align: bottom; font-variant-numeric: tabular-nums; }
.mt-roll > span { display: block; }

/* ----- Lichtstreif auf der Hauptaktion ----- */
.mt-ready { position: relative; overflow: hidden; }
.mt-ready::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: mt-sweep 1.6s ease-in-out 0.4s 2;
}
@keyframes mt-sweep { to { transform: translateX(120%); } }

/* ----- Seitenaufbau ----- */
.mt-build .mt-zone { animation: mt-power 0.5s both; animation-delay: calc(var(--zone-i, 0) * 80ms); }
/* feste Reihenfolge im Cockpit: Spiel → Bühne → Effekte; sonst Reihenfolge über --zone-i (nicht --i, das erben die Inhalte) */
.mt-build .mt-zone.stage { animation-delay: 0.08s; }
.mt-build .mt-zone.fx { animation-delay: 0.16s; }
.mt-build .mt-rise { animation: mt-rise 0.35s both; animation-delay: calc(0.3s + var(--i, 0) * 30ms); }
@keyframes mt-power { 0% { opacity: 0; filter: brightness(2.2); } 30% { opacity: 1; } 100% { filter: none; } }
@keyframes mt-rise { from { opacity: 0; transform: translateY(6px); } }

/* ----- Showbereit: Lampenreihe wie ein Scheinwerfer-Rig, ruhig, Bewegung nur bei neuen Lampen ----- */
.mt-rig { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-width: 0; }
.mt-rig-word { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.mt-rig-lamps { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; padding: 6px 8px; background: var(--sunken); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.mt-rig-lamps i { height: 10px; border-radius: 2px; background: var(--lamp-off); transition: background 0.3s, box-shadow 0.3s; }
.mt-rig-lamps i.on { background: var(--lamp); box-shadow: 0 0 8px color-mix(in srgb, var(--lamp) 70%, transparent), 0 -6px 14px -6px var(--lamp); }
.mt-rig-lamps i.flick { animation: mt-flick 0.45s; }
.mt-rig-pct { font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }
.mt-rig.full .mt-rig-word { color: var(--lamp); }
.mt-rig.full .mt-rig-lamps { border-color: color-mix(in srgb, var(--lamp) 45%, var(--line)); }
@keyframes mt-flick { 0% { filter: brightness(2.4); } 30% { filter: brightness(0.6); } 55% { filter: brightness(1.8); } 100% { filter: none; } }


/* ----- Hover-Arten (#295): je Objektart genau eine Reaktion -----
   Karte (ein Ding, das man nimmt: Spiel-Kachel, Auswahl-Kachel) hebt sich mit Schatten.
   Zeile (Eintrag in Liste, Navigation, Menü) bekommt neutrales Licht von links; ausgewählt = Licht im Akzent.
   Button/Taste wird heller und drückt sich 1 px ein (mod.css), Live-Tasten tiefer (.mt-key).
   Akzentfarbe nur für „ausgewählt“ und „dran“, nie fürs bloße Zeigen. Neue Karten/Zeilen: Klasse .mt-card bzw.
   .mt-line geben oder hier in die Liste aufnehmen – keine eigenen Hover-Regeln mehr. */
:root {
  --glow: rgba(255, 244, 228, 0.085);
  --glow-on: color-mix(in srgb, var(--accent) 24%, transparent);
  --lift: 0 14px 22px -12px rgba(0, 0, 0, 0.85), 0 3px 0 -1px rgba(0, 0, 0, 0.35);
}
:is(.mt-card, .library-tile, .lib-tile, .discover-card, .wizard-tile, .lib-choice, .lib-switch-tile, .game-item, button.start-stat) { transition: transform 0.16s ease-out, box-shadow 0.16s ease-out, border-color 0.16s, background-color 0.16s; }
:is(.mt-card, .library-tile, .lib-tile, .discover-card, .wizard-tile, .lib-choice, .lib-switch-tile, .game-item, button.start-stat):hover:not(:disabled) { transform: translateY(-3px); box-shadow: var(--lift); filter: none; }
:is(.mt-card, .library-tile, .lib-tile, .discover-card, .wizard-tile, .lib-choice, .lib-switch-tile, .game-item, button.start-stat):active:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 10px -6px rgba(0, 0, 0, 0.8); }
:is(.mt-line, .nav button, .nav-version, .start-list-row, .export-item, .pick-list label, .lib-row, .col-row, button.col-menu-item) { transition: background-color 0.15s, color 0.15s; }
:is(.mt-line, .nav button, .nav-version, .start-list-row, .export-item, .pick-list label, .lib-row, .col-row, button.col-menu-item):is(:hover, :focus-visible) { background: linear-gradient(90deg, var(--glow), transparent 78%); color: var(--text); }
:is(.mt-line.on, .nav .nav-area.active[aria-current="page"], .nav-sub button[aria-current="page"], .col-row.selected) { background: linear-gradient(90deg, var(--glow-on), transparent 85%); }

@media (prefers-reduced-motion: reduce) {
  :is(.mt-card, .library-tile, .lib-tile, .discover-card, .wizard-tile, .lib-choice, .lib-switch-tile, .game-item, button.start-stat):is(:hover, :active) { transform: none; }
  .mt-rig-lamps i.flick { animation: none; }
  .mt-bulbs i { animation: none; opacity: 0.8; }
  .mt-ready::after, .mt-build .mt-zone, .mt-build .mt-rise { animation: none; }
  .mt-key { transition: none; }
}
