:root {
    --bg-deep-green: #053b2f;
    --card-bg: #ffffff;
    --gold: #f5cf45;
    --gold-dark: #b88d1d;
    --text-white: #ffffff;
    --text-black: #000000;

    /* Level Colors from Image 1 - Updated to matches requested scheme */
    --level-8x: linear-gradient(180deg, #d38d1c 0%, #f5cf45 50%, #d38d1c 100%);
    /* Orange/Gold */
    --level-4x: linear-gradient(180deg, #7b1a1a 0%, #bd2c2c 50%, #7b1a1a 100%);
    /* Red */
    --level-2x: linear-gradient(180deg, #4c1a5b 0%, #7b2a94 50%, #4c1a5b 100%);
    /* Purple */
    --level-1x: linear-gradient(180deg, #1a4c7b 0%, #2979bd 50%, #1a4c7b 100%);
    /* Blue */

    --border-radius: 12px;
    --card-ratio: 1.4;
}

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

.hidden {
    display: none !important;
}

body {
    background-color: #053b2f;
    /* Deep green to match game */
    font-family: 'Outfit', sans-serif;
    color: var(--text-white);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

#game-container {
    width: 500px;
    height: 880px;
    background-color: var(--bg-deep-green);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    flex-shrink: 0;
    z-index: 1000;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
    /* Performance & Fit */
    will-change: transform;
    backface-visibility: hidden;
}

#game-stage {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.diamond-pattern {
    position: absolute;
    inset: 0;
    background-color: #053b2f;
    background-image: url('assets/TilableBackground.png');
    background-size: 120px;
    background-repeat: repeat;
    background-blend-mode: overlay;
    opacity: 0.35;
    animation: panBackground 40s linear infinite;
    transition: background-color 0.8s ease;
}

@keyframes panBackground {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 480px 480px;
    }
}

/* Variant Themes */
#game-stage.theme-deuces-wild .diamond-pattern {
    background-color: #05263b;
}

#game-stage.theme-bonus-poker .diamond-pattern {
    background-color: #3b0505;
}

#game-stage.theme-double-bonus-poker .diamond-pattern {
    background-color: #2b053b;
}

#game-stage.theme-joker-poker .diamond-pattern {
    background-color: #3b2c05;
}

#game-stage.theme-aces-and-faces .diamond-pattern {
    background-color: #053b3b;
}

#game-stage.theme-jacks-or-better .diamond-pattern {
    background-color: #053b2f;
}


/* Splash Screen */
#splash-screen {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, #0a4d3e 0%, #032a22 100%);
    z-index: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding-bottom: 60px;
}

#splash-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('assets/TilableBackground.png');
    background-size: 140px;
    background-repeat: repeat;
    opacity: 0.15;
    animation: panBackground 50s linear infinite;
    pointer-events: none;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 90%;
}

.splash-logo {
    max-width: 85%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
    animation: titleSlideIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }

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

.btn-premium {
    padding: 16px 50px;
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(180deg, #f5cf45 0%, #b88d1d 100%);
    border: none;
    border-radius: 50px;
    color: #000;
    cursor: pointer;
    box-shadow: 0 6px 0 #6e5404, 0 10px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.2s;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.8s forwards;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.btn-premium:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.btn-premium:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #6e5404;
}

/* Game Selection / Themes Panel */
#game-selection {
    position: absolute;
    inset: 0;
    z-index: 600;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: #0b7a5e;
    overflow: hidden;
    padding-top: 22px;
}

#game-selection.hidden {
    display: none;
}

.selection-diamond-pattern {
    position: absolute;
    inset: 0;
    background-color: #0b7a5e;
    /* Rich Green from Image */
    background-image:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 80%),
        url("assets/TilableBackground.png");
    background-size: 100% 100%, 120px;
    background-position: center, 0 0;
    background-repeat: no-repeat, repeat;
    background-blend-mode: normal, overlay;
    opacity: 0.4;
    animation: panBackgroundSelection 60s linear infinite reverse;
}

