/* =========================================================
   THE LAST TAKE — FINAL MOBILE PASS
   Gianmarco Spina
========================================================= */


/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none), (pointer: coarse) {

    .lt-language-buttons button:hover,
    .lt-start:hover,
    .lt-choice:hover,
    .lt-final-actions button:hover,
    .lt-ending-actions button:hover,
    .lt-ending-actions a:hover {
        transform: none;
    }

    .lt-choice:hover {
        padding-left: 0;
        background: transparent;
        color: var(--lt-white);
    }

    .lt-panel-note {
        display: none;
    }

}


/* =========================================================
   SMARTPHONE
========================================================= */

@media (max-width: 600px) {

    html,
    body.last-take-page {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }


    /* =====================================================
       GLOBAL NAVBAR
    ===================================================== */

    .last-take-page .navbar {
        padding:
            calc(20px + env(safe-area-inset-top))
            6%
            18px;

        display: grid;
        grid-template-columns: 1fr;

        gap: 15px;
        align-items: start;
    }

    .last-take-page .navbar .logo {
        font-size: 11px;
        line-height: 1;
        letter-spacing: .085em;
    }

    .last-take-page .navbar nav {
        width: 100%;

        display: flex;
        justify-content: space-between;
        align-items: center;

        gap: 0;
    }

    .last-take-page .navbar nav a {
        min-height: 38px;

        display: inline-flex;
        align-items: center;

        font-size: 8px;
        letter-spacing: .11em;
    }


    /* =====================================================
       LANGUAGE GATEWAY
    ===================================================== */

    .lt-gateway {
        min-height: 100svh;

        overflow-y: auto;

        padding:
            calc(30px + env(safe-area-inset-top))
            6%
            calc(30px + env(safe-area-inset-bottom));
    }

    .lt-gateway-inner {
        width: 100%;
    }

    .lt-gateway-top {
        gap: 12px;

        padding-bottom: 14px;

        font-size: 7px;
        line-height: 1.4;
        letter-spacing: .11em;
    }

    .lt-gateway-top span:last-child {
        text-align: right;
    }

    .lt-gateway h1 {
        margin:
            52px
            0
            32px;

        font-size: clamp(62px, 20vw, 84px);
        line-height: .79;
    }

    .lt-gateway-copy {
        margin-bottom: 30px;
    }

    .lt-gateway-copy strong {
        margin-bottom: 9px;

        font-size: 19px;
        line-height: 1.3;
    }

    .lt-gateway-copy span {
        font-size: 14px;
        line-height: 1.55;
    }

    .lt-language-buttons {
        grid-template-columns: 1fr;

        gap: 9px;
    }

    .lt-language-buttons button {
        min-height: 58px;

        padding:
            15px
            17px;

        font-size: 9px;

        text-align: left;

        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .lt-gateway-bottom {
        flex-direction: row;

        margin-top: 37px;

        gap: 15px;

        font-size: 6px;
        line-height: 1.4;
    }

    .lt-gateway-bottom span:last-child {
        text-align: right;
    }


    /* =====================================================
       HERO
    ===================================================== */

    .lt-hero {
        min-height: 100svh;

        padding:
            calc(
                145px +
                env(safe-area-inset-top)
            )
            6%
            calc(
                60px +
                env(safe-area-inset-bottom)
            );

        align-items: center;
    }

    .lt-hero-meta {
        top:
            calc(
                112px +
                env(safe-area-inset-top)
            );

        left: 6%;
        right: 6%;

        font-size: 6px;
        letter-spacing: .11em;
    }

    .lt-hero-meta span:last-child {
        display: none;
    }

    .lt-hero-center {
        width: 100%;
    }

    .lt-kicker {
        max-width: 85%;

        margin-bottom: 27px;

        font-size: 8px;
        line-height: 1.5;
        letter-spacing: .17em;
    }

    .lt-hero h1 {
        font-size: clamp(68px, 21vw, 91px);
        line-height: .74;
        letter-spacing: -.075em;
    }

    .lt-hero-description {
        width: 100%;

        margin:
            45px
            0
            0;

        font-size: 16px;
        line-height: 1.55;
    }


    /* =====================================================
       START AREA
    ===================================================== */

    .lt-start-row,
    .lt-start-block {
        width: 100%;

        margin-top: 56px;

        display: flex;
        flex-direction: column;

        align-items: flex-start;

        gap: 20px;
    }

    .lt-start-note {
        max-width: 100%;

        font-size: 7px;
        line-height: 1.55;
        letter-spacing: .12em;
    }

    .lt-start {
        width: 100%;
        min-height: 54px;

        display: flex;
        justify-content: space-between;
        align-items: center;

        padding:
            0
            0
            0
            24px;

        text-align: left;

        font-size: 8px;
        line-height: 1.4;
    }

    .lt-start-arrow {
        font-size: 15px;
    }


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

    .lt-game {
        min-height: auto;

        padding:
            calc(
                115px +
                env(safe-area-inset-top)
            )
            6%
            85px;
    }

    .lt-game-layout {
        grid-template-columns: 1fr;

        gap: 50px;
    }


    /* =====================================================
       MONITOR COLUMN
    ===================================================== */

    .lt-monitor-column {
        width: 100%;
        min-width: 0;
    }

    .lt-monitor-top,
    .lt-monitor-bottom {
        gap: 10px;

        font-size: 6px;
        line-height: 1.4;
        letter-spacing: .11em;
    }

    .lt-monitor-top span:last-child,
    .lt-monitor-bottom span:last-child {
        text-align: right;
    }

    .lt-monitor {
        width: 100%;

        aspect-ratio: 16 / 9;

        max-height: none;
    }

    .lt-frame-guides {
        inset: 4%;
    }

    .lt-scene-label {
        top: 9px;
        left: 9px;

        padding:
            5px
            6px;

        font-size: 5px;
    }

    .lt-rec {
        top: 10px;
        right: 9px;

        font-size: 5px;
    }

    .lt-rec::before {
        width: 4px;
        height: 4px;

        margin-right: 4px;
    }

    .lt-frame-label {
        right: 9px;
        bottom: 9px;

        font-size: 5px;
    }

    .lt-monitor-caption {
        min-height: 0;

        margin:
            15px
            0
            0;

        font-size: 14px;
        line-height: 1.5;
    }


    /* =====================================================
       GAME PANEL
    ===================================================== */

    .lt-panel {
        position: relative;
        top: auto;

        width: 100%;
    }

    .lt-progress-head {
        gap: 10px;

        font-size: 7px;
        line-height: 1.4;
    }

    .lt-progress-head span:last-child {
        text-align: right;
    }

    .lt-progress-bar {
        margin:
            13px
            0
            32px;
    }

    .lt-step-index {
        margin-bottom: 10px;
    }

    .lt-panel h2 {
        font-size: clamp(39px, 12vw, 52px);
        line-height: .96;
    }

    .lt-question {
        max-width: none;

        margin:
            18px
            0
            26px;

        font-size: 14px;
        line-height: 1.55;
    }

    .lt-panel-note {
        display: none;
    }


    /* =====================================================
       CHOICES
    ===================================================== */

    .lt-options {
        width: 100%;
    }

    .lt-choice {
        min-height: 72px;

        grid-template-columns:
            24px
            minmax(0, 1fr)
            20px;

        gap: 10px;

        padding:
            17px
            0;

        touch-action: manipulation;
    }

    .lt-choice-index {
        font-size: 7px;
    }

    .lt-choice-title {
        font-size: 16px;
        line-height: 1.2;
    }

    .lt-choice-description {
        margin-top: 5px;

        font-size: 12px;
        line-height: 1.45;
    }

    .lt-choice-arrow {
        align-self: center;

        font-size: 12px;
    }


    /* =====================================================
       QUICK CUT
    ===================================================== */

    .lt-cut-inner {
        text-align: center;
    }

    .lt-cut-number {
        font-size: 7px;
    }

    .lt-cut-text {
        font-size: clamp(50px, 15vw, 70px);
    }


    /* =====================================================
       FINAL SEQUENCE
    ===================================================== */

    .lt-final-sequence {
        width: 100%;
        height: 100svh;
    }

    .lt-final-inner {
        padding:
            calc(
                22px +
                env(safe-area-inset-top)
            )
            5%
            calc(
                20px +
                env(safe-area-inset-bottom)
            );
    }

    .lt-final-top {
        gap: 10px;

        font-size: 6px;
        line-height: 1.4;
    }

    .lt-final-top span:last-child {
        text-align: right;
    }

    .lt-final-frame {
        min-height: 0;

        margin:
            22px
            0;

        aspect-ratio: 16 / 10;
    }

    .lt-final-visual span,
    .lt-final-visual p {
        width: 82%;

        font-size: clamp(23px, 7vw, 32px);
        line-height: 1.15;

        text-align: center;
    }

    .lt-final-actions {
        gap: 12px;

        font-size: 6px;
        line-height: 1.4;
    }

    .lt-final-actions > span {
        max-width: 55%;
    }

    .lt-final-actions button {
        min-height: 44px;

        display: inline-flex;
        align-items: center;

        font-size: 7px;
    }


    /* =====================================================
       ENDING
    ===================================================== */

    .lt-ending {
        min-height: 100svh;

        padding:
            calc(
                112px +
                env(safe-area-inset-top)
            )
            6%
            80px;
    }

    .lt-ending-inner {
        width: 100%;
    }

    .lt-ending-top {
        gap: 12px;

        font-size: 7px;
        line-height: 1.4;
    }

    .lt-ending-top span:last-child {
        text-align: right;
    }

    .lt-ending h2 {
        margin:
            35px
            0
            60px;

        font-size: clamp(67px, 21vw, 89px);
        line-height: .76;
    }

    .lt-ending-story {
        width: 100%;

        margin:
            0
            0
            70px;

        padding-left: 20px;

        font-size: 17px;
        line-height: 1.55;
    }

    .lt-ending-story::before {
        left: 20px;

        top: -27px;

        font-size: 6px;
    }


    /* =====================================================
       DIRECTOR CARD
    ===================================================== */

    .lt-director-card {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        margin-bottom: 45px;
    }

    .lt-director-card-cell {
        min-height: 90px;

        padding: 13px;

        border-right:
            1px solid
            rgba(255,255,255,.08);
    }

    .lt-director-card-cell:nth-child(even) {
        border-right: 0;
    }

    .lt-director-card-cell:nth-child(-n+2) {
        border-bottom:
            1px solid
            rgba(255,255,255,.08);
    }

    .lt-director-card-label {
        font-size: 6px;
    }

    .lt-director-card-value {
        margin-top: 20px;

        font-size: 18px;
    }


    /* =====================================================
       STORY PATH
    ===================================================== */

    .lt-story-path {
        margin:
            30px
            0
            60px;
    }

    .lt-story-path-head {
        gap: 10px;

        font-size: 6px;
        line-height: 1.4;
    }

    .lt-story-path-head span:last-child {
        text-align: right;
    }

    .lt-story-path-line {
        grid-template-columns: 1fr;
    }

    .lt-story-beat {
        min-height: 112px;

        padding:
            21px
            18px;

        border-right: 0;

        border-bottom:
            1px solid
            rgba(216,184,121,.18);
    }

    .lt-story-beat:last-child {
        border-bottom: 0;
    }

    .lt-story-beat::before {
        left: 18px;
    }

    .lt-story-beat-number {
        margin-bottom: 20px;

        font-size: 6px;
    }

    .lt-story-beat-text {
        max-width: none;

        font-size: 14px;
        line-height: 1.45;
    }


    /* =====================================================
       FINAL MONITOR
    ===================================================== */

    .lt-final-monitor {
        padding: 10px;
    }

    .lt-final-monitor-head,
    .lt-final-monitor-bottom {
        gap: 8px;

        font-size: 6px;
        line-height: 1.4;
    }

    .lt-final-monitor-head span:last-child,
    .lt-final-monitor-bottom span:last-child {
        text-align: right;
    }

    .lt-final-image {
        min-height: 220px;

        aspect-ratio: 16 / 10;
    }

    #finalImageText {
        width: 82%;

        font-size: clamp(22px, 7vw, 30px);

        text-align: center;
    }


    /* =====================================================
       THANK YOU
    ===================================================== */

    .lt-thanks {
        grid-template-columns: 1fr;

        gap: 42px;

        margin-top: 75px;
    }

    .lt-thanks-divider {
        width: 100%;
        height: 1px;
    }

    .lt-thanks h3 {
        padding-bottom: 12px;

        font-size: 8px;
        line-height: 1.4;
    }

    .lt-thanks p {
        max-width: none;

        font-size: 14px;
        line-height: 1.65;
    }

    .lt-signature {
        margin-top: 25px !important;
    }


    /* =====================================================
       END ACTIONS
    ===================================================== */

    .lt-ending-actions {
        grid-template-columns: 1fr;

        margin-top: 65px;
    }

    .lt-ending-actions button,
    .lt-ending-actions a {
        width: 100%;
        min-height: 58px;

        padding:
            0
            15px;

        border-right: 0;

        border-bottom:
            1px solid
            var(--lt-line);

        font-size: 7px;
    }

    .lt-ending-actions > *:last-child {
        border-bottom: 0;
    }


    /* =====================================================
       FOOTER
    ===================================================== */

    .lt-footer {
        flex-direction: row;

        justify-content: space-between;

        padding:
            24px
            6%
            calc(
                24px +
                env(safe-area-inset-bottom)
            );

        gap: 15px;

        font-size: 6px;
        line-height: 1.4;
    }

    .lt-footer span:last-child {
        max-width: 52%;

        text-align: right;
    }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 390px) {

    .last-take-page .navbar nav a {
        font-size: 7px;
        letter-spacing: .085em;
    }

    .lt-gateway h1 {
        font-size: 19vw;
    }

    .lt-hero h1 {
        font-size: 20vw;
    }

    .lt-panel h2 {
        font-size: 11.5vw;
    }

    .lt-ending h2 {
        font-size: 20vw;
    }

    .lt-director-card {
        grid-template-columns: 1fr;
    }

    .lt-director-card-cell {
        border-right: 0;

        border-bottom:
            1px solid
            rgba(255,255,255,.08);
    }

    .lt-director-card-cell:last-child {
        border-bottom: 0;
    }

}


/* =========================================================
   MOBILE LANDSCAPE
========================================================= */

@media
(max-height: 520px)
and
(orientation: landscape) {

    .last-take-page .navbar {
        padding-top: 14px;

        grid-template-columns:
            auto
            1fr;

        gap: 28px;

        align-items: center;
    }

    .last-take-page .navbar nav {
        justify-content: flex-end;

        gap: 17px;
    }

    .lt-gateway {
        display: block;

        padding-top:
            calc(
                22px +
                env(safe-area-inset-top)
            );
    }

    .lt-gateway-inner {
        margin: 0 auto;
    }

    .lt-gateway h1 {
        margin:
            25px
            0
            20px;

        font-size: 12vw;
    }

    .lt-gateway-bottom {
        margin-top: 25px;
    }

    .lt-hero {
        min-height: 150svh;
    }

    .lt-hero h1 {
        font-size: 12vw;
    }

    .lt-game {
        padding-top: 90px;
    }

    .lt-final-inner {
        padding:
            12px
            4%;
    }

    .lt-final-frame {
        margin:
            10px
            0;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .lt-gateway,
    .lt-cut,
    .lt-final-visual,
    .lt-rec::before {
        animation: none !important;
    }

}