:root {
    --color-page: #f5f7fb;
    --color-text: #1f2937;
    --color-muted: #5b6472;
    --color-panel: #ffffff;
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-accent: #f97316;
    --color-soft: #dbeafe;
    --color-border: #d7deea;
    --shadow: 0 14px 35px rgba(31, 41, 55, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--color-page);
    color: var(--color-text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.site-header {
    background: #172033;
    color: #ffffff;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0;
}

.brand {
    font-weight: 700;
    text-decoration: none;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nav-links a {
    color: #dbeafe;
    text-decoration: none;
}

.nav-links a:hover {
    color: #ffffff;
}

.support-hero,
.app-hero {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 64px;
}

.compact-header .support-hero {
    padding-bottom: 44px;
}

.support-hero h1,
.app-hero h1 {
    max-width: 760px;
    margin: 0 0 16px;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
}

.support-hero p,
.app-hero p {
    max-width: 720px;
    color: #dce6f7;
    font-size: 1.08rem;
}

.eyebrow {
    margin: 0 0 12px;
    color: #fbbf24;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-actions,
.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.stats-row span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button-primary {
    background: var(--color-primary);
    color: #ffffff;
}

.button-primary:hover {
    background: var(--color-primary-dark);
}

.button-secondary {
    background: #ffffff;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

.button-secondary:hover {
    border-color: var(--color-primary);
}

.page-content {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 56px;
}

.section-block,
.step-card,
.info-card,
.game-card,
.toolbar,
.notice {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-panel);
    box-shadow: var(--shadow);
}

.section-block,
.step-card {
    margin-bottom: 24px;
    padding: 24px;
}

.section-block h2,
.step-card h2 {
    margin-top: 0;
}

.tech-grid,
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.info-card,
.game-card {
    padding: 20px;
}

.info-card h3,
.game-card h3 {
    margin-top: 0;
}

.game-card {
    transition: transform 180ms ease, box-shadow 180ms ease;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(31, 41, 55, 0.18);
}

.game-image {
    display: block;
    width: calc(100% + 40px);
    height: 150px;
    margin: -20px -20px 18px;
    object-fit: cover;
    border-bottom: 1px solid var(--color-border);
}

.card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--color-soft);
    color: var(--color-primary-dark);
    font-size: 0.88rem;
    font-weight: 700;
}

.rating-label {
    color: var(--color-accent);
    font-weight: 700;
}

.card-link {
    display: inline-flex;
    margin-top: 8px;
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 18px;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1e3a8a;
    font-weight: 700;
}

.game-form {
    display: grid;
    gap: 16px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.game-form label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.game-form input,
.game-form textarea {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
}

.game-form input:focus,
.game-form textarea:focus {
    outline: 3px solid #bfdbfe;
    border-color: var(--color-primary);
}

.callout {
    border-color: #fed7aa;
    background: #fff7ed;
}

.tp-steps ul {
    padding-left: 22px;
}

pre {
    overflow-x: auto;
    border-radius: 8px;
    background: #111827;
    color: #e5e7eb;
    padding: 16px;
}

code {
    font-family: Consolas, Monaco, monospace;
}

.site-footer {
    padding: 24px 16px;
    background: #111827;
    color: #d1d5db;
    text-align: center;
}

.is-hidden {
    display: none;
}

@media (max-width: 700px) {
    .top-nav,
    .toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .support-hero,
    .app-hero {
        padding-top: 34px;
    }

    .section-block,
    .step-card {
        padding: 18px;
    }
}