@keyframes panBackgroundSelection {
    from {
        background-position: center, 0 0;
    }

    to {
        background-position: center, 480px 480px;
    }
}

/* Enhanced Suit Pattern for Background */
.selection-diamond-pattern::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20Q25 10 30 20Q35 10 40 20Q40 30 30 40Q20 30 20 20Z' fill='rgba(5, 84, 63, 0.3)'/%3E%3Cpath d='M80 20L90 10L100 20L90 30Z' fill='rgba(5, 84, 63, 0.3)'/%3E%3Cpath d='M20 80C20 70 40 70 40 80C40 95 30 95 30 80C30 95 20 95 20 80Z' fill='rgba(5, 84, 63, 0.3)'/%3E%3Cpath d='M80 80Q90 70 100 80Q100 90 90 100Q80 90 80 80Z' fill='rgba(5, 84, 63, 0.3)'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    opacity: 0.5;
}

.selection-heading {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    /* Bubble text style from image */
    text-shadow:
        -3px -3px 0 #000,
        3px -3px 0 #000,
        -3px 3px 0 #000,
        3px 3px 0 #000,
        0px 5px 0 #000,
        /* Bottom shadow */
        0px 8px 10px rgba(0, 0, 0, 0.5);
    z-index: 10;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    font-family: 'Outfit', sans-serif;
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
    width: 92%;
    max-width: 460px;
    z-index: 10;
    margin-top: 0;
}

.variant-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, filter 0.2s;
    cursor: default;
    /* Not a button itself anymore */
    width: 100%;
}

.variant-tile:hover {
    transform: none;
    /* Removed hover scale from tile */
}

.variant-tile:active {
    transform: scale(0.98);
}

.theme-card {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.4));
}

.variant-play-btn {
    position: absolute;
    bottom: 8%;
    width: 75%;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: transform 0.1s, filter 0.1s;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.variant-play-btn img {
    width: 100%;
    height: auto;
    display: block;
}

.variant-play-btn:hover {
    filter: brightness(1.1);
}

.variant-play-btn:active {
    transform: scale(0.92);
}

/* Header */
header {
    display: flex;
    flex-direction: column;
    padding: 15px 20px 5px;
    z-index: 10;
}

.header-top {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}

.header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.header-left {
    display: flex;
    gap: 8px;
}

.btn-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #3d3d3d;
    color: white;
    font-size: 1.4rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 0 #1a1a1a;
}

#music-toggle {
    background: url('assets/music_on.png') no-repeat center;
    background-size: 70%;
    background-color: #0b72a2;
    box-shadow: 0 4px 0 #074e6e;
    transition: background-image 0.2s ease;
}

.back-btn {
    background: url('assets/close.png') no-repeat center !important;
    background-size: 65% !important;
    background-color: #0b72a2 !important;
    box-shadow: 0 4px 0 #074e6e !important;
    margin-right: 5px;
}

#music-toggle.muted {
    background-image: url('assets/music_off.png');
}

#sound-toggle {
    background: url('assets/volume_on.png') no-repeat center;
    background-size: 70%;
    background-color: #a27e0a;
    box-shadow: 0 4px 0 #6e5404;
    transition: background-image 0.2s ease;
}

#sound-toggle.muted {
    background-image: url('assets/volume_off.png');
}

.header-center {
    display: none;
}

.game-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -1.5px;
    text-transform: uppercase;
    text-align: left;
}

.game-title span {
    font-size: 1.8rem;
    opacity: 0.9;
}

#balance-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bank-label {
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
}

#credits {
    font-size: 3rem;
    font-weight: 900;
    color: #f5cf45;
    /* Yellow/Gold */
    line-height: 0.8;
    text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
}

.game-logo {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Game Main Area */
#game-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    /* Top to Bottom */
    padding: 0 15px 20px;
    gap: 12px;
    position: relative;
    padding: 0 15px 20px;
}

