/* =========================================================
   MAROKO 21
   GŁÓWNY ARKUSZ STYLI
   DOCZELOWO: IPHONE 15 / 393 x 852
   ========================================================= */


/* =========================================================
   1. RESET
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    height: 100%;

    overflow: hidden;
}

body {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100dvh;

    margin: 0;
    padding: 0;

    background: #000;
    color: #fff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    overflow: hidden;

    overscroll-behavior: none;

    -webkit-overflow-scrolling: auto;
}

#app {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100dvh;

    overflow: hidden;
}


/* =========================================================
   2. WSPÓLNE EKRANY
   ========================================================= */

.screen {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100dvh;

    display: flex;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
}


/* =========================================================
   3. EKRAN WYBORU — 7 7 7
   ========================================================= */

#screen-choice {
    justify-content: center;
    align-items: center;

    padding:
        env(safe-area-inset-top) 20px env(safe-area-inset-bottom) 20px;

    background:
        radial-gradient(circle at center,
            #202020 0%,
            #0d0d0d 50%,
            #000000 100%);

    opacity: 1;
    visibility: visible;

    z-index: 50;
}

#screen-choice.hide {
    opacity: 0;
    visibility: hidden;
}

.choice-content {
    width: 100%;
    text-align: center;
}

.choice-content h1 {
    margin-bottom: 45px;

    font-size: 30px;
    font-weight: 300;

    letter-spacing: 3px;
}

.sevens {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 10px;
}

.seven {
    width: 95px;
    height: 125px;

    border:
        1px solid rgba(255, 255, 255, 0.3);

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.04);

    color: #fff;

    font-size: 82px;
    font-weight: 300;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.seven {
    animation:
        seven-pulse 2.2s ease-in-out infinite;
}

@keyframes seven-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.seven:active {
    transform: scale(0.94);

    animation: none;

    background:
        rgba(255, 255, 255, 0.10);
}

/* =========================================================
   4. EKRAN LOTNISKA
   ========================================================= */

#screen-next {
    opacity: 0;
    visibility: hidden;

    z-index: 20;
}

#screen-next.active {
    opacity: 1;
    visibility: visible;
}

.airport-scene {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background: #555;
}


/* =========================================================
   5. NIEBO
   ========================================================= */

.sky {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 62%;

    background:
        linear-gradient(to bottom,
            #07172b 0%,
            #102d49 34%,
            #496b7b 68%,
            #a7b8b8 88%,
            #f0a45f 100%);
}


/* =========================================================
   6. PAS I TEREN
   ========================================================= */

.runway {
    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 38%;

    background:
        linear-gradient(to bottom,
            #24472b 0%,
            #18351f 100%);

    z-index: 2;
}


/* Nawierzchnia pasa */

.runway::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(to bottom,
            #25282c 0%,
            #1d2024 55%,
            #17191c 100%);

    clip-path:
        polygon(42% 0%,
            58% 0%,
            100% 100%,
            0% 100%);
}


/* =========================================================
   7. ŚRODKOWE OZNAKOWANIE PASA
   ========================================================= */

.runway-center-line {
    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    background:
        repeating-linear-gradient(to bottom,
            #ffffff 0,
            #ffffff 11px,
            transparent 11px,
            transparent 38px);

    clip-path:
        polygon(49.85% 0%,
            50.15% 0%,
            51.3% 100%,
            48.7% 100%);

    opacity: 0.9;

    z-index: 3;
}


/* =========================================================
   8. ŚWIATŁA KRAWĘDZI PASA
   ========================================================= */

.runway-edge {
    position: absolute;

    top: 0;

    width: 2px;
    height: 100%;

    z-index: 4;

    background:
        repeating-linear-gradient(to bottom,
            rgba(220, 255, 180, 0.95) 0,
            rgba(220, 255, 180, 0.95) 3px,
            transparent 3px,
            transparent 18px);

    filter:
        drop-shadow(0 0 4px rgba(170, 255, 100, 0.8));
}

.runway-edge-left {
    left: 42%;

    transform-origin: top center;

    transform:
        skewX(-16deg);
}

.runway-edge-right {
    right: 42%;

    transform-origin: top center;

    transform:
        skewX(16deg);
}


/* =========================================================
   9. GŁÓWNY SAMOLOT
   ========================================================= */

.airplane {
    position: absolute;

    left: 50%;
    bottom: 30%;

    width: 230px;

    transform:
        translateX(-50%);

    z-index: 10;

    filter:
        drop-shadow(0 5px 8px rgba(0, 0, 0, 0.7));

    transition:
        bottom 5s cubic-bezier(0.25, 0.8, 0.25, 1),

        transform 5s cubic-bezier(0.25, 0.8, 0.25, 1),

        opacity 1.5s ease 3.8s;
}

.airplane img {
    display: block;

    width: 100%;
    height: auto;
}


/* Start samolotu */

.airplane.takeoff {
    bottom: 175%;

    transform:
        translateX(-50%) scale(0.12);

    opacity: 0;
}


/* =========================================================
   10. ZAGADKA 7 + 7 + 7 = 21
   ========================================================= */

.puzzle {
    position: absolute;

    top: 14%;
    left: 50%;

    transform:
        translateX(-50%);

    z-index: 20;

    width:
        min(86vw, 430px);

    padding:
        22px 20px 20px;

    text-align: center;

    background:
        rgba(10, 10, 14, 0.72);

    border:
        1px solid rgba(255, 255, 255, 0.22);

    border-radius: 20px;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.45);
}

.numbers {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;
}

.box {
    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(255, 255, 255, 0.45);

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.08);

    color: #ffffff;

    font-size: 30px;
    font-weight: 600;

    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.5);
}

