/* Bürokratopia – Minispiel „Aktenvernichter“ (0.16.0). Gehört zu assets/js/spiel_vernichter.js. Präfix s-vernichter-,
   Farben nur über Variablen aus app.css (hell und dunkel). Bühne 4:3, darunter zwei große Knöpfe (≥ 56 px). */
.s-vernichter { display: grid; gap: 10px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.s-vernichter-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.s-vernichter-jahr { font-weight: 600; color: var(--leise); }
.s-vernichter-jahr b { display: inline-block; margin-left: 6px; padding: 4px 12px; border-radius: 99px; background: var(--akzent-hell); color: var(--akzent-text); font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.s-vernichter-stand { font-weight: 700; font-variant-numeric: tabular-nums; }
.s-vernichter-stand b { font-size: 1.3rem; }

/* Fristtabelle: zwei Spalten, „nie“ und „sofort“ farblich abgesetzt */
.s-vernichter-tabelle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.s-vernichter-tabelle li { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 40px; padding: 6px 10px; border-radius: var(--radius-k); background: var(--flaeche2); border: 1px solid var(--linie); font-size: .82rem; line-height: 1.25; }
.s-vernichter-tabelle li span { min-width: 0; font-weight: 600; }
.s-vernichter-tabelle li b { white-space: nowrap; color: var(--akzent-text); }
.s-vernichter-tabelle li.s-vernichter-nie { border-color: var(--gold); background: var(--gold-hell); }
.s-vernichter-tabelle li.s-vernichter-nie b { color: var(--gold-text); }
.s-vernichter-tabelle li.s-vernichter-sofort { border-color: var(--rot); background: var(--rot-hell); }
.s-vernichter-tabelle li.s-vernichter-sofort b { color: var(--rot); }
.s-vernichter-regel { margin: 0; font-size: .86rem; color: var(--leise); text-align: center; }
.s-vernichter-regel b { color: var(--text); }

/* Bühne mit den beiden Zielzonen */
.s-vernichter-buehne { position: relative; width: 100%; max-width: 420px; margin: 0 auto; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--linie); background: var(--flaeche2); touch-action: none; outline: none; }
.s-vernichter-buehne:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--akzent) 35%, transparent); }
.s-vernichter-zone { position: absolute; top: 0; bottom: 0; width: 50%; display: grid; align-content: center; padding: 10px; font-weight: 800; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; opacity: .45; transition: opacity .15s, background .15s; pointer-events: none; }
.s-vernichter-zone-links { left: 0; color: var(--rot); justify-items: start; background: linear-gradient(90deg, var(--rot-hell), transparent); }
.s-vernichter-zone-rechts { right: 0; color: var(--gruen-text); justify-items: end; background: linear-gradient(270deg, var(--gruen-hell), transparent); }
.s-vernichter-zone span { writing-mode: vertical-rl; transform: rotate(180deg); }
.s-vernichter-zone-rechts span { transform: none; }
.s-vernichter-links .s-vernichter-zone-links, .s-vernichter-rechts .s-vernichter-zone-rechts { opacity: 1; }
.s-vernichter-links .s-vernichter-blatt { border-color: var(--rot); }
.s-vernichter-rechts .s-vernichter-blatt { border-color: var(--gruen); }

