/* BuddyPlayOnline – Dashboard: dunkle Seitenleisten (links Navigation/Freunde, rechts Übersicht-Infos), heller Mittelbereich.
   Baut auf den Variablen/Komponenten aus site.css auf; Akzentfarbe bleibt Gelb-Orange (--amber). */

/* ---------- Zonen: gleiche Bausteine, zwei Farbwelten ---------- */

.zone-dark {
    --c-bg: var(--ink-850);
    --c-card: rgba(255, 255, 255, .05);
    --c-card-2: rgba(255, 255, 255, .09);
    --c-text: var(--on-dark);
    --c-muted: var(--on-dark-muted);
    --c-line: rgba(255, 255, 255, .1);
    --c-accent: var(--amber);
    --c-input: rgba(255, 255, 255, .06);
    --c-input-line: rgba(255, 255, 255, .18);
    --c-ring: var(--ink-850);
    --c-hover: rgba(255, 255, 255, .07);
    color: var(--c-text);
}
.zone-light {
    --c-bg: var(--cool-100);
    --c-card: #fff;
    --c-card-2: #eef1f7;
    --c-text: var(--on-light);
    --c-muted: var(--on-light-muted);
    --c-line: rgba(21, 26, 38, .1);
    --c-accent: #b86f05;
    --c-input: #fff;
    --c-input-line: rgba(21, 26, 38, .22);
    --c-ring: #fff;
    --c-hover: rgba(21, 26, 38, .05);
    color: var(--c-text);
}

.app-body { overflow-x: hidden; background: var(--cool-100); }
.app-body.no-scroll { overflow: hidden; }
.accent { color: #c47806; }

/* ---------- Layout ---------- */

.app {
    --side-w: 284px;
    --right-w: 340px;
    display: grid;
    grid-template-columns: var(--side-w) minmax(0, 1fr) var(--right-w);
    min-height: 100vh;
    overflow-x: clip;                                               /* kein (auch programmatisches) Seitwärtsscrollen – sonst wandert die Seitenleiste mit */
    background: linear-gradient(90deg, var(--ink-850) var(--side-w), var(--cool-100) var(--side-w));      /* linke Spalte bleibt auch bei Überscroll dunkel */
}
body:not([data-view="home"]) .app { grid-template-columns: var(--side-w) minmax(0, 1fr); }
body:not([data-view="home"]) .right { display: none; }

/* Desktop: Seitenleiste fest am Fenster (scrollt nie mit dem Inhalt); ihre Grid-Spalte bleibt als Platzhalter frei */
.side {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--side-w);
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 14px 14px;
    overflow-y: auto;
    background: var(--c-bg);
    border-right: 1px solid var(--c-line);
    scrollbar-width: thin;
}
.side-head { display: flex; align-items: center; justify-content: space-between; }
.side .side-close { display: none; }
.side-scrim { position: fixed; inset: 0; z-index: 39; background: rgba(5, 8, 15, .6); }
.side-scrim[hidden] { display: none; }

.main-col { grid-column: 2; display: flex; flex-direction: column; min-width: 0; background: var(--c-bg); }
#main { flex: 1; outline: none; }

.right {
    grid-column: 3;
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100vh;
    padding: 18px 16px;
    overflow-y: auto;
    background: var(--c-bg);
    border-left: 1px solid var(--c-line);
    scrollbar-width: thin;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 76px;
    padding: 12px clamp(14px, 2.4vw, 32px);
    background: rgba(232, 237, 245, .88);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.topbar #side-open { display: none !important; }
.page-head { min-width: 0; flex: 1 1 240px; }
.page-head h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; text-wrap: balance; }
.page-head p { margin-top: 2px; color: var(--c-muted); font-size: 15px; }
.page-head p[hidden] { display: none; }
.topbar-tools { display: flex; align-items: center; gap: 8px; flex: none; }

.view { display: none; padding: 6px clamp(14px, 2.4vw, 32px) 40px; }
.view.is-active { display: block; animation: view-in .28s var(--ease); }
@keyframes view-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }

