/* =====================================================
   NIGHTSMILE — BOYFRIEND'S DAY
   CLEAN STYLESHEET
   ===================================================== */


/* =====================================================
   RESET
   ===================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --black: #050505;
    --dark: #08090c;
    --red: #d71920;
    --bright-red: #ff3941;
    --white: #f7f5f3;
}

html {
    width: 100%;
    min-height: 100%;
}

body {
    width: 100%;
    min-height: 100%;
    background: var(--black);
    color: var(--white);

    overflow-x: hidden;
    overflow-y: auto;

    font-family:
        Georgia,
        "Times New Roman",
        serif;
}

button,
input {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}


/* =====================================================
   EXPERIENCE
   ===================================================== */

.experience {
    width: 100%;
    min-height: 100svh;
}


/* =====================================================
   SCREENS
   ===================================================== */

.screen {
    position: relative;

    width: 100%;
    min-height: 100svh;

    opacity: 0;
    visibility: hidden;

    transform: scale(1.02);

    transition:
        opacity .8s ease,
        transform 1s ease,
        visibility .8s ease;
}

.screen.active {
    opacity: 1;
    visibility: visible;

    transform: scale(1);
}

.screen[hidden] {
    display: none;
}


/* =====================================================
   SCREEN 1
   ===================================================== */

.opening-screen {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100svh;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(215,25,32,.08),
            transparent 27%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(30,40,65,.08),
            transparent 38%
        ),
        #050505;
}


/* -----------------------------------------------------
   BACKGROUND GLOW
   ----------------------------------------------------- */

.background-glow {
    position: absolute;

    width: 360px;
    height: 360px;

    border-radius: 50%;

    background:
        rgba(215,25,32,.045);

    filter: blur(100px);

    animation:
        glowPulse
        6s
        ease-in-out
        infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        transform: scale(.85);
        opacity: .3;
    }

    50% {
        transform: scale(1.1);
        opacity: .7;
    }
}


/* -----------------------------------------------------
   STARS
   ----------------------------------------------------- */

.stars {
    position: absolute;
    inset: 0;

    pointer-events: none;
}

.stars i {
    position: absolute;

    width: 2px;
    height: 2px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.55);

    animation:
        twinkle
        4s
        ease-in-out
        infinite;
}

.stars i:nth-child(1) {
    top: 18%;
    left: 12%;
}

.stars i:nth-child(2) {
    top: 27%;
    right: 15%;

    animation-delay: 1s;
}

.stars i:nth-child(3) {
    top: 11%;
    right: 32%;

    animation-delay: 2s;
}

.stars i:nth-child(4) {
    top: 58%;
    left: 8%;

    animation-delay: .5s;
}

.stars i:nth-child(5) {
    top: 38%;
    right: 7%;

    animation-delay: 1.7s;
}

.stars i:nth-child(6) {
    top: 72%;
    left: 20%;

    animation-delay: 2.4s;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: .15;
        transform: scale(.7);
    }

    50% {
        opacity: .8;
        transform: scale(1.4);
    }
}


/* -----------------------------------------------------
   MESSAGE SCENE
   ----------------------------------------------------- */

.message-scene {
    position: relative;
    z-index: 5;

    width: min(92%, 430px);

    padding: 21px;

    border:
        1px solid
        rgba(255,255,255,.08);

    border-radius: 24px;

    background:
        rgba(15,14,16,.78);

    backdrop-filter: blur(20px);

    box-shadow:
        0 35px 90px
        rgba(0,0,0,.55);

    opacity: 0;

    transform:
        translateY(25px);

    animation:
        sceneIn
        1s
        cubic-bezier(.2,.8,.2,1)
        forwards .4s;
}

@keyframes sceneIn {

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* -----------------------------------------------------
   SCREEN 1 HEADER
   ----------------------------------------------------- */

.message-header {
    display: flex;

    align-items: center;

    gap: 10px;

    padding-bottom: 15px;

    border-bottom:
        1px solid
        rgba(255,255,255,.06);
}

.profile-picture {
    width: 37px;
    height: 37px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #e7a0aa,
            #b51620
        );

    color: white;

    font-family: Arial, sans-serif;

    font-size: 13px;
}

.profile-info strong {
    display: block;

    color: white;

    font-family: Arial, sans-serif;

    font-size: 12px;

    font-weight: 500;
}

.profile-info span {
    display: block;

    margin-top: 3px;

    color:
        rgba(255,255,255,.32);

    font-family: Arial, sans-serif;

    font-size: 8px;
}


/* -----------------------------------------------------
   SCREEN 1 CHAT
   ----------------------------------------------------- */

.chat-area {
    min-height: 230px;

    padding-top: 22px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 8px;
}


/* -----------------------------------------------------
   SCREEN 1 TYPING
   ----------------------------------------------------- */

.typing {
    display: flex;

    gap: 4px;

    padding: 10px 13px;

    border-radius:
        16px
        16px
        16px
        4px;

    background:
        rgba(255,255,255,.055);

    opacity: 0;

    animation:
        typingAppear
        .5s
        ease
        forwards 1.3s;
}

.typing span {
    width: 4px;
    height: 4px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.5);

    animation:
        typingDot
        1s
        ease-in-out
        infinite;
}

.typing span:nth-child(2) {
    animation-delay: .15s;
}

.typing span:nth-child(3) {
    animation-delay: .3s;
}

@keyframes typingAppear {

    to {
        opacity: 1;
    }

}

@keyframes typingDot {

    0%,
    100% {
        opacity: .35;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-3px);
    }

}


/* -----------------------------------------------------
   SCREEN 1 MESSAGE BUBBLES
   ----------------------------------------------------- */

.message-bubble {
    max-width: 83%;

    padding: 11px 14px;

    border-radius:
        16px
        16px
        16px
        4px;

    background:
        #242125;

    color:
        rgba(255,255,255,.9);

    font-size: 14px;

    line-height: 1.45;

    opacity: 0;

    transform:
        translateY(9px);
}

.bubble-one {
    animation:
        bubbleAppear
        .6s
        ease
        forwards 2.2s;
}

.bubble-two {
    animation:
        bubbleAppear
        .6s
        ease
        forwards 3.2s;
}

.bubble-three {
    background:
        linear-gradient(
            135deg,
            rgba(215,25,32,.28),
            #242125
        );

    animation:
        bubbleAppear
        .6s
        ease
        forwards 4.2s;
}

@keyframes bubbleAppear {

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}


/* -----------------------------------------------------
   SCREEN 1 BUTTON
   ----------------------------------------------------- */

.message-action {
    margin-top: 7px;

    padding: 10px 15px;

    display: inline-flex;

    align-items: center;

    gap: 6px;

    border:
        1px solid
        rgba(255,255,255,.1);

    border-radius: 999px;

    background:
        rgba(255,255,255,.035);

    color:
        rgba(255,255,255,.65);

    font-family: Arial, sans-serif;

    font-size: 10px;

    cursor: pointer;

    opacity: 0;

    animation:
        bubbleAppear
        .7s
        ease
        forwards 5.2s;

    transition:
        transform .3s ease,
        background .3s ease,
        border-color .3s ease;
}

.message-action b {
    color:
        var(--bright-red);

    font-size: 13px;

    font-weight: 400;
}

.message-action:hover {
    transform:
        translateY(-2px);

    background:
        rgba(215,25,32,.08);

    border-color:
        rgba(215,25,32,.4);
}

.little-credit {
    position: absolute;

    bottom: 17px;

    left: 50%;

    transform:
        translateX(-50%);

    z-index: 5;

    color:
        rgba(255,255,255,.2);

    font-family: Arial, sans-serif;

    font-size: 7px;

    letter-spacing: 2px;

    white-space: nowrap;
}


/* =====================================================
   SCREEN 2 — CODE
   ===================================================== */

.code-screen {
    min-height: 100svh;

    display: flex;

    justify-content: center;
    align-items: center;

    padding: 30px 20px;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(180,20,40,.12),
            transparent 35%
        ),
        #08090c;

    color: #fff;
}

.code-message {
    width: min(100%, 420px);

    text-align: center;
}


/* -----------------------------------------------------
   SCREEN 2 HEADER
   ----------------------------------------------------- */

.code-screen .message-header {
    margin-bottom: 42px;

    text-align: left;

    gap: 12px;
}

.message-avatar {
    width: 44px;
    height: 44px;

    border-radius: 50%;

    background:
        #e63946;

    display: flex;

    align-items: center;
    justify-content: center;

    font-weight: 700;

    font-size: 17px;
}

.code-screen .message-header strong {
    display: block;

    font-size: 15px;

    letter-spacing: .2px;
}

.code-screen .message-header span {
    display: block;

    margin-top: 3px;

    font-size: 11px;

    color: #65d68a;
}


/* -----------------------------------------------------
   CODE INTRO
   ----------------------------------------------------- */

.code-intro {
    margin-bottom: 30px;
}

.code-small {
    color:
        rgba(255,255,255,.48);

    font-size: 14px;

    margin:
        0 0 7px;
}

.code-intro h2 {
    margin: 0;

    font-size:
        clamp(27px, 6vw, 38px);

    font-weight: 600;

    letter-spacing: -1px;
}

.code-clue {
    margin:
        17px 0 13px;

    color:
        rgba(255,255,255,.65);

    font-size: 14px;
}

.riddle {
    background:
        rgba(255,255,255,.045);

    border:
        1px solid
        rgba(255,255,255,.08);

    border-radius: 18px;

    padding:
        18px 20px;
}

.riddle p {
    margin:
        0 0 6px;

    font-size: 15px;
}

.riddle span {
    color:
        rgba(255,255,255,.55);

    font-size: 13px;
}

.code-hint {
    margin:
        13px 0 0;

    font-size: 11px;

    color:
        rgba(255,255,255,.35);
}


/* -----------------------------------------------------
   CODE DISPLAY
   ----------------------------------------------------- */

.code-display {
    display: flex;

    justify-content: center;

    gap: 13px;

    margin:
        28px 0 22px;
}

.code-display span {
    width: 12px;
    height: 12px;

    border-radius: 50%;

    border:
        1px solid
        rgba(255,255,255,.3);

    background:
        transparent;

    transition:
        .2s ease;
}

.code-display span.filled {
    background:
        #e63946;

    border-color:
        #e63946;

    box-shadow:
        0 0 14px
        rgba(230,57,70,.55);

    transform:
        scale(1.08);
}


/* -----------------------------------------------------
   NUMBER PAD
   ----------------------------------------------------- */

.number-pad {
    width:
        min(100%, 285px);

    margin:
        0 auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;
}

.number-key {
    height: 60px;

    border:
        1px solid
        rgba(255,255,255,.08);

    border-radius: 17px;

    background:
        rgba(255,255,255,.055);

    color: #fff;

    font-size: 20px;

    cursor: pointer;

    transition:
        transform .12s ease,
        background .12s ease,
        border-color .12s ease;
}

.number-key:hover {
    background:
        rgba(255,255,255,.1);

    border-color:
        rgba(230,57,70,.4);
}

.number-key:active {
    transform:
        scale(.91);

    background:
        rgba(230,57,70,.2);
}

.empty-key {
    visibility: hidden;
}

.delete-key {
    font-size: 17px;

    color:
        rgba(255,255,255,.6);
}


/* -----------------------------------------------------
   ENTER CODE
   ----------------------------------------------------- */

.enter-code {
    margin-top: 18px;

    width:
        min(100%, 285px);

    height: 52px;

    border: 0;

    border-radius: 16px;

    background:
        #e63946;

    color: white;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition:
        transform .15s ease,
        box-shadow .2s ease;
}

.enter-code:hover {
    box-shadow:
        0 10px 35px
        rgba(230,57,70,.25);
}

.enter-code:active {
    transform:
        scale(.97);
}


/* -----------------------------------------------------
   CODE REACTION
   ----------------------------------------------------- */

.code-reaction {
    min-height: 22px;

    margin:
        13px 0 0;

    font-size: 13px;

    color:
        #ff7a85;

    opacity: 0;

    transition:
        opacity .2s ease;
}

.code-reaction.show {
    opacity: 1;
}

.code-screen.wrong .code-display {
    animation:
        codeShake
        .35s
        ease;
}

@keyframes codeShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    50% {
        transform: translateX(8px);
    }

    75% {
        transform: translateX(-5px);
    }

}


/* =====================================================
   SCREEN 3 — LIVE CONVERSATION
   ===================================================== */

#screen3 {
    min-height: 100svh;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(255,255,255,.035),
            transparent 35%
        ),
        #090909;

    color: white;
}

.conversation-screen {
    min-height: 100svh;

    display: flex;

    flex-direction: column;
}


/* -----------------------------------------------------
   AMARA HEADER
   ----------------------------------------------------- */

.conversation-header {
    position: sticky;

    top: 0;

    z-index: 20;

    height: 72px;

    display: flex;

    align-items: center;

    padding:
        0 20px;

    background:
        rgba(9,9,9,.94);

    border-bottom:
        1px solid
        rgba(255,255,255,.07);

    backdrop-filter:
        blur(14px);
}

.chat-profile {
    display: flex;

    align-items: center;

    gap: 11px;
}

.chat-profile strong {
    display: block;

    font-family:
        Arial,
        sans-serif;

    font-size: 14px;

    font-weight: 600;
}

.chat-profile span {
    display: block;

    margin-top: 2px;

    font-family:
        Arial,
        sans-serif;

    font-size: 11px;

    color: #777;
}

.chat-profile span::before {
    content: "●";

    margin-right: 5px;

    color: #7bc47b;

    font-size: 7px;
}


/* -----------------------------------------------------
   CHAT AVATAR
   ----------------------------------------------------- */

.chat-avatar {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        #222;

    color: #fff;

    font-family:
        Arial,
        sans-serif;

    font-size: 14px;

    font-weight: 600;
}

.chat-avatar.small {
    width: 28px;
    height: 28px;

    font-size: 11px;
}


/* -----------------------------------------------------
   CONVERSATION BODY
   ----------------------------------------------------- */

.conversation-body {
    width:
        min(100%, 680px);

    margin:
        0 auto;

    padding:
        30px 18px 100px;

    display: flex;

    flex-direction: column;

    overflow-x: hidden;
}


/* -----------------------------------------------------
   MESSAGE ROWS
   ----------------------------------------------------- */

.message-row {
    display: flex;

    align-items: flex-end;

    gap: 8px;

    margin-bottom: 13px;

    animation:
        messageAppear
        .45s
        ease
        both;
}

.amara-row {
    justify-content:
        flex-start;
}

.jay-row {
    justify-content:
        flex-end;
}


/* -----------------------------------------------------
   CHAT BUBBLES
   ----------------------------------------------------- */

.chat-bubble {
    max-width:
        min(75%, 430px);

    padding:
        11px 14px;

    border-radius:
        18px;

    font-family:
        Arial,
        sans-serif;

    font-size: 14px;

    line-height: 1.5;
}

.amara-bubble {
    background:
        #202020;

    border-bottom-left-radius:
        5px;

    color:
        #f4f4f4;
}

.jay-bubble {
    background:
        #b71925;

    border-bottom-right-radius:
        5px;

    color:
        white;
}

@keyframes messageAppear {

    from {
        opacity: 0;

        transform:
            translateY(9px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}


/* -----------------------------------------------------
   TYPING INDICATOR
   ----------------------------------------------------- */

.typing-row {
    display: flex;

    align-items: flex-end;

    gap: 8px;

    margin-bottom: 16px;

    animation:
        messageAppear
        .3s
        ease
        both;
}

.typing-indicator {
    display: flex;

    align-items: center;

    gap: 4px;

    padding:
        12px 14px;

    background:
        #202020;

    border-radius:
        18px;

    border-bottom-left-radius:
        5px;
}

.typing-indicator span {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background:
        #888;

    animation:
        typingBounce
        1.2s
        infinite
        ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay:
        .15s;
}

.typing-indicator span:nth-child(3) {
    animation-delay:
        .3s;
}

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform:
            translateY(0);

        opacity:
            .45;
    }

    30% {
        transform:
            translateY(-4px);

        opacity:
            1;
    }

}


/* -----------------------------------------------------
   CONVERSATION BUTTONS
   ----------------------------------------------------- */

.conversation-action {
    display: flex;

    justify-content:
        center;

    margin:
        24px 0 15px;

    animation:
        messageAppear
        .45s
        ease
        both;
}

.conversation-action button,
#continueStory {
    border:
        1px solid
        rgba(255,255,255,.15);

    background:
        rgba(255,255,255,.06);

    color:
        white;

    padding:
        12px 18px;

    border-radius:
        999px;

    font-family:
        Arial,
        sans-serif;

    font-size: 13px;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}

.conversation-action button:hover,
#continueStory:hover {
    background:
        rgba(255,255,255,.11);

    transform:
        translateY(-2px);
}

.conversation-action button:disabled {
    opacity:
        .5;

    pointer-events:
        none;
}


/* -----------------------------------------------------
   SNAP MESSAGE
   ----------------------------------------------------- */

.snap-message {
    width:
        min(100%, 430px);

    margin:
        25px 0;

    animation:
        messageAppear
        .45s
        ease
        both;
}

.snap-label {
    margin-bottom:
        10px;

    color:
        #777;

    font-family:
        Arial,
        sans-serif;

    font-size:
        11px;
}

.snap-open-button {
    width: 100%;

    padding:
        14px;

    border:
        1px solid
        rgba(255,255,255,.1);

    border-radius:
        14px;

    background:
        #171717;

    color:
        white;

    font-family:
        Arial,
        sans-serif;

    font-size:
        13px;

    cursor:
        pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.snap-open-button:hover {
    background:
        #202020;

    border-color:
        rgba(215,25,32,.35);

    transform:
        translateY(-1px);
}


/* -----------------------------------------------------
   SNAP PHOTO
   ----------------------------------------------------- */

.snap-photo-container {
    width:
        100%;

    border-radius:
        16px;

    overflow:
        hidden;

    background:
        #111;

    animation:
        messageAppear
        .5s
        ease
        both;
}

.snap-photo-container img {
    display:
        block;

    width:
        100%;

    height:
        auto;

    max-height:
        520px;

    object-fit:
        cover;
}


/* -----------------------------------------------------
   FIRST DATE MEMORY
   ----------------------------------------------------- */

.chat-memory {
    width:
        min(100%, 500px);

    margin:
        28px auto;

    padding:
        22px;

    text-align:
        center;

    border:
        1px solid
        rgba(255,255,255,.08);

    border-radius:
        18px;

    background:
        rgba(255,255,255,.025);

    animation:
        messageAppear
        .6s
        ease
        both;
}

.chat-memory > span {
    display:
        block;

    margin-bottom:
        12px;

    font-family:
        Arial,
        sans-serif;

    font-size:
        11px;

    letter-spacing:
        .16em;

    color:
        #777;
}

.chat-memory p {
    margin:
        8px 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        18px;
}

.chat-memory small {
    display:
        block;

    margin:
        10px auto 18px;

    max-width:
        380px;

    font-family:
        Arial,
        sans-serif;

    color:
        #999;

    font-size:
        12px;

    line-height:
        1.6;
}


/* -----------------------------------------------------
   FIRST DATE PHOTO
   ----------------------------------------------------- */

.first-date-photo {
    width:
        100%;

    margin:
        18px auto;

    overflow:
        hidden;

    border-radius:
        14px;
}

.first-date-photo img {
    display:
        block;

    width:
        100%;

    height:
        auto;

    max-height:
        600px;

    object-fit:
        cover;
}

.first-date-caption {
    color:
        #aaa;

    font-family:
        Arial,
        sans-serif;

    font-size:
        13px !important;

    line-height:
        1.6;
}

#continueStory {
    margin-top:
        15px;
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 600px) {

    /* SCREEN 1 */

    .message-scene {
        width:
            min(92%, 430px);

        padding:
            18px;
    }

    .message-action {
        font-size:
            10px;
    }


    /* SCREEN 2 */

    .code-screen {
        padding:
            25px 18px;
    }

    .code-screen .message-header {
        margin-bottom:
            32px;
    }

    .code-intro h2 {
        font-size:
            29px;
    }

    .riddle {
        padding:
            16px;
    }

    .number-pad {
        max-width:
            270px;

        gap:
            8px;
    }

    .number-key {
        height:
            57px;

        border-radius:
            15px;
    }

    .enter-code {
        max-width:
            270px;
    }


    /* SCREEN 3 */

    .conversation-header {
        height:
            64px;

        padding:
            0 15px;
    }

    .conversation-body {
        padding:
            24px 13px 80px;
    }

    .chat-bubble {
        max-width:
            82%;

        font-size:
            13.5px;
    }

    .snap-message {
        width:
            100%;
    }

    .chat-memory {
        padding:
            18px 15px;
    }

    .first-date-photo img {
        max-height:
            520px;
    }

}
/* ==========================================
   SCREEN 4 — PHOTO WALL
========================================== */

.photo-wall-screen {
    min-height: 100svh;
    padding: 85px 20px 110px;

    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(120, 12, 30, 0.20),
            transparent 48%
        ),
        #080809;

    color: #fff;
    overflow-x: hidden;

    isolation: isolate;
}


/* ==========================================
   INTRO
========================================== */

.photo-wall-intro {
    position: relative;
    z-index: 10;

    max-width: 540px;
    margin: 0 auto 35px;

    text-align: center;
}

.photo-wall-kicker {
    margin-bottom: 16px;

    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;

    color: rgba(255,255,255,.4);
}

.photo-wall-intro h2 {
    margin: 0;

    font-size: clamp(28px, 6vw, 45px);
    line-height: 1.05;
    font-weight: 500;

    letter-spacing: -.035em;
}

.photo-wall-intro p {
    margin: 10px 0 13px;

    font-size: clamp(18px, 4vw, 24px);

    color: rgba(255,255,255,.78);
}

.photo-wall-intro span {
    font-size: 12px;

    color: rgba(255,255,255,.38);
}


/* ==========================================
   HEART COLLAGE
========================================== */

.heart-wall {
    position: relative;

    width: min(94vw, 760px);
    height: 680px;

    margin: 0 auto;

    isolation: isolate;
}


