/* ==============================================================
   dashboard.css - Launcher/Dashboard layout (rail, player header,
   top-row, coverflow carousel, crew, daily-roll, ticker) + library cards.
   Uses tokens/fonts from style.css. Only index.html + library.html load it.
   100vh lock scoped to body.hub-dashboard (library scrolls normally).
   ============================================================== */

/* ══════════════════════════════════════════════════════════════
   ShufflGames — Launcher-Prototyp (App-Shell im Arcade-Skin)
   Karten + Dodekaeder + Favoriten 1:1 aus dem echten Hub portiert.
   ══════════════════════════════════════════════════════════════ */
:root {
    --stage-1: #2a1330; --stage-2: #160a1c; --panel: #1f0f24; --ink: #190312;
    --cream: #fff3df; --gold: #ffd23f; --gold-deep: #d99500; --red: #ff3b5c;
    --qwizzle: #9b59f5; --impostle: #ff3355; --matchle: #f5a442;
    --guessle: #00d4ff; --fumble: #00e5a0; --sketchle: #ffea00;
    --border: rgba(255, 243, 223, 0.10); --border-bright: rgba(255, 210, 63, 0.45);
    --text-main: var(--cream); --text-muted: rgba(255, 243, 223, 0.62); --text-dim: rgba(255, 243, 223, 0.34);
    --radius-card: 22px; --radius-pill: 100px;
    --font-marquee: 'Bungee', system-ui, sans-serif; --font-show: 'Lilita One', system-ui, sans-serif;
    --font-display: 'Lilita One', system-ui, sans-serif; --font-body: 'DM Sans', sans-serif;
    --rail-w: 82px;
}
* , *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
html { height: 100%; scrollbar-width: none; } html::-webkit-scrollbar { display: none; }
body.hub-dashboard { height: 100%; min-height: 100%; overflow: hidden; }
body.dodec-open { overflow: hidden; }

.app { display: flex; height: 100%; overflow: hidden; }

/* ══ NAV-RAIL ══ */
.rail {
    position: sticky; top: 0; align-self: flex-start; height: 100%; width: var(--rail-w); flex-shrink: 0;
    background: var(--panel); border-right: 3px solid var(--ink); box-shadow: 6px 0 0 0 rgba(0,0,0,.25);
    display: flex; flex-direction: column; align-items: center; padding: 1.1rem 0 1.2rem; gap: .5rem; z-index: 40;
}
.rail-brand { font-family: var(--font-marquee); font-size: 1.5rem; line-height: 1; color: var(--gold); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink); margin-bottom: .9rem; user-select: none; }
.rail-sep { width: 40%; height: 2px; background: var(--border); border-radius: 2px; margin: .35rem 0; }
.rail-btn { position: relative; width: 50px; height: 50px; border-radius: 15px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); background: transparent; border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, color .12s, background .12s; }
.rail-btn svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rail-btn:hover { color: var(--cream); background: rgba(255,243,223,.06); transform: translateY(-2px); }
.rail-btn.active { color: var(--ink); background: var(--gold); border-color: var(--ink); box-shadow: 0 4px 0 0 var(--ink); }
.rail-btn .tip { position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%) scale(.9); background: var(--cream); color: var(--ink); font-family: var(--font-show); font-size: .72rem; padding: .25rem .6rem; border-radius: 8px; white-space: nowrap; border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink); opacity: 0; pointer-events: none; transition: opacity .12s, transform .12s; z-index: 50; }
.rail-btn:hover .tip { opacity: 1; transform: translateY(-50%) scale(1); }
.rail-spacer { flex: 1; }

/* ══ STAGE ══ */
.stage { height: 100%; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.dash { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 0.8rem clamp(1rem, 3vw, 2.4rem) 1.2rem; max-width: 100%; width: 100%; margin: 0 auto; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.dash::-webkit-scrollbar { display: none; }
.topbar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem clamp(1rem, 3vw, 2.4rem); max-width: 100%; width: 100%; margin: 0 auto; }
.greet { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.greet-av { width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--qwizzle), var(--guessle)); border: 3px solid var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; font-family: var(--font-show); font-size: 1.3rem; color: var(--cream); overflow: hidden; }
.greet-name { font-family: var(--font-marquee); font-size: 1.05rem; letter-spacing: .01em; }
.greet-name b { color: var(--gold); }
.xp { display: flex; align-items: center; gap: .5rem; margin-top: .35rem; }
.xp-track { width: 190px; max-width: 40vw; height: 11px; border-radius: 100px; background: var(--stage-2); border: 2px solid var(--ink); overflow: hidden; box-shadow: inset 0 2px 3px rgba(0,0,0,.5); }
.xp-fill { height: 100%; width: 0; border-radius: 100px; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); transition: width 1.4s cubic-bezier(.16,1,.3,1); }
.xp-label { font-family: var(--font-show); font-size: .72rem; color: var(--text-muted); }
.xp-label b { color: var(--cream); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-show); font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; padding: .4rem .75rem; border-radius: 100px; border: 2px solid var(--ink); box-shadow: 0 2px 0 0 var(--ink); }
.pill-live { background: var(--fumble); color: var(--ink); }
.pill-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: blink 1.3s steps(1) infinite; }
.pill-pass { background: var(--gold); color: var(--ink); }
.icon-btn { width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--panel); color: var(--text-muted); border: 2px solid var(--ink); box-shadow: 0 3px 0 0 var(--ink); cursor: pointer; transition: transform .12s, color .12s; }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { color: var(--cream); transform: translateY(-2px); }
.icon-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 0 var(--ink); }
#langBtn { background: var(--stage-1); }
@keyframes blink { 0%,60%{opacity:1} 61%,100%{opacity:.25} }

