/**
 * 🔥 quizdrop v1.3 - UX Melhorada
 * Mobile First | Responsive | Modern
 */

/* ========================================
   FONTS
======================================== */
@import url('https://fonts.googleapis.com/css2?family=Cabin:wght@400;600;700&family=Roboto+Mono:wght@500;600&display=swap');

/* ========================================
   CSS VARIABLES
======================================== */
:root {
    /* Colors - Fire Theme */
    --color-fire-orange: #FF6B35;
    --color-fire-red: #E63946;
    --color-fire-yellow: #FEC400;
    --color-dark: #2B2B2B;
    --color-darker: #1A1A1A;
    --color-light: #FFFFFF;
    --color-gray-100: #F9FAFB;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-600: #4B5563;
    --color-gray-800: #1F2937;
    
    /* Semantic Colors */
    --color-success: #10B981;
    --color-error: #EF4444;
    --color-warning: #F59E0B;
    --color-info: #3B82F6;
    
    /* Gradients */
    --gradient-fire: linear-gradient(135deg, var(--color-fire-orange) 0%, var(--color-fire-red) 50%, var(--color-fire-yellow) 100%);
    --gradient-energy: linear-gradient(90deg, var(--color-fire-yellow) 0%, var(--color-fire-orange) 100%);
    --gradient-dark: linear-gradient(180deg, var(--color-dark) 0%, var(--color-darker) 100%);
    
    /* Typography */
    --font-primary: 'Cabin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Roboto Mono', 'Courier New', monospace;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.0rem;
    --spacing-lg: 1.0rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Z-index */
    --z-header: 1000;
    --z-modal: 2000;
    --z-toast: 3000;
}

/* ========================================
   RESET & BASE
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    background: var(--color-gray-100);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.75rem 0;
    padding: 0.75rem 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.product-meta-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-gray-600);
}

.meta-value {
    font-weight: 700;
    color: var(--color-dark);
}

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

.priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-md);
    background: rgba(255, 107, 53, 0.12);
    color: var(--color-fire-orange);
    font-size: 0.75rem;
    font-weight: 600;
}

.priority-badge span {
    font-weight: 500;
    color: var(--color-gray-600);
}

.priority-badge-own {
    background: rgba(16, 185, 129, 0.12);
    color: var(--color-success);
}

.ranking-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--color-gray-600);
}

.ranking-value {
    font-weight: 700;
    color: var(--color-dark);
}

.product-my-stats-empty .my-stat-value {
    color: var(--color-gray-300);
}

@media (max-width: 600px) {
    .product-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}
/* ========================================
   HEADER
======================================== */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--color-light);
    border-bottom: 2px solid var(--color-fire-orange);
    box-shadow: var(--shadow-md);
    z-index: var(--z-header);
}

.app-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: inherit;
}
.header-logo:focus-visible {
    outline: 2px solid rgba(255, 107, 53, 0.8);
    outline-offset: 4px;
}

.logo-fire {
    font-size: 2rem;
    line-height: 1;
}

.logo-text {
    color: var(--color-dark);
    letter-spacing: -0.5px;
}

.header-points {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--gradient-fire);
    color: var(--color-light);
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    font-family: var(--font-mono);
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.points-value {
    font-size: 1.25rem;
}

.points-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* ========================================
   MAIN APP
======================================== */
.app-main {
    padding-top: 64px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

/* ========================================
   SCREENS
======================================== */
.screen {
    display: none;
    animation: fadeIn 0.3s ease;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.hero-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.hero-text {
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   PRODUCTS
======================================== */
.products-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

@media (min-width: 640px) {
    .products-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    background: var(--color-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
    border-image: var(--gradient-fire) 1;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--color-gray-100);
}

.product-body {
    padding: var(--spacing-md);
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-fire-orange);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-xs);
}

.product-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-dark);
    line-height: 1.3;
}

.product-prices {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.price-original {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    text-decoration: line-through;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--color-fire-red);
}

.product-progress {
    margin-bottom: var(--spacing-md);
}

.progress-bar {
    height: 8px;
    background: var(--color-gray-200);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: var(--spacing-xs);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-energy);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.75rem;
    color: var(--color-gray-600);
    text-align: right;
}

