/* =====================================================================
   Couple Of Games – warm, rund, verspielt
   ===================================================================== */

:root {
    --bg:        #f7ede2;
    --bg-2:      #f2e2d2;
    --surface:   #fffaf5;
    --surface-2: #fdf1e6;
    --ink:       #3d3436;
    --ink-soft:  #6f6260;
    --muted:     #9a8b84;
    --line:      #e8d9cb;

    --primary:      #e07a5f;
    --primary-ink:  #ffffff;
    --primary-soft: #fbe3da;
    --secondary:    #7d9d9c;
    --accent:       #f2cc8f;
    --danger:       #c2453d;
    --ok:           #5f9e6e;

    --lvl1: #7d9d9c;
    --lvl2: #e9a13b;
    --lvl3: #d1495b;

    --r-sm: 12px;
    --r-md: 18px;
    --r-lg: 26px;
    --r-xl: 34px;

    --shadow:    0 2px 4px rgba(61, 52, 54, .05), 0 8px 24px rgba(61, 52, 54, .08);
    --shadow-lg: 0 8px 16px rgba(61, 52, 54, .08), 0 24px 48px rgba(61, 52, 54, .14);

    --font: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN",
            Quicksand, Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;

    --safe-b: env(safe-area-inset-bottom, 0px);
    --tabbar-h: 66px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg:        #221d1e;
        --bg-2:      #2b2425;
        --surface:   #2e2728;
        --surface-2: #372f30;
        --ink:       #f5ebe3;
        --ink-soft:  #cdbcb3;
        --muted:     #9b8d87;
        --line:      #443a3b;

        --primary:      #ec8b6f;
        --primary-ink:  #2a1f1c;
        --primary-soft: #4a3128;
        --secondary:    #8fb3b1;
        --accent:       #f0c987;

        --shadow:    0 2px 4px rgba(0, 0, 0, .25), 0 8px 24px rgba(0, 0, 0, .3);
        --shadow-lg: 0 8px 16px rgba(0, 0, 0, .3), 0 24px 48px rgba(0, 0, 0, .45);
    }
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background: var(--bg);
    background-image:
        radial-gradient(circle at 12% 8%,  rgba(242, 204, 143, .35), transparent 42%),
        radial-gradient(circle at 88% 4%,  rgba(224, 122, 95,  .22), transparent 38%),
        radial-gradient(circle at 50% 100%, rgba(125, 157, 156, .20), transparent 45%);
    background-attachment: fixed;
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 1.55rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p  { margin: 0 0 1em; }
a  { color: var(--primary); }

