@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

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

body {
    background: url('images/UNBOXING-BG.png') no-repeat center top;
    background-size: cover;
    background-attachment: fixed;
    background-color: #0d0d12;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    overflow-x: hidden;
}

/* Centered Box Image */
.center-box {
    position: fixed;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.center-box img {
    max-width: 700px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.5));
    transition: transform 0.1s ease;
}

/* Box Shake Animation beim Spin - sanft */
.center-box.spinning img {
    animation: boxShake 0.8s ease-in-out infinite;
}

@keyframes boxShake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-3px) rotate(-0.3deg); }
    50% { transform: translateX(3px) rotate(0.3deg); }
    75% { transform: translateX(-2px) rotate(-0.2deg); }
}

.app {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* ==================== HEADER - GANZ OBEN ==================== */
.header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 50vh;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 15px;
    z-index: 10;
}

.header-logo {
    max-width: 650px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 30px rgba(0, 0, 0, 0.6));
}

.header-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    color: #fff;
    letter-spacing: 12px;
    text-transform: uppercase;
    margin-top: 5px;
}

/* ==================== ROLL SECTION ==================== */
.roll-section {
    width: 100%;
    max-width: 1400px;
    margin-top: 18vh;
    z-index: 10;
    padding: 0 20px;
}

.roll-container {
    position: relative;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow:
        0 0 25px rgba(147, 112, 219, 0.3),
        0 0 50px rgba(138, 43, 226, 0.15),
        inset 0 0 20px rgba(147, 112, 219, 0.03);
}

.roll-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 17px;
    background: conic-gradient(
        from var(--border-angle, 0deg),
        #9370db 0%,
        #8a2be2 20%,
        #9370db 40%,
        #7b68ee 60%,
        #9370db 80%,
        #8a2be2 100%
    );
    z-index: -1;
    animation: rotateBorder 8s linear infinite, borderPulse 4s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

.roll-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.8);
    z-index: -1;
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotateBorder {
    from {
        --border-angle: 0deg;
    }
    to {
        --border-angle: 360deg;
    }
}

.roll-indicator {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #ffd700 0%, #ffaa00 100%);
    z-index: 10;
    box-shadow: 0 0 20px #ffd700, 0 0 40px rgba(255, 215, 0, 0.5);
}

.roll-indicator::before,
.roll-indicator::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
}

.roll-indicator::before {
    top: -6px;
    border-top: 10px solid #ffd700;
}

.roll-indicator::after {
    bottom: -6px;
    border-bottom: 10px solid #ffd700;
}

.roll-window {
    overflow: hidden;
    border-radius: 12px;
    background: rgba(5, 5, 10, 0.95);
    height: 200px;
    position: relative;
}

/* Fade-Out an den Seiten - versteckt wer als nächstes kommt */
.roll-window::before,
.roll-window::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    z-index: 5;
    pointer-events: none;
}

.roll-window::before {
    left: 0;
    background: linear-gradient(to right, rgba(5, 5, 10, 0.9) 0%, transparent 100%);
}

.roll-window::after {
    right: 0;
    background: linear-gradient(to left, rgba(5, 5, 10, 0.9) 0%, transparent 100%);
}

.items-track {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
}

/* Drop Pulse Animation - schnelles schwarzes Pulsieren vor dem Drop */
.items-track.drop-pulse .roll-item {
    animation: dropPulse 0.15s ease-in-out infinite;
}

@keyframes dropPulse {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(0.3);
    }
}

.roll-item {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.85);
}

.roll-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
}

/* Rarity Colors */
.rarity-common::after { background: #9e9e9e; }
.rarity-rare::after { background: #4a90d9; }
.rarity-epic::after { background: #9b59b6; }
.rarity-legendary::after { background: #e74c3c; }
.rarity-stier::after { background: linear-gradient(90deg, #ffd700, #ffaa00, #ffd700); }

.rarity-common { background: rgba(158, 158, 158, 0.1); }
.rarity-rare { background: rgba(74, 144, 217, 0.1); }
.rarity-epic { background: rgba(155, 89, 182, 0.1); }
.rarity-legendary { background: rgba(231, 76, 60, 0.1); }
.rarity-stier { background: rgba(255, 215, 0, 0.15); }

.roll-item img {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
}

.roll-item span {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* ==================== BUTTON SECTION ==================== */
.button-section {
    margin-top: 18vh;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
}

.button-icon {
    width: 50px;
    height: 50px;
    opacity: 0.8;
    filter: drop-shadow(0 0 10px rgba(134, 80, 178, 0.5));
    animation: iconFloat 3s ease-in-out infinite;
}

.button-icon-left {
    animation-delay: 0s;
}

.button-icon-right {
    animation-delay: 1.5s;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-8px) rotate(10deg);
        opacity: 1;
    }
}

/* Button Icons beim Spin - sanft schweben */
.button-icon-left.spinning {
    animation: iconFloatLeft 2s ease-in-out infinite;
}

.button-icon-right.spinning {
    animation: iconFloatRight 2s ease-in-out infinite;
}

@keyframes iconFloatLeft {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-12px) translateX(-5px) rotate(-15deg) scale(1.1); }
}

@keyframes iconFloatRight {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-12px) translateX(5px) rotate(15deg) scale(1.1); }
}

/* Floating Particles Container */
.spin-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.spin-particle {
    position: absolute;
    width: 30px;
    height: 30px;
    opacity: 0;
}

.spin-particle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.spin-particle.active {
    animation: particleFly 3s ease-out forwards;
}

.spin-particle.active.fly-left {
    animation: particleFlyLeft 3s ease-out forwards;
}

.spin-particle.active.fly-right {
    animation: particleFlyRight 3s ease-out forwards;
}

@keyframes particleFly {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5) rotate(0deg);
    }
    15% {
        opacity: 0.7;
    }
    100% {
        opacity: 0;
        transform: translateY(-40vh) scale(0.6) rotate(180deg);
    }
}

