:root {
    --bg-base: #0d0a1a;
    --bg-deep: #080612;
    --bg-surface: rgba(22, 16, 42, 0.7);
    --bg-card: rgba(18, 13, 35, 0.85);

    --border: rgba(255, 255, 255, 0.07);
    --border-bright: rgba(160, 100, 255, 0.35);

    --text-main: #f0ecff;
    --text-muted: #7a6e9a;
    --text-dim: #3d3558;

    --purple: #9b59f5;
    --purple-light: #b87bff;
    --purple-dark: #5a1fa8;
    --pink: #e040fb;
    --pink-glow: rgba(224, 64, 251, 0.3);
    --blue: #4d6bfe;
    --blue-glow: rgba(77, 107, 254, 0.25);
    --gold: #f5c842;
    --green: #00e5a0;
    --green-glow: rgba(0, 229, 160, 0.2);

    --glow-purple: rgba(155, 89, 245, 0.5);
    --glow-soft: rgba(155, 89, 245, 0.15);

    --radius-card: 20px;
    --radius-pill: 100px;

    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ── Stars Canvas ── */
#stars {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}


/* ── Ambient Orbs ── */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, #4a1090 0%, transparent 70%);
    top: -20vh;
    left: -15vw;
    opacity: 0.6;
    animation: drift1 18s ease-in-out infinite alternate;
}

.orb-2 {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, #1a0a60 0%, transparent 70%);
    top: 40vh;
    right: -10vw;
    opacity: 0.5;
    animation: drift2 22s ease-in-out infinite alternate;
}

.orb-3 {
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, #6b0060 0%, transparent 70%);
    bottom: -5vh;
    left: 30vw;
    opacity: 0.3;
    animation: drift3 16s ease-in-out infinite alternate;
}

@keyframes drift1 {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(40px, 60px);
    }
}

@keyframes drift2 {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-60px, -40px);
    }
}

@keyframes drift3 {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(30px, -50px);
    }
}

/* ── Navigation ── */
.nav {
    position: relative;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(13, 10, 26, 0.4);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.logo-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    mix-blend-mode: screen;
    filter: brightness(0) invert(1) opacity(0.9);
    flex-shrink: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotate(72deg);
    filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(255, 255, 255, 0.7));
}

.logo-shuffl {
    color: var(--text-main);
}

.logo-games {
    background: linear-gradient(135deg, var(--purple-light), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-badge {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.03);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 0.35rem 0.8rem 0.35rem 0.65rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.lang-btn:hover {
    color: var(--purple-light);
    border-color: var(--border-bright);
    background: rgba(155, 89, 245, 0.08);
}

.lang-btn svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.25s ease;
}

.lang-btn:hover svg {
    opacity: 1;
}

/* ── Hero ── */
.hero {
    position: relative;
    z-index: 10;
    min-height: 52vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5rem 5% 3rem;
    text-align: center;
    overflow: visible;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
    overflow: visible;
}

.tagline-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.tagline-line {
    display: block;
    height: 1px;
    width: 60px;
    background: linear-gradient(90deg, transparent, var(--purple));
}

.tagline-line:last-child {
    background: linear-gradient(90deg, var(--purple), transparent);
}

.tagline-text {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--purple-light);
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
}

.title-line {
    display: block;
    white-space: nowrap;
}

.title-line.accent {
    display: inline-block;
    background: linear-gradient(135deg, var(--purple-light) 0%, var(--pink) 60%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.4;
    overflow: visible;
    margin-bottom: 0.2em;
}

.hero-sub {
    color: var(--text-muted);
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    line-height: 1.65;
    font-weight: 300;
    max-width: 560px;
    margin: 0 auto;
}

/* Decorative logo */
.hero-deco {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    width: 240px;
    height: 240px;
    z-index: 1;
    pointer-events: none;
}

.hero-logo-deco {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: screen;
    opacity: 0.75;
    animation: logo-float 8s ease-in-out infinite, logo-spin-slow 40s linear infinite;
    filter: brightness(1.0) saturate(1.2);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.hero-logo-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(224, 64, 251, 0.18) 0%, rgba(155, 89, 245, 0.12) 40%, transparent 70%);
    border-radius: 50%;
    animation: logo-float 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes logo-float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-14px);
    }
}

@keyframes logo-spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ── Games Section ── */
.games-section {
    position: relative;
    z-index: 10;
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem 5% 8rem;
    overflow: visible;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-bright), transparent);
}

/* ── Game Grid ── */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
}

/* ── Game Card ── */
.game-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s ease,
    box-shadow 0.45s ease;
    cursor: pointer;
    isolation: isolate;
}

/* Mouse-tracking glow */
.card-glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(155, 89, 245, 0.12),
    transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.game-card:hover:not(.locked) .card-glow {
    opacity: 1;
}

