/* style.css - Fayno Market Borderless Flat Cartoon Design Overhaul */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

@font-face {
    font-family: 'BlockBlueprint';
    src: url('BlockBlueprint.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-primary: #d8cdf1; /* Exact Brandbook Lavender */
    --bg-secondary: #ffffff;
    
    /* Brandbook Color System */
    --color-green-dark: #004939; /* Deep Forest Green (Text & Accents) */
    --color-green-bright: #07906b; /* Primary Emerald Green */
    --color-green-mint: #CDF9DE; /* Light Mint Green */
    --color-yellow: #FED100; /* Sunshine Yellow */
    --color-pink: #f4aecd; /* Accent Pink */
    
    /* Soft Minimalist Shadows (Borderless Depth) */
    --shadow-soft: 0 12px 35px rgba(0, 73, 57, 0.05);
    --shadow-button-yellow: 0 10px 25px rgba(254, 209, 0, 0.35);
    --shadow-button-green: 0 10px 25px rgba(7, 144, 107, 0.3);
    
    --font-game: 'BlockBlueprint', 'Montserrat', sans-serif;
}

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

input, select, textarea {
    user-select: text !important;
    -webkit-user-select: text !important;
    pointer-events: auto !important;
}

button, a, .cyber-button, .speed-option, .network-btn-option, .hud-btn {
    pointer-events: auto !important;
    cursor: pointer;
}

@keyframes gradient-bg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes btn-pulse {
    0% { transform: scale(1); box-shadow: 0 10px 25px rgba(254, 209, 0, 0.35); }
    50% { transform: scale(1.025); box-shadow: 0 14px 35px rgba(254, 209, 0, 0.55); }
    100% { transform: scale(1); box-shadow: 0 10px 25px rgba(254, 209, 0, 0.35); }
}

@keyframes btn-pulse-green {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 
          inset -4px -4px 0px 0px rgba(0, 0, 0, 0.22), 
          inset 4px 4px 0px 0px rgba(255, 255, 255, 0.35);
    }
    50% { 
        transform: scale(1.025); 
        box-shadow: 
          inset -4px -4px 0px 0px rgba(0, 0, 0, 0.28), 
          inset 4px 4px 0px 0px rgba(255, 255, 255, 0.45);
    }
}

@keyframes card-shimmer {
    0% { left: -150%; }
    100% { left: 150%; }
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(-45deg, #aba6d3, #8E89B5, #aba6d3, #a5b4fc);
    background-size: 400% 400%;
    animation: gradient-bg 12s ease infinite;
    font-family: var(--font-game);
    color: var(--color-green-dark);
}

/* Master Responsive Container */
.app-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: linear-gradient(-45deg, #d8cdf1, #ebdffb, #f4aecd, #d8cdf1);
    background-size: 400% 400%;
    animation: gradient-bg 18s ease infinite;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 0;
    box-shadow: 0 30px 80px rgba(0, 30, 24, 0.15);
}

/* Screen Transitions */
.screen {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(0.96) translateY(8px);
}

.screen.active {
    display: flex;
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Typography without outlines */
h1, h2, h3 {
    font-family: var(--font-game);
    font-weight: 900;
    color: var(--color-green-dark);
}

.menu-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px auto 16px auto;
    width: 100%;
    max-width: 340px;
}

.menu-logo {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 15px rgba(0, 73, 57, 0.06));
}

.neon-title {
    font-size: 2.6rem;
    color: #ffffff;
    margin-bottom: 2px;
    text-align: center;
    font-weight: 900;
    letter-spacing: -1.2px;
    -webkit-text-stroke: 2px #000000;
    text-shadow: 3px 3px 0px #000000;
}

.neon-subtitle {
    font-size: 1.0rem;
    color: #ffffff;
    margin-bottom: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, var(--color-green-bright) 0%, #00795A 100%);
    padding: 8px 22px;
    border: 3px solid #000000;
    border-radius: 12px;
    box-shadow: 3px 3px 0px #000000;
    display: inline-block;
    animation: subtitle-float 3.5s ease-in-out infinite;
}

@keyframes subtitle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Borderless Solid Panels */
.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 4px solid #000000;
    border-radius: 24px;
    padding: 26px 24px;
    width: 100%;
    box-shadow: 6px 6px 0px #000000;
    display: flex;
    flex-direction: column;
    margin-bottom: 22px;
    transition: all 0.2s ease;
}