.muted  { color: var(--muted); }
.small  { font-size: .86rem; }
.center { text-align: center; }
.stack  > * + * { margin-top: 14px; }
.row    { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
.spacer { flex: 1; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    border: 0;
    border-radius: var(--r-lg);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
    min-height: 50px;
    user-select: none;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.btn-primary   { background: var(--primary);   color: var(--primary-ink); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-accent    { background: var(--accent);    color: #4a3a20; }
.btn-ghost     { background: transparent; box-shadow: none; border: 2px solid var(--line); }
.btn-danger    { background: var(--danger); color: #fff; }
.btn-block     { display: flex; width: 100%; }
.btn-sm        { padding: 9px 15px; min-height: 40px; font-size: .9rem; border-radius: var(--r-md); }

.icon-btn {
    background: transparent;
    border: 0;
    color: var(--ink-soft);
    font-size: 1.25rem;
    padding: 8px 10px;
    border-radius: var(--r-md);
    cursor: pointer;
    line-height: 1;
}
.icon-btn:active { background: var(--surface-2); }

/* ---------------------------------------------------------------------
   Formulare
   --------------------------------------------------------------------- */
.field { display: block; }
.field > span {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: var(--ink-soft);
    margin: 0 0 6px 14px;
}
input[type=text], input[type=password], input[type=number], select, textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    -webkit-appearance: none;
    appearance: none;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}
input[type=color] {
    width: 100%;
    height: 50px;
    padding: 4px;
    border: 2px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
}
.emoji-input { text-align: center; font-size: 1.4rem; }
.code-input {
    text-align: center;
    font-size: 1.6rem;
    letter-spacing: .35em;
    font-weight: 700;
    text-indent: .35em;
}
.check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 6px;
    font-size: .95rem;
    color: var(--ink-soft);
    cursor: pointer;
}
.check input { width: 22px; height: 22px; accent-color: var(--primary); flex: none; }

/* ---------------------------------------------------------------------
   Meldungen
   --------------------------------------------------------------------- */
.alert {
    padding: 13px 17px;
    border-radius: var(--r-md);
    font-size: .93rem;
    margin: 0 0 14px;
    border-left: 5px solid var(--muted);
    background: var(--surface);
}
.alert-error { border-color: var(--danger);    background: color-mix(in srgb, var(--danger) 10%, var(--surface)); }
.alert-ok    { border-color: var(--ok);        background: color-mix(in srgb, var(--ok) 12%, var(--surface)); }
.alert-info  { border-color: var(--secondary); background: color-mix(in srgb, var(--secondary) 12%, var(--surface)); }

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(var(--tabbar-h) + var(--safe-b) + 18px);
    transform: translate(-50%, 12px);
    background: var(--ink);
    color: var(--bg);
    padding: 12px 20px;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    font-size: .92rem;
    font-weight: 600;
    z-index: 90;
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
    max-width: 88vw;
    text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------------
   Anmeldung / Einrichtung
   --------------------------------------------------------------------- */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 18px calc(28px + var(--safe-b));
    min-height: 100vh;
    min-height: 100dvh;
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border-radius: var(--r-xl);
    padding: 30px 26px;
    box-shadow: var(--shadow-lg);
}
.setup-card { max-width: 520px; }
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-brand h1 { margin-bottom: .1em; }
.auth-brand p  { margin: 0; }
.auth-logo { display: block; margin: 0 auto 10px; }

.qr-wrap {
    display: flex;
    justify-content: center;
    padding: 16px;
    background: #fff;
    border-radius: var(--r-md);
    margin: 0 0 16px;
}
.qr-wrap svg { max-width: 100%; height: auto; border-radius: 6px; }

.secret {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1rem;
    letter-spacing: .06em;
    background: var(--surface-2);
    padding: 12px 14px;
    border-radius: var(--r-sm);
    word-break: break-all;
    text-align: center;
}
.codes {
    list-style: none;
    padding: 14px;
    margin: 0 0 16px;
    background: var(--surface-2);
    border-radius: var(--r-md);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .92rem;
}
.details { margin: 0 0 16px; }
.details summary { cursor: pointer; font-weight: 700; padding: 10px 0; color: var(--ink-soft); }
.checklist { padding-left: 1.2em; color: var(--ink-soft); font-size: .93rem; }
.checklist li { margin-bottom: .5em; }

/* ---------------------------------------------------------------------
   App-Gerüst
   --------------------------------------------------------------------- */
.app { padding-bottom: calc(var(--tabbar-h) + var(--safe-b)); }

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 10px;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.topbar-title {
    flex: 1;
    margin: 0;
    font-size: 1.15rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.topbar-back {
    background: transparent;
    border: 0;
    font-size: 2rem;
    line-height: .7;
    color: var(--primary);
    cursor: pointer;
    padding: 0 8px 6px;
    width: 42px;
}
.topbar-back[hidden] + .topbar-title { margin-left: 42px; }
.topbar-logout { margin: 0; width: 42px; display: flex; justify-content: flex-end; }

.view {
    max-width: 620px;
    margin: 0 auto;
    padding: 18px 16px 30px;
    animation: fade .22s ease;
}
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tabbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    display: flex;
    padding-bottom: var(--safe-b);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
}
.tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 9px 0 8px;
    font-size: .68rem;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
}
.tab-icon { font-size: 1.3rem; line-height: 1.1; filter: grayscale(.5); opacity: .75; }
.tab.active { color: var(--primary); }
.tab.active .tab-icon { filter: none; opacity: 1; transform: translateY(-1px); }

/* ---------------------------------------------------------------------
   Spielübersicht
   --------------------------------------------------------------------- */
.hero {
    background: var(--surface);
    border-radius: var(--r-xl);
    padding: 20px 22px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.hero-emoji { font-size: 2.1rem; }
.hero h2 { margin: 0 0 2px; font-size: 1.15rem; }
.hero p  { margin: 0; font-size: .88rem; color: var(--muted); }

.tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
}
.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 3px;
    min-height: 128px;
    padding: 16px;
    border: 0;
    border-radius: var(--r-lg);
    background: var(--surface);
    color: var(--ink);
    text-align: left;
    text-decoration: none;
    box-shadow: var(--shadow);
    cursor: pointer;
    overflow: hidden;
    transition: transform .14s ease, box-shadow .14s ease;
    font: inherit;
}
.tile:active { transform: scale(.97); }
.tile-emoji { font-size: 1.9rem; line-height: 1; margin-bottom: auto; }
.tile-name  { font-weight: 800; font-size: 1rem; }
.tile-desc  { font-size: .76rem; color: var(--muted); line-height: 1.3; }
.tile::after {
    content: "";
    position: absolute;
    inset: auto -30% -55% auto;
    width: 130px; height: 130px;
    border-radius: 50%;
    background: var(--tint, var(--accent));
    opacity: .16;
}
.tile.wide { grid-column: 1 / -1; min-height: 96px; }