#level-ring-bar {
    position: absolute;
    background-image: url('assets/level_Ring_Bar.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 100;
    /* On top of everything */
    transition: top 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        left 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.level-row {
    height: calc(100% / 4 - 15px);
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 18px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    margin-bottom: 5px;
}

.level-row.upcoming {
    background: #2a2a2a !important;
    /* Upcoming levels are light gray */
    opacity: 0.6;
    filter: grayscale(1) brightness(1.2);
    border-color: #444 !important;
}

.level-row.upcoming .mult-label {
    color: #888;
}

.level-row.completed {
    opacity: 0.7;
    filter: brightness(0.8);
}

.level-row.winning {
    background-image: url('assets/WinShade.png') !important;
    background-size: cover;
    border-width: 6px;
    z-index: 10;
}

.level-row.loss {
    filter: grayscale(0.8) brightness(0.4);
    border-color: #333;
}

.level-row.active {
    border-color: #26c4a1;
    z-index: 5;
}

/* Level Specific Gradients */
/* Level Specific Backgrounds from Assets */
#lrow-4 {
    background-image: url('assets/4X-BackBg.png');
    background-size: cover;
}

#lrow-3 {
    background-image: url('assets/3X-BackBg.png');
    background-size: cover;
}

#lrow-2 {
    background-image: url('assets/2X-BackBg.png');
    background-size: cover;
}

#lrow-1 {
    background-image: url('assets/1X-BackBg.png');
    background-size: cover;
}

.mult-label-img {
    width: 70px;
    /* Reduced from 80px */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    position: relative;
    transform: translate(10px, 5px);
    /* Slightly reduced shift */
}

.mult-label-img img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5));
}

.won-label {
    margin-top: -10px;
    font-size: 1rem;
    font-weight: 900;
    color: #fff;
    background: radial-gradient(circle, #26c4a1 0%, transparent 80%);
    padding: 2px 15px;
    opacity: 0;
    transition: opacity 0.3s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 5;
}

.level-row.winning .won-label {
    opacity: 1;
}

.mult-label {
    font-size: 3.5rem;
    font-weight: 900;
    width: 90px;
    text-align: center;
    text-shadow: 0 4px 0 rgba(0, 0, 0, 0.7);
    color: white;
    transition: transform 0.3s;
    line-height: 1;
}

.hand-name-display {
    position: absolute;
    top: 12px;
    /* Move up */
    left: 60%;
    /* Move right to align with cards */
    transform: translateX(-50%);
    font-size: 1rem;
    /* Slightly smaller for better fit */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 70;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
}

.hand-name-display:empty {
    display: none;
}

.hand-name-display::before,
.hand-name-display::after {
    content: '';
    width: 40px;
    height: 3px;
    background: #f5cf45;
    /* Yellow lines from Image 1 */
    border-radius: 2px;
}

.hand-name-display.show {
    opacity: 1;
}



/* Empty ruleset removed */

#lrow-1.winning {
    color: #2196f3;
}

#lrow-2.winning {
    color: #9c27b0;
}

#lrow-3.winning {
    color: #f44336;
}

#lrow-4.winning {
    color: #ff9800;
}



.cards-wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    /* Reduced from 8px */
    height: 65%;
    /* Slightly increased */
    align-items: center;
    padding-right: 10px;
    transform: translateY(8px);
    min-width: 0;
    /* Allow shrinking */
}

.wild-label {
    position: absolute;
    top: 4px;
    right: 0;
    background: #ffc107;
    color: #000;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 40px 0 0 40px;
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 5;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-right: none;
}


.card-placeholder {
    width: 18%;
    height: 100%;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.05);
}

/* Card Component */
.card-container {
    width: 17%;
    max-width: 60px;
    height: 100%;
    position: relative;
    cursor: pointer;
    perspective: 800px;
    flex-shrink: 1;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
}

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

.card-container.dealing {
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
}