.game-card:hover:not(.locked) {
    transform: translateY(-10px) scale(1.01);
    border-color: var(--border-bright);
    box-shadow:
            0 30px 60px -15px rgba(0, 0, 0, 0.9),
            0 0 30px rgba(155, 89, 245, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ── Card Preview ── */
.card-preview {
    height: 220px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.preview-bg-text {
    position: absolute;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 10rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%) rotate(-10deg);
    opacity: 0.07;
    color: #fff;
    pointer-events: none;
    letter-spacing: -0.05em;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s;
    user-select: none;
}

.game-card:hover:not(.locked) .preview-bg-text {
    transform: translate(-50%, -48%) rotate(-4deg) scale(1.15);
    opacity: 0.12;
}

/* Qwizzle preview */
.preview-qwizzle {
    background: linear-gradient(160deg, #1a0a38 0%, #0d061f 60%, #1a0535 100%);
}

.preview-qwizzle::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
            radial-gradient(ellipse at 30% 60%, rgba(155, 89, 245, 0.25) 0%, transparent 55%),
            radial-gradient(ellipse at 80% 20%, rgba(224, 64, 251, 0.2) 0%, transparent 50%);
}

/* Impostle preview */
.preview-impostle {
    background: linear-gradient(160deg, #1a0a1a 0%, #0d060f 60%, #1a0a10 100%);
}

.preview-impostle::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
            radial-gradient(ellipse at 40% 60%, rgba(220, 40, 120, 0.2) 0%, transparent 55%),
            radial-gradient(ellipse at 75% 25%, rgba(155, 30, 200, 0.15) 0%, transparent 50%);
}

.impostle-logo {
    background: linear-gradient(135deg, #fff 0%, #ff80b0 45%, #c040e0 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 0 20px rgba(200, 40, 130, 0.6)) !important;
}

/* Matchle preview */
.preview-matchle {
    background: linear-gradient(160deg, #1a0e04 0%, #140a04 60%, #1c0c06 100%);
}

.preview-matchle::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
            radial-gradient(ellipse at 35% 65%, rgba(245, 164, 66, 0.22) 0%, transparent 55%),
            radial-gradient(ellipse at 78% 22%, rgba(255, 140, 66, 0.2) 0%, transparent 50%);
}

.matchle-logo {
    background: linear-gradient(135deg, #fff 0%, #f5a442 45%, #ff8c42 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 0 20px rgba(245, 164, 66, 0.6)) !important;
}

.chip-tag-teal {
    background: rgba(245, 164, 66, 0.1);
    border-color: rgba(245, 164, 66, 0.25);
    color: #f5a442;
    border: 1px solid rgba(245, 164, 66, 0.25);
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(8px);
}

.chip-tag-red {
    background: rgba(220, 40, 120, 0.12);
    border-color: rgba(220, 40, 120, 0.25);
    color: #ff80b0;
    border: 1px solid rgba(220, 40, 120, 0.25);
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(8px);
}

/* Guessle preview */
.preview-guessle {
    background: linear-gradient(160deg, #041518 0%, #040f14 60%, #061218 100%);
}

.preview-guessle::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
            radial-gradient(ellipse at 30% 65%, rgba(0, 212, 255, 0.22) 0%, transparent 55%),
            radial-gradient(ellipse at 80% 20%, rgba(0, 151, 167, 0.18) 0%, transparent 50%);
}

.guessle-logo {
    background: linear-gradient(135deg, #fff 0%, #00d4ff 45%, #0097a7 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.6)) !important;
}

.chip-tag-orange {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: #00d4ff;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(8px);
}

/* Fumble preview */
.preview-fumble {
    background: linear-gradient(160deg, #021810 0%, #02120b 60%, #03140d 100%);
}

.preview-fumble::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
            radial-gradient(ellipse at 30% 65%, rgba(0, 229, 160, 0.22) 0%, transparent 55%),
            radial-gradient(ellipse at 80% 20%, rgba(0, 160, 110, 0.18) 0%, transparent 50%);
}

.fumble-logo {
    background: linear-gradient(135deg, #fff 0%, #00e5a0 45%, #00b377 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 0 20px rgba(0, 229, 160, 0.6)) !important;
}

.chip-tag-green {
    background: rgba(0, 229, 160, 0.1);
    border: 1px solid rgba(0, 229, 160, 0.25);
    color: #00e5a0;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(8px);
}

/* Sketchle preview */
.preview-sketchle {
    background: linear-gradient(160deg, #1a0e04 0%, #140a04 60%, #1c0c06 100%);
}

.preview-sketchle::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
            radial-gradient(ellipse at 30% 65%, rgba(255, 234, 0, 0.25) 0%, transparent 55%),
            radial-gradient(ellipse at 80% 20%, rgba(255, 215, 0, 0.2) 0%, transparent 50%);
}

.sketchle-logo {
    background: linear-gradient(135deg, #fff 0%, #ffea00 45%, #ffd700 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 0 20px rgba(255, 234, 0, 0.6)) !important;
}

.chip-tag-yellow {
    background: rgba(255, 234, 0, 0.12);
    border: 1px solid rgba(255, 234, 0, 0.25);
    color: #ffea00;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(8px);
}

/* Mystery preview */
.preview-mystery {
    background: linear-gradient(160deg, #120a20 0%, #0a0615 100%);
}

.preview-mystery::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg,
    transparent,
    transparent 20px,
    rgba(255, 255, 255, 0.015) 20px,
    rgba(255, 255, 255, 0.015) 21px);
}

/* bottom fade */
.card-preview::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, var(--bg-card), transparent);
    z-index: 3;
    pointer-events: none;
}

/* Preview game logo (Qwizzle style) */
.preview-logo-wrap {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    text-align: center;
    padding-bottom: 1.25rem;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-card:hover:not(.locked) .preview-logo-wrap {
    transform: translateX(-50%) translateY(-6px);
}

.preview-game-logo {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #fff 0%, var(--purple-light) 50%, var(--pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0 20px var(--glow-purple));

    /* NEU: Etwas mehr Platz nach unten, damit p, q und y nicht abgeschnitten werden */
    line-height: 1.2;
    padding-bottom: 0.15em;
}

.preview-game-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-top: 0.35rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Locked overlay */
.locked-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(8, 6, 18, 0.5);
}

.lock-icon {
    color: var(--text-muted);
    opacity: 0.6;
}

.mystery-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    mix-blend-mode: screen;
    opacity: 0.5;
    animation: mystery-spin 10s linear infinite, mystery-pulse 4s ease-in-out infinite;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

@keyframes mystery-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes mystery-pulse {

    0%,
    100% {
        opacity: 0.35;
        filter: brightness(0.8);
    }

    50% {
        opacity: 0.65;
        filter: brightness(1.3) drop-shadow(0 0 12px rgba(155, 89, 245, 0.8));
    }
}

.soon-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ── Chips ── */
.card-chips {
    position: absolute;
    top: 1.1rem;
    left: 1.1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
    flex-wrap: wrap;
}

.chip {
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    backdrop-filter: blur(8px);
    border: 1px solid transparent;
}

.chip-live {
    background: rgba(0, 229, 160, 0.12);
    border-color: rgba(0, 229, 160, 0.25);
    color: var(--green);
}

.chip-dot {
    width: 5px;
    height: 5px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--green-glow);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 229, 160, 0.4);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(0, 229, 160, 0);
    }
}

.chip-tag {
    background: rgba(155, 89, 245, 0.1);
    border-color: rgba(155, 89, 245, 0.2);
    color: var(--purple-light);
}

.chip-soon {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
    color: var(--text-muted);
}

/* ── Card Body ── */
.card-body {
    padding: 1.5rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 2;
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.card-title-row h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.card-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(155, 89, 245, 0.12);
    border: 1px solid rgba(155, 89, 245, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-light);
    transition: all 0.35s ease;
    flex-shrink: 0;
}

.game-card:hover:not(.locked) .card-arrow {
    background: var(--purple);
    border-color: var(--purple);
    color: #fff;
    transform: rotate(45deg);
    box-shadow: 0 0 20px var(--glow-purple);
}

.locked-arrow {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
    color: var(--text-dim);
}

.card-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    flex: 1;
    font-weight: 300;

    /* NEU: Verhindert, dass langer Text die Karte nach unten sprengt */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--purple-light);
    font-weight: 500;
}

