:root {
    --page-bg: #f3f8f5;
    --surface: #ffffff;
    --text: #10251a;
    --muted: #54675c;
    --border: #dbe8df;
    --accent: #16a34a;
    --accent-strong: #15803d;
    --dark: #0d2017;
    --font-display: ui-rounded, "Segoe UI", "Trebuchet MS", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--page-bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

:focus-visible {
    outline: 3px solid rgba(52, 211, 153, 0.65);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 10px;
    padding: 9px 14px;
    border-radius: 9px;
    background: #fff;
    color: var(--text);
    transform: translateY(-150%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: none;
}

.game-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: max-content;
}

.game-brand__mark {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(145deg, #34d399, #059669);
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
    line-height: 1;
    font-weight: 900;
    box-shadow: 0 6px 14px rgba(5, 150, 105, 0.28);
}

.game-brand__text {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.game-brand__text strong {
    color: #34d399;
}

.game-title {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-page-controls {
    position: absolute;
    z-index: 20;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 7px 18px;
    background: #254e38;
    color: #fff;
}

.game-title-slot {
    display: flex !important;
    min-width: 0;
    align-items: center;
}

.game-title-slot .game-title {
    display: inline-block;
    color: inherit;
}

.game-title__online {
    display: none;
}

.rules-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 28px;
    flex: 0 0 auto;
    width: max-content;
    margin: auto 16px auto auto;
    padding: 2px 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rules-link:hover {
    background: transparent;
    color: #34d399 !important;
    transform: none;
}

#game-container ._4d_6 {
    min-width: 0;
    flex: 1 1 auto;
}

#game-container ._61_0 {
    padding-top: 0;
    padding-bottom: 0;
}

#game-container ._61_1 {
    display: flex;
    height: 50px;
    flex-direction: row-reverse;
    align-items: center;
    gap: 8px;
}

#game-container ._61_3 {
    margin-bottom: 0;
    line-height: 1.2;
}

#game-container ._61_4,
#game-container ._61_5 {
    font-size: 20px;
    line-height: 1;
}

.game-screen {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 480px;
    background: #206046;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.game-content {
    background: var(--page-bg);
}

.game-content__inner {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 56px 0 72px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 0.91rem;
}

.breadcrumbs a {
    color: var(--accent-strong);
    font-weight: 700;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs__separator {
    color: #94a39a;
}

.game-copy {
    max-width: 780px;
}

.game-intro {
    margin-bottom: 52px;
    padding: 26px 30px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 8px 22px rgba(16, 37, 26, 0.06);
}

.game-intro p {
    margin: 0;
    color: #294438;
    font-size: 1.08rem;
}

.copy-section {
    margin-top: 48px;
    scroll-margin-top: 24px;
}

.copy-section h2,
.related-section h2 {
    margin: 0 0 20px;
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.copy-section p {
    margin: 0 0 16px;
    color: #344d41;
}

.copy-section ol,
.copy-section ul {
    margin: 0;
    padding-left: 1.4rem;
    color: #344d41;
}

.copy-section li {
    margin-bottom: 10px;
    padding-left: 4px;
}

.steps-list li::marker {
    color: var(--accent-strong);
    font-weight: 800;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-item {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 19px;
    cursor: pointer;
    font-weight: 780;
    line-height: 1.35;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary span {
    color: var(--accent-strong);
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.faq-item[open] summary span {
    transform: rotate(45deg);
}

.faq-item p {
    margin: 0;
    padding: 0 19px 18px;
    color: var(--muted);
}

.related-section {
    margin-top: 64px;
    padding-top: 54px;
    border-top: 1px solid var(--border);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.related-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 5px 16px rgba(16, 37, 26, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.related-card:hover {
    border-color: #b7d5c1;
    box-shadow: 0 13px 28px rgba(16, 37, 26, 0.11);
    transform: translateY(-3px);
}

.related-card img {
    width: 100%;
    aspect-ratio: 500 / 365;
    object-fit: cover;
    background: #206046;
}

.related-card__body {
    display: flex;
    min-height: 190px;
    flex-direction: column;
    padding: 20px;
}

.related-card__body strong {
    margin-bottom: 6px;
    font-family: var(--font-display);
    font-size: 1.12rem;
    line-height: 1.3;
}

.related-card__body > span:not(.related-card__action) {
    color: var(--muted);
    font-size: 0.94rem;
}

.related-card__action {
    margin-top: auto;
    padding-top: 16px;
    color: var(--accent-strong);
    font-weight: 800;
}

.game-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 28px max(24px, calc((100% - 1120px) / 2));
    background: var(--dark);
    color: #fff;
}

.game-footer p {
    margin: 0;
    color: #b9c9bf;
    text-align: right;
}

@media (max-width: 760px) {
    .game-title {
        font-size: 13px;
    }

    .rules-link {
        min-height: 26px;
        margin-right: 10px;
        padding-inline: 2px;
        font-size: 12px;
    }

    .game-screen {
        min-height: 430px;
    }

    .game-content__inner {
        width: min(100% - 28px, 1120px);
        padding: 40px 0 52px;
    }

    .game-intro {
        margin-bottom: 40px;
        padding: 21px;
    }

    .copy-section {
        margin-top: 40px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-card {
        display: grid;
        grid-template-columns: minmax(120px, 42%) 1fr;
    }

    .related-card__body {
        min-height: 0;
        padding: 16px;
    }

    .related-card__action {
        padding-top: 12px;
    }

    .game-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 28px 18px;
    }

    .game-footer p {
        text-align: left;
    }
}

@media (max-width: 430px) {
    .rules-link span:last-child {
        display: none;
    }

    .rules-link {
        width: 38px;
        padding: 0;
    }

    .related-card__body > span:not(.related-card__action) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