.product-skeleton {
    background: var(--color-light);
    border-radius: var(--radius-lg);
    height: 400px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--gradient-fire);
    color: var(--color-light);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--color-gray-200);
    color: var(--color-dark);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--color-gray-300);
}

.btn-fire {
    position: relative;
    overflow: hidden;
}

.btn-fire::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-fire:hover::before {
    width: 300px;
    height: 300px;
}

.btn-block {
    width: 100%;
}

.btn-back-profile {
    background: transparent;
    border: none;
   /* color: var(--color-gray-600);*/
    font-size: 1rem;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-back-profile:hover {
    color: var(--color-dark);
}

/* ========================================
   GAME
======================================== */
.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--color-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.game-round,
.game-score {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.125rem;
}

.game-score {
    color: var(--color-fire-orange);
}

.game-type-badge {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    padding: var(--spacing-sm);
    background: var(--gradient-fire);
    color: var(--color-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.game-area {
    background: var(--color-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    min-height: 400px;
}

/* Quiz Game */
.quiz-question {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--color-gray-100);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-fire-orange);
}

.quiz-answers {
    display: grid;
    gap: var(--spacing-md);
}

.quiz-answer {
    padding: var(--spacing-md);
    background: var(--color-light);
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    text-align: left;
}

.quiz-answer:hover {
    border-color: var(--color-fire-orange);
    transform: translateX(4px);
}

.quiz-answer.correct {
    background: var(--color-success);
    color: var(--color-light);
    border-color: var(--color-success);
}

.quiz-answer.wrong {
    background: var(--color-error);
    color: var(--color-light);
    border-color: var(--color-error);
}

.quiz-answer.disabled {
    pointer-events: none;
    opacity: 0.6;
}

/* Card Game */
.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.game-card {
    aspect-ratio: 2/3;
    background: var(--gradient-fire);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '🔥';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.3;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.game-card.flipped {
    background: var(--color-light);
    border: 2px solid var(--color-gray-300);
}

.game-card.flipped::before {
    content: attr(data-value);
    font-size: 1.25rem;
    opacity: 1;
    color: var(--color-dark);
}

.game-card.correct {
    background: var(--color-success);
    border-color: var(--color-success);
}

.game-card.wrong {
    background: var(--color-error);
    border-color: var(--color-error);
}

/* ========================================
   RESULT CARD
======================================== */
.result-card {
    background: var(--color-light);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    margin: var(--spacing-xl) auto;
}

.result-icon {
    font-size: 5rem;
    margin-bottom: var(--spacing-md);
}

.result-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.result-points {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-lg);
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--color-gray-100);
    border-radius: var(--radius-md);
}

.stat {
    text-align: center;
}

.stat-value-member-member {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-mono);
    margin-bottom: var(--spacing-xs);
    color
}

.stat-value-member.correct { color: var(--color-success); }
.stat-value-member.wrong { color: var(--color-error); }
.stat-value-member.total { color: var(--color-fire-orange); }

.stat-label {
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

/* ========================================
   SIGNUP CARD
======================================== */
.signup-card {
    background: var(--color-light);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    margin: var(--spacing-xl) auto;
}

.signup-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.signup-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.signup-subtitle {
    color: var(--color-gray-600);
}

.signup-progress {
    margin-bottom: var(--spacing-lg);
}

.signup-content {
    margin-bottom: var(--spacing-lg);
}

.signup-question {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.signup-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color 0.2s ease;
}

.signup-input:focus {
    outline: none;
    border-color: var(--color-fire-orange);
}

.signup-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.signup-actions .btn {
    flex: 1;
}

/* ========================================
   MODAL
======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-modal);
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--color-light);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--color-gray-200);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-gray-600);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.modal-close:hover {
    color: var(--color-dark);
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-footer {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    border-top: 1px solid var(--color-gray-200);
}

.modal-footer .btn {
    flex: 1;
}

/* Login Modal */
.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.login-form .form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.login-form .form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2933;
}

.login-form .signup-input {
    width: 100%;
}