.meta-item.muted {
    color: var(--text-dim);
}

/* ── Play Button ── */
.play-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-main);
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, rgba(155, 89, 245, 0.2), rgba(224, 64, 251, 0.1));
    border: 1px solid rgba(155, 89, 245, 0.3);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    align-self: flex-start;
}

.game-card:hover:not(.locked) .play-btn {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    border-color: transparent;
    box-shadow: 0 8px 30px rgba(155, 89, 245, 0.5);
    gap: 0.9rem;
}

.play-btn.disabled {
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border);
    cursor: not-allowed;
}

/* ── Locked State ── */
.locked {
    cursor: not-allowed;
}

.locked .card-body p {
    opacity: 0.6;
}

.locked .card-title-row h3 {
    color: var(--text-muted);
}

/* ── Footer ── */
.footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2.5rem 5%;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;

    /* NEU: Hintergrundfarbe mit Transparenz (0.8 = 80% sichtbar, 20% transparent) */
    background: rgba(13, 10, 26, 0.45);

    /* Optional: Ein cooler Glas-Effekt, der alles dahinter leicht verschwimmen lässt */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dim);
}

.footer-logo span {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer p {
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* ── Card Preview Game Icon ── */
.preview-icon {
    position: absolute;
    width: 140px;
    height: 140px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -58%);
    z-index: 2;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0.75;
}

.preview-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 18px currentColor);
}

.game-card:hover:not(.locked) .preview-icon {
    transform: translate(-50%, -64%) scale(1.08);
    opacity: 1;
}

/* ── Section Watermark (now in Hero, left side) ── */
.section-watermark {
    position: absolute;
    width: 1020px;
    height: 1020px;
    object-fit: contain;
    mix-blend-mode: screen;
    opacity: 0.045;
    top: 20%;
    left: -380px;
    transform: translateY(-50%);
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    filter: blur(2px);
    z-index: 0;
    animation: watermark-pulse 12s ease-in-out infinite;
}

@keyframes watermark-pulse {

    0%,
    100% {
        opacity: 0.04;
        transform: translateY(-50%) rotate(0deg);
    }

    50% {
        opacity: 0.07;
        transform: translateY(-50%) rotate(30deg);
    }
}

.section-watermark--br {
    position: absolute;
    top: auto;
    left: auto;
    bottom: -220px;
    right: -200px;
    transform: none;
    animation: watermark-pulse-br 14s ease-in-out infinite;
}

@keyframes watermark-pulse-br {

    0%,
    100% {
        opacity: 0.04;
        transform: rotate(0deg);
    }

    50% {
        opacity: 0.07;
        transform: rotate(-30deg);
    }
}

/* ── Watermark Wrapper ── */
.watermark-wrapper {
    position: absolute;
    inset: 0;
    /* Nimmt exakt die Höhe und Breite des body ein */
    overflow: hidden;
    /* Schneidet alles ab, was unten herausragt */
    pointer-events: none;
    /* Blockiert keine Klicks */
    z-index: 0;
}

/* ── Card Logo Stamp ── */
.card-logo-stamp {
    width: 22px;
    height: 22px;
    object-fit: contain;
    mix-blend-mode: screen;
    opacity: 0.7;
    vertical-align: middle;
}

/* ── Footer Logo Image ── */
.footer-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    mix-blend-mode: screen;
    opacity: 0.5;
    filter: blur(0.3px);
    transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    animation: logo-spin-slow 60s linear infinite;
}

.footer:hover .footer-logo-img {
    opacity: 0.75;
}

/* ── Dice Section ── */
.dice-section {
    position: relative;
    z-index: 10;
    padding: 4rem 5%;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: center;
    background: linear-gradient(180deg, rgba(13, 10, 26, 0) 0%, rgba(22, 10, 44, 0.3) 50%, rgba(13, 10, 26, 0) 100%);
}

.dice-wrap {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.dice-copy {
    text-align: center;
}

.dice-eyebrow {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--purple-light);
    margin-bottom: 0.7rem;
}

.dice-heading {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

/* ── 3D Canvas ── */
.dice-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.dice-canvas-wrap {
    position: relative;
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

#diceCanvas {
    display: block;
    width: 200px;
    height: 200px;
    border-radius: 50%;
}

.dice-canvas-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(155, 89, 245, 0.25) 0%, rgba(224, 64, 251, 0.1) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: dice-glow-pulse 3s ease-in-out infinite;
}

@keyframes dice-glow-pulse {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1.0;
        transform: scale(1.1);
    }
}

.dice-canvas-wrap.rolling .dice-canvas-glow {
    animation: dice-glow-roll 0.15s ease-in-out infinite;
}

@keyframes dice-glow-roll {
    0% {
        opacity: 0.8;
        transform: scale(1.0);
    }

    50% {
        opacity: 1.0;
        transform: scale(1.15);
    }

    100% {
        opacity: 0.8;
        transform: scale(1.0);
    }
}

/* ── Roll Button ── */
.dice-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-main);
    padding: 0.85rem 2rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, rgba(155, 89, 245, 0.22), rgba(224, 64, 251, 0.12));
    border: 1px solid rgba(155, 89, 245, 0.35);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.dice-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dice-btn:hover {
    box-shadow: 0 8px 30px rgba(155, 89, 245, 0.45);
    border-color: transparent;
    transform: translateY(-2px);
}

.dice-btn:hover::before {
    opacity: 1;
}

.dice-btn>* {
    position: relative;
    z-index: 1;
}

.dice-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

@keyframes dice-btn-shake {

    0%,
    100% {
        transform: rotate(0deg) translateY(-2px);
    }

    20% {
        transform: rotate(-8deg) translateY(-2px);
    }

    40% {
        transform: rotate(8deg) translateY(-2px);
    }

    60% {
        transform: rotate(-6deg) translateY(-2px);
    }

    80% {
        transform: rotate(6deg) translateY(-2px);
    }
}