/* ---------------------------------------------------------------------
   Spielkarte
   --------------------------------------------------------------------- */
.play-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 300px;
    padding: 32px 26px;
    background: var(--surface);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: 18px;
    animation: pop .28s cubic-bezier(.2, 1.3, .5, 1);
}
@keyframes pop { from { opacity: 0; transform: scale(.94) rotate(-.8deg); } to { opacity: 1; transform: none; } }
.play-card .card-text {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    text-wrap: balance;
}
.play-card .card-kicker {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}
.card-fav {
    position: absolute;
    top: 14px; right: 16px;
    background: transparent;
    border: 0;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: .35;
    padding: 6px;
}
.card-fav.on { opacity: 1; }
.card-counter {
    position: absolute;
    top: 16px; left: 20px;
    font-size: .74rem;
    font-weight: 800;
    color: var(--muted);
}

.lvl-dot {
    display: inline-block;
    width: 9px; height: 9px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: baseline;
}
.lvl-1 { background: var(--lvl1); }
.lvl-2 { background: var(--lvl2); }
.lvl-3 { background: var(--lvl3); }

/* Segment-Auswahl (Intensität) */
.seg {
    display: flex;
    gap: 6px;
    padding: 5px;
    background: var(--surface-2);
    border-radius: var(--r-lg);
    margin-bottom: 16px;
}
.seg button {
    flex: 1;
    padding: 10px 6px;
    border: 0;
    border-radius: var(--r-md);
    background: transparent;
    color: var(--ink-soft);
    font: inherit;
    font-size: .84rem;
    font-weight: 700;
    cursor: pointer;
}
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* Wer ist dran */
.turn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    font-weight: 800;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow);
    font-size: .9rem;
    font-weight: 700;
    border: 2px solid transparent;
}
.pill.on { border-color: var(--who, var(--primary)); }
.pill .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--who, var(--primary)); }

.actions { display: grid; gap: 10px; }
.actions.two { grid-template-columns: 1fr 1fr; }

/* ---------------------------------------------------------------------
   Würfel
   --------------------------------------------------------------------- */
.dice-row { display: flex; justify-content: center; gap: 18px; margin: 10px 0 22px; }
.die {
    width: 84px; height: 84px;
    background: var(--surface);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template: repeat(3, 1fr) / repeat(3, 1fr);
    padding: 12px;
    gap: 3px;
}
.die.rolling { animation: tumble .55s ease; }
@keyframes tumble {
    0%   { transform: rotate(0)      scale(1); }
    30%  { transform: rotate(-18deg) scale(1.12); }
    60%  { transform: rotate(15deg)  scale(.94); }
    100% { transform: rotate(0)      scale(1); }
}
.pip { width: 14px; height: 14px; border-radius: 50%; background: var(--primary); align-self: center; justify-self: center; }
.pip.hide { visibility: hidden; }

/* ---------------------------------------------------------------------
   Glücksrad
   --------------------------------------------------------------------- */
.wheel-stage { position: relative; width: min(320px, 84vw); margin: 6px auto 22px; }
.wheel-stage::before {
    content: "";
    position: absolute;
    top: -6px; left: 50%;
    transform: translateX(-50%);
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-top: 22px solid var(--primary);
    z-index: 3;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,.25));
}
.wheel {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    transition: transform 4.4s cubic-bezier(.15, .85, .2, 1);
}
.wheel-hub {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 54px; height: 54px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--shadow);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    z-index: 2;
}

