*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --ink: #14061f;
    --ink-soft: #1e0b2e;
    --panel: #26103c;
    --panel-2: #32164d;
    --magenta: #ff2d95;
    --pink: #ff6bcb;
    --cyan: #3dfff3;
    --gold: #ffd84d;
    --lime: #b6ff4d;
    --violet: #9b5cff;
    --text: #f7f1ff;
    --muted: #c3b0d8;
    --line: rgba(255, 45, 149, 0.28);
    --glow-pink: 0 0 22px rgba(255, 45, 149, 0.45);
    --glow-cyan: 0 0 22px rgba(61, 255, 243, 0.35);
    --frame: 1200px;
    --rail: 216px;
    --round: 18px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', system-ui, sans-serif;
    background:
        radial-gradient(ellipse at 8% 0%, rgba(255, 45, 149, 0.18) 0%, transparent 42%),
        radial-gradient(ellipse at 92% 12%, rgba(61, 255, 243, 0.12) 0%, transparent 40%),
        var(--ink);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3 { font-family: 'Baloo 2', cursive; line-height: 1.15; letter-spacing: 0.01em; }

.sg-shell {
    width: 100%;
    max-width: var(--frame);
    margin: 0 auto;
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
}

.sg-rail {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px 16px;
    background: linear-gradient(180deg, #1c0830 0%, #12051c 100%);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 22px;
    z-index: 40;
}

.sg-brand {
    display: block;
    color: var(--text);
    background: #f6efe4;
    border-radius: 12px;
    padding: 8px 10px;
}
.sg-brand-mark { width: 100%; max-width: 176px; height: auto; }

.sg-rail-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
}

.sg-rail-nav ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.rail-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text);
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.18s, background 0.18s, box-shadow 0.18s;
}
.rail-link i { width: 18px; text-align: center; }
.rail-link:hover { transform: translateX(4px); color: var(--text); }

.rail-cyan { background: rgba(61, 255, 243, 0.08); }
.rail-gold { background: rgba(255, 216, 77, 0.08); }
.rail-pink { background: rgba(255, 45, 149, 0.1); }
.rail-lime { background: rgba(182, 255, 77, 0.08); }
.rail-violet { background: rgba(155, 92, 255, 0.1); }
.rail-shop { background: rgba(255, 45, 149, 0.16); }

.rail-cyan.is-current { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.rail-gold.is-current { border-color: var(--gold); }
.rail-pink.is-current { border-color: var(--magenta); box-shadow: var(--glow-pink); }
.rail-lime.is-current { border-color: var(--lime); }
.rail-violet.is-current { border-color: var(--violet); }

.rail-spotlight {
    margin-top: 8px;
    padding: 14px 12px;
    justify-content: center;
    background: linear-gradient(135deg, #ff2d95, #9b5cff);
    box-shadow: var(--glow-pink);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.rail-spotlight:hover,
.rail-spotlight.is-current {
    color: #fff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 28px rgba(255, 45, 149, 0.7);
}

.sg-stage { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.sg-canvas { flex: 1; padding: 28px 28px 48px; }

.kicker {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(61, 255, 243, 0.12);
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.lead { color: var(--muted); max-width: 680px; margin-top: 10px; }
.page-title { font-size: clamp(1.8rem, 4vw, 3rem); }
.block-gap { margin-top: 36px; }

.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
    align-items: center;
}
.store-badge {
    display: inline-flex;
    line-height: 0;
}
.store-badge img {
    height: 52px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: transform 0.18s;
    mix-blend-mode: screen;
}
.store-badge:hover img { transform: translateY(-3px); }

.store-badges-inline {
    margin-top: 0;
}
.game-cta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}
.game-cta-row-end {
    margin-top: 20px;
    justify-content: flex-start;
}

.stage-banner {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    min-height: 420px;
    display: grid;
    align-items: stretch;
    border: 1px solid var(--line);
}
.stage-banner-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.stage-banner-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 6, 31, 0.92) 0%, rgba(20, 6, 31, 0.55) 48%, rgba(20, 6, 31, 0.15) 100%);
}
.stage-banner-copy {
    position: relative;
    z-index: 1;
    padding: 42px 36px;
    max-width: 560px;
}
.stage-banner-copy h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.stage-banner-copy p { margin-top: 14px; color: #ead9f7; }

.welcome-strip {
    margin-top: 22px;
    padding: 16px 18px;
    border-left: 4px solid var(--gold);
    background: rgba(255, 216, 77, 0.08);
    border-radius: 0 14px 14px 0;
}

.bento {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
    margin-top: 28px;
}
.bento-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--round);
    padding: 22px;
}
.bento-card h2 { font-size: 1.45rem; margin-bottom: 10px; }
.chip-list { list-style: none; display: grid; gap: 10px; margin-top: 12px; }
.chip-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--muted);
}
.chip-list i { color: var(--magenta); margin-top: 4px; }