/* ==========================================
   PHOTOS
========================================== */

.memory-photo {
    position: absolute;

    display: block;

    padding: 7px;

    border: 0;

    background: #f3eee8;

    cursor: pointer;

    opacity: 0;

    box-shadow:
        0 18px 35px rgba(0,0,0,.48),
        0 4px 10px rgba(0,0,0,.25);

    transition:
        opacity .65s ease,
        transform .4s cubic-bezier(.2,.8,.2,1),
        box-shadow .3s ease;

    z-index: 1;
}

.memory-photo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* TOP LEFT */

.photo-1 {
    width: 215px;
    height: 215px;

    top: 20px;
    left: 17%;

    transform:
        rotate(-7deg)
        scale(.72);

    z-index: 5;
}


/* TOP RIGHT */

.photo-2 {
    width: 200px;
    height: 200px;

    top: 25px;
    right: 17%;

    transform:
        rotate(6deg)
        scale(.72);

    z-index: 4;
}


/* LEFT MID */

.photo-3 {
    width: 175px;
    height: 185px;

    top: 180px;
    left: 4%;

    transform:
        rotate(-6deg)
        scale(.72);

    z-index: 6;
}


/* CENTRE */

.photo-4 {
    width: 210px;
    height: 190px;

    top: 180px;
    left: 29%;

    transform:
        rotate(2deg)
        scale(.72);

    z-index: 10;
}


/* RIGHT MID */

.photo-5 {
    width: 175px;
    height: 190px;

    top: 180px;
    right: 4%;

    transform:
        rotate(6deg)
        scale(.72);

    z-index: 5;
}


/* LOWER LEFT */

.photo-6 {
    width: 170px;
    height: 175px;

    top: 350px;
    left: 11%;

    transform:
        rotate(-7deg)
        scale(.72);

    z-index: 7;
}


/* LOWER CENTRE */

.photo-7 {
    width: 180px;
    height: 200px;

    top: 300px;
    left: 40%;

    transform:
        rotate(3deg)
        scale(.80);

    z-index: 11;
}


/* LOWER RIGHT */

.photo-8 {
    width: 205px;
    height: 195px;

    top: 350px;
    right: 9%;

    transform:
        rotate(7deg)
        scale(.72);

    z-index: 8;
}


/* BOTTOM */

.photo-9 {
    width: 155px;
    height: 155px;

    top: 515px;
    left: 50%;

    transform:
        translateX(-50%)
        rotate(-3deg)
        scale(.72);

    z-index: 12;
}


/* ==========================================
   APPEAR ANIMATION
========================================== */

.memory-photo.appear {
    opacity: 1;
}

.photo-1.appear {
    transform: rotate(-7deg) scale(1);
}

.photo-2.appear {
    transform: rotate(6deg) scale(1);
}

.photo-3.appear {
    transform: rotate(-6deg) scale(1);
}

.photo-4.appear {
    transform: rotate(2deg) scale(1);
}

.photo-5.appear {
    transform: rotate(6deg) scale(1);
}

.photo-6.appear {
    transform: rotate(-7deg) scale(1);
}

.photo-7.appear {
    transform: rotate(3deg) scale(1);
}

.photo-8.appear {
    transform: rotate(7deg) scale(1);
}

.photo-9.appear {
    transform:
        translateX(-50%)
        rotate(-3deg)
        scale(1);
}


/* ==========================================
   HOVER
========================================== */

.memory-photo:hover {
    z-index: 50;

    box-shadow:
        0 28px 60px rgba(0,0,0,.7);

    transform:
        rotate(0deg)
        scale(1.08);
}

.photo-9:hover {
    transform:
        translateX(-50%)
        rotate(0deg)
        scale(1.08);
}

.memory-photo:active {
    transform: scale(.98);
}


/* ==========================================
   SMALL HINT
========================================== */

.photo-wall-hint {
    position: relative;
    z-index: 20;

    margin: 18px auto 60px;

    text-align: center;

    font-size: 11px;
    letter-spacing: .08em;

    color: rgba(255,255,255,.35);
}


/* ==========================================
   MEMORY VIEWER
========================================== */

.memory-viewer {
    position: fixed;
    inset: 0;

    z-index: 200;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px 20px;

    background: rgba(5,5,6,.95);

    backdrop-filter: blur(18px);

    opacity: 0;
    visibility: hidden;

    transition: opacity .3s ease;
}

.memory-viewer.show {
    opacity: 1;
    visibility: visible;
}

.memory-viewer-inner {
    width: min(92vw, 520px);

    text-align: center;

    transform:
        translateY(20px)
        scale(.96);

    transition:
        transform .4s cubic-bezier(.2,.8,.2,1);
}

.memory-viewer.show .memory-viewer-inner {
    transform:
        translateY(0)
        scale(1);
}

.memory-close {
    position: fixed;

    top: 22px;
    right: 22px;

    width: 42px;
    height: 42px;

    border:
        1px solid
        rgba(255,255,255,.15);

    border-radius: 50%;

    background:
        rgba(255,255,255,.06);

    color: #fff;

    font-size: 25px;

    cursor: pointer;

    z-index: 5;
}

.memory-number {
    margin-bottom: 14px;

    font-size: 11px;
    letter-spacing: .18em;

    color: rgba(255,255,255,.4);
}

.memory-image-wrap {
    width: min(88vw, 470px);

    margin: 0 auto;

    padding: 9px;

    background: #151515;

    box-shadow:
        0 30px 80px rgba(0,0,0,.65);
}

.memory-image-wrap img {
    display: block;

    width: 100%;
    max-height: 65svh;

    object-fit: contain;
}

.memory-caption {
    max-width: 400px;

    margin: 22px auto 0;

    font-size: clamp(17px, 4vw, 22px);
    line-height: 1.45;

    color: rgba(255,255,255,.88);
}


/* ==========================================
   FIRST DATE
========================================== */

.special-memory .memory-image-wrap {
    box-shadow:
        0 30px 80px rgba(0,0,0,.7),
        0 0 55px rgba(170,20,45,.25);
}


/* ==========================================
   ENDING
========================================== */

.photo-wall-ending {
    max-width: 500px;

    margin: 30px auto 0;

    text-align: center;

    opacity: 0;

    transform: translateY(20px);

    transition:
        opacity .7s ease,
        transform .7s ease;
}

.photo-wall-ending.show {
    opacity: 1;

    transform: translateY(0);
}

.photo-wall-ending .ending-line {
    margin-bottom: 8px;

    font-size: clamp(25px, 5vw, 34px);
    font-weight: 500;

    letter-spacing: -.03em;

    color: rgba(255,255,255,.92);
}

.photo-wall-ending p {
    margin: 4px 0;

    font-size: 18px;

    color: rgba(255,255,255,.72);
}

.photo-wall-ending span {
    display: block;

    margin: 14px 0 28px;

    font-size: 13px;

    color: rgba(255,255,255,.4);
}

.photo-wall-ending button {
    border:
        1px solid
        rgba(255,255,255,.18);

    background:
        rgba(255,255,255,.06);

    color: #fff;

    border-radius: 999px;

    padding: 13px 22px;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}

.photo-wall-ending button:hover {
    background:
        rgba(255,255,255,.1);

    transform:
        translateY(-2px);
}


/* =====================================================
   SCREEN 4 — LITTLE RANDOM THINGS
===================================================== */

/* soft extra background lighting */

.photo-wall-screen {
    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(150, 20, 35, .16),
            transparent 42%
        ),
        radial-gradient(
            circle at 15% 80%,
            rgba(210, 150, 90, .055),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 15%,
            rgba(80, 100, 150, .045),
            transparent 25%
        ),
        #080809;
}


/* soft room light */

.photo-wall-screen::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    z-index: 0;

    background:
        radial-gradient(
            ellipse at 50% 100%,
            rgba(255, 170, 100, .035),
            transparent 45%
        );

    opacity: .9;
}


/* subtle grain */

.photo-wall-screen::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    z-index: 1;

    opacity: .08;

    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,.035) 0px,
            rgba(255,255,255,.035) 1px,
            transparent 1px,
            transparent 4px
        );

    mix-blend-mode: soft-light;
}


/* ==========================================
   BACKGROUND DOODLES
========================================== */

/* handwritten note */

.photo-wall-intro::before {
    content: "remember this.";

    position: absolute;

    left: -115px;
    top: 30px;

    width: 105px;

    padding: 12px 10px;

    font-family:
        "Comic Sans MS",
        "Bradley Hand",
        cursive;

    font-size: 10px;
    line-height: 1.4;

    color: rgba(255,255,255,.27);

    transform:
        rotate(-8deg);

    border-bottom:
        1px solid
        rgba(255,255,255,.10);

    pointer-events: none;
}


/* tiny travel doodle */

.photo-wall-screen .photo-wall-intro::after {
    content: "✈";

    position: absolute;

    right: -100px;
    top: 20px;

    font-family: Arial, sans-serif;

    font-size: 25px;

    color: rgba(255,255,255,.13);

    transform:
        rotate(-18deg);

    pointer-events: none;
}


/* faint football */

.heart-wall::before {
    content: "⚽";

    position: absolute;

    right: -70px;
    top: 135px;

    font-size: 34px;

    opacity: .09;

    transform:
        rotate(12deg);

    filter:
        grayscale(1);

    pointer-events: none;
}


/* tiny heart */

.heart-wall::after {
    content: "♡";

    position: absolute;

    left: -65px;
    bottom: 90px;

    font-size: 42px;

    color:
        rgba(215,25,32,.20);

    transform:
        rotate(-15deg);

    pointer-events: none;
}


/* ==========================================
   FAINT WEB / THREAD DETAIL
========================================== */

.heart-wall {
    isolation: isolate;
}


/* subtle crossing lines behind photos */

.photo-wall-screen .heart-wall {
    background:
        linear-gradient(
            145deg,
            transparent 48%,
            rgba(255,255,255,.025) 49%,
            transparent 50%
        ),
        linear-gradient(
            35deg,
            transparent 48%,
            rgba(255,255,255,.018) 49%,
            transparent 50%
        );

    background-size:
        170px 170px,
        210px 210px;
}


/* ==========================================
   FLOATING SPECKS
========================================== */

.photo-wall-screen .photo-wall-hint::before,
.photo-wall-screen .photo-wall-hint::after {
    content: "✦";

    position: absolute;

    font-size: 8px;

    color: rgba(255,255,255,.18);

    animation:
        memoryFloat
        5s
        ease-in-out
        infinite;
}

.photo-wall-screen .photo-wall-hint::before {
    left: -35px;
}

.photo-wall-screen .photo-wall-hint::after {
    right: -35px;

    animation-delay: 2s;
}

@keyframes memoryFloat {

    0%,
    100% {
        transform:
            translateY(0)
            rotate(0deg);

        opacity: .15;
    }

    50% {
        transform:
            translateY(-7px)
            rotate(12deg);

        opacity: .5;
    }
}


/* KEEP CONTENT ABOVE DECOR */

.photo-wall-intro,
.heart-wall,
.photo-wall-hint,
.photo-wall-ending {
    position: relative;

    z-index: 5;
}


/* =====================================================
   HIDDEN B — TUCKED UNDER PHOTO 4
===================================================== */

.hidden-b-clue {
    position: absolute;

    /*
       IMPORTANT:
       This is inside .heart-wall now.
       It sits underneath photo 4.
    */

    left: 25%;
    top: 330px;

    width: 78px;
    height: 58px;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;

    z-index: 9;

    transform:
        rotate(-7deg);

    overflow: visible;
}


/* paper peek */

.b-paper-peek {
    position: absolute;

    left: 0;
    top: 0;

    width: 70px;
    height: 55px;

    display: block;

    background:
        linear-gradient(
            145deg,
            #eee4d4,
            #d8c8b0
        );

    box-shadow:
        0 5px 12px
        rgba(0,0,0,.35);

    transform:
        rotate(5deg);
}


/* tiny exposed corner */

.b-paper-peek::after {
    content: "";

    position: absolute;

    right: 7px;
    bottom: 5px;

    width: 14px;
    height: 14px;

    border-radius: 1px;

    background:
        rgba(255,255,255,.15);

    transform:
        rotate(8deg);
}


/* ==========================================
   B VIEWER
========================================== */

.b-clue-viewer {
    position: fixed;

    inset: 0;

    z-index: 500;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px 20px;

    background:
        rgba(5,5,5,.84);

    backdrop-filter:
        blur(15px);

    opacity: 0;

    animation:
        bViewerIn
        .35s
        ease
        forwards;

    pointer-events: auto;
}


/* hidden must actually be hidden */

.b-clue-viewer[hidden] {
    display: none !important;
}

@keyframes bViewerIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* B PAPER */

.b-clue-paper {
    position: relative;

    width: min(82vw, 330px);

    aspect-ratio: 1 / .72;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #f0e5d3,
            #d8c7ad
        );

    color: #211b17;

    box-shadow:
        0 25px 80px
        rgba(0,0,0,.6);

    transform:
        rotate(-2deg)
        scale(.92);

    animation:
        bPaperIn
        .45s
        cubic-bezier(.2,.8,.2,1)
        forwards;
}

@keyframes bPaperIn {

    to {
        transform:
            rotate(-2deg)
            scale(1);
    }
}


.b-letter {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 76px;

    line-height: 1;

    font-weight: 700;
}


.b-note {
    margin-top: 13px;

    font-family:
        "Comic Sans MS",
        cursive;

    font-size: 12px;

    opacity: .65;
}


/* CLOSE */

.b-clue-close {
    position: fixed;

    top: 22px;
    right: 22px;

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        1px solid
        rgba(255,255,255,.2);

    border-radius: 50%;

    background:
        rgba(20,20,20,.85);

    color: white;

    font-family:
        Arial,
        sans-serif;

    font-size: 25px;

    line-height: 1;

    cursor: pointer;

    z-index: 510;

    pointer-events: auto;

    transition:
        transform .2s ease,
        background .2s ease;
}

.b-clue-close:hover {
    transform:
        rotate(8deg)
        scale(1.08);

    background:
        rgba(255,255,255,.12);
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

    .photo-wall-screen {
        padding:
            70px 10px 90px;
    }

    .photo-wall-intro {
        margin-bottom: 20px;
    }

    .heart-wall {
        width: 100%;
        height: 520px;
    }


    .photo-1 {
        width: 130px;
        height: 130px;

        top: 15px;
        left: 17%;

        transform:
            rotate(-7deg)
            scale(.72);
    }

    .photo-1.appear {
        transform:
            rotate(-7deg)
            scale(1);
    }


    .photo-2 {
        width: 120px;
        height: 120px;

        top: 20px;
        right: 16%;

        transform:
            rotate(6deg)
            scale(.72);
    }

    .photo-2.appear {
        transform:
            rotate(6deg)
            scale(1);
    }


    .photo-3 {
        width: 105px;
        height: 125px;

        top: 135px;
        left: 3%;

        transform:
            rotate(-5deg)
            scale(.72);
    }

    .photo-3.appear {
        transform:
            rotate(-5deg)
            scale(1);
    }


    .photo-4 {
        width: 100px;
        height: 105px;

        top: 115px;
        left: 37%;

        transform:
            rotate(3deg)
            scale(.72);
    }

    .photo-4.appear {
        transform:
            rotate(3deg)
            scale(1);
    }


    .photo-5 {
        width: 108px;
        height: 128px;

        top: 138px;
        right: 2%;

        transform:
            rotate(6deg)
            scale(.72);
    }

    .photo-5.appear {
        transform:
            rotate(6deg)
            scale(1);
    }


    .photo-6 {
        width: 110px;
        height: 120px;

        top: 250px;
        left: 10%;

        transform:
            rotate(-7deg)
            scale(.72);
    }

    .photo-6.appear {
        transform:
            rotate(-7deg)
            scale(1);
    }


    .photo-7 {
        width: 105px;
        height: 112px;

        top: 245px;
        left: 36%;

        transform:
            rotate(4deg)
            scale(.72);
    }

    .photo-7.appear {
        transform:
            rotate(4deg)
            scale(1);
    }


    .photo-8 {
        width: 125px;
        height: 120px;

        top: 250px;
        right: 8%;

        transform:
            rotate(7deg)
            scale(.72);
    }

    .photo-8.appear {
        transform:
            rotate(7deg)
            scale(1);
    }


    .photo-9 {
        width: 105px;
        height: 105px;

        top: 355px;
        left: 50%;

        transform:
            translateX(-50%)
            rotate(-3deg)
            scale(.72);
    }

    .photo-9.appear {
        transform:
            translateX(-50%)
            rotate(-3deg)
            scale(1);
    }


    .memory-image-wrap img {
        max-height: 58svh;
    }


    /* background decorations */

    .photo-wall-intro::before {
        left: -8px;
        top: -45px;

        width: 90px;

        font-size: 9px;
    }

    .photo-wall-screen .photo-wall-intro::after {
        right: 2px;
        top: -48px;

        font-size: 20px;
    }

    .heart-wall::before {
        right: -8px;
        top: 105px;

        font-size: 25px;

        opacity: .07;
    }

    .heart-wall::after {
        left: -8px;
        bottom: 70px;

        font-size: 30px;
    }

    .photo-wall-screen .photo-wall-hint::before {
        left: 12px;
    }

    .photo-wall-screen .photo-wall-hint::after {
        right: 12px;
    }


    /* B */

    .hidden-b-clue {
        left: 22%;
        top: 300px;

        width: 65px;
        height: 48px;
    }

    .b-paper-peek {
        width: 58px;
        height: 46px;
    }

    .b-clue-paper {
        width: min(84vw, 300px);
    }

    .b-clue-close {
        top: 16px;
        right: 16px;

        width: 40px;
        height: 40px;
    }
}

/* =========================================================
   SCREEN 5 — THE KITCHEN
   CLEAN / SINGLE SOURCE OF TRUTH
========================================================= */

#screen5.kitchen-screen {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    isolation: isolate;

    background:
        radial-gradient(
            ellipse at 50% 55%,
            rgba(105, 57, 35, .13),
            transparent 42%
        ),
        linear-gradient(
            180deg,
            #0d0e12 0%,
            #101116 48%,
            #171315 100%
        );

    color: #d8d0c8;
}

/* ---------------------------------------------------------
   HIDDEN STATES
--------------------------------------------------------- */

#screen5 [hidden] {
    display: none !important;
}

/* ---------------------------------------------------------
   BACKGROUND
--------------------------------------------------------- */

#screen5 .kitchen-cupboards {
    position: absolute;
    inset: 0 0 auto;
    height: 30%;
    display: flex;
    z-index: 1;
}

#screen5 .kitchen-cupboards > div {
    flex: 1;
    border-right: 1px solid rgba(255,255,255,.025);
    border-bottom: 5px solid #111216;

    background:
        linear-gradient(
            180deg,
            #15161b,
            #0c0d11
        );

    box-shadow:
        inset 0 -20px 25px rgba(0,0,0,.25);
}

#screen5 .kitchen-cupboards > div::after {
    content: "";
    display: block;

    width: 5px;
    height: 27px;
    margin: 38% auto 0;

    border-radius: 10px;
    background: #555158;
}

/* ---------------------------------------------------------
   UNDER-CABINET LIGHT
--------------------------------------------------------- */

#screen5 .cabinet-light {
    position: absolute;
    left: 0;
    right: 0;
    top: 29%;
    height: 5px;

    background: #8f6037;

    box-shadow:
        0 0 18px rgba(191,126,57,.28),
        0 8px 30px rgba(151,91,42,.10);

    z-index: 5;
}

/* ---------------------------------------------------------
   NIGHT WINDOW
--------------------------------------------------------- */

#screen5 .kitchen-window {
    position: absolute;

    right: 4.5%;
    top: 30%;

    width: min(29vw, 500px);
    height: 19%;

    overflow: hidden;

    border: 6px solid #242126;

    background:
        linear-gradient(
            180deg,
            #101522,
            #080a0e
        );

    box-shadow:
        0 14px 35px rgba(0,0,0,.35);

    z-index: 3;
}

#screen5 .kitchen-window::before {
    content: "";
    position: absolute;

    inset: 0 50% 0 auto;
    width: 4px;

    background: #242126;
    z-index: 5;
}

#screen5 .kitchen-window::after {
    content: "";
    position: absolute;

    left: 0;
    right: 0;
    top: 53%;
    height: 4px;

    background: #242126;
    z-index: 5;
}

#screen5 .window-moon {
    position: absolute;

    top: 16%;
    right: 13%;

    width: 38px;
    height: 38px;

    border-radius: 50%;
    background: #ddd7c8;

    box-shadow:
        0 0 25px rgba(255,255,255,.16);

    z-index: 4;
}

#screen5 .window-city {
    position: absolute;

    left: 3%;
    right: 3%;
    bottom: 0;
    top: 8%;

    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 5px;
}

#screen5 .window-city span {
    position: relative;
    display: block;
    width: 13%;

    background:
        linear-gradient(
            180deg,
            #161925,
            #080a0e
        );
}

#screen5 .window-city span:nth-child(1) { height: 68%; }
#screen5 .window-city span:nth-child(2) { height: 48%; }
#screen5 .window-city span:nth-child(3) { height: 78%; }
#screen5 .window-city span:nth-child(4) { height: 57%; }
#screen5 .window-city span:nth-child(5) { height: 82%; }
#screen5 .window-city span:nth-child(6) { height: 52%; }
#screen5 .window-city span:nth-child(7) { height: 72%; }

#screen5 .window-city span::after {
    content: "";
    position: absolute;

    top: 10%;
    left: 25%;
    right: 25%;
    bottom: 5%;

    background:
        radial-gradient(
            circle,
            rgba(220,174,72,.72) 0 2px,
            transparent 3px
        );

    background-size: 100% 20px;
}

/* ---------------------------------------------------------
   FRIDGE
--------------------------------------------------------- */

#screen5 .kitchen-fridge {
    position: absolute;

    left: 1.2%;
    top: 5%;

    width: 11.5%;
    height: 51%;

    padding: 0;

    border: 6px solid #28272c;
    border-radius: 9px;

    background:
        linear-gradient(
            110deg,
            #24252a,
            #15161a 70%,
            #191a1e
        );

    box-shadow:
        0 20px 45px rgba(0,0,0,.4);

    cursor: pointer;
    z-index: 20;
}

