
/* ОСНОВНЫЕ НАСТРОЙКИ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: "Courier New", monospace;
    color: #ffffff;
    background-color: #10283d;
}

/* ВЕРХНЯЯ ПАНЕЛЬ */

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 7%;
    background-color: #081b2b;
    border-bottom: 2px solid #77bde0;
    font-size: 12px;
    letter-spacing: 2px;
}

.logo {
    color: #9edcff;
    font-weight: bold;
}

.status {
    color: #a5e6b0;
}

/* ГЛАВНЫЙ ЭКРАН */

.hero {
    min-height: 78vh;
    display: flex;
    align-items: center;
    padding: 70px 10%;
    position: relative;

    background:
    linear-gradient(
        90deg,
        rgba(5, 22, 37, 0.85),
        rgba(5, 22, 37, 0.15)
    ),
    url("assets/decorations/pixel-mountains.jpg")
    center / cover no-repeat;
}

.hero-content {
    max-width: 620px;
}

.eyebrow {
    color: #9edcff;
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 25px;
}

h1 {
    font-family: Georgia, serif;
    font-size: clamp(48px, 8vw, 94px);
    line-height: 0.95;
    color: #ffffff;
    text-shadow: 3px 3px 0 #285779;
}

.subtitle {
    color: #ffd58a;
    letter-spacing: 4px;
    margin-top: 25px;
    font-size: 15px;
}

.description {
    max-width: 470px;
    margin-top: 25px;
    line-height: 1.8;
    color: #d3e5f0;
    font-size: 14px;
}

/* КНОПКА */

.start-button {
    margin-top: 35px;
    padding: 17px 25px;
    background-color: #e4a64b;
    color: #142b3d;
    border: 2px solid #ffe0a4;
    font-family: inherit;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.start-button:hover {
    background-color: #ffd58a;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px #00000055;
}

/* PIXEL ART STYLE */

body {
    image-rendering: pixelated;
}

.start-button {
    border-radius: 0;
    box-shadow: 4px 4px 0 #071725;
    image-rendering: pixelated;
}

.start-button:active {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0 #071725;
}

.logo {
    text-shadow: 2px 2px #285779;
}

/* КООРДИНАТЫ */

.coordinates {
    position: absolute;
    right: 7%;
    bottom: 35px;
    color: #073e5d;
    font-size: 11px;
    line-height: 1.8;
    text-align: right;
}

/* НИЖНЯЯ ПАНЕЛЬ */

footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 7%;
    background-color: #081b2b;
    color: #91b5cb;
    font-size: 10px;
    letter-spacing: 1px;
}




/* EXPEDITION MAP */

.map-section {
    padding: 80px 7%;
    background: #10283d;
    text-align: center;
}

.section-heading h2 {
    font-family: Georgia, serif;
    font-size: clamp(28px, 5vw, 48px);
    color: #ffffff;
    margin: 15px 0;
}

.section-heading > p:last-child {
    color: #a9cce0;
    font-size: 14px;
}

/* MAP AREA */

.game-map {
    position: relative;
    max-width: 950px;
    height: 480px;
    margin: 45px auto 25px;
    overflow: hidden;

    background:
        linear-gradient(
            rgba(14, 45, 68, 0.2),
            rgba(14, 45, 68, 0.65)
        ),
        url("assets/decorations/pixel-mountains.jpg")
        center / cover no-repeat;

    border: 4px solid #75b8d8;
    box-shadow: 8px 8px 0 #071725;
}


/* MAP POINTS */

.map-point {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    padding: 12px;
    background: #173e5b;
    border: 3px solid #9edcff;
    box-shadow: 4px 4px 0 #071725;

    color: white;
    font-family: "Courier New", monospace;
    font-weight: bold;
    font-size: 11px;

    cursor: pointer;
    transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease;


}

.map-point:hover {
    transform: translateY(-6px);
    background: #28678e;
}

.point-icon {
    font-size: 30px;
}

.point-start {
    left: 8%;
    bottom: 12%;
}

.point-photos {
    left: 33%;
    top: 37%;
}

.point-diary {
    right: 29%;
    top: 17%;
}

