/* CSS DESIGN SYSTEM: Championship Penalty Shootout Game */

:root {
    /* Color Palette - Matching promo.betss.com */
    --color-bg-dark: #061222; /* Tailwind blue-900 */
    --color-bg-medium: #0b2f6d; /* Tailwind blue-800 */
    --color-bg-light: #1454b8; /* Tailwind blue-700 */
    --color-primary: #38bdf8; /* Brand Blue (selection blue) */
    --color-primary-glow: rgba(56, 189, 248, 0.42);
    --color-target: #fbbf24; /* Neon/Pulsing Gold */
    --color-target-glow: rgba(251, 191, 36, 0.5);
    --color-goalie: #ef4444; /* Neon Red */
    --color-goalie-glow: rgba(239, 68, 68, 0.4);
    --color-gold: #fbbf24; /* Gold */
    --color-gold-glow: rgba(251, 191, 36, 0.4);
    
    /* Typography */
    --font-header: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows & Borders */
    --glass-bg: linear-gradient(155deg, rgba(7, 24, 48, 0.9), rgba(15, 50, 99, 0.72)); /* Blue-900 glass */
    --glass-border: rgba(125, 211, 252, 0.28);
    --glass-shadow: 0 22px 65px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    
    /* Layout Configurations */
    --max-content-width: 480px;
}

/* 1. Global Resets & HTML Configuration */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--color-bg-dark);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 16px;
}

/* Disable selection to make swipes feel native */
body {
    user-select: none;
    -webkit-user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 2. Stadium Ambient Background Graphics */
.stadium-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.38) 0%, transparent 36%),
        linear-gradient(180deg, #061222 0%, #08214a 44%, #0d3b84 100%);
}

.stadium-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 4%, rgba(255, 255, 255, 0.22) 0%, transparent 8%),
        radial-gradient(circle at 14% 0%, rgba(56, 189, 248, 0.35) 0%, transparent 28%),
        radial-gradient(circle at 86% 0%, rgba(251, 191, 36, 0.18) 0%, transparent 28%);
    pointer-events: none;
}

.lights-left, .lights-right {
    position: absolute;
    top: 0;
    width: 120px;
    height: 400px;
    pointer-events: none;
    opacity: 0.15;
}

.lights-left {
    left: 10%;
    background: radial-gradient(ellipse at top left, var(--color-primary) 0%, transparent 70%);
    transform: rotate(15deg);
}

.lights-right {
    right: 10%;
    background: radial-gradient(ellipse at top right, var(--color-primary) 0%, transparent 70%);
    transform: rotate(-15deg);
}

.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent);
    opacity: 0.3;
}

/* 3. Core App Containers */
.app-container {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    max-width: var(--max-content-width);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-header {
    height: 68px;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.55), transparent);
    z-index: 10;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.24);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.header-icon {
    animation: rotateBall 15s linear infinite;
}

h1.glow-text {
    font-family: var(--font-header);
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 1px;
    color: #ffffff;
}

h1.glow-text span {
    color: var(--color-primary);
    text-shadow: 0 0 10px var(--color-primary-glow);
}

.admin-badge {
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.admin-badge:hover {
    color: #ffffff;
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary-glow);
}

/* 4. Responsive Screens Layering */
.screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: absolute;
    width: 100%;
    height: calc(100% - 60px);
    top: 60px;
    left: 0;
}

.screen.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
    top: 0;
}

/* 5. Glassmorphism Card System */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
}

.signup-card {
    width: 100%;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    isolation: isolate;
}

.signup-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 0%, rgba(56, 189, 248, 0.28), transparent 36%),
        radial-gradient(circle at 88% 12%, rgba(251, 191, 36, 0.16), transparent 34%);
    pointer-events: none;
    z-index: -1;
}

.signup-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: -4px;
}

.hero-orb {
    width: 118px;
    height: 118px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.12) 70%);
    box-shadow: 0 0 34px rgba(56, 189, 248, 0.18);
}

.hero-badge {
    color: #bfdbfe;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.22);
    background: rgba(15, 23, 42, 0.42);
}

.signup-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.signup-highlights span {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #dbeafe;
    font-size: 11px;
    font-weight: 700;
}

.card-header h2 {
    font-family: var(--font-header);
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    text-align: center;
}

.card-header p {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.5;
    text-align: center;
}

