/* Playga — Neobrutalism theme (gaming / youth, muted palette) */

:root {
    --bg: #EDE8DF;
    --bg-pattern: #E0DAD0;
    --surface: #FFFFFF;
    --surface-2: #F5F2EC;
    --text: #1C1C28;
    --muted: #5C5C72;
    --border: #1C1C28;
    --shadow: #1C1C28;
    --accent: #8B7CF6;
    --accent-hover: #7A6AE8;
    --accent-2: #4ECDC4;
    --accent-text: #1C1C28;
    --gold: #D4A843;
    --gold-bg: #FFF8E7;
    --error: #D64545;
    --error-bg: #FFE8E8;
    --success: #3D9970;
    --success-bg: #E8F8EF;
    --info-bg: #E8F4FF;
    --info-text: #2B6CB0;
    --radius: 12px;
    --radius-sm: 8px;
    --border-w: 3px;
    --shadow-offset: 5px;
    --font: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    background-image:
        radial-gradient(circle, var(--bg-pattern) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--text);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
}

/* ── Legacy aliases (glass → neo-card) ── */

.glass,
.neo-card {
    background: var(--surface);
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius);
}

.glow,
.neo-shadow {
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow);
}

.neo-card--accent {
    background: var(--accent);
    color: var(--accent-text);
}

/* ── Buttons ── */

.neo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.9375rem;
    line-height: 1.2;
    color: var(--accent-text);
    background: var(--accent);
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow);
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    text-decoration: none;
}

.neo-btn:hover {
    background: var(--accent-hover);
    transform: translate(-2px, -2px);
    box-shadow: calc(var(--shadow-offset) + 2px) calc(var(--shadow-offset) + 2px) 0 var(--shadow);
}

.neo-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 var(--shadow);
}

.neo-btn:disabled,
.neo-btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow);
}

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

.neo-btn--secondary:hover {
    background: var(--surface-2);
}

.neo-btn--gold {
    background: var(--gold);
}

.neo-btn--gold:hover {
    background: #C99A38;
}

.neo-btn--full {
    width: 100%;
}

/* ── Chips / tags ── */

.neo-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 999px;
    box-shadow: 3px 3px 0 var(--shadow);
    cursor: default;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.neo-chip--interactive {
    cursor: pointer;
}

.neo-chip--interactive:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--shadow);
}

.neo-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--info-bg);
    color: var(--info-text);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 2px 2px 0 var(--shadow);
    white-space: nowrap;
}

.neo-badge--gold {
    background: var(--gold-bg);
    color: #8B6914;
}

.neo-badge--purple {
    background: #EDE9FE;
    color: #5B4BB4;
}

/* ── Inputs ── */

.neo-input,
input.neo-input,
select.neo-input,
textarea.neo-input {
    width: 100%;
    padding: 10px 14px;
    min-height: 44px;
    font-family: var(--font);
    font-size: 0.9375rem;
    color: var(--text);
    background: var(--surface);
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 3px 3px 0 var(--shadow);
    outline: none;
    transition: box-shadow 0.12s ease, transform 0.12s ease;
}

.neo-input:focus {
    box-shadow: 4px 4px 0 var(--accent);
    transform: translate(-1px, -1px);
}

.neo-input::placeholder {
    color: var(--muted);
}

.neo-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 6px;
}

.neo-error {
    color: var(--error);
    font-size: 0.875rem;
    font-weight: 500;
}

.neo-alert {
    padding: 12px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--error-bg);
    color: var(--error);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 3px 3px 0 var(--shadow);
}

/* ── Header ── */

.neo-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface);
    border-bottom: var(--border-w) solid var(--border);
    box-shadow: 0 var(--shadow-offset) 0 var(--shadow);
}

.neo-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 0.375rem;
    text-decoration: none;
    color: var(--text);
    line-height: 1;
}

a.neo-logo:hover .neo-logo__accent {
    color: var(--accent-2);
}