.plus {
    color: #ffffff;

    font-size: 28px;
    font-weight: 400;
}

.equals {
    margin-top: 10px;

    color:
        rgba(255, 255, 255, 0.8);

    font-size: 24px;
}

.answers {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 10px;

    margin-top: 14px;
}

.answer {
    width: 76px;
    height: 58px;

    border:
        1px solid rgba(255, 193, 7, 0.75);

    border-radius: 14px;

    background:
        rgba(255, 193, 7, 0.12);

    color: #ffffff;

    font-size: 30px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 0 18px rgba(255, 193, 7, 0.15);

    -webkit-tap-highlight-color: transparent;

    animation:
        answer-pulse 2.2s ease-in-out infinite;
}

@keyframes answer-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.answer:active {
    transform: scale(0.94);

    animation: none;

    background:
        rgba(255, 193, 7, 0.25);
}

.hint {
    margin-top: 14px;

    color:
        rgba(255, 255, 255, 0.9);

    font-size: 18px;
    font-weight: 400;

    letter-spacing: 0.3px;
}

.puzzle.hide {
    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.15s ease,
        visibility 0.15s ease;
}


/* =========================================================
   11. EKRAN LOTU
   ========================================================= */

#screen-flight {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100dvh;

    display: flex;

    opacity: 0;
    visibility: hidden;

    background: #07172b;

    z-index: 100;
}

#screen-flight.active {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   12. KONTENER MAPY
   ========================================================= */

.flight-map-screen {
    position: relative;

    width: 100%;
    height: 100%;

    display: flex;

    flex-direction: column;

    background: #07172b;

    padding:
        env(safe-area-inset-top) 0 env(safe-area-inset-bottom) 0;

    overflow: hidden;
}

.flight-map-header {
    flex: 0 0 auto;

    width: 100%;

    padding:
        14px 20px 10px;

    text-align: center;

    color: #ffffff;

    background:
        linear-gradient(to bottom,
            rgba(7, 23, 43, 0.98),
            rgba(7, 23, 43, 0.78));

    z-index: 1000;
}

.flight-map-header span {
    display: block;

    margin-bottom: 5px;

    font-size: 12px;

    letter-spacing: 3px;

    opacity: 0.65;
}

.flight-map-header strong {
    display: block;

    font-size: 20px;

    letter-spacing: 1px;
}


/* =========================================================
   13. OBSZAR MAPY LEAFLET
   ========================================================= */

#flightMap {
    flex: 1;

    width: 100%;

    min-height: 0;
}