.form-error {
    color: #ff4d4f;
    font-size: 0.85rem;
    min-height: 1.1rem;
    display: none;
}

.form-error.active {
    display: block;
}

/* Drop Price Modal */
.product-info {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* Drop Product Display */
.drop-product-display {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.drop-product-image {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: white;
    padding: 4px;
    flex-shrink: 0;
}

.drop-product-details {
    flex: 1;
    text-align: left;
}

.drop-product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.drop-product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-fire-orange);
    margin: 0;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .drop-product-image {
        width: 56px;
        height: 56px;
    }
    
    .drop-product-name {
        font-size: 0.9rem;
    }
    
    .drop-product-price {
        font-size: 1.1rem;
    }
}

.drop-slider-container {
    margin-top: var(--spacing-lg);
}

.drop-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.drop-slider {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: var(--color-gray-200);
    outline: none;
    -webkit-appearance: none;
}

.drop-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-fire);
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.drop-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-fire);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
}

.drop-calculation {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--color-gray-100);
    border-radius: var(--radius-md);
}

.calc-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-xs);
}

.calc-row.highlight {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-fire-red);
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 2px solid var(--color-gray-300);
}

/* ========================================
   TOAST COMPONENT
======================================== */
.toast-container {
    position: fixed;
    top: 80px;
    right: var(--spacing-md);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    border-left: 4px solid var(--color-primary);
}

.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #666;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--color-text);
}

/* Toast Types */
.toast-success {
    border-left-color: var(--color-success);
}

.toast-success .toast-icon {
    background: var(--color-success);
    color: white;
}

.toast-error {
    border-left-color: var(--color-error);
}

.toast-error .toast-icon {
    background: var(--color-error);
    color: white;
}

.toast-warning {
    border-left-color: var(--color-warning);
}

.toast-warning .toast-icon {
    background: var(--color-warning);
    color: white;
}

.toast-info {
    border-left-color: var(--color-info);
}

.toast-info .toast-icon {
    background: var(--color-info);
    color: white;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-emoji {
        font-size: 2.5rem;
    }
    
    .result-card,
    .signup-card {
        padding: var(--spacing-md);
    }
    
    .cards-container {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-sm);
    }
}

/* ========================================
   UTILITIES
======================================== */
.hidden {
    display: none !important;
}

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

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }


/* ========================================
   PROFILE / DASHBOARD v1.4
======================================== */

/* Header Profile Button */
.header-profile-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-fire);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    margin-left: var(--spacing-sm);
}

.header-profile-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.profile-icon {
    font-size: 1.5rem;
    filter: brightness(0) invert(1);
}

/* Profile Screen */
.profile-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.profile-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-left:1px;
}

/* Profile Card */
.profile-card {
    background: var(--gradient-fire);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    max-width: 100%;
    overflow: hidden;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3);
    border: 3px solid var(--color-light);
    border-radius: 50%;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-light);
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-left: auto;
    flex-shrink: 0;
}

.profile-actions .btn {
    flex: 1 1 140px;
    min-width: 120px;
}

@media (max-width: 768px) {
    .profile-card {
        flex-wrap: wrap;
        padding: var(--spacing-md);
    }
    
    .profile-avatar {
        width: 56px;
        height: 56px;
        min-width: 56px;
        min-height: 56px;
        font-size: 1.5rem;
    }
    
    .profile-info {
        flex: 1;
        min-width: 0;
    }
    
    .profile-name {
        font-size: 1.125rem;
    }
    
    .profile-email {
        font-size: 0.75rem;
    }
    
    .profile-actions {
        width: 100%;
        margin-left: 0;
        margin-top: var(--spacing-sm);
    }
    
    .profile-actions .btn {
        flex: 1;
        min-width: 0;
        font-size: 0.875rem;
        padding: 8px 12px;
    }
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-light);
    margin-bottom: 0.25rem;
}