.point-finish {
    right: 7%;
    top: 8%;
    border-color: #ffd58a;
}

/* CLIMBER */


/* CLIMBER MOVEMENT */

.climber {
    position: absolute;
    left: 12%;
    top: 78%;
    bottom: auto;
    width: 120px;
    z-index: 5;
    pointer-events: none;

    transform: translate(-50%, -50%);

    transition:
        left 0.9s ease-in-out,
        top 0.9s ease-in-out;
}

.climber img {
    display: block;
    width: 100%;
    height: auto;
    image-rendering: pixelated;

    animation: climber-bounce 1.2s infinite ease-in-out;
}

@keyframes climber-bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@media (max-width: 600px) {
    .climber {
        width: 85px;
    }
}

/* MESSAGE WINDOW */

.game-message {
    max-width: 950px;
    margin: 25px auto;
    padding: 20px;
    background: #081b2b;
    border: 2px solid #75b8d8;
    color: #ffffff;
    text-align: left;
    line-height: 1.7;
}

.game-message p {
    color: #ffd58a;
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 8px;
}

.game-message span {
    font-size: 13px;
    color: #c4dce9;
}

/* EXPEDITION PATH */

.path {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.path-dot {
    position: absolute;
    width: 9px;
    height: 9px;
    background: #ffd58a;
    border: 1px solid #fff0c7;
    box-shadow: 2px 2px 0 #071725;
    transform: rotate(45deg);
}

/* Расположение элементов тропы */

.path-dot:nth-child(1) {
    left: 15%;
    bottom: 24%;
}

.path-dot:nth-child(2) {
    left: 22%;
    bottom: 30%;
}

.path-dot:nth-child(3) {
    left: 29%;
    bottom: 39%;
}

.path-dot:nth-child(4) {
    left: 35%;
    bottom: 47%;
}

.path-dot:nth-child(5) {
    left: 42%;
    bottom: 51%;
}

.path-dot:nth-child(6) {
    left: 49%;
    bottom: 48%;
}

.path-dot:nth-child(7) {
    left: 56%;
    bottom: 56%;
}

.path-dot:nth-child(8) {
    left: 64%;
    bottom: 65%;
}

.path-dot:nth-child(9) {
    left: 72%;
    bottom: 72%;
}

.path-dot:nth-child(10) {
    left: 82%;
    bottom: 83%;
}



/* Посещённая контрольная точка */
.map-point.visited {
    background: rgba(245, 199, 94, 0.12);
    border-color: rgba(245, 199, 94, 0.75);
    box-shadow:
        0 0 5px rgba(245, 199, 94, 0.18),
        0 0 12px rgba(245, 199, 94, 0.12);

    color: #ffe4a1;
}

/* Убираем дополнительный символ */
.map-point.visited::after {
    content: none;
}
/* Заблокированная вершина */
.map-point.locked {
    opacity: 0.45;
    filter: grayscale(1);
    cursor: not-allowed;
    border-color: #718096;
    box-shadow: none;
}

/* Подсказка о блокировке */
.map-point.locked::after {
    content: " 🔒";
}


/* Анимация открытия вершины */
.map-point.unlocked {
    animation: summit-unlock 0.8s ease-out;
    border-color: #f5c75e;
    box-shadow:
        0 0 8px rgba(245, 199, 94, 0.3),
        0 0 18px rgba(245, 199, 94, 0.2);
}

@keyframes summit-unlock {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(245, 199, 94, 0);
    }

    45% {
        transform: scale(1.12);
        box-shadow: 0 0 22px rgba(245, 199, 94, 0.5);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 18px rgba(245, 199, 94, 0.2);
    }
}

/* =========================
   ЭКРАН ПОБЕДЫ
========================= */

