/* style.css */
@layer base, components;

@layer base {
    :root {
        --color-bg: oklch(20% 0.05 230);
        --color-primary: oklch(70% 0.2 260);
        --color-text: oklch(95% 0.01 230);
        --container-bg: oklch(25% 0.05 230 / 0.5);
        --container-border: oklch(70% 0.2 260 / 0.2);
        --shadow-color: oklch(0 0 0 / 0.2);
        --font-body: 'Helvetica Neue', sans-serif;
        --font-display: 'Arial Black', sans-serif;
    }

    [data-theme="light"] {
        --color-bg: oklch(98% 0.01 230);
        --color-primary: oklch(60% 0.15 260);
        --color-text: oklch(20% 0.05 230);
        --container-bg: oklch(100% 0 / 0.8);
        --container-border: oklch(60% 0.15 260 / 0.1);
        --shadow-color: oklch(0 0 0 / 0.05);
    }

    body {
        font-family: var(--font-body);
        background-color: var(--color-bg);
        color: var(--color-text);
        margin: 0;
        display: grid;
        place-content: center;
        min-height: 100vh;
        transition: background-color 0.3s ease, color 0.3s ease;
        padding: 2rem 0;
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    body::before {
        content: '';
        position: fixed;
        inset: 0;
        background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800'><rect fill='hsl(230, 30%, 10%)' width='800' height='800'/><g fill-opacity='0.2'><circle fill='hsl(230, 30%, 10%)' cx='400' cy='400' r='600'/><circle fill='hsl(230, 20%, 20%)' cx='400' cy='400' r='500'/><circle fill='hsl(230, 15%, 30%)' cx='400' cy='400' r='400'/><circle fill='hsl(230, 10%, 40%)' cx='400' cy='400' r='300'/><circle fill='hsl(230, 5%, 50%)' cx='400' cy='400' r='200'/><circle fill='hsl(230, 0%, 60%)' cx='400' cy='400' r='100'/></g></svg>");
        background-size: cover;
        opacity: 0.05;
        pointer-events: none;
        z-index: -1;
    }

    [data-theme="light"] body::before {
        opacity: 0.02;
    }

    h1 {
        font-family: var(--font-display);
        font-size: clamp(2rem, 5vw, 3.5rem);
        text-align: center;
        margin-bottom: 0.5rem;
        text-shadow: 0 0 10px var(--color-primary), 0 0 20px var(--color-primary);
    }



    .round-info {
        font-family: var(--font-body);
        font-size: 1.2rem;
        text-align: center;
        margin-bottom: 2rem;
        opacity: 0.8;
    }

    #current-round {
        color: var(--color-primary);
        font-weight: bold;
        text-decoration: underline;
        text-underline-offset: 4px;
    }
}