#screen5 .fridge-handle {
    position: absolute;

    right: 9%;
    top: 18%;

    width: 7px;
    height: 38%;

    border-radius: 10px;
    background: #8a8a8f;
}

#screen5 .fridge-note {
    position: absolute;

    left: 13%;
    top: 32%;

    width: 43px;
    height: 54px;

    display: grid;
    place-items: center;

    background: #e6d6a8;
    color: #282328;

    font-size: 18px;

    transform: rotate(-7deg);

    box-shadow:
        0 7px 18px rgba(0,0,0,.3);
}

/* ---------------------------------------------------------
   COUNTER
--------------------------------------------------------- */

#screen5 .kitchen-counter {
    position: absolute;

    left: 0;
    right: 0;
    top: 49%;
    bottom: 25%;

    background:
        linear-gradient(
            180deg,
            #302d31,
            #252226
        );

    border-top: 5px solid #3b373d;
    border-bottom: 7px solid #131215;

    box-shadow:
        inset 0 15px 35px rgba(0,0,0,.16),
        0 15px 40px rgba(0,0,0,.3);

    z-index: 5;
}

#screen5 .counter-item {
    position: absolute;
    bottom: 18%;
}

/* board */
#screen5 .cutting-board {
    left: 14%;

    width: 170px;
    height: 88px;

    border: 1px solid rgba(255,210,165,.15);
    border-radius: 10px;

    background:
        linear-gradient(
            145deg,
            #75482f,
            #8e5938 45%,
            #6d412b
        );

    transform: rotate(-6deg);

    box-shadow:
        0 12px 22px rgba(0,0,0,.38),
        inset 0 1px 0 rgba(255,255,255,.06);

    cursor: pointer;
    z-index: 40;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

#screen5 .cutting-board::after {
    content: "";
    position: absolute;

    inset: 12px 13px;

    border: 1px solid rgba(255,220,185,.08);
    border-radius: 6px;

    pointer-events: none;
}

#screen5 .cutting-board.ready {
    animation:
        boardHint
        1.3s
        ease-in-out
        infinite;
}

@keyframes boardHint {
    0%, 100% {
        transform: rotate(-6deg) translateY(0);
    }

    50% {
        transform: rotate(-6deg) translateY(-4px);
    }
}

/* optional plant if present in HTML */
#screen5 .kitchen-plant {
    position: absolute;
    left: 5%;
    bottom: 10%;
    width: 48px;
    height: 53px;
    border-radius: 50% 50% 7px 7px;
    background: #17191a;
    z-index: 20;
}

#screen5 .kitchen-plant span {
    position: absolute;
    width: 20px;
    height: 39px;
    bottom: 34px;
    border-radius: 100% 0 100% 0;
    background: #394b32;
}

#screen5 .kitchen-plant span:nth-child(1) {
    left: 3px;
    transform: rotate(-28deg);
}

#screen5 .kitchen-plant span:nth-child(2) {
    left: 16px;
    bottom: 39px;
}

#screen5 .kitchen-plant span:nth-child(3) {
    right: 0;
    transform: rotate(28deg);
}

/* bottle */
#screen5 .bottle {
    right: 17%;

    width: 36px;
    height: 88px;

    border-radius: 10px 10px 14px 14px;

    background:
        linear-gradient(
            90deg,
            #15171a,
            #292b2e,
            #101114
        );

    z-index: 20;
}

#screen5 .bottle::before {
    content: "";
    position: absolute;

    left: 10px;
    top: -18px;

    width: 14px;
    height: 20px;

    border-radius: 3px 3px 0 0;
    background: #191a1d;
}

#screen5 .bottle span {
    position: absolute;

    left: 5px;
    right: 5px;
    top: 30px;
    height: 28px;

    border-radius: 4px;

    background:
        linear-gradient(
            90deg,
            #6e561a,
            #d4ad39,
            #725919
        );

    opacity: .72;
}

/* mug */
#screen5 .mug {
    right: 8%;
    font-size: 42px;

    filter:
        drop-shadow(0 7px 5px rgba(0,0,0,.35));

    z-index: 20;
}

/* ---------------------------------------------------------
   STOVE / COOKTOP
--------------------------------------------------------- */

/*
   This is the important cleanup:
   the stove is a LOW COOKTOP sitting ON the counter.
   It is no longer a huge vertical rectangle.
*/

#screen5 .stove {
    position: absolute;

    left: 50%;
    top: 58%;

    width: min(390px, 32vw);
    height: 118px;

    transform: translate(-50%, -50%);

    border: 3px solid #34343a;
    border-radius: 14px;

    background:
        linear-gradient(
            180deg,
            #25262b,
            #111216
        );

    box-shadow:
        0 18px 35px rgba(0,0,0,.48),
        inset 0 1px 0 rgba(255,255,255,.04);

    z-index: 10;
}

#screen5 .burner-one {
    position: absolute;

    left: 50%;
    top: 58%;

    width: 110px;
    height: 58px;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            ellipse,
            #020203 0 24%,
            #17181b 25% 46%,
            #050506 47% 65%,
            #302e32 66% 73%,
            transparent 74%
        );

    box-shadow:
        0 0 18px rgba(0,0,0,.6);

    z-index: 2;
}

#screen5 .burner-two {
    display: none !important;
}

/* ---------------------------------------------------------
   FLAME — OFF UNTIL COOKING STARTS
--------------------------------------------------------- */

#screen5 .burner-one::after {
    content: "";

    position: absolute;

    left: 50%;
    top: 50%;

    width: 72px;
    height: 42px;

    transform:
        translate(-50%, -34%)
        scale(.7);

    border-radius:
        50% 50% 45% 45%;

    background:
        radial-gradient(
            ellipse at center bottom,
            rgba(255,194,75,.95) 0 18%,
            rgba(241,92,32,.9) 19% 43%,
            rgba(190,39,23,.55) 44% 65%,
            transparent 66%
        );

    filter: blur(1px);

    opacity: 0;
    pointer-events: none;

    transition:
        opacity .35s ease,
        transform .35s ease;

    z-index: 3;
}

#screen5.kitchen-screen.cooking .burner-one::after {
    opacity: 1;

    transform:
        translate(-50%, -42%)
        scale(1);

    animation:
        flameDance
        .38s
        ease-in-out
        infinite alternate;
}

#screen5.kitchen-screen.cooking .burner-one {
    box-shadow:
        0 0 14px rgba(255,91,35,.42),
        0 0 34px rgba(255,70,25,.18);
}

@keyframes flameDance {
    from {
        transform:
            translate(-50%, -42%)
            scaleX(.92)
            scaleY(.9);
    }

    to {
        transform:
            translate(-50%, -47%)
            scaleX(1.08)
            scaleY(1.08);
    }
}

/* ---------------------------------------------------------
   POT
--------------------------------------------------------- */

#screen5 .stove .cooking-pot {
    position: absolute !important;

    left: 50% !important;
    top: 42% !important;

    width: 176px !important;
    height: 92px !important;

    margin: 0 !important;

    transform:
        translate(-50%, -50%) !important;

    border:
        1px solid rgba(255,255,255,.06);

    border-radius:
        18px 18px 42px 42px !important;

    background:
        linear-gradient(
            105deg,
            #3a3b40 0%,
            #24252a 18%,
            #0c0d10 52%,
            #1d1e22 80%,
            #34353a 100%
        ) !important;

    box-shadow:
        0 16px 24px rgba(0,0,0,.58),
        inset 8px 0 14px rgba(255,255,255,.025),
        inset -8px 0 14px rgba(0,0,0,.35);

    z-index: 20 !important;

    overflow: visible !important;
}

/* handles */
#screen5 .stove .cooking-pot::before,
#screen5 .stove .cooking-pot::after {
    content: "";

    position: absolute;

    top: 28%;

    width: 47px;
    height: 23px;

    border:
        7px solid #141519;

    border-radius: 11px;

    background: transparent;

    z-index: -1;
}

#screen5 .stove .cooking-pot::before {
    right: 88%;
}

#screen5 .stove .cooking-pot::after {
    left: 88%;
}

/* pot opening */
#screen5 .pot-rim {
    position: absolute;

    left: -4%;
    right: -4%;
    top: -10%;

    height: 30px;

    border:
        4px solid #3b3c40;

    border-radius: 50%;

    background:
        radial-gradient(
            ellipse,
            #8b3421 0%,
            #69271c 52%,
            #151619 55%,
            #0b0c0f 100%
        );

    box-shadow:
        inset 0 3px 6px rgba(255,150,90,.12);

    z-index: 4;
}

/* food */
#screen5 .pot-food {
    position: absolute;

    left: 8%;
    right: 8%;
    top: 1%;

    height: 25px;

    border-radius: 50%;

    background: #6d2a1e;

    opacity: .92;

    box-shadow:
        inset 0 3px 7px rgba(255,145,80,.14);

    transition:
        background .5s ease,
        box-shadow .5s ease;
}

#screen5 .pot-food.has-food {
    opacity: 1;
}

/* steam */
#screen5 .pot-steam {
    position: absolute;

    left: 50%;
    top: -62%;

    width: 70%;
    height: 70%;

    transform: translateX(-50%);

    pointer-events: none;
    z-index: 30;

    opacity: 0;
    transition: opacity .4s ease;
}

#screen5.kitchen-screen.cooking .pot-steam {
    opacity: 1;
}

#screen5 .pot-steam span {
    position: absolute;

    bottom: 0;

    width: 7px;
    height: 55px;

    border-radius: 50%;

    background: rgba(220,215,210,.10);

    filter: blur(5px);

    animation:
        steamRise
        2.8s
        ease-in-out
        infinite;
}

#screen5 .pot-steam span:nth-child(1) { left: 18%; }
#screen5 .pot-steam span:nth-child(2) {
    left: 48%;
    animation-delay: .8s;
}
#screen5 .pot-steam span:nth-child(3) {
    left: 75%;
    animation-delay: 1.5s;
}

@keyframes steamRise {
    0% {
        opacity: 0;
        transform: translateY(15px) scale(.8);
    }

    40% {
        opacity: .7;
    }

    100% {
        opacity: 0;
        transform: translateY(-45px) scale(1.25);
    }
}

/* pot movement */
#screen5 .cooking-pot.sizzling {
    animation:
        potSizzleClean
        .15s
        ease-in-out
        4;
}

@keyframes potSizzleClean {
    0%, 100% {
        transform:
            translate(-50%, -50%)
            translateX(0);
    }

    25% {
        transform:
            translate(-50%, -50%)
            translateX(-3px);
    }

    50% {
        transform:
            translate(-50%, -50%)
            translateX(3px);
    }

    75% {
        transform:
            translate(-50%, -50%)
            translateX(-2px);
    }
}

/* ---------------------------------------------------------
   INTRO MESSAGE
--------------------------------------------------------- */

#screen5 .kitchen-message {
    position: absolute;

    left: 7%;
    top: 43%;

    width: min(34vw, 360px);

    z-index: 35;
    text-align: left;

    color: #d8d0c8;

    transition:
        opacity .5s ease,
        transform .5s ease;
}

#screen5 .kitchen-message-small {
    margin-bottom: 12px;

    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;

    color: #a99f98;
}

#screen5 .kitchen-message h2 {
    margin: 0;

    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.03;
    font-weight: 500;
    letter-spacing: -.04em;

    color: #d8d0c8;
}

#screen5 .kitchen-message p {
    margin-top: 10px;

    font-size: 15px;
    color: #a99f98;
}

#screen5 .kitchen-message button {
    margin-top: 25px;

    padding: 13px 21px;

    border:
        1px solid rgba(216,208,200,.18);

    border-radius: 999px;

    background:
        rgba(255,255,255,.055);

    color: #d8d0c8;

    cursor: pointer;
}

/* ---------------------------------------------------------
   COOKING WORLD
--------------------------------------------------------- */

#screen5 .cooking-world {
    position: absolute;
    inset: 0;

    z-index: 60;

    pointer-events: none;
}

#screen5 .cooking-world .food-object,
#screen5 .cooking-world .pot-target,
#screen5 .cooking-world .chop-button,
#screen5 .cooking-world .cooking-complete {
    pointer-events: auto;
}

/* message */
#screen5 .cooking-message {
    position: absolute;

    left: 50%;
    top: 5%;

    transform: translateX(-50%);

    width: min(500px, 80vw);

    text-align: center;

    z-index: 100;
}

#screen5 .cooking-message span {
    display: block;

    margin-bottom: 7px;

    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;

    color: #8f8781;
}

#screen5 .cooking-message strong {
    display: block;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 21px;
    font-weight: 400;

    color: #ddd5ce;
}

/* ---------------------------------------------------------
   INGREDIENT TRAY
--------------------------------------------------------- */

#screen5 .counter-ingredients {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 25%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: clamp(24px, 3.2vw, 55px);

    padding: 15px 30px 10px;

    background:
        linear-gradient(
            180deg,
            #121114,
            #0e0d10
        );

    border-top:
        1px solid rgba(255,255,255,.035);

    z-index: 90;
}

#screen5 .food-object {
    position: relative;

    flex: 0 0 62px;

    width: 62px;
    height: 85px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    padding: 0;

    border: 0;
    background: transparent;

    color: #817a76;

    cursor: pointer;

    pointer-events: auto;

    transition:
        transform .25s ease,
        opacity .25s ease,
        filter .25s ease;
}

#screen5 .food-emoji {
    display: block;

    font-size: 38px;
    line-height: 1;

    margin-top: 3px;

    filter:
        drop-shadow(0 6px 8px rgba(0,0,0,.3));
}

#screen5 .object-label {
    display: block;

    margin-top: 9px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 12px;
    white-space: nowrap;

    color: #817a76;
}

#screen5 .food-object:hover {
    transform: translateY(-5px);
}

#screen5 .food-object.selected {
    animation:
        ingredientFloat
        1.2s
        ease-in-out
        infinite;
}

@keyframes ingredientFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-6px) scale(1.06);
    }
}

#screen5 .food-object.used {
    opacity: .2;
    pointer-events: none;
    filter: grayscale(.7);
}

/* oil */
#screen5 .oil-body {
    display: block;

    width: 27px;
    height: 51px;

    margin-top: 5px;

    border-radius: 6px 6px 9px 9px;

    background:
        linear-gradient(
            90deg,
            #806318,
            #d7ad2f,
            #8e6e19
        );
}

#screen5 .oil-cap {
    display: block;

    width: 12px;
    height: 9px;

    border-radius: 3px 3px 0 0;
    background: #80651d;
}

#screen5 .oil-object.oil-pouring {
    animation:
        oilIntoPotClean
        .8s
        ease-in-out
        forwards;
}

@keyframes oilIntoPotClean {
    0% {
        transform: translate(0,0) rotate(0);
        opacity: 1;
    }

    55% {
        transform:
            translate(-220px,-120px)
            rotate(-18deg);
        opacity: 1;
    }

    100% {
        transform:
            translate(-330px,-175px)
            rotate(-25deg);
        opacity: 0;
    }
}

/* ---------------------------------------------------------
   POT CLICK TARGET
--------------------------------------------------------- */

#screen5 .pot-target {
    position: absolute;

    left: 50%;
    top: 58%;

    width: 215px;
    height: 135px;

    transform: translate(-50%, -50%);

    border: 0;
    outline: none;
    background: transparent;

    cursor: pointer;

    z-index: 150;
    pointer-events: auto;
}

#screen5 .pot-target.active {
    animation:
        potHintClean
        1.25s
        ease-in-out
        infinite;
}

@keyframes potHintClean {
    0%, 100% {
        transform:
            translate(-50%, -50%)
            scale(1);
    }

    50% {
        transform:
            translate(-50%, -50%)
            scale(1.035);
    }
}

/* ---------------------------------------------------------
   CHOPPING
--------------------------------------------------------- */

#screen5 .chop-action {
    position: absolute;

    left: 50%;
    top: 68%;

    transform: translate(-50%, -50%);

    text-align: center;

    z-index: 160;
    pointer-events: auto;
}

#screen5 .chop-hint {
    margin-bottom: 13px;
}

#screen5 .chop-hint span {
    display: block;

    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .18em;

    color: #8f8781;
}

#screen5 .chop-hint strong {
    display: block;

    margin-top: 5px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 18px;
    font-weight: 400;

    color: #ddd5ce;
}

#screen5 .chop-button {
    padding: 10px 20px;

    border:
        1px solid rgba(255,255,255,.2);

    border-radius: 25px;

    background:
        rgba(255,255,255,.04);

    color: #ddd5ce;

    cursor: pointer;
}

#screen5 .board-food {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    font-size: 38px;

    z-index: 15;
    pointer-events: none;

    opacity: 0;
}

#screen5 .board-food.visible {
    opacity: 1;
}

#screen5 .board-food.chopping {
    animation:
        boardFoodChopClean
        .16s
        ease-in-out
        infinite alternate;
}

#screen5 .board-food.chopped {
    opacity: 1;

    transform:
        translate(-50%, -50%)
        scale(.72);

    filter: saturate(.9);
}

#screen5 .board-food.chopped::after {
    content: "";

    position: absolute;

    width: 7px;
    height: 7px;

    border-radius: 2px;

    background: currentColor;

    box-shadow:
        -14px 5px 0 currentColor,
        14px 3px 0 currentColor,
        -9px -7px 0 currentColor,
        10px -6px 0 currentColor;

    opacity: .7;
}

@keyframes boardFoodChopClean {
    from {
        transform:
            translate(-50%, -50%)
            rotate(-6deg)
            scale(1);
    }

    to {
        transform:
            translate(-50%, -50%)
            rotate(6deg)
            scale(.94);
    }
}

/* knife */
#screen5 .chopping-knife {
    position: absolute;

    left: 50%;
    top: 8%;

    width: 72px;
    height: 24px;

    opacity: 0;

    transform:
        translateX(-50%)
        rotate(-40deg);

    pointer-events: none;

    z-index: 18;
}

#screen5 .knife-blade {
    position: absolute;

    left: 0;
    top: 5px;

    width: 48px;
    height: 12px;

    background:
        linear-gradient(
            180deg,
            #dedcd9,
            #777573
        );

    clip-path:
        polygon(
            0 0,
            100% 0,
            82% 100%,
            0 100%
        );
}

#screen5 .knife-handle {
    position: absolute;

    right: 0;
    top: 3px;

    width: 28px;
    height: 16px;

    border-radius: 4px;

    background: #19191c;
}

#screen5 .cutting-board.chopping .chopping-knife {
    opacity: 1;

    animation:
        knifeChopClean
        .3s
        ease-in-out
        infinite;
}

@keyframes knifeChopClean {
    0%, 100% {
        transform:
            translateX(-50%)
            translateY(-13px)
            rotate(-40deg);
    }

    50% {
        transform:
            translateX(-50%)
            translateY(10px)
            rotate(-40deg);
    }
}

/* ---------------------------------------------------------
   COMPLETION
--------------------------------------------------------- */

#screen5 .cooking-complete {
    position: absolute;

    left: 50%;
    top: 58%;

    transform: translate(-50%, -50%);

    width: min(500px, 80vw);

    text-align: center;

    z-index: 200;
}

#screen5 .complete-emoji {
    font-size: 62px;
    margin-bottom: 8px;
}

#screen5 .complete-small {
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: 12px;
    color: #99918a;
}

#screen5 .cooking-complete h2 {
    margin: 12px 0 24px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 37px;
    font-weight: 400;
    line-height: 1;

    color: #d8d0c8;
}

#screen5 .cooking-complete button {
    padding: 11px 24px;

    border:
        1px solid rgba(255,255,255,.2);

    border-radius: 25px;

    background:
        rgba(255,255,255,.04);

    color: #ddd5ce;

    cursor: pointer;
}

/* ---------------------------------------------------------
   FRIDGE OVERLAY
--------------------------------------------------------- */

#screen5 .fridge-overlay {
    position: fixed;
    inset: 0;

    display: grid;
    place-items: center;

    background:
        rgba(4,4,6,.82);

    backdrop-filter: blur(10px);

    z-index: 300;
}

#screen5 .fridge-inside {
    position: relative;

    width: min(650px, 80vw);
    height: min(600px, 75vh);

    border-radius: 15px;

    background:
        linear-gradient(
            180deg,
            #e4e3dc,
            #bdbcb7
        );

    box-shadow:
        0 30px 70px rgba(0,0,0,.5);
}

#screen5 .fridge-close,
#screen5 .a-reveal-close {
    position: absolute;

    right: 25px;
    top: 20px;

    width: 38px;
    height: 38px;

    border:
        1px solid rgba(255,255,255,.25);

    border-radius: 50%;

    background:
        rgba(0,0,0,.35);

    color: white;

    font-size: 24px;

    cursor: pointer;

    z-index: 20;
}

#screen5 .fridge-light {
    position: absolute;

    left: 50%;
    top: 20px;

    width: 55px;
    height: 9px;

    transform: translateX(-50%);

    border-radius: 10px;

    background: white;

    box-shadow:
        0 0 30px white;
}

#screen5 .fridge-shelf {
    position: absolute;

    left: 8%;
    right: 8%;

    height: 5px;

    background:
        rgba(60,60,60,.2);
}

#screen5 .fridge-shelf:nth-of-type(1) {
    top: 42%;
}

#screen5 .fridge-shelf:nth-of-type(2) {
    top: 70%;
}

#screen5 .fridge-magnets {
    position: absolute;

    left: 50%;
    top: 30%;

    transform: translateX(-50%);

    display: flex;
    gap: 20px;
}

#screen5 .fridge-magnets span {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 48px;
    color: #28262a;
}

#screen5 .fridge-magnets .turned-a {
    transform: rotate(180deg);
    color: #b44545;
}

#screen5 .fridge-hidden-letter {
    position: absolute;

    left: 50%;
    bottom: 9%;

    transform:
        translateX(-50%)
        rotate(-4deg);

    width: 58px;
    height: 48px;

    border: 0;

    background: #e8d7a6;

    box-shadow:
        0 7px 18px rgba(0,0,0,.2);

    cursor: pointer;
}