.victory-screen {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;

    background:
    linear-gradient(rgba(5, 15, 35, 0.25), rgba(5, 15, 35, 0.25)),
    url("assets/decorations/victory-mountains.jpg") center / cover no-repeat;

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.victory-screen.show {
    opacity: 1;
    visibility: visible;
}

.victory-content {
    width: 100%;
    max-width: 650px;

    padding: 40px 30px;

    text-align: center;

   background: rgba(5, 15, 35, 0.65);
backdrop-filter: blur(2px);
    border: 2px solid #d9ad55;
    box-shadow: 0 0 25px rgba(217, 173, 85, 0.15);

    color: #e9f3ff;
}

.victory-label {
    color: #d9ad55;
    font-size: 12px;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.victory-content h1 {
    color: #f5d58a;
    font-size: 32px;
    margin-bottom: 15px;
}

.victory-flag {
    font-size: 55px;
    margin: 15px 0;
}

.victory-subtitle {
    color: #8fc9df;
    letter-spacing: 3px;
    font-size: 13px;
}

.victory-divider {
    width: 60%;
    height: 2px;
    background: #d9ad55;
    margin: 25px auto;
    opacity: 0.6;
}

.victory-greeting {
    line-height: 1.8;
    margin-bottom: 25px;
}

.victory-content h2 {
    color: #f5d58a;
    font-size: 24px;
    margin-bottom: 15px;
}

.victory-wish {
    line-height: 1.8;
    color: #b9cce0;
    margin-bottom: 30px;
}

#victoryClose {
    padding: 13px 22px;

    background: transparent;
    border: 1px solid #d9ad55;

    color: #f5d58a;
    font-family: inherit;
    cursor: pointer;

    transition: background 0.3s ease;
}

#victoryClose:hover {
    background: rgba(217, 173, 85, 0.15);
}

@media (max-width: 600px) {
    .victory-content {
        padding: 30px 18px;
    }

    .victory-content h1 {
        font-size: 24px;
    }

    .victory-content h2 {
        font-size: 20px;
    }

    .victory-label {
        letter-spacing: 2px;
    }
}

/* =========================
   ДНЕВНИК ЭКСПЕДИЦИИ
========================= */

.diary-screen {
    position: fixed;
    inset: 0;
    z-index: 900;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;

    background: rgba(5, 12, 25, 0.88);

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.diary-screen.show {
    opacity: 1;
    visibility: visible;
}

.diary-window {
    width: 100%;
    max-width: 720px;
    max-height: 85vh;

    background: #101f35;
    border: 2px solid #65b9d4;

    box-shadow: 0 0 25px rgba(101, 185, 212, 0.15);

    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.diary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 18px;

    background: #19334e;
    color: #8fc9df;

    font-size: 12px;
    letter-spacing: 2px;
}

#diaryClose {
    background: transparent;
    border: 1px solid #8fc9df;
    color: #8fc9df;

    padding: 5px 10px;
    cursor: pointer;
}

.diary-content {
    padding: 25px;
    overflow-y: auto;
}

.diary-title {
    text-align: center;
    margin-bottom: 25px;
}

.diary-title span {
    color: #d9ad55;
    font-size: 11px;
    letter-spacing: 3px;
}

.diary-title h1 {
    color: #eaf5ff;
    font-size: 25px;
    margin: 12px 0;
}

.diary-title p {
    color: #8da8c2;
    font-size: 13px;
}

.diary-status {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;

    padding: 15px;
    margin-bottom: 25px;

    background: #172b43;
    border: 1px solid #29445e;
}

