/* Sprachmut App: Komponenten
   Alles benutzt nur Tokens aus tokens.css. Interaktive Ziele sind mindestens 44px hoch. */

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--surface); color: var(--text); font: 400 16px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-lg { width: 32px; height: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Bildschirm ---------- */
.screen { position: relative; width: 375px; height: 812px; overflow: hidden; display: flex; flex-direction: column;
  background: var(--surface); color: var(--text); padding-top: 48px; }
.screen.tablet { width: 820px; height: 1180px; padding-top: 28px; }
.screen.tablet-l { width: 1180px; height: 820px; padding-top: 24px; }
.screen-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0 22px 28px; gap: 18px; position: relative; }
.screen.tablet .screen-body { padding: 0 56px 48px; }
.screen.tablet-l .screen-body { padding: 0 56px 36px; }
.status { position: absolute; top: 0; left: 0; right: 0; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px;
  font: 600 14px var(--font-body); color: var(--text); pointer-events: none; }
.status i { display: inline-block; width: 18px; height: 10px; border-radius: 3px; border: 2px solid currentColor; opacity: .8; }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 4px 14px 4px 14px; min-height: 56px; gap: 8px; }
.topbar .title { font: 600 20px/1.2 var(--font-display); text-align: center; flex: 1; }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); background: var(--surface-raised); color: var(--text); cursor: pointer; }
.iconbtn:hover { border-color: var(--brand); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: var(--radius-pill);
  font: 600 18px/1 var(--font-display); border: 3px solid transparent; cursor: pointer; text-decoration: none; transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { box-shadow: var(--shadow-glow-lime); }
.btn-purple { background: var(--brand); color: var(--on-brand); }
.btn-ink { background: var(--ink); color: #fff; border-color: var(--ink); }
[data-theme="dark"] .btn-ink { background: var(--surface-raised); border-color: var(--line-strong); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-terracotta { background: var(--terracotta); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 16px; }
.link { background: none; border: 0; color: var(--brand); font: 600 16px var(--font-body); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; cursor: pointer; padding: 0 8px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ---------- Karten, Chips, Felder ---------- */
.card { background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px; border-top: 10px solid var(--lime); }
.card.purple { border-top-color: var(--purple); } .card.terracotta { border-top-color: var(--terracotta); }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill); background: var(--purple-10); color: var(--brand); font: 600 15px var(--font-body); border: 2px solid transparent; }
.chip.on { background: var(--brand); color: var(--on-brand); }
.eyebrow { display: inline-flex; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--purple-10); color: var(--brand); font: 600 12px/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; align-self: flex-start; }
.field { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 18px; border-radius: var(--radius-md); border: 2px solid var(--line-strong); background: var(--surface-raised); color: var(--text); font: 400 17px var(--font-body); }
.field .ph { color: var(--text-muted); }
.pchip { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 6px 0 8px; border-radius: var(--radius-pill); background: var(--surface-raised); border: 2px solid var(--line); font: 600 17px var(--font-body); }
.pchip .dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 700 17px var(--font-display); color: var(--ink); }
.pchip .x { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--text-muted); background: none; border: 0; }
.switch { position: relative; width: 56px; height: 34px; border-radius: 999px; background: var(--line-strong); flex: none; border: 0; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform var(--dur-fast) var(--ease); }
.switch.on { background: var(--brand); } .switch.on::after { transform: translateX(22px); }
.row { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 0; border-bottom: 2px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; } .row .t { font: 600 17px/1.25 var(--font-body); } .row .s { font: 400 14px/1.35 var(--font-body); color: var(--text-muted); }
.segment { display: flex; padding: 4px; border-radius: var(--radius-pill); background: var(--surface-sunken); border: 2px solid var(--line); }
.segment button { flex: 1; min-height: 44px; border: 0; border-radius: var(--radius-pill); background: none; font: 600 15px var(--font-body); color: var(--text-muted); }
.segment button.on { background: var(--brand); color: var(--on-brand); }