.text-go {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-weight: 700;
    color: var(--gold);
}
.shot-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}
.shot-row img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--line);
}

.about-split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    align-items: center;
}
.about-split img {
    width: 100%;
    border-radius: 24px;
    border: 1px solid var(--line);
    height: 420px;
    object-fit: cover;
}
.pillar-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 28px;
}
.pillar {
    background: var(--panel-2);
    border-radius: 16px;
    padding: 18px;
    border-top: 3px solid var(--magenta);
}
.pillar:nth-child(2) { border-top-color: var(--cyan); }
.pillar:nth-child(3) { border-top-color: var(--gold); }
.pillar h3 { font-size: 1.1rem; margin-bottom: 8px; }
.pillar p { color: var(--muted); font-size: 0.95rem; }

.game-masthead {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 22px;
    align-items: center;
    background: var(--panel);
    border-radius: 24px;
    padding: 22px;
    border: 1px solid var(--line);
}
.game-masthead > img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 22px;
}
.how-stack { display: grid; gap: 14px; margin-top: 18px; }
.how-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    background: var(--ink-soft);
    border-radius: 14px;
    padding: 14px 16px;
}
.how-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--magenta);
    font-family: 'Baloo 2', cursive;
    font-size: 1.2rem;
}
.feature-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.feature-pills article {
    padding: 16px;
    border-radius: 16px;
    background: var(--panel);
    border: 1px dashed rgba(61, 255, 243, 0.25);
}
.pet-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 16px;
}
.pet-card {
    background: var(--panel-2);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
}
.pet-card img { width: 100%; height: 210px; object-fit: cover; }
.pet-card h3 { padding: 12px 14px 4px; }
.pet-card p { padding: 0 14px 16px; color: var(--muted); font-size: 0.92rem; }

.faq-list { display: grid; gap: 10px; margin-top: 18px; }
.faq-item {
    background: var(--panel);
    border-radius: 14px;
    border: 1px solid var(--line);
    overflow: hidden;
}
.faq-q {
    width: 100%;
    text-align: left;
    background: transparent;
    color: var(--text);
    border: 0;
    padding: 16px 18px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.faq-q i { color: var(--gold); }
.faq-a {
    display: none;
    padding: 0 18px 16px;
    color: var(--muted);
}
.faq-item.is-open .faq-a { display: block; }
.faq-item.is-open { border-color: var(--magenta); }

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}
.contact-photo {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid var(--line);
}
.contact-stack { display: grid; gap: 12px; }
.contact-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 12px;
    align-items: center;
    background: var(--panel);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--line);
}
.iso-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    color: #14061f;
}
.iso-mail { background: var(--cyan); }
.iso-phone { background: var(--gold); }
.iso-pin { background: var(--pink); }
.contact-card h3 { font-size: 1rem; }
.contact-card p, .contact-card a { color: var(--muted); }

.shop-notes {
    list-style: none;
    display: grid;
    gap: 10px;
    margin: 18px 0 22px;
}
.shop-notes li {
    background: var(--ink-soft);
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--muted);
    display: flex;
    gap: 10px;
}
.shop-notes i { color: var(--cyan); margin-top: 3px; }

.currency-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.currency-chip {
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 700;
}
.currency-chip.is-on {
    background: var(--gold);
    color: #14061f;
    border-color: var(--gold);
}