/* 6. Form Fields Design styling */
form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 12px;
    font-weight: 600;
    color: #bae6fd;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    z-index: 2;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(125, 211, 252, 0.12);
    font-size: 14px;
}

.input-wrapper input {
    width: 100%;
    background: rgba(2, 6, 23, 0.32);
    border: 1px solid rgba(125, 211, 252, 0.2);
    border-radius: 16px;
    padding: 16px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

.input-wrapper input::placeholder {
    color: #64748b;
}

.input-wrapper input:focus {
    border-color: rgba(125, 211, 252, 0.68);
    background: rgba(8, 47, 103, 0.42);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.08), 0 14px 30px rgba(2, 6, 23, 0.18);
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.input-wrapper input:focus + .focus-border {
    width: 100%;
}

/* 7. Alerts system */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.error-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.hidden {
    display: none !important;
}

/* 8. Button Tokens & Animations */
.btn {
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
    border: none;
    font-family: var(--font-header);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 48%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5), 0 0 15px var(--color-primary-glow);
}

.btn-glow:active {
    transform: translateY(1px);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Button variants */
.btn-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #0c0800;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-gold:hover {
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5), 0 0 15px var(--color-gold-glow);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5), 0 0 15px var(--color-goalie-glow);
}

.btn-outline {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    border: none;
    color: #ffffff;
    margin-top: 12px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.4), 0 0 0 2px rgba(245, 158, 11, 0.3);
    animation: betssPulse 2s infinite ease-in-out;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
    box-shadow: 0 6px 25px rgba(234, 88, 12, 0.6), 0 0 0 3px rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
}

@keyframes betssPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(234, 88, 12, 0.4), 0 0 0 2px rgba(245, 158, 11, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(234, 88, 12, 0.6), 0 0 0 4px rgba(245, 158, 11, 0.5); }
}

/* 9. Game Arena Panel layout */
.game-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.game-status-bar {
    width: 100%;
    padding: 13px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.player-info, .attempt-badge {
    display: flex;
    flex-direction: column;
}

.player-info {
    align-items: flex-start;
}

.attempt-badge {
    align-items: flex-end;
}

/* ── Attempt pip footballs ──────────────────────────────────── */
.attempt-pips {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    justify-content: flex-end;
    align-items: center;
}

.attempt-pip {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0.85;
}

.attempt-pip.pip-active {
    opacity: 1;
    filter: drop-shadow(0 0 5px var(--color-primary));
    transform: scale(1.3);
}

.attempt-pip.pip-used {
    opacity: 0.25;
    filter: grayscale(100%) contrast(0.5);
    transform: scale(0.9);
}

/* Consumed attempt pop animation */
@keyframes pipPop {
    0%   { transform: scale(1.6); opacity: 1; }
    60%  { transform: scale(0.8); opacity: 0.3; }
    100% { transform: scale(0.9); opacity: 0.25; }
}

.attempt-pip.pip-pop {
    animation: pipPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.lbl {
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.val {
    font-family: var(--font-header);
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

#hud-player-name {
    color: var(--color-primary);
}

/* 10. High-Fidelity Canvas Container */
.canvas-container {
    flex: 1;
    position: relative;
    width: 100%;
    background: #071a34;
    border: 1px solid rgba(125, 211, 252, 0.2);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: inset 0 0 55px rgba(0, 0, 0, 0.86), 0 22px 52px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.canvas-container::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 22%, rgba(0, 0, 0, 0.22) 100%);
    mix-blend-mode: screen;
    opacity: 0.48;
}

#game-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Swipe Indicator overlay */
.swipe-overlay {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 30;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.swipe-indicator {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 110px;
    margin-bottom: 5px;
}

.hand-icon {
    animation: swipeUp 2s infinite ease-in-out;
}

.swipe-text {
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 14px;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.swipe-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: -4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* 11. Modal Overlays (Confetti cards) */
.modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 18%, rgba(59, 130, 246, 0.14), transparent 38%), rgba(2, 6, 23, 0.86);
    backdrop-filter: blur(12px);
}

.modal-wrapper {
    position: relative;
    z-index: 101;
    width: 90%;
    max-width: 380px;
    transform: scale(0.9) rotate(-2deg);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-wrapper {
    transform: scale(1) rotate(0);
}

.modal-card {
    padding: 35px 25px 25px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.modal-card > * {
    position: relative;
    z-index: 1;
}

.modal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    border-radius: 20px 20px 0 0;
}

.modal-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 20px;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 32%);
    opacity: 0.62;
    z-index: 0;
}

.win-card::before {
    background: linear-gradient(90deg, #fbbf24, #d97706);
}

.fail-card::before {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.guide-card::before {
    background: linear-gradient(90deg, #38bdf8, #0284c7);
}

/* Trophy Container & Sparkles */
.trophy-container {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90px;
}

.trophy {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.15);
    animation: pulseGold 2s infinite alternate;
}

.cross-container {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
    margin-bottom: 20px;
}

.outcome-title {
    font-family: var(--font-header);
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.win-card .outcome-title {
    color: var(--color-gold);
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.fail-card .outcome-title {
    color: var(--color-goalie);
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.outcome-subtitle {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 25px;
    padding: 0 10px;
}

/* Premium Reward Box display */
.reward-box {
    width: 100%;
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.11), rgba(2, 6, 23, 0.18));
    border: 1px solid rgba(251, 191, 36, 0.32);
    border-radius: 18px;
    padding: 20px 18px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.reward-box .glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.reward-inner {
    position: relative;
    z-index: 2;
}

.reward-emoji {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin: 0 auto 10px;
    border-radius: 18px;
    font-size: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    animation: prizeFloat 2.4s ease-in-out infinite;
}

.reward-lbl {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-gold);
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

.reward-val {
    font-family: var(--font-header);
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 8px;
}

.reward-desc {
    font-size: 11px;
    color: #a1a1aa;
    line-height: 1.4;
}

/* ── Claim Option Tabs ──────────────────────────────────── */
.claim-tab {
    flex: 1;
    padding: 10px 8px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    line-height: 1.3;
}

.claim-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.claim-tab.active {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.08));
    border-color: rgba(251, 191, 36, 0.35);
    color: #fbbf24;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.1);
}

/* ── Claim Panels ───────────────────────────────────────── */
.claim-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.3s ease;
}

.claim-panel.hidden {
    display: none;
}

/* ── Online Claim Box ───────────────────────────────────── */
.online-claim-box {
    width: 100%;
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.06), rgba(2, 6, 23, 0.15));
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 14px;
    padding: 18px 16px;
    margin-bottom: 15px;
}