#screen5 .fridge-hidden-letter span {
    color: #2a2523;
    font-size: 20px;
}

/* ---------------------------------------------------------
   A REVEAL
--------------------------------------------------------- */

#screen5 .a-reveal {
    position: fixed;
    inset: 0;

    display: grid;
    place-items: center;

    background:
        rgba(5,4,6,.85);

    backdrop-filter: blur(8px);

    z-index: 400;
}

#screen5 .a-paper {
    width: 280px;
    min-height: 330px;

    padding: 40px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: #e8d7a6;
    color: #2b2421;

    transform: rotate(-3deg);

    box-shadow:
        0 25px 60px rgba(0,0,0,.45);
}

#screen5 .a-letter {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 130px;
    line-height: 1;
}

#screen5 .a-note {
    margin-top: 20px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 18px;
    font-style: italic;
}

/* ---------------------------------------------------------
   SCREEN 5 — MOBILE
   REAL PHONE COMPOSITION
--------------------------------------------------------- */

@media (max-width: 600px) {

    #screen5.kitchen-screen {
        min-height: 100svh;
        height: 100svh;
        overflow: hidden;
    }


    /* =========================
       BACKGROUND
    ========================= */

    #screen5 .kitchen-cupboards {
        height: 28%;
    }

    #screen5 .cabinet-light {
        top: 27%;
        height: 4px;
    }

/* ==========================================
   SCREEN 5 — MOBILE FRIDGE
========================================== */

@media (max-width: 600px) {

    #screen5 .kitchen-fridge {
        left: 4%;
        top: 8%;

        width: 27%;
        height: 36%;

        border-width: 5px;
        border-radius: 9px;

        transform: none;
    }


    /* fridge door split */

    #screen5 .kitchen-fridge::before {
        left: 0;
        right: 0;
        top: 58%;

        height: 2px;
    }


    /* handle */

    #screen5 .fridge-handle {
        width: 5px;
        height: 30%;

        right: 8%;

        border-radius: 4px;
    }


    /* little magnets / notes */

    #screen5 .fridge-note {
        width: 38px;
        height: 46px;

        font-size: 14px;
    }


    /* keep the A reveal properly sized */

    #screen5 .a-paper {
        width: 78vw;
        max-width: 320px;
    }
}


    /* =========================
       WINDOW
    ========================= */

    #screen5 .kitchen-window {
        right: 3%;
        top: 28%;
        width: 43%;
        height: 18%;
        border-width: 5px;
    }

    #screen5 .window-moon {
        width: 28px;
        height: 28px;
    }


    /* =========================
       COUNTER
    ========================= */

    #screen5 .kitchen-counter {
        top: 47%;
        bottom: 24%;
    }


    /* =========================
       CUTTING BOARD
       smaller + farther left
    ========================= */

    #screen5 .cutting-board {
        left: 5%;
        bottom: 17%;

        width: 105px;
        height: 58px;

        border-radius: 9px;
    }

    #screen5 .cutting-board::after {
        inset: 9px 10px;
    }


    /* =========================
       BOTTLE
    ========================= */

    #screen5 .bottle {
        right: 13%;
        bottom: 19%;

        width: 26px;
        height: 63px;
    }

    #screen5 .bottle::before {
        left: 7px;
        top: -14px;

        width: 11px;
        height: 16px;
    }

    #screen5 .bottle span {
        left: 4px;
        right: 4px;
        top: 25px;
        height: 22px;
    }


    /* =========================
       MUG
    ========================= */

    #screen5 .mug {
        right: 4%;
        bottom: 18%;
        font-size: 30px;
    }


    /* =========================
       STOVE
    ========================= */

    #screen5 .stove {
        left: 56%;
        top: 57%;

        width: 43%;
        height: 82px;

        border-radius: 12px;
    }


    /* =========================
       BURNER
    ========================= */

    #screen5 .burner-one {
        width: 82px;
        height: 44px;
    }

    #screen5 .burner-one::after {
        width: 55px;
        height: 32px;
    }


    /* =========================
       POT
    ========================= */

    #screen5 .stove .cooking-pot {
        width: 122px !important;
        height: 66px !important;

        top: 40% !important;
    }

    #screen5 .stove .cooking-pot::before,
    #screen5 .stove .cooking-pot::after {
        width: 32px;
        height: 17px;

        border-width: 5px;
    }

    #screen5 .pot-rim {
        height: 22px;
        border-width: 3px;
    }

    #screen5 .pot-food {
        height: 18px;
    }


    /* =========================
       INTRO MESSAGE
    ========================= */

    #screen5 .kitchen-message {
        left: 50%;
        top: 34%;

        width: 78%;

        transform: translateX(-50%);

        text-align: center;
    }

    #screen5 .kitchen-message-small {
        margin-bottom: 8px;
        font-size: 10px;
    }

    #screen5 .kitchen-message h2 {
        font-size: 31px;
        line-height: 1.05;
    }

    #screen5 .kitchen-message p {
        margin-top: 8px;
        font-size: 13px;
    }

    #screen5 .kitchen-message button {
        margin-top: 18px;
        padding: 11px 18px;
        font-size: 12px;
    }


    /* =========================
       COOKING MESSAGE
    ========================= */

    #screen5 .cooking-message {
        top: 5%;
        width: 88%;
    }

    #screen5 .cooking-message span {
        font-size: 10px;
        margin-bottom: 5px;
    }

    #screen5 .cooking-message strong {
        font-size: 18px;
        line-height: 1.2;
    }

/* =========================================================
   SCREEN 5 — MOBILE INGREDIENT TRAY
   ALL 7 INGREDIENTS VISIBLE
========================================================= */

@media (max-width: 600px) {

    #screen5 .counter-ingredients {
        left: 4%;
        right: 4%;
        bottom: 1%;

        width: 92%;
        height: 125px;

        display: grid;

        grid-template-columns:
            repeat(4, 1fr);

        grid-template-rows:
            repeat(2, 1fr);

        gap: 4px 3px;

        align-items: center;
        justify-items: center;

        overflow: visible;

        padding: 4px 0;

        pointer-events: none;
    }


    /* Every ingredient goes back into the grid */

    #screen5 .food-object {

        position: relative;

        left: auto !important;
        right: auto !important;
        bottom: auto !important;

        width: 100%;
        height: 54px;

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: flex-end;

        padding: 0;

        pointer-events: auto;
    }


    /* TOP ROW */

    #screen5 .oil-object {
        grid-column: 1;
        grid-row: 1;
    }

    #screen5 .onion-object {
        grid-column: 2;
        grid-row: 1;
    }

    #screen5 .pepper-object {
        grid-column: 3;
        grid-row: 1;
    }

    #screen5 .tomato-object {
        grid-column: 4;
        grid-row: 1;
    }


    /* BOTTOM ROW */

    #screen5 .chicken-object {
        grid-column: 1;
        grid-row: 2;
    }

    #screen5 .seasoning-object {
        grid-column: 2;
        grid-row: 2;
    }

    #screen5 .rice-object {
        grid-column: 3;
        grid-row: 2;

        /* IMPORTANT — keep rice inside */
        visibility: visible !important;
        opacity: 1;
    }


    /* =========================
       FOOD
    ========================= */

    #screen5 .food-emoji {
        display: block;

        font-size: 27px;

        line-height: 1;
    }

    #screen5 .object-label {
        display: block;

        margin-top: 4px;

        font-size: 9px;

        line-height: 1;

        white-space: nowrap;
    }


    /* =========================
       OIL
    ========================= */

    #screen5 .oil-object {
        width: 40px;
    }

    #screen5 .oil-body {
        left: 7px;
        bottom: 7px;

        width: 25px;
        height: 43px;
    }

    #screen5 .oil-cap {
        left: 13px;
        bottom: 48px;

        width: 13px;
        height: 7px;
    }


    /* =========================
       LEAVE 4TH GRID CELL EMPTY
       so the tray doesn't look cramped
    ========================= */

    #screen5 .rice-object::after {
        content: "";
    }
}
    /* =========================
       POT TARGET
    ========================= */

    #screen5 .pot-target {
        top: 57%;

        left: 56%;

        width: 155px;
        height: 105px;
    }


    /* =========================
       CHOPPING
    ========================= */

    #screen5 .chop-action {
        left: 50%;
        top: 67%;

        width: 90%;
    }

    #screen5 .chop-hint span {
        font-size: 10px;
    }

    #screen5 .chop-hint strong {
        font-size: 16px;
    }

    #screen5 .chop-button {
        padding: 10px 17px;
        font-size: 12px;
    }


    #screen5 .board-food {
        font-size: 34px;
    }


    /* =========================
       COMPLETION
    ========================= */

    #screen5 .cooking-complete {
        top: 55%;
        width: 88%;
    }

    #screen5 .complete-emoji {
        font-size: 50px;
    }

    #screen5 .cooking-complete h2 {
        font-size: 31px;
    }


    /* =========================
       FRIDGE MODAL
    ========================= */

    #screen5 .fridge-inside {
        width: 88vw;
        height: 70svh;
    }

    #screen5 .fridge-close,
    #screen5 .a-reveal-close {
        right: 15px;
        top: 15px;

        width: 36px;
        height: 36px;
    }

    #screen5 .fridge-magnets span {
        font-size: 35px;
    }
}
/* =========================================================
   SCREEN 5 — FINAL JOLLOF PLATE
========================================================= */

#screen5 .cooking-complete {
    top: 50%;
    width: min(520px, 90vw);
}


/* -------------------------
   REACTION
------------------------- */

#screen5 .complete-reaction {
    opacity: 0;

    transform: translateY(15px);

    animation:
        reactionAppear
        .7s
        ease
        forwards 1s;
}

#screen5 .complete-reaction .complete-small {
    margin-bottom: 8px;

    color: rgba(255,255,255,.48);
}

#screen5 .complete-reaction h2 {
    margin: 0 0 10px;

    font-size: clamp(29px, 6vw, 39px);

    line-height: 1.05;

    color: #f4eee8;
}

#screen5 .complete-reaction p {
    margin-bottom: 22px;

    color: rgba(255,255,255,.5);

    font-size: 13px;
}

#screen5 .complete-reaction button {
    padding: 11px 24px;

    border:
        1px solid
        rgba(255,255,255,.16);

    border-radius: 999px;

    background:
        rgba(255,255,255,.045);

    color: rgba(255,255,255,.78);

    cursor: pointer;

    transition:
        transform .25s ease,
        background .25s ease;
}

#screen5 .complete-reaction button:hover {
    transform: translateY(-2px);

    background:
        rgba(255,255,255,.08);
}

/* -------------------------
   ANIMATIONS
------------------------- */

@keyframes plateArrive {

    0% {
        opacity: 0;
        transform:
            translateY(35px)
            scale(.8);
    }

    70% {
        opacity: 1;
        transform:
            translateY(-5px)
            scale(1.03);
    }

    100% {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}

@keyframes reactionAppear {

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* =========================================================
   REAL JOLLOF PNG
========================================================= */

#screen5 .plated-jollof {
    width: min(430px, 82vw);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#screen5 .plated-jollof::after {
    content: "";
    position: absolute;
    width: 70%;
    height: 28px;
    left: 50%;
    bottom: 5%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.45);
    filter: blur(18px);
    border-radius: 50%;
    z-index: -1;
}

#screen5 .plated-jollof img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter:
        drop-shadow(0 25px 30px rgba(0,0,0,.45))
        drop-shadow(0 5px 8px rgba(0,0,0,.25));
    animation: jollofReveal .9s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes jollofReveal {
    from {
        opacity: 0;
        transform: translateY(25px) scale(.88);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* =========================================================
   SCREEN 6 — ONE MORE SHOT
   NEW VERSION
========================================================= */

#screen6.one-shot-screen {
    position: relative;
    width: 100%;
    min-height: 100svh;
    background: #030405;
    color: #fff;
    overflow-x: hidden;
}


/* =========================================================
   INTRO
========================================================= */

#screen6 .shot-transition {
    position: absolute;
    inset: 0;
    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at 50% 48%,
            rgba(170,20,30,.16),
            transparent 35%
        ),
        #030405;

    opacity: 0;
    pointer-events: none;

    transition:
        opacity .9s ease;
}

#screen6 .shot-transition.show {
    opacity: 1;
    pointer-events: auto;
}

#screen6 .shot-transition.hide {
    opacity: 0;
    pointer-events: none;
}

#screen6 .shot-transition-inner {
    width: min(88%, 480px);
    text-align: center;
}

#screen6 .shot-transition-inner p {
    margin: 12px 0;

    opacity: 0;
    transform: translateY(15px);

    color: rgba(255,255,255,.68);

    font-size: 18px;
    line-height: 1.5;
}

#screen6 .shot-transition.show .shot-intro-small {
    animation:
        shotTextIn .7s ease forwards .3s;
}

#screen6 .shot-transition.show .shot-intro-main {
    animation:
        shotTextIn .7s ease forwards 1.1s;
}

#screen6 .shot-transition.show .shot-intro-final {
    animation:
        shotTextIn .7s ease forwards 2s;
}

#screen6 .shot-intro-main {
    font-size: 28px !important;
    color: #fff !important;
}

#screen6 .shot-intro-final {
    font-size: 17px !important;
}

#screen6 .shot-intro-final strong {
    display: inline-block;
    margin-top: 5px;
    color: #fff;
}

@keyframes shotTextIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   FOOTBALL WORLD
========================================================= */

#screen6 .football-world {
    position: relative;
    width: 100%;
    min-height: 100svh;
    overflow: hidden;

    background:
        radial-gradient(
            ellipse at 50% 55%,
            rgba(30,75,48,.22),
            transparent 48%
        ),
        linear-gradient(
            180deg,
            #030405 0%,
            #070b09 48%,
            #07150d 100%
        );
}


/* =========================================================
   STADIUM LIGHTS
========================================================= */

#screen6 .stadium-light-left,
#screen6 .stadium-light-right {
    position: absolute;
    top: -15%;
    width: 30vw;
    height: 65vh;

    opacity: .16;
    filter: blur(35px);

    pointer-events: none;
}

#screen6 .stadium-light-left {
    left: -10%;

    background:
        linear-gradient(
            100deg,
            transparent 20%,
            rgba(255,255,255,.6),
            transparent 65%
        );

    transform: rotate(14deg);
}

#screen6 .stadium-light-right {
    right: -10%;

    background:
        linear-gradient(
            80deg,
            transparent 20%,
            rgba(255,255,255,.6),
            transparent 65%
        );

    transform: rotate(-14deg);
}


/* =========================================================
   TOP
========================================================= */

#screen6 .football-top {
    position: absolute;
    top: 35px;
    left: 50%;

    transform: translateX(-50%);

    width: min(88%, 650px);

    display: flex;
    justify-content: space-between;
    align-items: center;

    z-index: 10;
}

#screen6 .football-title {
    color: rgba(255,255,255,.45);

    font-size: 9px;
    letter-spacing: .25em;
}

#screen6 .football-score {
    text-align: right;
}

#screen6 .football-score span {
    display: block;

    color: rgba(255,255,255,.35);

    font-size: 8px;
    letter-spacing: .18em;
}

#screen6 .football-score strong {
    display: block;

    margin-top: 3px;

    color: #e52b35;

    font-size: 24px;
}


/* =========================================================
   AMARA MESSAGE
========================================================= */

#screen6 .football-message {
    position: absolute;

    top: 16%;
    left: 50%;

    transform: translateX(-50%);

    width: min(90%, 480px);

    text-align: center;

    z-index: 10;
}

#screen6 .football-message span {
    display: block;

    margin-bottom: 8px;

    color: rgba(255,255,255,.35);

    font-size: 11px;
    letter-spacing: .12em;
}

#screen6 .football-message strong {
    display: block;

    font-size: clamp(24px, 5vw, 34px);
    font-weight: 500;
}

#screen6 .football-message p {
    margin: 7px 0 0;

    color: rgba(255,255,255,.6);

    font-size: 14px;
}

#screen6 .football-message small {
    display: block;

    margin-top: 5px;

    color: rgba(255,255,255,.38);

    font-size: 12px;
}


/* =========================================================
   PITCH
========================================================= */

#screen6 .football-pitch {
    position: absolute;

    left: 50%;
    bottom: 0;

    width: min(850px, 100%);
    height: 55%;

    transform: translateX(-50%);

    background:
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,.018) 0 90px,
            transparent 90px 180px
        ),
        linear-gradient(
            180deg,
            #0a2719,
            #06130d
        );

    border-top:
        1px solid
        rgba(255,255,255,.12);

    box-shadow:
        inset 0 45px 100px rgba(0,0,0,.4);
}

#screen6 .pitch-glow {
    position: absolute;

    left: 50%;
    top: 0;

    width: 70%;
    height: 50%;

    transform: translateX(-50%);

    background:
        radial-gradient(
            ellipse,
            rgba(255,255,255,.08),
            transparent 65%
        );

    pointer-events: none;
}


/* pitch markings */

#screen6 .pitch-lines {
    position: absolute;

    inset: 8% 14% 0;

    border:
        1px solid
        rgba(255,255,255,.13);

    border-bottom: 0;
}

#screen6 .pitch-lines::before {
    content: "";

    position: absolute;

    left: 50%;
    top: 0;
    bottom: 0;

    width: 1px;

    background:
        rgba(255,255,255,.09);
}

#screen6 .pitch-lines::after {
    content: "";

    position: absolute;

    left: 50%;
    top: 50%;

    width: 90px;
    height: 90px;

    transform: translate(-50%, -50%);

    border:
        1px solid
        rgba(255,255,255,.09);

    border-radius: 50%;
}
/* =========================================================
   BALL
========================================================= */

#screen6 .football-ball {
    position: absolute;

    left: 50%;
    bottom: 12%;

    width: 65px;
    height: 65px;

    transform: translateX(-50%);

    border: 0;
    background: transparent;

    font-size: 52px;

    cursor: pointer;

    filter:
        drop-shadow(
            0 12px 14px
            rgba(0,0,0,.55)
        );

    transition:
        transform .15s ease;
}

#screen6 .football-ball:hover {
    transform:
        translateX(-50%)
        scale(1.08);
}

#screen6 .football-ball:active {
    transform:
        translateX(-50%)
        scale(.9);
}

#screen6 .football-ball.shooting {
    animation:
        shootBallNew
        .75s
        cubic-bezier(.2,.8,.2,1)
        forwards;
}
@keyframes shootBallNew {

    0% {
        transform:
            translateX(-50%)
            translateY(0)
            rotate(0deg);
    }

    55% {
        transform:
            translateX(-50%)
            translateY(-220px)
            rotate(300deg);
    }

    100% {
        transform:
            translateX(-50%)
            translateY(-300px)
            rotate(520deg);
    }

}
/* =========================================================
   SHOT COUNTER
========================================================= */

#screen6 .shot-counter {
    position: absolute;

    left: 50%;
    bottom: 4%;

    transform: translateX(-50%);

    z-index: 15;

    text-align: center;
}

#screen6 .shot-counter span {
    display: block;

    color: rgba(255,255,255,.3);

    font-size: 9px;
    letter-spacing: .18em;
}

#screen6 .shot-counter strong {
    display: block;

    margin-top: 4px;

    font-size: 18px;
}


/* =========================================================
   INSTRUCTION
========================================================= */

#screen6 .shot-instruction {
    position: absolute;

    left: 50%;
    bottom: 11%;

    transform: translateX(-50%);

    z-index: 15;

    color: rgba(255,255,255,.4);

    font-size: 10px;
    letter-spacing: .08em;

    animation:
        instructionPulseNew
        2s
        ease-in-out
        infinite;
}

@keyframes instructionPulseNew {

    0%,
    100% {
        opacity: .3;
    }

    50% {
        opacity: .8;
    }

}


/* =========================================================
   REACTION
========================================================= */

#screen6 .football-reaction {
    position: absolute;

    left: 50%;
    bottom: 16%;

    transform: translateX(-50%);

    z-index: 20;

    min-height: 25px;

    text-align: center;

    color: rgba(255,255,255,.72);

    font-size: 13px;

    pointer-events: none;

    transition:
        opacity .25s ease,
        transform .25s ease;
}

#screen6 .football-reaction.show {
    animation:
        reactionPop
        .4s
        ease both;
}

@keyframes reactionPop {

    from {
        opacity: 0;
        transform:
            translateX(-50%)
            translateY(8px);
    }

    to {
        opacity: 1;
        transform:
            translateX(-50%)
            translateY(0);
    }

}


/* =========================================================
   RESULT
========================================================= */

#screen6 .shot-result {
    position: absolute;

    inset: 0;

    z-index: 50;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-align: center;

    background:
        rgba(2,3,3,.86);

    backdrop-filter: blur(7px);

    animation:
        resultAppearNew
        .7s
        ease
        forwards;
}

#screen6 .shot-result strong {
    font-size:
        clamp(58px, 15vw, 110px);

    letter-spacing: -.05em;
}

#screen6 .shot-result p {
    margin-top: 12px;

    color: rgba(255,255,255,.6);

    font-size: 15px;
}

@keyframes resultAppearNew {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}


/* =========================================================
   MUSIC ROOM
========================================================= */

#screen6 .memory-music-room {
    position: relative;

    min-height: 120svh;

    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding:
        90px 20px 120px;

    background:
        radial-gradient(
            circle at 50% 40%,
            rgba(100,20,25,.13),
            transparent 40%
        ),
        linear-gradient(
            180deg,
            #090707,
            #030303
        );
}


/* room light */

#screen6 .room-light {
    position: absolute;

    top: 5%;
    left: 50%;

    width: 550px;
    height: 550px;

    transform: translateX(-50%);

    background:
        radial-gradient(
            circle,
            rgba(255,180,100,.055),
            transparent 68%
        );

    filter: blur(15px);
}


/* =========================================================
   STRING LIGHTS
========================================================= */

#screen6 .memory-string {
    position: relative;

    width: min(900px, 96vw);
    height: 300px;

    z-index: 5;
}