.profile-email {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Stats Section */
.stats-section {
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--spacing-md);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.stat-card {
    background: var(--color-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-value-member {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--color-fire-orange);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--color-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Profile Section */
.profile-section {
    margin-bottom: var(--spacing-xl);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--spacing-sm);
}

/* Claimed List */
.claimed-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.claimed-item {
    background: var(--color-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    display: flex;
    gap: var(--spacing-md);
    box-shadow: var(--shadow-sm);
}

.claimed-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.claimed-info {
    flex: 1;
}

.claimed-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.25rem;
}

.claimed-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.claimed-status.pending {
    background: var(--color-warning);
    color: var(--color-light);
}

.claimed-status.completed {
    background: var(--color-success);
    color: var(--color-light);
}

.claimed-date {
    font-size: 0.75rem;
    color: var(--color-gray-600);
    margin-top: 0.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.empty-text {
    font-size: 1rem;
    color: var(--color-gray-600);
}

/* Responsive - Desktop */
@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .profile-title {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

/* ========================================
   PLAY TO EARN SECTION v1.4 - IMPROVED
======================================== */

.play-section {
    margin-bottom: var(--spacing-xl);
    /*padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(255, 159, 28, 0.08) 100%);*/
    border-radius: var(--radius-lg);
    /*border: 2px solid rgba(255, 107, 53, 0.2); */
}

.play-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
}

.play-subtitle {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    margin-top: 0.25rem;
}

.play-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-fire);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.badge-icon {
    font-size: 1.25rem;
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quiz Hero Card */
.quiz-hero {
    background: var(--color-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin-bottom: var(--spacing-md);
}

.quiz-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.3);
    border-color: var(--color-fire-orange);
}

.quiz-hero-left {
    display: flex;
    gap: var(--spacing-md);
    flex: 1;
}

.quiz-icon-large {
    font-size: 4rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.quiz-info {
    flex: 1;
}

.quiz-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.quiz-desc {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    margin-bottom: var(--spacing-md);
}

.quiz-stats {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.quiz-stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--color-gray-700);
    background: var(--color-gray-100);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.stat-icon {
    font-size: 1rem;
}

.stat-text {
    font-weight: 600;
}

/* Quiz Hero Right */
.quiz-hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.reward-badge-large {
    background: var(--gradient-fire);
    border-radius: var(--radius-md);
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    min-width: 80px;
}

.reward-amount {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--color-light);
    line-height: 1;
}

.reward-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

.btn-play {
    background: var(--gradient-fire);
    color: var(--color-light);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-play:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.btn-icon {
    font-size: 1.25rem;
}

/* Play Tips */
.play-tips {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--radius-md);
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-gray-700);
}

.tip-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.tip-text {
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .quiz-hero {
        flex-direction: column;
        text-align: center;
    }
    
    .quiz-hero-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .quiz-icon-large {
        font-size: 3rem;
    }
    
    .quiz-title {
        font-size: 1.25rem;
    }
    
    .quiz-stats {
        justify-content: center;
    }
    
    .quiz-hero-right {
        width: 100%;
    }
    
    .btn-play {
        width: 100%;
        justify-content: center;
    }
    
    .play-header {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .play-badge {
        align-self: flex-start;
    }
}

@media (min-width: 769px) {
    .play-tips {
        flex-direction: row;
        justify-content: space-around;
    }
}

/* ========================================
   COIN CLASH CARD
======================================== */

.coin-clash-card {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 159, 28, 0.1));
    border: 2px solid var(--color-fire-orange);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.coin-clash-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
    border-color: var(--color-fire-yellow);
}

.clash-header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.clash-icon {
    font-size: 3rem;
    animation: bounce 2s ease-in-out infinite;
}

.clash-info {
    flex: 1;
}

.clash-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.25rem 0;
}

.clash-desc {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

.clash-badge {
    margin-left: auto;
}

.badge-new {
    background: var(--gradient-fire);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s ease-in-out infinite;
}

.clash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.clash-stat {
    border: 1px solid rgba(255, 107, 53, 0.2);
    background: white;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-value-member {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    font-family: var(--font-mono);
}

.stat-value-member.prize {
    color: var(--color-fire-orange);
}

.btn-clash {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-fire);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-clash:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-clash .btn-icon {
    font-size: 1.25rem;
}

@media (max-width: 480px) {
    .clash-icon {
        font-size: 2.5rem;
    }
    
    .clash-stats {
        gap: 0.5rem;
    }
    
    .clash-stat {
    border: 1px solid rgba(255, 107, 53, 0.2);
        padding: 0.5rem;
    }
    
    .stat-value-member {
        font-size: 1.5rem;
    }
}


/* ============================================
   PRODUCT CARDS ENHANCED (COM RANKING)
   ============================================ */

.product-card-enhanced {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.product-card-enhanced:hover {
    border-color: var(--color-fire-orange);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

.product-card-enhanced .product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
}

.product-card-enhanced .product-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
}

/* Product Stats */
.product-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 0.75rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
}

.stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-fire-orange);
}