.gem-scroll {
    max-height: 360px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 8px 10px 10px;
    margin-bottom: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.18);
    scrollbar-width: thin;
    scrollbar-color: var(--magenta) rgba(255, 255, 255, 0.08);
}
.gem-scroll::-webkit-scrollbar { width: 8px; }
.gem-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}
.gem-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--magenta), var(--violet));
    border-radius: 8px;
}
.gem-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.gem-tile {
    background: linear-gradient(180deg, #3a1760, #24103d);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 16px 14px 14px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.gem-tile img { width: 72px; height: 72px; margin: 0 auto 10px; object-fit: contain; }
.gem-tile.is-picked {
    border-color: var(--cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-4px);
}
.gem-name { font-weight: 800; }
.gem-cost { color: var(--gold); font-size: 1.15rem; margin-top: 4px; }

.booth {
    margin-top: 28px;
    background: var(--panel);
    border-radius: 24px;
    padding: 22px;
    border: 1px solid var(--line);
}
.booth h2 { margin-bottom: 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; }
.field input[type="text"],
.field input[type="email"] {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--ink);
    color: var(--text);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
}
.field input[readonly] { opacity: 0.8; }
.need { color: var(--magenta); }
.field-hint { min-height: 18px; color: #ff8fb7; font-size: 0.85rem; margin-top: 4px; }
.picked-box {
    border: 1px dashed rgba(255, 216, 77, 0.4);
    border-radius: 12px;
    padding: 12px;
    color: var(--muted);
}
.picked-box.has-pick { color: var(--gold); font-weight: 700; }

.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    cursor: pointer;
    background: var(--ink-soft);
}
.pay-opt.is-on { border-color: var(--cyan); background: rgba(61, 255, 243, 0.08); }
.pay-opt input { accent-color: var(--cyan); }
.agree-line { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.agree-line input { margin-top: 4px; }
.booth-go {
    width: 100%;
    margin-top: 8px;
    border: 0;
    border-radius: 14px;
    padding: 14px;
    font: inherit;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #14061f;
    background: linear-gradient(135deg, var(--gold), #ffe98a);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 216, 77, 0.25);
}
.shop-flash {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 45, 149, 0.15);
    border: 1px solid var(--magenta);
    display: flex;
    gap: 8px;
    align-items: center;
}
.gem-empty, .gem-wait { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 28px; }

.ticket {
    max-width: 560px;
    margin: 20px auto 0;
    background: var(--panel);
    border-radius: 24px;
    padding: 32px 28px;
    border: 1px solid var(--line);
    text-align: center;
}
.ticket-icon { font-size: 2.6rem; color: var(--cyan); margin-bottom: 8px; }
.ticket-icon.ok { color: var(--lime); }
.ticket-icon.bad { color: var(--magenta); }
.ticket-rows { margin: 20px 0; text-align: left; }
.ticket-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.ticket-row .lbl { color: var(--muted); }
.ticket-row .val.gold { color: var(--gold); font-weight: 800; }
.act-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.act {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
}
.act-main { background: var(--magenta); color: #fff; }
.act-main:hover { color: #fff; }
.act-ghost { border: 1px solid var(--line); color: var(--text); }
.count-num { font-size: 2rem; font-family: 'Baloo 2', cursive; color: var(--gold); margin: 8px 0; }

.sg-foot {
    padding: 24px 28px 32px;
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.18);
}
.sg-foot-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr 1fr;
    gap: 18px;
}
.sg-foot-brand { display: flex; gap: 12px; align-items: center; }
.sg-foot-brand img {
    width: 92px;
    background: #f6efe4;
    border-radius: 8px;
    padding: 4px 6px;
}
.sg-foot-brand strong, .sg-foot-brand span { display: block; }
.sg-foot-brand span { color: var(--muted); font-size: 0.86rem; }
.sg-foot-meta p { color: var(--muted); font-size: 0.9rem; }
.sg-foot-links { display: flex; flex-wrap: wrap; gap: 8px 12px; align-content: flex-start; }
.sg-foot-links a { color: var(--muted); font-size: 0.88rem; }
.sg-foot-copy { margin-top: 16px; color: #8d779f; font-size: 0.82rem; }

.tone-home .sg-rail { border-right-color: rgba(61, 255, 243, 0.35); }
.tone-about .sg-rail { border-right-color: rgba(255, 216, 77, 0.35); }
.tone-game .sg-rail { border-right-color: rgba(255, 45, 149, 0.45); }
.tone-faq .sg-rail { border-right-color: rgba(182, 255, 77, 0.35); }
.tone-contact .sg-rail { border-right-color: rgba(155, 92, 255, 0.4); }
.tone-shop .sg-rail { border-right-color: rgba(255, 45, 149, 0.55); }

@media (max-width: 980px) {
    .sg-shell { grid-template-columns: 1fr; }
    .sg-rail {
        position: sticky;
        top: 0;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 12px 16px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .sg-brand { flex: 1; }
    .sg-brand-mark { width: 140px; }
    .sg-rail-toggle { display: grid; place-items: center; }
    .sg-rail-nav { display: none; width: 100%; }
    .sg-rail-nav.is-open { display: block; }
    .sg-rail-nav ul { padding-top: 8px; }
    .bento, .about-split, .contact-layout, .game-masthead, .sg-foot-grid, .feature-pills, .pet-board, .gem-board, .shot-row {
        grid-template-columns: 1fr;
    }
    .pillar-row { grid-template-columns: 1fr; }
    .gem-scroll { max-height: 280px; }
    .stage-banner { min-height: 0; }
    .game-masthead > img { width: 120px; height: 120px; }
    .game-cta-row { justify-content: flex-start; }
    .about-split img, .contact-photo { height: 240px; min-height: 240px; }
}

@media (max-width: 640px) {
    .sg-canvas { padding: 18px 16px 32px; }
    .stage-banner-copy { padding: 24px 18px; }
    .store-badge img { height: 44px; }
}
