:root {
    color-scheme: dark;
    font-family: system-ui, sans-serif;
    background: #0a100d;
    color: #f4efdd;
    --muted: #ded9c6;
    --accent: #e6c879;
    --line: #5d6249;
    --panel: #151c15;
    --panel-gradient: linear-gradient(125deg, #282f1d, var(--panel) 70%);
    --zone-art: url("assets/zone-background.webp");
    --gutter: clamp(1rem, 4vw, 5rem);
    --content-width: 1600px;
}

* { box-sizing: border-box; }
body { margin: 0; }
.studio-home {
    background: linear-gradient(180deg, #0a100d22, transparent 18rem, #0a100d55 45rem, #0a100d 80rem),
                var(--zone-art) center top / max(100%, 90rem) auto no-repeat;
}
@media (min-width: 54rem) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .studio-home {
        background-attachment: scroll, fixed;
    }
}
a { color: inherit; }
a:focus-visible, button:focus-visible, .screenshots:focus-visible, .game-carousel:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shell { margin-inline: max(var(--gutter), calc((100% - var(--content-width)) / 2)); }

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 4.7rem;
    padding: 0.85rem clamp(0rem, 1.5vw, 1.75rem);
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent, #edbf6a 17%, #777452 60%, transparent) 1;
}

.wordmark { display: inline-flex; align-items: center; gap: 0.7rem; font-size: clamp(1rem, 2vw, 1.75rem); font-weight: 750; text-decoration: none; }
.studio-mark {
    width: 1.55em;
    height: 1.55em;
    flex: none;
    color: var(--accent);
    filter: drop-shadow(0 0 0.35rem #ecc25165);
}
.languages { display: flex; gap: 0.25rem; }
.languages button {
    padding: 0.44rem 0.85rem;
    border: 1px solid #565e464d;
    border-radius: 0.65rem;
    background: #0a130d99;
    color: var(--muted);
    font: inherit;
    cursor: pointer;
}
.languages button[aria-pressed="true"] {
    border-color: #b99240;
    color: #fff0bd;
    box-shadow: inset 0 0 0.65rem #a680363d, 0 0 0.7rem #c6982926;
}

h1 { margin: 2.8rem 0 1.15rem; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.045em; }
.studio-home h1 {
    margin: clamp(1.8rem, 3vw, 3rem) 0 clamp(1.2rem, 2vw, 2rem);
    padding-inline-start: clamp(0rem, 1.5vw, 1.75rem);
    font-size: clamp(2.45rem, 4.6vw, 4.4rem);
    line-height: 1;
    text-shadow: 0 0.1em 0.5em #000a;
}
.studio-home h1::after, .contact h2::after, .legal-page h1::after {
    content: "";
    display: block;
    width: min(24rem, 75%);
    height: 0.65rem;
    margin-top: 1rem;
    background: repeating-linear-gradient(130deg, #d2a748 0 0.53rem, transparent 0.55rem 0.92rem) left center / 3.6rem 100% no-repeat,
                linear-gradient(90deg, #d2a748, transparent) 4.6rem center / calc(100% - 4.6rem) 1px no-repeat;
}
h2 { margin: 0; line-height: 1.12; }
p { color: var(--muted); line-height: 1.6; }

.game {
    border: 1px solid transparent;
    border-radius: 1.3rem;
    background: linear-gradient(100deg, #141e12f7 8%, #151f16eb 58%, #111c14bb),
                var(--zone-art) center 65% / cover padding-box,
                linear-gradient(128deg, #e7b45a, #4c5745 23% 85%, #d69d47) border-box;
    background-clip: padding-box, padding-box, border-box;
    box-shadow: inset 0 1px 0 #f4dc921f, 0 0.75rem 2rem #0005;
}
.game, .contact, .play { position: relative; }
.game::after, .contact::after, .play::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(ellipse at 7% 0%, #e9ac3f26, transparent 18%),
                radial-gradient(ellipse at 95% 100%, #d893331a, transparent 19%);
}
.play::after {
    background: radial-gradient(ellipse at 50% 100%, #ecb4393b, transparent 55%);
}
.featured {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 38%);
    align-items: center;
    gap: clamp(1.25rem, 3vw, 3rem);
    padding: clamp(1rem, 2.1vw, 2.5rem);
}
.featured-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: clamp(0.8rem, 2vw, 1.6rem);
}
.game-icon {
    display: block;
    width: clamp(4rem, 9.3vw, 9.75rem);
    height: auto;
    border-radius: 18%;
    border: 1px solid #ad8c42;
}
.featured-summary .game-actions, .compact .game-actions { grid-column: 1 / -1; }
.featured h2 { font-size: clamp(1.35rem, 2.6vw, 2.6rem); letter-spacing: -0.035em; }
.featured-label {
    display: inline-block;
    margin-bottom: 0.55rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid #a7894a;
    border-radius: 0.35rem;
    background: #3b321b;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 700;
}
.screenshots {
    display: flex;
    min-width: 0;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
}
.screenshots img {
    display: block;
    flex: none;
    width: calc((100% - 1.5rem) / 3);
    min-width: 7.25rem;
    height: auto;
    aspect-ratio: 9 / 14;
    object-fit: cover;
    border: 1px solid #9c8a55;
    border-radius: 0.9rem;
    scroll-snap-align: start;
}
.game-copy p { max-width: 52ch; margin: 0.85rem 0 1.25rem; }
.game-copy:has(+ .play-stats) p { margin-bottom: 0; }
.game .play-stats {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    margin: 0;
    color: #f4efdd;
    font-size: 0.875rem;
    line-height: 1.35;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}
.play-metric { display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap; }
.play-metric + .play-metric { border-inline-start: 1px solid #aa894d85; padding-inline-start: 0.65rem; }
.play-metric svg {
    width: 1.05em;
    height: 1.05em;
    flex: none;
    color: var(--accent);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.play-metric-rating { color: var(--accent); font-weight: 750; }
.play-metric-rating svg { fill: currentColor; stroke: none; }
.play {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 1rem;
    border: 1px solid #e1b955;
    border-radius: 0.8rem;
    background: linear-gradient(180deg, #41442a, #22291a);
    color: #fff8da;
    box-shadow: inset 0 1px 0 #f9df9250, 0 0 0.75rem #d8ab2426;
    font-weight: 750;
    text-decoration: none;
}
.play:hover { background: var(--accent); color: #141612; }
.play::before {
    content: "";
    width: 1.3em;
    aspect-ratio: 1;
    background: conic-gradient(from 0deg, #41d66b 0 30%, #ffcc42 30% 43%, #f15858 43% 61%, #39b9ff 61%);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.featured .play { font-size: clamp(1rem, 1.45vw, 1.45rem); padding-inline: 1.15em; }
.game-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem 1rem; }
.document-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.875rem;
    text-underline-offset: 0.2em;
}
.document-link:hover { color: var(--accent); }
.document-icon {
    width: 1.15rem;
    height: 1.15rem;
    flex: none;
    color: #e6d6a5;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.game-carousel {
    display: flex;
    gap: clamp(0.85rem, 1.4vw, 1.4rem);
    margin-top: clamp(1rem, 1.5vw, 1.5rem);
    padding: 0.3rem 0.3rem 0.65rem;
    margin-inline: -0.3rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 0.3rem;
    scrollbar-width: thin;
    scrollbar-color: #71775e transparent;
}
.compact {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    grid-template-rows: 1fr auto;
    flex: 0 0 min(clamp(23rem, 37vw, 39rem), 89%);
    gap: clamp(0.85rem, 1.3vw, 1.4rem);
    padding: clamp(1rem, 1.75vw, 1.9rem);
    scroll-snap-align: start;
}
.compact img { width: clamp(3.4rem, 6.4vw, 6.75rem); aspect-ratio: 1; object-fit: cover; border: 1px solid #9c8048; border-radius: 18%; }
.compact p { margin: 0.5rem 0 0; }
.compact:has(.play-stats) { grid-template-rows: 1fr auto auto; }
.compact h2 { font-size: clamp(1.2rem, 1.65vw, 1.75rem); }

.player-reviews { margin-top: clamp(2rem, 4vw, 4rem); }
.reviews-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem; }
.reviews-heading h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -0.035em; }
.reviews-heading p { margin: 0.4rem 0 0; }
.review-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; }
.review-controls button { cursor: pointer; }
.review-controls .contact-button { justify-content: center; min-width: 2.75rem; min-height: 2.75rem; }
.review-controls button[aria-pressed="true"] { border-color: var(--accent); }
.review-pages { display: flex; gap: 0.1rem; }
.review-pages button {
    padding: 0.45rem 0.3rem;
    border: 0;
    background: transparent;
    color: #68634e;
}
.review-pages button::before { content: ""; display: block; width: 0.5rem; aspect-ratio: 1; border-radius: 50%; background: currentColor; }
.review-pages button[aria-current="page"] { color: var(--accent); }
.review-track {
    --review-columns: 3;
    --review-gap: 0.75rem;
    --review-inset: 0.375rem;
    display: flex;
    align-items: stretch;
    gap: var(--review-gap);
    margin: 0.8rem 0 0;
    padding: var(--review-inset) var(--review-inset) 0.65rem;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--review-inset);
    scrollbar-width: thin;
    scrollbar-color: #85794a transparent;
}
.review-track:focus-visible { outline: 2px solid var(--accent); }
.review-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 calc((100% - (var(--review-columns) - 1) * var(--review-gap)) / var(--review-columns));
    min-width: 0;
    padding: 0.85rem 1rem;
    border: 1px solid #7b704d;
    border-radius: 0.85rem;
    background: linear-gradient(140deg, #283020, #121b12 75%);
    scroll-snap-align: start;
}
.review-score { color: var(--accent); font-weight: 750; }
.review-original, .review-translation { margin: 0.35rem 0 0.65rem; color: inherit; line-height: 1.45; overflow-wrap: anywhere; }
.review-original-details { margin-bottom: 0.55rem; color: var(--muted); font-size: 0.875rem; }
.review-original-details summary { cursor: pointer; width: fit-content; }
html[lang="uk"] .review-card[data-original-lang="uk"] .review-translation,
html[lang="en"] .review-card[data-original-lang="en"] .review-translation,
html[lang="uk"] .review-card[data-original-lang="uk"] .review-original-details,
html[lang="en"] .review-card[data-original-lang="en"] .review-original-details,
html[lang="uk"] .review-card:not([data-original-lang="uk"]) > .review-original,
html[lang="en"] .review-card:not([data-original-lang="en"]) > .review-original { display: none; }
.review-card a { align-self: start; margin-top: auto; color: var(--accent); text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.contact-scene {
    padding-block: clamp(2.6rem, 6vw, 5.5rem) clamp(2rem, 5vw, 4.5rem);
}
.contact {
    padding: clamp(1rem, 2.5vw, 2.5rem);
    border: 1px solid #7b704d;
    border-radius: 1.35rem;
    background: linear-gradient(110deg, #172317f2, #111d16d9 60%, #101910a6) padding-box;
    box-shadow: inset 0 1px 1rem #e5ac4122, 0 0.75rem 2rem #0007;
}
.contact h2 { font-size: clamp(1.9rem, 3.6vw, 3.8rem); letter-spacing: -0.04em; }
.contact h2::after { width: 100%; }
.contact-topics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-block: clamp(1.3rem, 2vw, 2rem);
}
.contact-topics > div { padding-inline: clamp(0.85rem, 2vw, 2.25rem); }
.contact-topics > div:first-child { padding-inline-start: 0; }
.contact-topics > div:last-child { padding-inline-end: 0; }
.contact-topics > div + div {
    background: linear-gradient(transparent, #af8a4b 48%, transparent) left / 1px 100% no-repeat;
}
.contact h3 { margin: 0; font-size: clamp(1.1rem, 1.6vw, 1.6rem); }
.contact p { margin: 0.65rem 0 0; }
.contact-footer, .contact-email, .social-links, .social-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}
.contact-footer {
    gap: 1rem 1.4rem;
    padding-top: clamp(1rem, 2.2vw, 2rem);
    background: linear-gradient(90deg, #6c5839, #f5bd64 26%, #776746 37% 78%, #bf9556 87%, #695b3e) top / 100% 1px no-repeat;
}
.social-links {
    margin-inline-start: auto;
    justify-content: flex-end;
    gap: 0.6rem 1rem;
}
.social-buttons { justify-content: flex-end; }
.social-links h3 { font-size: 0.95rem; }
.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.62rem 0.75rem;
    border: 1px solid #85794a;
    border-radius: 0.7rem;
    background: linear-gradient(155deg, #283020ba, #121b12);
    color: #f4efdd;
    font: inherit;
    font-size: 0.95rem;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.contact-button[hidden] { display: none; }
#copy-email {
    border-color: #d9aa4a;
    background: linear-gradient(#494522, #262e16);
    box-shadow: inset 0 1px 0 #ffe39380, 0 0 0.8rem #d8ab2440;
    font-weight: 750;
    cursor: pointer;
}
.contact-button:is(a, button:enabled):hover { border-color: var(--accent); color: var(--accent); }
.email-icon, .copy-icon { color: var(--accent); flex: none; }
.email-icon { font-size: 1.15rem; }
.copy-icon {
    position: relative;
    width: 0.75rem;
    height: 0.9rem;
    margin-right: 0.2rem;
    border: 1px solid currentColor;
    border-radius: 0.15rem;
    background: #36371b;
    box-shadow: 0.18rem -0.18rem #36371b, 0.23rem -0.23rem currentColor;
}
.social-icon { display: grid; place-items: center; width: 1.2rem; height: 1.2rem; flex: none; font-weight: 800; line-height: 1; }
.tiktok { color: #fff; text-shadow: -1px 0 #40d8dc, 1px 1px #fa486b; font-size: 1.3rem; }
.youtube { background: #df2432; color: white; border-radius: 0.28rem; font-size: 0.65rem; }
.facebook { background: #1877f2; color: white; border-radius: 50%; }
.google-play { background: conic-gradient(#41d66b 0 30%, #ffcc42 30% 43%, #f15858 43% 61%, #39b9ff 61%); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.telegram { background: #40bcef; clip-path: polygon(0 40%, 100% 0, 79% 100%, 52% 67%, 34% 84%, 29% 62%); }
#copy-status { color: var(--muted); font-size: 0.9rem; }
#copy-status:not(:empty) { flex-basis: 100%; }
.legal-site {
    min-height: 100svh;
    padding-bottom: clamp(1.5rem, 5vw, 4rem);
    background: linear-gradient(180deg, #0a100d44, #0a100d 42rem),
                var(--zone-art) center top / max(100%, 70rem) auto no-repeat;
}
.legal-page {
    margin-block-start: clamp(1.25rem, 4vw, 3.25rem);
    padding: clamp(1rem, 3vw, 3rem);
    border: 1px solid #7b704d;
    border-radius: 1.25rem;
    background: linear-gradient(120deg, #1b2519f5, #101811f5 70%);
    box-shadow: inset 0 1px 0 #ffe0a043, 0 0.75rem 2rem #0006;
    overflow-wrap: anywhere;
}
.legal-page a { color: var(--accent); text-underline-offset: 0.2em; }
.legal-page h1 { margin: 0; font-size: clamp(2.15rem, 4vw, 4rem); line-height: 1.08; }
.legal-page h2 { margin: 1.9em 0 0.5em; font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
.legal-page p, .legal-page ul { max-inline-size: 105ch; line-height: 1.7; }
.legal-page .legal-game { margin: 0.85rem 0 1.7rem; color: var(--accent); font-weight: 650; }
.legal-page ul { padding-inline-start: 1.35em; }
.legal-page li { color: var(--muted); margin-block: 0.3rem; }
.legal-page li::marker { color: var(--accent); }

@media (max-width: 64rem) {
    .review-track { --review-columns: 2; }
    .featured { grid-template-columns: minmax(0, 1fr); }
    .screenshots {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: min(100%, 36rem);
        justify-self: center;
        overflow: visible;
    }
    .screenshots img { width: 100%; min-width: 0; aspect-ratio: auto; }
    .game-carousel {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-inline: 0;
        padding-inline: 0;
        overflow: visible;
    }
    .contact h2 { text-align: center; }
    .contact-footer, .social-links { flex-direction: column; }
    .social-links { margin-inline-start: 0; }
    .contact-email, .social-buttons { justify-content: center; }
    #copy-status { text-align: center; }
}

@media (max-width: 44rem) {
    .review-track { --review-columns: 1; }
    .screenshots { display: none; }
    .game-carousel { grid-template-columns: minmax(0, 1fr); }
    .featured-summary, .compact { gap: 0.85rem; }
    .game-actions { gap: 0.65rem 0.85rem; }
    .play-metric + .play-metric { border-inline-start: 0; padding-inline-start: 0; }
    .contact-topics { grid-template-columns: 1fr; }
    .contact-topics > div { padding-inline: 0; }
    .contact-topics > div + div { background: none; border-top: 1px solid #a88b4c60; margin-top: 1rem; padding-top: 1rem; }
}

@media (max-width: 24rem) {
    .site-header { gap: 0.55rem; }
    .wordmark { gap: 0.35rem; }
    .languages button { padding-inline: 0.55rem; }
    .featured-summary, .compact { grid-template-columns: minmax(0, 1fr); }
    .contact-button { padding-inline: 0.55rem; }
}