/* ---------------------------------------------------------------------
   Bussfahrt (Spielkarten)
   --------------------------------------------------------------------- */
.deck-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px; }
.pcard {
    width: 62px; height: 88px;
    border-radius: 10px;
    background: #fff;
    color: #24201f;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1;
    gap: 3px;
    border: 1px solid rgba(0,0,0,.08);
    animation: pop .25s cubic-bezier(.2, 1.3, .5, 1);
}
.pcard.red   { color: #c2453d; }
.pcard.black { color: #24201f; }
.pcard.back {
    background: repeating-linear-gradient(45deg, var(--primary), var(--primary) 6px, #cf6a51 6px, #cf6a51 12px);
    color: transparent;
}
.pcard .suit { font-size: 1.25rem; }
.pyramid { display: grid; gap: 8px; justify-items: center; margin-bottom: 18px; }
.pyramid-row { display: flex; gap: 8px; }

/* ---------------------------------------------------------------------
   Listen / Inhalte
   --------------------------------------------------------------------- */
.list { display: flex; flex-direction: column; gap: 9px; }
.list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface);
    border-radius: var(--r-md);
    box-shadow: var(--shadow);
}
.list-item.off { opacity: .48; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .txt { font-size: .93rem; line-height: 1.4; overflow-wrap: anywhere; }
.list-item .meta { font-size: .74rem; color: var(--muted); margin-top: 3px; }
.list-actions { display: flex; gap: 4px; flex: none; }

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 24px 0 12px;
}
.section-title h2 { margin: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; margin-bottom: 18px; }
.stat {
    background: var(--surface);
    border-radius: var(--r-lg);
    padding: 18px;
    box-shadow: var(--shadow);
    text-align: center;
}
.stat .num { font-size: 2rem; font-weight: 800; line-height: 1; }
.stat .lbl { font-size: .76rem; color: var(--muted); margin-top: 5px; font-weight: 700; }
.stat .who { font-size: .9rem; font-weight: 800; margin-bottom: 8px; }

.bar { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--who, var(--primary)); }

/* ---------------------------------------------------------------------
   Sheet / Dialog
   --------------------------------------------------------------------- */
.sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(30, 24, 25, .45);
    backdrop-filter: blur(3px);
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fade .18s ease;
}
.sheet {
    width: 100%;
    max-width: 620px;
    background: var(--surface);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding: 24px 20px calc(24px + var(--safe-b));
    box-shadow: var(--shadow-lg);
    max-height: 88vh;
    overflow-y: auto;
    animation: rise .26s cubic-bezier(.2, 1, .4, 1);
}
@keyframes rise { from { transform: translateY(22px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet h2 { margin-bottom: 14px; }

.empty {
    text-align: center;
    padding: 44px 20px;
    color: var(--muted);
}
.empty .big { font-size: 2.6rem; display: block; margin-bottom: 10px; }

.spinner {
    width: 30px; height: 30px;
    border: 3px solid var(--line);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 44px auto;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------------
   Gemeinsame Runde
   --------------------------------------------------------------------- */

/* Einladung des Partners */
.invite {
    position: fixed;
    left: 12px; right: 12px;
    bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px);
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary);
    animation: rise .25s cubic-bezier(.2, 1, .4, 1);
    max-width: 600px;
    margin: 0 auto;
}
.invite-emoji { font-size: 1.6rem; }
.invite strong { display: block; font-size: .95rem; }
.invite .meta  { font-size: .78rem; color: var(--muted); }

/* Lobby */
.lobby { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.lobby-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 16px;
    background: var(--surface);
    border-radius: var(--r-md);
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    font-weight: 700;
}
.lobby-row.ok { border-color: var(--ok); }
.lobby-row.away { opacity: .55; }
.lobby-row .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--who, var(--primary)); flex: none; }
.lobby-row.away .dot { background: var(--muted); }
.lobby-state { font-size: .8rem; font-weight: 700; color: var(--muted); }
.lobby-row.ok .lobby-state { color: var(--ok); }

/* Der wichtigste Knopf der Lobby darf auffallen. */
.big-ready { min-height: 62px; font-size: 1.1rem; }

/* Handy weiterreichen */
.handover {
    text-align: center;
    padding: 40px 22px;
    background: var(--surface);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    animation: pop .3s cubic-bezier(.2, 1.3, .5, 1);
}
.handover-emoji { font-size: 3.4rem; display: block; margin-bottom: 12px; }
.handover .btn { margin-top: 14px; }