.sec-head { display: flex; align-items: center; gap: .8rem; margin: 1rem 0 0.8rem; }
.sec-title { font-family: var(--font-marquee); font-size: 1.02rem; letter-spacing: .02em; color: var(--cream); display: inline-flex; align-items: center; gap: .55rem; }
.sec-title .ic { color: var(--gold); display: inline-flex; }
.sec-title .ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.sec-line { flex: 1; height: 3px; background: linear-gradient(90deg, var(--border), transparent); border-radius: 3px; }

.card { position: relative; background: var(--panel); border: 3px solid var(--ink); border-radius: var(--radius-card); box-shadow: 0 9px 0 0 var(--ink), 0 20px 28px rgba(0,0,0,.42); }

/* ══ Top Row (Favoriten & Wieder einsteigen nebeneinander) ══ */
.top-row {
    display: grid;
    grid-template-columns: 1.68fr 1fr;
    gap: 1.1rem;
    align-items: stretch;
    margin-bottom: 1rem;
}
@media (max-width: 920px) {
    .top-row {
        grid-template-columns: 1fr;
    }
    .fav-promo {
        display: none !important;
    }
}
.fav-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.6rem 1.25rem;
    overflow: visible;
}
.fav-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
}
.fav-promo {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 2px dashed rgba(255, 243, 223, 0.15);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    margin-left: auto;
    flex-shrink: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.promo-text-wrap {
    display: flex;
    flex-direction: column;
    text-align: right;
}
.promo-kicker {
    font-family: var(--font-show);
    font-size: 0.75rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.promo-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-show);
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--gold);
    border: 2px solid var(--ink);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    box-shadow: 0 2px 0 0 var(--ink);
    text-decoration: none;
    transition: transform 0.12s, box-shadow 0.12s;
}
.promo-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 0 0 var(--ink);
}
.promo-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 0 var(--ink);
}
.promo-btn svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
}
/* Hide the promo box when the rejoin card is visible */
.top-row:has(#resumeCard:not([hidden])) .fav-promo {
    display: none !important;
}
.fav-card .shelf-row {
    gap: 0.75rem;
    padding: 0.25rem 0.15rem 0.65rem;
    overflow-y: hidden; /* Fix: prevent subpixel scrollbar clipping at 110% zoom */
}
.fav-card .tile {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    border-width: 2.5px;
    box-shadow: 0 4px 0 var(--ink);
    overflow: visible;
}
.fav-card .tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--ink), 0 8px 12px rgba(0,0,0,.4);
}
.fav-card .tile-ico {
    font-size: 1.85rem;
    -webkit-text-stroke: 2.5px var(--ink);
    text-shadow: 1.5px 2.5px 0 var(--ink), 2px 4px 5px rgba(0,0,0,.55);
}
.fav-card .tile-x {
    width: 20px;
    height: 20px;
    font-size: 0.74rem;
    top: -7px;
    right: -7px;
    border-width: 1.8px;
}
.fav-card .tile.add svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
}
.fav-label {
    font-family: var(--font-show);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold);
    font-weight: 700;
}

/* ══ Wieder einsteigen ══ */
.resume {
    --gc: var(--qwizzle);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0.6rem 1.25rem;
    overflow: hidden;
}
.resume-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 220px;
    flex: 1;
}
.resume::before { content:''; position:absolute; inset:0 auto 0 0; width:7px; background: var(--gc); }
.resume-badge { width: 62px; height: 62px; flex-shrink: 0; border-radius: 14px; background: color-mix(in srgb, var(--gc) 24%, var(--panel)); border: 2.5px solid var(--ink); box-shadow: 0 4px 0 0 var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-marquee); font-size: 1.55rem; color: var(--cream); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.resume-body { min-width: 0; flex: 1; }
.resume-kicker { font-family: var(--font-show); font-size: .64rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gc); display:flex; align-items:center; gap:.4rem; }
.resume-title { font-family: var(--font-show); font-size: 1.12rem; margin: 0; color: var(--cream); }
.resume-meta { font-size: .8rem; color: var(--text-muted); }
.resume-meta b { color: var(--cream); font-weight: 500; }

