:root {
    --primary: #FFD700;
    /* Bus Yellow */
    --primary-glow: rgba(255, 215, 0, 0.3);
    --secondary: #E63946;
    /* Stop Button Red */
    --accent: #4CC9F0;
    /* Headlight Blue */
    --bg-color: #0d0914;
    --text-color: #FACC15;
    --glass: rgba(20, 15, 30, 0.7);
    --glass-border: rgba(255, 255, 255, 0.15);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --bus-blue: #457b9d;
    --xp-blue: #0058E3;
    --xp-blue-dark: #003096;
    --xp-green: #388E3C;
    --xp-bg: #ECE9D8;
    --xp-window-border: #0054E3;
}

/* Windows XP Theme */
.xp-window {
    background: #ECE9D8;
    border: 3px solid #0054E3;
    border-radius: 8px 8px 0 0;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
    padding: 2px;
    font-family: "Tahoma", sans-serif;
    color: black;
}

.xp-title-bar {
    background: linear-gradient(180deg, #0058E3 0%, #003096 100%);
    color: white;
    padding: 5px 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 5px 5px 0 0;
    font-size: 0.9rem;
    height: 30px;
}

.xp-content {
    padding: 15px;
    background: #ECE9D8;
}

.xp-button {
    background: linear-gradient(180deg, #FFFFFF 0%, #E3E3E3 50%, #C6C6C6 100%);
    border: 1px solid #003C74;
    border-radius: 3px;
    color: #000;
    padding: 4px 15px;
    font-family: "Tahoma", sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: inset -1px -1px 1px rgba(0, 0, 0, 0.1);
    text-transform: none;
    letter-spacing: 0;
}

.xp-button:hover {
    background: linear-gradient(180deg, #EED2A1 0%, #E7A54C 100%);
    border-color: #003C74;
}

.xp-button:active {
    background: linear-gradient(180deg, #CD954C 0%, #E7A54C 100%);
    box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.2);
}

.xp-button-start {
    background: linear-gradient(180deg, #3CB371 0%, #2E8B57 100%);
    color: white;
    border-color: #006400;
}

.xp-button-start:hover {
    background: linear-gradient(180deg, #90EE90 0%, #3CB371 100%);
}

.xp-input {
    border: 2px inset #FFF;
    background: white;
    padding: 2px 5px;
    font-family: "Tahoma", sans-serif;
    font-size: 0.9rem;
    border-radius: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background: var(--bg-color);
    background-image: linear-gradient(rgba(13, 9, 20, 0.8), rgba(13, 9, 20, 0.9)), url('../img/jas_vegas_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.4;
    overflow-x: hidden;
    min-height: 100vh;
}

#app {
    max-width: 500px;
    margin: 0 auto;
    padding: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#screen-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-top: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    /* slightly smaller radius to match smaller padding */
    padding: 8px;
    /* Reduced from 15px */
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.active-turn {
    border: 2px solid var(--primary) !important;
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

/* Typography */
h1 {
    font-size: 2.2rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 15px;
    color: var(--bus-blue);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
}

h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary);
}

/* Buttons */
button {
    background: var(--bus-blue);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

button:active {
    transform: scale(0.96);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button.primary,
#btn-create {
    background: var(--primary);
    color: #333;
}

button.secondary,
#btn-join {
    background: white;
    border: 2px solid var(--bus-blue);
    color: var(--bus-blue);
}

/* Inputs and Selects */
input,
select {
    background: white;
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 12px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1.1rem;
    width: 100%;
    margin-bottom: 15px;
    transition: all 0.3s;
    box-sizing: border-box;
}

input:focus,
select:focus {
    background: white;
    border-color: var(--bus-blue);
    outline: none;
    box-shadow: 0 0 10px rgba(69, 123, 157, 0.2);
}

.btn-choice {
    border-radius: 12px !important;
    width: 100% !important;
    padding: 12px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

#btn-value-confirm {
    width: 100%;
    margin-top: 10px;
}

.controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 15px;
    width: 100%;
}

:root {
    --card-w: 55px;
    --card-h: 85px;

    --bg: #f6f2ec;
    --card: #fffdf9;
    --line: #e7dfd5;
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.08);

    --red: #e53935;
    --black: #212121;
    --ink-soft: #5f5a54;

    --radius: 14px;
    --radius-sm: 10px;

    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --transition: 180ms ease;
}

/* Card Component Container (for 3D flip) */
.card-container {
    perspective: 1000px;
    width: var(--card-w);
    height: var(--card-h);
    position: relative;
    margin: 3px;
    flex-shrink: 0;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.card-container.flipped .card-inner {
    transform: rotateY(180deg);
}

/* Basis kaart (gebruikt voor front en back) */
.playing-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    box-sizing: border-box;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    font-family: var(--font);
    color: var(--black);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.playing-card.card-back {
    background: var(--bus-blue);
    color: var(--primary);
    transform: rotateY(0deg);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    border: 2px solid white;
}

.playing-card.card-front {
    transform: rotateY(180deg);
}

.playing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    border-color: #d9cec2;
}

.playing-card.card-front {
    transform: rotateY(180deg);
}

.playing-card.card-front:hover {
    transform: rotateY(180deg) translateY(-2px);
}

/* Kleurvarianten */
.playing-card.red {
    color: var(--red);
}

.playing-card.black {
    color: var(--black);
}

/* Hoeken */
.card-corner {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    z-index: 2;
    user-select: none;
}

.card-corner.top-left {
    top: 6px;
    left: 6px;
}

.card-corner.bottom-right {
    right: 6px;
    bottom: 6px;
    transform: rotate(180deg);
}

.card-value {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.card-suit-mini {
    font-size: 10px;
    margin-top: 2px;
    display: block;
}

/* Centrale zone */
.card-center {
    position: absolute;
    inset: 18px 8px 18px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Blocked / Matched Status overlay overrides */
.card-container.blocked .playing-card {
    opacity: 0.6;
    filter: grayscale(0.8) brightness(0.8);
    pointer-events: none;
}

.card-status-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    z-index: 10;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.pyramid-container {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    width: 100%;
}

.pyramid-row {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.pyramid-card-slot {
    width: 55px;
    height: 80px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Toasts */
#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5000;
    width: 90%;
    max-width: 400px;
    pointer-events: none;
    /* Do not block clicks */
}

.toast {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 10px;
    animation: slideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
    pointer-events: auto;
    /* Toasts themselves can be clicked if needed */
}

select {
    appearance: none;
    background: white !important;
    color: #333 !important;
    border: 2px solid var(--primary);
    padding: 10px 15px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* Timer */
#global-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    margin-top: 10px;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.timer-bar-container {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 20px;
    margin: 15px 0;
    overflow: visible;
    position: relative;
}

#timer-progress-bar {
    width: 100%;
    height: 100%;
    background: var(--secondary);
    border-radius: 20px;
    transition: width 0.1s linear;
    position: relative;
    z-index: 2;
}

.timer-bus-stop-icon {
    position: absolute;
    left: -12px;
    top: -15px;
    font-size: 1.5rem;
    z-index: 3;
}

.timer-bus-icon {
    position: absolute;
    right: -10px;
    top: -15px;
    font-size: 1.5rem;
    transition: inherit;
}

#timer-text {
    font-size: 0.9rem;
    font-weight: 800;
    color: white;
}

#timer-msg {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

/* Helper Classes */
.hidden {
    display: none !important;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.col {
    flex-direction: column;
}

.full-width {
    width: 100%;
}

.mt-20 {
    margin-top: 20px;
}

/* Phase 2 Layout */
.pyramid-section #global-timer {
    padding: 5px 15px;
    margin-top: 5px;
    background: rgba(255, 255, 255, 0.7);
}

.pyramid-section .timer-bar-container {
    height: 8px;
    margin: 10px 0;
}

.pyramid-section .timer-bus-icon {
    font-size: 1.2rem;
    top: -12px;
}

.pyramid-section #timer-msg,
.col #timer-msg {
    /* Optional: custom styling for message */
    font-weight: bold;
    margin-bottom: 5px;
}

.pyramid-section #timer-text {
    /* Optional: custom styling for counter */
    font-size: 1rem;
    font-weight: 800;
}

/* Phase 1 / Memorize Compact Timer */
.col>#timer-target #global-timer {
    padding: 8px 15px;
    margin-top: 5px;
    background: rgba(255, 255, 255, 0.7);
}

.col>#timer-target .timer-bar-container {
    height: 10px;
    margin: 10px 0;
}