.leaflet-container {
    width: 100%;
    height: 100%;

    background: #9db5bf;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

.leaflet-control-attribution {
    font-size: 8px !important;
}


/* =========================================================
   14. IPHONE 15
   ========================================================= */

@media (max-width: 430px) {

    .choice-content h1 {
        margin-bottom: 45px;

        font-size: 30px;
    }

    .seven {
        width: 95px;
        height: 125px;

        font-size: 82px;
    }

    .airplane {
        width: 200px;
    }

    .puzzle {
        top: 11%;

        width: 88vw;

        padding:
            18px 14px 16px;

        border-radius: 18px;
    }

    .numbers {
        gap: 7px;
    }

    .box {
        width: 52px;
        height: 52px;

        font-size: 27px;
    }

    .plus {
        font-size: 25px;
    }

    .equals {
        margin-top: 8px;

        font-size: 22px;
    }

    .answers {
        gap: 7px;
    }

    .answer {
        width: 70px;
        height: 52px;

        font-size: 27px;
    }

    .hint {
        margin-top: 12px;

        font-size: 16px;
    }

    .flight-map-header {
        padding:
            14px 16px 10px;
    }

    .flight-map-header strong {
        font-size: 19px;
    }
}


/* =========================================================
   15. BARDZO MAŁE EKRANY
   ========================================================= */

@media (max-width: 360px) {

    .sevens {
        gap: 6px;
    }

    .seven {
        width: 88px;
        height: 116px;

        font-size: 76px;
    }

    .puzzle {
        width: 92vw;
    }

    .box {
        width: 48px;
        height: 48px;

        font-size: 25px;
    }

    .plus {
        font-size: 23px;
    }

    .answer {
        width: 66px;
        height: 48px;

        font-size: 25px;
    }
}

.poland-label {
    background: transparent;
    border: none;
}

.poland-label span {
    display: block;

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 1px;

    text-align: center;

    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 0 6px rgba(0, 0, 0, 0.8);

    white-space: nowrap;
}

.poland-label {
    background: transparent;
    border: none;
}

.poland-label span {
    display: block;

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 1px;

    text-align: center;

    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 0 6px rgba(0, 0, 0, 0.8);

    white-space: nowrap;
}

.agadir-label {
    background: transparent;
    border: none;
}

.agadir-label span {
    display: block;

    color: #ffffff;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 1px;

    text-align: center;

    white-space: nowrap;

    text-shadow:
        0 0 2px #000000,
        0 0 5px #000000,
        1px 1px 3px #000000;
}

.wroclaw-label {
    background: transparent;
    border: none;
}

.wroclaw-label span {
    display: block;

    color: #ffffff;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 1px;

    text-align: center;

    white-space: nowrap;

    text-shadow:
        0 0 2px #000000,
        0 0 5px #000000,
        1px 1px 3px #000000;
}

/* =========================================================
   SAMOLOT NA MAPIE
   ========================================================= */

.map-plane-icon {
    background: transparent !important;

    border: none !important;

    width: 36px !important;
    height: 36px !important;
}

.map-plane-icon img {
    display: block;

    width: 36px;
    height: 36px;

    object-fit: contain;

    transform-origin: center center;

    filter:
        drop-shadow(0 0 1px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 2px rgba(0, 0, 0, 0.65));
}

/* =========================================================
   EKRAN MAROKA
   ========================================================= */

#screen-morocco {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100dvh;

    display: flex;

    justify-content: center;
    align-items: center;

    background:
        linear-gradient(to bottom,
            #d88948 0%,
            #dca25e 35%,
            #f2d08b 100%);

    opacity: 0;
    visibility: hidden;

    z-index: 110;
}

#screen-morocco.active {
    opacity: 1;
    visibility: visible;
}

.morocco-content {
    text-align: center;

    color: #ffffff;

    padding:
        24px;
}

.morocco-title {
    font-size: 42px;

    font-weight: 700;

    letter-spacing: 7px;

    text-shadow:
        0 3px 12px rgba(0, 0, 0, 0.35);
}

.morocco-subtitle {
    margin-top: 10px;

    font-size: 24px;

    letter-spacing: 4px;

    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.3);
}


/* iPhone 15 */

@media (max-width: 430px) {

    .morocco-title {
        font-size: 38px;
        letter-spacing: 6px;
    }

    .morocco-subtitle {
        font-size: 22px;
    }
}

.morocco-content {
    border: none;

    background: transparent;

    color: #ffffff;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;

    animation:
        morocco-pulse 2.4s ease-in-out infinite;
}

@keyframes morocco-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.morocco-content:active {
    transform: scale(0.96);

    animation: none;
}

.morocco-content:active {
    transform: scale(0.96);
}

/* =========================================================
   EKRAN HERBATY
   ========================================================= */