#screen6 .string-wire {
    position: absolute;

    left: 3%;
    right: 3%;
    top: 50px;

    height: 100px;

    border-top:
        2px solid
        rgba(75,65,55,.9);

    border-radius: 50%;
}


/* bulbs */

#screen6 .string-bulb {
    position: absolute;

    top: 47px;

    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #ffd99b;

    box-shadow:
        0 0 7px 2px rgba(255,190,100,.5),
        0 0 25px 7px rgba(255,150,70,.12);

    animation:
        bulbGlow
        3s
        ease-in-out
        infinite;
}

#screen6 .bulb-1 {
    left: 10%;
}

#screen6 .bulb-2 {
    left: 26%;
    animation-delay: .6s;
}

#screen6 .bulb-3 {
    left: 42%;
    animation-delay: 1.2s;
}

#screen6 .bulb-4 {
    left: 58%;
    animation-delay: 1.8s;
}

#screen6 .bulb-5 {
    left: 74%;
    animation-delay: 2.4s;
}

#screen6 .bulb-6 {
    left: 90%;
    animation-delay: 1s;
}

@keyframes bulbGlow {

    0%,
    100% {
        opacity: .65;
    }

    50% {
        opacity: 1;
    }

}


/* =========================================================
   HANGING PHOTOS
========================================================= */

#screen6 .string-photo {
    position: absolute;

    width: 135px;
    height: 155px;

    padding: 7px;

    background: #eee8df;

    box-shadow:
        0 18px 35px rgba(0,0,0,.55);

    transform-origin: top center;

    z-index: 10;
}

#screen6 .string-photo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* clips */

#screen6 .photo-clip {
    position: absolute;

    top: -16px;
    left: 50%;

    width: 17px;
    height: 25px;

    transform: translateX(-50%);

    border:
        2px solid
        #9b8a73;

    border-bottom: 0;

    border-radius:
        8px 8px 0 0;

    z-index: 5;
}

#screen6 .photo-clip::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -7px;

    width: 5px;
    height: 10px;

    transform: translateX(-50%);

    background: #9b8a73;
}


/* individual positions */
#screen6 .photo-a {
    left: 7%;
    top: 67px;
    transform: rotate(-5deg);
}

#screen6 .photo-b {
    left: 30%;
    top: 73px;
    transform: rotate(3deg);
}

#screen6 .photo-c {
    right: 30%;
    top: 70px;
    transform: rotate(-3deg);
}

#screen6 .photo-d {
    right: 7%;
    top: 65px;
    transform: rotate(5deg);
}

/* =========================================================
   MUSIC CORNER
========================================================= */

#screen6 .music-corner {
    position: relative;

    z-index: 10;

    width: min(560px, 94vw);

    margin-top: 15px;

    text-align: center;
}

#screen6 .music-copy span {
    display: block;

    color: rgba(255,255,255,.35);

    font-size: 11px;
    letter-spacing: .14em;
}

#screen6 .music-copy h2 {
    margin: 10px auto 0;

    width: max-content;
    max-width: 92vw;

    font-size:
        clamp(20px, 4vw, 35px);

    font-weight: 400;
    line-height: 1.15;

    white-space: nowrap;
    letter-spacing: -.025em;
}

#screen6 .music-copy p {
    margin: 22px 0 4px;

    color: #fff;

    font-size: 19px;
}

#screen6 .music-copy small {
    color: rgba(255,255,255,.4);

    font-size: 11px;
}


/* =========================================================
   TURNTABLE
========================================================= */

#screen6 .turntable {
    position: relative;

    width: min(420px, 90vw);
    height: 285px;

    margin: 35px auto 0;
}

#screen6 .turntable-body {
    position: absolute;

    left: 50%;
    bottom: 0;

    width: 100%;
    height: 220px;

    transform: translateX(-50%);

    border-radius: 8px;

    background:
        linear-gradient(
            145deg,
            #242326,
            #0b0b0d
        );

    box-shadow:
        0 35px 70px rgba(0,0,0,.7),
        inset 0 1px 0 rgba(255,255,255,.09),
        inset 0 -10px 25px rgba(0,0,0,.5);
}

#screen6 .turntable-body::before {
    content: "";

    position: absolute;

    inset: 12px;

    border:
        1px solid
        rgba(255,255,255,.05);

    border-radius: 4px;
}


/* record */

#screen6 .record {
    position: absolute;

    left: 9%;
    top: 12%;

    width: 63%;
    aspect-ratio: 1;

    border-radius: 50%;

    background:
        repeating-radial-gradient(
            circle,
            #050505 0 2px,
            #111 3px 4px
        );

    box-shadow:
        0 10px 20px rgba(0,0,0,.5);

    animation:
        recordSpin
        4s
        linear
        infinite;
}

@keyframes recordSpin {
    to {
        transform: rotate(360deg);
    }
}

#screen6 .record-lines {
    position: absolute;
    inset: 7%;

    border-radius: 50%;

    border:
        1px solid
        rgba(255,255,255,.05);
}

#screen6 .record-centre {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 6px;
    height: 6px;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background: #111;
}


/* controls */

#screen6 .turntable-controls {
    position: absolute;

    right: 7%;
    bottom: 15%;

    display: flex;
    gap: 7px;
}

#screen6 .turntable-controls span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #555;
}


/* =========================================================
   ENDING
========================================================= */

#screen6 .music-ending {
    position: relative;

    z-index: 10;

    width: min(430px, 90vw);

    margin-top: 80px;

    text-align: center;
}

#screen6 .music-ending p {
    color: rgba(255,255,255,.35);

    font-size: 12px;
    line-height: 1.7;
}

#screen6 .music-ending button {
    margin-top: 20px;

    padding: 13px 20px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius: 999px;

    background:
        rgba(255,255,255,.04);

    color: rgba(255,255,255,.72);

    cursor: pointer;

    transition:
        .25s ease;
}

#screen6 .music-ending button:hover {
    background:
        rgba(255,255,255,.08);

    transform:
        translateY(-2px);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    #screen6 .football-message {
        top: 15%;
    }

    #screen6 .football-goal {
        width: 145px;
        height: 90px;
    }

    #screen6 .football-ball {
        font-size: 43px;

        bottom: 14%;
    }

    #screen6 .shot-instruction {
        bottom: 10%;
    }

    #screen6 .memory-string {
        height: 270px;
    }

    #screen6 .string-photo {
        width: 82px;
        height: 105px;

        padding: 5px;
    }

    #screen6 .photo-a {
        left: 2%;
        top: 100px;
    }

    #screen6 .photo-b {
        left: 27%;
        top: 110px;
    }

    #screen6 .photo-c {
        right: 27%;
        top: 108px;
    }

    #screen6 .photo-d {
        right: 2%;
        top: 98px;
    }

    #screen6 .turntable {
        width: 90vw;
        height: 235px;
    }

    #screen6 .turntable-body {
        height: 185px;
    }

}
/* =========================================================
   SCREEN 5 — COOKING / FINISHED STATE FIX
========================================================= */

/* Never allow the completion screen to appear
   while it has the hidden attribute. */

#screen5 #cookingComplete[hidden] {
    display: none !important;
}


/* Finished screen sits independently
   from the cooking world. */

#screen5 .cooking-complete {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    width: min(520px, 90vw);

    text-align: center;

    z-index: 250;
}
/* =========================================================
   SCREEN 6 — HIDE FINAL RESULT UNTIL GAME IS COMPLETE
========================================================= */

#screen6 .shot-result[hidden] {
    display: none !important;
}
#screen6 .shot-intro-main {
    margin: 0 !important;

    font-size: clamp(28px, 5vw, 42px) !important;
    font-weight: 400;

    color: #fff !important;
    letter-spacing: -.02em;

    opacity: 0;
    transform: translateY(12px);
}

#screen6 .shot-transition.show .shot-intro-main {
    animation:
        shotTextIn
        .8s
        ease
        forwards
        .3s;
}

/* =========================================================
   MEMORY PHOTOS — SLOW REVEAL
========================================================= */

#screen6 .string-photo {
    opacity: 0;
    transform:
        translateY(-18px)
        scale(.96);
}

#screen6 .memory-music-room.music-reveal
.string-photo {
    animation:
        photoDropIn
        1s
        cubic-bezier(.2,.8,.2,1)
        forwards;
}

#screen6 .memory-music-room.music-reveal
.photo-a {
    animation-delay: .35s;
}

#screen6 .memory-music-room.music-reveal
.photo-b {
    animation-delay: 1s;
}

#screen6 .memory-music-room.music-reveal
.photo-c {
    animation-delay: 1.65s;
}

#screen6 .memory-music-room.music-reveal
.photo-d {
    animation-delay: 2.3s;
}

@keyframes photoDropIn {

    from {
        opacity: 0;
        transform:
            translateY(-22px)
            scale(.94);
    }

    to {
        opacity: 1;
        transform:
            rotate(var(--photo-rotation))
            translateY(0)
            scale(1);
    }

}
/* =========================================================
   REALISTIC VINYL PLAYER
========================================================= */

#screen6 .turntable {
    width: min(500px, 92vw);
    height: 315px;

    margin: 38px auto 0;

    perspective: 900px;
}

#screen6 .turntable-body {
    width: 100%;
    height: 235px;

    bottom: 0;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #303034 0%,
            #17171a 38%,
            #0b0b0d 100%
        );

    border:
        1px solid
        rgba(255,255,255,.09);

    box-shadow:
        0 30px 70px rgba(0,0,0,.75),
        inset 0 1px 0
        rgba(255,255,255,.1),
        inset 0 -18px 30px
        rgba(0,0,0,.55);
}

/* Inner wooden/plastic deck */

#screen6 .turntable-body::after {
    content: "";

    position: absolute;

    left: 18px;
    right: 18px;
    top: 18px;
    bottom: 18px;

    border-radius: 8px;

    border:
        1px solid
        rgba(255,255,255,.045);

    box-shadow:
        inset 0 0 30px
        rgba(0,0,0,.45);

    pointer-events: none;
}

/* Record */

#screen6 .record {
    left: 7%;
    top: 8%;

    width: 66%;

    background:
        radial-gradient(
            circle at 50% 50%,
            #191919 0 8%,
            transparent 8.5%
        ),
        repeating-radial-gradient(
            circle,
            #050505 0 1px,
            #151515 2px 3px
        );

    box-shadow:
        0 12px 25px
        rgba(0,0,0,.65),
        inset 0 0 0 1px
        rgba(255,255,255,.04);
}

/* subtle shine across vinyl */

#screen6 .record::after {
    content: "";

    position: absolute;

    inset: 0;

    border-radius: 50%;

    background:
        linear-gradient(
            115deg,
            transparent 35%,
            rgba(255,255,255,.08) 48%,
            transparent 58%
        );

    pointer-events: none;
}


/* Centre spindle */

#screen6 .record-centre {
    width: 8px;
    height: 8px;

    background: #d8d8d8;

    box-shadow:
        0 0 0 2px #555,
        0 1px 4px rgba(0,0,0,.8);
}

/* Controls */

#screen6 .turntable-controls span {
    width: 10px;
    height: 10px;

    background:
        radial-gradient(
            circle at 35% 30%,
            #aaa,
            #444 60%,
            #222
        );

    box-shadow:
        0 2px 4px
        rgba(0,0,0,.5);
}
/* MOVE VINYL PLAYER CLOSER TO THE MESSAGE */
#screen6 .turntable {
    margin-top: 8px;
}
/* ==========================================
   HIDDEN L CLUE
========================================== */
#screen6 .hidden-l-clue {
    position: absolute;

    left: 47%;
    top: 105px;

    width: 48px;
    height: 36px;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;

    z-index: 15;

    transform: rotate(-7deg);
}

#screen6 .l-paper-peek {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 30px;

    background:
        linear-gradient(
            145deg,
            #f0e5d3,
            #d7c5a8
        );

    color: #29231d;

    font-family:
        Georgia,
        serif;

    font-size: 18px;

    box-shadow:
        0 6px 14px
        rgba(0,0,0,.45);

    transition:
        transform .25s ease;
}

#screen6 .hidden-l-clue:hover .l-paper-peek {
    transform:
        translateY(-4px);
}
/* ==========================================
   L VIEWER
========================================== */

#screen6 .l-clue-viewer {
    position: fixed;
    inset: 0;

    z-index: 500;

    display: grid;
    place-items: center;

    background:
        rgba(0,0,0,.82);

    backdrop-filter: blur(12px);
}

#screen6 .l-clue-viewer[hidden] {
    display: none !important;
}

#screen6 .l-clue-close {
    position: absolute;

    top: 25px;
    right: 25px;

    width: 40px;
    height: 40px;

    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;

    background: rgba(255,255,255,.05);
    color: white;

    font-size: 23px;
    cursor: pointer;
}

#screen6 .l-clue-paper {
    width: min(78vw, 310px);
    min-height: 360px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 20px;

    background: #eee4d4;
    color: #141414;

    box-shadow:
        0 30px 80px rgba(0,0,0,.5);

    transform: rotate(-2deg);
}

#screen6 .l-letter {
    font-size: 100px;
    font-family: Georgia, serif;
}

#screen6 .l-note {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 16px;
}

/* =========================================================
   FINAL VINYL LABEL FIX
========================================================= */

#screen6 .record {
    overflow: hidden;
}

#screen6 .record-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    width: 30%;
    aspect-ratio: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    z-index: 20;

    text-align: center;
    border-radius: 50%;

    color: #fff;
}

#screen6 .record-label strong {
    display: block;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 10px;
    line-height: 1.1;

    color: #fff;

    white-space: nowrap;
}

#screen6 .record-label span {
    display: block;

    margin-top: 2px;

    font-family:
        Arial,
        sans-serif;

    font-size: 5.5px;
    line-height: 1;

    color: rgba(255,255,255,.7);

    white-space: nowrap;
}
/* =========================================================
   MOVING GOAL
========================================================= */

#screen6 .football-goal {
    animation:
        goalMove
        3.8s
        ease-in-out
        infinite alternate;
}


/*
   Move the goal far enough that
   being slightly off actually causes
   a miss.
*/

@keyframes goalMove {

    0% {
        left: 22%;
    }

    25% {
        left: 38%;
    }

    50% {
        left: 50%;
    }

    75% {
        left: 64%;
    }

    100% {
        left: 78%;
    }

}
/* =========================================================
   TIGHTER SCORING WINDOW
========================================================= */

#screen6 .goal-net {
    overflow: hidden;
}
/* =========================================================
   FINAL L CLUE POSITION
   tucked underneath the last hanging photo
========================================================= */

#screen6 .hidden-l-clue {
    position: absolute;

    right: 6%;
    left: auto;
    top: 205px;

    width: 48px;
    height: 36px;

    padding: 0;

    border: 0;
    background: transparent;

    cursor: pointer;

    z-index: 8;

    transform: rotate(5deg);
}

#screen6 .l-paper-peek {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 30px;

    background:
        linear-gradient(
            145deg,
            #f0e5d3,
            #d7c5a8
        );

    color: #29231d;

    font-family:
        Georgia,
        serif;

    font-size: 18px;

    box-shadow:
        0 6px 14px
        rgba(0,0,0,.45);

    transition:
        transform .25s ease;
}

#screen6 .hidden-l-clue:hover .l-paper-peek {
    transform:
        translateY(-4px);
}
#screen6 .football-ball.shooting {
    animation:
        shootBallNew
        .75s
        cubic-bezier(.2,.8,.2,1)
        forwards !important;
}

@keyframes shootBallNew {
    0% {
        transform:
            translateX(-50%)
            translateY(0)
            rotate(0deg);
    }

    55% {
        transform:
            translateX(-50%)
            translateY(-220px)
            rotate(300deg);
    }

    100% {
        transform:
            translateX(-50%)
            translateY(-300px)
            rotate(520deg);
    }
}
/* =========================================================
   TONE ARM — FINAL CONNECTED POSITION
   ========================================================= */

#screen6 .tone-arm {
    position: absolute !important;

    /*
       Pivot location:
       upper-right of the turntable
    */
    right: 20% !important;
    top: 50% !important;

    width: 130px !important;
    height: 140px !important;

    z-index: 100 !important;
    pointer-events: none;
}


/* =========================
   PIVOT
   ========================= */

#screen6 .tone-arm-base {
    position: absolute !important;

    right: 0 !important;
    top: 0 !important;

    width: 28px !important;
    height: 28px !important;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 30%,
            #e5e5e5 0%,
            #999 40%,
            #444 75%,
            #222 100%
        );

    box-shadow:
        0 3px 8px rgba(0,0,0,.7),
        inset 0 1px 2px rgba(255,255,255,.35);

    z-index: 3;
}


/* =========================
   ARM
   ========================= */

#screen6 .tone-arm-stick {
    position: absolute !important;

    right: 13px !important;
    top: 17px !important;

    width: 105px !important;
    height: 5px !important;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #777,
            #f1f1f1 50%,
            #888
        );

    box-shadow:
        0 2px 5px rgba(0,0,0,.75);

    transform:
        rotate(135deg) !important;

    transform-origin:
        right center !important;

    z-index: 2;
}


/* =========================
   CARTRIDGE
   ========================= */

#screen6 .tone-arm-head {
    position: absolute !important;

    /*
       This is the end of the arm.
       Put it directly where the
       diagonal stick finishes.
    */
    left: 45px !important;
    top: 55px !important;

    width: 25px !important;
    height: 18px !important;

    border-radius:
        3px 3px 5px 5px;

    background:
        linear-gradient(
            145deg,
            #999,
            #292929
        );

    border:
        1px solid
        rgba(255,255,255,.16);

    box-shadow:
        0 3px 6px
        rgba(0,0,0,.7);

    transform:
        rotate(-12deg) !important;

    z-index: 4;
}


/* =========================
   NEEDLE
   ========================= */

#screen6 .tone-arm-head::after {
    content: "";

    position: absolute;

    left: px;
    bottom: -7px;

    width: 2px;
    height: 10px;

    background: #eee;

    transform:
        rotate(-8deg);

    box-shadow:
        0 1px 2px
        rgba(0,0,0,.7);
}
/* MOVE THE TURNTABLE UP */
#screen6 .turntable {
    transform: translateY(-35px);
}

/* =========================================================
   SCREEN 7 — THE MAP
========================================================= */

.map-screen {
    position: relative;
    min-height: 100svh;
    padding: 28px 22px 90px;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(115, 12, 30, .22),
            transparent 48%
        ),
        radial-gradient(
            circle at 15% 20%,
            rgba(42, 55, 105, .16),
            transparent 30%
        ),
        #07080b;

    color: #fff;
    overflow-x: hidden;
    isolation: isolate;
}


/* ---------------------------------------------------------
   TOP BAR
--------------------------------------------------------- */

.map-topbar {
    width: min(100%, 1050px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.map-back {
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.48);

    font-family:
        Arial,
        sans-serif;

    font-size: 11px;
    letter-spacing: .08em;

    cursor: pointer;

    transition:
        color .25s ease,
        transform .25s ease;
}

.map-back:hover {
    color: #fff;
    transform: translateX(-3px);
}

.map-label {
    font-size: 10px;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: rgba(255,255,255,.3);
}

.map-label span {
    color: rgba(255,255,255,.7);
}

.map-dots {
    display: flex;
    gap: 5px;
}

.map-dots span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
}

.map-dots span:nth-child(2) {
    background: #d71920;
}


/* ---------------------------------------------------------
   INTRO
--------------------------------------------------------- */

.map-intro {
    position: relative;
    z-index: 5;

    max-width: 620px;
    margin: 58px auto 25px;

    text-align: center;
}

.map-kicker {
    display: block;

    margin-bottom: 14px;

    font-family:
        Arial,
        sans-serif;

    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;

    color: rgba(255,255,255,.36);
}

.map-intro h1 {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(34px, 6vw, 58px);

    line-height: 1.02;
    font-weight: 400;
    letter-spacing: -.045em;
}

.map-intro h1 em {
    color: #e52a32;
    font-style: italic;
}

.map-intro p {
    margin: 15px 0 0;

    font-family:
        Arial,
        sans-serif;

    font-size: 12px;
    color: rgba(255,255,255,.42);

    letter-spacing: .04em;
}


/* ---------------------------------------------------------
   MAP
--------------------------------------------------------- */

.memory-map {
    position: relative;

    width: min(94vw, 980px);
    height: min(68vw, 620px);
    min-height: 500px;

    margin: 0 auto;

    border:
        1px solid
        rgba(255,255,255,.07);

    border-radius: 30px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(255,255,255,.035),
            transparent 55%
        ),
        linear-gradient(
            135deg,
            rgba(18,20,28,.96),
            rgba(9,10,14,.98)
        );

    box-shadow:
        0 35px 100px rgba(0,0,0,.55),
        inset 0 1px 0 rgba(255,255,255,.04);
}


/* subtle map texture */

.memory-map::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.025) 1px,
            transparent 1px
        );

    background-size:
        48px 48px;

    opacity: .25;
    pointer-events: none;
}


/* warm centre glow */

.map-glow {
    position: absolute;

    width: 430px;
    height: 430px;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(185,25,42,.13),
            transparent 68%
        );

    filter: blur(10px);

    pointer-events: none;
}


/* ---------------------------------------------------------
   ROADS
--------------------------------------------------------- */

.map-roads {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    opacity: .7;

    pointer-events: none;
}

.map-roads path {
    fill: none;

    stroke:
        rgba(255,255,255,.12);

    stroke-width: 3;

    stroke-linecap: round;

    stroke-dasharray: 9 12;
}

.map-roads path:nth-child(2) {
    stroke:
        rgba(215,25,32,.12);

    stroke-width: 2;
}

.map-roads path:nth-child(3) {
    stroke:
        rgba(255,255,255,.07);

    stroke-width: 7;
    stroke-dasharray: none;
}


/* ---------------------------------------------------------
   LITTLE MAP DOTS
--------------------------------------------------------- */

.map-road-dot {
    position: absolute;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.2);

    box-shadow:
        0 0 12px rgba(255,255,255,.08);
}

.dot-a {
    left: 17%;
    top: 28%;
}