.phase2-layout {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    align-items: flex-start;
}

.pyramid-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.players-status-horizontal {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    width: 100%;
    background: var(--glass);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.horizontal-player-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 6px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.horizontal-player-box.me {
    background: rgba(var(--primary-rgb), 0.1);
    border-left: 3px solid var(--primary);
}

.horizontal-player-box .player-name {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--primary);
    text-transform: uppercase;
    flex-shrink: 0;
    margin-right: 15px;
}

.horizontal-player-box .player-cards.tiny {
    flex: 1;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 0;
}

.horizontal-player-box .player-cards.tiny {
    justify-content: flex-start;
    gap: 2px;
}

/* Card Status Icons */
.card-status-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

.card-container.matched .card-front {
    background: #f0fff4 !important;
    /* Green tint */
    border-color: #38a169;
}

.card-container.blocked .card-front {
    background: #fff5f5 !important;
    /* Red tint */
    border-color: #e53e3e;
}

.card-container.matched .card-front .card-value,
.card-container.matched .card-front .card-suit {
    opacity: 0.3;
}

.card-container.blocked .card-front .card-value,
.card-container.blocked .card-front .card-suit {
    opacity: 0.3;
}

/* Phase specific */
.player-cards {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 4px;
    margin-bottom: 10px;
    width: 100%;
}

.player-cards.tiny {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px;
    overflow: visible;
}

.controls {
    display: flex;
    gap: 8px;
    justify-content: center;
    width: 100%;
}

.controls button {
    flex: 1;
    padding: 12px 5px;
    /* Smaller padding to fit more buttons */
    font-size: 0.85rem;
    min-width: 0;
    /* Allow shrinking */
    white-space: nowrap;
}