@keyframes particleFlyLeft {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.5) rotate(0deg);
    }
    15% {
        opacity: 0.7;
    }
    100% {
        opacity: 0;
        transform: translate(-30vw, -30vh) scale(0.6) rotate(-180deg);
    }
}

@keyframes particleFlyRight {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.5) rotate(0deg);
    }
    15% {
        opacity: 0.7;
    }
    100% {
        opacity: 0;
        transform: translate(30vw, -30vh) scale(0.6) rotate(180deg);
    }
}

.unbox-button {
    padding: 18px 55px;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #1a1a2e;
    background: linear-gradient(180deg, #fff9e6 0%, #f5d98a 50%, #d4a853 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(255, 200, 100, 0.4),
        0 0 100px rgba(255, 180, 50, 0.2),
        inset 0 2px 10px rgba(255, 255, 255, 0.5);
    font-family: 'Poppins', sans-serif;
    animation: buttonPulse 2s ease-in-out infinite, buttonBounce 3s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow:
            0 8px 30px rgba(0, 0, 0, 0.5),
            0 0 50px rgba(255, 200, 100, 0.4),
            0 0 100px rgba(255, 180, 50, 0.2),
            inset 0 2px 10px rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow:
            0 8px 30px rgba(0, 0, 0, 0.5),
            0 0 70px rgba(255, 200, 100, 0.6),
            0 0 140px rgba(255, 180, 50, 0.3),
            inset 0 2px 10px rgba(255, 255, 255, 0.5);
    }
}

@keyframes buttonBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.02);
    }
}

.unbox-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(255, 200, 100, 0.7),
        0 0 150px rgba(255, 180, 50, 0.4),
        inset 0 2px 10px rgba(255, 255, 255, 0.6);
    background: linear-gradient(180deg, #fff 0%, #ffe5a0 50%, #e8c060 100%);
    animation: none;
}

.unbox-button:active {
    transform: translateY(0) scale(0.98);
}