/* ---------- Bubble-Sticker ---------- */
.bubble { position: relative; display: inline-block; padding: 12px 18px; border-radius: var(--radius-bubble); background: var(--lime); color: var(--ink); font: 600 17px/1.25 var(--font-display); box-shadow: var(--shadow); }
.bubble::after { content: ""; position: absolute; bottom: -9px; left: 26px; width: 0; height: 0; border: 10px solid transparent; border-top-color: var(--lime); border-bottom: 0; border-left-width: 4px; }
.bubble.white { background: var(--surface-raised); color: var(--text); } .bubble.white::after { border-top-color: var(--surface-raised); }
.bubble.purple { background: var(--purple); color: #fff; } .bubble.purple::after { border-top-color: var(--purple); }
.bubble.terracotta { background: var(--terracotta); } .bubble.terracotta::after { border-top-color: var(--terracotta); }
.bubble.tr { right: auto; } .bubble.tail-r::after { left: auto; right: 26px; border-left-width: 10px; border-right-width: 4px; }
.tilt-l { transform: rotate(var(--tilt-left)); } .tilt-r { transform: rotate(var(--tilt-right)); } .tilt-p { transform: rotate(var(--tilt-pop)); }
.hand { font: 700 28px/1.1 var(--font-hand); color: var(--brand); }

/* ---------- Ziege im Layout ---------- */
.goat { display: block; }
.goat-stage { position: relative; display: grid; place-items: center; }
.goat-80 { width: 80px; height: 80px; } .goat-120 { width: 120px; height: 120px; } .goat-180 { width: 180px; height: 180px; } .goat-240 { width: 240px; height: 240px; } .goat-300 { width: 300px; height: 300px; }

/* ---------- Modus-Karten ---------- */
.mode { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 18px 18px 18px 22px; border-radius: var(--radius-lg); background: var(--surface-raised); box-shadow: var(--shadow); border: 3px solid transparent; border-left: 12px solid var(--lime); cursor: pointer; }
.mode.party { border-left-color: var(--purple); }
.mode .t { font: 700 26px/1.1 var(--font-display); } .mode .s { font: 400 15px/1.4 var(--font-body); color: var(--text-muted); margin-top: 4px; }
.mode .goat { margin: -14px -8px -14px 0; flex: none; }

/* ---------- Decks ---------- */
.deck-tile { position: relative; overflow: hidden; border-radius: var(--radius-lg); min-height: 132px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between;
  background-color: var(--deck-bg); color: var(--deck-fg); border: 3px solid var(--deck-edge); cursor: pointer; text-align: left; width: 100%; }
.deck-tile::before { content: ""; position: absolute; inset: 0; background-image: var(--deck-pattern); background-size: var(--deck-tile, 36px); opacity: 1; pointer-events: none; }
.deck-tile > * { position: relative; }
.deck-tile .badge { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--deck-fg); color: var(--deck-bg); }
.deck-tile .plate { align-self: flex-start; padding: 4px 10px 5px; border-radius: 12px; background: var(--deck-bg); }
.deck-tile .name { font: 700 19px/1.1 var(--font-display); }
.deck-tile .count { font: 600 13px var(--font-body); opacity: .85; }
.deck-tile.sel { outline: 4px solid var(--focus-ring); outline-offset: 3px; }
.deck-tile .tick { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--deck-fg); color: var(--deck-bg); display: grid; place-items: center; }
.deck-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tablet .deck-grid, .tablet-l .deck-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* Spielkarte, Vorderseite */
.playcard { position: relative; width: 300px; height: 420px; border-radius: var(--radius-lg); background-color: var(--deck-bg); color: var(--deck-fg); border: 5px solid var(--deck-edge);
  box-shadow: var(--shadow-lift); overflow: hidden; display: flex; flex-direction: column; }