.claim-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.claim-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: background 0.2s ease;
}

.claim-step:hover {
    background: rgba(255, 255, 255, 0.06);
}

.step-num {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.step-text {
    font-size: 12px;
    color: #e2e8f0;
    line-height: 1.4;
}

.step-text strong {
    color: #fbbf24;
}

.promo-code {
    display: inline-block;
    padding: 2px 10px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.08));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 6px;
    color: #fbbf24;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.cheer-up-box {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 25px;
}

.verification-note {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
    margin-bottom: 25px;
}

/* 12. Toast notifications system */
.toast {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: #0f172a;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 200;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1;
}

.toast.hidden {
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    pointer-events: none;
}

/* 13. CSS Keyframe Animations definitions */
@keyframes rotateBall {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes swipeUp {
    0% {
        transform: translateY(20px) scale(0.9);
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    60% {
        transform: translateY(-20px) scale(1.1);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

@keyframes pulseGold {
    from {
        box-shadow: 0 0 10px rgba(251, 191, 36, 0.1);
        border-color: rgba(251, 191, 36, 0.15);
    }
    to {
        box-shadow: 0 0 25px rgba(251, 191, 36, 0.3);
        border-color: rgba(251, 191, 36, 0.4);
    }
}

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

.animated-icon {
    font-size: 60px;
    display: inline-block;
}

.hero-icon {
    font-size: 50px;
    animation: rotateBall 4s linear infinite;
}

.swipe-icon {
    font-size: 48px;
    margin-top: 18px;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    animation: swipeUpIcon 1.5s ease-in-out infinite;
}

.trophy-icon {
    font-size: 80px;
    animation: pulseGoldScale 2s infinite alternate;
}

.fail-icon {
    font-size: 70px;
    animation: shakeFail 0.5s ease-in-out infinite alternate;
}

.guide-icon {
    font-size: 56px;
    animation: bounceBall 2s infinite ease-in-out;
}

@keyframes bounceBall {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

@keyframes swipeUpIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulseGoldScale {
    0% {
        transform: scale(0.9);
        filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.4));
    }
    100% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 25px rgba(251, 191, 36, 0.8));
    }
}

@keyframes shakeFail {
    0% {
        transform: translateX(-5px) rotate(-5deg);
    }
    100% {
        transform: translateX(5px) rotate(5deg);
    }
}

/* Media Queries for very small devices */
@media (max-height: 650px) {
    .signup-hero {
        display: none;
    }
    .signup-highlights {
        grid-template-columns: 1fr;
    }
    .signup-card {
        padding: 20px 16px;
        gap: 12px;
    }
    .card-header h2 {
        font-size: 20px;
    }
    .input-wrapper input {
        padding: 10px 12px;
    }
    .btn {
        padding: 12px 16px;
    }
}

/* ============================================
   SVG CARTOON GOALKEEPER ANIMATION ENGINE
   ============================================ */

#goalie-container {
    will-change: transform;
    filter: drop-shadow(0 8px 8px rgba(0,0,0,0.4));
}

