/* Digger Land — warm field palette */
:root {
    --bg-deep: #12100e;
    --bg-mid: #1c1814;
    --surface: #1f1b17;
    --surface-elevated: #262119;
    --border: #3a342c;
    --border-soft: #2e2923;
    --text: #f4efe6;
    --text-muted: #a89f94;
    --text-subtle: #8a8278;
    --accent: #c4713f;
    --accent-hover: #d88956;
    --accent-soft: rgba(196, 113, 63, 0.18);
    --telegram-bg: #1a2330;
    --telegram-border: #3d5270;
    --youtube-bg: #281a18;
    --youtube-border: #5c3830;
    --tiktok-bg: #18161c;
    --tiktok-border: #3a3248;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
    --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.35);
    --shadow-cta: 0 8px 28px rgba(196, 113, 63, 0.22);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--text);
    background-color: var(--bg-deep);
    background-image:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(196, 113, 63, 0.08), transparent 50%),
        radial-gradient(ellipse 80% 50% at 100% 100%, rgba(90, 70, 50, 0.12), transparent 45%),
        linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 55%, var(--bg-deep) 100%);
    min-height: 100dvh;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 20;
    display: flex;
    justify-content: flex-end;
    padding: calc(16px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) 8px calc(16px + env(safe-area-inset-left));
    pointer-events: none;
}

.site-header .lang-switch {
    pointer-events: auto;
}

.lang-switch {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.lang-switch a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: color 0.15s ease, background 0.15s ease;
}

.lang-switch a:hover {
    color: var(--text);
    background: var(--surface-elevated);
}

.lang-switch a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.page-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: calc(52px + env(safe-area-inset-top)) 18px calc(28px + env(safe-area-inset-bottom));
    display: grid;
    gap: 32px;
    align-items: start;
}

.main-stack {
    min-width: 0;
}

.container {
    max-width: 920px;
    margin: 0 auto;
    padding: 28px 20px 8px;
    text-align: center;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.12;
    color: var(--text);
}

h2 {
    color: var(--text-muted);
    font-weight: 400;
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    max-width: 32rem;
    margin: 14px auto 0;
    line-height: 1.45;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 22px;
}

.badges span {
    display: inline-block;
    padding: 7px 14px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

img.hero {
    width: 100%;
    max-width: 860px;
    border-radius: var(--radius-xl);
    margin-top: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.cta-block {
    margin-top: 30px;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-block p {
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0 0 18px;
    font-size: 1rem;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(145deg, #fff8f0 0%, #ebe4dc 100%);
    color: #1a1512;
    border-color: #c4bcb2;
    box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
    background: linear-gradient(145deg, #fff 0%, #f0ebe6 100%);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--surface-elevated);
    border-color: #4a433a;
}

.btn-store .btn-icon {
    background: #1a1512;
    color: #fff8f0;
}

.btn-telegram {
    background: var(--telegram-bg);
    border-color: var(--telegram-border);
}

.btn-telegram .btn-icon {
    background: #2aabee;
    color: #fff;
}

.btn-youtube {
    background: var(--youtube-bg);
    border-color: var(--youtube-border);
}

.btn-youtube .btn-icon {
    background: #e63b2e;
    color: #fff;
}

.btn-tiktok {
    background: var(--tiktok-bg);
    border-color: var(--tiktok-border);
}

.btn-tiktok .btn-icon {
    background: linear-gradient(135deg, #25f4ee 0%, #fe2c55 100%);
    color: #0a0a0a;
    font-size: 0.7rem;
}

.features {
    text-align: left;
    margin-top: 36px;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
    list-style: none;
    padding: 0;
}

.features li {
    position: relative;
    margin: 0;
    padding: 10px 0 10px 1.1rem;
    color: var(--text-muted);
    font-size: 0.98rem;
    border-bottom: 1px solid var(--border-soft);
}

.features li:last-child {
    border-bottom: 0;
}

.features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.15em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.85;
}

@media (min-width: 640px) {
    .features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 24px;
        max-width: 36rem;
    }

    .features li {
        border-bottom: 0;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .features li:nth-child(1),
    .features li:nth-child(2) {
        border-bottom: 1px solid var(--border-soft);
    }
}

.section {
    display: none;
}

#en {
    display: block;
}

#ua:target {
    display: block;
}

#ua:target ~ #en {
    display: none;
}

.shorts-aside {
    min-width: 0;
}

.shorts-aside h3 {
    margin: 0 0 14px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.shorts-aside h3 a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.shorts-aside h3 a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.shorts-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.shorts-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    aspect-ratio: 9 / 16;
    max-height: min(52vh, 420px);
}

.shorts-card--player {
    position: relative;
    overflow: hidden;
}

.shorts-player-host {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.shorts-player-host iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.shorts-next-btn {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    padding: 10px 18px;
    border: none;
    border-radius: 999px;
    font-family: var(--font-sans, system-ui, sans-serif);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #fff 0%, #e8e8e8 100%);
    color: #111;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.shorts-next-btn:hover {
    filter: brightness(1.05);
}

.shorts-next-btn[hidden] {
    display: none;
}

.shorts-status {
    font-size: 0.8125rem;
    color: var(--text-subtle);
    margin-top: 10px;
    line-height: 1.45;
}

.section-footer {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border-soft);
    text-align: center;
}

.section-footer p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-subtle);
    line-height: 1.5;
}

.section-footer .copyright {
    margin-top: 8px;
    color: var(--text-subtle);
    opacity: 0.92;
}

@media (min-width: 900px) {
    .page-shell {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
        column-gap: 36px;
    }

    .shorts-aside {
        position: sticky;
        top: calc(20px + env(safe-area-inset-top));
    }

    .shorts-card {
        max-height: min(72vh, 520px);
    }
}

@media (max-width: 899px) {
    .page-shell {
        grid-template-columns: 1fr;
    }

    .shorts-aside {
        order: -1;
    }

    .shorts-grid {
        flex-direction: column;
        align-items: center;
    }

    .shorts-card {
        width: min(260px, 88vw);
        max-height: min(68vh, 480px);
    }
}