/* My Stats */
.product-my-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 0.75rem 0;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(255,107,53,0.05), rgba(255,159,28,0.05));
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,107,53,0.1);
}

.my-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.my-stat-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
}

.my-stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-fire-orange);
}

/* Ranking */
.product-ranking {
    margin: 0.75rem 0;
    padding: 0.75rem;
    background: #f9f9f9;
    border-radius: var(--radius-md);
}

.ranking-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.ranking-item:hover {
    background: #f5f5f5;
}

.ranking-medal {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.ranking-name {
    flex: 1;
    font-weight: 600;
    color: var(--color-dark);
    font-size: 0.875rem;
}

.ranking-amount {
    font-weight: 700;
    color: var(--color-fire-orange);
    font-size: 0.875rem;
}

.ranking-empty {
    text-align: center;
    padding: 1rem;
    color: #999;
    font-size: 0.875rem;
}

/* Button Drop */
.product-card-enhanced .btn-drop {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--color-fire-orange), var(--color-fire-yellow));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.75rem;
}

.product-card-enhanced .btn-drop:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Responsive */
@media (max-width: 480px) {
    .product-card-enhanced {
        padding: 0.875rem;
    }
    
    .product-card-enhanced .product-image {
        height: 160px;
    }
    
    .product-card-enhanced .product-name {
        font-size: 1rem;
    }
    
    .stat-value,
    .my-stat-value {
        font-size: 1rem;
    }
    
    .ranking-medal {
        font-size: 1.125rem;
    }
}

/* ========================================
   COIN CLASH GAME STYLES (merged)
======================================== */
/* ========================================
   COIN CLASH GAME STYLES
======================================== */

.game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    z-index: 1000;
}

/* ========================================
   LOBBY
======================================== */

.clash-lobby {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.lobby-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.btn-back {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lobby-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.lobby-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
}

.info-card.prize {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.3), rgba(255, 159, 28, 0.3));
}

.info-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    font-family: var(--font-mono);
}

.lobby-players {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.players-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    color: white;
    font-weight: 600;
}

.players-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.player-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: white;
}

.player-item.you {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.3), rgba(255, 159, 28, 0.3));
    border: 2px solid var(--color-fire-orange);
}

.player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.player-name {
    flex: 1;
    font-weight: 600;
}

.player-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lobby-status {
    text-align: center;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.status-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.btn-clash-join {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-fire);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clash-join:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.btn-clash-join:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   GAME CANVAS
======================================== */

.clash-game {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.game-hud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--spacing-md);
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 100%);
    z-index: 10;
}

.hud-stat, .hud-timer, .hud-alive, .hud-prize {
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    color: white;
}

.hud-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 0.25rem;
}

.hud-value {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.hud-center {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.hud-timer {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.hud-alive {
    font-size: 0.875rem;
    font-weight: 600;
}

.hud-prize {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.8), rgba(255, 159, 28, 0.8));
}

#game-canvas {
    width: 100%;
    height: 100%;
    display: block;
    background: #2c3e50;
}

/* ========================================
   MOBILE CONTROLS
======================================== */

.mobile-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
    z-index: 10;
}

.joystick {
    position: relative;
    width: 120px;
    height: 120px;
    pointer-events: all;
}

.joystick-base {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

.joystick-stick {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 53, 0.8);
    border: 3px solid white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.btn-dash {
    width: 80px;
    height: 80px;
    background: var(--gradient-fire);
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.5);
}

.btn-dash:active:not(:disabled) {
    transform: scale(0.9);
}