@layer components {
    .container {
        position: relative;
        text-align: center;
        padding: 3rem 2rem 2rem;
        background: var(--container-bg);
        border-radius: 20px;
        backdrop-filter: blur(10px);
        border: 1px solid var(--container-border);
        box-shadow: 0 10px 30px var(--shadow-color), 0 0 0 1px oklch(70% 0.2 260 / 0.1);
        transition: background-color 0.3s ease, border-color 0.3s ease;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 1;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    #theme-toggle {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        background: none;
        border: 1px solid var(--container-border);
        color: var(--color-text);
        padding: 0.75rem;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        min-width: 44px;
        min-height: 44px;
    }

    #theme-toggle:hover {
        background: var(--container-border);
        transform: rotate(15deg);
    }

    #numbers-container {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
        min-height: 100px;
    }

    #blessing-text {
        font-family: 'East Sea Dokdo', cursive;
        font-size: 1.8rem;
        color: oklch(85% 0.15 85); /* Default gold for dark */
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
        margin-bottom: 2rem;
        opacity: 0;
        transform: translateY(10px);
        transition: all 1s ease;
        text-align: center;
    }

    [data-theme="light"] #blessing-text {
        color: #333333; /* Dark ink color for light mode */
        text-shadow: none;
    }

    #blessing-text.show {
        opacity: 1;
        transform: translateY(0);
    }

    .number-row {
        display: flex;
        justify-content: center;
        gap: 1rem;
        flex-wrap: nowrap;
        max-width: 100%;
    }

    .number {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: grid;
        place-content: center;
        font-family: var(--font-display);
        font-size: 1.2rem;
        font-weight: 900;
        color: #000000;
        text-shadow: none;
        
        /* 3D Gold Gradient */
        background: radial-gradient(circle at 30% 30%, #FFE066 0%, #AA793E 50%, #5A3910 100%);
        
        /* Deep 3D Shadow effects */
        box-shadow: 
            2px 4px 8px rgba(0,0,0,0.3), 
            inset -3px -3px 6px rgba(0,0,0,0.4), 
            inset 2px 2px 4px rgba(255,255,255,0.4);
        
        border: 1px solid #8C5E24;
        transition: all 0.3s ease;
        animation: ballAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    }

    .number.bonus {
        /* Ruby Red Gemstone Gradient */
        background: radial-gradient(circle at 30% 30%, #FF6B6B 0%, #C0392B 50%, #641E16 100%);
        
        color: #000000;
        text-shadow: none;
        
        /* Distinct red border and glow, but keep base shadows */
        border: 1px solid #922B21;
        box-shadow: 
            0 0 15px rgba(192, 57, 43, 0.5),
            2px 4px 8px rgba(0,0,0,0.3), 
            inset -3px -3px 6px rgba(0,0,0,0.4), 
            inset 2px 2px 4px rgba(255,255,255,0.4);
    }

    /* Placeholder balls (initial ? state) */
    .number.placeholder {
        color: rgba(0, 0, 0, 0.25);
        font-size: 1.4rem;
        animation: placeholderPulse 2.5s ease-in-out infinite;
    }

    .number.bonus.placeholder {
        animation: placeholderPulse 2.5s ease-in-out infinite;
    }

    @keyframes placeholderPulse {
        0%, 100% { filter: brightness(1); }
        50% { filter: brightness(1.2) drop-shadow(0 0 8px rgba(255, 215, 0, 0.3)); }
    }

    /* Analysis loading */
    .analysis-loading {
        text-align: center;
        padding: 2.5rem 1rem;
        min-height: 120px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }

    .analysis-step {
        font-family: 'East Sea Dokdo', cursive;
        font-size: 2.2rem;
        color: var(--color-primary);
        animation: stepFade 0.4s ease;
    }

    .analysis-spinner {
        width: 40px;
        height: 40px;
        border: 3px solid rgba(255, 215, 0, 0.2);
        border-top-color: #FFD700;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

    @keyframes spin {
        to { transform: rotate(360deg); }
    }

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

    .plus-sign {
        display: grid;
        place-content: center;
        font-family: var(--font-display);
        font-size: 1.5rem;
        font-weight: bold;
        color: var(--color-text);
        opacity: 0.6;
        animation: ballAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    }

    .plus-sign.placeholder {
        animation: none;
    }

    /* --- Weekly Limit Display --- */

    @keyframes ballAppear {
        0% {
            transform: scale(0);
            opacity: 0;
            filter: brightness(1);
        }
        50% {
            transform: scale(1.2);
            opacity: 1;
            filter: drop-shadow(0 0 15px #FFD700) drop-shadow(0 0 30px rgba(255, 215, 0, 0.6)) brightness(1.4);
        }
        75% {
            transform: scale(0.95);
            filter: drop-shadow(0 0 5px #FFD700) brightness(1.1);
        }
        100% {
            transform: scale(1);
            opacity: 1;
            filter: none;
        }
    }

    #generate-btn, #face-btn, #capture-btn {
        font-family: var(--font-body);
        font-size: 1.1rem;
        padding: 0.85rem 1.5rem;
        border: none;
        border-radius: 50px;
        background-color: var(--color-primary);
        color: white;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        transition: all 0.3s ease;
        box-shadow: 0 0 15px var(--color-primary);
        justify-content: center;
        min-height: 44px;
    }

    .button-group {
        display: flex;
        gap: 1rem;
        justify-content: center;
        margin-top: 1rem;
        flex-wrap: wrap;
    }

    #face-btn {
        background-color: oklch(65% 0.2 150);
        box-shadow: 0 0 15px oklch(65% 0.2 150 / 0.6);
    }

    #face-btn:hover {
        background-color: oklch(60% 0.2 150);
        transform: translateY(-3px);
    }

    #generate-btn:hover, #capture-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 20px var(--color-primary);
    }

    #generate-btn svg, #face-btn svg {
        transition: transform 0.5s ease;
    }

    #generate-btn:hover svg, #face-btn:hover svg {
        transform: rotate(360deg);
    }

    .btn-busy {
        opacity: 0.5;
        pointer-events: none;
    }

    .main-nav {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 2rem;
        border-bottom: 1px solid var(--container-border);
        padding-bottom: 1rem;
    }

    .nav-btn {
        background: none;
        border: none;
        color: var(--color-text);
        padding: 0.75rem 1rem;
        font-family: var(--font-display);
        font-size: 1.3rem;
        cursor: pointer;
        opacity: 0.6;
        transition: all 0.3s ease;
        position: relative;
        min-height: 44px;
    }

    .nav-btn.active {
        opacity: 1;
        color: var(--color-primary);
    }

    .nav-btn.active::after {
        content: '';
        position: absolute;
        bottom: -1rem;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--color-primary);
        box-shadow: 0 0 10px var(--color-primary);
    }

    .content-section {
        display: none;
        animation: fadeIn 0.5s ease;
    }

    .content-section.active {
        display: block;
    }

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

    .analysis-container {
        background: var(--container-bg);
        padding: 2rem;
        border-radius: 15px;
        border: 1px solid var(--container-border);
        text-align: left;
        min-height: 200px;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .placeholder-text {
        text-align: center;
        opacity: 0.6;
        margin: auto;
    }

    .analysis-item {
        border-left: 3px solid var(--color-primary);
        padding-left: 1rem;
    }

    .analysis-item h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        color: var(--color-primary);
    }

    .analysis-item p {
        font-size: 0.95rem;
        line-height: 1.6;
        opacity: 0.9;
    }

    #submit-btn {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 12px;
        border: none;
        background: var(--color-primary);
        color: white;
        font-family: var(--font-display);
        font-size: 1.1rem;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px var(--color-primary / 0.4);
    }

    #submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px var(--color-primary / 0.6);
    }

    .view-result-btn {
        margin-top: 2rem;
        background: none;
        border: 1px solid var(--color-primary);
        color: var(--color-primary);
        padding: 0.75rem 1.2rem;
        border-radius: 50px;
        font-family: var(--font-body);
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-block;
        min-height: 44px;
    }

    .view-result-btn:hover {
        background: var(--color-primary);
        color: white;
        transform: scale(1.05);
        box-shadow: 0 5px 15px var(--color-primary / 0.3);
    }

    .divider {
        height: 1px;
        background: var(--container-border);
        margin: 3rem 0;
        opacity: 0.5;
    }

    #comment-section {
        margin-top: 2rem;
        padding: 2rem;
        text-align: left;
        background-color: rgb(255, 255, 255);
        color: rgb(40, 45, 55);
        border-radius: 12px;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    /* Modal */
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.8);
        backdrop-filter: blur(5px);
        align-items: center;
        justify-content: center;
        padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
                 env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
        box-sizing: border-box;
    }

    .modal.show {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    .modal-content {
        background-color: var(--container-bg);
        padding: 2rem;
        border-radius: 20px;
        text-align: center;
        width: 90%;
        max-width: 500px;
        position: relative;
        border: 1px solid var(--container-border);
    }

    #close-camera {
        position: absolute;
        top: 8px;
        right: 8px;
        color: var(--color-text);
        font-size: 24px;
        font-weight: bold;
        cursor: pointer;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background-color 0.2s ease;
    }

    .camera-view {
        width: 100%;
        max-width: 400px;
        height: min(50vh, 300px);
        margin: 1rem auto;
        background: black;
        border-radius: 12px;
        overflow: hidden;
        position: relative;
        border: 2px solid var(--color-primary);
    }

    #video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scaleX(-1);
    }

    .scan-line {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(to right, transparent, oklch(70% 0.2 150), transparent);
        box-shadow: 0 0 10px oklch(70% 0.2 150);
        animation: scan 2s linear infinite;
        z-index: 10;
        display: none;
    }

    @keyframes scan {
        0% { top: 0; opacity: 0; }
        10% { opacity: 1; }
        90% { opacity: 1; }
        100% { top: 100%; opacity: 0; }
    }

    /* --- Winning Number Lookup --- */
    .winning-lookup {
        text-align: center;
    }

    .winning-lookup h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
        color: var(--color-primary);
    }

    .lookup-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        flex-wrap: wrap;
    }

    #round-input {
        width: 80px;
        padding: 0.6rem 0.5rem;
        border: 1px solid var(--container-border);
        border-radius: 10px;
        background: var(--container-bg);
        color: var(--color-text);
        font-size: 1.1rem;
        text-align: center;
        min-height: 44px;
        box-sizing: border-box;
        -moz-appearance: textfield;
    }

    #round-input::-webkit-outer-spin-button,
    #round-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .round-nav-btn {
        background: none;
        border: 1px solid var(--container-border);
        color: var(--color-text);
        font-size: 1.1rem;
        padding: 0.5rem 0.75rem;
        border-radius: 10px;
        cursor: pointer;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }

    .round-nav-btn:hover {
        background: var(--container-border);
    }

    #lookup-btn {
        font-family: var(--font-body);
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
        border: none;
        border-radius: 50px;
        background-color: var(--color-primary);
        color: white;
        cursor: pointer;
        min-height: 44px;
        transition: all 0.3s ease;
        box-shadow: 0 0 10px var(--color-primary);
    }

    #lookup-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px var(--color-primary);
    }

    #winning-result {
        min-height: 100px;
    }

    .winning-numbers {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;
        margin-bottom: 1.5rem;
    }

    .winning-info {
        background: var(--container-bg);
        border: 1px solid var(--container-border);
        border-radius: 12px;
        padding: 1rem;
        text-align: left;
    }

    .winning-info-row {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--container-border);
        font-size: 0.95rem;
    }

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

    .winning-info-label {
        opacity: 0.7;
    }

    .winning-info-value {
        font-weight: bold;
        color: var(--color-primary);
    }

    .winning-round-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        opacity: 0.9;
    }

    .lookup-error {
        color: oklch(70% 0.2 25);
        padding: 1rem;
        opacity: 0.8;
    }

    .lookup-loading {
        padding: 2rem;
        opacity: 0.6;
    }

    /* --- Responsive Breakpoints --- */

    /* All small screens */
    @media (max-width: 600px) {
        .container {
            padding: 2rem 0.75rem;
            width: 95vw;
            border-radius: 14px;
        }

        .number {
            width: 38px;
            height: 38px;
            font-size: 0.9rem;
        }

        .number-row {
            gap: 0.4rem;
        }

        .plus-sign {
            font-size: 1.1rem;
        }

        #numbers-container {
            gap: 1rem;
        }

        #blessing-text {
            font-size: 1.4rem;
            margin-bottom: 1.2rem;
        }

        .round-info {
            font-size: 1rem;
            margin-bottom: 1.2rem;
        }

        .main-nav {
            gap: 0.5rem;
            margin-bottom: 1.2rem;
        }

        .analysis-container {
            padding: 1.2rem;
            gap: 1rem;
        }

        .modal-content {
            padding: 1.2rem;
            width: 95%;
            border-radius: 14px;
        }

        .camera-view {
            height: min(50vh, 300px);
        }

        #camera-status {
            font-size: 0.9rem;
        }
    }

    /* Mid-range phones (375px - 428px) */
    @media (min-width: 375px) and (max-width: 428px) {
        .number {
            width: 36px;
            height: 36px;
            font-size: 0.85rem;
        }

        .number-row {
            gap: 0.35rem;
        }

        .container {
            padding: 2rem 0.75rem;
            width: 96vw;
        }
    }

    /* Very small screens (320px devices) */
    @media (max-width: 374px) {
        .container {
            padding: 1.5rem 0.5rem;
            width: 98vw;
        }

        .number {
            width: 32px;
            height: 32px;
            font-size: 0.8rem;
        }

        .number-row {
            gap: 0.25rem;
        }

        .plus-sign {
            font-size: 0.9rem;
        }

        h1 {
            margin-bottom: 0.3rem;
        }

        .main-nav {
            flex-direction: column;
            align-items: center;
            gap: 0.25rem;
            padding-bottom: 0.75rem;
        }

        .nav-btn.active::after {
            bottom: -0.75rem;
        }

        .button-group {
            flex-direction: column;
            align-items: stretch;
        }

        #generate-btn, #face-btn {
            width: 100%;
        }

        .modal-content {
            width: 98%;
            padding: 1rem 0.75rem;
        }

        .camera-view {
            height: min(40vh, 240px);
        }

        .winning-numbers {
            gap: 0.25rem;
        }

        .winning-numbers .number {
            width: 32px;
            height: 32px;
            font-size: 0.8rem;
        }
    }

    /* --- Touch Feedback (touch devices only) --- */
    @media (hover: none) {
        #theme-toggle:active {
            background: var(--container-border);
            transform: scale(0.9);
        }

        #generate-btn:active, #capture-btn:active {
            transform: scale(0.95);
            filter: brightness(0.85);
        }

        #face-btn:active {
            transform: scale(0.95);
            filter: brightness(0.85);
        }

        .nav-btn:active {
            opacity: 1;
            transform: scale(0.97);
        }

        .view-result-btn:active {
            background: var(--color-primary);
            color: white;
            transform: scale(0.97);
        }

        #close-camera:active {
            background: oklch(50% 0 0 / 0.2);
        }
    }

    /* --- 정보성 텍스트 --- */
    .info-text {
        margin-top: 2.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.13);
        font-size: 0.9rem;
        line-height: 1.8;
        color: rgba(255, 215, 0, 0.45);
        text-align: left;
    }

    .info-text p {
        margin: 0 0 0.8rem 0;
    }

    .info-text p:last-child {
        margin-bottom: 0;
    }

    [data-theme="light"] .info-text {
        color: rgba(100, 80, 40, 0.55);
        border-top-color: rgba(0, 0, 0, 0.08);
    }

    /* --- Footer --- */
    .site-footer {
        margin-top: 2rem;
        padding-top: 1.2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.13);
        text-align: center;
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.35);
    }

    .site-footer p {
        margin: 0.3rem 0;
    }

    .site-footer a {
        color: rgba(255, 215, 0, 0.5);
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .site-footer a:hover {
        color: #FFD700;
    }

    [data-theme="light"] .site-footer {
        color: rgba(0, 0, 0, 0.35);
        border-top-color: rgba(0, 0, 0, 0.08);
    }

    [data-theme="light"] .site-footer a {
        color: rgba(100, 80, 40, 0.6);
    }

    [data-theme="light"] .site-footer a:hover {
        color: #8B6914;
    }

    /* --- Privacy Modal --- */
    .privacy-modal-content {
        text-align: left;
        max-height: 80vh;
        overflow-y: auto;
    }

    .privacy-body {
        font-size: 0.9rem;
        line-height: 1.7;
        opacity: 0.85;
    }

    .privacy-body p {
        margin: 0 0 1rem 0;
    }

    .privacy-body a {
        color: var(--color-primary);
    }
}

/* Splash Overlay Styles */
#splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0d0d0d;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('https://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/Inwangjesaekdo.jpg/1280px-Inwangjesaekdo.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease;
}

#splash-overlay.fade-out {
    opacity: 0;
}

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

.splash-sub {
    font-family: 'East Sea Dokdo', cursive;
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: rgba(255, 215, 0, 0.7);
    margin: 0 0 0.3rem 0;
    opacity: 0;
    animation: splashFadeIn 1s ease 0.3s forwards;
}

.splash-title {
    font-family: 'East Sea Dokdo', cursive;
    font-size: clamp(3.5rem, 12vw, 7rem);
    color: #FFD700;
    text-shadow: 0 0 25px rgba(255, 215, 0, 0.5), 0 0 50px rgba(255, 215, 0, 0.2);
    margin: 0;
    opacity: 0;
    animation: splashFadeIn 1.2s ease 0.8s forwards;
}

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