:root{color-scheme:light;--ink:#122d32;--green:#154a43;--white:#fffdf7;--paper:#f7f3e8;--line:#d6dfd1;--accent:#f3c87a;font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;color:var(--ink);background:var(--paper);scroll-behavior:smooth}*{box-sizing:border-box}body{margin:0}a{color:inherit}img{max-width:100%;display:block}button,select{font:inherit}button,summary{cursor:pointer}.wrap{width:min(1120px,calc(100% - 48px));margin-inline:auto}header{border-bottom:1px solid var(--line);background:var(--white)}.nav{min-height:74px;display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}.brand{font-weight:850;text-decoration:none}.brand span{margin-right:5px}nav{display:flex;gap:27px}nav a{font-weight:750;text-decoration:none}nav a:hover,summary:hover{text-decoration:underline}section,article{scroll-margin-top:24px}.hero{margin-top:28px;display:grid;grid-template-columns:1fr 1fr;overflow:hidden;background:#dce9dc;border:1px solid #cfded0;border-radius:32px;min-height:490px}.hero-copy{padding:56px 0 55px 58px;z-index:1}.label{margin:0 0 12px;font-size:.9rem;letter-spacing:.13em;font-weight:800;color:var(--green)}h1,h2,h3,p{margin-top:0}h1{margin-bottom:22px;font-size:clamp(3rem,7vw,5.8rem);line-height:1.08;letter-spacing:-.075em;font-weight:900}h2{font-size:clamp(1.65rem,3.2vw,2.45rem);line-height:1.22;margin-bottom:20px}h3{font-size:1.3rem;margin-bottom:10px}p{line-height:1.8}#greeting{min-height:3.6em;white-space:pre-line}.hero-actions,.form-row{display:flex;gap:10px;flex-wrap:wrap}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 16px;border:1px solid var(--green);border-radius:100px;font-weight:800;text-decoration:none;font-size:.94rem}.primary{background:var(--green);color:white}.primary:hover{background:#203b3b}.secondary{background:var(--white);color:var(--green)}.secondary:hover{background:#e8f0e6}.portrait{position:relative;display:grid;place-items:center;min-width:0;padding:30px 26px}.portrait img{position:relative;width:min(100%,350px);height:405px;object-fit:contain;filter:drop-shadow(0 17px 11px #12332527)}.halo{position:absolute;width:min(82%,370px);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#fff8df,#f6d894);box-shadow:0 0 0 15px #f9f6df55}.portrait-label{position:absolute;right:28px;bottom:24px;background:#fffdf4;padding:7px 12px;border-radius:100px;font-size:.88rem;font-weight:800}.portrait.wave img{animation:wave .55s ease}@keyframes wave{50%{transform:rotate(-5deg) translateY(-9px)}}#play,.comic,.shop{margin-top:44px}.games{display:grid;grid-template-columns:1fr 1fr;gap:18px}.card{background:var(--white);border:1px solid var(--line);border-radius:22px;padding:26px}.finance{background:#f2edf7;border-color:#e2d9eb}.icon{display:grid;place-items:center;font-size:1.65rem;width:51px;height:51px;border-radius:15px;background:#f6e6c3;margin-bottom:15px}.finance .icon{background:#e5d7ef}label{display:block;font-weight:750;margin-bottom:7px}select{max-width:100%;padding:8px 10px;border:1px solid #8e9b8e;border-radius:10px;background:white;color:var(--ink);min-height:46px}.result{margin:14px 0 0;padding:10px 14px;border-left:3px solid var(--green);background:#e7efe4}.note{font-size:.87rem;margin:13px 0 0}.comic{display:grid;grid-template-columns:.8fr 1.2fr;align-items:center;gap:32px;padding:32px;border-radius:24px;background:#eedec2}.comic img{width:100%;height:auto;border-radius:10px}.comic details p{margin:10px 0 0}.shop{padding:28px;border:1px solid var(--line);background:var(--white);border-radius:24px}footer{padding:32px 0;font-size:.9rem}:focus-visible{outline:3px solid #1b6b8a;outline-offset:4px}@media(max-width:740px){.wrap{width:calc(100% - 28px)}.nav{padding:12px 0;min-height:unset}nav{gap:17px}.hero{grid-template-columns:1fr;margin-top:16px}.hero-copy{padding:30px 22px 10px}.portrait{padding:23px}.portrait img{height:285px}.halo{width:min(74%,265px)}.games,.comic{grid-template-columns:1fr}.comic{padding:22px;gap:16px}.card{padding:21px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important}}
.hero h1{font-size:clamp(2.55rem,5.5vw,4.7rem);letter-spacing:-.065em}
.episode,.shelf{margin-top:32px;border-radius:24px;border:1px solid var(--line);overflow:hidden}
.episode{display:grid;grid-template-columns:minmax(170px,.6fr) 1.4fr;background:var(--white)}
.episode-art{display:grid;place-content:center;min-height:220px;text-align:center;background:#eedec2;line-height:.85}
.episode-art .cat{font-size:clamp(3rem,9vw,7rem);transform:translateY(16%) rotate(-8deg)}
.episode-art .box{font-size:clamp(5rem,15vw,11rem);position:relative}
.episode-copy,.shelf{padding:clamp(20px,4vw,37px)}
.choices{display:grid;gap:8px}
.choices button{min-height:44px;text-align:left;padding:9px 14px;border:1px solid #849d8a;border-radius:12px;color:var(--green);background:#f0f6eb;font-weight:750}
.choices button:hover,.choices button[aria-pressed="true"]{background:var(--green);color:white}
.story-result{margin-top:16px;padding:15px;border-radius:12px;background:#f3edf6}
.story-result p:first-child{margin:0;font-weight:800}
.story-result .note{margin:8px 0 12px}
.sample{min-height:44px;margin-left:4px;padding:8px;border:0;background:none;color:var(--green);text-decoration:underline}
.shelf{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:15px;background:#e6eddf}
.shelf h2{margin-bottom:0}.shelf p{margin:8px 0 0}
@media(max-width:650px){.episode,.shelf{grid-template-columns:1fr}.episode-art{min-height:130px}.nav{justify-content:flex-start}.hero h1{font-size:clamp(2.3rem,9vw,3.4rem)}}