@keyframes popIn {
    from {
        transform: scale(0) rotate(10deg);
        opacity: 0;
    }

    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-front {
    background: white;
    color: inherit;
    /* Default to inherit from container */
    transform: rotateY(180deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.card-back {
    background: #0d121f;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background-image:
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    background-size: 100% 100%;
    position: relative;
    overflow: hidden;
}

.card-back::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40 Q 20 0 40 40' stroke='rgba(255,255,255,0.05)' fill='none'/%3E%3C/svg%3E");
    background-size: 20px 20px;
}

.card-front .rank {
    font-size: 0.8rem;
    font-weight: 900;
    line-height: 1;
    padding: 2px;
}

.card-front .rank span {
    font-size: 0.55rem;
    display: block;
    margin-top: 1px;
}

.card-front .rank.top-left {
    position: absolute;
    top: 4px;
    left: 4px;
    text-align: left;
}

.card-front .rank.bottom-right {
    position: absolute;
    bottom: 4px;
    right: 4px;
    transform: rotate(180deg);
    text-align: left;
}

.card-front .suit {
    font-size: 2.4rem;
}

.card-front .suit.joker-img-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.joker-card-img {
    width: 100%;
    height: auto;
    max-height: 85%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.card-container.black {
    color: #1a1a1a;
}

.card-container.red {
    color: #d40000;
    /* Vibrant Casino Red */
}

.hold-indicator {
    position: absolute;
    bottom: -8px;
    /* Bottom of card as in Image 1 */
    left: 50%;
    transform: translateX(-50%);
    background: #f5cf45;
    color: black;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 0 6px;
    border-radius: 8px;
    border: 1.5px solid #000;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-container.held .hold-indicator {
    opacity: 1;
}

.hold-btn {
    display: none;
}

/* We click the card instead */

/* WON Overlay */
#hand-result-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 4rem;
    font-weight: 900;
    color: #f5cf45;
    text-shadow:
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        0 0 20px rgba(245, 207, 69, 0.8);
    z-index: 100;
    pointer-events: none;
    transition: none;
    width: 100%;
    text-align: center;
    letter-spacing: 5px;
}

#hand-result-overlay.show {
    animation: winPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.5) forwards;
}

@keyframes winPop {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-10deg);
        opacity: 0;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(5deg);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Footer / Controls */
#controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px 90px;
    gap: 10px;
    z-index: 10;
    width: 100%;
}

.bet-adjuster {
    background: #02382d;
    border-radius: 40px;
    display: flex;
    align-items: center;
    padding: 4px 6px;
    border: 3px solid #11816a;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.6);
    flex-shrink: 2;
    /* Allow more shrinking */
    min-width: 0;
}

.btn-adjust {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #045a4a;
    background: linear-gradient(180deg, #19b293 0%, #11826b 50%, #0a5f4e 100%);
    color: white;
    font-size: 1.4rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 0 #034d3c, 0 6px 10px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    outline: none;
    user-select: none;
}

.btn-adjust::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 20%;
    width: 60%;
    height: 30%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    filter: blur(1px);
}

#bet-value {
    margin: 0 12px;
    font-weight: 900;
    font-size: 1.4rem;
}

.bet-pill {
    background: #02382d;
    padding: 0 10px;
    height: 46px;
    border-radius: 40px;
    font-weight: 900;
    font-size: 1rem;
    border: 3px solid #11816a;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 2;
    min-width: 70px;
}