.glass-panel:hover {
    transform: translateY(-2px) translateX(-2px);
    box-shadow: 8px 8px 0px #000000;
}

.raffle-info {
    background: var(--color-green-mint);
}

/* Branded Accent Badges */
.prize-badge {
    background: var(--color-pink);
    color: var(--color-green-dark);
    padding: 8px 24px;
    border-radius: 30px;
    display: inline-block;
    margin: 6px auto;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 6px 18px rgba(244, 174, 205, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: center;
    border: none;
    transition: transform 0.25s ease;
}

.prize-badge:hover {
    transform: scale(1.05);
}

.prize-desc {
    color: var(--color-green-dark);
    font-size: 0.8rem;
    line-height: 1.55;
    margin-top: 8px;
    font-weight: 700;
    text-align: center;
}

/* Form Styles */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    width: 100%;
}

.form-group label {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--color-green-dark);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.cyber-input-modern {
    width: 100%;
    padding: 14px 20px;
    background: rgba(205, 249, 222, 0.5); /* Mint tint */
    border: 4px solid #000000;
    border-radius: 12px;
    color: var(--color-green-dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.12rem;
    font-weight: 800;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.15s ease;
}

.cyber-input-modern:focus {
    background: #ffffff;
    border-color: var(--color-green-bright);
    transform: translateY(-1px);
}

/* Skins Selector Grid */
.skin-selector {
    display: flex;
    justify-content: space-around;
    gap: 8px;
    margin-top: 5px;
}

.skin-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 6px;
    border: 2px solid transparent;
    border-radius: 18px;
    cursor: pointer;
    background: rgba(205, 249, 222, 0.45);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.skin-option:hover {
    background: rgba(205, 249, 222, 0.7);
    transform: translateY(-2px);
}

.skin-option.selected {
    background: #ffffff;
    border-color: var(--color-green-bright);
    box-shadow: 0 10px 25px rgba(7, 144, 107, 0.08);
    transform: translateY(-4px);
}

.skin-preview {
    width: 26px;
    height: 20px;
    border-radius: 50%;
    margin-bottom: 6px;
}

.skin-preview.yellow { background: #ffe600; box-shadow: 0 3px 8px rgba(255, 230, 0, 0.3); }
.skin-preview.pink { background: #ff007f; box-shadow: 0 3px 8px rgba(255, 0, 127, 0.3); }
.skin-preview.cyan { background: #00f0ff; box-shadow: 0 3px 8px rgba(0, 240, 255, 0.3); }
.skin-preview.green { background: #00916A; box-shadow: 0 3px 8px rgba(0, 145, 106, 0.3); }

.skin-name {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--color-green-dark);
}

/* Pixel Retro Buttons Overhaul */
.cyber-button {
    font-family: var(--font-game);
    font-weight: 800;
    padding: 13px 26px;
    border: 4px solid #000000;
    border-radius: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    margin-bottom: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    color: #ffffff;
    transition: all 0.05s ease;
    position: relative;
}

.cyber-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.cyber-button:active {
    transform: translateY(6px);
}

.btn-primary {
    background: var(--color-yellow);
    color: var(--color-green-dark);
    box-shadow: 0 6px 0px #000000;
}

.btn-primary:hover {
    box-shadow: 0 8px 0px #000000;
}

.btn-primary:active {
    box-shadow: 0 0px 0px #000000;
}

.btn-secondary {
    background: #ffffff;
    color: var(--color-green-dark);
    box-shadow: 0 6px 0px #000000;
}

.btn-secondary:hover {
    box-shadow: 0 8px 0px #000000;
}

.btn-secondary:active {
    box-shadow: 0 0px 0px #000000;
}

.btn-green {
    background: var(--color-green-bright);
    color: #ffffff;
    box-shadow: 0 6px 0px #000000;
}

.btn-green:hover {
    box-shadow: 0 8px 0px #000000;
}

.btn-green:active {
    box-shadow: 0 0px 0px #000000;
}

/* Borderless Segmented Social pills */
.network-selector-modern {
    display: flex;
    gap: 12px;
    margin-bottom: 4px;
    width: 100%;
}

.network-btn-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 20px;
    border: none;
    background: var(--color-green-mint);
    color: var(--color-green-dark);
    font-size: 1.02rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.network-btn-option:active {
    transform: scale(0.96);
}

.network-btn-option.active[data-network="Phone"] {
    background: linear-gradient(135deg, var(--color-green-bright) 0%, var(--color-green-dark) 100%);
    color: #ffffff;
    box-shadow: var(--shadow-button-green);
    transform: translateY(-2px);
}

.network-btn-option.active[data-network="Instagram"] {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(220, 39, 67, 0.35);
    transform: translateY(-2px);
}

.network-btn-option.active[data-network="TikTok"] {
    background: #111111;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(0, 240, 255, 0.25);
    transform: translateY(-2px);
}

/* Game Viewport & Canvas Sizing */
.game-viewport {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    border-radius: 0;
    pointer-events: none; /* Clicks pass through to UI overlay screens */
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

/* HUD Overlay */
.hud-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 15;
}

.hud-score {
    font-family: var(--font-game);
    font-size: 4.8rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 6px 18px rgba(0, 73, 57, 0.1);
}

.hud-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.hud-item {
    background: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 6px 14px;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--color-green-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.hud-item.stars {
    color: var(--color-green-bright);
}

.hud-toggles {
    display: flex;
    gap: 8px;
}

.hud-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #ffffff;
    border: none;
    color: var(--color-green-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    pointer-events: auto;
    transition: transform 0.15s ease;
}

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

.hud-btn.disabled {
    opacity: 0.55;
    background: #E0E0E0 !important;
    color: #757575 !important;
}

/* Polaroid share card makeover (Borderless Solid) */
.share-card-container {
    width: 100%;
    margin-top: 5px;
    margin-bottom: 12px;
    perspective: 1000px;
}

.share-card {
    background: linear-gradient(135deg, #ffffff 0%, #FFFDF7 50%, #FAF8FF 100%);
    border: none;
    box-shadow: 0 15px 40px rgba(0, 73, 57, 0.06);
    border-radius: 28px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.share-card:hover {
    transform: translateY(-4px) scale(1.02) rotate(0.5deg);
}

.share-card::before {
    content: '🎂';
    position: absolute;
    font-size: 8rem;
    opacity: 0.05;
    bottom: -20px;
    right: -20px;
    transform: rotate(-15deg);
    pointer-events: none;
}

.share-card::after {
    content: '✨';
    position: absolute;
    font-size: 2.2rem;
    color: var(--color-yellow);
    top: 15px;
    right: 15px;
    opacity: 0.85;
    animation: bounceSparkle 3s infinite ease-in-out;
}

@keyframes bounceSparkle {
    0%, 100% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-5px) scale(1.15) rotate(15deg); opacity: 0.95; }
}

.card-title {
    font-size: 0.9rem;
    color: var(--color-green-bright);
    font-family: var(--font-game);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.8px;
}

.card-username {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--color-green-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(90deg, var(--color-green-dark), var(--color-green-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-username::after {
    content: '👑';
    font-size: 1.2rem;
    -webkit-text-fill-color: initial;
}

.card-stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 20px;
    padding: 10px 4px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 73, 57, 0.03);
}

.card-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-stat-val {
    font-family: var(--font-game);
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--color-green-dark);
}

.card-stat-label {
    font-size: 0.65rem;
    color: var(--color-pink);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.ticket-box {
    margin-top: 14px;
    background: var(--color-green-mint);
    border: none;
    border-radius: 20px;
    padding: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ticket-header {
    font-size: 0.95rem;
    color: var(--color-green-dark);
    text-transform: uppercase;
    font-weight: 900;
}

.ticket-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
    color: var(--color-green-dark);
    background: #ffffff;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 73, 57, 0.03);
    border: none;
    display: inline-block;
}

#card-tickets-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    width: 100%;
    max-height: 80px;
    overflow-y: auto;
    padding: 2px 4px;
}

#card-tickets-list::-webkit-scrollbar {
    width: 4px;
}

#card-tickets-list::-webkit-scrollbar-thumb {
    background: rgba(0, 73, 57, 0.15);
    border-radius: 4px;
}

/* Secret Admin View (Borderless solid layout) */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--color-green-mint);
    padding-bottom: 12px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    margin-bottom: 18px;
}

.admin-stat-card {
    background: #ffffff;
    border: none;
    border-radius: 18px;
    padding: 12px 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
    text-align: center;
}

.admin-stat-num {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--color-pink);
}