.btn-dash:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #666;
}

.dash-cooldown {
    position: absolute;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

/* ========================================
   GAME OVER
======================================== */

.clash-gameover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.gameover-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.gameover-rank {
    font-size: 4rem;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.gameover-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-lg);
}

.gameover-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: var(--spacing-xl);
    gap: var(--spacing-md);
}

.stat-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
}

.stat-item.prize {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.3), rgba(255, 159, 28, 0.3));
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    font-family: var(--font-mono);
}

.gameover-actions {
    display: flex;
    gap: var(--spacing-md);
}

.gameover-actions .btn {
    flex: 1;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 700;
}

/* ========================================
   DESKTOP ADJUSTMENTS
======================================== */

@media (min-width: 768px) {
    .mobile-controls {
        display: none;
    }
    
    .clash-lobby {
        padding: var(--spacing-xl);
    }
    
    .lobby-title {
        font-size: 2.5rem;
    }
    
    .info-value {
        font-size: 2rem;
    }
}

/* ========================================
   ANIMATIONS
======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.clash-gameover {
    animation: fadeIn 0.3s ease;
}

.gameover-rank {
    animation: pulse 1s ease infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}


/* Hero CTA buttons */
.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.hero-actions .btn {
    min-width: 160px;
    justify-content: center;
}

/* Duck hero card - Redesigned with vibrant gradient */
.duck-hero-card {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
    border-radius: 20px;
    padding: 24px;
    margin: 16px 0;
    gap: 20px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.25), 
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.duck-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.duck-hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(30, 64, 175, 0.35),
                0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.duck-hero-body {
    display: flex;
    gap: 20px;
    align-items: center;
    flex: 1;
}

.duck-hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(10px);
    display: grid;
    place-items: center;
    font-size: 40px;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    transition: transform 0.3s ease;
}

.duck-hero-card:hover .duck-hero-icon {
    transform: scale(1.05) rotate(-5deg);
}

.duck-hero-content {
    flex: 1;
}