.dice-btn.rolling svg {
    animation: dice-btn-shake 0.3s ease-in-out infinite;
}

/* ── Dice Result ── */
.dice-result {
    width: 100%;
    max-width: 560px;
    opacity: 0;
    transform: translateY(18px) scale(0.97);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.dice-result.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.dice-result-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--result-color, var(--border-bright));
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 30px color-mix(in srgb, var(--result-color, #9b59f5) 20%, transparent);
}

.dice-result-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dice-result-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.dice-result-game {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--result-color, var(--purple-light));
    line-height: 1.1;
    filter: drop-shadow(0 0 20px var(--result-color, var(--glow-purple)));
}

.dice-result-tag {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
}

.dice-result-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--result-color, var(--purple)), color-mix(in srgb, var(--result-color, var(--pink)) 80%, #000));
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--result-color, #9b59f5) 40%, transparent);
}

.dice-result-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px color-mix(in srgb, var(--result-color, #9b59f5) 55%, transparent);
    gap: 0.8rem;
}

/* ── Card highlight after dice roll ── */
@keyframes card-highlight-pulse {
    0% {
        box-shadow: 0 0 0 2px var(--highlight-color), 0 20px 50px rgba(0, 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);
    }

    100% {
        box-shadow: 0 0 0 2px var(--highlight-color), 0 20px 50px rgba(0, 0, 0, 0.7);
    }
}

.game-card.dice-highlight {
    border-color: var(--highlight-color, var(--purple)) !important;
    animation: card-highlight-pulse 1s ease-in-out 3;
}

/* ── View Toggle ── */
.view-toggle {
    display: flex;
    align-items: center;
    background: rgba(22, 16, 42, 0.85);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 0.25rem;
    gap: 0;
    cursor: pointer;
    position: relative;
    user-select: none;
    flex-shrink: 0;
}

.view-toggle-label {
    position: relative;
    z-index: 2;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    transition: color 0.35s ease;
    cursor: pointer;
    white-space: nowrap;
}

.view-toggle-label.active {
    color: #fff;
}

.view-toggle-slider {
    position: absolute;
    z-index: 1;
    height: calc(100% - 0.5rem);
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--purple), var(--pink));
    box-shadow: 0 4px 18px rgba(155, 89, 245, 0.45);
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    top: 0.25rem;
    pointer-events: none;
}

/* ── Dodecahedron Container ── */
.dodec-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    margin-bottom: 0;
    overflow: visible;
    padding-top: 2rem;
}

#dodecCanvas {
    display: block;
    cursor: grab;
    width: 100% !important;
    max-width: 100%;
    touch-action: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#dodecCanvas.ready {
    opacity: 1;
}

.dodec-container.hidden {
    display: none;
}

#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(155, 89, 245, 0.28) 0%,
    rgba(224, 64, 251, 0.14) 35%,
    rgba(77, 107, 254, 0.06) 60%,
    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: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1.0;
        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;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    background: rgba(18, 13, 35, 0.92);
    border: 1px solid var(--border-bright);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.55rem 1.15rem;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(155, 89, 245, 0.2);
}