.diary-status div {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.diary-status span {
    color: #8da8c2;
    font-size: 10px;
}

.diary-status strong {
    color: #d9ad55;
    font-size: 11px;
}

.diary-entry {
    padding: 18px;
    margin-bottom: 15px;

    background: #142840;
    border-left: 3px solid #d9ad55;
}

.entry-date {
    color: #65b9d4;
    font-size: 11px;
    letter-spacing: 2px;
}

.diary-entry h2 {
    color: #f5d58a;
    font-size: 18px;
    margin: 12px 0;
}

.diary-entry p {
    color: #c2d1df;
    font-size: 14px;
    line-height: 1.7;
}

.entry-note {
    display: block;
    margin-top: 14px;

    color: #8fc9a7;
    font-size: 12px;
    font-style: italic;
}

.diary-footer {
    padding: 15px 0 5px;
    text-align: center;

    color: #65b9d4;
    font-size: 11px;
    letter-spacing: 3px;
}

@media (max-width: 600px) {
    .diary-content {
        padding: 17px;
    }

    .diary-title h1 {
        font-size: 19px;
    }

    .diary-status {
        grid-template-columns: 1fr;
    }

    .diary-status div {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* =========================
   ФОТОАРХИВ
========================= */



.gallery-screen.show {
    opacity: 1;
    visibility: visible;
}


.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 18px;

    background: #19334e;
    color: #8fc9df;

    font-size: 12px;
    letter-spacing: 2px;
}

#galleryClose {
    background: transparent;
    border: 1px solid #8fc9df;
    color: #8fc9df;

    padding: 5px 10px;
    cursor: pointer;
}

.gallery-content {
    display: block;

    width: 100%;
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;

    padding: 22px;
    box-sizing: border-box;

    overflow-y: auto;
}

.gallery-title {
    text-align: center;
    margin-bottom: 25px;
}

.gallery-title span {
    color: #d9ad55;
    font-size: 11px;
    letter-spacing: 3px;
}

.gallery-title h1 {
    color: #eaf5ff;
    font-size: 28px;
    margin: 12px 0;
}

.gallery-title p {
    color: #8da8c2;
    font-size: 13px;
}

.gallery-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;

    padding: 12px 15px;
    margin-bottom: 20px;

    background: #172b43;
    border: 1px solid #29445e;

    color: #8fc9df;
    font-size: 11px;
    letter-spacing: 1px;
}

/* Сетка фотографий */

/* =========================
   ADAPTIVE PHOTO COLLAGE
========================= */

.photo-grid {
    display: grid;

    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    grid-auto-rows: 8px;
    grid-auto-flow: dense;

    gap: 12px;
    align-items: start;
    justify-content: stretch;
}

/* Карточка */

.photo-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;

    padding: 6px;

    background: #172b43;
    border: 1px solid #29445e;

    overflow: hidden;

    transition: border-color 0.25s ease;
}

.photo-card:hover {
    border-color: #d9ad55;
}

.photo-card.panorama {
    grid-column: span 2;
}

.photo-card img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;

    cursor: zoom-in;
}

.photo-card span {
    display: block;

    width: 100%;
    box-sizing: border-box;

    padding: 9px 4px 4px;

    color: #8fc9df;
    font-size: 11px;
    letter-spacing: 2px;
    text-align: center;

    white-space: nowrap;
    overflow: hidden;
}
/* Планшеты */

@media (max-width: 750px) {
    .photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
}

/* Телефоны */

@media (max-width: 500px) {
    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }
}

.photo-card:hover {
    border-color: #d9ad55;
    transform: translateY(-2px);
}



.gallery-footer {
    padding: 25px 0 5px;

    color: #65b9d4;
    font-size: 11px;
    letter-spacing: 3px;
    text-align: center;
}

/* ПРОСМОТР ФОТОГРАФИИ */

.gallery-window {
    position: relative;

    width: 100%;
    max-width: 1400px;

    height: 92vh;
    max-height: 1000px;

    background: #101f35;
    border: 2px solid #65b9d4;

    box-shadow: 0 0 25px rgba(101, 185, 212, 0.15);

    overflow: hidden;

    display: flex;
    flex-direction: column;
}
.gallery-lightbox {
    position: absolute;
    inset: 0;
    z-index: 10;

    display: none;
    justify-content: center;
    align-items: center;

    padding: 55px 20px 20px;
    box-sizing: border-box;

    background: rgba(5, 12, 25, 0.97);
}

.gallery-lightbox.show {
    display: flex;
}

.gallery-lightbox img {
    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 15px;

    padding: 7px 12px;

    background: transparent;
    border: 1px solid #8fc9df;

    color: #8fc9df;
    cursor: pointer;

    z-index: 11;
}

.lightbox-close:hover {
    color: #ffffff;
    border-color: #d9ad55;
}

.gallery-screen {
    position: fixed;
    inset: 0;
    z-index: 950;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 12px;
    box-sizing: border-box;

    background: rgba(5, 12, 25, 0.9);

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.3s ease, visibility 0.3s ease;
}