.duck-hero-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.duck-hero-description {
    font-size: 1rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.duck-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.duck-hero-chip {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-duck-play {
    min-width: 200px;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    color: #1e40af;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.btn-duck-play:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.btn-duck-play:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 640px) {
    .duck-hero-card {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 16px;
    }

    .duck-hero-body {
        justify-content: flex-start;
        gap: 16px;
    }
    
    .duck-hero-icon {
        width: 64px;
        height: 64px;
        font-size: 36px;
    }
    
    .duck-hero-title {
        font-size: 1.125rem;
    }
    
    .duck-hero-description {
        font-size: 0.9375rem;
    }

    .btn-duck-play {
        width: 100%;
        padding: 12px 24px;
    }
}

/**
 * Lucky Duck Game - Mobile-First Redesign
 * Geometric Fire Identity: #FEC400 (Yellow), #FF6B35 (Orange), #E63946 (Red)
 */

/* ========================================
   BASE STYLES - MOBILE FIRST
   ======================================== */

.duck-game-wrapper {
    min-height: 100vh;
    background: linear-gradient(180deg, #0f172a 0%, #1e40af 50%, #1e293b 100%);
    color: #f8fafc;
    padding-bottom: 40px;
}

/* ========================================
   HEADER
   ======================================== */

.duck-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.duck-btn-back {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(148, 163, 184, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #e2e8f0;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.duck-btn-back:hover {
    background: rgba(148, 163, 184, 0.3);
    transform: translateX(-2px);
}

.back-icon {
    font-size: 1.1rem;
}

.duck-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.duck-icon {
    font-size: 1.8rem;
}

.duck-header-title h1 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.duck-header-points {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #FEC400, #FF6B35);
    padding: 8px 14px;
    border-radius: 12px;
    font-weight: 700;
    color: #1A1A1A;
    box-shadow: 0 4px 12px rgba(254, 196, 0, 0.3);
}

.points-icon {
    font-size: 1.1rem;
}

/* ========================================
   PROGRESS BAR
   ======================================== */

.duck-progress-section {
    padding: 16px;
    background: rgba(15, 23, 42, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.progress-level {
    color: rgba(226, 232, 240, 0.9);
}

.progress-level strong {
    color: #FEC400;
    font-size: 1.1rem;
}

.progress-xp {
    color: rgba(226, 232, 240, 0.7);
    font-size: 0.85rem;
}

.progress-bar-wrapper {
    width: 100%;
    height: 10px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FEC400, #FF6B35);
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(254, 196, 0, 0.5);
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.duck-main-content {
    padding: 16px;
}

/* ========================================
   CANVAS SECTION
   ======================================== */

.duck-canvas-section {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.phaser-canvas-wrapper {
    position: relative;
    width: 100%;
    min-height: 400px;
    background: linear-gradient(180deg, #38bdf8 0%, #2563eb 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.phaser-canvas-wrapper canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* ========================================
   OVERLAY & STATES
   ======================================== */

.duck-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
}

.duck-state {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: calc(100% - 24px);
    max-width: 600px;
    pointer-events: none;
}

.duck-state-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
}

.state-card {
    background: rgba(15, 23, 42, 0.96);
    border-radius: 20px;
    padding: 24px 20px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    max-height: 85vh;
    overflow-y: auto;
}

.state-card-compact {
    padding: 16px 20px;
}

.state-icon {
    font-size: 56px;
    margin-bottom: 12px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -8px, 0); }
}

.state-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #f8fafc;
}

.state-description {
    color: rgba(226, 232, 240, 0.85);
    margin: 0 0 20px 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.state-note {
    margin: 16px 0 0 0;
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.7);
    text-align: center;
}

/* ========================================
   QUICK INFO GRID
   ======================================== */

.quick-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.info-item {
    background: rgba(254, 196, 0, 0.12);
    border: 1px solid rgba(254, 196, 0, 0.2);
    border-radius: 14px;
    padding: 12px 8px;
    text-align: center;
}

.info-icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.info-label {
    font-size: 0.75rem;
    color: rgba(226, 232, 240, 0.7);
    margin-bottom: 4px;
}

.info-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #FEC400;
}

/* ========================================
   POWER-UPS SECTION
   ======================================== */

.powerups-section {
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.powerups-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(230, 57, 70, 0.15));
    border: none;
    color: #f8fafc;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.powerups-toggle:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.25), rgba(230, 57, 70, 0.25));
}

.toggle-icon {
    font-size: 1.3rem;
}

.toggle-text {
    flex: 1;
    text-align: left;
}

.toggle-arrow {
    transition: transform 0.3s ease;
}

.powerups-section.expanded .toggle-arrow {
    transform: rotate(180deg);
}

.powerups-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.powerups-section.expanded .powerups-content {
    max-height: 500px;
}

.powerups-grid {
    padding: 16px;
    display: grid;
    gap: 12px;
}

.powerup-item {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.powerup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.powerup-icon {
    font-size: 1.3rem;
}

.powerup-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
}

.powerup-badge {
    background: #22c55e;
    color: #0f172a;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

.powerup-desc {
    color: rgba(226, 232, 240, 0.75);
    font-size: 0.85rem;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.powerup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.powerup-cost {
    font-weight: 700;
    color: #FEC400;
    font-size: 0.9rem;
}

.powerup-btn {
    background: rgba(254, 196, 0, 0.15);
    border: 1px solid rgba(254, 196, 0, 0.3);
    color: #FEC400;
    padding: 6px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.powerup-btn:hover {
    background: rgba(254, 196, 0, 0.25);
    border-color: rgba(254, 196, 0, 0.5);
    transform: translateY(-2px);
}

/* ========================================
   PLAY BUTTON
   ======================================== */

.duck-btn-play {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #FEC400, #FF6B35);
    border: none;
    border-radius: 16px;
    padding: 16px 24px;
    color: #1A1A1A;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(254, 196, 0, 0.4);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.duck-btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(254, 196, 0, 0.5);
}

.duck-btn-play:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.3rem;
}

.btn-cost {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ========================================
   PLAYING STATE
   ======================================== */

.playing-hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.hud-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(59, 130, 246, 0.2);
    padding: 8px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
}

.timer-icon {
    font-size: 1.2rem;
}

.hud-active-items {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.2);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #22c55e;
}

.playing-hint {
    text-align: center;
    color: rgba(226, 232, 240, 0.9);
    margin: 0;
    font-size: 0.95rem;
}

/* ========================================
   RESULT STATE
   ======================================== */

.result-icon {
    font-size: 4rem;
    margin-bottom: 12px;
}

.result-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.prize-breakdown {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 20px;
}

.prize-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.prize-label {
    color: rgba(226, 232, 240, 0.8);
}

.prize-value {
    font-weight: 700;
    color: #f8fafc;
}

.prize-bonus {
    color: #22c55e;
}

.prize-divider {
    height: 1px;
    background: rgba(148, 163, 184, 0.3);
    margin: 12px 0;
}

.prize-total-row {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.prize-total {
    color: #FEC400;
    font-size: 1.4rem;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.result-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.result-btn-primary {
    background: linear-gradient(135deg, #FEC400, #FF6B35);
    color: #1A1A1A;
    box-shadow: 0 4px 12px rgba(254, 196, 0, 0.3);
}

.result-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(254, 196, 0, 0.4);
}

.result-btn-secondary {
    background: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.result-btn-secondary:hover {
    background: rgba(148, 163, 184, 0.3);
}

.result-btn-share {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.result-btn-share:hover {
    background: rgba(59, 130, 246, 0.3);
}

.result-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.6);
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #FEC400;
}

/* ========================================
   CONFETTI
   ======================================== */

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */

@media (min-width: 768px) {
    .duck-header {
        padding: 20px 24px;
    }

    .duck-header-title h1 {
        font-size: 1.6rem;
    }

    .duck-icon {
        font-size: 2rem;
    }

    .duck-progress-section {
        padding: 20px 24px;
    }

    .duck-main-content {
        padding: 24px;
    }

    .phaser-canvas-wrapper {
        min-height: 500px;
        border-radius: 24px;
    }

    .state-card {
        padding: 32px 28px;
    }

    .state-title {
        font-size: 1.8rem;
    }

    .quick-info-grid {
        gap: 14px;
    }

    .info-item {
        padding: 16px 12px;
    }

    .powerups-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .duck-btn-play {
        font-size: 1.2rem;
        padding: 18px 28px;
    }

    .result-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .result-btn {
        flex: 1;
        min-width: 160px;
    }
}

/* ========================================
   RESPONSIVE - DESKTOP
   ======================================== */

@media (min-width: 1024px) {
    .duck-game-wrapper {
        padding-bottom: 60px;
    }

    .duck-header {
        padding: 24px 32px;
    }

    .duck-progress-section {
        padding: 24px 32px;
    }

    .duck-main-content {
        padding: 32px;
    }

    .phaser-canvas-wrapper {
        min-height: 560px;
    }

    .state-card {
        padding: 36px 32px;
        max-height: 90vh;
    }

    .state-icon {
        font-size: 72px;
    }

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

    .powerups-content {
        max-height: 600px;
    }
}

/* ========================================
   RESPONSIVE - LARGE DESKTOP
   ======================================== */

@media (min-width: 1280px) {
    .duck-header {
        padding: 28px 40px;
    }

    .duck-progress-section {
        padding: 28px 40px;
    }

    .duck-main-content {
        padding: 40px;
    }

    .phaser-canvas-wrapper {
        min-height: 600px;
    }
}

/* ========================================
   UTILITIES
   ======================================== */

.duck-game-wrapper * {
    box-sizing: border-box;
}

.duck-game-wrapper button {
    font-family: inherit;
}

.duck-game-wrapper button:focus {
    outline: 2px solid #FEC400;
    outline-offset: 2px;
}

/* Smooth scrolling for state cards */
.state-card::-webkit-scrollbar {
    width: 6px;
}

.state-card::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.1);
    border-radius: 10px;
}

.state-card::-webkit-scrollbar-thumb {
    background: rgba(254, 196, 0, 0.3);
    border-radius: 10px;
}

.state-card::-webkit-scrollbar-thumb:hover {
    background: rgba(254, 196, 0, 0.5);
}



