:root {
    --sidebar: #14120f;
    --sidebar-muted: #cfc6b8;
    --gold: #e2b340;
    --accent: #1f6feb;
    --accent-deep: #1856c4;
    --paper: #f6f4ef;
    --card: #fffdfb;
    --ink: #1c1915;
    --muted: #6d655c;
    --line: #e7e0d6;
    --shadow: 0 14px 40px rgba(28, 25, 21, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: Outfit, "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 100% 0%, rgba(31, 111, 235, 0.08), transparent 28%),
        var(--paper);
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

button, a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.sidebar :focus-visible { outline-color: var(--gold); }

.nav-toggle {
    display: none;
    position: fixed;
    z-index: 60;
    top: 12px;
    left: 12px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 14px;
    background: var(--sidebar);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(20, 18, 15, 0.28);
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 248px;
    z-index: 40;
    overflow: auto;
    background: var(--sidebar);
    color: #f6f1e8;
    padding: 28px 18px;
    box-shadow: 8px 0 30px rgba(20, 18, 15, 0.08);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    margin-bottom: 22px;
}

.brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex: 0 0 auto;
}

.brand span {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.35;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
}

.side-nav a {
    display: block;
    text-decoration: none;
    color: var(--sidebar-muted);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 14px;
    border-radius: 12px;
    border-left: 3px solid transparent;
}

.side-nav a:hover,
.side-nav a.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-left-color: var(--gold);
}

.shell { margin-left: 248px; min-height: 100vh; }

.wrap {
    width: min(1040px, calc(100% - 56px));
    margin: 0 auto;
}

section[id] { scroll-margin-top: 28px; }

.hero { padding: 56px 0 12px; }

.hero h1,
.section-head h2,
.game-desc h3,
.block-title,
.status-card h1 {
    font-family: Fraunces, Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.hero h1 {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.05;
    max-width: 12em;
}

.hero p {
    max-width: 38em;
    margin: 18px 0 28px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--muted);
}

.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

.btn-primary,
.btn-secondary,
.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
}

.btn-primary,
.btn-back {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover,
.btn-back:hover { background: var(--accent-deep); }

.btn-secondary {
    background: var(--card);
    color: var(--ink);
    border: 1.5px solid #d9d1c5;
}

.btn-secondary:hover { border-color: var(--ink); }

.hero-visual {
    margin-top: 36px;
    border-radius: 28px;
    overflow: hidden;
    background: #d7ecff;
    box-shadow: var(--shadow);
}

.hero-visual img { width: 100%; }

.section { padding: 64px 0; }

.section-head { margin-bottom: 28px; }

.section-head h2 {
    font-size: clamp(32px, 4vw, 44px);
    color: var(--ink);
}

.section-head h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 12px;
    border-radius: 3px;
    background: var(--gold);
}

.section-head p,
.lede {
    margin-top: 10px;
    color: var(--muted);
    font-size: 17px;
}

.about-card,
.advantage-item,
.game-band,
.contact-list,
.feature-item {
    background: var(--card);
    box-shadow: var(--shadow);
}

.about-card {
    border-radius: 24px;
    padding: 36px 40px;
}

.about-card > img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    margin-bottom: 18px;
}

.about-text p {
    font-size: 17px;
    line-height: 1.75;
    color: #3d3832;
    max-width: 68ch;
}

.about-text p + p { margin-top: 14px; }

.strength-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.advantage-item { border-radius: 20px; padding: 26px 24px 28px; }

.advantage-icon,
.feature-icon,
.contact-icon {
    display: grid;
    place-items: center;
    background: #e8f1ff;
}

.advantage-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    margin-bottom: 16px;
}

.advantage-icon svg,
.feature-icon svg,
.contact-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.advantage-item h3,
.feature-text h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.advantage-item p,
.feature-text p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}

.game-band {
    border-radius: 28px;
    padding: 28px;
}

.game-intro {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 22px;
}

.game-logo img {
    width: 100%;
    border-radius: 20px;
}

.game-desc h3 {
    font-size: 30px;
    margin-bottom: 12px;
    color: #1d4e89;
}

.game-desc p {
    font-size: 17px;
    line-height: 1.75;
    color: #3d3832;
}

.game-desc p + p { margin-top: 12px; }

.shots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 32px;
}

.shots img { width: 100%; border-radius: 16px; }

.block-title {
    font-size: 26px;
    margin-bottom: 16px;
}

.feature-list { display: grid; gap: 12px; }

.feature-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border-radius: 18px;
    padding: 18px 18px 18px 16px;
    border-left: 4px solid var(--gold);
}

.feature-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.contact-list { border-radius: 22px; overflow: hidden; }

.contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}

.contact-item:last-child { border-bottom: 0; }

.contact-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

.contact-item strong {
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a8176;
}

.contact-item span,
.contact-item a {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}

.contact-item a:hover { color: var(--accent); }

.payment-section { padding: 8px 0 56px; }

.payment-section img {
    width: min(520px, 100%);
    margin: 0 auto;
    background: var(--card);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.site-footer {
    padding: 8px 0 40px;
    color: var(--muted);
    font-size: 14px;
}

.site-footer a {
    color: var(--ink);
    text-decoration: none;
    margin-right: 16px;
}

.site-footer a:hover { color: var(--accent); }

.site-footer p + p { margin-top: 10px; }

.status-main {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 48px 24px;
}

.status-card {
    width: min(680px, 100%);
    background: var(--card);
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: var(--shadow);
    border-top: 6px solid var(--gold);
}

.status-card.is-success { border-top-color: #1f9d55; }
.status-card.is-failed { border-top-color: #d64545; }

.status-mark {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    background: #fff6e0;
    color: #a16207;
}

.status-card.is-success .status-mark { background: #e8f7ee; color: #157a3e; }
.status-card.is-failed .status-mark { background: #fdeeee; color: #c23535; }

.status-mark svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.status-card h1 { font-size: 34px; line-height: 1.15; }

.company-name {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
}

.status-card .message {
    margin: 22px 0 26px;
    font-size: 17px;
    line-height: 1.7;
    color: #4e473f;
}

.error-detail {
    margin: -6px 0 26px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff6e0;
    color: #7a5410;
    font-size: 15px;
    line-height: 1.6;
    word-break: break-word;
}

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }

    .sidebar {
        transform: translateX(-105%);
        visibility: hidden;
        padding-top: 72px;
        transition: transform 0.2s ease;
    }

    body.nav-open .sidebar {
        transform: none;
        visibility: visible;
    }

    body.nav-open { overflow: hidden; }

    .shell { margin-left: 0; padding-top: 72px; }

    .wrap { width: min(1040px, calc(100% - 32px)); }

    .strength-grid,
    .shots,
    .game-intro { grid-template-columns: 1fr; }

    .about-card,
    .game-band,
    .status-card { padding: 24px 20px; }

    .hero { padding-top: 12px; }

    .status-main { min-height: calc(100vh - 72px); }
}