#goalie-svg {
    transform-origin: 50% 97%;
    transition: transform 0.15s ease;
}

/* Eye Blinking Animation */
#gk-eyes {
    transform-origin: 55px 34px;
    animation: gkBlink 4.2s infinite;
}
@keyframes gkBlink {
    0%, 90%, 94%, 98%, 100% { transform: scaleY(1); }
    92%, 96% { transform: scaleY(0.1); }
}

/* --- IDLE: Lively cartoon goalie shuffle & anticipation bounce --- */
.anim-idle #goalie-svg {
    animation: gkWaiting 2s ease-in-out infinite;
}
@keyframes gkWaiting {
    0%, 100% {
        transform: scaleY(1) scaleX(1) translateY(0) rotate(0deg);
    }
    25% {
        transform: scaleY(0.96) scaleX(1.02) translateY(2.5px) rotate(-1.5deg) translateX(-1.5px);
    }
    50% {
        transform: scaleY(1.02) scaleX(0.97) translateY(-3px) rotate(0deg) translateX(0);
    }
    75% {
        transform: scaleY(0.96) scaleX(1.02) translateY(2.5px) rotate(1.5deg) translateX(1.5px);
    }
}

/* Idle arm sway - active ready-position hand-waving! */
.anim-idle #gk-arm-left  { animation: gkArmIdleL 1.2s ease-in-out infinite alternate; }
.anim-idle #gk-arm-right { animation: gkArmIdleR 1.2s ease-in-out infinite alternate; }
@keyframes gkArmIdleL { 
    0% { transform: rotate(-8deg) translateY(0px) scale(1); }  
    100% { transform: rotate(4deg) translateY(-2px) scale(1.04); } 
}
@keyframes gkArmIdleR { 
    0% { transform: rotate(8deg) translateY(0px) scale(1); }   
    100% { transform: rotate(-4deg) translateY(-2px) scale(1.04); } 
}

/* Idle leg weight-shift - shuffling feet with realistic joint flexion! */
.anim-idle #gk-leg-left  { animation: gkLegIdleL 1.6s ease-in-out infinite; }
.anim-idle #gk-leg-right { animation: gkLegIdleR 1.6s ease-in-out infinite; }
@keyframes gkLegIdleL {
    0%, 100% { transform: rotate(0deg) scaleY(1) skewX(0deg); }
    33%      { transform: rotate(3deg) scaleY(0.94) skewX(2deg); }
    66%      { transform: rotate(-1deg) scaleY(1.02) skewX(-1deg); }
}
@keyframes gkLegIdleR {
    0%, 100% { transform: rotate(0deg) scaleY(1) skewX(0deg); }
    33%      { transform: rotate(-1deg) scaleY(1.02) skewX(1deg); }
    66%      { transform: rotate(-3deg) scaleY(0.94) skewX(-2deg); }
}

/* Idle head tracking bob - looking alert! */
.anim-idle #gk-head { animation: gkHeadIdle 1.6s ease-in-out infinite alternate; }
@keyframes gkHeadIdle { 0% { transform: rotate(-3deg) translateY(0px); } 100% { transform: rotate(3deg) translateY(-1px); } }

/* Idle eyebrows bob - expressive anticipation! */
.anim-idle #gk-brows { animation: gkBrowsIdle 1.6s ease-in-out infinite alternate; }
@keyframes gkBrowsIdle { 0% { transform: translateY(0px); } 100% { transform: translateY(-1.5px); } }

/* --- DIVE LEFT (top, side) --- */
.anim-dive-left #goalie-svg,
.anim-dive-top-left #goalie-svg,
.anim-dive-side-left #goalie-svg {
    animation: gkDiveL 0.35s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}