.dodec-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.dodec-tooltip .tooltip-tag {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.dodec-hint {
    display: block;
    text-align: center;
    margin-top: -0.5rem;
    margin-bottom: 2rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    text-transform: uppercase;
    opacity: 0.7;
    white-space: nowrap;
    z-index: 20;
    pointer-events: none;
    user-select: none;
}

/* ── Dice in Grid (Karten view) ── */
.dice-in-grid {
    grid-column: 1 / -1;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.dice-in-grid .dice-wrap {
    max-width: 700px;
    margin: 0 auto;
}

/* ── Dodec Result Overlay ── */
.dodec-result {
    position: absolute;
    bottom: 3.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    width: 100%;
    max-width: 560px;
    opacity: 0;
    transform: translateX(-50%) translateY(18px) scale(0.97);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.dodec-result.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}

/* ── Hidden utility ── */
.game-grid.hidden {
    display: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 5% 2rem;
    }

    .hero-deco {
        display: none;
    }

    .game-grid {
        grid-template-columns: 1fr;
    }

    .dice-result-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .dice-result-link {
        align-self: stretch;
        justify-content: center;
    }

    /* Navbar */
    .nav {
        padding: 1rem 4%;
        gap: 0.5rem;
    }

    .logo {
        font-size: 1.15rem;
        gap: 0.4rem;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .nav-badge {
        font-size: 0.6rem;
        padding: 0.25rem 0.6rem;
    }

    .lang-btn {
        font-size: 0.6rem;
        padding: 0.25rem 0.55rem 0.25rem 0.45rem;
    }

    .nav-right {
        gap: 0.5rem;
    }

    /* Section header */
    .section-header {
        gap: 1rem;
    }

    .view-toggle {
        flex-shrink: 0;
    }

    /* Dodecahedron */
    .dodec-container {
        min-height: 400px;
    }

    .dodec-glow {
        width: 90vw;
        height: 90vw;
    }

    .dodec-result {
        max-width: 90%;
        bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .card-preview {
        height: 180px;
    }

    .preview-game-logo {
        font-size: 2rem;
    }

    /* Navbar */
    .nav {
        padding: 0.8rem 3%;
    }

    .logo {
        font-size: 1rem;
    }

    .logo-icon {
        width: 24px;
        height: 24px;
    }

    .nav-badge {
        display: none;
    }

    /* Hero */
    .hero {
        padding: 3rem 5% 1.5rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-sub {
        font-size: 0.88rem;
        max-width: 100%;
    }

    .tagline-text {
        font-size: 0.62rem;
    }

    .tagline-line {
        width: 30px;
    }

    /* Dodecahedron */
    .dodec-container {
        min-height: 320px;
    }

    .dodec-hint {
        font-size: 0.6rem;
    }
}


/* ══════════════════════════════════════════════════════════════════════════
   PROFILE SETTINGS PAGE
══════════════════════════════════════════════════════════════════════════ */

.profile-page {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    padding: 6rem 5% 4rem;
    min-height: 80vh;
}

.profile-card {
    width: 100%;
    max-width: 560px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 2.5rem 2.2rem 2rem;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 40px rgba(155, 89, 245, .04);
    opacity: 0;
    transition: opacity .4s ease;
}

.profile-back {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--font-body);
    font-size: .78rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 1.2rem;
    transition: color .2s;
}

.profile-back:hover {
    color: var(--text-main);
}

.profile-back svg {
    opacity: .6;
}

.profile-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2rem;
}

/* ── Sections ────────────────────────────────────────────────────────── */
.profile-section {
    margin-bottom: 1.8rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid var(--border);
}

.profile-section-last {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: .5rem;
}

.profile-section-title {
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: .8rem;
}

.profile-section-sub {
    font-size: .78rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* ── Avatar Editor ───────────────────────────────────────────────────── */
.avatar-editor {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.avatar-preview-wrap {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .08);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 0 30px rgba(245, 200, 66, .08);
    transition: border-color .3s, box-shadow .3s;
}
/* When a ring frame is active, show orbit preview on the main avatar */
.avatar-preview-wrap.has-ring {
    --ring-c1: #ffd700; --ring-c2: #ff8c42; --ring-c3: #fff8e0;
    --ring-glow: rgba(255,215,0,.35);
    border-color: transparent;
    overflow: visible;
    border: none;
    outline: 1px solid rgba(255,215,0,.12);
    outline-offset: 4px;
    box-shadow: 0 0 18px var(--ring-glow), 0 0 40px rgba(245,200,66,.08);
}
.avatar-preview-wrap.has-ring.ring-purple  { --ring-c1:#b388ff; --ring-c2:#7c4dff; --ring-c3:#edd5ff; --ring-glow:rgba(179,136,255,.35); outline-color:rgba(179,136,255,.12); }
.avatar-preview-wrap.has-ring.ring-emerald { --ring-c1:#69f0ae; --ring-c2:#00c853; --ring-c3:#e0ffe8; --ring-glow:rgba(105,240,174,.35); outline-color:rgba(105,240,174,.12); }
.avatar-preview-wrap.has-ring.ring-ice     { --ring-c1:#80d8ff; --ring-c2:#0091ea; --ring-c3:#e0f7ff; --ring-glow:rgba(128,216,255,.35); outline-color:rgba(128,216,255,.12); }
.avatar-preview-wrap.has-ring.ring-fire    { --ring-c1:#ff5252; --ring-c2:#ff1744; --ring-c3:#ffe0e0; --ring-glow:rgba(255,82,82,.35);   outline-color:rgba(255,82,82,.12); }

/* Subtle orbit track */
.avatar-preview-wrap.has-ring::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 50%;
    border: 1px solid var(--ring-glow);
    opacity: .25;
    pointer-events: none;
    z-index: 2;
}

/* Orbiting comet ring */
.avatar-preview-wrap.has-ring::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: conic-gradient(from var(--ring-angle),
    transparent 0%,
    transparent 70%,
    var(--ring-c2) 88%,
    var(--ring-c1) 93%,
    var(--ring-c3) 96%,
    var(--ring-c1) 98%,
    transparent 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px), #000 100%);
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px), #000 100%);
    filter: drop-shadow(0 0 3px var(--ring-glow)) drop-shadow(0 0 7px var(--ring-glow));
    --ring-angle: 0deg;
    animation: premium-comet-spin 2.5s linear infinite;
    pointer-events: none;
    z-index: 2;
}

.avatar-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.avatar-controls {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    flex: 1;
    transition: opacity .2s;
}

.avatar-control-row {
    display: grid;
    grid-template-columns: 80px 32px 1fr 32px;
    align-items: center;
    gap: .6rem;
}

.control-label {
    font-family: var(--font-display);
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted);
    width: 80px;
    flex-shrink: 0;
}

.control-value {
    font-family: var(--font-body);
    font-size: .82rem;
    color: var(--text-main);
    text-align: center;
    justify-self: center;
}

.control-swatch {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .1);
    justify-self: center;
}

.avatar-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
    color: var(--text-muted);
    cursor: pointer;
    transition: all .2s;
    flex-shrink: 0;
}

.avatar-arrow:hover:not(:disabled) {
    border-color: rgba(245, 200, 66, .35);
    color: var(--gold);
    background: rgba(245, 200, 66, .08);
}

.avatar-arrow:disabled {
    opacity: .3;
    cursor: not-allowed;
}

/* ── Avatar Source Options ────────────────────────────────────────────── */
.avatar-source-options {
    display: flex;
    gap: .8rem;
}

.source-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    padding: 1rem .8rem;
    background: rgba(255, 255, 255, .03);
    border: 2px solid rgba(255, 255, 255, .06);
    border-radius: 14px;
    cursor: pointer;
    transition: all .2s;
}

.source-card:hover:not(:disabled) {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .12);
}

.source-card.active {
    border-color: rgba(245, 200, 66, .5);
    background: rgba(245, 200, 66, .06);
    box-shadow: 0 0 20px rgba(245, 200, 66, .08);
}

.source-card.disabled {
    opacity: .35;
    cursor: not-allowed;
}

.source-card-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, .05);
}

.source-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.source-card-label {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 500;
    color: var(--text-main);
}

.source-card-hint {
    font-size: .68rem;
    color: var(--text-dim);
}

.source-card-stale {
    font-size: .62rem;
    color: #ff9944;
    font-family: var(--font-body);
    font-weight: 500;
}

/* ── Linked Accounts ─────────────────────────────────────────────────── */
.linked-accounts {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.linked-account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 1rem;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
}

.linked-account-info {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.linked-account-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    flex-shrink: 0;
}

.linked-account-text {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.linked-account-name {
    font-family: var(--font-display);
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-main);
}

.linked-account-email {
    font-size: .72rem;
    color: var(--text-muted);
}

.linked-account-btn {
    font-family: var(--font-display);
    font-size: .75rem;
    font-weight: 600;
    padding: .4rem .9rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all .2s;
}

.link-btn {
    background: rgba(245, 200, 66, .1);
    border: 1px solid rgba(245, 200, 66, .3);
    color: var(--gold);
}

.link-btn:hover:not(:disabled) {
    background: rgba(245, 200, 66, .2);
    box-shadow: 0 0 12px rgba(245, 200, 66, .15);
}

.unlink-btn {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    color: var(--text-muted);
}

.unlink-btn:hover:not(:disabled) {
    border-color: rgba(255, 68, 68, .4);
    color: #ff4444;
    background: rgba(255, 68, 68, .06);
}