.btn-game {
    flex: 1.5;
    min-width: 65px;
    height: 46px;
    border-radius: 40px;
    border: 2px solid #8a6a05;
    background: linear-gradient(180deg, #ffd74a 0%, #f5cf45 40%, #c4961a 100%);
    color: #000;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 6px 0 #6e5404, 0 10px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.1s;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-game::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 10%;
    width: 80%;
    height: 30%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    filter: blur(2px);
}

.btn-game:hover {
    filter: brightness(1.1);
}

.btn-game:active {
    transform: translateY(4px);
    box-shadow: 0 4px 0 #a27e0a;
}

.btn-game:disabled,
.btn-adjust:disabled {
    filter: grayscale(0.8) brightness(0.6);
    cursor: default;
    transform: none;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

.btn-game:disabled::before,
.btn-adjust:disabled::before {
    display: none;
}

/* Shake Animation */
/* Shake Animation - Applied to game-stage to avoid clash with container scaling */
.shake-anim {
    animation: screenShake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes screenShake {

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

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

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

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

/* Modal Styles */
/* Modal & Paytable Enhancements */
.modal {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, #111111 0%, #0a0a0a 100%);
    border: 2px solid rgba(245, 207, 69, 0.5);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(245, 207, 69, 0.1);
    border-radius: 24px;
    padding: 0;
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    position: relative;
    animation: modalSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

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

.paytable-header {
    background: linear-gradient(90deg, rgba(245, 207, 69, 0.1) 0%, transparent 50%, rgba(245, 207, 69, 0.1) 100%);
    border-bottom: 2px solid rgba(245, 207, 69, 0.3);
    padding: 25px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--gold);
    text-shadow: 0 2px 10px rgba(245, 207, 69, 0.4);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(231, 76, 60, 0.8);
    transform: rotate(90deg);
}

#paytable {
    padding: 10px 20px 25px;
}

.pay-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 600;
    border-radius: 10px;
    transition: background 0.2s;
    margin-bottom: 2px;
}

.pay-row:last-child {
    border-bottom: none;
}

.pay-row span:first-child {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.pay-row .val {
    color: var(--gold);
    font-size: 1.3rem;
    font-weight: 900;
    text-shadow: 0 0 5px rgba(245, 207, 69, 0.3);
}

.pay-row.highlight {
    background: linear-gradient(90deg, rgba(245, 207, 69, 0.25) 0%, rgba(245, 207, 69, 0.05) 100%);
    border: 1px solid rgba(245, 207, 69, 0.6);
    box-shadow: 0 0 20px rgba(245, 207, 69, 0.2);
    animation: winPulse 1s infinite alternate;
}

@keyframes winPulse {
    from {
        box-shadow: 0 0 10px rgba(245, 207, 69, 0.2);
    }

    to {
        box-shadow: 0 0 25px rgba(245, 207, 69, 0.5);
    }
}

.pay-row.highlight span {
    color: var(--gold);
}

.pay-row:hover:not(.highlight) {
    background: rgba(255, 255, 255, 0.03);
}

/* Tutorial */
#tutorial-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 300;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.tutorial-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #111111 100%);
    padding: 0;
    border: 2px solid rgba(245, 207, 69, 0.5);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    position: relative;
    animation: modalSlideUp 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tutorial-content h2 {
    padding: 20px;
    margin-bottom: 0;
    color: var(--gold);
    background: rgba(245, 207, 69, 0.1);
    border-bottom: 1px solid rgba(245, 207, 69, 0.3);
    font-weight: 900;
    letter-spacing: 1px;
}

.tutorial-content .inner-padding {
    padding: 25px;
}

.tutorial-content ul {
    text-align: left;
    margin-bottom: 25px;
    list-style: none;
}

.tutorial-content li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: flex-start;
}

.tutorial-content li::before {
    content: '✦';
    color: var(--gold);
    margin-right: 10px;
    font-size: 0.8rem;
    margin-top: 4px;
}

.btn-medium {
    width: 100%;
    padding: 15px;
    background: var(--gold);
    color: black;
    font-weight: 900;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 4px 0 var(--gold-dark);
    transition: all 0.1s;
}

.btn-medium:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--gold-dark);
}

.hidden {
    display: none !important;
}

#message-toast {
    position: absolute;
    bottom: 142px;
    left: 50%;
    transform: translateX(-50%);
    background: #e74c3c;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 900;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}

#message-toast.show {
    opacity: 1;
}

#level-up-popup {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.levelup-content {
    background: linear-gradient(135deg, #0a3d62 0%, #000000 100%);
    border: 3px solid var(--gold);
    border-radius: 25px;
    padding: 25px;
    width: 80%;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(245, 207, 69, 0.2);
    animation: popupSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.levelup-header {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    width: 100%;
}

.levelup-body {
    margin-bottom: 20px;
    width: 100%;
}

.levelup-body p {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 5px 0;
    color: #fff;
}

#next-level-val {
    color: #26c4a1;
    font-size: 1.3rem;
    font-weight: 900;
}

.unlock-text {
    font-size: 0.85rem !important;
    opacity: 0.7;
    color: #ccc !important;
    font-weight: 400;
}

