:root {
    --bg: #FEF7FF;
    --bg-raised: #F3EDF7;
    --bg-card: #FFFFFF;
    --line: #CAC4D0;
    --line-soft: #E7E0EC;
    --ink: #1C1B1F;
    --ink-dim: #49454F;
    --ink-faint: #79747E;
    --primary: #6750A4;
    --primary-hover: #553A91;
    --primary-soft: rgba(103, 80, 164, 0.08);
    --secondary: #625B71;
    --tag-bg: #E8DEF8;
    --tag-ink: #4A3780;
    --radius: 16px;
    --radius-sm: 10px;
    --maxw: 1160px;
    --display: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

h1, h2, h3, h4 {
    font-family: var(--display);
    line-height: 1.12;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 48px);
}

/* ── Eyebrow ── */

.eyebrow, .section-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
}

.eyebrow::before, .section-label::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--primary);
}

/* ── Buttons ── */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    background: var(--primary);
    padding: 11px 24px;
    border-radius: 999px;
    border: none;
    transition: background 0.18s ease, transform 0.18s ease;
}

.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-large { font-size: 16px; padding: 15px 32px; }

/* ── Header ── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(254, 247, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--line);
}

.brand .name {
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
}

/* ── Sections ── */

.section { padding: clamp(54px, 9vw, 100px) 0; }
.section + .section { padding-top: 0; }

/* ── Hero ── */

.hero { padding: clamp(56px, 10vw, 110px) 0; }

.hero .wrap {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(32px, 5.4vw, 56px);
    margin: 20px 0;
    line-height: 1.08;
}

.hero-copy h1 em { font-style: normal; color: var(--primary); }

.hero-copy > p {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--ink-dim);
    max-width: 520px;
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--ink-faint); }

/* ── Index card (hero sidebar) ── */

.index-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 4px 24px rgba(28, 27, 31, 0.06);
}

.ic-head {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faint);
    padding-bottom: 14px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line-soft);
}

.ic-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-soft);
}

.ic-row:last-child { border-bottom: none; }
.ic-row .k { font-size: 13px; color: var(--ink-dim); }

.ic-row .v {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.ic-row .v.alt { color: var(--primary); }

/* ── About card ── */

.about-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(20px, 4vw, 40px);
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(24px, 4vw, 44px);
    box-shadow: 0 4px 24px rgba(28, 27, 31, 0.06);
}

.ac-icon img {
    width: 112px;
    height: 112px;
    border-radius: 24px;
    border: 1px solid var(--line);
}

.about-card h3 { font-size: clamp(22px, 3vw, 28px); }

.tags {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-dim);
    margin: 12px 0 16px;
}

.about-card p { color: var(--ink-dim); line-height: 1.7; }

/* ── Section head ── */

.section-head {
    text-align: center;
    margin-bottom: clamp(34px, 5vw, 54px);
}

.section-head h2 {
    font-size: clamp(26px, 4.2vw, 42px);
    margin-top: 14px;
}

/* ── Game cards grid ── */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(256px, 1fr));
    gap: 22px;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.18s ease, transform 0.18s ease;
    box-shadow: 0 2px 12px rgba(28, 27, 31, 0.04);
}

.game-card:hover { border-color: var(--primary); transform: translateY(-2px); }

.game-card .img {
    position: relative;
    aspect-ratio: 16 / 11;
    background: var(--bg-raised);
    overflow: hidden;
}

.game-card .img img { width: 100%; height: 100%; object-fit: cover; }

.game-card .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tag-ink);
    background: var(--tag-bg);
    padding: 5px 11px;
    border-radius: 999px;
}

.game-card .meta { padding: 18px; }
.game-card .meta h4 { font-size: 18px; margin-bottom: 4px; }
.game-card .mech { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 14px; min-height: 18px; }

.card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
}

.stat .k {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 4px;
}

.stat .val { font-size: 16px; font-weight: 700; color: var(--ink); }
.stat .val.alt { color: var(--primary); }

.vol { display: inline-flex; gap: 3px; margin-top: 4px; }
.vol span { width: 7px; height: 7px; border-radius: 2px; background: var(--line); }
.vol span.on { background: var(--primary); }

/* ── Features ── */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.feature {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    box-shadow: 0 2px 12px rgba(28, 27, 31, 0.04);
}

.feature .ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 13px;
    background: var(--primary-soft);
    color: var(--primary);
    margin-bottom: 18px;
}

.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: var(--ink-dim); font-size: 15px; line-height: 1.65; }

/* ── Disclaimer ── */

.disclaimer { padding: 0 0 clamp(54px, 9vw, 100px); }

.disclaimer .inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-left: 3px solid var(--secondary);
    border-radius: var(--radius);
    padding: clamp(22px, 4vw, 34px);
    box-shadow: 0 2px 12px rgba(28, 27, 31, 0.04);
}

.disclaimer .ico { color: var(--secondary); flex-shrink: 0; padding-top: 2px; }
.disclaimer p { color: var(--ink-dim); font-size: 15px; line-height: 1.7; }
.disclaimer strong { color: var(--ink); font-weight: 600; }

/* ── Footer ── */

.site-footer {
    border-top: 1px solid var(--line-soft);
    padding: 40px 0;
    background: var(--bg-raised);
}

.site-footer .inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 14px;
}

.footer-brand img { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); }

.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 14px; color: var(--ink-dim); transition: color 0.16s ease; }
.footer-links a:hover { color: var(--primary); }

.footer-copy {
    width: 100%;
    font-size: 13px;
    color: var(--ink-faint);
    border-top: 1px solid var(--line-soft);
    padding-top: 16px;
    margin-top: 2px;
}

/* ── Policy pages ── */

.policy { padding: clamp(40px, 6vw, 72px) 0; }

.policy-wrap {
    max-width: 820px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(28px, 5vw, 56px);
    box-shadow: 0 4px 24px rgba(28, 27, 31, 0.06);
}

.policy-head { margin-bottom: 34px; padding-bottom: 26px; border-bottom: 1px solid var(--line-soft); }
.policy-head h1 { font-size: clamp(28px, 5vw, 42px); margin: 12px 0; }
.policy-updated { font-size: 13px; letter-spacing: 0.04em; color: var(--ink-faint); }

.policy-body h2 { font-size: 22px; margin: 32px 0 13px; }
.policy-body h3 { font-size: 18px; margin: 22px 0 10px; }
.policy-body h4 { font-size: 15px; margin: 18px 0 8px; color: var(--primary); }
.policy-body p { color: var(--ink-dim); margin-bottom: 14px; font-size: 15.5px; }
.policy-body ul { list-style: none; margin: 0 0 18px; }

.policy-body li {
    position: relative;
    padding-left: 22px;
    color: var(--ink-dim);
    margin-bottom: 10px;
    font-size: 15.5px;
}

.policy-body li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--primary);
}

.policy-body strong { color: var(--ink); font-weight: 600; }
.policy-email { color: var(--primary); border-bottom: 1px solid rgba(103, 80, 164, 0.35); }

/* ── Responsive ── */

@media (max-width: 860px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .index-card { max-width: 420px; }
}

@media (max-width: 600px) {
    .about-card { grid-template-columns: 1fr; text-align: center; }
    .ac-icon { justify-self: center; }
    .site-footer .inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