.linked-account-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.linked-account-actions {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.refresh-avatar-btn {
    background: rgba(114, 137, 218, .08);
    border: 1px solid rgba(114, 137, 218, .3);
    color: #7289da;
    font-size: .7rem;
}
.refresh-avatar-btn:hover:not(:disabled) {
    background: rgba(114, 137, 218, .18);
}

/* ── Save Button ─────────────────────────────────────────────────────── */
.profile-actions {
    margin-top: 1.5rem;
}

.profile-save-btn {
    width: 100%;
    padding: .75rem;
    background: linear-gradient(135deg, #f5c842, #ff8c42);
    color: #0d0a1a;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s;
}

.profile-save-btn:hover:not(:disabled) {
    box-shadow: 0 4px 24px rgba(245, 200, 66, .35);
    transform: translateY(-1px);
}

.profile-save-btn:disabled {
    opacity: .6;
    cursor: wait;
}

/* ── Profile Page Responsive ─────────────────────────────────────────── */
@media (max-width: 480px) {
    .profile-page {
        padding: 5rem 4% 3rem;
    }

    .profile-card {
        padding: 1.8rem 1.2rem 1.5rem;
    }

    .profile-title {
        font-size: 1.25rem;
    }

    .avatar-editor {
        flex-direction: column;
        gap: 1.2rem;
    }

    .avatar-preview-wrap {
        width: 100px;
        height: 100px;
    }

    .control-label {
        width: 65px;
        font-size: .7rem;
    }

    .avatar-source-options {
        flex-direction: column;
    }

    .source-card {
        flex-direction: row;
        padding: .8rem;
    }

    .source-card-avatar {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   SHUFFL PASS PAGE
══════════════════════════════════════════════════════════════════════════ */
.pass-page {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6rem 5% 4rem;
    min-height: 80vh;
}

/* ── Hero ── */
.pass-hero {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.pass-hero-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    background: radial-gradient(circle, rgba(245, 200, 66, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.pass-badge-display {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.pass-avatar-demo {
    position: relative;
}

.pass-demo-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
}

.pass-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.pass-title-accent {
    background: linear-gradient(135deg, var(--gold), #ff8c42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pass-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 360px;
    margin: 0 auto;
}

/* ── Card ── */
.pass-card {
    width: 100%;
    max-width: 520px;
    background: var(--bg-card);
    border: 1px solid rgba(245, 200, 66, 0.15);
    border-radius: var(--radius-card);
    padding: 2rem 2rem 1.8rem;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 40px rgba(245, 200, 66, .04);
}

/* ── Benefits ── */
.pass-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.pass-benefit {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.pass-benefit-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(245, 200, 66, 0.08);
    border: 1px solid rgba(245, 200, 66, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.pass-benefit-text h3 {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.pass-benefit-text p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ── CTA ── */
.pass-cta {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.pass-buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 2.2rem;
    background: linear-gradient(135deg, var(--gold), #ff8c42);
    color: #0d0a1a;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(245, 200, 66, 0.25);
}

.pass-buy-btn:hover:not(:disabled) {
    box-shadow: 0 8px 32px rgba(245, 200, 66, 0.4);
    transform: translateY(-2px);
}

.pass-buy-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.pass-cta-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
}

/* ── Active State ── */
.pass-active-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: rgba(245, 200, 66, 0.06);
    border: 1px solid rgba(245, 200, 66, 0.2);
    border-radius: 14px;
    text-align: left;
}

.pass-active-icon {
    flex-shrink: 0;
    color: var(--gold);
}

.pass-active-text h3 {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.2rem;
}

.pass-active-text p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ── Pass Page Responsive ── */
@media (max-width: 480px) {
    .pass-page {
        padding: 5rem 4% 3rem;
    }

    .pass-title {
        font-size: 2rem;
    }

    .pass-card {
        padding: 1.5rem 1.2rem 1.3rem;
    }

    .pass-benefit-icon {
        width: 36px;
        height: 36px;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   PREMIUM AVATAR RING (shared across all pages)
══════════════════════════════════════════════════════════════════════════ */
/* Smooth angle animation via CSS Houdini */
@property --ring-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.premium-avatar-ring {
    --ring-c1: #ffd700;
    --ring-c2: #ff8c42;
    --ring-c3: #fff8e0;
    --ring-glow: rgba(255, 215, 0, .35);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 50%;
    background: transparent;
}

.premium-avatar-ring img {
    border-radius: 50%;
    display: block;
}

/* Subtle orbit track */
.premium-avatar-ring::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 50%;
    border: 1px solid var(--ring-glow);
    opacity: .25;
    pointer-events: none;
}

/* Orbiting comet: gradient trail masked into a thin ring + glow */
.premium-avatar-ring::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from var(--ring-angle),
    transparent 0%,
    transparent 70%,
    var(--ring-c2) 88%,
    var(--ring-c1) 93%,
    var(--ring-c3) 96%,
    var(--ring-c1) 98%,
    transparent 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px), #000 100%);
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px), #000 100%);
    filter: drop-shadow(0 0 3px var(--ring-glow)) drop-shadow(0 0 7px var(--ring-glow));
    --ring-angle: 0deg;
    animation: premium-comet-spin 2.5s linear infinite;
    pointer-events: none;
}

@keyframes premium-comet-spin {
    to {
        --ring-angle: 360deg;
    }
}

/* ── Ring color variants ── */
.premium-avatar-ring.ring-purple {
    --ring-c1: #b388ff;
    --ring-c2: #7c4dff;
    --ring-c3: #edd5ff;
    --ring-glow: rgba(179, 136, 255, .35);
}

.premium-avatar-ring.ring-emerald {
    --ring-c1: #69f0ae;
    --ring-c2: #00c853;
    --ring-c3: #e0ffe8;
    --ring-glow: rgba(105, 240, 174, .35);
}

.premium-avatar-ring.ring-ice {
    --ring-c1: #80d8ff;
    --ring-c2: #0091ea;
    --ring-c3: #e0f7ff;
    --ring-glow: rgba(128, 216, 255, .35);
}

.premium-avatar-ring.ring-fire {
    --ring-c1: #ff5252;
    --ring-c2: #ff1744;
    --ring-c3: #ffe0e0;
    --ring-glow: rgba(255, 82, 82, .35);
}

/* ── Premium Name Badge ── */
.premium-name-badge {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    padding: 1px 6px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #f5c842, #ff8c42, #ffd700);
    color: #1a1a2e;
    font-size: 0.65em;
    font-weight: 700;
    line-height: 1;
    margin-left: 0.3em;
    box-shadow: 0 0 8px rgba(245, 200, 66, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.premium-name-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    animation: premium-badge-shimmer 3s ease-in-out infinite;
}

@keyframes premium-badge-shimmer {

    0%,
    100% {
        left: -100%;
    }

    50% {
        left: 100%;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   AVATAR FRAME PICKER (profile page)
══════════════════════════════════════════════════════════════════════════ */
.frame-options {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
}

.frame-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 1rem .8rem .8rem;
    background: rgba(255, 255, 255, .03);
    border: 2px solid rgba(255, 255, 255, .06);
    border-radius: 14px;
    cursor: pointer;
    transition: all .2s;
    min-width: 90px;
    flex: 1;
}
.frame-card:hover:not(:disabled) {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .12);
}
.frame-card.active {
    border-color: rgba(245, 200, 66, .5);
    background: rgba(245, 200, 66, .06);
    box-shadow: 0 0 20px rgba(245, 200, 66, .08);
}

.frame-card-preview {
    width: 56px;
    height: 56px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.frame-card-preview img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
/* The ring wrapper inside the preview overrides size */
.frame-card-preview .premium-avatar-ring {
    padding: 4px;
}
.frame-card-preview .premium-avatar-ring img {
    width: 44px;
    height: 44px;
}

.frame-card-label {
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 500;
    color: var(--text-muted);
}
.frame-card.active .frame-card-label {
    color: var(--gold);
}

/* ── Locked state (non-premium) ── */
.frame-card.locked {
    cursor: not-allowed;
    opacity: .4;
    filter: grayscale(.6);
    pointer-events: none;
}
.frame-lock-hint {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--font-body);
    font-size: .78rem;
    color: var(--text-muted);
    margin-bottom: .5rem;
}
.frame-lock-hint svg { flex-shrink: 0; opacity: .7; }
.frame-lock-hint strong { color: var(--gold); }

@media (max-width: 600px) {
    .frame-options { gap: .5rem; }
    .frame-card { padding: .7rem .5rem .6rem; min-width: 72px; }
    .frame-card-preview { width: 48px; height: 48px; }
    .frame-card-preview .premium-avatar-ring img { width: 36px; height: 36px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   SHUFFL PASS — Profile Section (compact card)
══════════════════════════════════════════════════════════════════════════ */
.pass-profile-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.25s;
    cursor: pointer;
}

.pass-profile-card--inactive {
    background: rgba(245, 200, 66, 0.04);
    border: 1px solid rgba(245, 200, 66, 0.12);
}

.pass-profile-card--inactive:hover {
    background: rgba(245, 200, 66, 0.08);
    border-color: rgba(245, 200, 66, 0.25);
}

.pass-profile-card--active {
    background: rgba(245, 200, 66, 0.06);
    border: 1px solid rgba(245, 200, 66, 0.2);
}

.pass-profile-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pass-profile-card--inactive .pass-profile-icon {
    background: rgba(245, 200, 66, 0.1);
    color: var(--gold);
}

.pass-profile-card--active .pass-profile-icon {
    background: rgba(245, 200, 66, 0.12);
    color: var(--gold);
}

.pass-profile-info h4 {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.pass-profile-card--inactive .pass-profile-info h4 {
    color: var(--gold);
}

.pass-profile-card--active .pass-profile-info h4 {
    color: var(--gold);
}

.pass-profile-info p {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.pass-profile-arrow {
    margin-left: auto;
    color: var(--text-dim);
    transition: color 0.2s;
}

.pass-profile-card:hover .pass-profile-arrow {
    color: var(--gold);
}

/* ══════════════════════════════════════════════════════════════════════════
   HUB — Pass Banner (for non-premium users)
══════════════════════════════════════════════════════════════════════════ */
.pass-banner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto 2rem;
    padding: 0.9rem 1.5rem;
    background: rgba(245, 200, 66, 0.05);
    border: 1px solid rgba(245, 200, 66, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.25s;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.pass-banner:hover {
    background: rgba(245, 200, 66, 0.08);
    border-color: rgba(245, 200, 66, 0.3);
    box-shadow: 0 4px 20px rgba(245, 200, 66, 0.1);
}

.pass-banner-star {
    font-size: 1.3rem;
    line-height: 1;
}

.pass-banner-text {
    flex: 1;
}

.pass-banner-text strong {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gold);
}

.pass-banner-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.pass-banner-arrow {
    color: var(--gold);
    opacity: 0.6;
    transition: opacity 0.2s;
}

.pass-banner:hover .pass-banner-arrow {
    opacity: 1;
}

/* ── Premium Toast ── */
.premium-toast {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 9999;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    animation: toast-in 0.4s ease forwards, toast-out 0.4s ease 3.5s forwards;
    pointer-events: none;
}

.premium-toast--success {
    background: rgba(245, 200, 66, 0.15);
    border: 1px solid rgba(245, 200, 66, 0.3);
    color: var(--gold);
    box-shadow: 0 8px 30px rgba(245, 200, 66, 0.15);
}

.premium-toast--cancelled {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

@keyframes toast-in {
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes toast-out {
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

/* ══════════════════════════════════════════════════════════════════════
   Legal Pages (Impressum, Datenschutz, AGB)
   ══════════════════════════════════════════════════════════════════════ */

.legal-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 6rem 5% 4rem;
    position: relative;
    z-index: 2;
}

.legal-card {
    width: 100%;
    max-width: 780px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 3rem;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--font-body);
    font-size: .78rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 1.2rem;
    transition: color .2s;
}

.legal-back:hover {
    color: var(--text-main);
}

.legal-back svg {
    opacity: .6;
}

.legal-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: .5rem;
}

.legal-updated {
    font-family: var(--font-body);
    font-size: .75rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.legal-section {
    margin-bottom: 1.8rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--purple-light);
    margin-bottom: .8rem;
}

.legal-section h3 {
    font-family: var(--font-display);
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 1rem;
    margin-bottom: .5rem;
}

.legal-section p {
    font-family: var(--font-body);
    font-size: .85rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: .6rem;
}

.legal-section ul {
    list-style: disc;
    padding-left: 1.4rem;
    margin-bottom: .8rem;
}

.legal-section ul li {
    font-family: var(--font-body);
    font-size: .85rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: .3rem;
}

.legal-section ul li::marker {
    color: var(--purple-light);
}

.legal-section a {
    color: var(--purple-light);
    text-decoration: none;
    transition: color .2s;
}

.legal-section a:hover {
    color: var(--pink);
    text-decoration: underline;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: .8rem;
}

.legal-table td {
    font-family: var(--font-body);
    font-size: .85rem;
    color: var(--text-muted);
    padding: .35rem .6rem .35rem 0;
    vertical-align: top;
}

.legal-table td:first-child {
    color: var(--text-main);
    font-weight: 500;
    white-space: nowrap;
    width: 140px;
}

.legal-placeholder {
    color: var(--pink);
    font-weight: 500;
}

/* ── Footer Links ─────────────────────────────────────────────────── */

.footer-links {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-family: var(--font-body);
    font-size: .75rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color .2s;
}

.footer-links a:hover {
    color: var(--text-muted);
}

.footer-sep {
    color: var(--text-dim);
    font-size: .65rem;
    user-select: none;
}

/* ── Legal Pages Responsive ───────────────────────────────────────── */

@media (max-width: 700px) {
    .legal-page {
        padding: 5rem 3% 3rem;
    }

    .legal-card {
        padding: 1.8rem 1.4rem;
    }

    .legal-title {
        font-size: 1.25rem;
    }

    .legal-section h2 {
        font-size: .95rem;
    }

    .legal-section p,
    .legal-section ul li,
    .legal-table td {
        font-size: .8rem;
    }

    .legal-table td:first-child {
        white-space: normal;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   Shuffl Pass — Early Access (Hub card + in-game blocker)
══════════════════════════════════════════════════════════════════════ */

.chip-early-access {
    background: linear-gradient(135deg, rgba(245, 200, 66, 0.18), rgba(245, 200, 66, 0.08));
    border-color: rgba(245, 200, 66, 0.4);
    color: var(--gold);
    box-shadow: 0 0 18px rgba(245, 200, 66, 0.15);
}

.chip-early-access svg {
    width: 11px;
    height: 11px;
}

.ea-countdown-strip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-pill);
    background: rgba(245, 200, 66, 0.08);
    border: 1px solid rgba(245, 200, 66, 0.22);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.ea-countdown-strip svg {
    width: 12px;
    height: 12px;
    opacity: 0.85;
}

/* Non-premium card: full-card pass-lock overlay */
.game-card.ea-locked {
    cursor: pointer;
}

.pass-lock-overlay {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    padding: 1.25rem;
    text-align: center;
    background: linear-gradient(160deg, rgba(8, 6, 18, 0.82), rgba(30, 20, 55, 0.72));
    backdrop-filter: blur(6px);
    border-radius: inherit;
}

.pass-lock-title {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.pass-lock-title svg {
    width: 14px;
    height: 14px;
}

.pass-lock-countdown {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.55rem;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
}

.pass-lock-countdown .ea-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 2.6rem;
    padding: 0.4rem 0.5rem 0.3rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(245, 200, 66, 0.18);
    border-radius: 10px;
}

.pass-lock-countdown .ea-num {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-main);
}

.pass-lock-countdown .ea-lbl {
    margin-top: 0.25rem;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.pass-lock-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, #f5c842, #d9a820);
    color: #1a1405;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(245, 200, 66, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pass-lock-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(245, 200, 66, 0.38);
}

.pass-lock-cta svg {
    width: 14px;
    height: 14px;
}

.pass-lock-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* In-game blocker overlay (loaded by early-access-guard.js) */
.ea-guard-root {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(8, 6, 18, 0.92);
    backdrop-filter: blur(10px);
    font-family: 'DM Sans', system-ui, sans-serif;
    color: #f0ecff;
}

.ea-guard-card {
    width: min(520px, 100%);
    padding: 2.25rem 2rem;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(30, 20, 55, 0.9), rgba(18, 13, 35, 0.95));
    border: 1px solid rgba(245, 200, 66, 0.28);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 40px rgba(245, 200, 66, 0.08);
    text-align: center;
}

.ea-guard-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 100px;
    background: rgba(245, 200, 66, 0.12);
    border: 1px solid rgba(245, 200, 66, 0.35);
    color: #f5c842;
    font-family: 'Syne', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ea-guard-title {
    margin-top: 1rem;
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.ea-guard-sub {
    margin-top: 0.5rem;
    color: #b5adce;
    font-size: 0.95rem;
    line-height: 1.5;
}

.ea-guard-countdown {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin: 1.4rem 0 1.2rem;
    font-variant-numeric: tabular-nums;
}

.ea-guard-countdown .ea-unit {
    min-width: 4rem;
    padding: 0.7rem 0.5rem 0.55rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(245, 200, 66, 0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ea-guard-countdown .ea-num {
    font-family: 'Syne', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
}

.ea-guard-countdown .ea-lbl {
    margin-top: 0.35rem;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7a6e9a;
}

.ea-guard-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.4rem;
}

.ea-guard-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    border-radius: 100px;
    background: linear-gradient(135deg, #f5c842, #d9a820);
    color: #1a1405;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(245, 200, 66, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

.ea-guard-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(245, 200, 66, 0.4);
}

.ea-guard-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1rem;
    border-radius: 100px;
    background: transparent;
    color: #b5adce;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.ea-guard-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.28);
    color: #f0ecff;
}

@media (max-width: 500px) {
    .ea-guard-countdown .ea-unit {
        min-width: 3.2rem;
    }
    .ea-guard-countdown .ea-num {
        font-size: 1.5rem;
    }
}
/* -- Early Access Additions -- */
.chip-early-access {
    background: rgba(220, 180, 50, 0.15);
    border-color: rgba(220, 180, 50, 0.4);
    color: #ffd700;
}

.early-access-banner {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    background: linear-gradient(to right, rgba(220, 180, 50, 0.9), rgba(255, 140, 0, 0.85));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #fff;
    z-index: 10;
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 30px rgba(220, 180, 50, 0.2);
}

.game-card:hover:not(.locked) .early-access-banner {
    bottom: 0;
}

.ea-banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.ea-banner-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ea-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

.ea-countdown {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ea-released .ea-countdown {
    color: #00e5a0;
}