#close-levelup {
    width: 85%;
    height: 50px;
    font-size: 1.2rem;
    border-radius: 30px;
    background: linear-gradient(180deg, #ffe066 0%, #f5cf45 50%, #b88d1d 100%);
    box-shadow: 0 4px 0 #6e5404, 0 8px 15px rgba(0, 0, 0, 0.4);
    border: none;
    color: #000;
}

/* Media queries removed to prevent layout shifts on zoom */
/* The game now uses transform: scale() to fit the screen while maintaining resolution */

/* Particle Win Effect */
.particle {
    position: absolute;
    pointer-events: none;
    z-index: 1000;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0;
}

@keyframes particle-blast {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translate(var(--dx), var(--dy)) scale(0) rotate(var(--dr));
        opacity: 0;
    }
}

.win-splash {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #fff 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    z-index: 999;
}

@keyframes splash-glow {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
        box-shadow: 0 0 20px 20px rgba(255, 255, 255, 0.8);
    }

    100% {
        transform: translate(-50%, -50%) scale(10);
        opacity: 0;
        box-shadow: 0 0 100px 100px rgba(255, 255, 255, 0);
    }
}

.star-particle {
    position: absolute;
    top: -50px;
    z-index: 900;
    pointer-events: none;
    animation: starFall linear forwards;
    text-shadow: 0 0 10px currentColor;
}

@keyframes starFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0.3;
    }
}


#game-over-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Lighter black as requested */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-out;
}

#game-over-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.light-panel {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    filter: blur(20px);
    border-radius: 50%;
    z-index: -1;
    animation: pulse-light 1.5s infinite alternate;
}

@keyframes pulse-light {
    from {
        opacity: 0.6;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1.1);
    }
}

#game-over-img {
    max-width: 90%;
    max-height: 80%;
    transform: scale(0.5);
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.5));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#game-over-overlay.show #game-over-img {
    transform: scale(1.5);
    /* Big as requested */
}

/* Cheat Panel Premium Styles */
.cheat-panel {
    background: #000;
    border: 4px solid #d44b55;
    /* Rose/Red border from image */
    border-radius: 24px;
    padding: 35px 25px;
    width: 90%;
    max-width: 380px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: modalSlideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cheat-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 5px;
    text-align: center;
    letter-spacing: -1px;
}

.cheat-subtitle {
    font-size: 1rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    margin-top: 10px;
}

.cheat-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 400;
    /* Looks like a thin X in image */
    cursor: pointer;
    line-height: 1;
}

.cheat-card-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 5px 0;
}

.cheat-card-btn {
    width: 58px;
    height: 58px;
    background: #4a0410;
    /* Dark wine red */
    border: 3px solid #4a0410;
    border-radius: 12px;
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cheat-card-btn.selected {
    border: 3px solid #fff;
    background: #000;
}

.cheat-input-container {
    width: 100%;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 15px;
    padding: 20px;
    margin-top: 5px;
}

#cheat-card-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    text-align: left;
    outline: none;
    font-family: inherit;
    font-weight: 600;
}

#cheat-card-input::placeholder {
    color: #555;
    font-size: 1.1rem;
}

.btn-cheat-apply {
    margin-top: 15px;
    width: 190px;
    height: 75px;
    background: #d44b55;
    border: none;
    border-radius: 15px;
    color: #fff;
    font-size: 2.2rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 0 #7b2a31;
    transition: all 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.btn-cheat-apply:active {
    transform: translateY(5px);
    box-shadow: 0 5px 0 #7b2a31;
}

#cheat-btn {
    background-color: #d44b55;
    box-shadow: 0 4px 0 #7b2a31;
}

/* --- AUTH STYLES --- */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(5, 59, 47, 0.98) 0%, rgba(0, 0, 0, 0.99) 100%);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.auth-overlay.hidden {
    display: none;
}