.dot-b {
    left: 52%;
    top: 18%;
}

.dot-c {
    left: 68%;
    top: 61%;
}

.dot-d {
    left: 30%;
    top: 78%;
}


/* ---------------------------------------------------------
   MEMORY LOCATIONS
--------------------------------------------------------- */

.map-memory {
    position: absolute;

    width: 145px;

    padding: 0;

    border: 0;
    background: transparent;

    color: #fff;

    cursor: pointer;

    text-align: left;

    z-index: 10;

    transition:
        transform .35s cubic-bezier(.2,.8,.2,1);
}

.map-memory:hover {
    transform:
        translateY(-8px)
        rotate(-1deg);
}

.map-photo {
    display: block;

    width: 115px;
    height: 115px;

    padding: 6px;

    background:
        #eee9e2;

    box-shadow:
        0 20px 35px rgba(0,0,0,.45);

    transform:
        rotate(-4deg);

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.map-photo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.map-memory:hover .map-photo {
    transform:
        rotate(0deg)
        scale(1.04);

    box-shadow:
        0 28px 50px rgba(0,0,0,.58);
}


/* pin */

.map-pin {
    position: absolute;

    left: 88px;
    top: 91px;

    width: 21px;
    height: 21px;

    border-radius: 50% 50% 50% 0;

    background:
        #d71920;

    transform:
        rotate(-45deg);

    box-shadow:
        0 7px 18px rgba(0,0,0,.45);

    z-index: 5;
}

.map-pin i {
    position: absolute;

    width: 7px;
    height: 7px;

    left: 7px;
    top: 7px;

    border-radius: 50%;

    background:
        #fff;
}

.map-place {
    display: block;

    margin-top: 16px;

    padding-left: 3px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 14px;

    color:
        rgba(255,255,255,.72);
}

.map-memory:nth-of-type(even) .map-place {
    font-style: italic;
}


/* locations */

.memory-one {
    left: 8%;
    top: 16%;
    transform: rotate(-3deg);
}

.memory-two {
    left: 37%;
    top: 7%;
    transform: rotate(4deg);
}

.memory-three {
    right: 7%;
    top: 20%;
    transform: rotate(-5deg);
}

.memory-four {
    left: 19%;
    bottom: 8%;
    transform: rotate(5deg);
}

.memory-five {
    right: 20%;
    bottom: 7%;
    transform: rotate(-4deg);
}


/* ---------------------------------------------------------
   COMPASS
--------------------------------------------------------- */

.map-compass {
    position: absolute;

    right: 4%;
    bottom: 4%;

    width: 82px;
    height: 82px;

    border:
        1px solid
        rgba(255,255,255,.09);

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color:
        rgba(255,255,255,.35);

    font-family:
        Arial,
        sans-serif;

    font-size: 10px;

    opacity: .7;
}

.map-compass > span {
    position: absolute;
    top: 8px;

    font-size: 9px;
    letter-spacing: .15em;
}

.map-compass small {
    position: absolute;
    bottom: 8px;

    font-size: 7px;
    letter-spacing: .12em;

    text-transform: uppercase;
}

.compass-arrow {
    width: 1px;
    height: 28px;

    background:
        rgba(215,25,32,.7);

    transform:
        rotate(38deg);
}


/* ---------------------------------------------------------
   LITTLE J + HEART + A STAMP
--------------------------------------------------------- */

.map-stamp {
    position: absolute;

    left: 4%;
    bottom: 5%;

    display: flex;
    gap: 7px;

    font-family:
        Georgia,
        serif;

    font-size: 10px;

    color:
        rgba(255,255,255,.2);

    transform:
        rotate(-8deg);
}

.map-stamp span:nth-child(2) {
    color:
        rgba(215,25,32,.5);
}


/* ---------------------------------------------------------
   HIDDEN I
--------------------------------------------------------- */

.hidden-i-clue {
    position: absolute;

    right: 36%;
    top: 48%;

    width: 24px;
    height: 31px;

    padding: 0;

    border: 0;

    background:
        #e9dfcf;

    transform:
        rotate(8deg);

    box-shadow:
        0 8px 18px rgba(0,0,0,.35);

    cursor: pointer;

    z-index: 8;

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.hidden-i-clue::before {
    content: "";

    position: absolute;

    left: -3px;
    top: -2px;

    width: 9px;
    height: 9px;

    border-radius: 50%;

    background:
        #b51d27;

    opacity: .7;
}

.i-paper-peek {
    display: block;

    padding-top: 7px;

    font-family:
        Georgia,
        serif;

    font-size: 12px;

    color:
        rgba(30,25,25,.65);

    opacity: .72;
}

.hidden-i-clue:hover {
    transform:
        rotate(3deg)
        translateY(-3px);

    box-shadow:
        0 14px 25px rgba(0,0,0,.48);
}


/* ---------------------------------------------------------
   BOTTOM
--------------------------------------------------------- */

.map-bottom {
    position: relative;
    z-index: 5;

    width: min(100%, 580px);

    margin: 35px auto 0;

    text-align: center;
}

.map-bottom p {
    margin: 0 auto 18px;

    max-width: 460px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 16px;
    line-height: 1.6;

    color:
        rgba(255,255,255,.52);
}

#continueFromMap {
    border: 0;

    padding: 13px 19px;

    border-radius: 999px;

    background:
        rgba(255,255,255,.055);

    color:
        rgba(255,255,255,.78);

    font-family:
        Arial,
        sans-serif;

    font-size: 11px;

    letter-spacing: .04em;

    cursor: pointer;

    transition:
        background .25s ease,
        transform .25s ease;
}

#continueFromMap:hover {
    background:
        rgba(215,25,32,.15);

    transform:
        translateY(-2px);
}


/* ---------------------------------------------------------
   MEMORY VIEWER
--------------------------------------------------------- */

.map-memory-viewer {
    position: fixed;

    inset: 0;

    z-index: 500;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;

    background:
        rgba(3,4,7,.82);

    backdrop-filter:
        blur(16px);

    overflow-y: auto;
}

.map-memory-viewer[hidden] {
    display: none;
}

.map-viewer-close {
    position: fixed;

    top: 25px;
    right: 25px;

    width: 38px;
    height: 38px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius: 50%;

    background:
        rgba(255,255,255,.05);

    color: #fff;

    font-size: 20px;

    cursor: pointer;

    z-index: 10;
}

.map-memory-card {
    width: min(92vw, 460px);

    padding: 10px 10px 26px;

    text-align: center;

    animation:
        mapMemoryIn
        .45s
        cubic-bezier(.2,.8,.2,1)
        both;
}

.map-viewer-photo {
    width: 100%;

    aspect-ratio: 1 / 1;

    padding: 9px;

    background:
        #eee9e2;

    box-shadow:
        0 30px 70px rgba(0,0,0,.55);

    transform:
        rotate(-2deg);
}

.map-viewer-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.map-memory-card > span {
    display: block;

    margin-top: 25px;

    font-family:
        Arial,
        sans-serif;

    font-size: 9px;

    letter-spacing: .2em;

    text-transform: uppercase;

    color:
        rgba(255,255,255,.35);
}

.map-memory-card h2 {
    margin: 9px 0 0;

    font-family:
        Georgia,
        serif;

    font-size: 29px;
    font-weight: 400;
}

.map-memory-card p {
    margin: 11px auto 0;

    max-width: 360px;

    font-family:
        Georgia,
        serif;

    font-size: 15px;
    line-height: 1.6;

    color:
        rgba(255,255,255,.58);
}

@keyframes mapMemoryIn {

    from {
        opacity: 0;
        transform:
            translateY(18px)
            scale(.96);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }

}


/* ---------------------------------------------------------
   I VIEWER
--------------------------------------------------------- */

.i-clue-viewer {
    position: fixed;

    inset: 0;

    z-index: 600;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;

    background:
        rgba(3,4,7,.88);

    backdrop-filter:
        blur(18px);
}

.i-clue-viewer[hidden] {
    display: none;
}

.i-clue-close {
    position: fixed;

    top: 25px;
    right: 25px;

    width: 38px;
    height: 38px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius: 50%;

    background:
        rgba(255,255,255,.05);

    color: #fff;

    font-size: 20px;

    cursor: pointer;
}

.i-clue-paper {
    position: relative;

    width: min(82vw, 330px);
    aspect-ratio: .76;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #f4e9d8,
            #dfd0bc
        );

    color: #171414;

    box-shadow:
        0 30px 90px rgba(0,0,0,.6);

    transform:
        rotate(-3deg);

    animation:
        iPaperIn
        .5s
        cubic-bezier(.2,.8,.2,1)
        both;
}

.i-letter {
    font-family:
        Georgia,
        serif;

    font-size: 110px;
    line-height: 1;
}

.i-note {
    margin-top: 12px;

    font-family:
        Georgia,
        serif;

    font-size: 15px;

    font-style: italic;

    color:
        rgba(20,17,17,.55);
}

@keyframes iPaperIn {

    from {
        opacity: 0;
        transform:
            rotate(-8deg)
            scale(.88);
    }

    to {
        opacity: 1;
        transform:
            rotate(-3deg)
            scale(1);
    }

}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 700px) {

    .map-screen {
        padding:
            20px
            18px
            70px;
    }

    .map-topbar {
        gap: 8px;
    }

    .map-label {
        font-size: 8px;
        letter-spacing: .12em;
    }

    .map-intro {
        margin-top: 42px;
    }

    .map-intro h1 {
        font-size: 37px;
    }

    .map-intro p {
        font-size: 11px;
    }

    .memory-map {
        width: 100%;
        height: 620px;
        min-height: 620px;

        border-radius: 24px;
    }

    .map-memory {
        width: 105px;
    }

    .map-photo {
        width: 83px;
        height: 83px;
        padding: 5px;
    }

    .map-pin {
        left: 65px;
        top: 65px;

        width: 17px;
        height: 17px;
    }

    .map-pin i {
        width: 5px;
        height: 5px;

        left: 6px;
        top: 6px;
    }

    .map-place {
        margin-top: 12px;
        font-size: 11px;
        max-width: 100px;
    }

    .memory-one {
        left: 7%;
        top: 13%;
    }

    .memory-two {
        left: 39%;
        top: 6%;
    }

    .memory-three {
        right: 5%;
        top: 28%;
    }

    .memory-four {
        left: 12%;
        bottom: 14%;
    }

    .memory-five {
        right: 12%;
        bottom: 7%;
    }

    .hidden-i-clue {
        right: 35%;
        top: 53%;
    }

    .map-compass {
        width: 65px;
        height: 65px;
        right: 4%;
        bottom: 3%;
    }

    .map-stamp {
        left: 5%;
        bottom: 4%;
    }

    .map-bottom {
        margin-top: 27px;
    }

    .map-bottom p {
        font-size: 14px;
    }

}
/* =========================================================
   SCREEN 8 — FINAL MYSTERY
   ROMANTIC TRAVEL PAPER
========================================================= */

#screen8.final-mystery-screen {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 18% 20%,
            rgba(120, 62, 45, .12),
            transparent 30%
        ),
        radial-gradient(
            circle at 82% 80%,
            rgba(145, 55, 42, .10),
            transparent 32%
        ),
        #090807;

    color: #201b17;
    overflow: hidden;
}


#screen8 .final-room {
    position: relative;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 80px 30px;
}


/* =========================================================
   SUBTLE ROOM TEXTURE
========================================================= */

#screen8 .final-room::before {
    content: "";
    position: fixed;
    inset: 0;

    pointer-events: none;

    opacity: .16;

    background-image:
        radial-gradient(
            rgba(255,255,255,.08) 1px,
            transparent 1px
        );

    background-size: 4px 4px;

    mix-blend-mode: soft-light;
}


/* =========================================================
   BACK BUTTON
========================================================= */

#screen8 .final-back {
    position: fixed;

    top: 34px;
    left: 46px;

    z-index: 100;

    border: 0;
    background: none;

    color: rgba(236,218,190,.72);

    font-family: Georgia, serif;
    font-size: 14px;
    letter-spacing: .18em;

    cursor: pointer;

    transition:
        color .25s ease,
        transform .25s ease;
}

#screen8 .final-back:hover {
    color: #fff4df;
    transform: translateX(-4px);
}


/* =========================================================
   TOP RIGHT NOTE
========================================================= */

#screen8 .final-corner-note {
    position: fixed;

    top: 35px;
    right: 46px;

    z-index: 20;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;

    color: rgba(231,207,175,.55);

    font-size: 9px;
    letter-spacing: .28em;
    text-transform: uppercase;
}

#screen8 .final-corner-note i {
    font-style: normal;
    font-size: 17px;
    margin-top: 4px;
}


/* =========================================================
   PAPER STACK
========================================================= */

#screen8 .final-paper-stack {
    position: relative;

    width: min(940px, 90vw);
    min-height: 760px;

    perspective: 1200px;
}


/* papers underneath */

#screen8 .paper-under {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            #6e5944,
            #493c31
        );

    box-shadow:
        0 35px 70px rgba(0,0,0,.55);
}

#screen8 .paper-under-one {
    transform:
        rotate(-2.2deg)
        translate(-18px, 16px);
    opacity: .55;
}

#screen8 .paper-under-two {
    transform:
        rotate(1.7deg)
        translate(15px, 10px);
    opacity: .45;
}


/* =========================================================
   MAIN PAPER
========================================================= */

#screen8 .final-paper {
    position: relative;

    min-height: 760px;

    overflow: visible;

    padding:
        58px
        90px
        70px;

    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(130,92,55,.08),
            transparent 30%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(110,70,45,.07),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #eee0c8,
            #e7d6b9
        );

    box-shadow:
        0 35px 70px rgba(0,0,0,.58),
        inset 0 0 80px rgba(80,50,25,.12);

    transform:
        rotate(-.7deg);
}


/* paper grain */

#screen8 .final-paper::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    opacity: .20;

    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(60,40,20,.035) 0,
            rgba(60,40,20,.035) 1px,
            transparent 1px,
            transparent 4px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,.04) 0,
            rgba(255,255,255,.04) 1px,
            transparent 1px,
            transparent 5px
        );
}


/* slightly irregular edge */

#screen8 .final-paper::after {
    content: "";

    position: absolute;
    inset: 9px;

    border:
        1px solid
        rgba(93,66,39,.16);

    pointer-events: none;
}


/* =========================================================
   PAPER TOPLINE
========================================================= */

#screen8 .paper-topline {
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;

    color: #665441;

    font-size: 9px;
    letter-spacing: .42em;

    text-align: center;
}

#screen8 .tiny-plane {
    font-size: 18px;
    letter-spacing: 0;
}


/* =========================================================
   MAIN COPY
========================================================= */

#screen8 .final-copy {
    position: relative;

    z-index: 4;

    text-align: center;

    max-width: 650px;

    margin:
        82px
        auto
        0;
}

#screen8 .final-kicker {
    display: block;

    margin-bottom: 20px;

    font-family: Georgia, serif;

    color: #6d5a46;

    font-size: 13px;
    letter-spacing: .16em;
}


#screen8 .final-copy h1 {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(43px, 5.5vw, 70px);

    font-weight: 400;

    line-height: .98;

    letter-spacing: -.045em;

    color: #211d19;
}

#screen8 .final-copy h1 em {
    color: #8e4136;
    font-style: italic;
}


#screen8 .final-before {
    margin:
        35px
        0
        28px;

    font-family: Georgia, serif;

    font-size: 20px;

    color: #3d342c;
}


#screen8 .final-message {
    font-family: Georgia, serif;

    font-size: 15px;

    line-height: 1.7;

    color: #53483d;
}

#screen8 .final-message p {
    margin: 5px 0;
}


#screen8 .final-message .final-emphasis {
    margin-top: 22px;

    color: #302923;
}


#screen8 .final-message .final-hint {
    margin-top: 22px;

    color: #6b5145;

    font-style: italic;
}

#screen8 .final-message .final-hint span {
    color: #91473b;
}


/* =========================================================
   CODE
========================================================= */

#screen8 .final-code-area {
    position: relative;

    z-index: 10;

    display: flex;
    flex-direction: column;
    align-items: center;

    margin-top: 35px;
}


#screen8 .code-label {
    margin-bottom: 13px;

    color: #796552;

    font-family: Georgia, serif;

    font-size: 12px;
    letter-spacing: .16em;
}


#screen8 .code-boxes {
    display: flex;
    gap: 12px;
}


#screen8 .code-letter {
    width: 68px;
    height: 70px;

    border:
        1px solid
        rgba(88,65,42,.25);

    border-radius: 9px;

    background:
        rgba(250,241,224,.52);

    box-shadow:
        inset 0 2px 8px rgba(90,60,35,.05),
        0 2px 8px rgba(70,45,20,.08);

    text-align: center;

    font-family:
        Georgia,
        serif;

    font-size: 34px;

    color: #25201b;

    outline: none;

    text-transform: uppercase;

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

#screen8 .code-letter:focus {
    border-color: #9a584b;

    box-shadow:
        0 0 0 3px rgba(151,73,59,.10);

    transform: translateY(-2px);
}


/* =========================================================
   UNLOCK
========================================================= */

#screen8 .final-unlock {
    margin-top: 25px;

    width: 250px;
    height: 55px;

    border: 0;
    border-radius: 999px;

    background: #211d19;

    color: #eee0c8;

    font-family: Georgia, serif;

    font-size: 15px;

    letter-spacing: .08em;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    box-shadow:
        0 10px 20px rgba(0,0,0,.18);

    transition:
        transform .25s ease,
        background .25s ease;
}

#screen8 .final-unlock:hover {
    transform: translateY(-3px);

    background: #342b24;
}

#screen8 .final-unlock b {
    font-size: 18px;
    font-weight: 400;
}


/* error */

#screen8 .code-error {
    margin: 12px 0 0;

    color: #93483d;

    font-family: Georgia, serif;

    font-size: 12px;

    opacity: 0;

    transform: translateY(-4px);

    transition:
        opacity .3s ease,
        transform .3s ease;
}

#screen8 .code-error.show {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   GLOBE ORNAMENTS
========================================================= */

#screen8 .photo-globe {
    position: absolute;

    z-index: 20;

    width: 175px;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* string */

#screen8 .globe-string {
    position: absolute;

    width: 2px;

    background:
        linear-gradient(
            to bottom,
            #806038,
            #b18a55,
            #64472b
        );

    top: -170px;

    left: 50%;

    height: 170px;

    transform: translateX(-50%);
}


/* cap */

#screen8 .globe-cap {
    width: 35px;
    height: 15px;

    border-radius: 4px 4px 2px 2px;

    background:
        linear-gradient(
            #c49a55,
            #725025
        );

    position: relative;

    z-index: 4;

    box-shadow:
        0 3px 6px rgba(0,0,0,.25);
}

#screen8 .globe-cap span {
    position: absolute;

    width: 13px;
    height: 7px;

    border: 2px solid #bd914f;
    border-bottom: 0;

    border-radius: 8px 8px 0 0;

    left: 50%;
    top: -7px;

    transform: translateX(-50%);
}


/* globe */

#screen8 .globe-glass {
    position: relative;

    width: 138px;
    height: 138px;

    margin-top: -2px;

    border-radius: 50%;

    overflow: hidden;

    border:
        3px solid
        rgba(209,183,139,.72);

    background: rgba(255,255,255,.08);

    box-shadow:
        inset -15px -15px 30px rgba(0,0,0,.35),
        inset 10px 8px 20px rgba(255,255,255,.15),
        0 15px 25px rgba(0,0,0,.32);
}

#screen8 .globe-glass img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    filter:
        saturate(.82)
        contrast(1.02)
        brightness(.82);
}


/* glass shine */

#screen8 .globe-shine {
    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            125deg,
            rgba(255,255,255,.38),
            transparent 28%,
            transparent 70%,
            rgba(255,255,255,.08)
        );

    border-radius: 50%;
}


/* globe tag */

#screen8 .globe-tag {
    position: absolute;

    right: -70px;
    top: 105px;

    width: 95px;

    padding: 13px 10px;

    background: #dfceb0;

    color: #554638;

    transform: rotate(8deg);

    box-shadow:
        0 7px 12px rgba(0,0,0,.16);

    font-family: Georgia, serif;

    font-size: 9px;

    line-height: 1.45;

    text-transform: uppercase;

    letter-spacing: .08em;

    text-align: center;
}

#screen8 .globe-tag::before {
    content: "";

    position: absolute;

    width: 1px;
    height: 27px;

    background: #7e6040;

    top: -27px;
    left: 50%;
}

#screen8 .globe-tag b {
    display: block;

    margin-top: 4px;

    font-size: 11px;

    color: #8b4439;
}


/* TOP LEFT */

#screen8 .globe-top {
    left: -45px;
    top: 25px;

    transform: rotate(-4deg);
}


/* BOTTOM RIGHT */

#screen8 .globe-bottom {
    right: -50px;
    bottom: 10px;

    transform: rotate(5deg);
}

#screen8 .globe-bottom .globe-string {
    top: auto;
    bottom: 110px;

    height: 175px;
}

#screen8 .globe-bottom .globe-tag {
    right: auto;
    left: 105px;

    top: 110px;

    transform: rotate(-7deg);
}


/* =========================================================
   POSTCARD
========================================================= */

#screen8 .mini-postcard {
    position: absolute;

    right: 45px;
    top: 65px;

    width: 125px;
    height: 150px;

    background: #dfceb0;

    padding: 8px;

    transform: rotate(4deg);

    box-shadow:
        0 8px 16px rgba(50,30,15,.18);

    z-index: 3;
}

#screen8 .postcard-image {
    height: 84px;

    background:
        linear-gradient(
            180deg,
            #b8a487,
            #87735b
        );

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    color: #f4ead8;

    text-align: center;

    font-family: Georgia, serif;
}

#screen8 .postcard-image span {
    font-size: 18px;
}

#screen8 .postcard-image strong {
    font-size: 20px;
    letter-spacing: .12em;
}

#screen8 .postcard-image small {
    font-size: 8px;
    letter-spacing: .1em;
}

#screen8 .postcard-lines {
    padding-top: 13px;
}