/* ── Buzzer-Button ── */
.buzzer { --gc: var(--gold); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--font-show); font-size: .92rem; text-transform: uppercase; letter-spacing: .02em; color: var(--ink); padding: .62rem 1.2rem; border-radius: 999px; border: 2.5px solid var(--gc); background: linear-gradient(180deg, var(--gc), color-mix(in srgb, var(--gc) 82%, #000)); box-shadow: 0 4px 0 0 color-mix(in srgb, var(--gc) 62%, #000), 0 8px 12px rgba(0,0,0,.3); cursor: pointer; white-space: nowrap; transition: transform .12s, box-shadow .12s, filter .12s; }
.buzzer svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.buzzer:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.08); box-shadow: 0 6px 0 0 color-mix(in srgb, var(--gc) 62%, #000), 0 12px 18px rgba(0,0,0,.38), 0 0 14px color-mix(in srgb, var(--gc) 50%, transparent); }
.buzzer:active { transform: translateY(3px) scale(.985); box-shadow: 0 1px 0 0 color-mix(in srgb, var(--gc) 62%, #000); }
.buzzer.sm { font-size: .78rem; padding: .48rem .9rem; }

/* ══ Feature-Reihe ══ */
.feature-row { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.1rem; align-items: stretch; flex: 1; min-height: 0; margin-bottom: 1rem; }
.featured { --gc: var(--guessle); overflow: hidden; display: flex; flex-direction: column; }
.featured-stage { position: relative; height: 190px; flex-shrink: 0; overflow: hidden; border-radius: 19px 19px 0 0; background: radial-gradient(120% 130% at 20% 0%, color-mix(in srgb, var(--gc) 34%, var(--panel)), var(--panel)); box-shadow: inset 0 0 0 2px var(--gc); }
.featured-stage::before { content:''; position:absolute; inset:0; opacity:.5; background: repeating-linear-gradient(45deg, transparent 0 10px, color-mix(in srgb, var(--gc) 5%, transparent) 10px 20px); }
.ribbon { position: absolute; top: 14px; left: 14px; z-index: 3; font-family: var(--font-show); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; background: var(--gold); color: var(--ink); padding: .3rem .7rem; border-radius: 8px; border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink); }
.featured-logo { position: absolute; left: 22px; bottom: 16px; z-index: 4; font-family: var(--font-marquee); font-size: 2.5rem; color: var(--cream); text-transform: lowercase; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-shadow: 3px 5px 0 var(--ink), 5px 8px 10px rgba(0,0,0,.6); transform: skewX(-8deg); }
.featured-body { padding: 1.1rem 1.25rem 1.2rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.featured-tags { display: flex; gap: .4rem; flex-wrap: wrap; }
.featured-desc {
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.6;
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.featured-foot { display: flex; align-items: center; gap: .8rem; margin-top: auto; }

/* ══ Feature Carousel (Coverflow Design) ══ */
.carousel-container {
    --card-w: clamp(280px, 68%, 420px);
    --card-margin: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-width: 0;
}
.carousel-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    /* Smooth fade-out linear gradient on left & right viewport edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
    mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}
.carousel-track {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* vertical padding prevents clip on scale & shadow; horizontal padding is replaced by DOM spacers */
    padding: 35px 0 50px 0;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}
.carousel-track::-webkit-scrollbar {
    display: none;
}
.carousel-track.dragging {
    cursor: grabbing;
}
.carousel-spacer {
    width: calc(50% - (var(--card-w) / 2) - var(--card-margin));
    flex-shrink: 0;
}
.carousel-slide {
    width: var(--card-w);
    height: clamp(270px, 50vh, 380px);
    flex-shrink: 0;
    margin: 0 var(--card-margin);
    transition: box-shadow 0.28s ease;
    transform-origin: center center;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    -webkit-user-drag: none;
    user-select: none;
}
.carousel-slide * {
    -webkit-user-drag: none;
    user-select: none;
}

.side-col { display: flex; flex-direction: column; gap: 1.1rem; min-height: 0; }
.crew { padding: 0.8rem 1.1rem; flex: 1.2; min-height: 0; display: flex; flex-direction: column; }
.crew-list { flex: 1; overflow-y: auto; min-height: 0; margin-bottom: 0.2rem; padding-right: 0.4rem; }
.crew-foot { flex-shrink: 0; }

/* ── Custom Scrollbar stylings ── */
.scrollbar-custom::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.scrollbar-custom::-webkit-scrollbar-track {
    background: transparent;
}
.scrollbar-custom::-webkit-scrollbar-thumb {
    background: rgba(255, 243, 223, 0.15);
    border-radius: 99px;
}
.scrollbar-custom::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}
.scrollbar-custom {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 243, 223, 0.15) transparent;
}

.crew-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .7rem; flex-shrink: 0; }
.crew-head .lbl { font-family: var(--font-show); font-size: .8rem; color: var(--cream); display:flex; align-items:center; gap:.4rem; }
.crew-head .lbl svg { width: 16px; height: 16px; fill:none; stroke: var(--gold); stroke-width: 2; }
.crew-head .cnt { font-family: var(--font-show); font-size: .68rem; color: var(--fumble); }
.crew-row { display: flex; align-items: center; gap: .7rem; padding: .4rem 0; }
.crew-av { position: relative; width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; font-family: var(--font-show); font-size: .8rem; color: var(--ink); }
.crew-av .st { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--panel); }
.crew-info { min-width: 0; flex: 1; }
.crew-info .nm { font-family: var(--font-show); font-size: .84rem; }
.crew-info .status { font-size: .72rem; color: var(--text-muted); }
.crew-info .status.on { color: var(--fumble); }
.crew-join { font-family: var(--font-show); font-size: .66rem; text-transform: uppercase; color: var(--ink); background: var(--gold); border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink); border-radius: 7px; padding: .2rem .5rem; cursor: pointer; transition: transform .1s, box-shadow .1s; }
.crew-join:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--ink); }
.crew-join:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }
.crew-invite { font-family: var(--font-show); font-size: .66rem; text-transform: uppercase; color: var(--cream); background: rgba(255,255,255,.08); border: 2px solid var(--border); border-radius: 7px; padding: .2rem .5rem; cursor: pointer; transition: transform .1s, background .1s, border-color .1s; }
.crew-invite:hover { background: rgba(255,255,255,.14); border-color: var(--cream); transform: translateY(-1px); }
.crew-invite:active { transform: translateY(1px); }
.crew-add-btn { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.08); border: 2px solid var(--border); color: var(--gold); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .1s, background .1s, border-color .1s, box-shadow .1s; flex-shrink: 0; }
.crew-add-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.crew-add-btn:hover { background: var(--gold); color: var(--ink); border-color: var(--ink); box-shadow: 0 2px 0 var(--ink); transform: translateY(-1px); }
.crew-add-btn:active { transform: translateY(1px); box-shadow: 0 0px 0 var(--ink); }
.crew-sep { width: 100%; height: 2px; background: var(--border); border-radius: 2px; margin: .4rem 0; }
.crew-actions { display: flex; gap: .5rem; margin-top: .5rem; }
.crew-party-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font-family: var(--font-show); font-size: .72rem; text-transform: uppercase; color: var(--ink); background: var(--gold); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); border-radius: 9px; padding: .4rem .6rem; cursor: pointer; transition: transform .1s, box-shadow .1s, background-color .1s; }
.crew-party-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.crew-party-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); background: var(--cream); }
.crew-party-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }
.crew-search-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font-family: var(--font-show); font-size: .72rem; text-transform: uppercase; color: var(--cream); background: var(--panel); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); border-radius: 9px; padding: .4rem .6rem; cursor: pointer; transition: transform .1s, box-shadow .1s, background .1s; }
.crew-search-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.crew-search-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); background: rgba(255,255,255,.1); }
.crew-search-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }

