/* Seitenrahmen – für alle Fred-Varianten gleich */
  :root { --tuerkis:#1d6f78; --hell:#f6e7c8; --rot:#8e1f2b; --tinte:#22282e; }
  * { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
  html,body { height:100%; margin:0; }
  body {
    font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
    color:var(--tinte); overflow:hidden; touch-action:manipulation; user-select:none; -webkit-user-select:none;
    background:
      repeating-conic-gradient(from 0deg at 50% 62%, #23808a 0deg 10deg, #1d6f78 10deg 20deg);
    display:flex; flex-direction:column; align-items:center;
    padding: max(14px, env(safe-area-inset-top)) 16px max(14px, env(safe-area-inset-bottom));
  }
  h1 {
    margin:4px 0 0; font-size:clamp(26px, 8vw, 40px); line-height:1; text-align:center; color:var(--hell);
    letter-spacing:.5px; text-shadow: 0 3px 0 #0e3c42; transform:rotate(-2deg);
  }
  h1 small { display:block; font-size:.5em; font-weight:600; letter-spacing:3px; text-transform:uppercase; opacity:.85; }
  #blase {
    position:relative; margin-top:16px; min-height:92px; width:min(100%, 420px);
    background:var(--hell); border:4px solid var(--tinte); border-radius:22px;
    padding:14px 18px; font-size:clamp(19px, 5.6vw, 26px); font-weight:700; text-align:center; line-height:1.2;
    display:flex; align-items:center; justify-content:center; text-wrap:balance;
    box-shadow: 0 6px 0 rgba(0,0,0,.25); transition:transform .15s;
  }
  #blase::after {
    content:""; position:absolute; left:50%; bottom:-22px; width:30px; height:30px; margin-left:-15px;
    background:var(--hell); border-right:4px solid var(--tinte); border-bottom:4px solid var(--tinte);
    transform:rotate(45deg) skew(12deg,12deg);
  }
  #blase { flex-wrap:wrap; gap:0 .3em; } #blase i { font-size:.72em; font-weight:600; opacity:.7; }
  #blase.plopp { animation:plopp .3s; }
  @keyframes plopp { 0%{transform:scale(.8)} 60%{transform:scale(1.06)} 100%{transform:scale(1)} }
  #buehne { flex:1; min-height:0; width:100%; display:flex; align-items:flex-end; justify-content:center; }
  #fred { height:100%; max-height:560px; width:auto; max-width:100%; cursor:pointer; overflow:visible; }
  #fuss { display:flex; gap:10px; align-items:center; margin-top:8px; }
  .knopf {
    font:inherit; font-weight:700; font-size:15px; color:var(--tinte); background:var(--hell);
    border:3px solid var(--tinte); border-radius:999px; padding:8px 14px; box-shadow:0 4px 0 rgba(0,0,0,.25);
  }
  .knopf:active { transform:translateY(3px); box-shadow:0 1px 0 rgba(0,0,0,.25); }
  #zaehler { min-width:9.5em; text-align:center; }


/* --- Wut-Stufen (gilt für alle Varianten) – bewusst dezent: Anzeige, etwas Röte, leichtes Zittern --- */
#wut { position:fixed; right:8px; top:50%; width:16px; height:150px; margin-top:-50px; z-index:5; pointer-events:none;
  background:rgba(0,0,0,.35); border:3px solid var(--tinte); border-radius:999px; overflow:hidden; opacity:0; transition:opacity .4s; }
#wut span { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%) rotate(-90deg); font-size:9px; font-weight:900; letter-spacing:2px; color:#fff; }
#wutFuellung { position:absolute; left:0; right:0; bottom:0; height:0; background:linear-gradient(#ff2a1a, #ffb21a); transition:height .25s; }
body:not([data-wut="0"]) #wut { opacity:1; }
/* Die Wut selbst zeigt jede Figur in ihrer eigenen Datei (body[data-wut="1…4"]); hier nur die Anzeige. */

/* --- Blase: Vorsatz (Spruch des Tages) --- */
#blase small { flex-basis:100%; font-size:.55em; font-weight:600; letter-spacing:.5px; opacity:.65; text-transform:uppercase; }