@keyframes gkDiveL {
    0%   { transform: scaleX(1) rotate(0deg); }
    60%  { transform: scaleX(1.08) rotate(-8deg) translateX(-4px); }
    100% { transform: scaleX(1.04) rotate(-12deg) translateX(-6px); }
}
.anim-dive-left #gk-arm-left,
.anim-dive-top-left #gk-arm-left {
    animation: gkArmReachL 0.3s ease-out forwards;
}
@keyframes gkArmReachL {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(-65deg) translateX(-5px); }
}
.anim-dive-left #gk-arm-right,
.anim-dive-top-left #gk-arm-right {
    animation: gkArmBackR 0.3s ease-out forwards;
}
@keyframes gkArmBackR {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(25deg); }
}
.anim-dive-left #gk-leg-left,
.anim-dive-top-left #gk-leg-left,
.anim-dive-side-left #gk-leg-left {
    animation: gkLegKickL 0.35s ease-out forwards;
}
@keyframes gkLegKickL {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(-25deg); }
}
.anim-dive-left #gk-leg-right,
.anim-dive-top-left #gk-leg-right,
.anim-dive-side-left #gk-leg-right {
    animation: gkLegPushR 0.35s ease-out forwards;
}
@keyframes gkLegPushR {
    0%   { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(18deg) scaleY(1.08) scaleX(0.95); }
}

/* --- DIVE RIGHT (top, side) --- */
.anim-dive-right #goalie-svg,
.anim-dive-top-right #goalie-svg,
.anim-dive-side-right #goalie-svg {
    animation: gkDiveR 0.35s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}
@keyframes gkDiveR {
    0%   { transform: scaleX(1) rotate(0deg); }
    60%  { transform: scaleX(1.08) rotate(8deg) translateX(4px); }
    100% { transform: scaleX(1.04) rotate(12deg) translateX(6px); }
}
.anim-dive-right #gk-arm-right,
.anim-dive-top-right #gk-arm-right {
    animation: gkArmReachR 0.3s ease-out forwards;
}
@keyframes gkArmReachR {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(65deg) translateX(5px); }
}
.anim-dive-right #gk-arm-left,
.anim-dive-top-right #gk-arm-left {
    animation: gkArmBackL 0.3s ease-out forwards;
}
@keyframes gkArmBackL {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(-25deg); }
}
.anim-dive-right #gk-leg-right,
.anim-dive-top-right #gk-leg-right,
.anim-dive-side-right #gk-leg-right {
    animation: gkLegKickR 0.35s ease-out forwards;
}
@keyframes gkLegKickR {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(25deg); }
}
.anim-dive-right #gk-leg-left,
.anim-dive-top-right #gk-leg-left,
.anim-dive-side-right #gk-leg-left {
    animation: gkLegPushL 0.35s ease-out forwards;
}
@keyframes gkLegPushL {
    0%   { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(-18deg) scaleY(1.08) scaleX(0.95); }
}

/* --- GROUND DIVES (wide horizontal leap with realistic sliding leg actions) --- */
.anim-dive-ground-left #goalie-svg {
    animation: gkGroundDiveL 0.4s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}
@keyframes gkGroundDiveL {
    0%   { transform: rotate(0deg) scaleX(1); }
    100% { transform: rotate(-40deg) scaleX(1.15) translateX(-8px) translateY(8px); }
}
.anim-dive-ground-left #gk-leg-left {
    animation: gkLegGroundKickL 0.35s ease-out forwards;
}
@keyframes gkLegGroundKickL {
    0%   { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(-35deg) scaleY(1.1) translateX(-2px); }
}
.anim-dive-ground-left #gk-leg-right {
    animation: gkLegGroundPushR 0.35s ease-out forwards;
}
@keyframes gkLegGroundPushR {
    0%   { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(20deg) scaleY(0.9) translateY(-1px); }
}

.anim-dive-ground-right #goalie-svg {
    animation: gkGroundDiveR 0.4s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}
@keyframes gkGroundDiveR {
    0%   { transform: rotate(0deg) scaleX(1); }
    100% { transform: rotate(40deg) scaleX(1.15) translateX(8px) translateY(8px); }
}
.anim-dive-ground-right #gk-leg-right {
    animation: gkLegGroundKickR 0.35s ease-out forwards;
}
@keyframes gkLegGroundKickR {
    0%   { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(35deg) scaleY(1.1) translateX(2px); }
}
.anim-dive-ground-right #gk-leg-left {
    animation: gkLegGroundPushL 0.35s ease-out forwards;
}
@keyframes gkLegGroundPushL {
    0%   { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(-20deg) scaleY(0.9) translateY(-1px); }
}