.auth-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: authSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.auth-title {
    font-family: 'Luckiest Guy', cursive;
    font-size: 2.2rem;
    color: #f5cf45;
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    color: #f5cf45;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #f5cf45;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 4px rgba(245, 207, 69, 0.1);
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.auth-btn {
    width: 100%;
    opacity: 1 !important;
    animation: none !important;
}

.btn-plain {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: underline;
}

.btn-plain:hover {
    color: white;
}

.auth-msg {
    margin-top: 20px;
    font-size: 0.9rem;
    min-height: 1.2rem;
    color: #ff4d4d;
}

.auth-msg.success {
    color: #4df3ff;
}

/* User Info Bar */
.user-info-bar {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1500;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: rgba(255, 77, 77, 0.2);
    color: #ff4d4d;
}

/* Loader Animation */
.loader {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #f5cf45;
    border-radius: 50%;
    margin: 20px auto 0;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive adjustment for Auth Card */
@media (max-width: 500px) {
    .auth-card {
        padding: 30px 20px;
        width: 95%;
    }

    .user-info-bar {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* --- NEW FIREBASE AUTH AND SETTINGS STYLES --- */

/* Social Login Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-divider:not(:empty)::before {
    margin-right: .5em;
}

.auth-divider:not(:empty)::after {
    margin-left: .5em;
}

/* Social Buttons Container */
.social-auth-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    width: 100%;
}

.btn-social {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 100%;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-social img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Round image corners to blend nicely */
}

.btn-social:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.05);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.25), 0 3px 6px rgba(0, 0, 0, 0.2);
}

.btn-social:active {
    transform: translateY(1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Settings button customization */
#settings-btn {
    background-color: #3b6b5d;
    box-shadow: 0 4px 0 #1c3d34;
    transition: transform 0.4s ease, background-color 0.2s;
}

#settings-btn:hover {
    transform: rotate(90deg);
    background-color: #4a8271;
}

#settings-btn:active {
    transform: scale(0.92) rotate(90deg);
}

/* Settings Modal Panel */
.settings-panel {
    background: radial-gradient(circle at center, #0a4d3e 0%, #032a22 100%);
    border: 3px solid var(--gold);
    border-radius: 28px;
    padding: 30px 25px;
    width: 90%;
    max-width: 380px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(245, 207, 69, 0.15);
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.settings-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.settings-close:hover {
    background: #ff4d4d;
    border-color: #ff4d4d;
}

.settings-title {
    font-family: 'Luckiest Guy', cursive;
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 25px;
    letter-spacing: 2px;
    text-shadow: 0 3px 0 #000, 0 6px 10px rgba(0,0,0,0.5);
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
}

.settings-info-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 600;
}

.info-value {
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    word-break: break-all;
    max-width: 70%;
    text-align: right;
}

.settings-actions {
    margin-top: 15px;
    width: 100%;
}

.settings-logout-btn {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Warning Modal (for Guest Accounts Logout) */
.warning-panel {
    background: radial-gradient(circle at center, #3d0d0d 0%, #1a0505 100%);
    border: 3px solid #ff4d4d;
    border-radius: 28px;
    padding: 30px 25px;
    width: 90%;
    max-width: 380px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 77, 77, 0.15);
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.warning-title {
    font-family: 'Luckiest Guy', cursive;
    font-size: 2.2rem;
    color: #ff4d4d;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-shadow: 0 3px 0 #000, 0 6px 10px rgba(0,0,0,0.5);
}

.warning-text {
    font-size: 0.95rem;
    color: #eee;
    line-height: 1.5;
    margin-bottom: 15px;
}

.warning-text strong {
    color: #ff4d4d;
}

.warning-subtext {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 25px;
}

.warning-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.btn-warning-action {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-transform: uppercase;
}

.btn-danger {
    background: linear-gradient(180deg, #ff6b6b 0%, #cc2424 100%);
    color: white;
    box-shadow: 0 4px 0 #8a1414;
}

.btn-danger:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

.btn-danger:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #8a1414;
}

.btn-safe {
    background: linear-gradient(180deg, #5c5c5c 0%, #3d3d3d 100%);
    color: white;
    box-shadow: 0 4px 0 #242424;
}

.btn-safe:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

.btn-safe:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #242424;
}