#screen8 .postcard-lines span {
    display: block;

    height: 1px;

    background: rgba(70,50,30,.22);

    margin-bottom: 10px;
}


/* =========================================================
   DECORATIVE FLOWER
========================================================= */

#screen8 .paper-flower {
    position: absolute;

    left: 30px;
    bottom: 45px;

    width: 100px;
    height: 90px;

    transform: rotate(-12deg);

    z-index: 4;
}

#screen8 .paper-flower span {
    position: absolute;

    width: 44px;
    height: 68px;

    border-radius: 70% 30% 70% 30%;

    background:
        linear-gradient(
            135deg,
            #ad7664,
            #d39c86
        );

    transform-origin: bottom center;
}

#screen8 .paper-flower span:nth-child(1) {
    left: 28px;
    top: 0;
    transform: rotate(0deg);
}

#screen8 .paper-flower span:nth-child(2) {
    left: 4px;
    top: 22px;
    transform: rotate(-48deg);
}

#screen8 .paper-flower span:nth-child(3) {
    right: 3px;
    top: 22px;
    transform: rotate(48deg);
}

#screen8 .paper-flower i {
    position: absolute;

    width: 15px;
    height: 15px;

    background: #9b604d;

    border-radius: 50%;

    left: 43px;
    top: 40px;
}


/* =========================================================
   HANDWRITING
========================================================= */

#screen8 .paper-handwriting {
    position: absolute;

    left: 55px;
    bottom: 35px;

    font-family: "Brush Script MT", cursive;

    font-size: 22px;

    line-height: 1.05;

    color: #665348;

    transform: rotate(-8deg);

    z-index: 5;
}


/* =========================================================
   STAMP
========================================================= */

#screen8 .paper-stamp {
    position: absolute;

    left: 35px;
    top: 290px;

    display: flex;
    flex-direction: column;

    color: #775d43;

    font-size: 8px;

    letter-spacing: .23em;

    transform: rotate(-8deg);

    opacity: .75;
}

#screen8 .paper-stamp strong {
    font-size: 15px;
    margin: 3px 0;
}


/* =========================================================
   BOTTOM PAPER DETAILS
========================================================= */

#screen8 .paper-bottom-line {
    position: absolute;

    bottom: 70px;

    left: 50%;

    width: 45px;
    height: 1px;

    background: rgba(76,56,36,.35);

    transform: translateX(-50%);
}

#screen8 .paper-bottom-copy {
    position: absolute;

    bottom: 46px;

    left: 50%;

    transform: translateX(-50%);

    color: #75624f;

    font-size: 8px;

    letter-spacing: .32em;

    white-space: nowrap;
}

#screen8 .paper-heart {
    position: absolute;

    bottom: 17px;
    left: 50%;

    transform: translateX(-50%);

    color: #7d4037;

    font-size: 18px;
}


/* =========================================================
   BALI REVEAL
========================================================= */

#screen8 .bali-reveal {
    position: absolute;

    inset: 0;

    z-index: 60;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        rgba(20,16,12,.78);

    backdrop-filter: blur(5px);

    animation:
        revealBali
        .8s
        ease
        both;
}

@keyframes revealBali {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


#screen8 .bali-ticket {
    display: flex;

    width: min(700px, 85%);

    min-height: 260px;

    background:
        linear-gradient(
            135deg,
            #f0dfbd,
            #dfc79f
        );

    box-shadow:
        0 30px 60px rgba(0,0,0,.45);

    transform:
        rotate(-1.5deg);

    animation:
        ticketEnter
        .8s
        cubic-bezier(.2,.8,.2,1)
        both;
}

@keyframes ticketEnter {

    from {
        opacity: 0;
        transform:
            translateY(30px)
            rotate(-4deg)
            scale(.92);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            rotate(-1.5deg)
            scale(1);
    }
}


#screen8 .ticket-main {
    flex: 1;

    padding: 35px 40px;
}

#screen8 .ticket-brand {
    font-size: 9px;

    letter-spacing: .32em;

    color: #735c46;
}


#screen8 .ticket-heading {
    margin-top: 30px;

    display: flex;
    flex-direction: column;
}

#screen8 .ticket-heading span {
    font-size: 9px;

    letter-spacing: .25em;

    color: #735c46;
}

#screen8 .ticket-heading strong {
    margin-top: 5px;

    font-family: Georgia, serif;

    font-size: 58px;

    font-weight: 400;

    letter-spacing: .03em;

    color: #29231d;
}


#screen8 .ticket-route {
    display: flex;
    align-items: center;

    gap: 22px;

    margin-top: 25px;
}

#screen8 .ticket-route div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#screen8 .ticket-route small,
#screen8 .ticket-details small {
    font-size: 7px;

    letter-spacing: .18em;

    color: #806b55;
}

#screen8 .ticket-route strong {
    font-family: Georgia, serif;

    font-size: 19px;

    font-weight: 400;
}

#screen8 .route-line {
    flex: 1;

    text-align: center;

    color: #93483d;

    font-size: 20px;
}


#screen8 .ticket-details {
    display: flex;

    gap: 50px;

    margin-top: 27px;
}

#screen8 .ticket-details div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#screen8 .ticket-details strong {
    font-size: 10px;

    letter-spacing: .1em;

    color: #3e352d;
}


/* ticket stub */

#screen8 .ticket-stub {
    width: 145px;

    border-left:
        2px dashed
        rgba(80,55,30,.25);

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 12px;

    color: #705a43;
}

#screen8 .ticket-stub span {
    font-size: 8px;

    letter-spacing: .22em;
}

#screen8 .ticket-stub strong {
    font-family: Georgia, serif;

    font-size: 27px;

    font-weight: 400;

    color: #2d261f;
}

#screen8 .ticket-stub small {
    font-size: 20px;

    color: #91483d;
}


#screen8 .ticket-note {
    position: absolute;

    bottom: 90px;

    left: 50%;

    transform: translateX(-50%);

    color: #eadbc4;

    font-family: Georgia, serif;

    font-size: 14px;

    font-style: italic;

    white-space: nowrap;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    #screen8 .final-room {
        padding:
            70px
            12px
            40px;
    }

    #screen8 .final-paper-stack {
        width: 94vw;
        min-height: 760px;
    }

    #screen8 .final-paper {
        min-height: 760px;

        padding:
            40px
            22px
            55px;
    }

    #screen8 .final-back {
        top: 20px;
        left: 18px;

        font-size: 11px;
    }

    #screen8 .final-corner-note {
        display: none;
    }

    #screen8 .paper-topline {
        font-size: 7px;
        letter-spacing: .25em;
    }

    #screen8 .final-copy {
        margin-top: 70px;
    }

    #screen8 .final-kicker {
        font-size: 10px;
    }

    #screen8 .final-copy h1 {
        font-size: 39px;
        line-height: 1;
    }

    #screen8 .final-before {
        font-size: 17px;
        margin-top: 28px;
    }

    #screen8 .final-message {
        font-size: 13px;
        line-height: 1.6;
    }

    #screen8 .code-letter {
        width: 54px;
        height: 58px;

        font-size: 28px;
    }

    #screen8 .code-boxes {
        gap: 8px;
    }

    #screen8 .final-unlock {
        width: 205px;
        height: 50px;
    }

    /* make globes smaller */

    #screen8 .photo-globe {
        width: 105px;
    }

    #screen8 .globe-glass {
        width: 92px;
        height: 92px;
    }

    #screen8 .globe-cap {
        width: 27px;
        height: 11px;
    }

    #screen8 .globe-string {
        top: -100px;
        height: 100px;
    }

    #screen8 .globe-tag {
        width: 70px;

        right: -48px;
        top: 70px;

        font-size: 7px;

        padding: 8px 5px;
    }

    #screen8 .globe-top {
        left: -8px;
        top: 18px;
    }

    #screen8 .globe-bottom {
        right: -8px;
        bottom: 5px;
    }

    #screen8 .globe-bottom .globe-string {
        height: 105px;
        bottom: 72px;
    }

    #screen8 .globe-bottom .globe-tag {
        left: 65px;
        top: 70px;
    }

    #screen8 .mini-postcard {
        width: 82px;
        height: 100px;

        right: 18px;
        top: 80px;
    }

    #screen8 .postcard-image {
        height: 54px;
    }

    #screen8 .postcard-image strong {
        font-size: 13px;
    }

    #screen8 .postcard-image small,
    #screen8 .postcard-lines {
        display: none;
    }

    #screen8 .paper-stamp {
        display: none;
    }

    #screen8 .paper-flower {
        left: 15px;
        bottom: 30px;

        transform: scale(.65) rotate(-12deg);
        transform-origin: bottom left;
    }

    #screen8 .paper-handwriting {
        left: 20px;
        bottom: 20px;

        font-size: 15px;
    }

    #screen8 .paper-bottom-copy {
        font-size: 6px;
        letter-spacing: .2em;
    }

    #screen8 .bali-ticket {
        width: 92%;
        min-height: 220px;
    }

    #screen8 .ticket-main {
        padding: 25px 20px;
    }

    #screen8 .ticket-heading {
        margin-top: 20px;
    }

    #screen8 .ticket-heading strong {
        font-size: 42px;
    }

    #screen8 .ticket-route {
        gap: 10px;
    }

    #screen8 .ticket-details {
        gap: 15px;
    }

    #screen8 .ticket-stub {
        width: 75px;
    }

    #screen8 .ticket-stub strong {
        font-size: 20px;
    }

    #screen8 .ticket-note {
        bottom: 45px;

        font-size: 11px;
    }
}
/* =========================================================
   BALI TICKET — HIDDEN UNTIL CODE IS CORRECT
========================================================= */

#screen8 .bali-reveal[hidden] {
    display: none !important;
}

#screen8 .ticket-close {
    position: absolute;

    bottom: 42px;
    left: 50%;

    transform: translateX(-50%);

    border: 0;
    background: none;

    color: rgba(238,224,200,.78);

    font-family: Georgia, serif;
    font-size: 13px;

    letter-spacing: .08em;

    cursor: pointer;

    transition:
        color .25s ease,
        transform .25s ease;
}

#screen8 .ticket-close:hover {
    color: #fff;
    transform:
        translateX(-50%)
        translateY(-3px);
}

@media (max-width: 700px) {

    #screen8 .ticket-close {
        bottom: 20px;
        font-size: 11px;
    }

}
/* =========================================================
   JOURNEY BACK BUTTONS
========================================================= */

.journey-back {
    position: absolute;

    top: 28px;
    left: 32px;

    z-index: 100;

    border: 0;
    background: transparent;

    color: rgba(255,255,255,.45);

    font-family:
        Arial,
        sans-serif;

    font-size: 11px;

    letter-spacing: .08em;

    cursor: pointer;

    transition:
        color .25s ease,
        transform .25s ease;
}

.journey-back:hover {
    color: #fff;
    transform: translateX(-3px);
}


/* SCREEN 4 */

#screen4 .photo-back {
    color: rgba(255,255,255,.45);
}


/* SCREEN 5 */

#screen5 .kitchen-back {
    color: rgba(255,255,255,.55);
}


/* SCREEN 6 */

#screen6 .football-back {
    color: rgba(255,255,255,.55);
}


@media (max-width: 700px) {

    .journey-back {
        top: 18px;
        left: 18px;
        font-size: 10px;
    }

}
/* =========================================================
   BALI TICKET — EXTRA REALISM
========================================================= */

#screen8 .ticket-details {
    flex-wrap: wrap;
    gap: 18px 38px;
}

#screen8 .ticket-details div {
    min-width: 80px;
}

#screen8 .ticket-details small {
    font-family: Arial, sans-serif;
}

#screen8 .ticket-details strong {
    font-family: Arial, sans-serif;
    font-size: 9px;
    letter-spacing: .08em;
    white-space: nowrap;
}

#screen8 .ticket-flight {
    font-family: Arial, sans-serif;
    font-size: 8px;
    letter-spacing: .16em;
    color: #806044;
}
/* =========================================================
   SCREEN 9 — LETTER
========================================================= */

#screen9 {
    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(130,15,25,.16),
            transparent 38%
        ),
        #070607;

    color: #fff;
}


#screen9 .letter-world {
    position: relative;

    min-height: 100svh;

    width: 100%;

    display: flex;
    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding:
        80px
        20px
        70px;

    overflow: visible;
}


/* =========================================================
   BACK
========================================================= */

#screen9 .letter-back {
    position: absolute;

    top: 30px;
    left: 34px;

    border: 0;
    background: transparent;

    color: rgba(255,255,255,.45);

    font-family: Arial, sans-serif;

    font-size: 11px;

    letter-spacing: .08em;

    cursor: pointer;

    transition:
        color .25s ease,
        transform .25s ease;
}

#screen9 .letter-back:hover {
    color: white;
    transform: translateX(-3px);
}


/* =========================================================
   INTRO
========================================================= */

#screen9 .letter-intro {
    text-align: center;

    margin-bottom: 35px;

    animation:
        letterIntro
        1s
        ease
        both;
}

#screen9 .letter-intro span {
    display: block;

    margin-bottom: 10px;

    color: rgba(255,255,255,.35);

    font-family: Arial, sans-serif;

    font-size: 9px;

    letter-spacing: .28em;

    text-transform: uppercase;
}

#screen9 .letter-intro h1 {
    margin: 0;

    font-family: Georgia, serif;

    font-size:
        clamp(32px, 5vw, 54px);

    font-weight: 400;

    letter-spacing: -.04em;
}

#screen9 .letter-intro h1 em {
    color: #d71920;
    font-style: italic;
}

#screen9 .letter-intro p {
    margin-top: 10px;

    color: rgba(255,255,255,.42);

    font-size: 13px;
}


/* =========================================================
   ENVELOPE
========================================================= */

.gatefold-envelope {
    position: relative;

    width: min(680px, 90vw);

    height: min(430px, 58vw);

    min-height: 300px;

    perspective: 1400px;

    filter:
        drop-shadow(
            0 35px 45px
            rgba(0,0,0,.55)
        );

    animation:
        envelopeIn
        1s
        cubic-bezier(.2,.8,.2,1)
        both .2s;
}


@keyframes envelopeIn {

    from {
        opacity: 0;

        transform:
            translateY(30px)
            scale(.94);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

}


/* =========================================================
   ENVELOPE BASE
========================================================= */

.envelope-body {
    position: absolute;

    inset: 0;

    z-index: 1;

    border-radius: 4px;

    background:
        linear-gradient(
            145deg,
            #9e1018,
            #d71920 45%,
            #a30e16
        );

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.14),
        inset 0 -15px 35px rgba(50,0,0,.2);
}


/* subtle paper texture */

.envelope-body::after {
    content: "";

    position: absolute;

    inset: 0;

    opacity: .12;

    background:
        repeating-linear-gradient(
            0deg,
            transparent 0 3px,
            rgba(255,255,255,.05) 3px 4px
        );

    pointer-events: none;
}


/* =========================================================
   LETTER INSIDE — FIXED TOP, GROWS DOWNWARD
========================================================= */

.letter-sheet {
    position: absolute;

    left: 8%;
    right: 8%;

    /*
        IMPORTANT:
        Anchor the TOP of the paper.
        Do NOT use bottom here.
    */
    top: 0;

    z-index: 2;

    min-height: 320px;
    height: auto;

    padding:
        38px
        45px
        38px;

    overflow: visible;

    box-sizing: border-box;

    background:
        linear-gradient(
            135deg,
            #fffaf3,
            #f4e8d8
        );

    color: #2b211d;

    box-shadow:
        0 15px 30px
        rgba(0,0,0,.25);

    /*
        Closed position.
    */
    transform:
        translateY(80px)
        scale(.96);

    opacity: 0;

    transition:
        transform
        1s
        cubic-bezier(.2,.8,.2,1),

        opacity
        .7s
        ease;
}

/* =========================================================
   LETTER HEADER
========================================================= */

.letter-top {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 30px;

    padding-bottom: 12px;

    border-bottom:
        1px solid
        rgba(70,40,25,.12);
}

.letter-top span {
    font-family: Arial, sans-serif;

    font-size: 9px;

    letter-spacing: .25em;
}

.letter-top small {
    font-family: Arial, sans-serif;

    font-size: 8px;

    letter-spacing: .12em;

    color: #927d6c;
}


/* =========================================================
   LETTER CONTENT
========================================================= */

.letter-content {
    max-width: 520px;

    margin: auto;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 14px;

    line-height: 1.75;

    color: #4b3d34;
}

.letter-content p {
    margin:
        0 0
        14px;
}

.letter-greeting {
    font-size: 22px;

    color: #211914;

    margin-bottom: 20px !important;
}

.letter-content em {
    color: #9e1018;
}

.letter-content strong {
    color: #7f1118;
}

.letter-love {
    margin-top: 25px !important;

    color: #9e1018;

    font-size: 18px;
}

.letter-ending {
    margin-top: 25px !important;

    font-size: 17px;

    color: #251b17;
}


/* =========================================================
   SIGNATURE
========================================================= */

.letter-signature {
    margin-top: 25px;

    display: flex;

    flex-direction: column;

    gap: 3px;

    align-items: flex-end;

    font-family: Georgia, serif;
}

.letter-signature span {
    font-style: italic;

    color: #806b5c;

    font-size: 12px;
}

.letter-signature strong {
    color: #9e1018;

    font-size: 21px;

    font-weight: 400;
}


/* =========================================================
   FOOTER
========================================================= */

.letter-footer {
    position: absolute;

    bottom: 16px;

    left: 0;
    right: 0;

    text-align: center;

    font-family: Arial, sans-serif;

    font-size: 6px;

    letter-spacing: .25em;

    color: rgba(80,50,35,.45);
}


/* =========================================================
   LEFT + RIGHT FOLDING PANELS
========================================================= */

.envelope-panel {
    position: absolute;

    top: 0;
    bottom: 0;

    width: 50%;

    z-index: 5;

    padding: 0;

    border: 0;

    background:
        linear-gradient(
            135deg,
            #b71119,
            #d71920
        );

    cursor: default;

    transform-style: preserve-3d;

    transition:
        transform
        1.05s
        cubic-bezier(.2,.8,.2,1);
}


/* LEFT */

.envelope-left {

    left: 0;

    transform-origin:
        left center;

    clip-path:
        polygon(
            0 0,
            100% 50%,
            0 100%
        );
}


/* RIGHT */

.envelope-right {

    right: 0;

    transform-origin:
        right center;

    clip-path:
        polygon(
            100% 0,
            0 50%,
            100% 100%
        );
}


/* OPEN */

.gatefold-envelope.open
.envelope-left {

    transform:
        rotateY(-108deg);
}


.gatefold-envelope.open
.envelope-right {

    transform:
        rotateY(108deg);
}


/* =========================================================
   FOLD SHADOWS
========================================================= */

.envelope-left::after,
.envelope-right::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.18),
            transparent 40%
        );

    pointer-events: none;
}

.envelope-right::after {

    background:
        linear-gradient(
            -90deg,
            rgba(0,0,0,.18),
            transparent 40%
        );
}


/* =========================================================
   CENTRE SEAM
========================================================= */

.envelope-centre {

    position: absolute;

    left: 50%;
    top: 0;

    width: 1px;
    height: 100%;

    z-index: 7;

    background:
        rgba(70,0,5,.28);

    transform:
        translateX(-50%);

    transition:
        opacity .5s ease;
}

.gatefold-envelope.open
.envelope-centre {

    opacity: 0;
}


/* =========================================================
   WAX SEAL
========================================================= */

.wax-seal {

    position: absolute;

    left: 50%;
    top: 50%;

    z-index: 12;

    width: 78px;
    height: 78px;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    border:
        3px solid
        rgba(255,190,190,.3);

    background:
        radial-gradient(
            circle at 35% 30%,
            #ff4b53,
            #a80d15 65%,
            #70070d
        );

    color: #f8d7d7;

    box-shadow:
        0 8px 20px rgba(0,0,0,.35),
        inset 0 3px 5px rgba(255,255,255,.2),
        inset 0 -5px 8px rgba(40,0,0,.3);

    cursor: pointer;

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.wax-seal span {

    font-family:
        Georgia,
        serif;

    font-size: 27px;

    font-weight: 400;

}


.wax-seal:hover {

    transform:
        translate(-50%, -50%)
        scale(1.08)
        rotate(-3deg);

    box-shadow:
        0 12px 28px rgba(0,0,0,.42),
        0 0 25px rgba(215,25,32,.22),
        inset 0 3px 5px rgba(255,255,255,.2);
}


.gatefold-envelope.open
.wax-seal {

    opacity: 0;

    pointer-events: none;

    transform:
        translate(-50%, -50%)
        scale(.65);

}


/* =========================================================
   OPEN HINT
========================================================= */

.letter-open-hint {

    margin-top: 22px;

    color:
        rgba(255,255,255,.35);

    font-family: Arial, sans-serif;

    font-size: 9px;

    letter-spacing: .18em;

    text-transform: uppercase;

    transition:
        opacity .4s ease;
}

.gatefold-envelope.open
~ .letter-open-hint {

    opacity: 0;
}


/* =========================================================
   FINAL MESSAGE
========================================================= */

.letter-final {

    margin-top: 25px;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 5px;

    opacity: 0;

    transform: translateY(12px);

    transition:
        opacity .8s ease,
        transform .8s ease;
}

.letter-final span {
    color: #d71920;

    font-size: 18px;
}

.letter-final strong {

    font-family: Georgia, serif;

    font-size: 18px;

    font-weight: 400;
}

.letter-final small {

    color: rgba(255,255,255,.4);

    font-size: 10px;

    letter-spacing: .12em;
}

.gatefold-envelope.open
~ .letter-open-hint
~ .letter-final {

    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    #screen9 .letter-world {

        padding:
            75px
            12px
            45px;

    }

    #screen9 .letter-intro {

        margin-bottom: 25px;

    }

    #screen9 .letter-intro h1 {

        font-size: 34px;

    }

    .gatefold-envelope {

        width: 94vw;

        height: 62vw;

        min-height: 270px;

    }

    .letter-sheet {
        left: 5%;
        right: 5%;

        top: 0;
        bottom: auto;

        min-height: 270px;
        height: auto;

        padding:
            25px
            27px
            32px;

        box-sizing: border-box;

        overflow: visible;
    }

    .gatefold-envelope.open
    .letter-sheet {

        transform:
            translateY(-85px)
            scale(1);

    }

    .letter-content {

        font-size: 11px;

        line-height: 1.55;

    }

    .letter-greeting {

        font-size: 18px;

    }

    .letter-love {

        font-size: 15px;

    }

    .letter-ending {

        font-size: 14px;

    }

    .wax-seal {

        width: 62px;
        height: 62px;

    }

    .wax-seal span {

        font-size: 22px;

    }

    #screen9 .letter-back {

        top: 20px;
        left: 18px;

    }

}