.neo-logo__text {
    font-size: clamp(1.375rem, 3.5vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    text-transform: lowercase;
}

.neo-logo__text::first-letter {
    text-transform: uppercase;
}

.neo-logo__accent {
    color: var(--accent-hover);
    transition: color 0.15s ease;
}

.neo-logo__dot {
    width: 0.5rem;
    height: 0.5rem;
    margin-bottom: 0.125rem;
    flex-shrink: 0;
    background: var(--accent-2);
    border: 2px solid var(--border);
    border-radius: 999px;
    box-shadow: 2px 2px 0 var(--shadow);
}

.neo-header a:not(.neo-logo) {
    text-decoration: none;
}

/* ── Page shell ── */

.neo-page {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem 4rem;
}

.neo-main {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Section system ── */

.neo-section {
    scroll-margin-top: 8.5rem;
    margin-bottom: 3.5rem;
}

.neo-section--compact {
    margin-bottom: 2rem;
}

.neo-section__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: var(--border-w) solid var(--border);
}

.neo-section__eyebrow {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-hover);
    background: #EDE9FE;
    border: 2px solid var(--border);
    border-radius: 999px;
}

.neo-panel {
    padding: 1.75rem;
}

@media (min-width: 768px) {
    .neo-panel {
        padding: 2rem 2.25rem;
    }
}

/* ── Tabs ── */

.neo-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
    margin-bottom: 2.5rem;
    background: var(--surface);
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow);
}

.neo-tabs--sticky {
    position: sticky;
    top: 4.75rem;
    z-index: 40;
}

.neo-tab {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-width: 7rem;
    padding: 0.75rem 1rem;
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text);
    background: transparent;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.neo-tab__icon {
    font-size: 1rem;
    line-height: 1;
}

.neo-tab:hover {
    background: var(--surface-2);
    border-color: var(--border);
}

.neo-tab--active,
.neo-tab[aria-selected="true"] {
    background: var(--accent);
    border-color: var(--border);
    box-shadow: 3px 3px 0 var(--shadow);
}

/* ── Hero v2 ── */

.neo-hero-v2 {
    position: relative;
    padding: 2rem 0 1rem;
    overflow: hidden;
}

.neo-hero-v2__deco {
    position: absolute;
    border: var(--border-w) solid var(--border);
    box-shadow: 4px 4px 0 var(--shadow);
    pointer-events: none;
    z-index: 0;
}

.neo-hero-v2__deco--1 {
    top: -2rem;
    right: -3rem;
    width: 10rem;
    height: 10rem;
    background: var(--accent);
    border-radius: var(--radius);
    transform: rotate(12deg);
    opacity: 0.85;
}

.neo-hero-v2__deco--2 {
    bottom: 1rem;
    left: -2rem;
    width: 6rem;
    height: 6rem;
    background: var(--accent-2);
    border-radius: 999px;
    opacity: 0.75;
}

.neo-hero-v2__deco--3 {
    top: 40%;
    right: 18%;
    width: 4rem;
    height: 4rem;
    background: var(--gold);
    border-radius: var(--radius-sm);
    transform: rotate(-8deg);
    opacity: 0.8;
}

.neo-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .neo-hero-grid {
        grid-template-columns: 1.05fr 0.95fr;
        align-items: stretch;
        gap: 1.5rem;
    }
}

.neo-hero-intro {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .neo-hero-intro {
        padding: 2rem 2.25rem;
    }
}

.neo-hero-intro__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.neo-hero-intro__text {
    margin-top: 0.875rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--muted);
    max-width: 36rem;
}

.neo-hero-intro__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.625rem;
    margin-top: 1.5rem;
}

.neo-stat {
    padding: 0.75rem 0.625rem;
    text-align: center;
    background: var(--surface-2);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 3px 3px 0 var(--shadow);
}

.neo-stat__value {
    display: block;
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.1;
}

.neo-stat__label {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.2;
}

/* ── Featured card (Steam) ── */

.neo-feature-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    text-align: left;
    font-family: var(--font);
    color: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.neo-feature-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: calc(var(--shadow-offset) + 3px) calc(var(--shadow-offset) + 3px) 0 var(--shadow);
}

.neo-feature-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.neo-feature-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.neo-feature-card__title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
}

.neo-feature-card__arrow {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    font-weight: 800;
    background: var(--accent);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 2px 2px 0 var(--shadow);
}