/* ── Tages-Wurf: echter Dodekaeder als Idle-Vorschau (Bühne füllt die Kachel) ── */
.roll-card { flex: 1; padding: 0.6rem; display: flex; flex-direction: column; min-height: 0; max-height: 220px; }
.roll-stage { position: relative; flex: 1; min-height: 120px; border-radius: 14px; overflow: hidden; cursor: pointer; background: radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--gold) 15%, var(--panel)), var(--stage-2) 80%); box-shadow: inset 0 0 0 2px var(--border), inset 0 0 44px rgba(0,0,0,.5); }
#widgetDodecCanvas { width: 100%; height: 100%; display: block; }
.roll-stage .hint { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; z-index: 2; pointer-events: none; font-family: var(--font-show); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); text-shadow: 0 0 8px rgba(255,210,63,.85), 0 0 18px rgba(255,210,63,.5); animation: hint-glow 2.2s ease-in-out infinite; }
@keyframes hint-glow { 0%,100% { opacity: .82; text-shadow: 0 0 7px rgba(255,210,63,.6), 0 0 15px rgba(255,210,63,.28); } 50% { opacity: 1; text-shadow: 0 0 13px rgba(255,210,63,1), 0 0 28px rgba(255,210,63,.6); } }

/* ══ Bibliothek-Regal (Buchstaben-Kacheln aus den Favoriten) ══ */
.shelf-row { display: flex; gap: .9rem; overflow-x: auto; padding: .3rem .2rem 1rem; scrollbar-width: none; }
.shelf-row::-webkit-scrollbar { display: none; }
.tile { --gc: var(--gold); position: relative; flex-shrink: 0; width: 112px; height: 112px; border-radius: 20px; border: 3px solid var(--ink); box-shadow: 0 7px 0 0 var(--ink), 0 14px 20px rgba(0,0,0,.4); cursor: pointer; overflow: hidden; display: grid; place-items: center; transition: transform .14s, box-shadow .14s; background: radial-gradient(circle at 50% 18%, rgba(255,255,255,.14), transparent 60%), linear-gradient(170deg, var(--gc) 0%, color-mix(in srgb, var(--gc) 26%, #120524) 62%, #120524 100%); }
.tile:hover { transform: translateY(-4px); box-shadow: 0 11px 0 0 var(--ink), 0 18px 26px rgba(0,0,0,.5); }
.tile-ico { font-family: var(--font-marquee); font-size: 3.1rem; line-height: 1; color: var(--cream); text-transform: uppercase; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-shadow: 3px 5px 0 var(--ink), 5px 8px 9px rgba(0,0,0,.55); transform: skewX(-6deg); }
.tile-x { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--cream); border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-body); font-size: .9rem; line-height: 1; opacity: 0; transform: scale(.8); transition: opacity .15s, transform .15s; z-index: 3; }
.tile:hover .tile-x { opacity: 1; transform: scale(1); }
.tile-x:hover { background: var(--red); }
.tile.add { background: transparent; border-style: dashed; border-color: var(--border); box-shadow: none; color: var(--text-dim); }
.tile.add:hover { color: var(--cream); transform: none; box-shadow: none; }
.tile.add svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; }
.shelf-empty { font-size: .86rem; color: var(--text-muted); padding: 1rem .4rem; }

