@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap");

.game-12years-wrapper {
    --bg: #E9ECF1;
    --card: #ffffff;
    --purple: #965df5;
    --text: #070C1D;
    --muted: #95afdb;
    --accent: #c6f526;
    --accent-dark: #a8de1f;
    --radius: 24px;
    --shadow: 0 12px 28px rgba(20, 23, 33, 0.08);
    --lynch: #6c7a89;
    font-family: "Inter", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.game-12years-wrapper * {
    box-sizing: border-box;
}

.game-12years-wrapper a {
    color: var(--color-violet);
    text-decoration: underline;
}

.game-12years-wrapper .game-page {
    padding: 32px 24px 80px;
    max-width: 1512px;
    margin: 0 auto;
}

.game-12years-wrapper .hero {
    background: var(--purple);
    border-radius: var(--radius);
    padding: 48px 56px;
    min-height: clamp(360px, 28vw, 540px);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
}

.game-12years-wrapper .hero-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
    flex-direction: row;
    padding-right: 0;
}

.game-12years-wrapper .hero-logo {
    flex: 0 0 min(480px, 44%);
    display: flex;
    justify-content: flex-end;
    order: 2;
    padding-right: 0;
}

.game-12years-wrapper .hero-logo img {
    max-width: 530px;
    max-height: 800px;
    object-fit: contain;
}

.game-12years-wrapper .hero-text {
    flex: 1;
    color: #fff;
    /* max-width: 640px; */
    margin-left: 0;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    padding-left: 0;
    order: 1;
}

.game-12years-wrapper .hero-title {
    margin: 0 0 16px 0;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
    /* max-width: 620px; */
    color: #ffffff;
}

.game-12years-wrapper .hero-lead {
    margin: 0 0 28px 0;
    font-size: 24px;
    line-height: 1.6;
    font-weight: 400;
    max-width: 560px;
    opacity: 0.9;
}

.game-12years-wrapper .hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
    align-self: flex-start;
}

.game-12years-wrapper .btn {
    border: none;
    border-radius: 999px;
    padding: 0 22px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    height: 72px;
    min-width: 208px;
}

.game-12years-wrapper .btn-primary {
    background: var(--accent);
    color: #070C1D;
    box-shadow: 0 8px 18px rgba(25, 25, 25, 0.12);
    font-size: 26px;
    font-weight: 500;
}

.game-12years-wrapper .btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.game-12years-wrapper .btn-primary:active {
    transform: translateY(0);
}

.game-12years-wrapper .section {
    margin-top: 28px;
}

.game-12years-wrapper .card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 32px 40px;
    box-shadow: var(--shadow);
}

.game-12years-wrapper .card h2 {
    margin: 0 0 8px 0;
    text-align: center;
    font-size: 40px;
    width: 100%;
}

.game-12years-wrapper .muted {
    color: #65758B;
    margin: 0 0 20px 0;
    text-align: center;
    font-size: 20px;
    width: 100%;
}