/* Brows slam down on dives - intense focus */
[class^="anim-dive"] #gk-brows {
    animation: gkBrowsFurrow 0.25s ease-out forwards;
}
@keyframes gkBrowsFurrow {
    0%   { transform: translateY(0); }
    100% { transform: translateY(3px); }
}

/* --- WIN / SAVE --- */
.anim-win #goalie-svg {
    animation: gkWin 0.7s cubic-bezier(0.17, 0.67, 0.3, 1.4) forwards;
}
@keyframes gkWin {
    0%   { transform: scale(1) translateY(0); }
    40%  { transform: scale(1.05, 0.9) translateY(6px); }
    70%  { transform: scale(0.95, 1.15) translateY(-18px); }
    100% { transform: scale(1) translateY(0); }
}
.anim-win #gk-arm-left  { animation: gkArmWinL 0.6s ease-out forwards; }
.anim-win #gk-arm-right { animation: gkArmWinR 0.6s ease-out forwards; }
@keyframes gkArmWinL { 0% { transform: rotate(0deg); } 60% { transform: rotate(-80deg); } 100% { transform: rotate(-70deg); } }
@keyframes gkArmWinR { 0% { transform: rotate(0deg); } 60% { transform: rotate(80deg);  } 100% { transform: rotate(70deg);  } }
.anim-win #gk-head  { animation: gkHeadWin 0.5s ease-out forwards; }
@keyframes gkHeadWin { 0% { transform: rotate(0deg); } 100% { transform: rotate(-10deg) scale(1.05); } }

/* --- FAIL / DISAPPOINTED --- */
.anim-fail #goalie-svg {
    animation: gkFail 0.6s ease-out forwards;
}
@keyframes gkFail {
    0%   { transform: scale(1, 1) translateY(0); }
    40%  { transform: scale(1.04, 0.88) translateY(8px); }
    100% { transform: scale(1, 0.92) translateY(4px); }
}
.anim-fail #gk-head  { animation: gkHeadFail 0.7s ease-out forwards; }
@keyframes gkHeadFail {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(20deg) translateY(6px); }
}
.anim-fail #gk-arm-left  { animation: gkArmFailL 0.5s ease-out forwards; }
.anim-fail #gk-arm-right { animation: gkArmFailR 0.5s ease-out forwards; }
@keyframes gkArmFailL { 0% { transform: rotate(0deg); } 100% { transform: rotate(30deg) translateY(8px); } }
@keyframes gkArmFailR { 0% { transform: rotate(0deg); } 100% { transform: rotate(-30deg) translateY(8px); } }

/* CSS Confetti Rain Animation inside Win Modal Card */
@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
    }
    35% {
        transform: translateY(120px) rotate(120deg) translateX(15px);
    }
    70% {
        transform: translateY(260px) rotate(240deg) translateX(-15px);
    }
    100% {
        transform: translateY(450px) rotate(360deg) translateX(10px);
        opacity: 0;
    }
}
.modal-confetti-piece {
    will-change: transform;
}

/* ═══════════════════════════════════════════════════════════════
   AD BANNER BAR  — Bottom of game play screen
   ═══════════════════════════════════════════════════════════════ */

.ad-banner-bar {
    width: 100%;
    /* Fixed height matching 728×90 aspect ratio at max container width */
    height: clamp(44px, 11.25vw, 90px);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(2, 6, 23, 0.5);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.03);
    position: relative;
    animation: bannerFadeIn 0.5s ease forwards;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.ad-banner-bar:hover {
    filter: brightness(1.06);
}

.ad-banner-bar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 9px;
}

/* "AD" label badge */
.ad-banner-bar::before {
    content: 'AD';
    position: absolute;
    top: 3px;
    right: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.5px;
    z-index: 2;
    pointer-events: none;
}

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

/* When banner is present, reduce game wrapper gap slightly on small screens */
@media (max-height: 640px) {
    .ad-banner-bar {
        height: clamp(36px, 9vw, 60px);
        border-radius: 7px;
    }
    .game-wrapper {
        gap: 8px;
    }
}

