:root {
    --sea: #123a63;
    --sea-deep: #0c2a48;
    --sky: #2f9fe0;
    --foam: #e7f6ff;
    --sand: #fff4df;
    --sand-deep: #f3d7a4;
    --ink: #16324a;
    --muted: #4d6478;
    --sun: #ffb703;
    --ember: #f07a12;
    --can: #e23d3d;
    --line: rgba(18, 58, 99, 0.14);
    --rail: 228px;
    --board: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 8%, #9fd8f8 0, transparent 28%),
        linear-gradient(#7ec8ef, #f6e2bc 42%, #efd0a0);
    font: 16px/1.6 "Segoe UI", "Trebuchet MS", sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: #0b6e9c; }
button, input { font: inherit; }

.dock {
    width: var(--board);
    max-width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    background: rgba(255, 248, 236, 0.94);
    box-shadow: 0 0 0 1px rgba(18, 58, 99, 0.08), 0 24px 60px rgba(12, 42, 72, 0.18);
}
.rail {
    width: var(--rail);
    flex: 0 0 var(--rail);
    background: linear-gradient(180deg, var(--sea) 0%, var(--sea-deep) 100%);
    color: #fff;
    padding: 22px 16px 18px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}
.brand img {
    width: 64px;
    height: 64px;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    background: #fff;
    object-fit: cover;
}
.brand span {
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
    font-size: 15px;
}
.rail-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 28px;
}
.rail-link, .rail-store {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    border-radius: 14px;
    min-height: 44px;
    padding: 8px 10px;
}
.rail-link {
    color: #d7ecff;
}
.rail-link:hover, .rail-link.is-current {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.rail-store {
    margin-top: 18px;
    justify-content: center;
    color: #3d2500;
    font-weight: 800;
    background: linear-gradient(#ffe08a, var(--sun) 40%, var(--ember));
    box-shadow: 0 7px 0 #c45500;
}
.rail-store:hover { filter: brightness(1.05); }
.dock-at-store .rail-store {
    font-size: 18px;
    min-height: 56px;
    box-shadow: 0 0 0 3px #fff4cc, 0 7px 0 #c45500;
}
.mark {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}
.stage { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.stage-body { flex: 1; padding: 18px 20px 28px; }
.floor {
    padding: 18px 20px 22px;
    border-top: 1px solid var(--line);
    background: #fffaf1;
}
.floor-nav, .floor-legal { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.floor-nav a, .floor-legal a { text-decoration: none; font-weight: 700; }
.floor-legal { margin-top: 8px; font-size: 14px; }
.floor-meta, .floor-copy { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.floor-copy { color: var(--ink); font-weight: 700; }

.opening { width: min(100%, calc((100vh - 36px) / 0.7)); }
.opening-title { margin: 0 0 8px; font-size: 34px; line-height: 1.1; letter-spacing: -0.03em; }
.opening-lead { margin: 0 0 12px; color: var(--muted); max-width: 62ch; }
.opening-art {
    width: 100%;
    aspect-ratio: 1024 / 500;
    object-fit: cover;
    border-radius: 22px;
    display: block;
    background: #8fd0f2;
}
.launch {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}
.launch-link {
    display: block;
    width: 230px;
    max-width: 100%;
}
.launch-link img {
    width: 230px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 499 / 171;
    display: block;
    border-radius: 12px;
}

.band { margin-top: 28px; }
.band h2 { margin: 0 0 8px; font-size: 28px; line-height: 1.2; }
.split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
    align-items: start;
}
.tiles, .facts { display: grid; gap: 12px; }
.tiles { grid-template-columns: repeat(3, 1fr); }
.tile, .fact, .chapter, .slip, .reach-card, .promise, .ticket, .verdict, .fault {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
}
.tile, .fact { padding: 14px; }
.tile h3, .fact h3, .chapter h2, .promise h3 { margin: 8px 0 4px; }
.tile p, .fact p, .chapter p { margin: 0; color: var(--muted); }
.shots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 180px));
    gap: 12px;
}
.shots img, .pair img, .reach-card img, .film img {
    display: block;
    border-radius: 16px;
    object-fit: cover;
    background: #d7eefb;
}
.shots img { width: 180px; aspect-ratio: 800 / 1280; }
.crumbs { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.crumbs a { text-decoration: none; }

.dossier-lead {
    font-size: 20px;
    line-height: 1.55;
    margin: 0 0 16px;
}
.pair {
    display: grid;
    grid-template-columns: 160px 200px 1fr;
    gap: 16px;
    align-items: start;
}
.pair img.icon-shot { width: 160px; height: 160px; aspect-ratio: 1 / 1; }
.pair img.still { width: 200px; aspect-ratio: 800 / 1280; }
.facts { margin-top: 18px; }
.fact { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; }
.fact .mark { margin-top: 2px; color: var(--sky); }

.story-head {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    align-items: center;
}
.story-head img { width: 120px; height: 120px; aspect-ratio: 1 / 1; border-radius: 24px; }
.chapters { display: grid; gap: 12px; margin-top: 16px; }
.chapter { padding: 14px 16px; display: grid; grid-template-columns: 36px 1fr; gap: 10px; }
.chapter:nth-child(even) { background: #eef8ff; }
.film {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}
.film img { width: 100%; aspect-ratio: 800 / 1280; }

.reach {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 18px;
    align-items: start;
}
.reach-card img { width: 240px; aspect-ratio: 800 / 1280; }
.reach-card { padding: 12px; }
.reach-lines { display: grid; gap: 10px; margin-top: 12px; }
.reach-line {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 8px;
    align-items: center;
    background: #fff;
    border-radius: 14px;
    padding: 10px 12px;
    border: 1px solid var(--line);
}
.reach-line .mark { color: var(--ember); }

.market {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 16px;
    align-items: start;
}
.coin-note {
    background: #fff8ea;
    border-left: 6px solid var(--sun);
    padding: 12px 14px;
    border-radius: 12px;
    margin: 0 0 14px;
}
.gem-well {
    max-height: 540px;
    overflow: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-right: 4px;
}
.gem-pick {
    display: grid;
    grid-template-columns: 46px 1fr;
    grid-template-areas: "pic name" "pic price";
    gap: 0 8px;
    align-items: center;
    text-align: left;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    cursor: pointer;
    color: inherit;
}
.gem-pick img { grid-area: pic; width: 46px; height: 46px; object-fit: contain; }
.gem-pick strong { grid-area: name; font-size: 14px; line-height: 1.3; }
.gem-pick span { grid-area: price; color: var(--can); font-weight: 800; }
.gem-pick.is-picked { border-color: var(--ember); box-shadow: inset 0 0 0 2px var(--sun); }
.slip { padding: 14px; position: sticky; top: 12px; }
.slip h2 { margin: 0 0 8px; }
.field { display: block; margin: 10px 0; }
.field span, .pay-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.field input[type="text"], .field input[type="email"] {
    width: 100%;
    border: 1px solid #c9d7e2;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
}
.pay-option, .pay-static { display: flex; gap: 8px; align-items: center; margin: 4px 0; }
.currency-row { display: flex; flex-wrap: wrap; gap: 8px; }
.currency-btn {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 6px 10px;
    cursor: pointer;
}
.currency-btn.is-on { background: var(--sea); color: #fff; border-color: var(--sea); }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.confirm-btn {
    width: 100%;
    margin-top: 8px;
    border: 0;
    border-radius: 999px;
    padding: 12px 16px;
    font-weight: 800;
    color: #3d2500;
    background: linear-gradient(#ffe08a, var(--sun) 45%, var(--ember));
    box-shadow: 0 6px 0 #c45500;
    cursor: pointer;
}
.form-note {
    background: #fff1f0;
    color: #9d1c1c;
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: 8px;
}
.summary { font-weight: 700; }
.promise { margin-top: 18px; padding: 16px 18px; }
.promise h2 { margin-top: 0; }

.ticket, .verdict, .fault { max-width: 640px; padding: 18px; }
.receipt-row, .verdict p { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding: 8px 0; }
.verdict { text-align: center; }
.verdict.ok { background: #f3fff4; }
.verdict.bad, .fault { background: #fff5f4; }
.verdict h1, .fault h1, .ticket h1 { margin-top: 0; }

@media (max-width: 980px) {
    .dock { display: block; }
    .rail {
        width: 100%;
        height: auto;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
    .rail-nav { flex-direction: row; flex-wrap: wrap; margin-top: 12px; width: 100%; }
    .rail-store { margin-top: 0; }
    .split, .tiles, .pair, .reach, .market, .story-head, .film, .shots { grid-template-columns: 1fr 1fr; }
    .pair { grid-template-columns: 140px 1fr; }
    .film { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
    .opening { width: 100%; }
    .tiles, .split, .pair, .reach, .market, .story-head, .shots, .film, .chapter, .fact { grid-template-columns: 1fr; }
    .opening-title { font-size: 28px; }
    .gem-well { grid-template-columns: 1fr; max-height: 420px; }
    .slip { position: static; }
}