/* --- Spruchliste --- */
#liste { position:fixed; inset:0; z-index:20; display:flex; flex-direction:column; gap:10px; background:var(--hell); color:var(--tinte);
  padding:max(12px, env(safe-area-inset-top)) 14px max(12px, env(safe-area-inset-bottom));
  transform:translateY(102%); transition:transform .25s ease-out; visibility:hidden; }
#liste.offen { transform:none; visibility:visible; }
#listeKopf { display:flex; justify-content:space-between; align-items:center; font-size:22px; }
#listeFilter { display:flex; gap:8px; }
#liste input { font:inherit; font-size:16px; min-width:0; flex:1; padding:9px 12px; border:3px solid var(--tinte); border-radius:12px; background:#fff; color:var(--tinte); }
#nurLieblinge[aria-pressed="true"] { background:#ffd24a; }
#listeInhalt { flex:1; min-height:0; overflow-y:auto; border:3px solid var(--tinte); border-radius:14px; background:#fff; -webkit-overflow-scrolling:touch; }
.zeile { display:flex; align-items:stretch; border-bottom:1px solid #d9cfb8; }
.zeile.tages { background:#fff3c9; }
.zeile button { font:inherit; background:none; border:0; color:inherit; padding:11px 10px; cursor:pointer; }
.zeile .text { flex:1; text-align:left; font-size:16px; font-weight:600; }
.zeile .stern, .zeile .teilen { font-size:21px; min-width:44px; }
.zeile .stern { color:#c98a00; }
.leer { text-align:center; padding:24px; margin:0; }
#vorschlag { display:flex; flex-direction:column; gap:6px; }
#vorschlag div { display:flex; gap:8px; }
#vorschlagMeldung { margin:0; min-height:1.2em; font-size:14px; }

/* --- Hinweiszeile --- */
#hinweis { position:relative; z-index:6; margin-top:8px; padding:4px 12px; border-radius:999px; background:rgba(0,0,0,.45); color:#fff;
  font-size:13px; font-weight:600; min-height:1.5em; opacity:0; transition:opacity .35s; text-align:center; }
#hinweis.da { opacity:1; }

/* --- Fußleiste darf umbrechen, Knöpfe mit Zustand --- */
#fuss { flex-wrap:wrap; justify-content:center; row-gap:8px; }
#zaehler { min-width:0; }
.knopf.an { background:#ffd24a; }
body.orakel #blase { background:#e9dcff; } body.orakel #blase::after { background:#e9dcff; }

/* --- Einstellungen --- */
#einst { position:fixed; inset:0; z-index:21; display:flex; flex-direction:column; gap:8px; background:var(--hell); color:var(--tinte);
  padding:max(12px, env(safe-area-inset-top)) 14px max(12px, env(safe-area-inset-bottom)); transform:translateY(102%); transition:transform .25s ease-out; visibility:hidden; }
#einst.offen { transform:none; visibility:visible; }
#einstKopf { display:flex; justify-content:space-between; align-items:center; font-size:22px; }
#einstInhalt { flex:1; overflow-y:auto; -webkit-overflow-scrolling:touch; }
#einst h3 { margin:16px 0 8px; font-size:17px; }
#kostueme, #namen { display:flex; flex-wrap:wrap; gap:8px; }
#einst .zeileE { display:flex; gap:8px; }
#einst input { font:inherit; font-size:16px; min-width:0; flex:1; padding:9px 12px; border:3px solid var(--tinte); border-radius:12px; background:#fff; color:var(--tinte); }
#einst .klein { font-size:13px; margin:6px 0 0; opacity:.8; }
#einst a { color:var(--rot); font-weight:700; }

/* --- Geburtstag --- */
#geburtstagsband { position:fixed; top:0; left:0; right:0; z-index:7; text-align:center; font-weight:900; font-size:15px; padding:calc(4px + env(safe-area-inset-top)) 8px 4px; background:#ffd24a; color:var(--tinte); border-bottom:3px solid var(--tinte); }
body.geburtstag { padding-top:calc(40px + env(safe-area-inset-top)); }
#konfetti { position:fixed; inset:0; pointer-events:none; z-index:3; overflow:hidden; }
#konfetti i { position:absolute; top:-12px; width:8px; height:14px; border-radius:2px; animation:konfetti linear infinite; }
@keyframes konfetti { to { translate:0 110vh; rotate:540deg; } }
@media (prefers-reduced-motion: reduce) { #konfetti { display:none; } }