@media (max-width: 1380px) {
    .app { grid-template-columns: var(--side-w) minmax(0, 1fr); }
    .right {
        grid-column: 2;
        position: static;
        height: auto;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        align-items: start;
        padding: 20px clamp(14px, 2.4vw, 32px) 32px;
        border-left: 0;
    }
}
@media (max-width: 920px) {
    .app, body:not([data-view="home"]) .app { grid-template-columns: minmax(0, 1fr); background: var(--cool-100); }
    .main-col { grid-column: 1; }
    .side { width: min(88vw, 340px); transform: translateX(-102%); transition: transform .28s var(--ease), box-shadow .28s; }
    .side.is-open { transform: none; box-shadow: 18px 0 50px rgba(0, 0, 0, .5); }
    .side .side-close { display: grid; }
    .topbar #side-open { display: inline-grid !important; }
    .right { grid-column: 1; }
    .topbar { flex-wrap: wrap; gap: 10px; }
    .page-head { flex: 1 1 0; }
    .search { order: 3; flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .view.is-active { animation: none; } .side { transition: none; } }

/* ---------- Basiskomponenten ---------- */

.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; gap: 8px; }
.btn--xs { min-height: 30px; padding: 0 12px; font-size: 12.5px; gap: 6px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn--icon { padding: 0; width: 38px; flex: none; }
.btn--danger { background: var(--coral); color: #2a0d08; }
.btn--danger-soft { color: #c0392b; border-color: rgba(192, 57, 43, .35); background: rgba(192, 57, 43, .06); }
.btn--danger-soft:hover { background: rgba(192, 57, 43, .14); border-color: rgba(192, 57, 43, .6); }
.zone-dark .btn--danger-soft { color: #ff9d90; border-color: rgba(255, 157, 144, .4); background: rgba(255, 157, 144, .08); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn--primary { box-shadow: 0 6px 16px -8px rgba(237, 169, 58, .9); }
.zone-light .btn--ghost { color: var(--c-text); border-color: var(--c-input-line); background: #fff; }
.zone-light .btn--ghost:hover { background: var(--c-card-2); border-color: rgba(21, 26, 38, .4); }
.btn--ghost-dark { color: var(--on-dark); border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .05); }
.btn--ghost-dark:hover { background: rgba(255, 255, 255, .14); }
.push { margin-left: auto; }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--c-muted);
    cursor: pointer;
    position: relative;
    transition: background-color .2s, color .2s;
}
.icon-btn:hover { background: var(--c-hover); color: var(--c-text); }
.icon-btn--sm { width: 30px; height: 30px; border-radius: 9px; }
.icon-btn--sm .icon { width: 16px; height: 16px; }
.badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--coral); color: #2a0d08; font-size: 11px; font-weight: 800; display: grid; place-items: center; }

.input, .select {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border: 1.5px solid var(--c-input-line);
    border-radius: 12px;
    background: var(--c-input);
    color: var(--c-text);
    transition: border-color .2s, background-color .2s;
}
.select { width: auto; padding-right: 8px; cursor: pointer; }
.select--dark { min-height: 34px; font-size: 13px; border-radius: 10px; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: var(--on-dark); }
.select--dark option { color: #151a26; }
.input::placeholder { color: color-mix(in srgb, var(--c-text) 45%, transparent); }
.input:focus, .select:focus { border-color: var(--amber); outline: none; }
.input--pin { text-align: center; font-size: 26px; letter-spacing: .5em; padding-left: .5em; min-height: 54px; }
.input--code { text-transform: uppercase; letter-spacing: .25em; font-weight: 800; text-align: center; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field-label { font-size: 13px; font-weight: 700; color: var(--c-muted); }
.field-hint { font-size: 12px; color: var(--c-muted); }
.form-error { margin-top: 4px; padding: 10px 12px; border-radius: 10px; background: rgba(240, 128, 111, .16); color: #b3392a; font-size: 14px; }
.form-error[hidden] { display: none; }

.tag { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--c-card-2); color: var(--c-muted); font-size: 10.5px; font-style: normal; font-weight: 700; letter-spacing: .02em; }
.verified { display: inline-flex; margin-left: 6px; color: var(--teal); vertical-align: -3px; }
.verified .icon { width: 15px; height: 15px; }
.muted { color: var(--c-muted); }

.avatar {
    position: relative;
    display: inline-grid;
    flex: none;
    place-items: center;
    width: var(--s, 36px);
    height: var(--s, 36px);
    border-radius: 50%;
    background: var(--bg, #59627a);
    color: #1a1205;
    font-weight: 800;
    font-size: calc(var(--s, 36px) * .42);
}
.avatar--icon { color: inherit; font-weight: 400; }
.avatar--icon > span { font-size: calc(var(--s, 36px) * .56); line-height: 1; font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; }
.avatar .dot { position: absolute; right: -2px; bottom: -2px; width: max(9px, 28%); aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--c-ring); background: #59627a; }
.dot--on { background: var(--teal) !important; }
.dot--party { background: var(--indigo) !important; }
.dot--game { background: var(--amber) !important; }
.dot--off { background: #8b93a8 !important; }

.card {
    padding: clamp(16px, 2vw, 24px);
    margin-bottom: 18px;
    border: 1px solid var(--c-line);
    border-radius: 20px;
    background: var(--c-card);
    box-shadow: 0 1px 2px rgba(21, 26, 38, .05), 0 14px 28px -18px rgba(21, 26, 38, .18);
}
.card-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 16px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 6px; }
.card-title .icon { color: var(--c-accent); width: 20px; height: 20px; }
.card-sub { color: var(--c-muted); font-size: 14px; margin-bottom: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; margin-bottom: 18px; }
.grid2 > .card { margin-bottom: 0; }
.row { display: flex; gap: 10px; align-items: stretch; }
.row .input { flex: 1; }
.empty-box { padding: 28px; text-align: center; color: var(--c-muted); border: 1px dashed var(--c-line); border-radius: 16px; }
.hint { margin-top: 10px; color: var(--c-muted); font-size: 13px; }
.sub { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); margin: 14px 0 8px; }

.block { margin-bottom: 26px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.block-head h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.block-head h3 .icon { color: var(--c-accent); }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--c-accent); font-weight: 700; font-size: 14px; text-decoration: none; }
.more:hover { text-decoration: underline; }
.more .icon { width: 1em; height: 1em; }

/* ---------- Linke Seitenleiste ---------- */

.acct { display: grid; gap: 10px; }
.acct-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; }
.acct-form .input { min-height: 38px; }
.acct-guest { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--c-card); }
.acct-guest-text { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.acct-guest-text small { color: var(--c-muted); font-size: 11.5px; }
.acct-guest-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-hint { color: var(--c-muted); font-size: 12px; line-height: 1.45; }
.acct-user { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--c-card); color: inherit; text-decoration: none; transition: background-color .2s; }
.acct-user:hover { background: var(--c-card-2); }
.acct-user-text { display: grid; min-width: 0; line-height: 1.3; }
.acct-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.acct-user small { color: var(--c-muted); font-size: 12px; }