.admin-stat-lbl {
    font-size: 0.6rem;
    color: var(--color-green-dark);
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 2px;
}

.admin-list-container {
    flex: 1;
    width: 100%;
    overflow-y: auto;
    background: #ffffff;
    border: none;
    border-radius: 20px;
    margin-bottom: 18px;
    padding: 8px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    text-align: left;
}

.admin-table th {
    color: var(--color-green-dark);
    padding: 10px 12px;
    border-bottom: 2px solid var(--color-green-mint);
    font-weight: 800;
    text-transform: uppercase;
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(0, 73, 57, 0.03);
    color: var(--color-green-dark);
    font-weight: 700;
}

.admin-table tr:hover {
    background: var(--color-green-mint);
}

/* Borderless Winner Drawer Modal */
.picker-content {
    background: #ffffff;
    border: 4px solid #000000;
    box-shadow: 10px 10px 0px #000000;
    border-radius: 28px;
    width: 100%;
    max-width: 400px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.slot-container {
    width: 100%;
    height: 120px;
    background: var(--color-green-mint);
    border: 4px solid #000000;
    border-radius: 20px;
    margin: 18px 0;
    position: relative;
    overflow: hidden;
}

.slot-window-lines {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 10;
    border-top: 48px solid rgba(216, 205, 241, 0.35);
    border-bottom: 48px solid rgba(216, 205, 241, 0.35);
}

.slot-center-pointer {
    position: absolute;
    right: 8px;
    top: calc(50% - 10px);
    width: 0; height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 15px solid var(--color-pink);
    z-index: 15;
}

.slot-center-pointer-left {
    position: absolute;
    left: 8px;
    top: calc(50% - 10px);
    width: 0; height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid var(--color-pink);
    z-index: 15;
}

.slot-reel {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
}

.slot-item {
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-green-dark);
}