.playcard::before { content: ""; position: absolute; inset: 0; background-image: var(--deck-pattern); background-size: var(--deck-tile, 36px); pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 0, #000 16%, transparent 30%, transparent 70%, #000 84%, #000 100%); mask-image: linear-gradient(#000 0, #000 16%, transparent 30%, transparent 70%, #000 84%, #000 100%); }
.playcard .head { position: relative; display: flex; align-items: center; gap: 10px; padding: 16px 18px 0; }
.playcard .head .badge { width: 44px; height: 44px; border-radius: 50%; background: var(--deck-fg); color: var(--deck-bg); display: grid; place-items: center; flex: none; }
.playcard .head .lab { font: 600 12px/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; background: var(--deck-bg); padding: 4px 9px; border-radius: 9px; }
.playcard .prompt { position: relative; flex: 1; display: flex; align-items: center; padding: 8px 22px; font: 600 27px/1.2 var(--font-display); }
.playcard .foot { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 0 18px 16px; font: 600 12px var(--font-body); letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.playcard .foot > span { background: var(--deck-bg); padding: 3px 9px; border-radius: 9px; }
.playcard .foot .mini { display: inline-flex; align-items: center; gap: 6px; }
.playcard.on-paper .prompt, .playcard.on-paper .head, .playcard.on-paper .foot { color: var(--deck-fg); }
.playcard .panel { position: relative; margin: 0 18px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--deck-fg); color: var(--deck-bg); font: 600 22px/1.2 var(--font-display); }
.playcard .ab { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 18px 12px; }
.playcard .ab div { border-radius: var(--radius-md); background: var(--deck-fg); color: var(--deck-bg); padding: 12px 8px; text-align: center; font: 700 20px/1.1 var(--font-display); }
.playcard .ab small { display: block; font: 600 11px var(--font-body); letter-spacing: .12em; opacity: .8; margin-bottom: 4px; }
.playcard .age { position: absolute; right: -34px; top: 22px; transform: rotate(35deg); width: 140px; text-align: center; background: var(--lime); color: var(--ink); font: 700 15px var(--font-display); padding: 4px 0; letter-spacing: .08em; }
.playcard.small { width: 220px; height: 308px; border-width: 4px; border-radius: 22px; } .playcard.small .prompt { font-size: 20px; padding: 6px 16px; } .playcard.small .head { padding: 12px 14px 0; } .playcard.small .head .badge { width: 36px; height: 36px; }
.playcard.small .foot { padding: 0 14px 12px; font-size: 10px; }

/* Spielkarte, Rückseite */
.cardback { position: relative; width: 300px; height: 420px; border-radius: var(--radius-lg); background-color: var(--deck-bg); border: 5px solid var(--deck-edge); box-shadow: var(--shadow-lift); overflow: hidden; display: grid; place-items: center; color: var(--deck-fg); }
.cardback::before { content: ""; position: absolute; inset: 0; background-image: var(--deck-pattern); background-size: var(--deck-tile, 36px); opacity: 1; }
.cardback .seal { position: relative; width: 168px; height: 168px; border-radius: 50%; background: var(--deck-fg); display: grid; place-items: center; box-shadow: 0 0 0 8px var(--deck-bg), 0 0 0 11px var(--deck-fg); }
.cardback .seal .ic { width: 84px; height: 84px; stroke-width: 1.7; color: var(--deck-bg); }
.cardback .nm { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); white-space: nowrap; text-align: center; font: 700 22px var(--font-display); background: var(--deck-bg); padding: 3px 14px 5px; border-radius: 14px; }
.cardback .bubble-mark { position: absolute; top: 18px; left: 18px; width: 38px; height: 26px; border-radius: 10px; background: var(--deck-fg); }
.cardback .bubble-mark::after { content: ""; position: absolute; left: 6px; bottom: -7px; border: 6px solid transparent; border-top-color: var(--deck-fg); border-bottom: 0; }
.cardback.small { width: 220px; height: 308px; border-width: 4px; border-radius: 22px; } .cardback.small .seal { width: 120px; height: 120px; } .cardback.small .seal .ic { width: 60px; height: 60px; }
.stack { position: relative; width: 300px; height: 420px; }
.stack > * { position: absolute; left: 0; top: 0; }
.stack .stack-1 { transform: rotate(-5deg) translate(-10px, 6px); } .stack .stack-2 { transform: rotate(4deg) translate(12px, 4px); } .stack .stack-3 { transform: translateY(0); }

/* ---------- Party-Aktionen ---------- */
.act { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 68px; padding: 10px 20px 10px 14px; border-radius: var(--radius-lg); border: 3px solid transparent; font-family: var(--font-display); cursor: pointer; text-align: left; }
.act .ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.act .t { font: 700 20px/1.1 var(--font-display); } .act .s { font: 400 13px/1.3 var(--font-body); opacity: .9; }
.act.answer { background: var(--lime); color: var(--ink); } .act.answer .ico { background: var(--ink); color: var(--lime); }
.act.dare { background: var(--purple); color: #fff; } .act.dare .ico { background: #fff; color: var(--purple); }
.act.drink { background: var(--terracotta); color: var(--ink); } .act.drink .ico { background: var(--ink); color: var(--terracotta); }
[data-theme="dark"] .act.dare { background: var(--purple); }
.turn { display: flex; align-items: center; gap: 10px; align-self: center; padding: 6px 16px 6px 6px; border-radius: var(--radius-pill); background: var(--surface-raised); border: 2px solid var(--line); font: 600 16px var(--font-body); }
.turn .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 16px var(--font-display); color: var(--ink); }
.dots { display: flex; gap: 8px; justify-content: center; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); opacity: .45; } .dots i.on { background: var(--brand); opacity: 1; width: 26px; border-radius: 6px; }
.timer { font: 700 40px/1 var(--font-display); color: var(--text); text-align: center; }

/* ---------- Bottom Sheet, Dialog ---------- */
.scrim { position: absolute; inset: 0; background: rgba(21, 12, 38, .58); z-index: 5; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--surface); border-radius: 28px 28px 0 0; padding: 12px 22px 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 -12px 40px rgba(0,0,0,.25); }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line-strong); align-self: center; opacity: .6; }
.dialog { position: absolute; left: 22px; right: 22px; top: 50%; transform: translateY(-50%); z-index: 6; background: var(--surface-raised); border-radius: var(--radius-lg); padding: 26px 22px 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-lift); border-top: 10px solid var(--terracotta); }
.tag18 { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--ink); color: var(--lime); font: 700 15px var(--font-display); letter-spacing: .04em; border: 2px solid var(--terracotta); }

/* A-oder-B in der kleinen Karte */
.playcard.small .ab { padding: 0 12px 8px; gap: 8px; }
.playcard.small .ab div { font-size: 13px; padding: 8px 2px; border-radius: 14px; }
.playcard.small .ab small { font-size: 10px; }

.tablet .deck-tile { min-height: 250px; padding: 20px; } .tablet .deck-tile .name { font-size: 24px; } .tablet .deck-tile .badge { width: 56px; height: 56px; }
