/* ===== Love OS: Handy-Optik, Startbildschirm, Spiele ===== */

/* --- Das "Handy" um alles herum. Auf dem Handy füllt es den Bildschirm, am Rechner wird es ein Handy-Rahmen. --- */
body { display: flex; align-items: center; justify-content: center; background: #05060a; }
#phone {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}
#phone .grain, #phone .hearts-field, #phone .heart-badge { position: absolute; }
@media (min-width: 700px) and (min-height: 620px) {
  body { background: radial-gradient(circle at 50% 30%, #1c1220, #05060a 70%); }
  #phone {
    width: 400px;
    height: min(860px, 94vh);
    border-radius: 46px;
    border: 10px solid #0c0d12;
    box-shadow: 0 0 0 2px #2a2d38, 0 40px 90px rgba(0, 0, 0, 0.7), 0 0 80px rgba(229, 56, 59, 0.12);
    transition: width .4s ease, height .4s ease, border-radius .4s ease, border-width .4s ease;
  }
  /* Im Kino bekommt der Film den ganzen Bildschirm */
  #phone[data-screen="cinema"] { width: 100vw; height: 100vh; border-radius: 0; border-width: 0; box-shadow: none; }
}

/* --- Statusleiste --- */
.statusbar {
  position: absolute; top: 0; left: 0; right: 0; height: 40px; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(env(safe-area-inset-top), 0px) 22px 0; font-size: 0.82rem; font-weight: 600;
  pointer-events: none; transition: opacity .3s;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35), transparent);
}
.statusbar__os { position: absolute; left: 50%; transform: translateX(-50%); padding: 3px 12px; border-radius: 999px;
  background: #000; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #e5383b; }
.statusbar__icons { display: flex; align-items: center; gap: 6px; }
.sb-signal { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.sb-signal i { width: 3px; background: #fff; border-radius: 1px; }
.sb-signal i:nth-child(1) { height: 4px; } .sb-signal i:nth-child(2) { height: 6px; }
.sb-signal i:nth-child(3) { height: 8px; } .sb-signal i:nth-child(4) { height: 11px; }
.sb-net { font-size: .7rem; }
.sb-battery { width: 24px; height: 11px; border: 1.5px solid rgba(255,255,255,.8); border-radius: 4px; padding: 1px; position: relative; }
.sb-battery::after { content: ''; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; background: rgba(255,255,255,.8); border-radius: 0 1px 1px 0; }
.sb-battery b { display: block; height: 100%; width: 78%; background: #5fd068; border-radius: 2px; }
#phone[data-screen="intro"] .statusbar, #phone[data-screen="cinema"] .statusbar { opacity: 0; }

/* --- Home-Balken unten --- */
.home-indicator {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 30;
  width: 150px; height: 30px; background: none; border: none; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center; transition: opacity .3s;
}
.home-indicator span { width: 120px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.7); }
#phone[data-screen="intro"] .home-indicator, #phone[data-screen="login"] .home-indicator,
#phone[data-screen="home"] .home-indicator, #phone[data-screen="cinema"] .home-indicator { opacity: 0; pointer-events: none; }
#phone[data-screen="home"] .heart-badge, #phone[data-screen="game"] .heart-badge { display: none; }

/* --- App-Öffnen-Animation --- */
.screen--app { transform: scale(0.9); border-radius: 34px; transition: opacity .35s ease, transform .4s cubic-bezier(.2,.9,.25,1), visibility .35s; }
.screen--app.active { transform: scale(1); }
#screen-select { padding-top: 56px; padding-bottom: 40px; }
.screen--center { padding-top: 56px; padding-bottom: 40px; overflow-y: auto; touch-action: pan-y; }
#screen-select .ticket { max-height: 100%; }

/* --- Boot-Bildschirm --- */
.intro__os { margin: 6px 0 0; font-size: .8rem; letter-spacing: .5em; text-transform: uppercase; color: #e5383b; opacity: 0; animation: fadeIn .6s ease 1s forwards; padding-left: .5em; }
.intro__bar { width: 170px; height: 4px; margin: 26px auto 0; background: rgba(255,255,255,.12); border-radius: 3px; overflow: hidden; opacity: 0; animation: fadeIn .4s ease .9s forwards; }
.intro__bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, #e5383b, #ff8fa3); border-radius: 3px; animation: bootFill 2.2s cubic-bezier(.4,.1,.3,1) 1s forwards; }
@keyframes bootFill { 0% { width: 0; } 35% { width: 30%; } 60% { width: 58%; } 100% { width: 100%; } }
.intro__label { margin-top: 12px; animation-delay: 1.1s; }

/* --- Sperrbildschirm (Login) --- */
.lock-clock { text-align: center; margin-bottom: 26px; animation: fadeSlideUp .6s ease both; }
.lock-clock__time { font-family: var(--serif); font-size: 4.2rem; font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.lock-clock__date { margin-top: 6px; color: var(--text-dim); font-size: .95rem; }
.ticket__title { font-size: 1.9rem; margin-bottom: 18px; }

/* --- Startbildschirm --- */
.screen--home {
  background:
    radial-gradient(circle at 20% 10%, rgba(229,56,59,.30), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(242,166,90,.20), transparent 50%),
    linear-gradient(160deg, #1a1020 0%, #0d0f18 100%);
}
.home { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 56px 20px 22px; gap: 20px; }
.widget {
  border-radius: 26px; padding: 18px 20px; background: rgba(255,255,255,.08);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.1);
  animation: appIn .6s cubic-bezier(.2,.9,.25,1) both;
}
.widget__time { font-family: var(--serif); font-size: 3rem; font-weight: 500; line-height: 1; }
.widget__date { color: rgba(255,255,255,.65); font-size: .9rem; margin-top: 4px; }
.widget__presence { margin-top: 12px; font-size: .88rem; color: #ffb3bd; }
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 8px; align-content: start; flex: 1; }
.app { background: none; border: none; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 7px; cursor: pointer; font: inherit; padding: 0; animation: appIn .5s cubic-bezier(.2,.9,.25,1) both; transition: transform .15s; }
.app:active { transform: scale(.88); }
.app:nth-child(2) { animation-delay: .06s; } .app:nth-child(3) { animation-delay: .12s; } .app:nth-child(4) { animation-delay: .18s; }
.app__icon {
  width: 62px; height: 62px; border-radius: 17px; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 700; box-shadow: 0 8px 18px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.25);
}
.app__label { font-size: .7rem; text-shadow: 0 1px 3px rgba(0,0,0,.6); max-width: 76px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__icon--wordle { background: linear-gradient(145deg, #6aaa64, #3d7a3a); }
.app__icon--hang { background: linear-gradient(145deg, #7b5cff, #4527c9); }
.app__icon--ttt { background: linear-gradient(145deg, #ff9a5a, #e5383b); }
.app__icon--c4 { background: linear-gradient(145deg, #3a7bff, #1b3fa8); }
.app__icon--kino { background: linear-gradient(145deg, #ff4d5a, #a3121c); }
.app__icon--audio { background: linear-gradient(145deg, #ff6aa8, #b3205f); }
.app__icon--yt { background: linear-gradient(145deg, #ff3b3b, #b30000); }
.dock {
  display: flex; justify-content: space-around; padding: 14px 10px; border-radius: 30px; margin-bottom: 14px;
  background: rgba(255,255,255,.10); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.1);
}
@keyframes appIn { from { opacity: 0; transform: translateY(18px) scale(.85); } to { opacity: 1; transform: none; } }

.back-home { background: none; border: none; color: var(--accent); font: inherit; font-size: .95rem; cursor: pointer; padding: 4px 0 10px; }

/* --- Hinweis (Toast) --- */
.toast {
  position: absolute; left: 14px; right: 14px; top: 46px; z-index: 40; padding: 12px 16px; border-radius: 18px; cursor: pointer;
  background: rgba(30,24,36,.96); border: 1px solid rgba(229,56,59,.5); font-size: .9rem; box-shadow: 0 10px 30px rgba(0,0,0,.5);
  animation: toastIn .4s cubic-bezier(.2,.9,.25,1);
}
.toast[hidden] { display: none; }
@keyframes toastIn { from { transform: translateY(-30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* --- Spiele --- */
.game { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 50px 16px 34px; background: linear-gradient(160deg, #161020, #0d0f18); }
.game__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.game__bar .back-home { padding-bottom: 4px; }
.game__title { margin: 0; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.game__score { font-size: .78rem; color: var(--text-dim); text-align: right; min-width: 70px; }
.game__body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; overflow-y: auto; touch-action: pan-y; padding: 6px 0; }
.game__status { font-size: 1.05rem; font-weight: 600; text-align: center; min-height: 1.4em; }
.game__status.good { color: #7ee08a; } .game__status.bad { color: #ff8a8a; }
.game__sub { font-size: .82rem; color: var(--text-dim); text-align: center; }
.game__row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.gbtn { font: inherit; font-weight: 600; font-size: .95rem; padding: 12px 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: #fff; cursor: pointer; transition: transform .15s, background .2s; }
.gbtn:active { transform: scale(.95); }
.gbtn--main { background: #e5383b; border-color: #e5383b; }
.gbtn--small { padding: 7px 12px; font-size: .78rem; }

/* Tic-Tac-Toe */
.ttt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(78vw, 300px); }
.ttt__cell { aspect-ratio: 1; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); font-size: 2.6rem; font-weight: 700; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: var(--sans); }
.ttt__cell.x { color: #ff6b6b; } .ttt__cell.o { color: #ffd166; }
.ttt__cell.win { background: rgba(126,224,138,.25); border-color: #7ee08a; }
.ttt__cell.pop { animation: markPop .35s cubic-bezier(.2,1.5,.4,1); }
@keyframes markPop { from { transform: scale(.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* 4 Gewinnt */
.c4 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; padding: 8px; border-radius: 18px; background: #1b3fa8; width: min(88vw, 350px); box-shadow: inset 0 0 0 3px #12307f; }
.c4__cell { aspect-ratio: 1; border-radius: 50%; background: #0d0f18; border: none; padding: 0; cursor: pointer; position: relative; overflow: hidden; }
.c4__cell.p1::after, .c4__cell.p2::after { content: ''; position: absolute; inset: 0; border-radius: 50%; }
.c4__cell.p1::after { background: radial-gradient(circle at 35% 30%, #ff8a8a, #e5383b 60%); }
.c4__cell.p2::after { background: radial-gradient(circle at 35% 30%, #ffe69a, #f2b705 60%); }
.c4__cell.last::after { animation: dropIn .45s cubic-bezier(.4,0,.6,1.2); }
.c4__cell.win { box-shadow: 0 0 0 3px #7ee08a inset; }
@keyframes dropIn { from { transform: translateY(-380%); } to { transform: none; } }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.dot.p1 { background: #e5383b; } .dot.p2 { background: #f2b705; }

/* Galgenmann */
.gallows { width: 150px; height: 150px; }
.gallows path, .gallows line, .gallows circle { stroke: #f5efe6; stroke-width: 4; stroke-linecap: round; fill: none; }
.gallows .part { animation: fadeIn .3s ease; stroke: #ff6b6b; }
.slots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 330px; }
.slot { width: 26px; height: 34px; border-bottom: 3px solid rgba(255,255,255,.5); text-align: center; font-size: 1.4rem; font-weight: 700; line-height: 34px; }
.slot.miss { color: #ff8a8a; }

/* Wordle */
.wgrid { display: grid; grid-template-rows: repeat(6, 1fr); gap: 6px; }
.wrow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.wtile { width: 46px; height: 46px; border: 2px solid rgba(255,255,255,.18); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; }
.wtile.filled { border-color: rgba(255,255,255,.5); }
.wtile.g { background: #4f9a4a; border-color: #4f9a4a; } .wtile.y { background: #b59f3b; border-color: #b59f3b; } .wtile.x { background: #3a3d4a; border-color: #3a3d4a; }
.wtile.flip { animation: flip .5s ease both; }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }

/* Bildschirmtastatur */
.kb { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 400px; align-items: center; }
.kb__row { display: flex; gap: 4px; justify-content: center; width: 100%; }
.key { flex: 1; max-width: 36px; height: 44px; border: none; border-radius: 7px; background: #4a4f61; color: #fff; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; padding: 0; }
.key.wide { max-width: 54px; font-size: .8rem; }
.key:active { transform: scale(.92); }
.key.g { background: #4f9a4a; } .key.y { background: #b59f3b; } .key.x { background: #23252f; color: #777; } .key.right { background: #4f9a4a; } .key.wrong { background: #23252f; color: #777; }
.key:disabled { opacity: .4; }
.wordbuf { font-size: 1.6rem; letter-spacing: .25em; font-weight: 700; min-height: 2em; padding: 6px 14px; border-bottom: 2px solid rgba(255,255,255,.4); }
.intro__heart { overflow: visible; }

.app__icon--chess { background: linear-gradient(145deg, #8a6a4a, #3b2a1a); }

/* Schach */
.chess { display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); width: min(94vw, 392px); aspect-ratio: 1; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.sq { border: none; padding: 0; position: relative; font-size: clamp(1.5rem, 8.4vw, 2.6rem); line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "DejaVu Sans", sans-serif; }
.sq.light { background: #ecd9b5; } .sq.dark { background: #a9774f; }
.sq.pw { color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000, 0 1px 3px #000; }
.sq.pb { color: #1b1b22; text-shadow: 0 0 1px rgba(255,255,255,.5); }
.sq.last { box-shadow: inset 0 0 0 100px rgba(255, 220, 90, .35); }
.sq.sel { box-shadow: inset 0 0 0 100px rgba(90, 200, 120, .55); }
.sq.tgt::after { content: ''; width: 28%; height: 28%; border-radius: 50%; background: rgba(40, 120, 70, .55); position: absolute; }
.sq.cap { box-shadow: inset 0 0 0 4px rgba(220, 50, 50, .85); }
.sq.incheck { box-shadow: inset 0 0 0 100px rgba(229, 56, 59, .6); }
.sq { min-width: 0; min-height: 0; overflow: hidden; }

.install-btn { align-self: center; font: inherit; font-weight: 600; font-size: .9rem; color: #fff; padding: 10px 18px; border-radius: 999px; cursor: pointer;
  background: rgba(229,56,59,.25); border: 1px solid rgba(229,56,59,.7); animation: appIn .5s ease both; }
.install-btn[hidden] { display: none; }
.install-btn:active { transform: scale(.96); }


/* =====================================================================
   Design-Pass 2: moderner, ruhiger, mehr "Glas"
   ===================================================================== */
:root {
  --glass: rgba(255, 255, 255, 0.07);
  --glass-strong: rgba(24, 22, 32, 0.62);
  --glass-border: rgba(255, 255, 255, 0.12);
  --red: #ff4d5e;
  --red-deep: #e5383b;
  --ease-pop: cubic-bezier(.2, .9, .25, 1);
}
body { font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
button { -webkit-tap-highlight-color: transparent; }

/* --- Hintergrund: sanft schwebende Farbwolken statt flacher Fläche --- */
.screen--home::before, .screen--home::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0; opacity: .75;
}
.screen--home::before { width: 300px; height: 300px; left: -80px; top: -40px; background: #e5383b; opacity: .35; animation: blobA 16s ease-in-out infinite alternate; }
.screen--home::after { width: 280px; height: 280px; right: -90px; bottom: 90px; background: #7b5cff; opacity: .28; animation: blobB 19s ease-in-out infinite alternate; }
@keyframes blobA { to { transform: translate(60px, 90px) scale(1.15); } }
@keyframes blobB { to { transform: translate(-70px, -70px) scale(1.2); } }
.home { position: relative; z-index: 1; padding-top: 58px; gap: 16px; }

/* --- Widget --- */
.widget { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 28px; padding: 18px 20px 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.12); }
.widget__time { font-family: var(--sans); font-weight: 300; font-size: 3.4rem; letter-spacing: -.04em; }
.widget__date { text-transform: capitalize; font-size: .85rem; letter-spacing: .01em; }
.widget__row { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); }
.widget__presence { margin: 0; font-size: .85rem; color: rgba(255,255,255,.8); }
.avatars { display: flex; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700;
  border: 2px solid #1a1320; margin-left: -8px; animation: appIn .4s var(--ease-pop) both; }
.avatar:first-child { margin-left: 0; }
.avatar--0 { background: linear-gradient(135deg, #ff6b8a, #e5383b); } .avatar--1 { background: linear-gradient(135deg, #ffd166, #f2994a); } .avatar--2 { background: linear-gradient(135deg, #7b5cff, #4527c9); }
.home__label { margin: 4px 4px -4px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); }

/* --- App-Icons: gleichmäßige SVG-Symbole, Squircle, sanfter Glanz --- */
.app-grid { gap: 20px 6px; }
.app__icon { width: 64px; height: 64px; border-radius: 22px; position: relative; overflow: hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.35), inset 0 -8px 14px rgba(0,0,0,.18); }
.app__icon::before { content: ''; position: absolute; inset: 0 0 50% 0; background: linear-gradient(to bottom, rgba(255,255,255,.22), transparent); pointer-events: none; }
.app__icon svg { width: 32px; height: 32px; position: relative; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.app__label { font-size: .72rem; font-weight: 500; letter-spacing: .01em; }
.app__icon--wordle { background: linear-gradient(145deg, #7bc96f, #2f7d32); }
.app__icon--chess { background: linear-gradient(145deg, #b08968, #4a3322); }

.page-dots { display: flex; justify-content: center; gap: 7px; }
.page-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.3); }
.page-dots i.on { background: #fff; }
.dock { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 32px; margin-bottom: 10px; padding: 12px 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.12); }
.install-btn { background: linear-gradient(135deg, rgba(255,77,94,.35), rgba(229,56,59,.2)); border-color: rgba(255,120,130,.6); box-shadow: 0 6px 20px rgba(229,56,59,.2); }

/* --- Sperrbildschirm --- */
#screen-login { background: radial-gradient(ellipse at 50% 0%, rgba(229,56,59,.28), transparent 60%), radial-gradient(ellipse at 80% 100%, rgba(123,92,255,.2), transparent 55%), #0b0c12; }
#screen-login .ticket { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 32px; padding: 26px 22px 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.12); }
.lock-clock__time { font-family: var(--sans); font-weight: 300; font-size: 4.6rem; letter-spacing: -.05em; }
.ticket__eyebrow { color: #ff8a96; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; }
.ticket__title { font-family: var(--sans); font-weight: 650; letter-spacing: -.02em; }

/* --- Buttons & Eingabefelder --- */
.input { background: rgba(255,255,255,.06); border: 1px solid var(--glass-border); border-radius: 16px; }
.input:focus { border-color: rgba(255,120,130,.7); box-shadow: 0 0 0 4px rgba(229,56,59,.18); }
.btn { border-radius: 16px; }
.btn--primary { background: linear-gradient(135deg, #ff5d6c, #e5383b); color: #fff; box-shadow: 0 10px 26px rgba(229,56,59,.35); }
.btn--primary:hover { background: linear-gradient(135deg, #ff7280, #ee4448); box-shadow: 0 14px 32px rgba(229,56,59,.45); }
.btn--small { border-radius: 14px; background: var(--glass); color: #fff; border: 1px solid var(--glass-border); }
.btn--upload { background: var(--glass); border-color: var(--glass-border); }
.back-home { display: inline-flex; align-items: center; padding: 7px 14px 7px 10px; margin-bottom: 14px; border-radius: 999px; font-weight: 600; font-size: .85rem;
  background: var(--glass); border: 1px solid var(--glass-border); color: #fff; cursor: pointer; }
.back-home:active { transform: scale(.95); }

/* --- Kino-/Audio-App --- */
#screen-select { background: radial-gradient(ellipse at 15% 0%, rgba(229,56,59,.22), transparent 55%), radial-gradient(ellipse at 100% 90%, rgba(123,92,255,.14), transparent 55%), #0b0c12; }
#screen-select .ticket__title { font-size: 2rem; margin-bottom: 16px; }
.mode-tabs { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 18px; padding: 4px; gap: 4px; }
.mode-tab { border: none; background: transparent; border-radius: 14px; color: rgba(255,255,255,.65); }
.mode-tab.active { background: linear-gradient(135deg, #ff5d6c, #e5383b); color: #fff; box-shadow: 0 6px 16px rgba(229,56,59,.35); }
.video-list { gap: 12px; }
.video-card { border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-border); box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.video-card:hover { border-color: rgba(255,120,130,.6); box-shadow: 0 14px 34px rgba(229,56,59,.2); }
.video-card__thumb { background: linear-gradient(135deg, #2a1d33, #151222); }
.video-card__title { font-weight: 500; font-size: .85rem; padding: 10px 12px 12px; }
.audio-row { border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-border); padding: 13px 16px; }
.audio-row__icon { width: 34px; height: 34px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #ff6aa8, #b3205f); color: #fff; font-size: 1rem; }
.hint { color: rgba(255,255,255,.55); }

/* --- Kinosaal: schwebende Glas-Steuerleiste im Streaming-Stil --- */
.cinema__overlay { padding: 14px 14px 18px; background: linear-gradient(to bottom, rgba(0,0,0,.65) 0%, transparent 26%, transparent 62%, rgba(0,0,0,.7) 100%); }
.cinema__top .icon-btn, .presence-pill, .presence-detail__row, #preload-status {
  background: var(--glass-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--glass-border);
}
.cinema__top .icon-btn { border-radius: 999px; font-size: .9rem; font-weight: 600; padding: 0 16px; height: 38px; }
.presence-pill { color: rgba(255,255,255,.85); font-size: .8rem; }
.cinema__bottom {
  flex-wrap: wrap; justify-content: center; gap: 4px 6px; padding: 10px 14px 8px; border-radius: 28px;
  background: var(--glass-strong); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border); box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.cinema__bottom .seek { order: -1; flex: 1 1 100%; height: 22px; margin: 0 0 2px; }
.cinema__bottom .time-label { order: 0; min-width: 0; padding: 0 6px; font-size: .74rem; }
.seek { -webkit-appearance: none; appearance: none; background: transparent; accent-color: var(--red-deep); }
.seek::-webkit-slider-runnable-track { height: 4px; border-radius: 3px; background: rgba(255,255,255,.22); }
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; margin-top: -5px; box-shadow: 0 0 0 4px rgba(229,56,59,.35); }
.seek::-moz-range-track { height: 4px; border-radius: 3px; background: rgba(255,255,255,.22); }
.seek::-moz-range-thumb { width: 14px; height: 14px; border: none; border-radius: 50%; background: #fff; }
.icon-btn { height: 42px; min-width: 42px; }
.icon-btn--big { background: #fff; color: #111; width: 50px; height: 50px; min-width: 50px; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.icon-btn--big:hover { background: #fff; }
.center-play { background: rgba(20,18,28,.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.3); }
@media (max-width: 560px) {
  .cinema__bottom { flex-wrap: wrap; }
  .cinema__bottom .seek { order: -1; }
  .cinema__bottom .time-label { order: 0; }
}
.chat-panel { backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }

/* --- Audio-Bühne --- */
.audio-stage { background: radial-gradient(circle at 50% 38%, rgba(229,56,59,.32), transparent 55%), radial-gradient(circle at 20% 90%, rgba(123,92,255,.2), transparent 50%), #07070b; }
.audio-stage__title { font-family: var(--sans); font-weight: 650; letter-spacing: -.02em; }

/* --- Spiele --- */
.game { background: radial-gradient(ellipse at 90% 0%, rgba(123,92,255,.2), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(229,56,59,.16), transparent 55%), #0b0c12; }
.game__title { font-family: var(--sans); font-weight: 650; font-size: 1.1rem; letter-spacing: -.01em; }
.game__score { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 999px; padding: 5px 10px; font-size: .72rem; color: rgba(255,255,255,.75); min-width: 0; }
.game__score:empty { visibility: hidden; }
.gbtn { border-radius: 16px; background: var(--glass); border-color: var(--glass-border); }
.gbtn--main { background: linear-gradient(135deg, #ff5d6c, #e5383b); border-color: transparent; box-shadow: 0 8px 22px rgba(229,56,59,.35); }
.ttt__cell, .wtile, .key { border-radius: 14px; }
.ttt__cell { background: var(--glass); border-color: var(--glass-border); }
.key { border-radius: 9px; background: rgba(255,255,255,.16); }
.toast { background: var(--glass-strong); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--glass-border); border-radius: 20px; }

/* --- Ladebildschirm --- */
.screen--intro { background: radial-gradient(circle at 50% 42%, rgba(229,56,59,.22), transparent 55%), #000; }

@media (prefers-reduced-motion: reduce) {
  .screen--home::before, .screen--home::after { animation: none; }
}

/* Fix: Bedienleiste muss über der Audio-Bühne liegen, sonst sind die Knöpfe im Audio-Modus nicht klickbar */
.audio-stage { z-index: 0; }
.cinema__overlay { z-index: 2; }

/* Zeit neben dem Fortschrittsbalken, Tasten kompakter, damit alles in eine Reihe passt */
.cinema__bottom .seek { order: -2; flex: 1 1 0; min-width: 0; margin: 0; }
.cinema__bottom .time-label { order: -1; flex: 0 0 auto; padding: 0 0 0 8px; }
.cinema__bottom { gap: 2px 2px; padding: 10px 10px 8px; }
.cinema__bottom .icon-btn { min-width: 38px; padding: 0 6px; height: 40px; }
.cinema__bottom .icon-btn--big { min-width: 48px; width: 48px; height: 48px; padding: 0; }
#phone[data-screen="cinema"] .heart-badge { display: none; }
@media (max-width: 560px) {
  .cinema__bottom .seek { order: -2; flex: 1 1 0; }
  .cinema__bottom .time-label { order: -1; }
}
.cinema__bottom .seek { flex: 1 1 calc(100% - 96px); }
.cinema__bottom .time-label { width: 88px; padding: 0; text-align: right; }
.cinema__bottom .icon-btn { min-width: 40px; }
@media (max-width: 560px) { .cinema__bottom .seek { flex: 1 1 calc(100% - 96px); } }

/* Zwei feste Zeilen: oben Fortschritt + Zeit, darunter die Tasten */
.cinema__bottom { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 4px; }
.seekrow { display: flex; align-items: center; gap: 10px; width: 100%; }
.seekrow .seek { order: 0; flex: 1 1 auto; min-width: 0; margin: 0; }
.seekrow .time-label { order: 0; width: auto; min-width: 82px; text-align: right; padding: 0; }
.btnrow { display: flex; align-items: center; justify-content: space-between; gap: 2px; width: 100%; }
.btnrow .icon-btn { min-width: 0; flex: 0 0 auto; }
.seekrow .time-label { display: block !important; }


/* ===== Eigene Icon-Grafiken (Gemini) statt gezeichneter Symbole ===== */
.app__icon { background: none !important; box-shadow: none; overflow: visible; border-radius: 0; filter: drop-shadow(0 10px 14px rgba(0,0,0,.45)); }
.app__icon::before { display: none; }
.app__icon img { width: 100%; height: 100%; display: block; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.app:active .app__icon { filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)) brightness(.9); }
.game__title { display: inline-flex; align-items: center; gap: 8px; }
.game__icon { width: 26px; height: 26px; border-radius: 7px; }


/* ===== Kino und Audio-Party sind getrennte Apps ===== */
.select__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.select__head .ticket__title { margin: 0 !important; }
.select__icon { width: 46px; height: 46px; border-radius: 12px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); animation: appIn .5s var(--ease-pop) both; }
#screen-select.mode-audio { background: radial-gradient(ellipse at 15% 0%, rgba(255,106,168,.28), transparent 55%), radial-gradient(ellipse at 100% 90%, rgba(123,92,255,.16), transparent 55%), #0b0c12; }
#screen-select.mode-audio .ticket__eyebrow { color: #ff8cc0; }

/* Nichts darf über den Handy-Rahmen hinausragen oder ihn verschieben (z.B. Farbwolken, Fokus auf Eingabefeldern) */
#phone { overflow: hidden; overflow: clip; }
.screen--home { overflow: hidden; overflow: clip; }


/* ===== YouTube-App ===== */
#screen-youtube { align-items: flex-start; background: radial-gradient(ellipse at 15% 0%, rgba(255,59,59,.26), transparent 55%), radial-gradient(ellipse at 100% 90%, rgba(123,92,255,.14), transparent 55%), #0b0c12; }
#screen-youtube .ticket { padding-bottom: 20px; }
.yt-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; }
.yt-actions a { text-decoration: none; display: inline-block; }
.yt-h { margin: 22px 0 10px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 600; }
.yt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.yt-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; cursor: pointer; background: var(--glass); border: 1px solid var(--glass-border); animation: cardIn .4s both ease-out; transition: background .2s, transform .15s; }
.yt-row:active { transform: scale(.98); }
.yt-row img { width: 104px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: #1b1626; flex: 0 0 auto; }
.yt-row__txt { flex: 1; min-width: 0; }
.yt-row__title { font-size: .85rem; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-row__sub { font-size: .72rem; color: rgba(255,255,255,.55); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yt-row__btn { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--glass-border); background: rgba(255,255,255,.08); color: #fff; font-size: 1rem; cursor: pointer; }
.yt-row__btn:disabled { opacity: .6; }

/* ===== Panic-Button ===== */
.app__icon--panic { }
.panic__who { margin: 4px 0 2px; font-size: 1.05rem; font-weight: 650; }
.panic__what { margin: 0 0 6px; }
.panic__stage { display: flex; justify-content: center; margin: 18px 0 6px; }
.panic__btn { position: relative; width: 188px; height: 188px; border-radius: 50%; border: none; cursor: pointer; padding: 0; color: #fff;
  background: radial-gradient(circle at 35% 28%, #ff7d82, #e5383b 55%, #8f0f17);
  box-shadow: 0 18px 50px rgba(229,56,59,.5), inset 0 3px 0 rgba(255,255,255,.35), inset 0 -16px 30px rgba(0,0,0,.25);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: transform .15s; animation: panicPulse 2.4s ease-in-out infinite; }
.panic__btn.holding { transform: scale(.94); animation: none; }
.panic__btn.sent { animation: panicSent .6s ease; }
.panic__label { font-size: 2.6rem; font-weight: 800; letter-spacing: .06em; text-shadow: 0 3px 8px rgba(0,0,0,.35); pointer-events: none; }
.panic__ring { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); transform: rotate(-90deg); pointer-events: none; }
.panic__ring circle { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; }
.panic__btn.holding .panic__ring circle { animation: panicRing 1s linear forwards; }
@keyframes panicRing { to { stroke-dashoffset: 0; } }
@keyframes panicPulse { 0%,100% { box-shadow: 0 18px 50px rgba(229,56,59,.45), inset 0 3px 0 rgba(255,255,255,.35), inset 0 -16px 30px rgba(0,0,0,.25); } 50% { box-shadow: 0 18px 70px rgba(229,56,59,.8), inset 0 3px 0 rgba(255,255,255,.35), inset 0 -16px 30px rgba(0,0,0,.25); } }
@keyframes panicSent { 0% { transform: scale(.94); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
.panic__hold { text-align: center; margin: 12px 0 4px; }
.panic__status { text-align: center; min-height: 1.4em; font-weight: 600; font-size: .92rem; margin: 6px 0 0; }
.panic__status.ok { color: #7ee08a; } .panic__status.warn { color: #ffb86b; }
.panic__note { font-size: .78rem; margin-top: 14px; }
.panic__switch { margin-top: 10px; font-size: .78rem; }
.panic__role { margin: 10px 0; }

.panic-alert { position: absolute; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 28px; text-align: center;
  background: radial-gradient(circle at 50% 40%, #c1121f, #5a0710 80%); animation: alertFlash 1s ease-in-out infinite alternate; }
.panic-alert[hidden] { display: none; }
.panic-alert__icon { font-size: 4.5rem; animation: heartBeat 1s infinite; }
.panic-alert h2 { margin: 14px 0 8px; font-size: 1.7rem; letter-spacing: -.02em; }
.panic-alert p { margin: 0 0 26px; font-size: 1.15rem; opacity: .92; }
.panic-alert .gbtn--main { background: #fff; color: #8f0f17; border: none; font-size: 1.05rem; padding: 14px 34px; }
@keyframes alertFlash { from { filter: brightness(.85); } to { filter: brightness(1.15); } }

/* ===== Standort & Status ===== */
.widget__love { margin-top: 10px; font-size: .8rem; color: rgba(255,255,255,.7); line-height: 1.5; }
.widget__love[hidden] { display: none; }
.love__map { width: 100%; height: 280px; border-radius: 22px; overflow: hidden; border: 1px solid var(--glass-border); background: #14121c; touch-action: none; position: relative; z-index: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.55); font-size: .85rem; text-align: center; padding: 14px; }
.love__map .leaflet-container { width: 100%; height: 100%; background: #14121c; font-family: var(--sans); }
.love__dist { margin: 12px 2px 4px; font-weight: 650; font-size: .95rem; }
.love__cards { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 4px; }
.love__card { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-border); }
.love__card .avatar { width: 38px; height: 38px; font-size: 1rem; margin: 0; border: none; flex: 0 0 auto; }
.love__card-txt { font-size: .85rem; line-height: 1.45; min-width: 0; }
.love__card-sub { color: rgba(255,255,255,.55); font-size: .75rem; }
.lm-wrap { background: none; border: none; }
.lm { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.lm--me { background: linear-gradient(135deg, #3ddc97, #16a085); }
.lm--them { background: linear-gradient(135deg, #ff6b8a, #e5383b); animation: heartBeat 2s infinite; }
.switch-row { display: flex; align-items: center; justify-content: space-between; margin: 16px 2px 4px; padding: 12px 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-border); font-weight: 600; cursor: pointer; position: relative; }
.switch-row input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.switch { width: 50px; height: 30px; border-radius: 999px; background: rgba(255,255,255,.18); position: relative; transition: background .25s; flex: 0 0 auto; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease-pop); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.switch-row input:checked ~ .switch { background: #34c98a; }
.switch-row input:checked ~ .switch::after { transform: translateX(20px); }


/* Lange Seiten fangen oben an (sonst wird der Kopf bei vielen Inhalten abgeschnitten) */
#screen-love, #screen-panic, #screen-select, #screen-youtube, #screen-qa, #screen-status, #screen-notes, #screen-settings { align-items: flex-start; }

.app[hidden] { display: none; }

/* ===== Fragen & Antworten ===== */
.app__icon--qa { background: linear-gradient(145deg, #2ec4b6, #1e50aa); }
.app__icon.has-new::after { content: ''; position: absolute; top: 6px; right: 6px; width: 14px; height: 14px; border-radius: 50%; background: #ff3b4d; border: 2px solid rgba(255,255,255,.9); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.qa__tabs { display: flex; gap: 6px; margin: 14px 0 12px; }
.qa__tab { flex: 1; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: rgba(255,255,255,.75); border-radius: 12px; padding: 9px 6px; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.qa__tab.on { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.3); }
.qa__badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: #ff3b4d; color: #fff; font-size: .7rem; line-height: 18px; }
.qa__pane { display: flex; flex-direction: column; gap: 10px; }
.qa__pane[hidden] { display: none; }
.qa__card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 12px 14px; }
.qa__card--new { border-color: rgba(46,196,182,.6); box-shadow: 0 0 0 1px rgba(46,196,182,.25) inset; }
.qa__meta { font-size: .72rem; color: rgba(255,255,255,.5); margin-bottom: 4px; }
.qa__q { font-size: 1rem; font-weight: 650; line-height: 1.35; margin-bottom: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.qa__alabel { font-size: .72rem; color: rgba(255,255,255,.5); margin: 8px 0 3px; }
.qa__a { background: rgba(46,196,182,.14); border-radius: 12px; padding: 9px 11px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; }
.qa__state { font-size: .82rem; color: rgba(255,255,255,.65); }
.qa__soft { font-size: .78rem; color: rgba(255,255,255,.45); }
.qa__link { background: none; border: none; color: rgba(255,255,255,.5); font: inherit; font-size: .75rem; text-decoration: underline; cursor: pointer; padding: 6px 0 0; display: block; }
.qa__area { width: 100%; box-sizing: border-box; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; color: #fff; font: inherit; padding: 10px 12px; resize: vertical; margin-bottom: 6px; }
.qa__count { text-align: right; font-size: .7rem; color: rgba(255,255,255,.4); margin: -2px 0 8px; }
.qa__empty { text-align: center; margin: 18px 0; }
.qa__push { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); }
.qa-pop { position: absolute; z-index: 90; top: 44px; left: 12px; right: 12px; display: flex; gap: 10px; align-items: center; text-align: left; color: #fff; font: inherit; font-size: .85rem; cursor: pointer;
  background: rgba(30,40,60,.82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.2); border-radius: 18px; padding: 11px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.qa-pop[hidden] { display: none; }
.qa-pop.in { animation: qaPop .45s cubic-bezier(.2,.9,.25,1); }
.qa-pop small { color: rgba(255,255,255,.65); }
.qa-pop__icon { font-size: 1.5rem; }
@keyframes qaPop { from { transform: translateY(-120%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ===== Status ===== */
.app__icon--status { background: linear-gradient(145deg, #ffb347, #e8456b); }
.st__card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 12px 14px; margin: 10px 0; }
.st__card--me { background: rgba(255,255,255,.04); }
.st__who { font-size: .72rem; color: rgba(255,255,255,.5); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .08em; }
.st__row { display: flex; align-items: center; gap: 12px; }
.st__emoji { font-size: 2.2rem; line-height: 1; }
.st__txt { display: flex; flex-direction: column; }
.st__txt b { font-size: 1.1rem; }
.st__txt small { color: rgba(255,255,255,.55); }
.st__none { color: rgba(255,255,255,.4); }
.st__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st__chip { display: flex; align-items: center; gap: 8px; text-align: left; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; border-radius: 12px; padding: 9px 10px; font: inherit; font-size: .8rem; cursor: pointer; }
.st__chip.on { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.55); }
.st__chipE { font-size: 1.25rem; }
.st__custom { display: flex; gap: 8px; margin: 10px 0; }
.st__custom input { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: #fff; font: inherit; padding: 9px 11px; min-width: 0; }
#st-emoji { width: 56px; text-align: center; }
#st-custom { flex: 1; }
.st__dur { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 12px; }
.st__dur .qa__tab { flex: 0 1 auto; padding: 7px 10px; font-size: .75rem; }
#st-set:disabled { opacity: .45; }

/* ===== Handy-Navigation (Wischen am unteren Balken) ===== */
.home-indicator { width: 200px; height: 42px; touch-action: none; z-index: 60; }
.home-indicator span { transition: width .2s, background .2s; }
.home-indicator.grab span { width: 150px; background: #fff; }
/* die „‹ Home“-Knöpfe braucht man nicht mehr – das Handy hat ja seinen Balken */
#phone:not([data-screen="cinema"]) .back-home[data-home],
#phone:not([data-screen="cinema"]) #game-back { display: none; }
@keyframes homeZoom { from { transform: scale(1.12); opacity: .2; filter: blur(6px); } to { transform: none; opacity: 1; filter: none; } }
.screen--home.home-zoom { animation: homeZoom .42s cubic-bezier(.2,.9,.25,1); }

/* ===== Geräte-Liste (Einstellungen) ===== */
.dev { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.dev__row { display: flex; gap: 10px; align-items: flex-start; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 10px 12px; }
.dev__icon { font-size: 1.6rem; line-height: 1.2; }
.dev__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dev__body small { color: rgba(255,255,255,.55); }
.dev__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.dev__tag { font-size: .7rem; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); }
.dev__tag.ok { background: rgba(60,200,120,.18); color: #8be8b0; }
.dev__del { background: none; border: none; color: rgba(255,255,255,.4); font-size: 1rem; cursor: pointer; padding: 2px 4px; }

/* Filme- und Audio-Liste strikt trennen ([hidden] wurde von display:grid überstimmt) */
.video-list[hidden], #video-empty[hidden], #audio-empty[hidden] { display: none !important; }
.upload-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn--refresh { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; cursor: pointer; font: inherit; }

/* ===== Grüße ===== */
.app__icon--notes { background: linear-gradient(145deg, #ff7aa8, #d6246e); }
.nt__item { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 10px 14px; }
.nt__item--me { background: rgba(255,255,255,.04); }
.nt__item--new { border-color: rgba(255,122,168,.7); }
.nt__msg { font-size: 1.05rem; font-weight: 650; margin: 2px 0 6px; overflow-wrap: anywhere; }
.nt__reply { font-size: .85rem; color: #ffb3cf; }
.qa-pop--col { flex-direction: column; align-items: stretch; gap: 8px; cursor: default; }
.qa-pop--col[hidden] { display: none; }
.qa-pop__main { display: flex; gap: 10px; align-items: center; text-align: left; background: none; border: none; color: #fff; font: inherit; padding: 0; cursor: pointer; }

/* ===== Geräte-Standort ===== */
#set-devmap { height: 260px; margin: 8px 0; }
.dev__loc { background: none; border: none; color: #8fc3ff; font: inherit; font-size: .75rem; text-align: left; padding: 2px 0 0; cursor: pointer; }

/* ===== Startbildschirm: Seiten, Bearbeiten, Hintergrund ===== */
.home .pages { display: flex; flex: 1; min-height: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.home .pages::-webkit-scrollbar { display: none; }
.home .page { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 6px; align-content: start; padding: 4px 0; }
.page-dots[hidden] { display: none; }
.page-dots i { cursor: pointer; transition: background .2s, transform .2s; }
.page-dots i.on { transform: scale(1.25); }
.home__hint { text-transform: none; letter-spacing: 0; opacity: .7; }
.home .app { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.home-edit { display: flex; gap: 8px; justify-content: space-between; margin: 4px 0 -4px; }
.home-edit[hidden] { display: none; }
.home.editing .app { animation: appWiggle .28s ease-in-out infinite alternate; touch-action: none; }
.home.editing .app:nth-child(2n) { animation-duration: .24s; animation-direction: alternate-reverse; }
.home.editing .app.dragging { opacity: .25; animation: none; }
.home.editing .pages { touch-action: none; }
@keyframes appWiggle { from { transform: rotate(-2.2deg); } to { transform: rotate(2.2deg); } }
.app-ghost { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; margin: 0; opacity: .95; animation: none !important; filter: drop-shadow(0 12px 18px rgba(0,0,0,.5)); }
.wall-sheet { position: absolute; inset: 0; z-index: 80; display: flex; align-items: flex-end; background: rgba(0,0,0,.45); }
.wall-sheet[hidden] { display: none; }
.wall-sheet__inner { width: 100%; max-height: 78%; overflow-y: auto; background: rgba(24,20,34,.97); border: 1px solid rgba(255,255,255,.14); border-radius: 28px 28px 0 0; padding: 18px 18px 34px; animation: sheetUp .35s cubic-bezier(.2,.9,.25,1); }
.wall-sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; font-size: 1.05rem; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.wall-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 10px 0 14px; }
.wall-sw { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; border: 2px solid rgba(255,255,255,.18); cursor: pointer; padding: 0; overflow: hidden; }
.wall-sw span { position: absolute; left: 0; right: 0; bottom: 0; font-size: .6rem; padding: 4px 2px; color: #fff; background: rgba(0,0,0,.45); text-align: center; }
.wall-sw.on, .wall-photo.on { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.55); }
.wall-photo { display: flex; justify-content: center; cursor: pointer; }
/* Hintergrundbild auf dem Startbildschirm */
#phone.has-wall #screen-home { background: linear-gradient(rgba(0,0,0,.12), rgba(0,0,0,.30)), var(--wall); background-size: cover; background-position: center; background-repeat: no-repeat; }
#phone.has-wall .screen--home::before, #phone.has-wall .screen--home::after { display: none; }
.app__label { white-space: normal !important; max-width: 90px !important; line-height: 1.15; }

/* ===== Pärchen-Apps (#screen-fun) ===== */
#screen-fun { align-items: flex-start; }
.fun__body { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.fun__row { display: flex; gap: 8px; align-items: center; }
.fun__row > .input { flex: 1; min-width: 0; }
.fun__sel { flex: 0 0 auto !important; width: auto !important; }
.fun__wide { width: 100%; }
.fun__card { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09); position: relative; }
.fun__card.is-done { opacity: .6; }
.fun__card.is-pick { border-color: rgba(255,120,150,.7); background: rgba(255,90,130,.14); }
.fun__grow { flex: 1; min-width: 0; }
.fun__text { font-size: .95rem; line-height: 1.3; overflow-wrap: anywhere; }
.fun__card.is-done .fun__text { text-decoration: line-through; }
.fun__meta { font-size: .72rem; opacity: .65; margin-top: 2px; }
.fun__meta.ok { opacity: 1; color: #7be0a0; }
.fun__meta.no { opacity: .8; color: #ffb0b8; }
.fun__sub { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; opacity: .6; margin: 6px 2px 0; }
.fun__empty { text-align: center; padding: 14px 0; }
.fun__center { flex-direction: column; text-align: center; }
.fun__center-t { text-align: center; }
.fun__check { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); background: transparent; color: #fff; font-size: 1rem; line-height: 1; flex: none; }
.is-done .fun__check { background: #3ec878; border-color: #3ec878; }
.fun__x { background: none; border: 0; color: rgba(255,255,255,.5); font-size: 1rem; padding: 6px; flex: none; }
.fun__xabs { position: absolute; top: 4px; right: 4px; }
.fun__like { background: rgba(255,255,255,.08); border: 0; border-radius: 12px; padding: 6px 9px; font-size: .95rem; flex: none; color: #fff; }
.fun__like.on { background: rgba(255,90,130,.25); }
.fun__emoji { font-size: 1.8rem; flex: none; }
.fun__big { text-align: right; flex: none; }
.fun__big b { display: block; font-size: 1.6rem; line-height: 1; }
.fun__big small { font-size: .68rem; opacity: .7; }
.fun__big2 { font-size: 1.35rem; font-weight: 700; }
.fun__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.fun__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: rgba(255,255,255,.06); }
.fun__hero { padding: 0; overflow: hidden; cursor: pointer; }
.fun__hero img { width: 100%; max-height: 240px; object-fit: cover; display: block; }
.fun__herocap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 8px; font-size: .78rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.fun__lb { position: absolute; inset: 0; z-index: 60; background: rgba(0,0,0,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; }
.fun__lb img { max-width: 100%; max-height: 68%; object-fit: contain; border-radius: 12px; }
.fun__lbcap { font-size: .8rem; opacity: .8; text-align: center; }
.fun__letter-text { white-space: pre-wrap; font-size: .95rem; line-height: 1.45; margin: 8px 0 2px; overflow-wrap: anywhere; }
.fun__letter { display: block; }
.fun__letter.is-locked { background: rgba(255,200,120,.08); border-style: dashed; }
.fun__letter.is-new { border-color: rgba(255,120,150,.8); }
.fun__progress { font-size: .75rem; opacity: .7; text-align: center; }
.fun__bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.fun__bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff6aa8, #ffb347); transition: width .3s; }
.fun__q { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
.fun__tag { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.fun__qtext { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.fun__qtext--s { font-size: .95rem; }
.fun__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fun__opt { padding: 14px 8px; min-height: 52px; white-space: normal; }
.fun__opt--big { min-height: 84px; font-size: 1rem; }
.fun__res { flex-direction: column; align-items: flex-start; gap: 3px; }
.fun__line { font-size: .88rem; }
.fun__results { display: flex; flex-direction: column; gap: 8px; }
.fun__turn { text-align: center; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.07); font-weight: 600; }
.fun__turn.is-me { background: rgba(255,90,130,.22); }
.fun__tdcard { flex-direction: column; align-items: stretch; gap: 10px; padding: 20px 16px; min-height: 150px; justify-content: center; }
.fun__tdcard--truth { background: linear-gradient(160deg, rgba(90,130,255,.35), rgba(120,80,255,.2)); }
.fun__tdcard--dare { background: linear-gradient(160deg, rgba(255,110,60,.4), rgba(220,40,90,.25)); }
.fun__big-btn { flex: 1; padding: 20px 8px; font-size: 1.05rem; }
.fun__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fun__tile { flex-direction: column; text-align: center; padding: 12px 6px; min-height: 130px; justify-content: space-between; }
.fun__tile.is-kept { border-color: rgba(255,200,90,.8); }
.fun__tilet { font-size: .95rem; font-weight: 600; line-height: 1.2; }
.fun__lock { background: none; border: 0; color: #fff; opacity: .75; font-size: .75rem; }
.fun__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fun__chip { background: rgba(255,255,255,.08); color: #fff; border: 0; border-radius: 999px; padding: 6px 11px; font-size: .78rem; }
.fun__pick { gap: 6px; }
.fun__bs { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px; padding: 4px; border-radius: 12px; background: rgba(40,110,180,.25); }
.fun__bs--small { max-width: 200px; align-self: center; width: 100%; }
.fun__cell { aspect-ratio: 1; border-radius: 4px; border: 0; background: rgba(80,160,255,.22); display: flex; align-items: center; justify-content: center; font-size: .8rem; padding: 0; color: #fff; }
.fun__cell.small { font-size: .55rem; }
.fun__cell.ship { background: #b8c4d6; }
.fun__cell.hit { background: rgba(255,70,70,.6); }
.fun__cell.hit.sunk { background: rgba(160,20,30,.85); }
.fun__cell.miss { background: rgba(255,255,255,.12); }
.fun__cell.water:not(:disabled):active { background: rgba(255,255,255,.4); }
.fun__cell.ship.hit { background: rgba(255,70,70,.7); }
.fun__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.fun__slot { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.06); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.fun__slot.is-locked { background: repeating-linear-gradient(45deg, rgba(255,200,120,.08), rgba(255,200,120,.08) 8px, rgba(255,255,255,.04) 8px, rgba(255,255,255,.04) 16px); }
.fun__slot.is-empty { border: 1px dashed rgba(255,255,255,.25); background: none; }
.fun__lockicon { font-size: 2rem; }
.fun__timg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fun__slotlabel { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; font-size: .72rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); text-align: left; }
.fun__slot.is-locked .fun__slotlabel, .fun__slot.is-empty .fun__slotlabel { background: none; text-align: center; }
.fun__trade { flex-direction: column; align-items: stretch; gap: 8px; }
.fun__trade.is-open { border-style: dashed; }
.fun__locked { background: rgba(255,200,120,.1); border-color: rgba(255,200,120,.5); }

/* Tresor-PIN-Abfrage */
.vault-lock { position: absolute; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; background: rgba(8,6,14,.82); backdrop-filter: blur(8px); padding: 24px; }
.vault-lock[hidden] { display: none; }
.vault-lock__box { width: 100%; max-width: 300px; background: #1b1626; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 22px 18px; display: flex; flex-direction: column; gap: 10px; text-align: center; color: #fff; }
.vault-lock__icon { font-size: 34px; }
.vault-lock__title { font-weight: 700; font-size: 17px; }
.fun__tvid { object-fit: contain; background: #000; }

/* Einladung zum Mitschauen */
.watch-invite { position: absolute; left: 12px; right: 12px; top: 54px; z-index: 80; background: rgba(27,22,38,.96); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.45); backdrop-filter: blur(10px); }
.watch-invite__text { font-weight: 600; font-size: 15px; line-height: 1.3; }
.watch-invite__row { display: flex; gap: 8px; }
.watch-invite__row .gbtn--main { flex: 1; }

.fun__chip.is-on { background: linear-gradient(135deg, #ff5a6e, #e8386a); }
.fun__chip:disabled { opacity: .5; }

/* Picture Trade: mehrere Dateien mit Beschreibung */
.fun__col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fun__collabel { text-align: left; padding: 0 2px; }
.fun__col .fun__slot { aspect-ratio: 1 / 1; }
.fun__cap { font-size: .78rem; opacity: .85; line-height: 1.25; padding: 0 2px 4px; overflow-wrap: normal; word-break: normal; }
.fun__queue { display: flex; flex-direction: column; gap: 8px; }
.fun__qrow { display: flex; align-items: center; gap: 8px; }
.fun__qrow .input { flex: 1; min-width: 0; }
.fun__qthumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: #000; flex: none; }
.fun__collabel { font-size: .8rem; font-weight: 700; opacity: .9; text-align: left; padding: 0 2px 2px; }

/* Love-Poly */
.mono__board { display: grid; grid-template-columns: repeat(11, 1fr); grid-template-rows: repeat(11, auto); gap: 1px; background: #0e0b16; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 1px; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; }
.mono__cell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #1d1830; border: 0; border-bottom: 3px solid transparent; padding: 0; color: #fff; font-size: 8px; line-height: 1.1; min-width: 0; min-height: 0; overflow: hidden; }
.mono__cell.is-corner { background: #2a2147; font-size: 15px; }
.mono__cell.is-owned { border-bottom-color: var(--own); }
.mono__cell.is-mort { opacity: .45; }
.mono__cell.is-sel { outline: 2px solid #fff; z-index: 2; }
.mono__band { position: absolute; top: 0; left: 0; right: 0; height: 22%; }
.mono__ic { font-size: 12px; }
.mono__cell.mono__t-street .mono__ic { display: none; }
.mono__pr { margin-top: 6px; font-size: 8px; opacity: .85; }
.mono__h { position: absolute; bottom: 0; left: 0; right: 0; font-size: 5px; letter-spacing: 0; color: #7dff9b; text-align: center; }
.mono__toks { position: absolute; inset: auto 0 1px 0; display: flex; justify-content: center; gap: 1px; z-index: 3; }
.mono__tok { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 50%; font-size: 8px; font-weight: 800; font-style: normal; color: #fff; border: 1px solid rgba(255,255,255,.8); flex: none; }
.mono__tok.is-turn { box-shadow: 0 0 0 2px #fff; }
.mono__mid { grid-row: 2 / 11; grid-column: 2 / 11; background: radial-gradient(circle at 50% 30%, #2a2147, #17122a); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; align-items: stretch; justify-content: center; overflow: auto; }
.mono__pl { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 8px; background: rgba(255,255,255,.06); font-size: 12px; }
.mono__pl.is-turn { background: rgba(255,255,255,.16); }
.mono__pn { flex: 1; }
.mono__cash { font-variant-numeric: tabular-nums; }
.mono__dice { text-align: center; font-size: 26px; letter-spacing: 2px; }
.mono__card { font-size: 11px; line-height: 1.3; background: rgba(255,255,255,.1); border-radius: 8px; padding: 6px 8px; }
.mono__ask, .mono__wait { font-size: 12px; text-align: center; line-height: 1.3; }
.mono__wait { opacity: .75; }
.mono__acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.mono__acts .gbtn { padding: 7px 12px; font-size: 12px; }
.mono__sheet .mono__lines { white-space: pre-line; }
.mono__log { display: flex; flex-direction: column; gap: 3px; font-size: 12px; }
.mono__ll { opacity: .85; }
.mono__ll:first-child { opacity: 1; font-weight: 600; }

/* Love-Poly: Grafiken */
.mono__cell.has-art { background-size: cover; background-position: center 65%; background-repeat: no-repeat; justify-content: flex-end; }
.mono__cell.has-art .mono__pr { margin: 0 0 2px; font-size: 8px; font-weight: 800; color: #fff; text-shadow: 0 0 3px #000, 0 0 2px #000; opacity: 1; z-index: 1; }
.mono__cell.has-art.is-corner { background-size: cover; background-position: center; }
.mono__h { display: flex; justify-content: center; gap: 0; bottom: 0; top: auto; z-index: 2; }
.mono__hi { width: 8px; height: 8px; object-fit: cover; border-radius: 2px; border: 1px solid #fff; }
.mono__hi--hotel { width: 12px; height: 10px; }
.mono__toks { inset: auto 0 14px 0; }
img.mono__tok, .mono__tok { width: 22px; height: 22px; border: 0; border-radius: 0; background: none !important; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.9)); margin: 0 -4px; }
img.mono__tok.is-turn { box-shadow: none; filter: drop-shadow(0 0 4px #fff) drop-shadow(0 1px 2px #000); }
img.mono__tok--big { width: 30px; height: 30px; margin: 0; }
.mono__art { display: block; width: 56px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); }
.mono__art--big { width: 110px; height: 165px; margin: 4px auto 8px; }
.mono__art--buy { width: 46px; height: 69px; margin: 0 auto; }
.mono__pickgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 6px; }
.mono__pk { background: rgba(255,255,255,.07); border: 2px solid transparent; border-radius: 10px; padding: 2px; aspect-ratio: 1; }
.mono__pk img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mono__pk.is-on { border-color: #fff; background: rgba(255,255,255,.2); }
.mono__pk.is-taken { opacity: .25; }
.mono__sheet { flex-direction: column !important; align-items: stretch; }
.mono__sheet .mono__art--big { align-self: center; }
.mono__toks { inset: 0 !important; align-items: center; }
img.mono__tok:not(.mono__tok--big) { width: 26px; height: 26px; margin: 0 -5px; background: radial-gradient(circle, rgba(15,10,30,.85) 52%, rgba(15,10,30,0) 72%) !important; }
.mono__test { border: 1px dashed #ffb84a; flex-direction: column !important; align-items: stretch; gap: 8px; }
.mono__sel { background: #2a2147; color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 6px; font-size: 12px; max-width: 100%; }
.mono__sel--s { width: 48px; }

/* Love-Poly: größeres Feld, Animationen, Vollbild */
.mono__wrap { display: flex; flex-direction: column; gap: 6px; margin: 0 -8px; }
.mono__board { container-type: inline-size; border-radius: 10px; }
.mono__fs { align-self: flex-end; margin-right: 8px; background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 14px; padding: 5px 12px; font-size: 12px; }
.mono__cell.has-art .mono__pr { font-size: 2.3cqw; }
img.mono__tok:not(.mono__tok--big) { width: 7.4cqw; height: 7.4cqw; margin: 0 -1.4cqw; }
.mono__hi { width: 2.4cqw; height: 2.4cqw; }
.mono__hi--hotel { width: 3.4cqw; height: 2.8cqw; }
.mono__pl { font-size: 3.3cqw; }
.mono__ask, .mono__wait { font-size: 3.3cqw; }
.mono__card { font-size: 3cqw; }
.mono__dice { font-size: 7cqw; }
.mono__acts .gbtn { font-size: 3.3cqw; padding: 1.8cqw 3.2cqw; }
.mono__art--buy { width: 11cqw; height: 16.5cqw; }
img.mono__tok--big { width: 8cqw; height: 8cqw; }
.mono__dice.is-roll { animation: monoRoll .3s linear infinite; }
@keyframes monoRoll { 0% { transform: rotate(-8deg) scale(1.1); } 50% { transform: rotate(8deg) translateY(-4px) scale(1.2); } 100% { transform: rotate(-8deg) scale(1.1); } }
img.mono__tok.is-hop { animation: monoHop .17s ease-out; z-index: 5; }
@keyframes monoHop { 0% { transform: translateY(0) scale(1); } 45% { transform: translateY(-7px) scale(1.3); } 100% { transform: translateY(0) scale(1); } }
.mono__wrap.is-full { position: fixed; inset: 0; z-index: 99999; margin: 0; background: #0e0b16; align-items: center; justify-content: center; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.mono__wrap.is-full .mono__board { width: min(100vw, 100dvh); height: min(100vw, 100dvh); flex: none; }
.mono__wrap.is-full .mono__fs { position: absolute; top: calc(env(safe-area-inset-top) + 6px); right: 8px; margin: 0; z-index: 3; background: rgba(0,0,0,.6); }
.mono__sheet--over { position: absolute; left: 8px; right: 8px; bottom: calc(env(safe-area-inset-bottom) + 8px); max-height: 48dvh; overflow: auto; background: #1d1830; z-index: 4; box-shadow: 0 -4px 20px rgba(0,0,0,.6); }

/* Namen auf den Karten */
.mono__cell.has-art .mono__nm { position: absolute; left: 0; right: 0; top: 24%; padding: 0 1px; font-size: 1.7cqw; letter-spacing: -.02em; line-height: 1.05; font-weight: 800; color: #fff; text-align: center; text-shadow: 0 0 3px #000, 0 0 2px #000, 0 1px 1px #000; overflow: hidden; overflow-wrap: normal; word-break: normal; }
.mono__cell.is-corner .mono__nm { top: auto; bottom: 14%; font-size: 2.2cqw; }
.mono__bigcard { position: relative; width: 150px; margin: 4px auto 8px; align-self: center; }
.mono__bigcard .mono__art--big { width: 150px; height: 225px; margin: 0; }
.mono__bigband { position: absolute; top: 0; left: 0; right: 0; height: 20%; border-radius: 8px 8px 0 0; opacity: .85; }
.mono__bigname { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 6px 8px; text-align: center; font-weight: 800; font-size: 15px; line-height: 1.1; color: #fff; text-shadow: 0 1px 3px #000, 0 0 6px #000; background: linear-gradient(transparent, rgba(0,0,0,.75)); border-radius: 0 0 8px 8px; }

/* ===== Love-Poly: ruhigeres Brett im Monopoly-Stil (hohe Randfelder) ===== */
.mono__board { grid-template-columns: 1.6fr repeat(9, 1fr) 1.6fr; grid-template-rows: 1.6fr repeat(9, 1fr) 1.6fr; gap: 1px; }
.mono__cell.has-art { background-size: cover; background-position: center; justify-content: center; align-items: center; }
.mono__txt { position: absolute; left: 1px; right: 1px; bottom: 1px; display: flex; flex-direction: column; align-items: center; background: rgba(12,8,26,.7); border-radius: 2px; padding: 1px 0; z-index: 1; }
.mono__cell.has-art .mono__nm { position: static; font-size: 1.75cqw; line-height: 1.05; letter-spacing: -.02em; text-shadow: none; max-width: 100%; }
.mono__cell.has-art .mono__pr { position: static; margin: 0; font-size: 2.3cqw; color: #ffd77a; text-shadow: none; }
.mono__cell.is-corner .mono__txt { background: rgba(12,8,26,.78); }
.mono__cell.is-corner .mono__nm { font-size: 2.1cqw; }
.mono__cell.is-st .mono__txt { top: 1px; bottom: auto; }
.mono__cell.is-sl .mono__txt { right: 21%; }
.mono__cell.is-sr .mono__txt { left: 21%; }
.mono__cell.is-sb .mono__band { top: 0; left: 0; right: 0; height: 16%; bottom: auto; width: auto; }
.mono__cell.is-st .mono__band { bottom: 0; top: auto; left: 0; right: 0; height: 16%; width: auto; }
.mono__cell.is-sl .mono__band { right: 0; left: auto; top: 0; bottom: 0; width: 18%; height: auto; }
.mono__cell.is-sr .mono__band { left: 0; right: auto; top: 0; bottom: 0; width: 18%; height: auto; }
.mono__cell.is-sb .mono__txt { bottom: 1px; }
.mono__cell.is-corner.has-art .mono__band { display: none; }
img.mono__tok:not(.mono__tok--big) { width: 8.2cqw; height: 8.2cqw; margin: 0 -2cqw; padding: .5cqw; background: rgba(12,8,26,.85) !important; border-radius: 50%; box-shadow: 0 0 0 .35cqw #ffd77a, 0 2px 6px rgba(0,0,0,.7); filter: none; }
img.mono__tok.is-turn:not(.mono__tok--big) { box-shadow: 0 0 0 .5cqw #fff, 0 0 3cqw #fff; }
.mono__toks { inset: 0 !important; }
.mono__h { position: absolute; z-index: 2; bottom: auto; top: 0; left: 0; right: 0; }

/* Würfel 3D */
.mono__dice3 { display: flex; align-items: center; justify-content: center; gap: 7cqw; perspective: 90cqw; padding: 3cqw 0 2cqw; --s: 10cqw; }
.mono__sum { font-size: 7cqw; font-weight: 700; margin-left: 1cqw; }
.die3w { width: var(--s); height: var(--s); filter: drop-shadow(0 1.6cqw 1.2cqw rgba(0,0,0,.55)); }
.die3w.is-hop { animation: dieHop .95s cubic-bezier(.3,.1,.3,1); }
@keyframes dieHop { 0% { transform: translateY(0); } 30% { transform: translateY(-7cqw) rotate(12deg); } 55% { transform: translateY(0) rotate(-6deg); } 70% { transform: translateY(-2.2cqw); } 100% { transform: translateY(0); } }
.die3 { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transform: rotateX(-20deg) rotateY(-28deg); }
.die3__cube { position: absolute; inset: 0; transform-style: preserve-3d; }
.die3__f { position: absolute; inset: 0; border-radius: 12%; background: radial-gradient(circle at 30% 25%, #fffef8, #efe6cf 60%, #d9cdb0); box-shadow: inset 0 0 1.4cqw rgba(90,70,30,.45), inset 0 0 .3cqw rgba(0,0,0,.4); display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 15%; backface-visibility: hidden; background-size: cover; }
.die3__f.has-img { padding: 0; display: block; }
.die3__f i { display: block; }
.die3__f .pip { background: radial-gradient(circle at 35% 30%, #5a5a64, #0c0c12 65%); border-radius: 50%; margin: 14%; box-shadow: inset 0 -.2cqw .3cqw rgba(255,255,255,.2), 0 0 .2cqw rgba(0,0,0,.6); }
.die3__f1 { transform: translateZ(calc(var(--s) / 2)); }
.die3__f2 { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.die3__f3 { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.die3__f4 { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.die3__f5 { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.die3__f6 { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.die3__f.has-img { border-radius: 15%; overflow: hidden; background-size: 108% 108%; background-position: center; box-shadow: inset 0 0 1.2cqw rgba(0,0,0,.35); }
.mono__diepick { display: flex; gap: 10px; margin-top: 6px; }
.mono__dk { width: 54px; height: 54px; border-radius: 12px; border: 2px solid transparent; padding: 2px; background: rgba(255,255,255,.07); }
.mono__dk img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; display: block; }
.mono__dk.is-on { border-color: #fff; background: rgba(255,255,255,.2); }
.mono__pick { flex-direction: column !important; align-items: stretch; gap: 4px; }
.nt__st { font-size: 11px; opacity: .7; margin-top: 3px; text-align: right; }
.nt__st--ok { opacity: .9; }
.nt__st--read { color: #6ec8ff; opacity: 1; }
.nt__st--bad { color: #ff9a8a; opacity: 1; }
.dev__health { font-size: 11px; margin-top: 4px; opacity: .8; line-height: 1.3; }
.dev__health.ok { color: #7dff9b; opacity: 1; }
.dev__health.bad { color: #ff9a8a; opacity: 1; }

/* ===== Friends OS: Gegenüber-Auswahl ===== */
.fos-pill { display: inline-flex; align-items: center; gap: 4px; float: right; margin: 0 0 14px 8px; padding: 7px 13px; border-radius: 999px; font: inherit; font-weight: 600; font-size: .8rem; color: #fff; cursor: pointer;
  background: var(--glass, rgba(255,255,255,.1)); border: 1px solid var(--glass-border, rgba(255,255,255,.2)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.fos-pill:active { transform: scale(.95); }
.fos-pill--home { float: none; display: flex; width: fit-content; margin: 0 auto 10px; }
.fos-pick { position: absolute; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(5,8,16,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.fos-pick__box { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 22px; background: rgba(24,30,46,.96); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.fos-pick__box h3 { margin: 0; font-size: 1.1rem; }
.fos-pick__box .hint { margin: 0 0 4px; }
.theme-pick[hidden], .yt-h[hidden], .hint[hidden] { display: none !important; }