/* ══ Entdecken (echte Karten, aus index.html portiert · auf jetzige Größe skaliert) ══ */
.filter { margin-left: auto; display: inline-flex; gap: .3rem; background: var(--stage-2); border: 2px solid var(--ink); border-radius: 100px; padding: .25rem; box-shadow: 0 3px 0 var(--ink); }
.filter button { font-family: var(--font-show); font-size: .74rem; text-transform: uppercase; letter-spacing: .02em; color: var(--text-muted); background: transparent; border: none; padding: .32rem .85rem; border-radius: 100px; cursor: pointer; transition: color .12s, background .12s; }
.filter button.active { color: var(--ink); background: var(--gold); }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 1.4rem; }

/* Per-card game colour → drives backdrop, logo, button, glow */
#card-qwizzle  { --gc: var(--qwizzle);  --gc-text: var(--cream); background: radial-gradient(circle at 50% 12%, rgba(255,255,255,.12), transparent 60%), linear-gradient(180deg, var(--qwizzle) 0%, #120524 52%, #120524 100%); }
#card-impostle { --gc: var(--impostle); --gc-text: var(--cream); background: radial-gradient(circle at 50% 12%, rgba(255,255,255,.08), transparent 60%), linear-gradient(180deg, var(--impostle) 0%, #0d0205 52%, #0d0205 100%); }
#card-matchle  { --gc: var(--matchle);  --gc-text: var(--ink);   background: radial-gradient(circle at 50% 12%, rgba(255,255,255,.12), transparent 60%), linear-gradient(180deg, var(--matchle) 0%, #140800 52%, #140800 100%); }
#card-sketchle { --gc: var(--sketchle); --gc-text: var(--ink);   background: radial-gradient(circle at 50% 12%, rgba(255,255,255,.22), transparent 60%), linear-gradient(180deg, var(--sketchle) 0%, #141300 52%, #141300 100%); }
#card-guessle  { --gc: var(--guessle);  --gc-text: var(--ink);   background: radial-gradient(circle at 50% 12%, rgba(255,255,255,.12), transparent 60%), linear-gradient(180deg, var(--guessle) 0%, #000c14 52%, #000c14 100%); }
#card-fumble   { --gc: var(--fumble);   --gc-text: var(--ink);   background: radial-gradient(circle at 50% 12%, rgba(255,255,255,.12), transparent 60%), linear-gradient(180deg, var(--fumble) 0%, #00140d 52%, #00140d 100%); }