.snav { display: grid; gap: 3px; }
.snav a {
    display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px;
    border-radius: 12px; color: var(--c-muted); font-weight: 700; text-decoration: none;
    transition: background-color .2s, color .2s;
}
.snav a:hover { background: var(--c-hover); color: #fff; }
.snav a[aria-current] { background: rgba(237, 169, 58, .18); color: var(--amber); }
.snav a span { flex: 1; }
.nav-badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: rgba(237, 169, 58, .22); color: var(--amber); font-size: 12px; display: grid; place-items: center; }
.nav-badge[hidden] { display: none; }

.side-sec { display: grid; gap: 8px; align-content: start; }
.side-sec--grow { flex: 1 0 auto; min-height: 120px; }      /* schrumpft nie unter den Inhalt – die Seitenleiste scrollt stattdessen */
.side-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.side-title .icon { width: 16px; height: 16px; color: var(--amber); }
.side-title span { margin-right: auto; }
.side-title small { margin-right: 4px; padding: 1px 8px; border-radius: 999px; background: var(--c-card-2); font-size: 11px; letter-spacing: 0; text-transform: none; }
.side-title span + small { margin-left: -4px; }
.side-title .icon-btn { margin-left: auto; }
.side-empty { color: var(--c-muted); font-size: 13px; line-height: 1.5; list-style: none; }

.plist { display: grid; gap: 2px; list-style: none; }
.prow { display: flex; align-items: center; gap: 4px; border-radius: 12px; }
.prow:hover { background: var(--c-hover); }
.prow.is-off .prow-text b { color: var(--c-muted); font-weight: 600; }
.prow-main { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; padding: 5px 6px; color: inherit; text-decoration: none; }
.prow-text { display: grid; min-width: 0; line-height: 1.25; }
.prow-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.prow-text small { color: var(--c-muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow-actions { display: flex; gap: 2px; padding-right: 4px; opacity: 0; transition: opacity .15s; }
.prow:hover .prow-actions, .prow:focus-within .prow-actions { opacity: 1; }
@media (hover: none) { .prow-actions { opacity: 1; } }
.side .more, .right .more { margin-top: 4px; color: var(--amber); }

.req { display: grid; gap: 6px; padding: 8px 10px; border-radius: 12px; background: rgba(237, 169, 58, .12); }
.req-title { font-weight: 800; color: var(--amber); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; }
.req-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 14px; }
.req-row a { color: inherit; text-decoration: none; }
.req-actions { display: inline-flex; gap: 6px; }

.side-stats ul { display: grid; gap: 6px; list-style: none; padding: 12px; border-radius: 14px; background: var(--c-card); }
.side-stats li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--c-muted); }
.side-stats li .icon { width: 17px; height: 17px; color: var(--amber); flex: none; }
.side-stats li b { color: var(--on-dark); font-size: 15px; font-variant-numeric: tabular-nums; min-width: 28px; }
.side-foot { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--c-line); }
.side-foot .lang { justify-self: start; }
.side-foot .btn { width: 100%; }

/* ---------- Kopfleiste: Suche, Glocke, Konto-Menü ---------- */