.neo-feature-card__text {
    font-size: 0.9375rem;
    color: var(--muted);
    line-height: 1.5;
}

.neo-feature-card__cta {
    margin-top: auto;
    align-self: flex-start;
    pointer-events: none;
}

/* ── Split layouts ── */

.neo-split {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .neo-split--form {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 2rem;
    }
}

.neo-form-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.neo-input-row {
    display: flex;
    gap: 0.625rem;
    align-items: stretch;
}

.neo-input-row .neo-input {
    flex: 1;
    min-width: 0;
}

/* ── Media frames (unified images) ── */

.neo-media {
    position: relative;
    overflow: hidden;
    background: var(--surface-2);
    border: var(--border-w) solid var(--border);
}

.neo-media--card {
    aspect-ratio: 16 / 10;
}

.neo-media--portrait {
    aspect-ratio: 4 / 5;
    max-height: 22rem;
}

.neo-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.neo-media--portrait img {
    object-fit: contain;
    padding: 1rem;
    background: linear-gradient(160deg, #FFF8E7 0%, #EDE9FE 100%);
}

.neo-media__tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1;
}

.neo-media-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.neo-media-panel__note {
    width: 100%;
    padding: 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    font-size: 0.875rem;
    box-shadow: 3px 3px 0 var(--shadow);
}

.neo-media-panel__note strong {
    font-weight: 800;
}

.neo-media-panel__note span {
    color: var(--muted);
    font-size: 0.8125rem;
}

/* ── Game grid & cards ── */

.neo-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .neo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .neo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.neo-game-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.neo-game-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
    cursor: pointer;
}

.neo-game-card__body {
    padding: 1.125rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex: 1;
}

.neo-game-card__title {
    font-size: 1.0625rem;
    font-weight: 800;
    line-height: 1.25;
}

.neo-game-card__desc {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.45;
}

.game-item:hover,
.neo-game-card.game-item:hover {
    transform: translate(-3px, -3px);
    box-shadow: calc(var(--shadow-offset) + 3px) calc(var(--shadow-offset) + 3px) 0 var(--shadow);
    background: var(--accent);
    color: var(--accent-text);
}

.game-item:hover .neo-badge,
.neo-game-card.game-item:hover .neo-badge {
    background: var(--surface);
    color: var(--text);
}

.game-item:hover .neo-game-card__desc,
.neo-game-card.game-item:hover .neo-game-card__desc {
    color: var(--accent-text);
    opacity: 0.88;
}

.game-item:hover .neo-media img,
.neo-game-card.game-item:hover .neo-media img {
    transform: scale(1.04);
}

.game-item__img-wrap {
    border-bottom: var(--border-w) solid var(--border);
    overflow: hidden;
}

.game-item__img-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.neo-game-card .neo-media {
    border-bottom: var(--border-w) solid var(--border);
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
}

.neo-game-card .neo-media img {
    transition: transform 0.2s ease;
}

/* ── Breadcrumb (game page) ── */

.neo-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.neo-breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}

.neo-breadcrumb a:hover {
    color: var(--accent-hover);
}

.neo-breadcrumb__sep {
    color: var(--muted);
    opacity: 0.5;
}

.neo-breadcrumb__current {
    color: var(--text);
}

.neo-checkout-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .neo-checkout-grid {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: start;
    }
}

.neo-checkout-aside {
    position: sticky;
    top: 5.5rem;
}

.neo-info-panel {
    padding: 1.5rem 1.75rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--muted);
}

.neo-hero-v2--sub {
    padding-top: 1.25rem;
    padding-bottom: 0;
}

.neo-hero-v2--sub .neo-hero-v2__deco--1 {
    width: 6rem;
    height: 6rem;
    top: -1rem;
    right: -1rem;
}

/* ── Popup / modal ── */

.popup-background {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    background: rgba(28, 28, 40, 0.55);
    backdrop-filter: blur(4px);
}

.popup-block {
    position: relative;
    z-index: 110;
    width: 100%;
    max-width: 32rem;
    padding: 28px 32px;
}

.popup-block-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.popup-block-form input {
    margin-bottom: 12px;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    line-height: 0;
    padding: 6px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 2px 2px 0 var(--shadow);
    cursor: pointer;
    transition: transform 0.12s ease;
}