.solo-hint {
    text-align: center;
    font-size: .78rem;
    font-weight: 700;
    color: var(--muted);
    background: var(--surface-2);
    border-radius: 999px;
    padding: 6px 14px;
    margin: 0 auto 14px;
    width: fit-content;
}

/* Rundenfortschritt */
.rounds { margin-bottom: 14px; }
.rounds span { font-size: .74rem; font-weight: 800; color: var(--muted); }
.rounds .bar { margin-top: 5px; height: 8px; }

/* Karte: Zusatztexte */
.card-sub  { font-size: 1rem; color: var(--ink-soft); margin: 14px 0 0; line-height: 1.45; }
.card-note {
    font-size: .84rem;
    color: var(--muted);
    margin: 14px 0 0;
    padding: 8px 14px;
    background: var(--surface-2);
    border-radius: var(--r-sm);
}

.pill.self { box-shadow: var(--shadow), 0 0 0 2px var(--surface-2); }
.pill .away { font-style: normal; font-size: .7rem; color: var(--muted); margin-left: 4px; }

/* Warten auf den anderen */
.waiting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    margin: 4px 0 14px;
    font-weight: 700;
    color: var(--ink-soft);
    background: var(--surface-2);
    border-radius: var(--r-lg);
}
.pulse {
    width: 11px; height: 11px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 1.3s ease-in-out infinite;
    flex: none;
}
@keyframes pulse {
    0%, 100% { opacity: .3; transform: scale(.8); }
    50%      { opacity: 1;  transform: scale(1.15); }
}

/* Auflösung */
.reveal { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.reveal-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 16px;
    background: var(--surface);
    border-radius: var(--r-md);
    box-shadow: var(--shadow);
    border-left: 5px solid var(--who, var(--primary));
    animation: pop .25s cubic-bezier(.2, 1.3, .5, 1);
}
.reveal-row.good { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); }
.reveal-row .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--who); flex: none; }
.reveal-who { font-weight: 700; font-size: .88rem; flex: none; }
.reveal-val { flex: 1; text-align: right; font-weight: 800; overflow-wrap: anywhere; }

/* Punktestand in der Runde */
.mini-scores { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0 12px; }
.mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .76rem;
    font-weight: 700;
    color: var(--ink-soft);
    background: var(--surface-2);
    border-radius: 999px;
    padding: 5px 12px;
}
.mini .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--who); }

.resume { margin-bottom: 16px; }

/* Reaktionsduell */
.reflex {
    display: grid;
    place-items: center;
    min-height: 220px;
    border-radius: var(--r-xl);
    background: var(--surface-2);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    cursor: pointer;
    user-select: none;
    transition: background .08s linear;
}
.reflex-txt { font-size: 1.5rem; font-weight: 800; color: var(--muted); }
.reflex.go { background: var(--ok); }
.reflex.go .reflex-txt { color: #fff; font-size: 2.6rem; letter-spacing: .04em; }
.reflex.done { background: var(--surface); cursor: default; }

/* Bietduell */
.bidbox { margin-bottom: 16px; }
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 14px;
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    margin-bottom: 8px;
}
.stepper .icon-btn {
    width: 52px; height: 52px;
    font-size: 1.7rem;
    background: var(--surface-2);
    border-radius: 50%;
}
.bid-val { font-size: 2.4rem; font-weight: 800; min-width: 70px; text-align: center; }

/* Handkarten */
.hand-block {
    background: var(--surface);
    border-radius: var(--r-lg);
    padding: 14px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}
.hand-block p { margin: 0 0 8px; }
.hand-block .deck-row { margin-bottom: 10px; }
.hand-block .deck-row:last-of-type { margin-bottom: 0; }

/* Zwei Wahrheiten, eine Lüge */
.lie-form .lie-row { display: flex; align-items: center; gap: 10px; }
.lie-form .lie-row input[type=text] { flex: 1; }
.lie-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: .64rem;
    font-weight: 800;
    color: var(--muted);
    flex: none;
    cursor: pointer;
}
.lie-mark input { width: 22px; height: 22px; accent-color: var(--danger); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media (min-width: 620px) {
    .tiles { grid-template-columns: repeat(3, 1fr); }
    .tile.wide { grid-column: span 3; }
}