.game-card { position: relative; border: 3px solid var(--ink); border-radius: var(--radius-card); overflow: hidden; color: inherit; display: flex; flex-direction: column; box-shadow: 0 9px 0 0 var(--ink), 0 20px 28px rgba(0,0,0,.45); transition: transform .14s ease, box-shadow .14s ease; cursor: pointer; isolation: isolate; }
.game-card:hover { transform: translateY(-4px); box-shadow: 0 13px 0 0 var(--ink), 0 26px 34px rgba(0,0,0,.5); }
/* Slanted divider — exact interlock: preview clip bottom ↔ body clip top ↔ ink line */
.game-card::after { content:''; position:absolute; top: 146px; left:-5%; width:110%; height:3px; background: var(--ink); box-shadow: 0 -5px 0 var(--ink); transform: rotate(-2deg); transform-origin: left center; z-index: 10; pointer-events: none; }
.card-glow { position:absolute; inset:0; z-index:1; pointer-events:none; border-radius: inherit; opacity:0; transition: opacity .4s ease; background: radial-gradient(500px circle at var(--mx,50%) var(--my,50%), color-mix(in srgb, var(--gc, var(--gold)) 22%, transparent), transparent 42%); }
.game-card:hover .card-glow { opacity: 1; }
.card-preview { height: 150px; position: relative; overflow: hidden; flex-shrink: 0; box-shadow: inset 0 0 0 2px var(--gc); clip-path: polygon(0 0, 100% 0, 100% 137px, 0 146px); }
.card-preview::before { content:''; position:absolute; inset:0; z-index:2; background: repeating-linear-gradient(45deg, transparent, transparent 10px, color-mix(in srgb, var(--gc, var(--gold)) 4%, transparent) 10px, color-mix(in srgb, var(--gc, var(--gold)) 4%, transparent) 20px); opacity:.6; transition: opacity .5s; pointer-events:none; }
.game-card:hover .card-preview::before { opacity: 1; }
.card-chips { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: .4rem; flex-wrap: wrap; z-index: 5; }
.preview-game-logo { position:absolute; top: 122px; left: 18px; z-index: 12; font-family: var(--font-marquee); font-size: 1.5rem; color: var(--cream); text-transform: lowercase; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-shadow: -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 2px 2px 0 var(--ink), 0 3px 0 var(--ink), 3px 5px 0 var(--ink), 5px 8px 9px rgba(0,0,0,.6); transform: skewY(-2deg) skewX(-9deg); transition: transform .5s cubic-bezier(.16,1,.3,1), filter .5s; }
.game-card:hover .preview-game-logo { transform: skewY(-2deg) skewX(-9deg) scale(1.06) translateY(-3px); filter: drop-shadow(0 0 11px var(--gc)); }
.card-body { padding: 1.5rem 1.4rem 1.35rem; display: flex; flex-direction: column; flex: 1; position: relative; z-index: 3; margin-top: -18px; clip-path: polygon(0 14px, 100% 5px, 100% 100%, 0 100%); }
.card-body::before { content:''; position:absolute; inset:0; z-index:-1; background: rgba(22,10,28,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.card-title-row { display: flex; justify-content: flex-end; align-items: center; margin-bottom: .5rem; min-height: 34px; }
.card-body p { color: var(--text-muted); font-size: .85rem; line-height: 1.6; margin-bottom: 1rem; flex: 1; font-weight: 300; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; gap: .5rem; margin-top: auto; margin-bottom: 1rem; flex-wrap: wrap; }
.meta-item { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-show); font-size: .68rem; letter-spacing: .02em; text-transform: uppercase; color: var(--cream); background: color-mix(in srgb, var(--gc, var(--gold)) 16%, transparent); border: 2px solid var(--ink); padding: .26rem .55rem; border-radius: 8px; box-shadow: 0 2px 0 0 var(--ink); }
.meta-item svg { width: 12px; height: 12px; stroke-width: 2.5px; flex-shrink: 0; fill: none; stroke: currentColor; }
.play-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; width: 100%; font-family: var(--font-show); font-size: .95rem; letter-spacing: .02em; text-transform: uppercase; color: var(--gc-text, var(--ink)); padding: .62rem 1.1rem; border-radius: 999px; background: linear-gradient(180deg, var(--gc, var(--gold)) 0%, color-mix(in srgb, var(--gc, var(--gold)) 82%, #000) 100%); border: 2.5px solid var(--gc, var(--gold)); box-shadow: 0 4px 0 0 color-mix(in srgb, var(--gc, var(--gold)) 62%, #000), 0 8px 12px rgba(0,0,0,.3); transition: transform .12s, box-shadow .12s, filter .12s; }
.play-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.game-card:hover .play-btn { transform: translateY(-2px) scale(1.015); filter: brightness(1.08); box-shadow: 0 6px 0 0 color-mix(in srgb, var(--gc, var(--gold)) 62%, #000), 0 12px 18px rgba(0,0,0,.38), 0 0 14px color-mix(in srgb, var(--gc, var(--gold)) 50%, transparent); }
.game-card:active .play-btn { transform: translateY(3px) scale(.985); box-shadow: 0 1px 0 0 color-mix(in srgb, var(--gc, var(--gold)) 62%, #000); }
.game-card.hide { display: none; }

/* Chips */
.chip { font-family: var(--font-show); padding: .26rem .58rem; border-radius: 8px; font-size: .6rem; letter-spacing: .04em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .3rem; border: 2px solid var(--ink); box-shadow: 0 2px 0 0 var(--ink); }
.chip svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.chip-live { background: var(--red); color: var(--cream); }
.chip-live .cdot { width: 6px; height: 6px; border-radius: 50%; background: var(--cream); animation: blink 1.2s steps(1) infinite; }

/* Favoriten-Stern (1:1 aus index) */
.fav-btn { position: relative; z-index: 5; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 50%; background: rgba(255,255,255,.08); border: 2px solid var(--ink); color: var(--cream); cursor: pointer; box-shadow: 0 2px 0 0 var(--ink); transition: transform .2s cubic-bezier(.34,1.56,.64,1), background .2s, color .2s; flex-shrink: 0; }
.fav-btn svg { width: 17px; height: 17px; display: block; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; transition: fill .2s; }
.fav-btn:hover { transform: scale(1.1); background: rgba(255,255,255,.14); }
.fav-btn:active { transform: scale(.92); }
.fav-btn.is-fav { background: var(--gold); color: var(--ink); }
.fav-btn.is-fav svg { fill: currentColor; }
.fav-btn.just-faved { animation: fav-pop .32s cubic-bezier(.34,1.56,.64,1); }
@keyframes fav-pop { 0%{transform:scale(1)} 45%{transform:scale(1.3)} 100%{transform:scale(1)} }

/* Karten-Highlight nach Wurf */
@keyframes card-highlight-pulse { 0%,100% { box-shadow: 0 0 0 2px var(--highlight-color), 0 20px 50px rgba(0,0,0,.7); } 50% { box-shadow: 0 0 0 4px var(--highlight-color), 0 30px 80px color-mix(in srgb, var(--highlight-color) 35%, transparent); } }
.game-card.dice-highlight { border-color: var(--highlight-color, var(--qwizzle)) !important; animation: card-highlight-pulse 1s ease-in-out 3; }

/* ══ Activity-Ticker ══ */
.ticker { margin-top: 0; overflow: hidden; padding: .5rem 1rem; display: flex; align-items: center; gap: .9rem; flex-shrink: 0; }
.ticker-lbl { font-family: var(--font-show); font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); background: var(--red); border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink); padding: .28rem .6rem; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; gap: .4rem; }
.ticker-lbl .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: blink 1.3s steps(1) infinite; }
.ticker-feed { position: relative; flex: 1; min-width: 0; height: 1.3rem; }
.ticker-item { position: absolute; inset: 0; display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--text-muted); opacity: 0; transition: opacity .5s, transform .5s; transform: translateY(8px); white-space: nowrap; }
.ticker-item.show { opacity: 1; transform: translateY(0); }
.ticker-item b { color: var(--cream); font-weight: 500; }
.ticker-item .gdot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; border: 1.5px solid var(--ink); }

.foot { text-align: center; color: var(--text-dim); font-size: .78rem; padding: 0.6rem 1rem 0.8rem; flex-shrink: 0; border-top: 3px solid var(--ink); }
.foot a { color: var(--text-dim); transition: color 0.2s ease; }
.foot a:hover { color: var(--gold); }

/* ── Toast ── */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); z-index: 1300; background: var(--cream); color: var(--ink); font-family: var(--font-show); font-size: .9rem; padding: .7rem 1.2rem; border-radius: 12px; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══ Dodekaeder-Overlay (1:1 aus index/style) ══ */
.dodec-overlay { position: fixed; inset: 0; z-index: 1200; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.dodec-overlay.open { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.dodec-overlay-backdrop { position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 45%, rgba(42,19,48,.88), rgba(13,5,16,.94)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.dodec-close { position: absolute; top: 1.4rem; right: 1.6rem; z-index: 3; width: 46px; height: 46px; display: grid; place-items: center; background: var(--panel); color: var(--cream); border: 2.5px solid var(--ink); border-radius: 50%; cursor: pointer; box-shadow: 0 4px 0 0 var(--ink); transition: transform .2s, color .2s; }
.dodec-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.dodec-close:hover { transform: rotate(90deg); color: var(--gold); }
.dodec-container { position: relative; z-index: 1; width: min(92vw, 780px); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: visible; transform: scale(.92) translateY(16px); transition: transform .45s cubic-bezier(.16,1,.3,1); }
.dodec-overlay.open .dodec-container { transform: scale(1) translateY(0); }
#dodecCanvas { display: block; cursor: grab; width: 100% !important; max-width: 100%; touch-action: none; opacity: 0; transition: opacity .5s ease; }
#dodecCanvas.ready { opacity: 1; }
#dodecCanvas:active { cursor: grabbing; }
.dodec-glow { position: absolute; width: 680px; height: 680px; top: 50%; left: 50%; transform: translate(-50%,-50%); background: radial-gradient(circle, rgba(255,210,63,.22) 0%, rgba(255,138,40,.12) 38%, rgba(255,59,92,.05) 62%, transparent 75%); border-radius: 50%; pointer-events: none; animation: dodec-glow-pulse 4s ease-in-out infinite; z-index: 0; }
@keyframes dodec-glow-pulse { 0%,100%{ opacity:.7; transform: translate(-50%,-50%) scale(1);} 50%{ opacity:1; transform: translate(-50%,-50%) scale(1.1);} }
.dodec-tooltip { position: absolute; pointer-events: none; z-index: 100; font-family: var(--font-display); font-size: 1.1rem; letter-spacing: -.02em; color: var(--cream); background: rgba(31,15,36,.95); border: 2px solid var(--ink); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: .55rem 1.15rem; border-radius: 12px; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; white-space: nowrap; box-shadow: 0 6px 0 0 var(--ink), 0 12px 24px rgba(0,0,0,.5), 0 0 18px rgba(255,210,63,.25); }
.dodec-tooltip.visible { opacity: 1; transform: translateY(0); }
.dodec-tooltip .tooltip-tag { display: block; font-size: .68rem; font-weight: 500; letter-spacing: .06em; color: var(--text-muted); margin-top: .15rem; }
.dodec-hint { position: relative; display: block; text-align: center; margin: .9rem 0 0; font-size: .72rem; font-weight: 500; letter-spacing: .08em; color: var(--text-dim); text-transform: uppercase; opacity: .7; white-space: nowrap; z-index: 20; pointer-events: none; user-select: none; }
.dodec-result { position: absolute; bottom: 3.5rem; left: 50%; z-index: 50; opacity: 0; transform: translateX(-50%) translateY(14px) scale(.95); transition: opacity .4s cubic-bezier(.16,1,.3,1), transform .4s cubic-bezier(.16,1,.3,1); pointer-events: none; }
.dodec-result.visible { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.dodec-result-pill { display: inline-flex; align-items: center; padding: .55rem 1.3rem; background: var(--panel); border: 2.5px solid var(--ink); border-radius: var(--radius-pill); box-shadow: 0 4px 0 0 var(--ink), 0 10px 22px rgba(0,0,0,.45); font-family: var(--font-marquee); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }

@media (max-width: 860px) { .feature-row { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
    .app { flex-direction: column; }
    .rail { position: fixed; bottom: 0; top: auto; left: 0; height: auto; width: 100%; flex-direction: row; border-right: none; border-top: 3px solid var(--ink); box-shadow: 0 -6px 0 rgba(0,0,0,.25); padding: .5rem .8rem; gap: .3rem; justify-content: space-around; overflow-x: auto; }
    .rail-brand, .rail-sep, .rail-spacer { display: none; }
    .rail-btn .tip { display: none; }
    .rail-avatar { width: 40px; height: 40px; }
    .stage { padding-bottom: 5rem; }
    .filter { width: 100%; margin: .6rem 0 0; justify-content: space-between; }
    .sec-head { flex-wrap: wrap; }
}

/* ══ WQHD (2560×1440) and larger — scale dashboard to match FullHD proportions ══ */
/* At native 2560px the content area is much wider than designed for 1920px.
   zoom: 1.333 maps 2560 → 1920 logical pixels (exact FullHD match).           */
@media (min-width: 2560px) {
    body.hub-dashboard {
        zoom: 1.333;
    }
}
/* WQHD with Windows 125% scaling → CSS viewport ≈ 2048px.
   Moderate scale-up so it feels closer to FullHD proportions.                  */
@media (min-width: 1921px) and (max-width: 2559px) {
    body.hub-dashboard {
        zoom: 1.08;
    }
}


