.kochira-page {
    --kochira-teal: #247889;
    --kochira-ink: #244e5b;
    --kochira-pink: #e97894;
    --kochira-line: #d9e9e6;
    background: #f8faf6;
}
.project-card--kochira .project-art img { object-position: center 24%; }
.project-card--kochira .project-info h3 { font-family: "Noto Sans JP", sans-serif; font-size: clamp(1.75rem, 2.8vw, 2.4rem); letter-spacing: -.055em; }
.kochira-page::before {
    background: radial-gradient(circle at 4% 30%, #dff3ee9c, transparent 30%),
        radial-gradient(circle at 96% 12%, #ddf1f2c9, transparent 33%),
        radial-gradient(circle at 80% 80%, #f8eaf08c, transparent 30%);
}
.kochira-page .mod-main { padding-bottom: 46px; }
.kochira-page .breadcrumb { margin-bottom: 7px; }
.kochira-page .eyebrow { color: #488797; }
.kochira-page .section-heading h2::before { background: var(--kochira-pink); }
.kochira-page .chapter-nav { width: 100%; justify-content: space-around; }
.kochira-page .chapter-nav a { padding-inline: 14px; }
.kochira-page .chapter-nav a[aria-current], .kochira-page .chapter-nav a:hover { color: var(--kochira-teal); border-bottom-color: var(--kochira-pink); }
.kochira-page .detail-section { margin-bottom: 73px; }
.kochira-page .reveal-pending { opacity: 1; transform: none; }
.kochira-page .tag-pink { background: #ffebf0; color: #a84d6b; }
.kochira-page .button { background: linear-gradient(135deg, #247c8c, #2d8292); }
.kochira-page .button-outline { background: #fff; color: #277889; border-color: #bbd9d7; }

.kochira-hero {
    display: grid;
    grid-template-columns: minmax(0, .99fr) minmax(0, 1.01fr);
    gap: clamp(18px, 4vw, 58px);
    align-items: center;
    min-height: 633px;
    margin-bottom: 24px;
}
.kochira-hero-copy { position: relative; z-index: 2; padding-bottom: 30px; }
.kochira-hero h1 {
    margin-top: 19px;
    color: #1c5363;
    font-family: "Noto Sans JP", sans-serif;
    font-size: clamp(3.1rem, 5.5vw, 5.3rem);
    font-weight: 900;
    letter-spacing: -.065em;
    line-height: 1.25;
}
.kochira-hero h1 span { display: block; white-space: nowrap; }
.kochira-hero h1 span:last-child { color: var(--kochira-pink); }
.kochira-roman { margin-top: 15px; color: #557b86; font-size: 1rem; font-weight: 600; }
.kochira-title-thai { margin-top: 5px; color: #426f7c; font-size: 1.08rem; font-weight: 700; }
.kochira-lead { max-width: 500px; margin: 25px 0 19px; color: #55747b; font-size: 1.07rem; font-weight: 600; line-height: 1.9; }
.kochira-hero .hero-actions { margin-top: 29px; }
.kochira-hero-art { position: relative; min-width: 0; height: 595px; isolation: isolate; }
.kochira-hero-art::before {
    content: ""; position: absolute; z-index: -2; width: 95%; aspect-ratio: 1; top: 4%; left: 2%;
    border-radius: 50%; background: radial-gradient(circle, #e7f6f4 30%, #d9eeec 60%, transparent 72%);
}
.kochira-orbit { position: absolute; z-index: -1; width: 90%; aspect-ratio: 1; top: 6%; left: 5%; border: 1px solid #a9d1d0; border-radius: 50%; }
.kochira-orbit::after { content: "✦"; position: absolute; top: 2%; right: 17%; color: #f2a6b5; font-size: 2rem; }
.kochira-cover, .kochira-polaroid { position: absolute; background: #fff; box-shadow: 0 21px 48px #2e667438; }
.kochira-cover { width: 64%; height: 85%; left: 11%; top: 4%; padding: 8px; border-radius: 24px; transform: rotate(-4deg); }
.kochira-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 16px; }
.kochira-polaroid { width: 42%; right: 0; bottom: 3%; padding: 8px 8px 11px; transform: rotate(7deg); }
.kochira-polaroid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.kochira-polaroid figcaption { margin-top: 8px; color: #628e95; text-align: center; font-size: .77rem; font-weight: 700; }
.kochira-stamp { position: absolute; z-index: 3; top: 5%; right: -2%; display: grid; place-content: center; width: 120px; height: 120px; border: 1px dashed #ed9cac; border-radius: 50%; background: #fffaf4e8; color: #ca6d88; font-size: .84rem; font-weight: 800; line-height: 1.5; text-align: center; transform: rotate(12deg); }

.kochira-story-intro { max-width: 850px; margin-bottom: 28px; color: #54727d; line-height: 1.95; }
.kochira-story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.kochira-story-card { min-width: 0; overflow: hidden; border: 1px solid #dceae7; border-radius: 22px; background: #fff; box-shadow: 0 12px 30px #426b6c13; }
.kochira-story-card:nth-child(2) { background: #f5faf8; }
.kochira-story-card:nth-child(3) { background: #f9f7fb; }
.kochira-story-image { height: 248px; padding: 10px 10px 0; background: linear-gradient(135deg, #dbeff0, #f8f0df); }
.kochira-story-card:nth-child(2) .kochira-story-image { background: linear-gradient(135deg, #e3eee1, #fbf3e4); }
.kochira-story-card:nth-child(3) .kochira-story-image { background: linear-gradient(135deg, #e4eef0, #f3e9ef); }
.kochira-story-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 23%; border-radius: 15px 15px 0 0; }
.kochira-story-card:nth-child(2) .kochira-story-image img { object-position: 73% center; }
.kochira-story-card:nth-child(3) .kochira-story-image img { object-position: center 20%; }
.kochira-story-copy { padding: 21px 23px 27px; }
.kochira-story-copy span { color: #d27890; font-size: .67rem; font-weight: 800; letter-spacing: .16em; }
.kochira-story-copy h3 { margin-top: 8px; color: #28515d; font-size: 1.12rem; }
.kochira-story-copy p { margin-top: 10px; color: #55737b; font-size: 1rem; line-height: 1.85; }

.kochira-page .screenshot-album { border-color: var(--kochira-line); background: linear-gradient(130deg, #f8fcfb, #f4f8fa); }
.kochira-page .screenshot-item { flex-basis: 400px; }
.kochira-page .screenshot-card { border-color: #dcebe8; }
.kochira-page .screenshot-card img { aspect-ratio: 16 / 9; object-fit: cover; }
.kochira-page .screenshot-caption > :last-child { color: #298090; }
.kochira-page .screenshot-caption, .kochira-page .album-footer p { font-size: .94rem; }

.kochira-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kochira-facts > div { min-height: 125px; display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 22px; border: 1px solid #dcebe8; border-radius: 19px; background: #fff; box-shadow: 0 9px 24px #426b6c0e; }
.kochira-facts strong { color: #285f70; font-size: clamp(1rem, 1.7vw, 1.35rem); line-height: 1.35; }
.kochira-facts > div:first-child strong { font-size: 1.85rem; }
.kochira-facts span { color: #5e7d84; font-size: .96rem; }
.kochira-game-info { margin-top: 21px; padding: 26px 30px; border: 1px solid #dcebe8; border-radius: 19px; background: linear-gradient(120deg, #eaf6f2, #f6f9f6); }
.kochira-game-info h3 { color: #295a66; font-size: 1.07rem; }
.kochira-game-info p { max-width: 950px; margin-top: 8px; color: #536f78; font-size: 1rem; line-height: 1.9; }
.kochira-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 13px; }
.kochira-highlights > div { padding: 18px 20px; border: 1px solid #dcebe8; border-radius: 15px; background: #fff; }
.kochira-highlights strong { color: #2c6470; font-size: 1rem; }
.kochira-highlights p { margin-top: 5px; color: #5c7a81; font-size: .96rem; line-height: 1.75; }
.kochira-mod-note { margin-top: 13px; color: #607d84; font-size: .94rem; }

.kochira-compat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kochira-compat > div { min-width: 0; padding: 22px 24px; border: 1px solid #d7e8e4; border-radius: 17px; background: #f1f9f7; }
.kochira-compat span { display: block; color: #698b93; font: 800 .68rem/1.5 "Inter", sans-serif; letter-spacing: .13em; }
.kochira-compat strong { display: block; margin-top: 8px; color: #2a5968; font-size: 1rem; overflow-wrap: anywhere; }
.kochira-compat code { font-size: .9rem; }
.kochira-compat .copy-button { margin-top: 7px; }
.kochira-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kochira-steps .install-step { grid-template-columns: 30px minmax(0, 1fr); align-content: start; gap: 9px; border-color: #e0ebe8; }
.kochira-steps .install-step > .icon { color: #2c8d95; }
.kochira-steps .step-number { color: #d4748c; }
.kochira-steps .install-step > div { grid-column: 1 / -1; }
.kochira-steps .install-step code { overflow-wrap: anywhere; }
.kochira-steps .install-step p { font-size: 1rem; }
.kochira-path-guide { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 29px; border: 1px solid #d6e9e6; border-radius: 19px; background: linear-gradient(120deg, #e8f5f2, #f4f8f6); }
.kochira-path-guide h3 { margin-top: 5px; color: #295969; font-size: 1.06rem; }
.kochira-path-guide p:last-child { color: #5e7c83; font-size: .94rem; margin-top: 4px; }
.kochira-path-guide > code { max-width: 54%; padding: 12px 15px; border: 1px solid #d1e5e1; border-radius: 10px; background: #fff; color: #246576; font-size: .89rem; overflow-wrap: anywhere; }
.kochira-install-note code { overflow-wrap: anywhere; }

.kochira-credits { display: flex; align-items: center; gap: 19px; padding: 23px 27px; border: 1px solid #dcebe8; border-radius: 19px; background: #fff; }
.kochira-credits > span { display: grid; place-items: center; flex: 0 0 52px; height: 52px; border: 1px solid #efb9c5; border-radius: 50%; color: #dd849b; font-size: 1.5rem; }
.kochira-credits strong { color: #2d6470; }
.kochira-credits p { margin-top: 3px; color: #5f7a81; font-size: .96rem; }
.kochira-download { position: relative; isolation: isolate; overflow: hidden; min-height: 310px; margin-bottom: 4px; padding: 43px 53px; border-radius: 28px; background: linear-gradient(110deg, #205466, #2c8190); color: #fff; scroll-margin-top: 175px; }
.kochira-download::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .4; background: radial-gradient(circle at 85% 22%, #fff 0 2px, transparent 3px), radial-gradient(circle at 78% 75%, #fff 0 1px, transparent 2px), radial-gradient(circle at 95% 64%, #fff 0 2px, transparent 3px); }
.kochira-download .download-orbit { position: absolute; width: 370px; height: 370px; right: -35px; top: -38px; border: 1px solid #b8dcd180; border-radius: 50%; box-shadow: inset 0 0 0 26px #ffffff06, inset 0 0 0 27px #b8dcd155, inset 0 0 0 78px #ffffff06, inset 0 0 0 79px #b8dcd133; }
.kochira-download-copy { position: relative; z-index: 1; max-width: 710px; }
.kochira-download .eyebrow { color: #b5e0dd; }
.kochira-download h2 { margin: 7px 0 10px; color: #fff; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.kochira-download p { color: #d9eded; }
.kochira-download .kochira-download-meta { margin-top: 11px; color: #ffe0e9; font-weight: 700; font-size: 1rem; }
.kochira-download .button { margin-top: 23px; background: #fff; color: #246b7a; box-shadow: 0 9px 22px #1240513b; }
.kochira-download .kochira-download-note { margin-top: 9px; font-size: .92rem; }
.kochira-download .kochira-download-filename { margin-top: 11px; font-size: .92rem; overflow-wrap: anywhere; }

@media (max-width: 1000px) {
    .kochira-hero h1 { font-size: clamp(2.75rem, 5.5vw, 4.5rem); }
    .kochira-steps { grid-template-columns: 1fr; }
    .kochira-stamp { width: 100px; height: 100px; right: -1%; font-size: .72rem; }
}
@media (max-width: 760px) {
    .kochira-page .breadcrumb { margin-bottom: 12px; }
    .kochira-hero { grid-template-columns: 1fr; gap: 0; min-height: 0; margin-bottom: 22px; }
    .kochira-hero-copy { padding-bottom: 15px; }
    .kochira-hero h1 { font-size: clamp(2.6rem, 10.8vw, 4.2rem); margin-top: 13px; }
    .kochira-roman { margin-top: 10px; font-size: .96rem; }
    .kochira-title-thai { font-size: 1rem; }
    .kochira-lead { margin-top: 20px; font-size: 1rem; }
    .kochira-hero-art { width: min(100%, 430px); height: 480px; margin: 4px auto 0; }
    .kochira-cover { width: 63%; height: 89%; left: 7%; top: 3%; }
    .kochira-polaroid { width: 47%; right: 1%; bottom: 4%; }
    .kochira-stamp { top: 4%; right: 0; }
    .kochira-page .chapter-nav { justify-content: flex-start; overflow-x: auto; gap: 7px; border-radius: 19px; scrollbar-width: thin; }
    .kochira-page .chapter-nav a { flex: none; padding: 10px 8px; font-size: .8rem; }
    .kochira-page .detail-section { margin-bottom: 52px; }
    .kochira-story-intro { font-size: 1rem; margin-bottom: 23px; }
    .kochira-story-grid { grid-template-columns: 1fr; gap: 16px; }
    .kochira-story-image { height: 245px; }
    .kochira-story-copy { padding: 18px 20px 22px; }
    .kochira-page .screenshot-item { flex-basis: min(340px, 85%); }
    .kochira-facts, .kochira-compat, .kochira-highlights { grid-template-columns: 1fr; gap: 11px; }
    .kochira-facts > div { min-height: 84px; padding: 17px 20px; }
    .kochira-facts > div:first-child strong { font-size: 1.45rem; }
    .kochira-game-info { padding: 22px; }
    .kochira-steps { grid-template-columns: 1fr; }
    .kochira-path-guide { align-items: stretch; flex-direction: column; padding: 22px; gap: 13px; }
    .kochira-path-guide > code { max-width: 100%; }
    .kochira-download { padding: 34px 25px; min-height: 0; }
    .kochira-download .download-orbit { opacity: .35; right: -165px; }
}
@media (max-width: 420px) {
    .kochira-hero h1 { font-size: clamp(2.3rem, 10.2vw, 2.7rem); }
    .kochira-hero-art { height: 390px; }
    .kochira-stamp { width: 74px; height: 74px; font-size: .55rem; }
    .kochira-polaroid figcaption { font-size: .6rem; }
    .kochira-credits { align-items: flex-start; padding: 18px; gap: 13px; }
    .kochira-credits > span { flex-basis: 40px; height: 40px; }
}
@media (max-width: 360px) {
    .kochira-hero h1 { font-size: 2.2rem; }
    .kochira-hero-art { height: 355px; }
    .kochira-story-image { height: 215px; }
}
