:root {
    --ink: #1b2430;
    --ink-soft: #3d4b5e;
    --paper: #f6f0e6;
    --paper-2: #fffaf3;
    --wood: #e08a34;
    --wood-deep: #b46322;
    --cyan: #1ec4df;
    --line: rgba(27, 36, 48, 0.12);
    --gold: #e6b23c;
    --shadow: 0 18px 50px rgba(48, 32, 14, 0.12);
    --rail: 252px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(224, 138, 52, 0.16), transparent 32%),
        linear-gradient(180deg, #fbf6ee 0%, var(--paper) 240px);
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
    font-size: 17px;
    line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: #0e7490; }
button, input { font: inherit; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.15; font-weight: 700; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--wood-deep);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.display { margin: 0 0 14px; font-size: clamp(36px, 5vw, 64px); }
.lead { margin: 0; font-size: 18px; color: var(--ink-soft); }
.ico { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.sheet { margin-left: var(--rail); min-height: 100vh; }
.rail {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail);
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 28px 18px;
    background: #2a1c12;
    color: #f8f1e6;
    overflow: auto;
}
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: #f8f1e6; text-decoration: none; }
.brand img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    display: block;
    background: #f7f1e7;
    border-radius: 18px;
    padding: 8px;
    object-fit: contain;
}
.brand strong { font-size: 15px; letter-spacing: 0.08em; line-height: 1.3; }
.nav { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.nav a {
    color: #f8f1e6;
    text-decoration: none;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 650;
}
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.08); }
.nav a.nav-shop,
.nav a.nav-shop:hover,
.nav a.nav-shop[aria-current="page"] {
    margin-top: 10px;
    background: linear-gradient(180deg, #ffb253, #e07a1f);
    color: #2a1606;
    text-align: center;
    box-shadow: 0 8px 18px rgba(224, 122, 31, 0.35);
}
.nav a.nav-shop:hover { background: linear-gradient(180deg, #ffc56f, #f08a28); }
.page-shop .nav a.nav-shop { box-shadow: 0 0 0 3px var(--cyan), 0 10px 22px rgba(224, 122, 31, 0.4); }
.nav-toggle {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 40;
    border: 0;
    background: #2a1c12;
    color: #f8f1e6;
    border-radius: 999px;
    padding: 8px 14px;
}

.stage {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
    min-height: calc(100vh - 48px);
    padding: 34px 0 56px;
}
.stage-art img {
    width: 100%;
    aspect-ratio: 1024 / 500;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: var(--shadow);
    display: block;
}
.store-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.store-link { display: inline-block; line-height: 0; }
.store-link img { width: 210px; aspect-ratio: 499 / 171; object-fit: contain; display: block; }
.store-link:hover img { transform: translateY(-2px); }

.band { padding: 28px 0 64px; }
.band-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 22px; }
.band-head h2 { margin: 0; font-size: clamp(28px, 3vw, 42px); }
.card-grid, .point-grid { display: grid; gap: 16px; }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.point-grid { grid-template-columns: 1fr 1fr; }
.card, .point, .panel {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(48, 32, 14, 0.05);
}
.card h3, .point h3 { margin: 10px 0 8px; font-size: 24px; }
.card p, .point p { margin: 0; color: var(--ink-soft); }
.text-link { font-weight: 700; text-decoration: none; }
.shot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shot {
    margin: 0;
    background: #d9a066;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.shot img { width: 100%; aspect-ratio: 800 / 1280; object-fit: cover; display: block; }

.page-company { background: #f3ecdf; }
.story { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 28px; align-items: start; }
.story-photos { display: grid; gap: 14px; }
.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 800 / 1280; object-fit: cover; border-radius: 18px; display: block; }
.photo figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.page-head { padding: 42px 0 10px; }
.page-head h1 { margin: 0 0 12px; font-size: clamp(36px, 5vw, 58px); }

.page-game { background: #16202b; color: #e8eef5; }
.page-game .sheet a { color: #8ee7f6; }
.page-game .kicker { color: #f0b56a; }
.page-game .lead, .page-game .point p { color: #c5d2e0; }
.page-game .point, .page-game .panel { background: #1e2b39; border-color: rgba(255,255,255,.08); color: inherit; }
.shot-rail { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.shot-rail .shot { flex: 0 0 210px; }

.reach { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: center; }
.reach-photo img { width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; border-radius: 24px; display: block; }
.icon-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.icon-row .ico { margin-top: 3px; color: var(--wood-deep); }
.page-contact .icon-row .ico { color: #0e7490; }

.shop-intro { max-width: 760px; }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr); gap: 22px; align-items: start; }
.coin-scroller {
    max-height: 68vh;
    overflow: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 12px;
    padding-right: 4px;
}
.coin-card {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 18px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
}
.coin-card img { width: 84px; height: 85px; aspect-ratio: 105 / 106; object-fit: contain; }
.coin-card strong, .coin-card span { display: block; }
.coin-card span { color: var(--wood-deep); font-weight: 800; }
.coin-card.is-on { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(30, 196, 223, .35); }
.order-box { position: sticky; top: 18px; }
.field { display: block; margin-bottom: 12px; font-size: 14px; font-weight: 700; }
.field input[type="text"], .field input[type="email"] {
    width: 100%;
    margin-top: 6px;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 500;
}
.pay-grid, .money-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.pay-opt, .pay-hold, .money-bar button {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    background: #fff;
}
.pay-opt { display: inline-flex; gap: 6px; align-items: center; font-weight: 650; }
.pay-hold { color: var(--ink-soft); background: #f3f0ea; }
.money-bar button.is-on, .pay-opt:has(input:checked) { border-color: var(--cyan); background: #e7f9fc; }
.checkline { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 600; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
    border: 0;
    border-radius: 999px;
    padding: 12px 16px;
    background: linear-gradient(180deg, #ffb253, #e07a1f);
    color: #2a1606;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}
.btn.slim { width: auto; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: inherit; }
.form-alert { background: #fff1f0; color: #8d1d18; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.field.is-bad input { border-color: #d4534b; }
.picked { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.promise { width: min(760px, calc(100% - 40px)); }
.promise h2 { text-align: center; margin: 0 0 18px; }
.promise-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.promise-list li {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px 18px;
}
.promise-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #fff1df;
    color: var(--wood-deep);
}
.promise-list h3 { margin: 2px 0 6px; font-size: 22px; }
.promise-list p { margin: 0; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.receipt, .result { max-width: 760px; margin: 28px auto 50px; background: #fff; border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.view-confirm .receipt { border: 1px dashed #c9a36a; background: #fffdf8; }
.view-pay { background: #f4f7f2; }
.view-error { background: #fbf4f1; }
.receipt table { width: 100%; border-collapse: collapse; }
.receipt th, .receipt td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.receipt th { width: 34%; color: var(--ink-soft); font-weight: 650; }
.receipt input[readonly] { width: 100%; border: 0; background: transparent; font: inherit; color: inherit; padding: 0; }
.result { text-align: center; }
.result-ok { border-top: 8px solid #2f9e67; }
.result-bad { border-top: 8px solid #d4534b; }
.page-error .result { background: #fff8f6; }
.count { font-size: 42px; font-family: Georgia, serif; margin: 8px 0; }
.actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.site-foot { border-top: 1px solid var(--line); padding: 34px 0 22px; margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 22px; }
.foot-grid a { display: block; color: var(--ink); text-decoration: none; margin: 6px 0; }
.foot-grid a:hover { text-decoration: underline; }
.copyline { width: min(1120px, calc(100% - 40px)); margin: 18px auto 0; color: var(--ink-soft); font-size: 14px; }
.page-game .site-foot { background: #101820; color: #d5deea; border-color: transparent; }
.page-game .foot-grid a, .page-game .copyline { color: #d5deea; }

@media (max-width: 980px) {
    .stage, .story, .reach, .shop-layout, .card-grid, .foot-grid { grid-template-columns: 1fr; }
    .shot-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .order-box { position: static; }
    .story-photos { max-width: 220px; }
}
@media (max-width: 760px) {
    .nav-toggle { display: inline-flex; }
    .rail { transform: translateX(-105%); transition: transform 0.2s ease; width: min(280px, 86vw); }
    .nav-open .rail { transform: none; }
    .sheet { margin-left: 0; padding-top: 58px; }
    .stage { min-height: 0; }
    .point-grid, .shot-row { grid-template-columns: 1fr; }
    .brand img { width: 100%; height: auto; }
}