.search { position: relative; display: flex; align-items: center; flex: 0 1 380px; min-width: 200px; }
.search > .icon { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--c-muted); pointer-events: none; }
.search input { width: 100%; min-height: 46px; padding: 0 16px 0 42px; border: 1.5px solid var(--c-line); border-radius: 14px; background: #fff; color: var(--c-text); box-shadow: 0 1px 2px rgba(21, 26, 38, .05); }
.search input:focus { border-color: var(--amber); outline: none; }
.search-pop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; max-height: min(70vh, 460px); overflow-y: auto; padding: 8px; border: 1px solid var(--c-line); border-radius: 16px; background: #fff; box-shadow: 0 24px 50px -16px rgba(21, 26, 38, .35); }
.search-pop[hidden] { display: none; }
.sres h4 { margin: 8px 10px 4px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.sitem { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.sitem:hover, .sitem:focus-visible { background: var(--c-card-2); }
.sitem small { margin-left: auto; color: var(--c-muted); font-size: 12px; }
.sthumb { display: grid; place-items: center; width: 36px; height: 26px; flex: none; overflow: hidden; border-radius: 6px; background: var(--c-card-2); color: var(--c-muted); }
.sthumb img { width: 100%; height: 100%; object-fit: cover; }
.sthumb .icon { width: 15px; height: 15px; }

.bell { color: var(--c-muted); background: #fff; border: 1px solid var(--c-line); width: 44px; height: 44px; border-radius: 14px; }
.bell .icon { width: 21px; height: 21px; }
.account { position: relative; }
.avatar-btn { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 3px; border: 1px solid var(--c-line); border-radius: 999px; background: #fff; color: var(--c-muted); cursor: pointer; }
.avatar-btn:hover { border-color: rgba(21, 26, 38, .3); }
.avatar-btn .chev { width: 16px; height: 16px; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; min-width: 220px; padding: 6px; border: 1px solid var(--c-line); border-radius: 16px; background: #fff; box-shadow: 0 24px 50px -16px rgba(21, 26, 38, .35); }
.menu-head { display: grid; padding: 10px 12px; border-bottom: 1px solid var(--c-line); margin-bottom: 4px; }
.menu-head small { color: var(--c-muted); }
.mitem { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.mitem:hover { background: var(--c-card-2); }
.mitem .icon { width: 18px; height: 18px; color: var(--c-muted); }

/* ---------- Notizen & Dialoge ---------- */

.notes { display: grid; gap: 8px; list-style: none; }
.note { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--c-card-2); }
.note.is-new { background: rgba(237, 169, 58, .16); }
.note-text { display: grid; gap: 2px; }
.note-text small { color: var(--c-muted); font-size: 12px; }
.note-state { color: var(--c-muted); font-size: 12.5px; font-weight: 700; }

.modal { width: min(440px, calc(100vw - 24px)); max-height: calc(100vh - 24px); margin: auto; padding: 0; border: 1px solid var(--c-line); border-radius: 22px; background: #fff; color: var(--c-text); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.modal--wide { width: min(760px, calc(100vw - 24px)); }
.modal::backdrop { background: rgba(5, 8, 15, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .22s var(--ease); }
@keyframes modal-in { from { opacity: 0; translate: 0 14px; scale: .98; } to { opacity: 1; translate: 0 0; scale: 1; } }
.modal-card { display: grid; max-height: calc(100vh - 24px); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 4px 24px; }
.modal-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.modal-sub { margin-top: 4px; color: var(--c-muted); font-size: 14px; }
.modal-body { padding: 14px 24px 8px; overflow-y: auto; }
.modal-text { color: var(--c-muted); line-height: 1.5; }
.modal-note { margin: 4px 0 14px; color: var(--c-muted); font-size: 12.5px; line-height: 1.5; }
.modal-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 12px 24px 22px; }

#toasts { position: fixed; z-index: 400; right: 16px; bottom: 16px; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 14px; background: var(--ink-800); color: var(--on-dark); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 12px 34px rgba(0, 0, 0, .5); font-weight: 600; font-size: 14px; animation: modal-in .22s var(--ease); transition: opacity .4s; pointer-events: auto; }
.toast--ok { border-color: rgba(69, 184, 158, .7); }
.toast--error { border-color: rgba(240, 128, 111, .8); }
.toast.is-out { opacity: 0; }

.boot { display: grid; place-items: center; min-height: 40vh; }
.boot span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--c-card-2); border-top-color: var(--amber); animation: spin .8s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

/* ---------- Übersicht: Party-Karte ---------- */

.vis-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.vis { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--c-input-line); border-radius: 14px; background: transparent; color: var(--c-muted); text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.vis .icon { width: 22px; height: 22px; flex: none; }
.vis span { display: grid; line-height: 1.25; }
.vis b { color: var(--c-text); }
.vis small { font-size: 12px; }
.vis:hover { border-color: rgba(21, 26, 38, .45); }
.vis.is-on { border-color: var(--amber); background: rgba(237, 169, 58, .14); color: var(--c-accent); }
@media (max-width: 520px) { .vis-row { grid-template-columns: 1fr; } }

.party-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.party-head .card-title { margin: 0; font-size: 17px; }
.party-vis { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--c-card-2); color: var(--c-muted); font-size: 11.5px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.party-vis .icon { width: 13px !important; height: 13px !important; color: var(--c-muted) !important; }
.party-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card.party { container: party / inline-size; }
.party-body { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 16px 22px; align-items: start; }
@container party (max-width: 520px) { .party-body { grid-template-columns: minmax(0, 1fr); } }

.mchips { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; }
.mchip { display: grid; justify-items: center; align-content: start; gap: 4px; width: 100px; padding: 8px 4px 6px; border-radius: 14px; transition: background-color .2s; }
.mchip:hover { background: var(--c-hover); }
.mchip.is-off { opacity: .6; }
.mchip-main { display: grid; justify-items: center; gap: 4px; max-width: 100%; color: inherit; text-decoration: none; }
a.mchip-main:hover .mchip-name { text-decoration: underline; }
.mchip-av { position: relative; display: inline-grid; padding: 3px; border-radius: 50%; border: 2.5px solid var(--c-line); }
.mchip .avatar .dot { border-color: #fff; }
.crown { position: absolute; top: -12px; left: 50%; translate: -50% 0; display: inline-grid; color: var(--amber); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.crown .icon { width: 20px; height: 20px; fill: currentColor; }
.mchip-name { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.mchip-state { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c-muted); font-size: 11.5px; }
.mchip-ctl { display: flex; justify-content: center; gap: 5px; }
.mchip-ctl .btn { width: 30px; min-height: 30px; padding: 0; }

.party-side { display: grid; gap: 10px; }
.slots { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.slots b { font-size: 13px; color: var(--c-muted); font-weight: 700; }
.dots { display: flex; flex-wrap: wrap; gap: 3px; }
.dot-slot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-card-2); border: 1px solid var(--c-line); }
.dot-slot.is-on { background: var(--amber); border-color: var(--amber); }
.party-code { display: flex; align-items: center; gap: 6px; }
.codebox { display: inline-flex; flex: 1; align-items: center; gap: 8px; min-width: 0; padding: 4px 10px; border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-card-2); color: var(--c-muted); cursor: pointer; }
.codebox:hover { border-color: var(--amber); }
.codebox small { font-size: 11px; }
.codebox b { margin-right: auto; color: var(--c-text); font-size: 14px; letter-spacing: .12em; }
.codebox .icon { width: 14px; height: 14px; }
.party-go { display: grid; gap: 8px; }
.party-go .btn { width: 100%; justify-content: center; }
.go-hint { color: var(--c-muted); font-size: 12px; text-align: center; }

.code { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--c-card-2); color: var(--c-muted); }
.code b { color: var(--c-accent); font-size: 17px; letter-spacing: .18em; }
.share { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.share .input { flex: 1; }

.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--c-card-2); }
.banner.is-live { background: rgba(69, 184, 158, .14); border: 1px solid rgba(69, 184, 158, .45); }
.banner-text { display: grid; }
.banner-text small { color: var(--c-muted); }
.banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.last { margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--c-card-2); }
.last h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.last h4 .icon { color: var(--c-accent); }
.last-rank { display: grid; gap: 4px; margin: 8px 0 0 20px; }
.last-rank li { display: list-item; }
.last-rank li span { margin-right: 10px; }
.last-rank small { color: var(--c-muted); }

/* ---------- Spielkarten ---------- */

.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 16px; }
.gcards--pick { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; margin-bottom: 8px; }
.gcard { display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 10px; border: 2px solid transparent; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(21, 26, 38, .06), 0 14px 28px -18px rgba(21, 26, 38, .25); transition: border-color .2s, transform .2s, box-shadow .2s; }
.gcard[role="button"] { cursor: pointer; }
.gcard[role="button"]:hover { transform: translateY(-3px); }
.gcard.is-selected { border-color: var(--amber); }
.gcard.is-off { opacity: .55; }
.gcard-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; background: var(--ink-800); }
.gcard-cover img { width: 100%; height: 100%; object-fit: cover; }
.gcard-off { position: absolute; inset: auto 8px 8px auto; padding: 2px 10px; border-radius: 999px; background: rgba(15, 20, 32, .9); color: var(--coral); font-size: 11px; font-weight: 800; }
.gcard-badge { position: absolute; top: 8px; left: 8px; padding: 3px 10px; border-radius: 999px; background: var(--amber); color: #231603; font-size: 11px; font-weight: 800; }
.gcard-body { display: grid; gap: 3px; padding: 0 4px; }
.gcard-body b { font-size: 17px; }
.gcard-body small { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; color: var(--c-muted); font-size: 12.5px; }
.gcard-body small .icon { width: 14px; height: 14px; }
.gcard .btn { width: 100%; }
.gcard-note { padding: 0 4px 4px; color: var(--c-accent); font-weight: 700; }

/* ---------- Aktive Lobbys: Partys + Spiel-Lobbys in einer Liste ---------- */

.ltable { container: ltable / inline-size; border: 1px solid var(--c-line); border-radius: 18px; background: #fff; overflow: hidden; box-shadow: 0 1px 2px rgba(21, 26, 38, .05); }
.lhead, .lrow { display: grid; grid-template-columns: minmax(200px, 2.2fr) 84px minmax(110px, 1.2fr) minmax(110px, 1fr) 104px 112px; align-items: center; gap: 12px; padding: 0 16px; }
.lhead { min-height: 40px; background: var(--c-card-2); color: var(--c-muted); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.llist { list-style: none; }
.lrow { min-height: 66px; border-top: 1px solid var(--c-line); }
.lrow:first-child { border-top: 0; }
.lrow:hover { background: var(--c-hover); }
.lcell { min-width: 0; display: flex; align-items: center; gap: 8px; }
.lcell--game { gap: 12px; }
.lthumb { display: grid; place-items: center; width: 54px; height: 40px; flex: none; overflow: hidden; border-radius: 10px; background: var(--c-card-2); color: var(--c-muted); }
.lthumb img { width: 100%; height: 100%; object-fit: cover; }
.lthumb.is-empty .icon { width: 20px; height: 20px; }
.ltext { display: grid; min-width: 0; line-height: 1.3; }
.ltext b { display: inline-flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ltext small { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; color: var(--c-muted); font-size: 12px; }
.ltype { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; background: var(--c-card-2); font-weight: 700; }
.lrow--party .ltype { background: rgba(237, 169, 58, .2); color: #8f5406; }
.ltype .icon { width: 12px; height: 12px; }
.lock { display: inline-flex; color: var(--c-muted); }
.lock .icon { width: 13px; height: 13px; }
.lcell--players { color: var(--c-muted); }
.lcell--players b { color: var(--c-text); }
.who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: inherit; font-weight: 600; text-decoration: none; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.who:hover span { text-decoration: underline; }
.avstack { display: inline-flex; align-items: center; }
.avstack .avatar { margin-left: -8px; border: 2px solid #fff; }
.avstack .avatar:first-child { margin-left: 0; }
.avstack em { margin-left: 6px; color: var(--c-muted); font-style: normal; font-size: 12px; font-weight: 700; }
.pill { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.pill--wait { background: rgba(69, 184, 158, .18); color: #1f7a65; }
.pill--running { background: rgba(237, 169, 58, .22); color: #8f5406; }
.lcell--action { justify-content: flex-end; }
/* kompakte Darstellung nach Breite der Tabelle (nicht des Fensters) – so passt sie auch neben den Seitenleisten */
@container ltable (max-width: 820px) {
    .lhead { display: none; }
    .lrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 14px; }
    .lcell--game { flex: 1 1 100%; }
    .lcell--action { margin-left: auto; }
    .lcell[data-label]::before { content: attr(data-label) ":"; color: var(--c-muted); font-size: 11.5px; font-weight: 700; margin-right: 2px; }
}

/* ---------- Lobby-Seite / Filter ---------- */

.filters { display: grid; gap: 10px; margin-bottom: 14px; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.filter-row .tb-label { min-width: 74px; color: var(--c-muted); }
.zone-light .chip-btn { min-height: 34px; padding: 0 14px; border: 1.5px solid var(--c-input-line); border-radius: 999px; background: #fff; color: var(--c-text); font-size: 13.5px; font-weight: 700; cursor: pointer; }
.zone-light .chip-btn:hover { border-color: rgba(21, 26, 38, .5); transform: none; }
.zone-light .chip-btn.is-on, .zone-light .chip-btn[aria-pressed="true"] { border-color: var(--amber); background: rgba(237, 169, 58, .2); color: #7a4605; }

/* ---------- Freunde-Seite ---------- */

.flist { display: grid; gap: 4px; list-style: none; }
.frow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 10px; border-radius: 14px; }
.frow:hover { background: var(--c-hover); }
.frow.is-off .frow-text b { color: var(--c-muted); }
.frow-main { display: flex; align-items: center; gap: 14px; min-width: 0; color: inherit; text-decoration: none; }
.frow-text { display: grid; line-height: 1.3; min-width: 0; }
.frow-text small { color: var(--c-muted); font-size: 13px; }
.frow-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reqlist { display: grid; gap: 8px; list-style: none; }
.reqlist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---------- Rechte Seitenleiste ---------- */

.ablock { display: grid; gap: 10px; align-content: start; padding: 16px; border: 1px solid var(--c-line); border-radius: 18px; background: var(--c-card); }
.ablock-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ablock-head h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; }
.ablock-head h3 .icon { color: var(--amber); width: 20px; height: 20px; }
.online-count { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-size: 12.5px; font-weight: 700; }
.dot-inline { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--teal); vertical-align: 1px; }
.alist { display: grid; gap: 4px; list-style: none; }
.arow { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 12px; }
.arow:hover { background: var(--c-hover); }
.arow-main { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.arow-text { display: grid; min-width: 0; line-height: 1.3; }
.arow-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.arow-text small { color: var(--c-muted); font-size: 12px; }
.arow-text .act { font-size: 13.5px; line-height: 1.35; }
.rankno { width: 22px; text-align: center; color: var(--c-muted); font-weight: 800; font-variant-numeric: tabular-nums; }
.rankno.is-top { color: var(--amber); }
.score { display: inline-flex; align-items: center; gap: 4px; color: var(--amber); font-weight: 800; font-size: 13px; white-space: nowrap; }
.score .icon { width: 14px; height: 14px; }
.alist--act .arow { align-items: flex-start; }

/* ---------- Ranglisten ---------- */

.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; margin-top: 12px; }
.stat-card { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--c-card-2); align-content: start; }
.stat-card header { display: grid; }
.stat-card header small { color: var(--c-muted); font-size: 12px; }
.stat-card dl { display: flex; gap: 24px; }
.stat-card dt { color: var(--c-muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.stat-card dd { font-size: 22px; font-weight: 800; }
.stat-top { font-size: 13px; color: var(--c-muted); }
.stat-top .icon { width: 14px; height: 14px; color: var(--c-accent); vertical-align: -2px; }
.stat-card .btn { justify-self: start; }

.table-wrap { overflow-x: auto; margin-top: 8px; }
table.rank { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.rank th { padding: 8px 10px; text-align: left; color: var(--c-muted); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
table.rank td { padding: 9px 10px; border-top: 1px solid var(--c-line); }
table.rank .num { text-align: right; font-variant-numeric: tabular-nums; }
table.rank .rk { width: 44px; font-weight: 800; color: var(--c-muted); font-variant-numeric: tabular-nums; }
table.rank tbody tr:nth-child(-n+3) .rk { color: #c47806; }
table.rank tr.is-me { background: rgba(237, 169, 58, .16); }
@media (max-width: 760px) { .hide-m { display: none; } }
@media (max-width: 520px) { .hide-s { display: none; } }

/* ---------- Profil ---------- */

.profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 8px 0 20px; }
.profile-head > div { flex: 1; min-width: 200px; }
.profile-head > .profile-friend { flex: 0 0 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fstate { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; background: var(--c-card-2); color: var(--c-muted); font-size: 13.5px; font-weight: 700; }
.fstate .icon { width: 16px; height: 16px; color: var(--c-accent); }
.profile-head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.03em; }
.profile-head p { color: var(--c-muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 12px; }
.tile { display: grid; gap: 2px; padding: 14px; border-radius: 14px; background: var(--c-card-2); }
.tile b { font-size: 24px; font-weight: 800; }
.tile small { color: var(--c-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
/* Meistgespielte Spiele: je Spiel eine Karte (Kopf, Kennzahlen, Bestleistungen als Tags, Modi mit Siegquoten-Balken) – nichts läuft über den Rand */
.pgames { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; margin-top: 12px; }
.pgame { display: grid; gap: 14px; align-content: start; min-width: 0; padding: 16px; border-radius: 18px; background: var(--c-card-2); }
.pgame > * { min-width: 0; }
.pgame header { display: flex; align-items: center; gap: 12px; }
.pgame header img { flex: none; width: 64px; height: 44px; object-fit: cover; border-radius: 8px; }
.pgame header div { display: grid; min-width: 0; line-height: 1.25; }
.pgame header b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
.pgame header small { color: var(--c-muted); font-size: 12px; }
.pstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); gap: 8px; }
.pstats .tile { padding: 9px 10px; border-radius: 12px; background: var(--c-card); }
.pstats .tile b { font-size: 19px; line-height: 1.1; }
.pstats .tile small { font-size: 10.5px; }
.podium { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--c-muted); font-size: 13px; font-weight: 700; }
.bests ul, .modes ul { display: grid; gap: 8px; margin-top: 8px; list-style: none; }
.best { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--c-card); }
.best-main { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.best-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 14.5px; }
.best-score { flex: none; font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--c-accent); }
.cfgtags { display: flex; flex-wrap: wrap; gap: 5px; }
.cfgtag { padding: 2px 9px; border-radius: 999px; background: var(--c-card-2); border: 1px solid var(--c-line); color: var(--c-muted); font-size: 11.5px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.modes summary { cursor: pointer; color: var(--c-muted); font-size: 13px; font-weight: 700; }
.mode { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 8px 12px; border-radius: 12px; background: var(--c-card); font-size: 14px; }
.mode-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.mode-n { color: var(--c-muted); text-align: right; white-space: nowrap; }
.wbar { position: relative; grid-column: 1 / -1; height: 14px; border-radius: 999px; background: var(--c-card-2); overflow: hidden; }
.wbar i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, var(--teal), #7fd6bd); }
.wbar em { position: absolute; right: 8px; top: 50%; translate: 0 -50%; font-style: normal; font-size: 10px; font-weight: 800; color: var(--c-text); }
.recent { display: grid; gap: 6px; list-style: none; margin-top: 8px; }
.recent li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 10px 12px; border-radius: 12px; background: var(--c-card-2); }
.recent small { color: var(--c-muted); }
.recent .when { margin-left: auto; }
.res { padding: 2px 10px; border-radius: 999px; background: var(--c-card); font-size: 12px; font-weight: 800; }
.res--win { background: rgba(69, 184, 158, .22); color: #1f7a65; }
.res--loss { background: rgba(240, 128, 111, .2); color: #b3392a; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--c-line); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 30px; height: 30px; border: 3px solid transparent; border-radius: 50%; background: var(--c); cursor: pointer; }
.swatch.is-on { border-color: var(--c-text); }

/* Eigene Einstellungen (Profil, ganz oben): Vorschau + Farbe + Profilbild-Auswahl + PIN */
.card.settings { margin-bottom: 18px; }
.set-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 28px; align-items: start; margin-top: 4px; }
.set-preview { display: grid; justify-items: center; gap: 8px; padding-top: 10px; }
.set-preview b { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-fields { min-width: 0; }
.setting--col { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; align-items: start; gap: 10px; }
@media (max-width: 640px) { .set-grid { grid-template-columns: minmax(0, 1fr); } .set-preview { grid-auto-flow: column; justify-content: start; align-items: center; } }

.ipicker { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.ipicker-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ipicker-tab { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-card); color: var(--c-muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.ipicker-tab:hover { border-color: rgba(21, 26, 38, .3); }
.ipicker-tab.is-on { background: var(--c-text); border-color: var(--c-text); color: #fff; }
.ipicker-sample { font-size: 16px; line-height: 1; font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; }
.ipicker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 8px; max-width: 372px; }
.ipick { display: grid; place-items: center; aspect-ratio: 1; padding: 0; border: 3px solid transparent; border-radius: 50%; background: var(--bg, #59627a); color: #1a1205; font: inherit; font-size: 22px; font-weight: 800; line-height: 1; cursor: pointer; transition: transform .12s; }
.ipick > span { font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; }
.ipick:first-child > span { font-family: inherit; }
.ipick:hover { transform: scale(1.1); }
.ipick.is-on { border-color: var(--c-text); box-shadow: 0 0 0 2px #fff inset; }

/* ---------- Spiele-Ansicht (Katalog) ---------- */

#v-games.theme-games { padding-top: 0; --bg: var(--cool-100); }
#v-games .wrap { width: auto; margin: 0; padding: 0; }
#v-games .cat-head { margin: 0 auto clamp(18px, 2.4vw, 28px); }
#v-games .cat-head h2 { font-size: clamp(26px, 3vw, 38px); }
#v-games .btn--random { display: inline-flex; margin-top: 16px; color: var(--c-text); border-color: var(--c-input-line); background: #fff; }
#apps.theme-apps { margin-top: clamp(24px, 3vw, 40px); padding: clamp(20px, 3vw, 36px) 0 clamp(8px, 2vw, 20px); border-radius: 26px; background: var(--paper-100); color: var(--on-light); }
#apps .apps-row { padding-bottom: 8px; }
.game-support { margin-top: clamp(28px, 4vw, 48px); padding-top: 28px; border-top: 1px solid var(--c-line); }
.game-support .support h2 { font-size: clamp(22px, 2.6vw, 30px); }
.game-support .support p { color: var(--c-muted); }
.game-support .support .btn { margin-top: 20px; min-height: 46px; font-size: 15px; }
.game-support .footer-bar { display: flex; justify-content: center; padding-top: 16px; color: var(--c-muted); font-size: 13px; }
.bp-badge { position: absolute; left: 10px; bottom: 10px; z-index: 3; padding: 3px 9px; border-radius: 999px; background: rgba(15, 20, 32, .88); color: var(--amber); font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.btn--donate.btn--sm { min-height: 40px; }