.slot-item-network {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    color: var(--color-pink);
    font-weight: 800;
    margin-top: 4px;
}

.picker-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(216, 205, 241, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.picker-modal.active {
    display: flex !important;
}

.winner-announce {
    text-align: center;
    display: none;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.35s ease;
    width: 100%;
}

.winner-announce.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.winner-title {
    font-family: var(--font-game);
    font-size: 2.2rem;
    color: var(--color-yellow);
    margin-bottom: 10px;
    font-weight: 900;
}

.winner-handle {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--color-green-dark);
    margin-bottom: 8px;
}

.winner-ticket {
    background: var(--color-green-mint);
    border: none;
    color: var(--color-green-dark);
    padding: 8px 22px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 800;
    display: inline-block;
}

#confettiCanvas {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 99999999;
}

.settings-row {
    display: flex;
    gap: 10px;
}

.settings-row .form-group {
    flex: 1;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--color-green-dark);
    font-size: 1.6rem;
    cursor: pointer;
    font-weight: 800;
}

/* --- SPEED SELECTOR UI --- */
.speed-selector {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 6px;
}

.speed-option {
    background: rgba(255, 255, 255, 0.45);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 10px 4px;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--color-green-dark);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.speed-option:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

.speed-option.selected {
    background: var(--color-green-bright);
    color: #ffffff;
    border-color: var(--color-green-bright);
    box-shadow: 0 6px 15px rgba(0, 145, 106, 0.2);
}

.speed-option.selected[data-speed="slow"] {
    background: var(--color-yellow);
    color: var(--color-green-dark);
    border-color: var(--color-yellow);
    box-shadow: 0 6px 15px rgba(254, 209, 0, 0.2);
}

.speed-option.selected[data-speed="turbo"] {
    background: var(--color-pink);
    color: #ffffff;
    border-color: var(--color-pink);
    box-shadow: 0 6px 15px rgba(233, 93, 144, 0.2);
}

/* --- GAME READY OVERLAY --- */
.game-ready-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 73, 57, 0.38); /* Brand green translucent */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 10;
    visibility: hidden;
}