.player-cards.tiny .card-container {
    --card-w: 35px;
    --card-h: 55px;
    margin: 2px;
}

.player-cards.tiny .card-center,
.player-cards.tiny .card-corner.bottom-right {
    display: none;
}

.player-cards.tiny .card-corner.top-left {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.player-cards.tiny .card-value {
    font-size: 16px;
    line-height: 1;
}

.player-cards.tiny .card-suit-mini {
    font-size: 18px;
    margin-top: 2px;
}

.player-cards.tiny .card-status-icon {
    font-size: 1.1rem;
}

/* Result Overlay */
.result-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
    pointer-events: none;
}

.result-text {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.5);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    text-align: center;
}

.result-choice {
    font-size: 1.2rem;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 20px;
    border-radius: 20px;
    margin: 10px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeIn 0.3s 0.2s forwards;
}

#result-card-container {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.result-overlay.success .result-text {
    color: #4ade80;
}

.result-overlay.error .result-text {
    color: var(--secondary);
}

.result-subtext {
    font-size: 1.2rem;
    margin-top: 10px;
    opacity: 0;
    animation: fadeIn 0.3s 0.4s forwards;
    text-align: center;
    padding: 0 20px;
}

@keyframes popIn {
    to {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Screen Shake */
.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Confetti (Simple CSS version) */
.confetti {
    position: fixed;
    z-index: 9999;
    width: 10px;
    height: 10px;
    background: var(--primary);
    top: -10px;
    animation: fall 3s linear forwards;
    pointer-events: none;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* Bus Animation Scene */
.bus-scene {
    position: relative;
    width: 300px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.bus-stop {
    font-size: 3rem;
    position: absolute;
    left: 20px;
    bottom: 40px;
}

.bus-vehicle {
    font-size: 5rem;
    position: absolute;
    right: -200px;
    bottom: 20px;
    animation: busDrive 3.5s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}

.passengers {
    position: absolute;
    left: 80px;
    bottom: 40px;
    display: flex;
    gap: 5px;
}

.passengers span {
    font-size: 2rem;
    animation: passengerWalk 2s ease forwards;
}

.p1 {
    animation-delay: 0.5s !important;
}

.p2 {
    animation-delay: 0.8s !important;
}

.p3 {
    animation-delay: 1.1s !important;
}

@keyframes busDrive {
    0% {
        transform: translateX(0);
    }

    30% {
        transform: translateX(-150px);
    }

    /* Arrival at stop */
    70% {
        transform: translateX(-150px);
    }

    /* Waiting for passengers */
    100% {
        transform: translateX(-600px);
    }

    /* Driving off */
}

@keyframes passengerWalk {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(60px);
        opacity: 0;
    }

    /* Walking into bus */
}

/* Result Bus Animations */
.result-player-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.result-card-label {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 5px;
}

.result-header-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.result-rank {
    background: var(--primary);
    color: var(--secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.result-bus-scene {
    font-size: 4rem;
    margin-bottom: 20px;
    position: relative;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.result-bus {
    transition: transform 0.3s;
}

.bus-fast .result-bus {
    animation: busFastDrive 0.8s ease-in forwards;
}

.drive-smoke {
    position: absolute;
    left: 40%;
    font-size: 2rem;
    animation: smokeFloat 0.8s ease-out forwards;
}

.bus-crashed .result-bus {
    animation: busCrashAnim 0.5s cubic-bezier(0.36, 0, 0.66, -0.56) forwards;
}

.crash-impact {
    position: absolute;
    font-size: 3rem;
    opacity: 0;
    animation: impactFlash 0.5s 0.3s ease-out forwards;
}

.hood-smoke {
    position: absolute;
    top: 0;
    right: 35%;
    font-size: 2.5rem;
    opacity: 0;
    animation: smokeRise 2s 0.5s infinite;
}

@keyframes busFastDrive {
    0% {
        transform: translateX(0) scale(1);
    }

    100% {
        transform: translateX(500px) scale(1.2);
    }
}

@keyframes busCrashAnim {
    0% {
        transform: translateX(-200px) rotate(0deg);
    }

    60% {
        transform: translateX(0) rotate(-10deg);
    }

    100% {
        transform: translateX(10px) rotate(-20deg);
    }
}

@keyframes impactFlash {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes smokeFloat {
    0% {
        transform: translateX(0) scale(0.5);
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        transform: translateX(-100px) scale(1.5);
        opacity: 0;
    }
}

@keyframes smokeRise {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }

    30% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-50px) scale(2);
        opacity: 0;
    }
}

/* Game Selection Screen Enhancements */
.game-card.soon {
    filter: grayscale(0.7) brightness(0.9);
    opacity: 0.8;
}

.ribbon-soon {
    position: absolute;
    top: 15px;
    right: -25px;
    background: #333;
    color: white;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 3px 30px;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 10;
    pointer-events: none;
    letter-spacing: 1px;
}

.ribbon-beta {
    position: absolute;
    top: 15px;
    right: -25px;
    background: var(--secondary);
    color: white;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 3px 30px;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 10;
    pointer-events: none;
    letter-spacing: 1px;
}