.close-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--shadow);
}

.close-btn svg path {
    fill: var(--text);
    fill-opacity: 0.7;
}

/* ── Telegram Stars ── */

.tg-stars__btn {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tg-stars__btn button {
    min-height: 44px;
    flex: 1 1 calc(25% - 8px);
    min-width: 60px;
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    padding: 8px 12px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
    background: var(--surface);
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 3px 3px 0 var(--shadow);
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.tg-stars__btn button:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--shadow);
}

.tg-stars__btn button.active {
    background: var(--gold-bg);
    border-color: var(--border);
    box-shadow: 3px 3px 0 var(--gold);
}

.tg-stars__rate {
    min-height: 44px;
    padding: 8px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-weight: 700;
    color: #8B6914;
    background: var(--gold-bg);
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 3px 3px 0 var(--shadow);
}

/* ── Game page ── */

.game-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.game-denominations {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.denominations-btn {
    padding: 10px 18px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.875rem;
    background: var(--surface);
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 3px 3px 0 var(--shadow);
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.denominations-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--shadow);
}

.denominations-btn.active {
    background: var(--accent);
    color: var(--accent-text);
    box-shadow: 3px 3px 0 var(--shadow);
}

.game-pay-block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.game-result-block {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.game-pay-result {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: clamp(1.125rem, 4vw, 1.5rem);
    font-weight: 700;
}

.game-pay-result .result {
    color: var(--accent-hover);
}

/* ── Footer ── */

.neo-footer {
    margin-top: 48px;
    padding-top: 28px;
    border-top: var(--border-w) solid var(--border);
}

.neo-footer a {
    color: var(--text);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.12s ease;
}

.neo-footer a:hover {
    color: var(--accent-hover);
}

/* ── Legal pages ── */

.neo-legal {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 16px 80px;
    line-height: 1.75;
}

.neo-legal__header {
    margin-bottom: 32px;
    padding: 28px 32px;
    background: var(--surface);
    border: var(--border-w) solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow);
}

.neo-legal__date {
    color: var(--muted);
    font-size: 0.8125rem;
    font-weight: 500;
    margin: 0;
}

.neo-legal h1 {
    margin: 8px 0 12px;
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
}

.neo-legal__intro {
    color: var(--muted);
    margin: 0;
}

.neo-legal section {
    margin-bottom: 28px;
    padding: 20px 24px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 4px 4px 0 var(--shadow);
}

.neo-legal h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 10px;
}

.neo-legal p {
    margin: 0 0 8px;
}

.neo-legal ul {
    margin: 0;
    padding-left: 20px;
}

.neo-legal li {
    margin-bottom: 4px;
}

.neo-legal a {
    color: var(--accent-hover);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Section titles ── */

.neo-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.neo-section-sub {
    margin-top: 4px;
    font-size: 0.875rem;
    color: var(--muted);
}

a:has(.game-item),
a:has(.neo-game-card) {
    text-decoration: none;
    color: inherit;
    display: block;
}

.neo-tab:focus-visible,
.neo-feature-card:focus-visible,
.js-open-steam:focus-visible,
.neo-btn:focus-visible,
.neo-input:focus-visible,
.neo-chip--interactive:focus-visible,
.denominations-btn:focus-visible,
.tg-stars__btn button:focus-visible,
.close-btn:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.neo-header a {
    text-decoration: none;
}

.text-muted {
    color: var(--muted);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

@media (max-width: 640px) {
    .neo-logo__text {
        font-size: 1.25rem;
    }

    .neo-tabs--sticky {
        top: 4.25rem;
    }

    .neo-tab {
        min-width: calc(50% - 0.25rem);
        font-size: 0.8125rem;
        padding: 0.625rem 0.75rem;
    }

    .neo-hero-intro__stats {
        grid-template-columns: 1fr;
    }

    .neo-section__header .neo-btn {
        width: 100%;
    }

    .neo-input-row {
        flex-direction: column;
    }

    .popup-block {
        padding: 24px 20px;
    }

    .tg-stars__btn button {
        flex: 1 1 calc(50% - 8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
    }
}