.game-ready-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ready-content {
    background: linear-gradient(135deg, #ffffff 0%, #FFFDF7 100%);
    border: none;
    box-shadow: 0 15px 40px rgba(0, 73, 57, 0.15);
    border-radius: 24px;
    padding: 22px 20px;
    width: 88%;
    max-width: 320px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none; /* Clicks fall through! */
}

.game-ready-overlay.active .ready-content {
    transform: scale(1.0);
}

.ready-title {
    font-family: var(--font-game);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--color-green-dark);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.ready-instructions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
    text-align: left;
}

.instruction-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inst-icon {
    font-size: 1.3rem;
    min-width: 24px;
    text-align: center;
}

.inst-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    line-height: 1.3;
}

.tap-to-start-glow {
    font-size: 0.98rem;
    font-weight: 900;
    color: var(--color-pink);
    animation: readyPulse 1.4s infinite ease-in-out;
    letter-spacing: 0.5px;
}

@keyframes readyPulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 4px rgba(233, 93, 144, 0.3)); }
    100% { transform: scale(1); opacity: 0.8; }
}

/* --- MODERN GAME UI OVERHAULS --- */

/* Leaderboard medals & hover highlights */
#leaderboard-body tr {
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#leaderboard-body tr:hover {
    background: rgba(7, 144, 107, 0.06) !important;
    transform: scale(1.015) translateX(3px);
}

#leaderboard-body tr:nth-child(1) {
    background: rgba(254, 209, 0, 0.08);
}
#leaderboard-body tr:nth-child(2) {
    background: rgba(142, 137, 181, 0.08);
}
#leaderboard-body tr:nth-child(3) {
    background: rgba(244, 174, 205, 0.08);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: 900;
    font-size: 0.75rem;
    text-align: center;
}

.rank-gold {
    background: var(--color-yellow);
    color: var(--color-green-dark);
    box-shadow: 0 4px 10px rgba(254, 209, 0, 0.35);
}

.rank-silver {
    background: #E2E8F0;
    color: var(--color-green-dark);
    box-shadow: 0 4px 10px rgba(226, 232, 240, 0.3);
}

.rank-bronze {
    background: var(--color-pink);
    color: var(--color-green-dark);
    box-shadow: 0 4px 10px rgba(244, 174, 205, 0.35);
}

.rank-normal {
    background: rgba(0, 73, 57, 0.06);
    color: var(--color-green-dark);
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
}

/* Primary Button Pulse Effect */
#btn-enter {
    animation: btn-pulse-green 2s infinite ease-in-out;
}

/* Shimmer overlay for share card */
.card-title {
    position: relative;
}

.card-title::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -150%;
    width: 60%;
    height: 300px;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.55) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    pointer-events: none;
    z-index: 10;
}

.share-card:hover .card-title::before {
    animation: card-shimmer 1.1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* --- NEW MODERN MENU REDESIGN --- */

.main-menu-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 4px solid #000000;
    border-radius: 28px;
    padding: 30px 24px;
    width: 100%;
    box-shadow: 8px 8px 0px #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: card-float 6s ease-in-out infinite;
}

@keyframes card-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Battlepass / Season-style Promo Banner */
.menu-promo-banner {
    background: linear-gradient(135deg, var(--color-green-mint) 0%, rgba(205, 249, 222, 0.6) 100%);
    border: 1px solid rgba(7, 144, 107, 0.15);
    border-radius: 20px;
    padding: 14px 16px;
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    box-shadow: 0 8px 20px rgba(7, 144, 107, 0.05);
}

.promo-icon-badge {
    font-size: 1.8rem;
    min-width: 44px;
    height: 44px;
    background: var(--color-pink);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(244, 174, 205, 0.4);
    animation: icon-wobble 4s ease-in-out infinite;
}

@keyframes icon-wobble {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(8deg) scale(1.05); }
}

.promo-details {
    display: flex;
    flex-direction: column;
}

.promo-title-text {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--color-green-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.promo-desc-text {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-green-dark);
    opacity: 0.85;
    line-height: 1.35;
}

/* Modern Input Fields with Icon Integrations */
.input-with-icon {
    position: relative;
    width: 100%;
}

.input-icon-label {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    pointer-events: none;
    opacity: 0.8;
}

.input-with-icon .cyber-input-modern {
    padding-left: 48px;
}

