:root{--story-ink:#0a1023;--story-border:#293355;--story-pink:#ff56ce;--story-blue:#7bdbff;--story-muted:#afbdd7}
.stories-cover{display:flex;gap:28px;align-items:center;justify-content:space-between;min-height:340px;padding:38px;border:1px solid #474270;border-radius:18px;background:linear-gradient(90deg,rgba(5,9,26,.96) 0%,rgba(8,12,32,.90) 45%,rgba(18,8,36,.46) 100%),url('/assets/tokyo-neon-city.png') center/cover;color:#fff;overflow:hidden}
.stories-cover h1{font-size:clamp(27px,3vw,44px);line-height:1.5;margin:15px 0;font-weight:800;letter-spacing:.035em}.stories-cover h1 em{font-style:normal;color:#ffb4ec}.stories-cover p{color:#c4cee2;line-height:1.9;font-size:14px}.stories-cover-actions{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0}.stories-format-line{font-size:11px;letter-spacing:.18em;color:#afd5e9}.stories-format-line b{padding:0 9px;color:#ed75c6}.stories-ticket{flex:0 0 195px;border:1px solid #ba7bbb;padding:26px 18px;transform:rotate(4deg);background:#121226d9;box-shadow:8px 8px 0 #080b1a;text-align:center}.stories-ticket>span{font-size:10.5px;letter-spacing:.14em;color:#ee9be0}.stories-ticket>strong{display:block;font-size:70px;margin-top:10px;font-weight:800}.stories-ticket i{font-size:17px;color:#c3c1de;font-style:normal}.stories-ticket p{font-size:11px}.stories-ticket>b{display:block;font-size:10.5px;letter-spacing:.12em;border-top:1px dashed #68617e;padding-top:18px;color:#c7a4d7}
.story-section-title{display:flex;justify-content:space-between;align-items:end;gap:15px;margin:32px 0 15px}.story-section-title h2{font-size:23px;margin:7px 0}.story-section-title>span{font-size:11px;color:var(--story-muted)}.story-chapters{display:grid;gap:10px;margin-bottom:28px}.story-chapter{border:1px solid var(--story-border);border-radius:12px;background:#0b1121;overflow:hidden}.story-chapter>summary{display:flex;gap:16px;align-items:center;padding:18px 20px;cursor:pointer;list-style:none}.story-chapter summary::-webkit-details-marker{display:none}.chapter-number{font-size:24px;color:#9d93d1;font-weight:800}.story-chapter summary>span:nth-child(2){display:grid;gap:4px}.story-chapter summary small{color:var(--story-muted);font-size:11px}.story-chapter summary b{color:#eef0ff;font-size:17px;letter-spacing:.08em}.chapter-progress{margin-left:auto;font-size:18px;color:var(--story-blue);text-align:right}.chapter-progress i{display:block;font-size:10px;letter-spacing:.1em;font-style:normal}.chapter-theme{margin:0 20px 16px;color:#bdb8d7;font-size:13px}.chapter-wards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 16px 16px}.story-ward{display:flex;gap:12px;align-items:center;text-align:left;border:1px solid #293350;background:#10172c;border-radius:8px;padding:13px;color:#e5eaff;min-width:0;cursor:pointer}.story-ward:hover,.story-ward:focus-visible{border-color:var(--story-pink)}.story-ward.available{border-color:#9c458a;background:linear-gradient(110deg,#341932,#10162a)}.story-ward.locked{opacity:.7}.story-ward.cleared .story-ward-index{color:#79e1cd}.story-ward-index{font-size:13px;color:#7f8dad}.story-ward-copy{display:grid;gap:6px;min-width:0}.story-ward-copy small{font-size:11px;color:#b8c4db}.story-ward-copy small i{font-style:normal;color:#869ac2;margin-left:6px}.story-ward-copy strong{font-size:15px;line-height:1.45}.story-ward-copy>span{font-size:11px;color:#b6c4dd}.story-ward-copy em{font-size:11px;color:#c1a5cd;font-style:normal}.story-boss-badge{width:57px;height:68px;border:1px solid #725784;border-radius:5px;flex-shrink:0;background:radial-gradient(circle,#353456,#101528);position:relative;overflow:hidden;text-align:center}.story-boss-badge .rival-portrait{width:100%;height:100%;object-fit:cover}.story-boss-badge>span{display:block;line-height:52px;font-size:30px;color:#bc99da}.story-boss-badge>small{position:absolute;bottom:0;left:0;right:0;background:#0b1125d9;padding:3px;font-size:11px;color:#fff}
.tokyo-nine-entry{text-align:center;border:1px solid #474060;border-radius:12px;background:radial-gradient(ellipse at top,#2b173a,#090e21 70%);padding:36px 24px;margin-top:24px}.tokyo-nine-entry.unlocked{border-color:#d75eb6}.tokyo-nine-entry h2{font-size:42px;margin:10px;color:#eef1ff;letter-spacing:.12em}.tokyo-nine-entry h2 em{color:#f876cd;font-style:normal}.tokyo-nine-entry p{font-size:13px;line-height:1.9;color:#c7cbe0}.tokyo-nine-entry .btn{margin:8px}.final-nine-cast{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin:22px auto;max-width:620px}.final-nine-cast span{font-size:11px;border:1px solid #584463;padding:6px 11px;border-radius:3px;color:#d9c0e7}.final-nine-cast span:last-child{background:#622756;color:#fff}.story-passport{border:1px solid #303853;border-radius:10px;margin-top:20px;background:#0b1222}.story-passport>summary{padding:18px;cursor:pointer;font-weight:bold;color:#e5e7ff}.story-passport summary span{float:right;color:#b0d3e8}.emblem-collection{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;padding:18px}.emblem{display:grid;gap:6px;background:#101626;border:1px solid #293449;padding:14px 5px;border-radius:6px;color:#a3abc2;text-align:center;cursor:pointer}.emblem b{font-size:26px;color:#6b748e}.emblem.earned{border-color:#b35391;color:#f5d9eb;background:#281931}.emblem.earned b{color:#ffa1e6}.emblem strong{font-size:12px}.emblem small,.emblem>span{font-size:11px}.story-fineprint{font-size:11px;color:#9cabc6;line-height:1.9;margin:24px 0}.story-invitation{color:#d9e0f2}.story-panels{display:grid;gap:12px;margin:18px 0}.story-panels article{border:1px solid #3b3855;border-left:3px solid #c868b3;padding:20px;background:#101428}.story-panels small{font-size:11px;letter-spacing:.06em;color:#b6b0cf}.story-panels p{line-height:2;font-size:14px}.story-panels .boss-panel{display:flex;gap:18px;align-items:center;border-left-color:#87cdeb}.boss-panel h3{margin:6px 0;font-size:22px;color:#fff}.boss-panel blockquote{font-size:14px;margin:8px 0;line-height:1.8;color:#efd6e8}.boss-panel .story-boss-badge{width:78px;height:95px}.story-episode-steps{display:flex;gap:6px;flex-wrap:wrap;margin:15px 0}.story-episode-steps span{font-size:11px;border:1px solid #343d57;border-radius:4px;padding:6px 9px;color:#8d9ab4}.story-episode-steps .current{border-color:#b14c96;color:#f9c5e6;background:#3c1c38}.story-challenge-rules{border:1px solid #324056;padding:16px;background:#0c1727;border-radius:6px}.story-challenge-rules h3{margin:0 0 10px;font-size:16px;color:#e5ecff}.story-challenge-rules p{font-size:13px;line-height:1.85}.story-challenge-rules small{color:#9eb4d2;font-size:11px}.story-lesson{color:#b9d4e8;font-size:13px;line-height:1.8}.story-result{text-align:center}.result-emblem{font-size:60px;color:#a4aabe}.story-result.won .result-emblem{color:#ff86d7;text-shadow:0 0 24px #bb2679}.story-result h2{font-size:22px;line-height:1.6}.story-result>strong{font-size:30px;color:#afe6d9}.story-result p{line-height:1.9;font-size:14px;color:#c9d4e3}.campaign-match-label{padding:8px 12px;margin-bottom:8px;border:1px solid #77376e;background:#27142de6;border-radius:6px;color:#f0c6e7;font-size:12px}.campaign-match-label span{float:right;color:#b9d6f1}.table-talk{border:1px solid #3a3557;background:#15172bd9;border-radius:7px;padding:8px 12px;margin-bottom:8px;color:#cdd8ee;max-width:100%}.table-talk summary{font-size:11px;cursor:pointer;list-style:none}.table-talk summary span{color:#8496b4;margin-left:8px;font-size:10.5px}.table-talk p{font-size:12px;line-height:1.7;margin:6px 0}.table-talk b{color:#f0a2d9;margin-right:10px}.table-talk button{background:none;border:0;font-size:11px;color:#93b6d9;padding:4px;cursor:pointer}.rival-format-picker{display:flex;gap:8px;margin:20px 0}.rival-format-picker .btn{flex:1}.rival-format-picker [aria-pressed=true]{border-color:#fb70d4;box-shadow:inset 0 0 16px #c536791c}
@media(max-width:700px){.stories-cover{padding:24px 20px;min-height:0;display:block;border-radius:12px}.stories-cover h1{font-size:27px}.stories-cover p{font-size:12px}.stories-ticket{display:none}.stories-format-line{font-size:10.5px;letter-spacing:.08em}.story-section-title{display:block}.story-section-title>span{font-size:11px}.chapter-wards{grid-template-columns:1fr;padding:0 10px 12px}.story-chapter>summary{padding:16px 12px;gap:12px}.story-chapter summary b{font-size:14px}.chapter-progress{font-size:16px}.emblem-collection{grid-template-columns:repeat(3,minmax(0,1fr));padding:10px;gap:6px}.story-ward{gap:10px;padding:12px}.tokyo-nine-entry{padding:25px 12px}.tokyo-nine-entry h2{font-size:32px}.story-panels article{padding:15px}.story-panels .boss-panel{gap:12px}.story-episode-steps span{font-size:11px}.campaign-match-label{font-size:11px;padding:6px 8px}.campaign-match-label span{float:none;display:block;margin-top:3px}.table-talk{margin-bottom:5px;padding:7px 9px}.table-talk p{font-size:11px}.rival-format-picker .btn{padding:10px 5px;font-size:12px}}

/* Conversation never hides cards or betting controls; open text has its own scroll. */
.arena-controls .table-talk,.arena-controls .campaign-match-label{order:0}
.table-talk[open]{max-height:116px;overflow:auto}
@media(max-width:900px){
 body:not(.tutorial-table) .arena-screen.night-table:has(.table-talk),
 body:not(.tutorial-table) .arena-screen.night-table:has(.campaign-match-label){--table-floor:calc(335px + env(safe-area-inset-bottom));min-height:900px}
 body:not(.tutorial-table) .arena-screen.night-table:has(.campaign-match-label):has(.table-talk){--table-floor:calc(365px + env(safe-area-inset-bottom));min-height:930px}
 body:not(.tutorial-table) .arena-screen.night-table:has(.table-talk[open]){--table-floor:calc(420px + env(safe-area-inset-bottom));min-height:980px}
 body:not(.tutorial-table) .arena-screen.night-table:has(.campaign-match-label):has(.table-talk[open]){--table-floor:calc(460px + env(safe-area-inset-bottom));min-height:1020px}
}
.emblem-collection .rival-portrait{width:min(100%,112px);height:auto;aspect-ratio:1;justify-self:center;border-radius:4px;overflow:hidden}
.emblem-collection .emblem strong b{font-size:13px}
.final-nine-cast>span{display:flex;align-items:center;gap:5px}
.final-nine-cast .rival-face{width:27px;height:27px;border-radius:50%;overflow:hidden}

/* Ward scene art at the top of the invitation (GPT Image, docs/art/IMAGES.md) */
.story-scene{margin:-4px 0 14px;border-radius:10px;overflow:hidden;border:1px solid #e9d9b655;box-shadow:0 10px 30px #0008;aspect-ratio:3/2;background:#0b0a1c}
.story-scene img{display:block;width:100%;height:100%;object-fit:cover}

/* Link to /ip/ (the anime and manga page) at the foot of the story page. */
.story-ip-link{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;margin:22px 0 6px;padding:16px 18px;border:1px solid #3a3466;border-left:3px solid #f08ad4;border-radius:8px;background:#141a33cc;color:#dfe6f4;text-decoration:none;font-size:14px}.story-ip-link span{font:11px ui-monospace,monospace;letter-spacing:2px;color:#f08ad4}.story-ip-link b{font-weight:600;color:#85d4f7;margin-left:auto}.story-ip-link:hover{border-color:#f08ad4}.story-ip-link:hover b{color:#fff}
/* The way to the 1988 aerial map (/tokyo-1988/): under the ward map, and in each ward's invitation. */
.tokyo-1988-entry{display:grid;grid-template-columns:1fr auto;gap:2px 14px;align-items:center;margin:18px 0;padding:16px 20px;border-radius:14px;border:1px solid #ff4fb855;background:linear-gradient(120deg,#0d1330,#1b1035);color:#f4f6ff;text-decoration:none;box-shadow:0 10px 30px #0006}
.tokyo-1988-entry .eyebrow{grid-column:1;color:#ff8fd2}
.tokyo-1988-entry b{grid-column:1;font-size:18px}
.tokyo-1988-entry small{grid-column:1;color:#b8c2e0}
.tokyo-1988-entry i{grid-column:2;grid-row:1/4;font-style:normal;font-size:24px;color:#ff4fb8}
.tokyo-1988-entry:hover,.tokyo-1988-entry:focus-visible{border-color:#ff4fb8}
.story-map-link{display:inline-block;margin:6px 0 10px;color:#ff8fd2;font-size:13px;font-weight:700}