.game-12years-wrapper .progress {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
    min-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.game-12years-wrapper .progress-track {
    width: min(520px, 90%);
    height: 16px;
    background: #E9ECF1;
    border-radius: 999px;
    overflow: hidden;
}

.game-12years-wrapper .progress-fill {
    height: 100%;
    width: 0%;
    background: #AC87F9;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.game-12years-wrapper .map-wrap {
    position: relative;
    padding: 28px 4px 12px;
    margin: auto;
}

.game-12years-wrapper .map-grid {
    display: grid;
    grid-template-columns: repeat(4, 200px);
    gap: 116px 116px;
    justify-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.game-12years-wrapper .day {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: transparent;
    border: none;
    position: relative;
    cursor: default;
    padding: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 2;
}

.game-12years-wrapper .day-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.game-12years-wrapper .day-lock {
    position: absolute;
    width: 75px;
    height: 75px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.85;
}

.game-12years-wrapper .day-locked {
    cursor: default;
}

.game-12years-wrapper .day-locked .day-icon {
    filter: grayscale(1) brightness(0.9);
}

.game-12years-wrapper .day-locked .day-lock {
    display: block;
}

.game-12years-wrapper .day-unlocked {
    cursor: pointer;
}

.game-12years-wrapper .day-unlocked .day-icon {
    filter: none;
}

.game-12years-wrapper .day-unlocked .day-lock {
    display: none;
}

.game-12years-wrapper .day.is-active {
    box-shadow: 0 10px 24px rgba(130, 106, 255, 0.25);
    animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}

.game-12years-wrapper .way-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.game-12years-wrapper .way-line {
    position: absolute;
    height: 10px;
    transform-origin: 0 50%;
}

.game-12years-wrapper .modal {
    position: fixed;
    inset: 0;
    background: rgba(7, 12, 25, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    padding: 24px;
    z-index: 10000;
}

.game-12years-wrapper .modal.open {
    opacity: 1;
    pointer-events: auto;
}

.game-12years-wrapper .modal-card {
    background: #fff;
    border-radius: 24px;
    width: min(744px, 100%);
    height: auto;
    max-height: min(564px, 100%);
    padding: 32px;
    position: relative;
    z-index: 10001;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.game-12years-wrapper .card-route {
    padding-bottom: 28px;
}

.game-12years-wrapper .debug {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px dashed #e3e7ee;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.game-12years-wrapper .debug-title {
    font-weight: 600;
    color: var(--muted);
}

.game-12years-wrapper .debug-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.game-12years-wrapper .debug-value {
    min-width: 32px;
    text-align: center;
    font-weight: 700;
}

.game-12years-wrapper .btn-ghost {
    background: transparent;
    color: #070C1D;
    border: 1px solid rgba(27, 31, 42, 0.2);
}

.game-12years-wrapper .btn-ghost:hover {
    background: rgba(27, 31, 42, 0.06);
}

.game-12years-wrapper .btn-compact {
    padding: 8px 14px;
    font-size: 14px;
}

.game-12years-wrapper .modal-close {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #e9edf4;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.game-12years-wrapper .modal-head {
    margin-bottom: 0;
    height: 56px;
    display: flex;
    align-items: center;
}

.game-12years-wrapper .modal-day {
    background: #eef1f6;
    width: 160px;
    height: 48px;
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.game-12years-wrapper .modal-day span:last-child {
    color: #C1CBD7;
}

.game-12years-wrapper .modal-day.is-final span:last-child {
    color: #070C1D;
}

.game-12years-wrapper .modal-body {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: #f6f8fb;
    border-radius: 20px;
    padding: 20px;
    width: 100%;
    max-width: 680px;
    margin-top: 17px;
    margin-bottom: 17px;
    flex: 1;
}

.game-12years-wrapper .modal-image {
    display: flex;
    justify-content: center;
    flex: 0 0 auto;
    width: 300px;
}

.game-12years-wrapper .modal-image img {
    width: 300px;
    height: 300px;
    object-fit: contain;
}

.game-12years-wrapper .modal-chapter {
    color: var(--lynch);
    font-weight: 400;
    font-size: 14px;
}

.game-12years-wrapper .modal-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    margin-top: 4px;
}

.game-12years-wrapper .modal-description {
    margin: 0 0 28px 0;
    color: #4a5261;
    font-size: 14px;
    line-height: 1.6;
}

.game-12years-wrapper .modal-task-title {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-12years-wrapper .modal-task-text {
    color: #4a5261;
    font-size: 14px;
    margin-top: 10px;
    line-height: 1.6;
}

.game-12years-wrapper .modal-action {
    margin-top: auto;
    width: 100%;
    font-size: 26px;
    font-weight: 500;
}

.game-12years-wrapper .modal-text {
    padding-left: 18px;
    padding-top: 6px;
}

.game-12years-wrapper .task-icon {
    width: 24px;
    height: 24px;
    display: block;
}

@media (max-width: 1280px) {
    .game-12years-wrapper .map-grid {
        grid-template-columns: repeat(3, 200px);
    }
}

@media (max-width: 1100px) {
    .game-12years-wrapper .hero-inner {
        flex-direction: column;
        align-items: flex-start;
        padding-right: 0;
    }

    .game-12years-wrapper .hero-logo {
        width: 100%;
        justify-content: flex-start;
        order: 2;
    }

    .game-12years-wrapper .hero-logo img {
        max-width: 600px;
        max-height: 540px;
    }

    .game-12years-wrapper .hero-text {
        margin-left: 0;
        order: 1;
        min-height: 0;
    }

    .game-12years-wrapper .map-grid {
        grid-template-columns: repeat(2, 200px);
    }

    .game-12years-wrapper .day {
        width: 180px;
        height: 180px;
    }

    .game-12years-wrapper .modal-body {
        flex-direction: column;
        text-align: center;
    }

    .game-12years-wrapper .modal-image img {
        width: 340px;
        height: 340px;
    }

    .game-12years-wrapper .hero-title {
        font-size: 36px;
    }

    .game-12years-wrapper .hero-lead {
        font-size: 18px;
    }

    .game-12years-wrapper .card h2 {
        font-size: 32px;
    }

    .game-12years-wrapper .muted {
        font-size: 18px;
    }
}

@media (max-width: 720px) {
    .game-12years-wrapper .game-page {
        padding: 20px 14px 60px;
    }

    .game-12years-wrapper .card {
        padding: 24px 20px;
    }

    .game-12years-wrapper .hero {
        padding: 28px 24px;
        min-height: auto;
    }

    .game-12years-wrapper .hero-logo {
        justify-content: center;
    }

    .game-12years-wrapper .hero-logo img {
        width: min(900px, 100%);
        max-height: 400px;
        object-fit: contain;
    }

    .game-12years-wrapper .hero-actions {
        width: 100%;
        margin-bottom: -115px;
    }

    .game-12years-wrapper .hero-actions .btn-primary {
        width: 100%;
        min-width: 0;
    }

    .game-12years-wrapper .map-grid {
        grid-template-columns: repeat(2, 160px);
        gap: 116px 116px;
    }

    .game-12years-wrapper .day {
        width: 160px;
        height: 160px;
    }

    .game-12years-wrapper .modal-card {
        height: auto;
        max-height: 86vh;
    }

    .game-12years-wrapper .modal-image {
        order: 1;
        width: 100%;
    }

    .game-12years-wrapper .modal-text {
        order: 2;
    }

    .game-12years-wrapper .modal-action {
        order: 3;
        margin-top: 0;
    }

    .game-12years-wrapper .modal-body {
        width: 100%;
        height: auto;
        flex: 0 0 auto;
        margin-bottom: 12px;
    }

    .game-12years-wrapper .modal-image img {
        width: 240px;
        height: 240px;
    }

    .game-12years-wrapper .modal-chapter,
    .game-12years-wrapper .modal-title,
    .game-12years-wrapper .modal-task-title {
        text-align: center;
    }

    .game-12years-wrapper .modal-task-title {
        justify-content: center;
    }

    .game-12years-wrapper .modal-description,
    .game-12years-wrapper .modal-task-text {
        text-align: left;
        padding-left: 30px;
        padding-right: 12px;
    }

    .game-12years-wrapper .hero-title {
        font-size: 30px;
    }

    .game-12years-wrapper .hero-lead {
        font-size: 16px;
    }

    .game-12years-wrapper .card h2 {
        font-size: 26px;
    }

    .game-12years-wrapper .muted {
        font-size: 16px;
    }
}

@media (max-width: 500px) {
    .game-12years-wrapper .way-layer {
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 1;
        zoom: 0.92;
        transform: translateX(20px);
    }

    .game-12years-wrapper .day {
        width: 130px;
        height: 130px;
    }

    .game-12years-wrapper .map-grid {
        gap: 80px 80px;
    }

    .game-12years-wrapper .card {
        padding-left: 0;
        padding-right: 0;
    }
    .game-12years-wrapper .progress {
        min-width: 300px;
    }
}
@media (max-width: 430px) {
    .game-12years-wrapper .muted{
        padding-left: 20px;
        padding-right: 20px;
    }
    .game-12years-wrapper .way-layer {
        zoom: 1;
        transform: translateX(-17px);
    }

    .game-12years-wrapper .day {
        width: 110px;
        height: 110px;
    }

    .game-12years-wrapper .map-grid {
        gap: 70px 70px;
        margin-left: -20px;
    }

    .game-12years-wrapper .card {
        padding-left: 0;
        padding-right: 0;
    }
    .game-12years-wrapper .progress {
        min-width: 260px;
    }
}