#screen-tea {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100dvh;

    display: flex;

    justify-content: center;
    align-items: center;

    padding:
        env(safe-area-inset-top) 28px env(safe-area-inset-bottom) 28px;

    background:
        linear-gradient(to bottom,
            #7d331f 0%,
            #b85d2e 42%,
            #e7a45f 100%);

    opacity: 0;
    visibility: hidden;

    z-index: 120;
}

#screen-tea.active {
    opacity: 1;
    visibility: visible;
}

.tea-content {
    width: 100%;

    text-align: center;

    color: #ffffff;
}

.tea-title {
    font-size: 44px;
    font-weight: 700;

    letter-spacing: 7px;

    text-shadow:
        0 3px 12px rgba(0, 0, 0, 0.35);
}

.tea-subtitle {
    max-width: 330px;

    margin:
        18px auto 0;

    font-size: 22px;
    line-height: 1.45;

    font-weight: 400;

    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.3);
}


/* iPhone 15 */

@media (max-width: 430px) {

    .tea-title {
        font-size: 38px;

        letter-spacing: 6px;
    }

    .tea-subtitle {
        font-size: 21px;
    }
}

/* =========================================================
   EKRAN HOTELU
   ========================================================= */

#screen-hotel {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100dvh;

    display: flex;

    justify-content: center;
    align-items: center;

    padding:
        env(safe-area-inset-top) 24px env(safe-area-inset-bottom) 24px;

    background:
        linear-gradient(to bottom,
            #102d49 0%,
            #31566b 42%,
            #d18a50 100%);

    opacity: 0;
    visibility: hidden;

    z-index: 130;
}

#screen-hotel.active {
    opacity: 1;
    visibility: visible;
}

.hotel-content {
    width: 100%;
    max-width: 360px;

    text-align: center;

    color: #ffffff;

    padding: 28px 22px;

    border:
        1px solid rgba(255, 255, 255, 0.22);

    border-radius: 22px;

    background:
        rgba(10, 15, 20, 0.42);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.3);
}

.hotel-title {
    font-size: 27px;
    line-height: 1.25;

    font-weight: 700;
}

.hotel-location {
    margin-top: 8px;

    font-size: 18px;

    opacity: 0.85;

    letter-spacing: 1px;
}

.hotel-details {
    margin-top: 26px;

    display: flex;
    flex-direction: column;

    gap: 14px;
}

.hotel-detail {
    display: flex;

    flex-direction: column;

    gap: 4px;

    padding-bottom: 12px;

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

.hotel-detail:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hotel-detail span {
    font-size: 11px;

    letter-spacing: 2px;

    opacity: 0.65;
}

.hotel-detail strong {
    font-size: 18px;

    font-weight: 600;
}


/* iPhone 15 */

@media (max-width: 430px) {

    .hotel-content {
        padding:
            26px 18px;
    }

    .hotel-title {
        font-size: 25px;
    }

    .hotel-location {
        font-size: 17px;
    }

    .hotel-detail strong {
        font-size: 17px;
    }
}

/* =========================================================
   SPRINT 4 — ZDJĘCIE HOTELU
   ========================================================= */

.hotel-image-container {
    width: 100%;

    margin-bottom: 18px;

    overflow: hidden;

    border-radius: 18px;

    border:
        1px solid rgba(255, 255, 255, 0.18);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.35);

    display: block;

    text-decoration: none;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.hotel-image-container:active {
    transform: scale(0.98);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.45);
}

.hotel-image-container img {
    display: block;

    width: 100%;
    height: 210px;

    object-fit: cover;
}


/* iPhone 15 */

@media (max-width: 430px) {

    .hotel-image-container img {
        height: 190px;
    }
}

/* =========================================================
   PRZYCISK HOTELU
   ========================================================= */

.hotel-button {
    display: block;

    width: 100%;

    margin-top: 22px;

    padding: 14px 18px;

    border:
        1px solid rgba(255, 255, 255, 0.45);

    border-radius: 12px;

    background:
        rgba(255, 193, 7, 0.14);

    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    letter-spacing: 2px;

    text-align: center;

    text-decoration: none;

    box-shadow:
        0 0 18px rgba(255, 193, 7, 0.08);

    -webkit-tap-highlight-color: transparent;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.hotel-button:active {
    transform: scale(0.97);

    background:
        rgba(255, 193, 7, 0.26);
}