/* =========================================================
   JOURNEY BACK BUTTONS — FORCE ABOVE EVERYTHING
========================================================= */

#screen4 .journey-back,
#screen5 .journey-back,
#screen6 .journey-back {

    position: absolute !important;

    top: 24px !important;
    left: 28px !important;

    z-index: 9999 !important;

    display: block !important;

    width: auto !important;
    height: auto !important;

    padding: 7px 10px !important;

    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 999px !important;

    background: rgba(5,5,7,.72) !important;

    color: rgba(255,255,255,.7) !important;

    font-family:
        Arial,
        sans-serif !important;

    font-size: 10px !important;

    letter-spacing: .08em !important;

    line-height: 1 !important;

    opacity: 1 !important;
    visibility: visible !important;

    cursor: pointer !important;

    pointer-events: auto !important;

    backdrop-filter: blur(12px);

    box-shadow:
        0 8px 25px rgba(0,0,0,.25);

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease,
        border-color .25s ease;
}

#screen4 .journey-back:hover,
#screen5 .journey-back:hover,
#screen6 .journey-back:hover {

    color: #fff !important;

    background:
        rgba(215,25,32,.18) !important;

    border-color:
        rgba(215,25,32,.45) !important;

    transform:
        translateX(-3px);
}


@media (max-width: 700px) {

    #screen4 .journey-back,
    #screen5 .journey-back,
    #screen6 .journey-back {

        top: 16px !important;
        left: 14px !important;

        font-size: 9px !important;

        padding: 7px 9px !important;

    }

}
/* =========================================================
   BALI TICKET — FINISHING DETAILS
========================================================= */

#screen8 .ticket-actions {

    position: absolute;

    left: 50%;
    bottom: 24px;

    transform: translateX(-50%);

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 22px;

    width: max-content;

    z-index: 20;
}


#screen8 .ticket-close,
#screen8 .ticket-next {

    position: static !important;

    margin: 0 !important;

    min-height: 42px !important;

    padding: 10px 16px !important;

    border: 1px solid rgba(90,60,40,.22) !important;

    border-radius: 999px !important;

    background: rgba(255,255,255,.18) !important;

    color: rgba(65,48,38,.78) !important;

    font-family:
        Arial,
        sans-serif !important;

    font-size: 11px !important;

    letter-spacing: .08em !important;

    white-space: nowrap !important;

    cursor: pointer;

    box-shadow:
        0 5px 18px rgba(70,45,25,.08);

    transition:
        color .25s ease,
        background .25s ease,
        border-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

#screen8 .ticket-next {

    color:
        #8e3028 !important;

    font-weight: 600;

}


#screen8 .ticket-close:hover,
#screen8 .ticket-next:hover {

    color: #2e2520 !important;

    background: rgba(255,255,255,.35) !important;

    border-color: rgba(90,60,40,.38) !important;

    transform:
        translateY(-2px) !important;

    box-shadow:
        0 8px 22px rgba(70,45,25,.12);

}


@media (max-width: 700px) {

    #screen8 .ticket-actions {

        bottom: 16px;

        gap: 10px;

        width: calc(100% - 28px);

    }

    #screen8 .ticket-close,
    #screen8 .ticket-next {

        min-height: 40px !important;

        padding: 9px 13px !important;

        font-size: 10px !important;

        letter-spacing: .06em !important;

    }

}

#screen6 .football-goal {
    animation:
        goalMoveFast
        2s
        linear
        infinite
        alternate;
}

@keyframes goalMoveFast {
    0% {
        left: 22%;
    }

    50% {
        left: 78%;
    }

    100% {
        left: 22%;
    }
}
/* =========================================================
   FOOTBALL GOAL — RESTORE
========================================================= */

#screen6 .football-goal {
    position: absolute;
    left: 50%;
    top: 8%;
    
    width: 220px;
    height: 135px;

    transform: translateX(-50%);

    z-index: 5;
}

/* GOAL FRAME */

#screen6 .goal-frame {
    position: absolute;
    inset: 0;

    border:
        6px solid
        rgba(255,255,255,.9);

    border-bottom: 0;

    box-shadow:
        0 0 20px
        rgba(255,255,255,.08);
}

/* NET */

#screen6 .goal-net {
    position: absolute;
    inset: 5px;

    border:
        1px solid
        rgba(255,255,255,.22);

    background:
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 11px,
            rgba(255,255,255,.10) 12px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 11px,
            rgba(255,255,255,.10) 12px
        );

    overflow: hidden;
}
/* =========================================================
   SCREEN 9 — FINAL LETTER
   CLEAN REVEAL
========================================================= */

#screen9 .gatefold-envelope {
    overflow: visible !important;
}


/* ---------------------------------------------------------
   CLOSED LETTER
--------------------------------------------------------- */

#screen9 .letter-sheet {
    position: absolute !important;

    top: 0 !important;
    left: 8% !important;
    right: 8% !important;

    width: auto !important;
    height: auto !important;

    min-height: 320px !important;

    box-sizing: border-box !important;

    z-index: 2 !important;

    opacity: 0 !important;

    transform:
        translateY(70px)
        scale(.96) !important;

    transform-origin: top center;

    overflow: visible !important;

    transition:
        opacity .7s ease,
        transform 1s cubic-bezier(.2,.8,.2,1) !important;
}


/* ---------------------------------------------------------
   OPEN LETTER
--------------------------------------------------------- */

#screen9 .gatefold-envelope.open .letter-sheet {

    opacity: 1 !important;

    transform:
        translateY(-110px)
        scale(1) !important;

    z-index: 30 !important;

    visibility: visible !important;
}


/* ---------------------------------------------------------
   KEEP THE PAPER ABOVE THE ENVELOPE
--------------------------------------------------------- */

#screen9 .envelope-body {
    z-index: 1 !important;
}

#screen9 .letter-sheet {
    z-index: 30 !important;
}

#screen9 .envelope-panel {
    z-index: 5 !important;
}

#screen9 .envelope-centre {
    z-index: 7 !important;
}

#screen9 .wax-seal {
    z-index: 12 !important;
}


/* ---------------------------------------------------------
   FOLDS OPEN
--------------------------------------------------------- */

#screen9 .gatefold-envelope.open .envelope-left {
    transform: rotateY(-108deg) !important;
}

#screen9 .gatefold-envelope.open .envelope-right {
    transform: rotateY(108deg) !important;
}


/* ---------------------------------------------------------
   HIDE SEAL AFTER OPENING
--------------------------------------------------------- */

#screen9 .gatefold-envelope.open .wax-seal {
    opacity: 0 !important;

    pointer-events: none !important;

    transform:
        translate(-50%, -50%)
        scale(.65) !important;
}


/* ---------------------------------------------------------
   HIDE CENTRE SEAM
--------------------------------------------------------- */

#screen9 .gatefold-envelope.open .envelope-centre {
    opacity: 0 !important;
}


/* ---------------------------------------------------------
   HINT
--------------------------------------------------------- */

#screen9 .gatefold-envelope.open ~ .letter-open-hint {
    opacity: 0 !important;
}


/* ---------------------------------------------------------
   FINAL LITTLE MESSAGE
--------------------------------------------------------- */

#screen9 .gatefold-envelope.open
~ .letter-open-hint
~ .letter-final {

    opacity: 1 !important;

    transform: translateY(0) !important;
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 700px) {

    #screen9 .letter-sheet {

        left: 5% !important;
        right: 5% !important;

        top: 0 !important;

        min-height: 270px !important;

        padding:
            25px
            27px
            32px !important;
    }


    #screen9 .gatefold-envelope.open
    .letter-sheet {

        opacity: 1 !important;

        transform:
            translateY(-82px)
            scale(1) !important;

        z-index: 30 !important;
    }

}
/* =========================================================
   SCREEN 5 — REAL FOOD UPGRADE
   ========================================================= */


/* ---------------------------------------------------------
   REAL INGREDIENT IMAGES
--------------------------------------------------------- */

#screen5 .food-image {
    display: block;

    width: 52px;
    height: 52px;

    object-fit: contain;

    margin: 0 auto;

    pointer-events: none;

    filter:
        drop-shadow(
            0 7px 9px
            rgba(0,0,0,.38)
        );

    transition:
        transform .25s ease,
        filter .25s ease,
        opacity .25s ease;
}


/* individual sizing */

#screen5 .oil-image {
    width: 42px;
    height: 52px;
}

#screen5 .onion-image {
    width: 52px;
    height: 52px;
}

#screen5 .pepper-image {
    width: 54px;
    height: 54px;
}

#screen5 .tomato-image {
    width: 54px;
    height: 54px;
}

#screen5 .chicken-image {
    width: 58px;
    height: 58px;
}

#screen5 .seasoning-image {
    width: 50px;
    height: 50px;
}

#screen5 .rice-image {
    width: 58px;
    height: 58px;
}


/* selected ingredient */

#screen5 .food-object.selected .food-image {
    transform:
        translateY(-5px)
        scale(1.08);

    filter:
        drop-shadow(
            0 0 13px
            rgba(255,255,255,.18)
        )
        drop-shadow(
            0 8px 10px
            rgba(0,0,0,.4)
        );
}


/* used ingredient */

#screen5 .food-object.used .food-image {
    opacity: .12;

    transform:
        scale(.82);

    filter:
        grayscale(1)
        blur(.3px);
}


/* ---------------------------------------------------------
   FOOD OBJECT ALIGNMENT
--------------------------------------------------------- */

#screen5 .food-object {
    justify-content: flex-start;
}

#screen5 .food-object .object-label {
    position: relative;

    z-index: 4;

    margin-top: 5px;
}


/* ---------------------------------------------------------
   REAL KNIFE
--------------------------------------------------------- */

#screen5 .chopping-knife {
    position: absolute;

    left: 50%;
    top: 5%;

    width: 92px;
    height: 58px;

    opacity: 0;

    transform:
        translateX(-50%)
        translateY(-18px)
        rotate(-38deg);

    pointer-events: none;

    z-index: 25;

    transform-origin:
        76% 50%;
}


#screen5 .chopping-knife img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    filter:
        drop-shadow(
            0 7px 7px
            rgba(0,0,0,.45)
        );
}


/* knife only appears during chopping */

#screen5 .cutting-board.chopping .chopping-knife {
    opacity: 1;

    animation:
        realKnifeChop
        .38s
        ease-in-out
        infinite;
}


@keyframes realKnifeChop {

    0%,
    100% {
        transform:
            translateX(-50%)
            translateY(-18px)
            rotate(-38deg);
    }

    48% {
        transform:
            translateX(-50%)
            translateY(13px)
            rotate(-38deg);
    }

    58% {
        transform:
            translateX(-50%)
            translateY(7px)
            rotate(-38deg);
    }
}


/* ---------------------------------------------------------
   BOARD FOOD
--------------------------------------------------------- */

#screen5 .board-food {
    display: flex;

    align-items: center;
    justify-content: center;

    overflow: visible;
}


#screen5 .board-food img {
    display: block;

    width: 64px;
    height: 64px;

    object-fit: contain;

    pointer-events: none;

    filter:
        drop-shadow(
            0 5px 7px
            rgba(0,0,0,.3)
        );
}


/* whole ingredient */

#screen5 .board-food.whole img {
    animation:
        boardFoodSettle
        .35s
        ease-out
        forwards;
}


@keyframes boardFoodSettle {

    from {
        opacity: 0;
        transform:
            translateY(-10px)
            scale(.8);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}


/* ---------------------------------------------------------
   CHOPPED FOOD
--------------------------------------------------------- */

#screen5 .board-food.chopped {
    width: 88px;
    height: 52px;
}


#screen5 .board-food.chopped img {
    width: 86px;
    height: 58px;

    object-fit: contain;

    transform:
        scale(.92);
}


#screen5 .board-food.chopping img {
    animation:
        boardFoodBounce
        .18s
        ease-in-out;
}


@keyframes boardFoodBounce {

    0% {
        transform:
            translateX(-4px)
            rotate(-4deg);
    }

    50% {
        transform:
            translateX(4px)
            rotate(4deg);
    }

    100% {
        transform:
            translateX(0)
            rotate(0);
    }
}


/* ---------------------------------------------------------
   POT
--------------------------------------------------------- */

#screen5 .pot-food {
    position: absolute;

    left: 8%;
    right: 8%;
    bottom: 8%;

    height: 31%;

    border-radius:
        50%
        50%
        45%
        45%;

    overflow: hidden;

    background:
        rgba(0,0,0,.08);

    transition:
        background .7s ease,
        box-shadow .7s ease,
        transform .35s ease;

    z-index: 5;
}


/* don't show food before anything is added */

#screen5 .pot-food:not(.has-food) {
    opacity: 0;
}


/* oil */

#screen5 .cooking-pot.has-oil .pot-food {
    opacity: 1;

    background:
        radial-gradient(
            ellipse at center,
            rgba(220,157,72,.62),
            rgba(155,94,38,.38) 55%,
            rgba(60,35,19,.2)
        );

    box-shadow:
        inset
        0 3px 9px
        rgba(255,210,120,.22);
}


/* general bubbling state */

#screen5 .cooking-pot.boiling .pot-food {
    animation:
        potBoil
        .55s
        ease-in-out
        infinite;
}


@keyframes potBoil {

    0%,
    100% {
        transform:
            scaleY(1)
            translateY(0);
    }

    50% {
        transform:
            scaleY(.91)
            translateY(1px);
    }
}


/* ---------------------------------------------------------
   BUBBLES
--------------------------------------------------------- */

#screen5 .pot-bubbles {
    position: absolute;

    inset: 0;

    pointer-events: none;

    opacity: 0;
}


#screen5 .cooking-pot.boiling .pot-bubbles {
    opacity: 1;
}


#screen5 .pot-bubbles span {
    position: absolute;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background:
        rgba(255,184,107,.7);

    box-shadow:
        0 0 6px
        rgba(255,130,60,.25);

    animation:
        bubbleRise
        1.25s
        ease-in
        infinite;
}


#screen5 .pot-bubbles span:nth-child(1) {
    left: 22%;
    bottom: 10%;
}

#screen5 .pot-bubbles span:nth-child(2) {
    left: 39%;
    bottom: 4%;

    animation-delay: .3s;
}

#screen5 .pot-bubbles span:nth-child(3) {
    left: 57%;
    bottom: 13%;

    animation-delay: .55s;
}

#screen5 .pot-bubbles span:nth-child(4) {
    left: 72%;
    bottom: 7%;

    animation-delay: .8s;
}

#screen5 .pot-bubbles span:nth-child(5) {
    left: 48%;
    bottom: 17%;

    animation-delay: 1s;
}


@keyframes bubbleRise {

    0% {
        opacity: 0;
        transform:
            translateY(5px)
            scale(.5);
    }

    20% {
        opacity: .85;
    }

    100% {
        opacity: 0;

        transform:
            translateY(-24px)
            scale(1.25);
    }
}


/* ---------------------------------------------------------
   TOMATO → SAUCE
--------------------------------------------------------- */

#screen5 .cooking-pot.tomato-stage .pot-food {
    background:
        radial-gradient(
            ellipse at center,
            #9f2c20,
            #762017 70%,
            #42130f
        );

    box-shadow:
        inset
        0 5px 13px
        rgba(255,130,80,.25);
}


/* ---------------------------------------------------------
   FINAL RICE / JOLLOF
--------------------------------------------------------- */

#screen5 .cooking-pot.jollof-stage .pot-food {
    background:
        radial-gradient(
            ellipse at center,
            #a94424,
            #7c2819 65%,
            #45140f
        );

    box-shadow:
        inset
        0 4px 14px
        rgba(255,158,85,.3);

    animation:
        potBoil
        .55s
        ease-in-out
        infinite;
}


/* ---------------------------------------------------------
   STEAM — ONLY STRONG DURING BOILING
--------------------------------------------------------- */

#screen5 .pot-steam {
    opacity: 0;

    transition:
        opacity .5s ease;
}


#screen5 .cooking-pot.boiling .pot-steam,
#screen5 .cooking-pot.finished .pot-steam {
    opacity: 1;
}


/* ---------------------------------------------------------
   POT SIZZLE
--------------------------------------------------------- */

#screen5 .cooking-pot.sizzling {
    animation:
        potSizzle
        .18s
        ease-in-out
        3;
}


@keyframes potSizzle {

    0%,
    100% {
        transform:
            translateX(0);
    }

    50% {
        transform:
            translateX(2px);
    }
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 600px) {

    #screen5 .food-image {
        width: 43px;
        height: 43px;
    }

    #screen5 .oil-image {
        width: 35px;
        height: 46px;
    }

    #screen5 .chicken-image {
        width: 48px;
        height: 48px;
    }

    #screen5 .seasoning-image {
        width: 42px;
        height: 42px;
    }

    #screen5 .rice-image {
        width: 48px;
        height: 48px;
    }

    #screen5 .chopping-knife {
        width: 74px;
        height: 48px;
    }

    #screen5 .board-food img {
        width: 55px;
        height: 55px;
    }

    #screen5 .board-food.chopped img {
        width: 72px;
        height: 48px;
    }

}
/* =========================================================
   FINAL LETTER — FIX SEAL CLICK
========================================================= */

/* Closed letter must NOT block the seal */
#screen9 .letter-sheet {
    pointer-events: none !important;
}

/* Once opened, the letter itself can receive interaction */
#screen9 .gatefold-envelope.open .letter-sheet {
    pointer-events: auto !important;
}

/* Keep the seal above absolutely everything while closed */
#screen9 .gatefold-envelope:not(.open) .wax-seal {
    z-index: 100 !important;
    pointer-events: auto !important;
}
/* =========================================================
   SCREEN 5 — POT FOOD SURFACE ALIGNMENT
========================================================= */

#screen5 .stove .cooking-pot .pot-food {
    left: 50% !important;
    right: auto !important;

    width: 84% !important;

    top: 0 !important;

    transform: translateX(-50%) !important;

    margin: 0 !important;
}
@media (max-width: 700px) {

    #screen5 .stove .cooking-pot .pot-food {
        width: 84% !important;
        top: 0 !important;
    }

}
/* =========================================================
   FINAL LETTER — NO TEXT FLASH
========================================================= */

#screen9 .letter-sheet .letter-content {
    visibility: hidden;
}

#screen9 .gatefold-envelope.open .letter-sheet .letter-content {
    visibility: visible;
}
/* =========================================================
   SCREEN 5 — POT FOOD SURFACE PERFECT ALIGNMENT
========================================================= */

#screen5 .stove .cooking-pot .pot-food {
    position: absolute !important;

    left: 50% !important;
    right: auto !important;

    width: 88% !important;

    top: 2px !important;

    height: 24px !important;

    margin: 0 !important;

    transform: translateX(-50%) !important;

    border-radius: 50% !important;

    z-index: 5 !important;
}
@media (max-width: 700px) {

    #screen5 .stove .cooking-pot .pot-food {
        width: 88% !important;

        top: 2px !important;

        height: 18px !important;
    }

}
/* =========================================================
   FINAL POT ALIGNMENT FIX
   Keep the cooking surface properly inside the pot opening
========================================================= */

#screen5 .stove .cooking-pot {
    position: absolute !important;
    overflow: visible !important;
}

/* Actual pot opening */
#screen5 .stove .cooking-pot .pot-rim {
    position: absolute !important;

    left: -4% !important;
    right: -4% !important;
    top: -10% !important;

    width: auto !important;
    height: 30px !important;

    border-radius: 50% !important;

    z-index: 4 !important;
}

/* Coloured food/cooking surface */
#screen5 .stove .cooking-pot .pot-food {
    position: absolute !important;

    left: 2% !important;
    right: 2% !important;
    top: -5% !important;

    bottom: auto !important;

    width: auto !important;
    height: 23px !important;

    border-radius: 50% !important;

    z-index: 5 !important;

    transform: none !important;
}

/* Keep bubbles inside the actual food surface */
#screen5 .stove .cooking-pot .pot-bubbles {
    position: absolute !important;

    inset: 0 !important;

    border-radius: 50% !important;

    overflow: hidden !important;

    z-index: 6 !important;
}

/* Mobile */
@media (max-width: 700px) {

    #screen5 .stove .cooking-pot .pot-rim {
        left: -4% !important;
        right: -4% !important;
        top: -10% !important;
        height: 22px !important;
    }

    #screen5 .stove .cooking-pot .pot-food {
        left: 2% !important;
        right: 2% !important;
        top: -5% !important;
        bottom: auto !important;
        height: 17px !important;
    }
}
/* =========================================================
   RESTART EXPERIENCE
========================================================= */

.restart-experience {
    position: fixed;

    top: 20px;
    right: 24px;

    z-index: 9999;

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 999px;

    padding: 7px 11px;

    background: rgba(8,8,10,.72);

    color: rgba(255,255,255,.28);

    font-family: Arial, sans-serif;

    font-size: 9px;

    letter-spacing: .08em;

    cursor: pointer;

    opacity: .55;

    backdrop-filter: blur(10px);

    transition:
        opacity .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.restart-experience:hover {
    opacity: 1;

    color: rgba(255,255,255,.7);

    border-color: rgba(215,25,32,.35);

    transform: translateY(-1px);
}

.restart-experience:active {
    transform: scale(.96);
}


@media (max-width: 700px) {

    .restart-experience {
        top: 14px;
        right: 14px;

        padding: 6px 9px;

        font-size: 8px;
    }

}