.unbox-button:disabled {
    background: linear-gradient(180deg, #555 0%, #333 100%);
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
}

/* ==================== REWARDS SIDEBARS (einklappbar) ==================== */
/* Wrapper für einklappbare Sidebars */
.sidebar-wrapper {
    position: fixed;
    bottom: 0;
    z-index: 5;
    transition: transform 0.4s ease;
}

.sidebar-wrapper.left {
    left: 30px;
}

.sidebar-wrapper.right {
    right: 30px;
}

.sidebar-wrapper.collapsed {
    transform: translateY(calc(100% - 30px));
}

.sidebar-wrapper:hover {
    transform: translateY(0);
}

/* Trigger Button - stylisch mit Glow */
.sidebar-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 35px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(147, 112, 219, 0.4) 0%, rgba(100, 60, 180, 0.6) 100%);
    border-radius: 12px 12px 0 0;
    border: 2px solid rgba(147, 112, 219, 0.6);
    border-bottom: none;
    cursor: pointer;
    transition: all 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 -5px 20px rgba(147, 112, 219, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Trigger verstecken wenn Bar ausgeklappt */
.sidebar-wrapper:not(.collapsed) .sidebar-trigger {
    opacity: 0;
    pointer-events: none;
}

.sidebar-trigger:hover {
    background: linear-gradient(180deg, rgba(147, 112, 219, 0.6) 0%, rgba(120, 80, 200, 0.8) 100%);
    border-color: rgba(180, 150, 255, 0.8);
    box-shadow: 0 -8px 30px rgba(147, 112, 219, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.sidebar-trigger-icon {
    font-size: 1.1rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(147, 112, 219, 0.6);
    transition: all 0.3s ease;
}

.sidebar-trigger:hover .sidebar-trigger-icon {
    text-shadow: 0 0 15px rgba(255, 215, 0, 1), 0 0 30px rgba(147, 112, 219, 0.8);
    transform: translateY(-1px);
}

.rewards-sidebar {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.rewards-sidebar::-webkit-scrollbar {
    width: 4px;
}

.rewards-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 2px;
}

.sidebar-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    width: 130px;
    flex-shrink: 0;
}

.sidebar-item:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.sidebar-item.rarity-common::after { background: #9e9e9e; }
.sidebar-item.rarity-rare::after { background: #4a90d9; }
.sidebar-item.rarity-epic::after { background: #9b59b6; }
.sidebar-item.rarity-legendary::after { background: #e74c3c; }
.sidebar-item.rarity-stier::after { background: linear-gradient(90deg, #ffd700, #ffaa00, #ffd700); }

.sidebar-item img {
    max-width: 85px;
    max-height: 85px;
    object-fit: contain;
    margin-bottom: 8px;
}

.sidebar-item h3 {
    font-size: 0.75rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-item .rarity-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.sidebar-item.rarity-common .rarity-label { color: #9e9e9e; }
.sidebar-item.rarity-rare .rarity-label { color: #4a90d9; }
.sidebar-item.rarity-epic .rarity-label { color: #9b59b6; }
.sidebar-item.rarity-legendary .rarity-label { color: #e74c3c; }
.sidebar-item.rarity-stier .rarity-label { color: #ffd700; }

/* ==================== ITEM PREVIEW ==================== */
.item-preview {
    position: fixed;
    top: 78%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 15, 25, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px 50px;
    text-align: center;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), 0 0 80px rgba(255, 200, 100, 0.1);
}

.item-preview.show {
    opacity: 1;
    visibility: visible;
}

.item-preview img {
    max-width: 250px;
    max-height: 250px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 20px rgba(0, 0, 0, 0.5));
}

.item-preview h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.item-preview p {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
}

.item-preview.rarity-common { border-color: #9e9e9e; }
.item-preview.rarity-common p { color: #9e9e9e; }
.item-preview.rarity-rare { border-color: #4a90d9; }
.item-preview.rarity-rare p { color: #4a90d9; }
.item-preview.rarity-epic { border-color: #9b59b6; }
.item-preview.rarity-epic p { color: #9b59b6; }
.item-preview.rarity-legendary { border-color: #e74c3c; }
.item-preview.rarity-legendary p { color: #e74c3c; }
.item-preview.rarity-stier { border-color: #ffd700; }
.item-preview.rarity-stier p { color: #ffd700; }

/* ==================== WON OVERLAY ==================== */
.won-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 100;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.won-overlay.show {
    display: flex;
}

/* Seitliche Winner/Cooked Videos */
.won-side-video {
    position: absolute;
    top: 50%;
    width: 280px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}

.won-side-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.won-side-left {
    left: calc(25% - 140px);
    transform: translateY(-50%);
    animation: wonVideoFloatLeft 3s ease-in-out infinite, wonVideoPulse 2s ease-in-out infinite;
}

.won-side-right {
    right: calc(25% - 140px);
    transform: translateY(-50%);
    animation: wonVideoFloatRight 3s ease-in-out infinite, wonVideoPulse 2s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes wonVideoPulse {
    0%, 100% {
        opacity: 0.85;
    }
    50% {
        opacity: 1;
    }
}

@keyframes wonVideoFloatLeft {
    0%, 100% {
        transform: translateY(-50%) scale(1) rotate(-2deg);
    }
    50% {
        transform: translateY(calc(-50% - 15px)) scale(1.05) rotate(2deg);
    }
}

@keyframes wonVideoFloatRight {
    0%, 100% {
        transform: translateY(-50%) scale(1) rotate(2deg);
    }
    50% {
        transform: translateY(calc(-50% - 15px)) scale(1.05) rotate(-2deg);
    }
}

.won-content {
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(100vh) scale(0.3);
    background: rgba(20, 20, 30, 0.85);
    backdrop-filter: blur(20px);
    padding: 50px 60px;
    border-radius: 30px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow:
        0 0 60px rgba(255, 200, 100, 0.15),
        0 0 120px rgba(255, 200, 100, 0.1),
        inset 0 0 60px rgba(255, 200, 100, 0.03);
}

.won-content.animate-in {
    animation: flyFromBox 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes flyFromBox {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0.2) rotateX(45deg);
    }
    30% {
        opacity: 1;
        transform: translateY(50vh) scale(0.6) rotateX(20deg);
    }
    60% {
        transform: translateY(-20px) scale(1.1) rotateX(-5deg);
    }
    80% {
        transform: translateY(10px) scale(0.95) rotateX(2deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

.won-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, currentColor 0%, transparent 70%);
    opacity: 0;
    pointer-events: none;
}

.won-content.animate-in .won-glow {
    animation: glowAppear 0.5s 0.5s ease forwards, pulse 2s 1s ease infinite;
}

@keyframes glowAppear {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    to { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
}

.won-image {
    max-width: 280px;
    max-height: 280px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}

.won-content.animate-in .won-image {
    animation: itemFloat 3s 1s ease-in-out infinite;
}

@keyframes itemFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

.won-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 2px 20px currentColor;
}

.won-rarity {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 35px;
    opacity: 0.9;
}

.close-button {
    padding: 14px 50px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    background: linear-gradient(180deg, #f5e6c8 0%, #d4b896 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.close-button:hover {
    transform: scale(1.05);
    background: linear-gradient(180deg, #fff 0%, #e8d4b8 100%);
}

/* Rarity Colors for Won Content */
.won-content.rarity-common {
    color: #9e9e9e;
    border-color: #9e9e9e;
    box-shadow: 0 0 60px rgba(158, 158, 158, 0.3), 0 0 120px rgba(158, 158, 158, 0.15), inset 0 0 60px rgba(158, 158, 158, 0.05);
}
.won-content.rarity-rare {
    color: #4a90d9;
    border-color: #4a90d9;
    box-shadow: 0 0 60px rgba(74, 144, 217, 0.3), 0 0 120px rgba(74, 144, 217, 0.15), inset 0 0 60px rgba(74, 144, 217, 0.05);
}
.won-content.rarity-epic {
    color: #9b59b6;
    border-color: #9b59b6;
    box-shadow: 0 0 60px rgba(155, 89, 182, 0.3), 0 0 120px rgba(155, 89, 182, 0.15), inset 0 0 60px rgba(155, 89, 182, 0.05);
}
.won-content.rarity-legendary {
    color: #e74c3c;
    border-color: #e74c3c;
    box-shadow: 0 0 60px rgba(231, 76, 60, 0.3), 0 0 120px rgba(231, 76, 60, 0.15), inset 0 0 60px rgba(231, 76, 60, 0.05);
}
.won-content.rarity-stier {
    color: #ffd700;
    border-color: #ffd700;
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.4), 0 0 120px rgba(255, 215, 0, 0.2), inset 0 0 60px rgba(255, 215, 0, 0.08);
}

/* Punishment Rarity */
.won-content.rarity-punishment {
    color: #8b0000;
    border-color: #8b0000;
    box-shadow: 0 0 60px rgba(139, 0, 0, 0.5), 0 0 120px rgba(139, 0, 0, 0.3), inset 0 0 60px rgba(139, 0, 0, 0.1);
}

.rarity-punishment::after { background: linear-gradient(90deg, #8b0000, #dc143c, #8b0000); }
.rarity-punishment { background: rgba(139, 0, 0, 0.2); }

.sidebar-item.rarity-punishment::after { background: linear-gradient(90deg, #8b0000, #dc143c, #8b0000); }
.sidebar-item.rarity-punishment .rarity-label { color: #dc143c; }

.item-preview.rarity-punishment { border-color: #dc143c; }
.item-preview.rarity-punishment p { color: #dc143c; }

.won-player {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.won-player-label {
    color: rgba(255, 255, 255, 0.7);
}

.won-player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ffd700;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.won-player-avatar img,
.won-player-avatar video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.won-player-name {
    color: #ffd700;
    font-weight: 600;
    font-size: 1.1rem;
}

/* ==================== MODE DISPLAY (oben rechts) ==================== */
.mode-display {
    position: fixed;
    top: 20px;
    right: 20px;
    display: none;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(147, 112, 219, 0.4);
    z-index: 50;
}

.mode-display.show {
    display: flex;
}

.mode-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.mode-value {
    font-size: 1rem;
    font-weight: 700;
    color: #ffd700;
}

.mode-switch-btn {
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a1a2e;
    background: linear-gradient(180deg, #f5e6c8 0%, #d4b896 100%);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.mode-switch-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(180deg, #fff 0%, #e8d4b8 100%);
}

.mode-display-logo {
    height: 24px;
    width: auto;
    display: none;
}

.mode-display-logo.show {
    display: block;
}

/* ==================== MODE OVERLAY ==================== */
.mode-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 200;
    justify-content: center;
    align-items: center;
}

.mode-overlay.show {
    display: flex;
}

.mode-content {
    text-align: center;
    padding: 50px;
}

.mode-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.mode-logo {
    max-width: 350px;
    height: auto;
    filter: drop-shadow(0 5px 20px rgba(0, 0, 0, 0.5));
}

.mode-favicon {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.4));
}

.mode-subtitle {
    font-size: 1.6rem;
    font-weight: 300;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 10px;
}

.mode-buttons {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.mode-btn {
    padding: 40px 60px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    background: rgba(20, 20, 30, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    width: 320px;
    height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mode-btn:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: #ffd700;
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3);
}

.mode-btn-title {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.mode-btn-desc {
    display: block;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.mode-u18 {
    border-color: rgba(74, 144, 217, 0.4);
}

.mode-u18 .mode-btn-title {
    color: #4a90d9;
}

.mode-u18:hover {
    background: rgba(74, 144, 217, 0.2);
    border-color: #4a90d9;
    box-shadow: 0 20px 60px rgba(74, 144, 217, 0.3);
}

.mode-u26 {
    border-color: rgba(155, 89, 182, 0.4);
}

.mode-u26 .mode-btn-title {
    color: #9b59b6;
}

.mode-u26:hover {
    background: rgba(155, 89, 182, 0.2);
    border-color: #9b59b6;
    box-shadow: 0 20px 60px rgba(155, 89, 182, 0.3);
}

.mode-btn-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-bottom: 20px;
}

.mode-u18 .mode-btn-logo {
    filter: drop-shadow(0 5px 20px rgba(74, 144, 217, 0.5));
}

.mode-u26 .mode-btn-logo {
    filter: drop-shadow(0 5px 20px rgba(155, 89, 182, 0.5));
}

/* ==================== MUSIC SELECTION OVERLAY ==================== */
.music-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.music-overlay.show {
    display: flex;
}

.music-content {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.music-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 30px rgba(147, 112, 219, 0.5);
}

.music-cards {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.music-card {
    width: 220px;
    height: 280px;
    background: linear-gradient(145deg, rgba(30, 30, 50, 0.9), rgba(20, 20, 35, 0.95));
    border: 2px solid rgba(147, 112, 219, 0.4);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
}

.music-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgba(147, 112, 219, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.music-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: rgba(147, 112, 219, 0.8);
    box-shadow: 0 20px 60px rgba(147, 112, 219, 0.4);
}

.music-card:hover::before {
    opacity: 1;
}

.music-card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

.music-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.music-card-number {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: rgba(147, 112, 219, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
}

/* ==================== VARIANT OVERLAY ==================== */
.variant-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 150;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.variant-overlay.show {
    display: flex;
}

/* Farbige Hintergrund-Schimmer für Save (grün) und All-in (rot) */
.variant-overlay::before,
.variant-overlay::after {
    content: '';
    position: absolute;
    top: -50%;
    width: 100%;
    height: 200%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Save Seite - Grüner Schimmer links */
.variant-overlay::before {
    left: -50%;
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(46, 204, 113, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 40% 70%, rgba(46, 204, 113, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 30% 50%, rgba(46, 204, 113, 0.25) 0%, transparent 60%);
    animation: shimmerLeftMove 8s ease-in-out infinite, shimmerLeftPulse 3s ease-in-out infinite;
}

/* All-in Seite - Roter Schimmer rechts */
.variant-overlay::after {
    right: -50%;
    background:
        radial-gradient(ellipse 80% 60% at 80% 30%, rgba(231, 76, 60, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 60% 70%, rgba(231, 76, 60, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 70% 50%, rgba(231, 76, 60, 0.25) 0%, transparent 60%);
    animation: shimmerRightMove 8s ease-in-out infinite, shimmerRightPulse 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Aktive Seite zeigt Schimmer */
.variant-overlay.save-active::before {
    opacity: 1;
}

.variant-overlay.allin-active::after {
    opacity: 1;
}

/* Bewegungs-Animation für Save (links) */
@keyframes shimmerLeftMove {
    0%, 100% {
        transform: translate(0%, 0%) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(5%, 10%) rotate(2deg) scale(1.05);
    }
    50% {
        transform: translate(10%, -5%) rotate(-1deg) scale(1.1);
    }
    75% {
        transform: translate(-5%, 5%) rotate(1deg) scale(1.02);
    }
}

/* Puls-Animation für Save */
@keyframes shimmerLeftPulse {
    0%, 100% {
        filter: brightness(1) blur(0px);
    }
    50% {
        filter: brightness(1.2) blur(5px);
    }
}

/* Bewegungs-Animation für All-in (rechts) */
@keyframes shimmerRightMove {
    0%, 100% {
        transform: translate(0%, 0%) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(-5%, -10%) rotate(-2deg) scale(1.05);
    }
    50% {
        transform: translate(-10%, 5%) rotate(1deg) scale(1.1);
    }
    75% {
        transform: translate(5%, -5%) rotate(-1deg) scale(1.02);
    }
}

/* Puls-Animation für All-in */
@keyframes shimmerRightPulse {
    0%, 100% {
        filter: brightness(1) blur(0px);
    }
    50% {
        filter: brightness(1.2) blur(5px);
    }
}

.variant-content {
    text-align: center;
    padding: 50px;
}

.variant-logo {
    max-width: 350px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 20px rgba(0, 0, 0, 0.5));
}

.variant-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.variant-player-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.variant-player-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(147, 112, 219, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 3px solid rgba(147, 112, 219, 0.5);
    box-shadow: 0 5px 30px rgba(147, 112, 219, 0.3);
    overflow: hidden;
}

.variant-player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.variant-player-name {
    font-size: 1.4rem;
    color: #ffd700;
    font-weight: 700;
    margin: 0;
}

.variant-buttons {
    display: flex;
    gap: 60px;
    justify-content: center;
    align-items: flex-start;
}

.variant-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s ease;
    position: relative;
    border-radius: 20px;
    padding: 20px;
}

/* Video in den Variant Buttons */
.variant-btn-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    z-index: 0;
    border-radius: 18px;
    pointer-events: none;
}

.variant-btn .variant-btn-title,
.variant-btn .variant-btn-desc {
    position: relative;
    z-index: 1;
}

/* Ausgrauen per JavaScript-Klasse */
.variant-column.dimmed {
    opacity: 0.3;
    filter: grayscale(100%);
}

.variant-column.active {
    opacity: 1;
    filter: grayscale(0%);
}

.variant-btn {
    padding: 30px 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background: rgba(20, 20, 30, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    min-width: 280px;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.variant-btn:hover {
    transform: translateY(-10px) scale(1.05);
}

.variant-btn-title {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.variant-btn-desc {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 220px;
    margin: 0 auto;
}

.variant-save {
    border-color: rgba(46, 204, 113, 0.3);
}

.variant-save:hover {
    border-color: #2ecc71;
    box-shadow: 0 20px 60px rgba(46, 204, 113, 0.3);
    background: rgba(46, 204, 113, 0.1);
}

.variant-save .variant-btn-title {
    color: #2ecc71;
}

.variant-allin {
    border-color: rgba(231, 76, 60, 0.3);
}

.variant-allin:hover {
    border-color: #e74c3c;
    box-shadow: 0 20px 60px rgba(231, 76, 60, 0.3);
    background: rgba(231, 76, 60, 0.1);
}

.variant-allin .variant-btn-title {
    color: #e74c3c;
}

/* Variant Rewards Preview */
.variant-rewards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    max-width: 320px;
}

.variant-reward-item {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.variant-reward-item:hover {
    transform: scale(1.15);
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

/* Dynamische Reward Preview Panel (wechselt Seite) */
.reward-preview-panel {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: rgba(15, 15, 25, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    width: 340px;
    height: auto;
    min-height: 450px;
    text-align: center;
    position: fixed;
    top: 58%;
    transform: translateY(-50%);
    z-index: 250;
    transition: left 0.3s ease, right 0.3s ease;
}

/* Save Preview - links positioniert, mehr nach rechts (zur Mitte) */
.reward-preview-panel.position-left {
    left: 200px;
    right: auto;
}

/* All-in Preview - rechts positioniert, mehr nach links (zur Mitte) */
.reward-preview-panel.position-right {
    right: 200px;
    left: auto;
}

.reward-preview-panel.show {
    display: flex;
}

.reward-preview-panel img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 25px;
}

.reward-preview-panel h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
}

.reward-preview-panel span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.reward-preview-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 15px 0 0 0;
    font-style: italic;
    line-height: 1.4;
    width: 200px;
    min-height: 50px;
}

/* Rarity colors for preview panel */
.reward-preview-panel.rarity-common { border-color: #9e9e9e; }
.reward-preview-panel.rarity-common span { color: #9e9e9e; }
.reward-preview-panel.rarity-rare { border-color: #4a90d9; }
.reward-preview-panel.rarity-rare span { color: #4a90d9; }
.reward-preview-panel.rarity-epic { border-color: #9b59b6; }
.reward-preview-panel.rarity-epic span { color: #9b59b6; }
.reward-preview-panel.rarity-legendary { border-color: #e74c3c; }
.reward-preview-panel.rarity-legendary span { color: #e74c3c; }
.reward-preview-panel.rarity-stier { border-color: #ffd700; }
.reward-preview-panel.rarity-stier span { color: #ffd700; }
.reward-preview-panel.rarity-punishment { border-color: #dc143c; }
.reward-preview-panel.rarity-punishment span { color: #dc143c; }

.variant-reward-item img {
    max-width: 45px;
    max-height: 45px;
    object-fit: contain;
}

.variant-reward-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.variant-reward-item.rarity-common::after { background: #9e9e9e; }
.variant-reward-item.rarity-rare::after { background: #4a90d9; }
.variant-reward-item.rarity-epic::after { background: #9b59b6; }
.variant-reward-item.rarity-legendary::after { background: #e74c3c; }
.variant-reward-item.rarity-stier::after { background: linear-gradient(90deg, #ffd700, #ffaa00, #ffd700); }
.variant-reward-item.rarity-punishment::after { background: linear-gradient(90deg, #8b0000, #dc143c, #8b0000); }

/* ==================== HISTORY LOG (4 Kreise unten Mitte) ==================== */
.history-log {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 50;
}

.history-slot {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.history-slot:hover {
    transform: scale(1.1);
}

.history-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(20, 20, 30, 0.9);
    border: 3px solid rgba(147, 112, 219, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: rgba(147, 112, 219, 0.7);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: all 0.3s ease;
}

.history-circle.filled {
    border-color: #ffd700;
}

.history-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* History Popup */
.history-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 300;
    background: rgba(10, 10, 20, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 40px 50px;
    border: 2px solid rgba(147, 112, 219, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(147, 112, 219, 0.2);
    min-width: 800px;
}

.history-popup.show {
    display: block;
    animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.history-popup-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.history-popup-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.history-popup-column {
    flex: 1;
    max-width: 180px;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.history-popup-column.empty {
    opacity: 0.4;
}

.history-popup-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(147, 112, 219, 0.2);
    border: 3px solid rgba(147, 112, 219, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(147, 112, 219, 0.7);
    margin: 0 auto 15px;
    overflow: hidden;
}

.history-popup-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-popup-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-popup-variant {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.history-popup-variant.save {
    color: #2ecc71;
}

.history-popup-variant.allin {
    color: #e74c3c;
}

.history-popup-item {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.history-popup-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.history-popup-item-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.history-popup-item-rarity {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Rarity colors for popup item */
.history-popup-item.rarity-common .history-popup-item-rarity { color: #9e9e9e; }
.history-popup-item.rarity-rare .history-popup-item-rarity { color: #4a90d9; }
.history-popup-item.rarity-epic .history-popup-item-rarity { color: #9b59b6; }
.history-popup-item.rarity-legendary .history-popup-item-rarity { color: #e74c3c; }
.history-popup-item.rarity-stier .history-popup-item-rarity { color: #ffd700; }
.history-popup-item.rarity-punishment .history-popup-item-rarity { color: #dc143c; }

.history-popup-item.rarity-common { border-color: rgba(158, 158, 158, 0.3); }
.history-popup-item.rarity-rare { border-color: rgba(74, 144, 217, 0.3); }
.history-popup-item.rarity-epic { border-color: rgba(155, 89, 182, 0.3); }
.history-popup-item.rarity-legendary { border-color: rgba(231, 76, 60, 0.3); }
.history-popup-item.rarity-stier { border-color: rgba(255, 215, 0, 0.3); }
.history-popup-item.rarity-punishment { border-color: rgba(220, 20, 60, 0.3); }

/* ==================== PLAYER DISPLAY ==================== */
.player-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px 8px 8px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    z-index: 10;
    position: relative;
}

.player-display.hidden {
    display: none;
}

.player-avatar-container {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(147, 112, 219, 0.5);
}

.player-avatar-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(147, 112, 219, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 2px solid rgba(147, 112, 219, 0.5);
}

.player-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.player-variant {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 15px;
}

.player-variant.save {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.player-variant.all-in {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

/* ==================== PERSON ITEM STYLING ==================== */
.person-item {
    background: rgba(100, 100, 150, 0.15);
}

.person-item::after {
    background: linear-gradient(90deg, #6a5acd, #9370db, #6a5acd);
}

.person-item.winning {
    background: rgba(100, 100, 150, 0.3);
}

.person-avatar {
    font-size: 4rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

.person-avatar-img,
video.person-avatar-img {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    margin-bottom: 18px;
    border: 3px solid rgba(147, 112, 219, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    background: rgba(147, 112, 219, 0.2);
}

/* ==================== PERSON WON STYLING ==================== */
.person-won {
    color: #9370db;
    border-color: #9370db;
    box-shadow: 0 0 60px rgba(147, 112, 219, 0.3), 0 0 120px rgba(147, 112, 219, 0.15), inset 0 0 60px rgba(147, 112, 219, 0.05);
}

.person-glow {
    color: #9370db;
}

.person-icon {
    font-size: 8rem;
    margin-bottom: 20px;
    animation: personBounce 2s ease-in-out infinite;
}

.person-won-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #9370db;
    box-shadow: 0 10px 40px rgba(147, 112, 219, 0.5);
}

@keyframes personBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

/* ==================== RESPONSIVE ==================== */

/* Große Monitore (1600px+ Breite und 1000px+ Höhe) */
@media (min-width: 1600px) and (min-height: 1000px) {
    .header {
        padding-top: 8vh;
    }

    .center-box {
        top: 55%;
    }

    .center-box img {
        max-width: 800px;
    }

    .roll-section {
        margin-top: 20vh;
    }

    .button-section {
        margin-top: 10px;
    }

    .sidebar-wrapper.left {
        left: 50px;
    }

    .sidebar-wrapper.right {
        right: 50px;
    }
}

/* Extra große Monitore (1920px+ Breite und 1000px+ Höhe) */
@media (min-width: 1920px) and (min-height: 1000px) {
    .header {
        padding-top: 10vh;
    }

    .center-box {
        top: 70%;
    }

    .center-box img {
        max-width: 950px;
    }

    .roll-section {
        margin-top: 4vh;
        max-width: 2200px;
        margin-bottom: 20px;
    }

    .button-section {
        margin-top: 60px;
    }

    /* Varianten-Overlay für große Monitore größer */
    .variant-content {
        padding: 40px;
    }

    .variant-buttons {
        gap: 150px;
    }

    .variant-btn {
        padding: 40px 70px;
        font-size: 1.1rem;
        min-width: 350px;
        min-height: 280px;
    }

    .variant-btn-title {
        font-size: 2.2rem;
    }

    .variant-rewards {
        gap: 15px;
        margin-top: 35px;
        max-width: 420px;
    }

    .variant-reward-item {
        width: 85px;
        height: 85px;
    }

    .variant-reward-item img {
        max-width: 60px;
        max-height: 60px;
    }

    .variant-player-info {
        margin-bottom: 35px;
    }

    .variant-player-avatar {
        width: 120px;
        height: 120px;
        font-size: 4rem;
    }

    .variant-player-name {
        font-size: 1.8rem;
    }

    .reward-preview-panel {
        padding: 50px 40px;
        width: 380px;
        height: auto;
        min-height: 500px;
    }

    .reward-preview-panel img {
        width: 220px;
        height: 220px;
        max-width: none;
        max-height: none;
        margin-bottom: 30px;
    }

    .reward-preview-panel h4 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .reward-preview-panel span {
        font-size: 1.1rem;
    }

    .reward-preview-panel .reward-preview-desc {
        font-size: 1.1rem;
        width: 280px;
        margin-top: 20px;
    }
}

/* Große Laptops / kleinere Desktops (max-height für Laptop-Screens) */
@media (max-height: 900px) {
    .roll-section {
        margin-top: 20px;
    }

    .roll-item {
        width: 180px;
        height: 180px;
        padding: 12px;
    }

    .roll-window {
        height: 180px;
    }

    .roll-item img {
        max-width: 100px;
        max-height: 100px;
        margin-bottom: 5px;
    }

    .person-avatar-img {
        width: 100px;
        height: 100px;
        margin-bottom: 25px;
    }

    .person-avatar {
        font-size: 3.2rem;
        margin-bottom: 25px;
    }

    .roll-item span {
        font-size: 0.85rem;
    }

    .header {
        padding-top: 8vh;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 10px;
    }

    .header-logo {
        max-width: 400px;
    }

    .button-section {
        margin-top: 40px;
    }

    .unbox-button {
        padding: 12px 35px;
        font-size: 1.1rem;
    }

    .rewards-sidebar {
        padding: 8px;
        gap: 6px;
    }

    .sidebar-wrapper.left {
        left: 15px;
    }

    .sidebar-wrapper.right {
        right: 15px;
    }

    .sidebar-item {
        width: 100px;
        padding: 8px 6px;
    }

    .sidebar-item img {
        max-width: 60px;
        max-height: 60px;
        margin-bottom: 5px;
    }

    .sidebar-item h3 {
        font-size: 0.65rem;
    }

    .sidebar-item .rarity-label {
        font-size: 0.5rem;
    }

    /* 1. Winner/Cooked Videos kleiner */
    .won-side-video {
        width: 180px;
        height: 260px;
    }

    .won-side-left {
        left: calc(15% - 90px);
    }

    .won-side-right {
        right: calc(15% - 90px);
    }

    /* 2. Preview Panel kleiner und in Ecken */
    .reward-preview-panel {
        padding: 20px;
        width: 220px;
        min-height: 300px;
    }

    .reward-preview-panel.position-left {
        left: 30px;
    }

    .reward-preview-panel.position-right {
        right: 30px;
    }

    .reward-preview-panel img {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }

    .reward-preview-panel h4 {
        font-size: 1rem;
    }

    .reward-preview-panel span {
        font-size: 0.75rem;
    }

    .reward-preview-panel .reward-preview-desc {
        font-size: 0.75rem;
        width: 180px;
    }

    /* 3. Mehr Platz oberhalb des Player Display */
    .player-display {
        margin-top: 30px;
    }
}

/* Noch kleinere Höhe */
@media (max-height: 800px) {
    .roll-section {
        margin-top: 20px;   
    }

    .roll-item {
        width: 150px;
        height: 150px;
    }

    .roll-window {
        height: 150px;
    }

    .roll-item img {
        max-width: 85px;
        max-height: 85px;
    }

    .person-avatar-img {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }

    .person-avatar {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .roll-item span {
        font-size: 0.75rem;
    }

    .header-logo {
        max-width: 350px;
    }
    
    .button-section {
        margin-top: 25px;
    }

    .unbox-button {
        padding: 10px 30px;
        font-size: 1rem;
    }

    .sidebar-item {
        width: 85px;
        padding: 6px 5px;
    }

    .sidebar-item img {
        max-width: 50px;
        max-height: 50px;
    }
}

/* Breiten-basierte Breakpoints */
@media (max-width: 1600px) {
    .roll-section {
        max-width: 1300px;
    }
}

@media (max-width: 1400px) {
    .roll-section {
        max-width: 1100px;
    }

    .roll-item {
        width: 140px;
        height: 140px;
    }

    .roll-window {
        height: 140px;
    }

    .roll-item img {
        max-width: 85px;
        max-height: 85px;
    }

    .header-logo {
        max-width: 450px;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .roll-section {
        max-width: 700px;
        margin-top: 30px;
    }

    .roll-item {
        width: 120px;
        height: 120px;
    }

    .roll-window {
        height: 120px;
    }

    .roll-item img {
        max-width: 70px;
        max-height: 70px;
    }

    .person-avatar-img {
        width: 65px;
        height: 65px;
    }

    .roll-item span {
        font-size: 0.85rem;
    }

    .header-logo {
        max-width: 380px;
    }

    .button-section {
        margin-top: 25px;
        gap: 15px;
    }

    .button-icon {
        width: 40px;
        height: 40px;
    }

    .unbox-button {
        padding: 14px 40px;
        font-size: 1.1rem;
    }

    .rewards-sidebar {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header-logo {
        max-width: 280px;
    }

    .roll-section {
        max-width: 100%;
        margin-top: 15px;
    }

    .roll-item {
        width: 75px;
        height: 80px;
    }

    .roll-window {
        height: 80px;
    }

    .roll-item img {
        max-width: 35px;
        max-height: 35px;
    }

    .person-avatar-img {
        width: 40px;
        height: 40px;
    }

    .person-avatar {
        font-size: 1.5rem;
    }

    .roll-item span {
        font-size: 0.7rem;
    }

    .button-section {
        margin-top: 15px;
        gap: 10px;
    }

    .button-icon {
        width: 30px;
        height: 30px;
    }

    .unbox-button {
        padding: 14px 40px;
        font-size: 1.1rem;
    }

    .rewards-panel {
        height: 60vh;
    }

    .rewards-panel-content {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
        padding: 15px;
    }

    .grid-item img {
        max-width: 50px;
        max-height: 50px;
    }
}