/* Das Blatt */
.s-vernichter-blatt { position: absolute; left: 16%; right: 16%; top: 10%; bottom: 12%; z-index: 2; display: grid; align-content: center; justify-items: center; gap: 8px; padding: 14px 12px 20px; text-align: center; background: var(--flaeche); border: 2px solid var(--linie2); border-radius: 6px 6px 10px 10px; box-shadow: var(--schatten-hoch); cursor: grab; touch-action: none; will-change: transform; transition: transform .18s var(--kurve), border-color .12s; }
.s-vernichter-blatt::before { content: ""; position: absolute; left: 12%; right: 12%; top: 10px; height: 4px; border-radius: 2px; background: var(--linie); }
.s-vernichter-blatt.s-vernichter-zieht { transition: border-color .12s; cursor: grabbing; }
.s-vernichter-art { font-weight: 800; font-size: 1.15rem; line-height: 1.25; color: var(--text); }
.s-vernichter-blattjahr { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; color: var(--akzent-text); font-variant-numeric: tabular-nums; line-height: 1; }
.s-vernichter-unterschrift { padding: 4px 10px; border-radius: 99px; border: 1px dashed var(--gold); color: var(--gold-text); background: var(--gold-hell); font-size: .78rem; font-weight: 700; font-style: italic; }
.s-vernichter-original { background: linear-gradient(180deg, var(--flaeche), var(--gold-hell)); }
.s-vernichter-uhr { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; background: var(--akzent); transform-origin: left; border-radius: 0 0 8px 8px; }
.s-vernichter-uhr.s-vernichter-knapp { background: var(--rot); }
.s-vernichter-blatt.s-vernichter-neu { animation: s-vernichter-rein .32s var(--kurve) both; }
.s-vernichter-blatt.s-vernichter-weg-links { animation: s-vernichter-links .28s ease-in forwards; }
.s-vernichter-blatt.s-vernichter-weg-rechts { animation: s-vernichter-rechts .28s ease-in forwards; }
.s-vernichter-blatt.s-vernichter-weg-unten { animation: s-vernichter-unten .28s ease-in forwards; }
@keyframes s-vernichter-rein { from { transform: translateY(-130%) rotate(-3deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes s-vernichter-links { to { transform: translateX(-150%) rotate(-22deg); opacity: 0; } }
@keyframes s-vernichter-rechts { to { transform: translateX(150%) rotate(22deg); opacity: 0; } }
@keyframes s-vernichter-unten { to { transform: translateY(130%); opacity: 0; } }

/* Rückmeldung, Startschild, Ergebnis */
.s-vernichter-rueck { position: absolute; left: 50%; top: 8%; z-index: 4; transform: translateX(-50%); padding: 6px 14px; border-radius: 99px; font-weight: 800; white-space: nowrap; pointer-events: none; animation: aufploppen .2s var(--kurve); }
.s-vernichter-rueck-schreddern { background: var(--rot); color: var(--flaeche); }
.s-vernichter-rueck-archiv { background: var(--gruen); color: var(--flaeche); }
.s-vernichter-rueck-offen { background: var(--gold); color: var(--flaeche); }
.s-vernichter-start { position: absolute; inset: 0; z-index: 6; display: grid; align-content: center; justify-items: center; gap: 16px; padding: 22px; text-align: center; background: color-mix(in srgb, var(--flaeche) 90%, transparent); backdrop-filter: blur(3px); }
.s-vernichter-start p { margin: 0; font-weight: 600; font-size: .98rem; line-height: 1.4; max-width: 300px; }
.s-vernichter-los { min-width: 170px; min-height: 60px; font-size: 1.25rem; border-radius: 16px; }
.s-vernichter-ende { cursor: default; }
.s-vernichter-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 420px; margin: 0 auto; width: 100%; }
.s-vernichter-knopf { min-height: 58px; font-size: 1.05rem; font-weight: 800; border-radius: 14px; border: 2px solid var(--linie2); }
.s-vernichter-schreddern { background: var(--rot-hell); color: var(--rot); border-color: var(--rot); }
.s-vernichter-archiv { background: var(--gruen-hell); color: var(--gruen-text); border-color: var(--gruen); }
.s-vernichter-knopf:disabled { opacity: .45; }
.s-vernichter-ergebnis { margin: 0; text-align: center; font-weight: 700; padding: 9px 12px; border-radius: var(--radius-k); background: var(--gruen-hell); color: var(--gruen-text); }
.s-vernichter-pointe { margin: 0; text-align: center; font-style: italic; }

@media (max-width: 400px) { .s-vernichter-tabelle li { font-size: .78rem; padding: 5px 8px; } .s-vernichter-art { font-size: 1.02rem; } }
@media (prefers-reduced-motion: reduce) { .s-vernichter-blatt, .s-vernichter-zone { transition: none; } }
