/* ===== ASTON'S BIRTHDAY WEBSITE ===== */
/* Official Olive Green & Luxury Gold Theme */

* {
    box-sizing: border-box;
}

body {
    background:
        radial-gradient(circle at 50% 15%, rgba(113, 132, 90, 0.28) 0%, transparent 55%),
        linear-gradient(180deg, #2B3823 0%, #1F2719 55%, #151A11 100%);
    color: #E9E4D5;
    text-align: center;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    padding: 45px 20px;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Main headings */
h1 {
    font-size: 38px;
    color: #E9E4D5;
    letter-spacing: 2px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    margin: 10px 0 18px;
}

h2 {
    font-size: 28px;
    color: #E9E4D5;
    letter-spacing: 1px;
    margin: 14px 0;
}

h3 {
    font-size: 21px;
    color: #D6B56D;
    margin-top: 26px;
    margin-bottom: 10px;
    letter-spacing: 0.6px;
}

p {
    font-size: 17px;
    line-height: 1.85;
    color: #E9E4D5;
    margin: 10px 0;
}

b {
    color: #A9B895;
}

/* ===== REALISTIC CARD SHELLS ===== */
#firstScreen,
.birthdayMessage {
    max-width: 820px;
    margin: 24px auto;
    padding: 40px 36px;
    background: linear-gradient(155deg, rgba(42, 51, 36, 0.95) 0%, rgba(26, 31, 22, 0.98) 100%);
    border: 1px solid rgba(169, 184, 149, 0.35);
    border-radius: 22px;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

#nextScreen {
    max-width: 850px;
    margin: 20px auto;
}

/* ===== TERMINAL / DATABASE REALISM ===== */
.terminal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin: -12px -12px 24px;
    background: rgba(18, 22, 16, 0.85);
    border: 1px solid rgba(132, 147, 110, 0.25);
    border-radius: 12px;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 12px;
    color: #84936E;
}

.terminal-dots {
    display: flex;
    gap: 7px;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red { background: #C85A53; }
.dot-amber { background: #D6B56D; }
.dot-green { background: #7FA36A; }

.boot-console {
    background: rgba(16, 20, 14, 0.78);
    border: 1px solid rgba(132, 147, 110, 0.3);
    border-radius: 14px;
    padding: 18px 20px;
    margin: 20px auto;
    max-width: 580px;
    text-align: left;
    font-family: Consolas, 'Courier New', monospace;
}

.boot-console p {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #B8C7A3;
    margin: 6px 0;
}

.progress-track {
    width: 100%;
    height: 12px;
    background: #11150F;
    border: 1px solid #596B45;
    border-radius: 999px;
    margin: 14px 0 8px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #596B45, #A9B895, #D6B56D);
    transition: width 0.12s linear;
}

.progress-readout {
    text-align: right;
    color: #D6B56D !important;
    font-size: 13px !important;
}

.found-panel {
    display: none;
    margin-top: 22px;
    padding: 20px;
    background: rgba(53, 69, 43, 0.35);
    border: 1px solid rgba(214, 181, 109, 0.35);
    border-radius: 16px;
}

.found-panel h2 {
    color: #B9D49B;
    text-shadow: 0 0 14px rgba(185, 212, 155, 0.25);
}

/* ===== CLASSIFIED PROFILE REALISM ===== */
.profile-dossier::before {
    content: "";
    position: absolute;
    top: -120px;
    left: 0;
    width: 100%;
    height: 95px;
    background: linear-gradient(transparent, rgba(214, 181, 109, 0.16), transparent);
    animation: dossierScan 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes dossierScan {
    0% { top: -120px; }
    100% { top: 120%; }
}

.classified-stamp {
    display: inline-block;
    padding: 5px 14px;
    border: 1.5px solid #D6B56D;
    border-radius: 6px;
    color: #D6B56D;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 3px;
    background: rgba(214, 181, 109, 0.08);
    margin-bottom: 10px;
}

.dossier-divider {
    color: #84936E;
    letter-spacing: 2px;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 14px;
    margin: 18px 0;
}

.dossier-block {
    background: rgba(20, 25, 18, 0.55);
    border: 1px solid rgba(132, 147, 110, 0.24);
    border-radius: 14px;
    padding: 14px 20px;
    margin: 18px auto;
    max-width: 560px;
}

/* ===== REALISTIC FOOTBALL BROADCAST & PITCH THEME ===== */
.football-broadcast {
    background:
        repeating-linear-gradient(
            90deg,
            rgba(53, 69, 43, 0.28) 0px,
            rgba(53, 69, 43, 0.28) 44px,
            rgba(38, 50, 30, 0.45) 44px,
            rgba(38, 50, 30, 0.45) 88px
        ),
        linear-gradient(160deg, rgba(36, 48, 29, 0.96), rgba(20, 26, 17, 0.98)) !important;
    border: 1px solid rgba(214, 181, 109, 0.45) !important;
}

.match-hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px;
    margin-bottom: 20px;
    background: rgba(14, 19, 12, 0.85);
    border: 1px solid rgba(214, 181, 109, 0.35);
    border-radius: 10px;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 12px;
    letter-spacing: 1.5px;
    color: #E9E4D5;
}

.match-live-dot {
    color: #D6B56D;
    font-weight: bold;
}

.pitch-scoreboard {
    position: relative;
    background:
        linear-gradient(180deg, rgba(64, 86, 48, 0.55) 0%, rgba(36, 48, 29, 0.85) 100%);
    border: 2px solid rgba(233, 228, 213, 0.22);
    outline: 1px solid rgba(214, 181, 109, 0.3);
    padding: 24px 20px;
    border-radius: 16px;
    margin: 24px auto;
    max-width: 600px;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.45);
}

.pitch-scoreboard::before {
    content: "⚽ MATCHDAY RIVALRY BOARD";
    display: block;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 2.5px;
    color: #D6B56D;
    margin-bottom: 8px;
}

.debate-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    min-height: 76px;
}

.var-alert {
    margin-top: 18px;
    padding: 14px 18px;
    background: rgba(123, 48, 42, 0.28);
    border: 1px solid rgba(224, 108, 117, 0.7);
    border-radius: 12px;
    color: #F6C5C0;
    font-weight: bold;
    animation: varShake 0.45s ease;
}

@keyframes varShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-9px); }
    40% { transform: translateX(9px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}

#footballResult {
    margin-top: 22px;
}

/* ===== BREAKING NEWS BROADCAST REALISM ===== */
.news-bulletin {
    border-top: 4px solid #D6B56D !important;
}

.live-label {
    display: inline-block;
    padding: 5px 14px;
    background: #8C2D27;
    color: #FFFFFF;
    border-radius: 5px;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 10px;
    box-shadow: 0 0 14px rgba(140, 45, 39, 0.45);
    animation: livePulse 1.3s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.bulletin-box {
    background: rgba(20, 25, 18, 0.55);
    border-left: 3px solid #D6B56D;
    border-radius: 0 14px 14px 0;
    padding: 12px 20px;
    margin: 18px auto;
    max-width: 620px;
}

/* ===== FRIENDSHIP & EMOTIONAL CARDS ===== */
.nutshell-box {
    background: rgba(53, 69, 43, 0.42);
    border: 1px solid rgba(169, 184, 149, 0.35);
    padding: 22px 20px;
    border-radius: 15px;
    margin: 25px auto;
    max-width: 560px;
    box-shadow: inset 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* ===== BUTTONS ===== */
button {
    background: linear-gradient(135deg, #596B45 0%, #3E4D30 100%);
    color: #E9E4D5;
    border: 1px solid #84936E;
    padding: 15px 30px;
    font-size: 17px;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    margin: 12px 6px;
    letter-spacing: 0.5px;
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

button:hover {
    background: linear-gradient(135deg, #71845A 0%, #4E603D 100%);
    border-color: #D6B56D;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), 0 0 18px rgba(214, 181, 109, 0.28);
}

button:active {
    transform: scale(0.96);
}

/* ===== SCREEN TRANSITIONS ===== */
.screen-enter {
    animation: screenEnterSmooth 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.screen-exit {
    animation: screenExitSmooth 0.4s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes screenEnterSmooth {
    0% {
        opacity: 0;
        transform: translateY(26px) scale(0.97);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes screenExitSmooth {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-22px) scale(0.97);
        filter: blur(4px);
    }
}

/* ===== LUXURY BIRTHDAY CAKE ===== */
.birthday-stage {
    text-align: center;
    padding: 35px 12px;
    color: #E9E4D5;
    position: relative;
    isolation: isolate;
}

.birthday-stage h2 {
    color: #D6B56D;
    font-size: 30px;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(214, 181, 109, 0.35);
}

.birthday-cake {
    position: relative;
    width: 300px;
    margin: 90px auto 50px;
    filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.55));
    animation: cakeAppear 1.1s ease both;
}

@keyframes cakeAppear {
    from {
        opacity: 0;
        transform: translateY(35px) scale(0.88);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cake-candles {
    display: flex;
    justify-content: center;
    gap: 20px;
    height: 75px;
    position: relative;
    z-index: 5;
}

.candle {
    position: relative;
    width: 14px;
    height: 58px;
    border-radius: 5px 5px 2px 2px;
    background: repeating-linear-gradient(
        45deg,
        #E9E4D5,
        #E9E4D5 5px,
        #B9A36A 5px,
        #B9A36A 9px
    );
    box-shadow: 2px 4px 7px rgba(0, 0, 0, 0.4);
}

.flame {
    position: absolute;
    top: -27px;
    left: 1px;
    width: 12px;
    height: 22px;
    background: linear-gradient(#FFF4B0, #F6B94A, #E87526);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 0 12px #F6B94A, 0 0 25px rgba(246, 185, 74, 0.55);
    animation: luxuryFlicker 0.6s infinite alternate;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

@keyframes luxuryFlicker {
    from { transform: rotate(-45deg) scale(1); }
    to { transform: rotate(-40deg) scale(0.82); }
}

.flame-out {
    opacity: 0 !important;
    transform: scale(0) !important;
    animation: none !important;
}

.cake-top {
    width: 190px;
    height: 48px;
    margin: auto;
    border-radius: 50%;
    position: relative;
    z-index: 3;
    background: radial-gradient(ellipse, #FFF7E5 0%, #E9E4D5 65%, #C9B88D 100%);
    border: 3px solid #D6B56D;
    box-shadow: 0 0 15px rgba(214, 181, 109, 0.35);
}

.cake-decoration {
    color: #9C8145;
    font-size: 23px;
    letter-spacing: 5px;
    line-height: 40px;
}

.cake-layer {
    position: relative;
    margin: -5px auto 0;
    border: 3px solid #D6B56D;
    box-shadow: inset 0 8px 12px rgba(255, 255, 255, 0.2);
}

.cake-layer-one {
    width: 210px;
    height: 43px;
    background: linear-gradient(90deg, #77875B, #A9B28B, #77875B);
    border-radius: 8px 8px 14px 14px;
}

.cake-layer-two {
    width: 245px;
    height: 47px;
    background: linear-gradient(90deg, #35452B, #596B45, #35452B);
    border-radius: 8px 8px 14px 14px;
}

.cake-layer-three {
    width: 280px;
    height: 52px;
    background: linear-gradient(90deg, #77875B, #A9B28B, #77875B);
    border-radius: 8px 8px 16px 16px;
}

.cake-layer::before {
    content: "•  •  •  •  •  •  •  •  •";
    position: absolute;
    left: 0;
    right: 0;
    top: 12px;
    text-align: center;
    color: #F2D78B;
    font-size: 16px;
    letter-spacing: 8px;
    text-shadow: 0 0 5px #D6B56D;
}

.cake-plate {
    width: 305px;
    height: 17px;
    margin: 3px auto 0;
    border-radius: 50%;
    background: linear-gradient(#FFF3D1, #D6B56D, #8E7847);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.45);
}

/* ===== CONFETTI ===== */
.birthday-confetti {
    position: fixed;
    top: -20px;
    width: 9px;
    height: 15px;
    z-index: 99999;
    pointer-events: none;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(var(--spin));
        opacity: 0;
    }
}

/* ===== THEATRE CURTAINS ===== */
.curtain-scene {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    overflow: hidden;
    background: radial-gradient(ellipse at center, rgba(89, 107, 69, 0.25), #181E14 80%);
    display: grid;
    place-items: center;
    pointer-events: none;
}

.hidden-curtain {
    display: none;
}

.curtain-scene::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 35px;
    z-index: 4;
    background: linear-gradient(#D6B56D, #8E7847, #D6B56D);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.curtain {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 2;
    background: repeating-linear-gradient(
        90deg,
        #242820 0px,
        #35452B 18px,
        #596B45 35px,
        #35452B 52px,
        #242820 68px
    );
    box-shadow:
        inset -12px 0 22px rgba(0, 0, 0, 0.45),
        0 0 25px rgba(0, 0, 0, 0.5);
    transition: transform 2.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.curtain-left {
    left: 0;
    border-right: 5px solid #D6B56D;
}

.curtain-right {
    right: 0;
    border-left: 5px solid #D6B56D;
}

.curtain-text {
    font-family: Georgia, serif;
    font-size: 27px;
    letter-spacing: 3px;
    color: #E9E4D5;
    text-shadow: 0 0 15px rgba(214, 181, 109, 0.6);
    z-index: 1;
}

.curtains-open .curtain-left {
    transform: translateX(-100%);
}

.curtains-open .curtain-right {
    transform: translateX(100%);
}

/* ===== FINAL BIRTHDAY LETTER ===== */
.final-letter {
    position: relative;
    max-width: 720px;
    margin: 45px auto;
    padding: 45px 35px;
    background: linear-gradient(145deg, #303A29, #242820 70%);
    color: #E9E4D5;
    border: 1px solid #B99B5B;
    border-radius: 5px;
    box-shadow:
        0 0 0 7px #35452B,
        0 0 0 9px #B99B5B,
        0 20px 55px rgba(0, 0, 0, 0.55);
    text-align: center;
    line-height: 2;
    animation: letterReveal 1.5s ease forwards;
}

.final-letter::before {
    content: "✦  WITH LOVE, ALWAYS  ✦";
    display: block;
    color: #D6B56D;
    font-family: Georgia, serif;
    font-size: 13px;
    letter-spacing: 4px;
    margin-bottom: 30px;
}

.final-letter::after {
    content: "— YOUR BESTIE, FOREVER —";
    display: block;
    color: #D6B56D;
    font-size: 12px;
    letter-spacing: 3px;
    margin-top: 35px;
}

.final-letter h2 {
    color: #D6B56D;
    font-family: Georgia, serif;
    font-size: 25px;
    line-height: 1.5;
    letter-spacing: 1px;
    margin: 25px 0;
}

.final-letter p {
    color: #E9E4D5;
    font-family: Georgia, serif;
    font-size: 16px;
    margin: 19px 0;
}

@keyframes letterReveal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 600px) {
    body {
        padding: 25px 12px;
    }

    #firstScreen,
    .birthdayMessage {
        padding: 25px 18px;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 25px;
    }

    h3 {
        font-size: 20px;
    }

    p {
        font-size: 16px;
    }

    button {
        font-size: 15px;
        padding: 13px 20px;
    }

    .final-letter {
        margin: 30px 12px;
        padding: 30px 20px;
    }
}