/* Modern Segment Control Outline styles */
.network-selector-modern {
    background: rgba(205, 249, 222, 0.45);
    padding: 5px;
    border-radius: 20px;
    display: flex;
    width: 100%;
    gap: 4px;
}

.network-btn-option {
    background: transparent;
    padding: 10px 14px;
    font-size: 0.78rem;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.network-btn-option:hover {
    background: rgba(255, 255, 255, 0.5);
}

.network-btn-option.active {
    background: #ffffff !important;
    color: var(--color-green-dark) !important;
    box-shadow: 0 6px 15px rgba(0, 73, 57, 0.05);
    transform: none !important;
}

.network-btn-option.active[data-network="Phone"] {
    background: #ffffff !important;
    color: var(--color-green-dark) !important;
}

.network-btn-option.active[data-network="Instagram"] {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 15px rgba(220, 39, 67, 0.25);
}

.network-btn-option.active[data-network="TikTok"] {
    background: #111111 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Speed Selector Segment Styling */
.speed-selector {
    background: rgba(205, 249, 222, 0.45);
    padding: 5px;
    border-radius: 18px;
    gap: 4px;
}

.speed-option {
    background: transparent;
    border-radius: 14px;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.speed-option:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: none;
}

.speed-option.selected {
    background: #ffffff !important;
    color: var(--color-green-dark) !important;
    box-shadow: 0 6px 15px rgba(0, 73, 57, 0.05);
    transform: none !important;
    border-color: transparent;
}

.speed-option.selected[data-speed="slow"] {
    background: var(--color-yellow) !important;
    color: var(--color-green-dark) !important;
    box-shadow: 0 6px 15px rgba(254, 209, 0, 0.25);
}

.speed-option.selected[data-speed="turbo"] {
    background: var(--color-pink) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 15px rgba(244, 174, 205, 0.3);
}

/* Main primary buttons tweaks */
#btn-enter {
    animation: btn-pulse-green 2.2s infinite ease-in-out;
}

/* ==========================================
   🎁 ROADMAP & INTERMEDIATE REWARDS STYLING
   ========================================== */

.roadmap-track-container {
    margin-top: 10px;
    width: 100%;
}

/* Bullet nodes track styling */
.roadmap-step.unlocked .roadmap-bullet {
    background: var(--color-green-bright) !important;
    box-shadow: 0 0 0 3px var(--color-green-mint) !important;
    transform: scale(1.15);
}

.roadmap-step.locked .roadmap-bullet {
    background: #94a3b8;
    box-shadow: 0 0 0 3px #cbd5e1;
}

@keyframes card-glow-pulse {
    0% {
        box-shadow: 0 10px 25px rgba(27, 189, 127, 0.15), 0 0 0 0px rgba(27, 189, 127, 0.3);
    }
    50% {
        box-shadow: 0 10px 25px rgba(27, 189, 127, 0.25), 0 0 0 10px rgba(27, 189, 127, 0);
        transform: translateY(-2px) scale(1.015);
    }
    100% {
        box-shadow: 0 10px 25px rgba(27, 189, 127, 0.15), 0 0 0 0px rgba(27, 189, 127, 0);
    }
}

/* Roadmap cards state controllers */
.roadmap-step.unlocked .roadmap-node {
    border-color: var(--color-green-bright) !important;
    background: #ffffff !important;
    animation: card-glow-pulse 3s infinite ease-in-out;
    position: relative;
}

.roadmap-step.unlocked .roadmap-node::after {
    content: '🎉';
    position: absolute;
    right: 14px;
    bottom: 12px;
    font-size: 1.15rem;
    opacity: 0.65;
}

.roadmap-step.locked .roadmap-node {
    background: rgba(241, 245, 249, 0.6) !important;
    border: 3px solid rgba(148, 163, 184, 0.3) !important;
    opacity: 0.75;
    cursor: not-allowed !important;
    position: relative;
}

.roadmap-step.locked .roadmap-node::after {
    content: '🔒';
    position: absolute;
    right: 14px;
    bottom: 12px;
    font-size: 1.15rem;
    opacity: 0.45;
}

.roadmap-node {
    border: 3px solid transparent;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.roadmap-node:hover {
    transform: translateY(-3px) scale(1.01);
}

.roadmap-step.locked .roadmap-node:hover {
    transform: none;
}

/* Milestone Badge styles */
.roadmap-step.unlocked .milestone-badge {
    background: var(--color-green-mint) !important;
    color: var(--color-green-dark) !important;
}

.roadmap-step.locked .milestone-badge {
    background: #e2e8f0;
    color: #475569;
}

/* Barcode Animation Pulse */
.barcode-simulator {
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.barcode-simulator:hover {
    opacity: 1;
}

/* Progress Bar styling */
.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.08) !important;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 4px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc619, #f18a22, #ffc619) !important;
    background-size: 200% 100% !important;
    animation: progress-wave 2s linear infinite !important;
    border-radius: 6px;
    width: 0%;
    transition: width 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 6px rgba(241, 138, 34, 0.3);
}

/* Unlocked progress bar turns solid glowing green */
.roadmap-step.unlocked .progress-bar-fill {
    background: linear-gradient(90deg, var(--color-green-bright), #10b981, var(--color-green-bright)) !important;
    background-size: 200% 100% !important;
    animation: progress-wave 2s linear infinite !important;
    box-shadow: 0 0 8px rgba(27, 189, 127, 0.5);
}

/* Glowing Timeline connection */
.roadmap-progress-line-fill {
    box-shadow: 0 0 10px var(--color-green-bright);
}

/* Bullet nodes track styling */
.roadmap-step.unlocked .roadmap-bullet {
    background: var(--color-green-bright) !important;
    box-shadow: 0 0 0 3px var(--color-green-mint), 0 0 10px var(--color-green-bright) !important;
    transform: scale(1.25);
}

/* Reward Icon container */
.reward-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    animation: float-emoji 3s ease-in-out infinite;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.roadmap-step.unlocked .reward-icon-circle {
    background: var(--color-green-mint);
    border-color: var(--color-green-bright);
    box-shadow: 0 4px 12px rgba(27, 189, 127, 0.25);
}

.roadmap-step.locked .reward-icon-circle {
    filter: grayscale(80%);
    opacity: 0.6;
}

/* Keyframes */
@keyframes float-emoji {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(8deg) scale(1.05); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes progress-wave {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shake-box {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(-8deg); }
    30% { transform: rotate(8deg); }
    45% { transform: rotate(-6deg); }
    60% { transform: rotate(6deg); }
    75% { transform: rotate(-3deg); }
    90% { transform: rotate(3deg); }
    100% { transform: rotate(0deg); }
}

.shake-box {
    animation: shake-box 0.75s infinite ease-in-out;
}

@keyframes reveal-pop {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    70% { transform: scale(1.3) rotate(15deg); opacity: 1; }
    100% { transform: scale(1.0) rotate(0deg); }
}

.reveal-pop {
    animation: reveal-pop 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Chest and floating reward animations on roadmap screen */
.roadmap-step.locked .roadmap-chest-img {
    filter: grayscale(40%);
    opacity: 0.85;
}

.roadmap-step.locked .reward-floating-badge {
    filter: grayscale(100%);
    opacity: 0.65;
    border-color: #64748b !important;
}

.roadmap-step.unlocked .roadmap-chest-img {
    animation: chest-pulse 2s infinite ease-in-out;
}

.roadmap-step.unlocked .reward-floating-badge {
    border-color: var(--color-green-bright) !important;
    box-shadow: 0 0 10px rgba(27, 189, 127, 0.4);
    animation: float-emoji 3s ease-in-out infinite;
}

@keyframes chest-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5)); }
    100% { transform: scale(1); }
}

/* Coupon Card Styling for Roadmap nodes */
.coupon-card {
    position: relative;
    display: flex;
    flex-direction: row !important;
    align-items: center;
    padding: 6px !important;
    border: 4px solid #000000 !important;
    border-radius: 20px !important;
    box-shadow: 6px 6px 0px #000000 !important;
    background: #ffffff !important;
    transition: all 0.2s ease;
    margin-bottom: 12px;
    width: 100%;
}

.coupon-card.locked {
    background: #f8fafc !important;
    opacity: 0.95;
}

.coupon-card.unlocked {
    background: #fffdf2 !important; /* Slightly warm gold ticket tint */
}

.coupon-left {
    width: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    flex-shrink: 0;
}

.coupon-right {
    flex: 1;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}




