:root{color-scheme:light;--paper:#fffdf7;--cream:#f3f0e8;--ink:#342f31;--muted:#81776c;--line:#dcd3c3;--brown:#806044;--rose:#8a4962;--rose-dark:#68384d;--green:#6d7c61;--night:#251e32;--radius:9px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:"Yu Gothic UI","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;font-size:14px;line-height:1.7}button,input,select{font:inherit}button,a,input{ -webkit-tap-highlight-color:transparent}button{min-height:42px;padding:9px 16px;border:1px solid #baa98e;border-radius:6px;background:var(--paper);color:var(--brown);cursor:pointer;line-height:1.4}button:hover{background:#ece5d7}button:active{transform:translateY(1px)}button:disabled{cursor:default;opacity:.5;transform:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #be7f99;outline-offset:3px}a{color:var(--brown);text-underline-offset:4px}p{margin:0 0 12px}h1,h2,h3{margin:0 0 12px;line-height:1.45}h1,h2,.brand{font-family:"Yu Mincho","Hiragino Mincho ProN",serif}small{font-size:11px;color:var(--muted)}[hidden]{display:none!important}
.site-header{min-height:68px;padding:14px max(16px,calc((100vw - 1100px)/2));display:flex;align-items:center;gap:14px;flex-wrap:wrap;border-top:3px solid #b7758a;border-bottom:1px solid var(--line);background:#fffdf8}.brand{color:var(--brown);font-size:21px;letter-spacing:.12em;white-space:nowrap;text-decoration:none}.preview-pill{font-size:10px;padding:2px 7px;border:1px solid #d6bcbd;border-radius:3px;color:var(--rose);white-space:nowrap}.site-header nav{display:flex;gap:6px;margin-left:auto;flex-wrap:wrap}.site-header nav a,.site-header nav button{border:0;background:transparent;padding:6px 11px;min-height:36px;text-decoration:none;font-size:12px;color:var(--muted)}.site-header nav .active,.site-header nav [aria-current="page"]{color:var(--brown);box-shadow:inset 0 -2px var(--brown)}main{max-width:1100px;margin:0 auto;padding:23px 22px 30px}.view{min-width:0}.hero{position:relative;text-align:center;padding:14px 0 25px}.hero canvas{display:block;width:72px;height:84px;margin:0 auto 6px;image-rendering:pixelated}.hero h1{font-size:30px;letter-spacing:.09em;font-weight:500;margin-bottom:8px}.hero p{font-size:13px;color:var(--muted);margin-bottom:5px}.hero small{color:var(--rose);letter-spacing:.1em}.game-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;max-width:910px;margin:0 auto}.game-choice{overflow:hidden;min-width:0;border:1px solid var(--line);border-top:3px solid var(--rose);border-radius:var(--radius);background:var(--paper);box-shadow:0 3px 0 #e3dccf}.choice-art{position:relative;display:flex;align-items:center;justify-content:center;height:125px;overflow:hidden;background-color:#30283c;background-image:radial-gradient(circle at 20% 35%,#d5a4b0 0 2px,transparent 3px),radial-gradient(circle at 77% 65%,#c7b58b 0 2px,transparent 3px),linear-gradient(145deg,#382b42,#251e32);color:#edd3ce;font-family:serif;font-size:40px;letter-spacing:.2em}.choice-art canvas{image-rendering:pixelated}.choice-art::before,.choice-art::after{position:absolute;content:"";pointer-events:none}.choice-art::before{width:94px;height:94px;border:1px dotted rgba(236,181,197,.44);border-radius:50%;left:calc(50% - 47px);top:15px}.choice-art::after{width:146px;height:1px;background:#ba969c;left:calc(50% - 73px);bottom:18px;opacity:.3}.game-choice:nth-child(2){border-top-color:#687a88}.game-choice:nth-child(2) .choice-art{background-color:#253541;background-image:linear-gradient(0deg,transparent 0 18%,#687786 18% 21%,transparent 21% 100%),linear-gradient(135deg,#3b3549,#22333b)}.game-choice:nth-child(2) .choice-art::before{width:62px;height:12px;left:19%;top:auto;bottom:37px;border:0;border-top:3px solid #b49ea3;border-radius:0;background:#566170}.game-choice:nth-child(2) .choice-art::after{width:75px;height:12px;left:auto;right:17%;bottom:61px;background:#76808b;opacity:.65;border-top:3px solid #c7b6ae}.choice-body{padding:21px 24px 22px}.choice-body h2{font-size:23px;font-weight:600;margin-bottom:6px}.choice-body p{font-size:13px;color:var(--muted);min-height:45px}.choice-meta{display:flex;gap:9px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin:12px 0 17px}.choice-meta>*{padding:2px 7px;background:#f0eae0;border-radius:3px}.primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border-color:var(--rose);background:var(--rose);color:#fffaf6;text-decoration:none}.primary:hover{background:var(--rose-dark);color:white}.choice-body .primary{width:100%}.secondary{background:#fffdf7;color:var(--brown);border-color:#c7b99e}.home-bottom{max-width:910px;margin:25px auto 0;padding-top:17px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.book-link{display:inline-flex;gap:9px;align-items:center;min-height:42px;font-weight:600;text-decoration:none}.sample-note{font-size:11px;color:var(--muted);max-width:610px;margin:0}.play-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px;flex-wrap:wrap}.play-head h1{font-size:23px;margin:0}.play-head p{font-size:12px;color:var(--muted);margin:2px 0 0}.play-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.play-tools button{font-size:12px;padding:8px 12px}.play-layout{display:grid;grid-template-columns:minmax(0,1fr) 216px;gap:18px;align-items:start}.play-main{min-width:0}.hud{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;min-height:41px;border:1px solid var(--line);border-bottom:0;border-radius:7px 7px 0 0;background:#fffcf5;padding:8px 13px;font-size:12px;color:var(--muted)}.hud b,.hud strong{color:var(--brown);font-size:16px;font-variant-numeric:tabular-nums}.arena{position:relative;isolation:isolate;overflow:hidden;background:var(--night);border:1px solid #514352;border-radius:0 0 6px 6px;aspect-ratio:4/3}.arena canvas,#game-canvas{display:block;width:100%;height:100%;aspect-ratio:4/3;image-rendering:pixelated;touch-action:none;outline:none}.game-overlay{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;padding:24px;text-align:center;color:#fff1e4;background:rgba(28,23,36,.86)}.game-overlay>div{max-width:390px}.game-overlay h2{font-size:25px;margin:0 0 10px}.game-overlay p{max-width:370px;color:#dfcbd4;font-size:13px;line-height:1.9}.game-overlay button{margin:4px;min-width:120px}.award-toast{position:absolute;z-index:4;top:76px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;max-width:calc(100% - 28px);width:310px;padding:11px 14px;background:#fff8ed;border:1px solid #d3a28b;border-left:4px solid #b27d88;border-radius:6px;color:#563d3f;pointer-events:none;animation:award-in .18s ease-out}.award-toast small,.award-toast b{display:block}.award-toast small{font-size:10px;color:#8f6a74}.award-toast b{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.mini-cover,.empty-cover{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:38px;height:51px;border:1px solid #cbbca5;border-left:3px solid #af9c80;border-radius:2px;background:linear-gradient(135deg,#eae2d3 0 48%,#dacfbb 49% 51%,#eae2d3 52%);color:#9d8b72;font-size:10px;text-align:center;line-height:1.3}.touch-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0 5px;touch-action:none;user-select:none;-webkit-user-select:none}.direction-pad{display:flex;align-items:center;gap:6px}.vertical-buttons{display:grid;gap:4px}.touch-controls button{min-width:48px;min-height:45px;padding:8px 10px;border-color:#baab94;background:#fcf8ef;font-size:18px;touch-action:none;user-select:none;-webkit-user-select:none}.touch-controls button.pressed,.touch-controls button[aria-pressed="true"],.touch-controls button:active{background:#d5c3c9;border-color:#9e7182;color:#583d4a;transform:none}#action-control{min-width:114px;min-height:49px;background:#8a4962;border-color:#8a4962;color:white;font-size:13px;line-height:1.4}#action-control small{color:#edcdda}.controls-help{margin:5px 0 0;font-size:11px;color:var(--muted);line-height:1.8}.game-notice{font-size:11px;color:#947a73;margin:10px 0 0;padding:9px 12px;background:#ebe5d9;border-radius:4px}.run-panel{background:#fffcf5;border:1px solid var(--line);border-radius:7px;padding:15px 13px}.run-panel h2{font-family:inherit;font-size:15px;margin:0 0 10px}.run-panel p{font-size:12px}.run-list{display:grid;gap:9px;max-height:360px;overflow:auto;overscroll-behavior:contain}.run-item{display:flex;align-items:center;gap:9px;border-top:1px solid #e8dfd0;padding-top:9px;min-width:0}.run-item .mini-cover,.run-item .empty-cover{width:29px;height:40px;font-size:8px}.run-item b,.run-item strong{display:block;font-size:11px;line-height:1.6;overflow-wrap:anywhere}.run-item small{font-size:10px}.run-note{font-size:11px;color:var(--muted);line-height:1.9;margin:13px 0}.run-panel .secondary{width:100%;margin-top:10px;font-size:12px}.result-heading{text-align:center;padding:20px 0 18px}.result-heading h1{font-size:29px;letter-spacing:.06em}.result-heading p{font-size:13px;color:var(--muted)}.result-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:730px;margin:0 auto 23px}.stat{padding:17px 12px;background:var(--paper);border:1px solid var(--line);border-radius:7px;text-align:center}.stat b,.stat strong{display:block;font-size:27px;color:var(--rose);font-weight:600;line-height:1.4;font-variant-numeric:tabular-nums}.stat small,.stat span{font-size:11px;color:var(--muted)}.result-works{max-width:820px;margin:0 auto 23px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.result-work{background:var(--paper);border:1px solid var(--line);border-radius:6px;display:flex;align-items:center;gap:12px;padding:14px;min-width:0}.result-work strong,.result-work b{display:block;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.result-work small{display:block;font-size:10px}.result-work .empty-cover{width:40px;height:55px}.result-actions{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:22px 0}.result-actions button,.result-actions a{min-width:150px}.book-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px;flex-wrap:wrap}.book-head h1{font-size:24px;margin-bottom:2px}.book-head p{font-size:12px;color:var(--muted);margin:0}.book-count{color:var(--green);font-size:15px;font-weight:600;white-space:nowrap}.book-spread{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));height:620px;border:1px solid #baa785;border-top:5px solid #88704c;border-radius:9px 9px 5px 5px;background:#fffdf5;box-shadow:0 5px 0 #d7cdba;overflow:hidden}.book-spread::after{content:"";position:absolute;inset:0 auto 0 50%;width:14px;transform:translateX(-50%);background:linear-gradient(90deg,transparent,rgba(126,105,64,.09),rgba(255,255,255,.45),rgba(126,105,64,.08),transparent);pointer-events:none}.book-page{display:grid;grid-template-rows:30px repeat(5,minmax(0,1fr)) 20px;min-width:0;padding:19px 25px 11px;gap:0;background:linear-gradient(90deg,#fffdf7,#fffdf4)}.book-page+.book-page{border-left:1px solid #d9cfb9;background:linear-gradient(90deg,#faf6e9,#fffdf7 8%)}.paper-title{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:13px;color:var(--brown);letter-spacing:.06em;border-bottom:1px solid #d9cdb6;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.book-row{position:relative;display:grid;grid-template-columns:21px 38px minmax(0,1fr);gap:10px;align-items:center;min-height:0;padding:8px 0;border-bottom:1px solid #e6ddca;min-width:0}.book-row .no{align-self:start;padding-top:6px;color:#a38b67;font-size:11px;font-style:italic}.book-row>div{min-width:0}.book-row strong{display:block;font-size:12px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}.book-row small{display:block;font-size:10px;line-height:1.6;overflow-wrap:anywhere;margin-top:3px}.book-row .empty-cover{width:35px;height:49px}.collected-stamp{position:absolute;right:0;bottom:6px;color:#7b8a6c;font-size:9px;border:1px solid #afbaa0;border-radius:2px;padding:0 4px;line-height:1.6;transform:rotate(-4deg)}.book-row.locked{color:#b8ae9f}.book-row.locked strong{font-weight:400;color:#b9af9d;font-size:11px}.book-row.locked .empty-cover{opacity:.45;background:#eee8dc;border-color:#d8cfbe}.book-row.locked small{color:#b1a894}.page-number{align-self:end;text-align:center;font-family:serif;font-size:11px;color:#a18a67;padding-top:5px}.book-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:18px 1px 0}.book-bottom p{font-size:11px;color:var(--muted);margin:0}.book-bottom button{font-size:12px}.settings{border-top:1px solid var(--line);margin-top:26px;padding-top:12px}.settings summary{cursor:pointer;color:var(--muted);font-size:12px;padding:6px 0}.settings-content{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:10px 0}.settings-content label{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px}.settings-content input[type="checkbox"]{width:17px;height:17px;accent-color:var(--rose)}.settings-content input[type="range"]{width:120px;accent-color:var(--rose)}.diagnostics{margin-top:18px;color:var(--muted);font-size:11px}.diagnostics summary{cursor:pointer;padding:6px 0}.diagnostics pre,#diagnostics-data{margin:7px 0 0;padding:12px;background:#e9e3d7;border-radius:4px;font-size:10px;line-height:1.7;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;max-height:260px}footer{max-width:1100px;margin:0 auto;padding:20px 22px 28px;border-top:1px solid var(--line);color:#988b7c;text-align:center;font-size:10px;line-height:1.9}footer p{margin:0}footer a{color:#8e7c68}.muted{color:var(--muted)}
@keyframes award-in{from{opacity:0;margin-top:-5px}to{opacity:1;margin-top:0}}
@media(min-width:1200px){.play-layout{grid-template-columns:minmax(0,1fr) 220px}.choice-art{height:136px}}
@media(max-width:900px){.play-layout{grid-template-columns:minmax(0,1fr)}.run-panel{display:block}.run-list{grid-template-columns:repeat(3,minmax(0,1fr));max-height:none}.run-panel .secondary{width:auto;min-width:180px}.run-note{margin-bottom:7px}.result-works{grid-template-columns:repeat(2,minmax(0,1fr))}.sample-note{max-width:100%}.book-page{padding:16px 18px 10px}.book-row{gap:8px}}
@media(max-width:650px){main{padding:18px 13px 24px}.site-header{gap:8px;padding:11px 14px}.brand{font-size:18px;letter-spacing:.07em}.site-header nav{gap:0}.site-header nav a,.site-header nav button{padding:5px 8px;font-size:11px}.hero{padding:8px 0 21px}.hero h1{font-size:25px;letter-spacing:.04em}.hero p{font-size:12px}.hero canvas{width:60px;height:70px}.game-choices{grid-template-columns:minmax(0,1fr);gap:17px}.choice-art{height:91px}.choice-art::before{width:66px;height:66px;left:calc(50% - 33px);top:10px}.choice-art::after{bottom:12px}.choice-body{padding:15px 18px 18px}.choice-body h2{font-size:22px}.choice-body p{min-height:0;margin-bottom:7px}.choice-meta{margin:9px 0 12px}.home-bottom{margin-top:20px;gap:8px}.play-head h1{font-size:21px}.play-head{gap:9px}.play-tools{gap:6px}.play-tools button{font-size:11px;min-height:38px;padding:7px 10px}.hud{font-size:10px;padding:7px 9px;gap:6px}.hud b,.hud strong{font-size:14px}.game-overlay{padding:16px;gap:8px}.game-overlay h2{font-size:21px}.game-overlay p{font-size:12px;line-height:1.7;margin-bottom:6px}.game-overlay button{padding:8px 11px;min-width:100px}.award-toast{top:58px;width:280px;padding:8px 10px;gap:9px}.award-toast b{font-size:11px}.award-toast .mini-cover{width:29px;height:39px}.touch-controls{padding-top:10px;gap:6px}.direction-pad{gap:4px}.touch-controls button{min-width:43px;min-height:43px;padding:7px 8px;font-size:17px}#action-control{min-width:101px;min-height:47px;font-size:12px}.run-list{grid-template-columns:minmax(0,1fr);gap:5px;max-height:220px}.run-item{padding-top:7px}.run-panel{padding:12px}.run-panel .secondary{min-height:42px}.result-heading{padding:14px 0}.result-heading h1{font-size:24px}.result-stats{gap:7px;margin-bottom:17px}.stat{padding:12px 5px}.stat b,.stat strong{font-size:23px}.stat small,.stat span{font-size:10px}.result-works{grid-template-columns:minmax(0,1fr);gap:8px}.result-work{padding:11px 13px}.result-actions{gap:8px}.result-actions button,.result-actions a{min-width:132px;font-size:12px}.book-head{gap:7px;margin-bottom:12px}.book-head h1{font-size:22px}.book-head p{font-size:11px}.book-count{font-size:12px}.book-spread{height:620px;border-radius:6px 6px 3px 3px}.book-page{padding:13px 10px 9px;grid-template-rows:29px repeat(5,minmax(0,1fr)) 17px}.paper-title{font-size:11px;letter-spacing:0}.book-row{grid-template-columns:18px minmax(0,1fr);gap:5px;padding:8px 0 16px}.book-row>.empty-cover{display:none}.book-row .no{font-size:10px;padding-top:2px}.book-row strong{font-size:11px;line-height:1.7}.book-row small{font-size:9px;line-height:1.6}.book-row.locked strong{font-size:10px}.collected-stamp{font-size:8px;bottom:3px}.book-bottom{gap:8px;padding-top:15px}.book-bottom button{padding:8px 11px;font-size:11px}.book-bottom p{font-size:10px}.settings-content{gap:11px 16px}.settings-content label{font-size:11px}footer{padding:18px 14px 24px}}
@media(max-width:370px){.brand{font-size:16px}.preview-pill{font-size:9px}.site-header nav{width:100%;margin-left:0}.site-header nav a,.site-header nav button{min-height:32px}.hero h1{font-size:23px}.play-tools{width:100%}.play-head{align-items:flex-start}.hud{font-size:9px}.hud b,.hud strong{font-size:13px}.touch-controls button{min-width:39px;padding:7px}#action-control{min-width:92px}.game-overlay h2{font-size:19px}.game-overlay p{font-size:11px}.game-overlay button{min-width:94px;min-height:39px;font-size:12px}.book-page{padding-left:7px;padding-right:7px}.book-row{grid-template-columns:15px minmax(0,1fr);gap:3px}.book-row strong{font-size:10px}.book-row small{font-size:8px}.stat b,.stat strong{font-size:20px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}button:active{transform:none}}
/* Catalog-connected arcade v2: stable book dimensions, local character settings,
   and an explicit three-choice upgrade. No asset request is hidden in the CSS. */
.eyebrow{font-size:10px;letter-spacing:.14em;color:var(--rose);margin:0 0 7px;line-height:1.5}
.hero{padding:9px 0 17px}.hero canvas{width:88px;height:88px;margin-top:2px;margin-bottom:0}.hero h1{font-size:29px}.hero p{line-height:1.8}
.theme-picker{max-width:910px;margin:0 auto 18px;padding:12px 17px;border:1px solid var(--line);border-radius:7px;background:#fffcf6;display:flex;gap:16px;align-items:center;justify-content:space-between}
.theme-picker>div{display:flex;gap:12px;align-items:center;flex:1;min-width:0}.theme-picker label{font-size:11px;white-space:nowrap;color:var(--brown)}
select{min-width:0;min-height:40px;padding:8px 32px 8px 11px;border:1px solid #c7b99e;border-radius:5px;background:#fffdf7;color:var(--ink);font-size:12px;max-width:100%}
#home-article{width:100%;max-width:370px}#theme-scope{max-width:330px;font-size:11px;color:var(--muted);margin:0;line-height:1.8}
.choice-art{height:143px;flex-direction:column;gap:3px}.art-label{position:absolute;top:13px;left:17px;font-family:inherit;font-size:9px;letter-spacing:.16em;z-index:1;color:#cbb8c6}.choice-symbol{font-family:serif;font-size:65px;line-height:1;letter-spacing:0;color:#f2d6bc;text-shadow:0 0 22px rgba(233,172,198,.3)}.choice-art-caption{font-size:10px;font-family:inherit;letter-spacing:.08em;line-height:1.6;z-index:1;color:#d7c1cf;position:absolute;bottom:10px}.game-choice.survivors .choice-art{background-image:radial-gradient(ellipse at 50% 56%,rgba(191,103,152,.2),transparent 66%),linear-gradient(140deg,#442f48,#251f34)}.game-choice.survivors .choice-art::before{width:83px;height:83px;top:29px;left:calc(50% - 41.5px);border:1px solid rgba(233,181,199,.27);box-shadow:0 0 0 15px rgba(227,183,197,.035)}.game-choice.survivors .choice-art::after{width:55px;height:78px;left:calc(50% - 27px);top:32px;bottom:auto;border-radius:50%;border:1px dashed rgba(233,181,199,.2);background:transparent;transform:rotate(62deg);opacity:1}.game-choice.jump .choice-art .choice-symbol{font-size:72px;color:#d9deca;transform:translateY(-2px)}.game-choice.jump .choice-art::before{bottom:35px;left:17%;height:10px;opacity:.6}.game-choice.jump .choice-art::after{bottom:63px;right:17%;height:10px;opacity:.6}.choice-body .eyebrow{min-height:0;margin-bottom:6px;color:var(--rose);font-size:10px}.choice-body h2{font-size:22px}.choice-body{padding:20px 23px 21px}.choice-meta{margin-bottom:16px}.choice-meta>*{font-size:10px}
.survivor-stats{display:flex;align-items:center;gap:20px;min-height:31px;padding:5px 12px;background:#e9e0e7;border:1px solid #d7cad3;border-bottom:0;color:#806c7c;font-size:11px}.survivor-stats b{font-weight:600;color:#69465d;font-variant-numeric:tabular-nums}.skill-list{display:flex;flex-wrap:wrap;gap:5px;min-height:0;padding-top:7px}.skill-list:empty{display:none}.skill-list>*{padding:2px 7px;border:1px solid #d6c7d4;border-radius:3px;background:#eee5ed;color:#7a5770;font-size:10px;line-height:1.6}
.upgrade-panel{position:absolute;inset:0;z-index:6;background:rgba(25,19,34,.94);display:flex;align-items:center;justify-content:center;color:#f6e5e7}.upgrade-inner{width:100%;max-height:100%;overflow:auto;padding:25px 22px;text-align:center;overscroll-behavior:contain}.upgrade-inner .eyebrow{color:#d7abc8;font-size:10px;letter-spacing:.22em}.upgrade-inner h2{font-size:24px;font-weight:500;margin:0 0 6px;color:#fff0e6}.upgrade-inner>p:not(.eyebrow){font-size:11px;color:#c6b1c0;margin:0 0 19px;line-height:1.7}.upgrade-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:stretch}.upgrade-choices button{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;text-align:left;gap:8px;min-width:0;min-height:161px;padding:17px 14px;background:#f8eee7;border:1px solid #bd95a9;border-top:3px solid #bc809e;border-radius:7px;color:#4c3b4d;line-height:1.6;box-shadow:0 3px 0 rgba(0,0,0,.2);overflow-wrap:anywhere}.upgrade-choices button:hover{background:#fff8ee;border-color:#ecd2a7;transform:translateY(-2px)}.upgrade-choices button:focus-visible{outline-color:#edc98b;outline-offset:3px}.upgrade-choices button strong,.upgrade-choices button b{display:block;font-size:15px;line-height:1.5;color:#76465f}.upgrade-choices button small{display:block;font-size:10px;color:#9e778d;line-height:1.6}.upgrade-choices button p,.upgrade-choices button span{font-size:11px;line-height:1.8;margin:0;display:block}.upgrade-choices [data-upgrade="perfume"],.upgrade-choices [data-upgrade="wink"]{border-top-color:#cd6f98;background:#fff0f2}.upgrade-choices [data-upgrade="orbit"]{border-top-color:#9a82b8}.upgrade-choices [data-upgrade="nova"]{border-top-color:#74a9bb}
.touch-controls button.held{background:#d5c3c9;border-color:#9e7182;color:#583d4a;transform:none}
.book-toolbar{display:flex;align-items:center;gap:9px;margin:13px 0 13px;position:sticky;top:8px;z-index:5;padding:9px 11px;border:1px solid #d6cab3;border-radius:6px;background:rgba(255,252,244,.97);box-shadow:0 3px 12px rgba(67,48,37,.05)}.book-toolbar>label{font-size:11px;color:var(--brown);flex-shrink:0}.book-toolbar>select{max-width:360px;flex:1}.book-pagination{display:flex;gap:8px;align-items:center;justify-content:center;margin-left:auto;flex-shrink:0}.book-pagination button{min-height:38px;min-width:72px;font-size:11px;padding:7px 12px}.book-pagination>span{font-size:11px;color:var(--brown);font-variant-numeric:tabular-nums;min-width:43px;text-align:center}.paper-title{display:flex;justify-content:space-between;gap:6px;align-items:start}.paper-title>span{overflow:hidden;text-overflow:ellipsis}.paper-title small{flex-shrink:0;font-size:10px}#book-left,#book-right{display:contents}.book-row{overflow:hidden}.book-row strong{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.book-row small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;padding-right:1px}.book-row.locked .no{color:#af9e85}.book-row.locked strong{color:#a99e8a}.book-spread{height:620px}.book-head{margin-bottom:6px}.book-bottom{min-height:65px}#book-summary{min-height:20px}.book-row>a{font-size:10px}
.settings{margin-top:23px}.settings>summary{padding:8px 0}.settings-content{padding-bottom:13px;gap:15px}.settings-content #save-notice{flex-basis:100%;margin:0;color:var(--rose);font-size:11px}.character-settings{display:grid;grid-template-columns:minmax(0,1fr) 128px minmax(0,1.1fr);gap:23px;align-items:center;border:1px solid var(--line);border-radius:7px;padding:20px;background:#fffcf7}.character-intro h2,.legacy-settings h2{font-size:18px;font-weight:500;margin-bottom:7px}.character-intro>p:not(.eyebrow){font-size:12px;color:var(--muted);line-height:1.9}.character-intro .sample-note{font-size:10px}#character-preview{display:block;width:128px;height:160px;border:1px solid #ded1d9;border-radius:5px;image-rendering:pixelated}.character-actions{display:grid;gap:9px;min-width:0}.character-actions>strong{display:block;font-size:12px;color:var(--rose);overflow-wrap:anywhere}.file-label{display:grid;gap:5px;font-size:11px;color:var(--brown)}input[type="file"]{max-width:100%;width:100%;font-size:10px;color:var(--muted);line-height:1.7}input[type="file"]::file-selector-button{font:inherit;font-size:11px;border:1px solid #bea8b3;border-radius:4px;padding:8px 10px;margin-right:8px;color:#79556b;background:#f7edf1;cursor:pointer}#character-status{font-size:10px;line-height:1.8;color:var(--muted);margin:0;min-height:34px}#character-reset{justify-self:start;font-size:11px;min-height:37px;padding:7px 10px}.character-downloads{display:flex;flex-wrap:wrap;gap:4px 14px}.character-downloads a{font-size:10px;color:#947086}.legacy-settings{padding:19px 1px 14px;border-bottom:1px solid var(--line);margin-bottom:14px}.legacy-settings>p{font-size:11px;color:var(--muted);line-height:1.9}.legacy-import{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:8px}.legacy-import>label{display:flex;gap:10px;align-items:center;font-size:11px;color:var(--brown)}.legacy-import input{max-width:330px;width:auto}.legacy-import button{font-size:11px;min-height:38px}.preview-tools{display:flex;align-items:center;gap:13px;flex-wrap:wrap}.preview-tools>button{font-size:11px}.preview-tools .sample-note{font-size:10px}.diagnostics{width:100%;font-size:10px;margin-top:20px}.diagnostics>p{margin-bottom:4px}.result-works-heading{text-align:center;font-size:17px;font-weight:500;margin-bottom:15px}
@media(max-width:900px){.theme-picker{gap:12px}#theme-scope{max-width:250px}.character-settings{grid-template-columns:128px minmax(0,1fr);gap:17px}.character-intro{grid-column:1/-1}.character-intro p{margin-bottom:4px}.character-intro br{display:none}.upgrade-inner{padding:19px}.upgrade-choices button{padding:14px 11px;min-height:145px}.book-toolbar>select{max-width:340px}}
@media(max-width:650px){.hero{padding-bottom:16px}.hero h1{font-size:25px}.hero canvas{width:72px;height:72px}.theme-picker{padding:11px 12px;display:block;margin-bottom:15px}.theme-picker>div{gap:9px}#theme-scope{max-width:none;margin-top:7px;font-size:10px}.theme-picker select{font-size:11px}.choice-art{height:106px}.art-label{font-size:8px;left:15px;top:10px}.choice-symbol{font-size:48px}.choice-art-caption{font-size:9px;bottom:7px}.game-choice.survivors .choice-art::before{height:61px;width:61px;left:calc(50% - 30.5px);top:21px;box-shadow:0 0 0 10px rgba(227,183,197,.035)}.game-choice.survivors .choice-art::after{height:55px;width:42px;left:calc(50% - 21px);top:25px}.game-choice.jump .choice-art .choice-symbol{font-size:55px}.choice-body{padding:15px 17px 18px}.choice-body h2{font-size:21px}.choice-body p{font-size:12px}.choice-meta{gap:6px;margin-bottom:12px}.choice-meta>*{font-size:10px}.home-bottom{padding-top:13px}.book-link{font-size:12px}.survivor-stats{gap:15px;font-size:10px;padding:4px 9px}.skill-list{gap:4px;padding-top:6px}.skill-list>*{font-size:9px;padding:1px 5px}.upgrade-inner{padding:12px 10px}.upgrade-inner h2{font-size:18px;margin-bottom:3px}.upgrade-inner .eyebrow{font-size:8px;margin-bottom:3px}.upgrade-inner>p:not(.eyebrow){font-size:9px;line-height:1.6;margin-bottom:10px}.upgrade-choices{gap:6px}.upgrade-choices button{min-height:123px;padding:9px 7px;gap:5px;border-radius:5px}.upgrade-choices button strong,.upgrade-choices button b{font-size:11px;line-height:1.6}.upgrade-choices button p,.upgrade-choices button span{font-size:9px;line-height:1.75}.upgrade-choices button small{font-size:8px}.book-toolbar{gap:6px;padding:7px;top:4px;flex-wrap:wrap;margin:10px 0 11px}.book-toolbar>label{font-size:10px}.book-toolbar>select{min-height:35px;padding:6px 24px 6px 8px;font-size:10px;max-width:none;flex:1}.book-pagination{gap:5px}.book-pagination button{font-size:10px;min-width:56px;min-height:35px;padding:6px 8px}.book-pagination>span{font-size:10px;min-width:35px}.paper-title small{font-size:8px}.book-row strong{-webkit-line-clamp:3}.book-row small{-webkit-line-clamp:2}.book-bottom{padding-top:11px;min-height:61px}.character-settings{padding:15px 13px;gap:13px;grid-template-columns:100px minmax(0,1fr)}#character-preview{width:100px;height:125px;align-self:start}.character-intro h2,.legacy-settings h2{font-size:17px}.character-intro>p:not(.eyebrow){font-size:11px}.character-actions{gap:7px}.character-actions>strong{font-size:11px}.character-actions .file-label{font-size:10px}#character-status{font-size:9px;min-height:0}#character-reset{font-size:10px;padding:6px 8px;min-height:34px}.character-downloads{gap:3px}.character-downloads a{font-size:9px;width:100%}.legacy-settings{padding-top:16px}.legacy-import{gap:8px}.legacy-import>label{display:grid;gap:4px;width:100%}.legacy-import input{max-width:100%;width:100%}.legacy-import button{min-height:37px}.preview-tools{gap:8px}.result-works-heading{font-size:16px}.result-work strong{-webkit-line-clamp:4}}
@media(max-width:390px){.book-toolbar>select{flex-basis:calc(100% - 34px)}.book-pagination{margin-left:auto;width:100%;justify-content:space-between;padding-top:1px}.book-pagination button{min-width:79px}.character-settings{grid-template-columns:80px minmax(0,1fr);gap:10px}#character-preview{width:80px;height:100px}.upgrade-choices button{padding:8px 5px}.upgrade-choices button strong,.upgrade-choices button b{font-size:10px}.upgrade-choices button p,.upgrade-choices button span{font-size:8px}.upgrade-inner h2{font-size:17px}}

/* Readable fixed-height rows and a larger player preview. */
.hero canvas{width:112px;height:112px}
.book-row strong{-webkit-line-clamp:2;line-height:1.35;font-size:11px}
.book-row small{-webkit-line-clamp:1;line-height:1.25;font-size:9px;margin-top:2px}
.book-row .article-link{display:block;font-size:9px;line-height:1.3;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.book-row .work-memo{margin:2px 0 0;font-size:9px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.source-stamp{color:#718266}
.run-item{display:block;font-size:11px;overflow-wrap:anywhere}.run-item small{display:block}
.hide-covers .empty-cover{visibility:hidden}
@media(max-width:650px){.hero canvas{width:96px;height:96px}.book-row strong{font-size:10px}.book-row small{font-size:8px}.book-row .article-link{font-size:8px}}

/* October 24: two clear entrances, native-pixel guide, ten-section progress. */
.hub-hero{max-width:1030px;margin:0 auto 18px;display:flex;align-items:center;justify-content:space-between;gap:28px;padding:5px 12px 8px}.hub-hero>div{min-width:0}.hub-hero h1{font-size:30px;font-weight:500;letter-spacing:.035em;margin:0 0 8px}.hub-hero p:not(.eyebrow){font-size:13px;color:var(--muted);line-height:1.8;margin:0}.hub-hero .eyebrow{margin-bottom:8px}.guide-portrait{display:block;width:80px;height:96px;flex:0 0 80px;object-fit:contain;image-rendering:pixelated;image-rendering:crisp-edges;margin-right:25px}
.hub-choices{max-width:1030px;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:22px;align-items:stretch}.hub-choices .game-choice{display:flex;flex-direction:column}.hub-choices .choice-art{height:102px;min-height:102px}.hub-choices .choice-art .choice-symbol{font-size:47px;text-shadow:none;transform:none;margin-top:3px}.hub-choices .art-label{top:10px;left:18px;font-size:8px}.hub-choices .choice-art-caption{bottom:8px;font-size:10px}.hub-choices .choice-body{padding:17px 22px 18px;display:flex;flex:1;flex-direction:column;align-items:stretch}.hub-choices .choice-body h2{font-size:23px;margin-bottom:7px}.hub-choices .choice-body p{min-height:0;font-size:12px;line-height:1.75;margin:0 0 11px}.hub-choices .choice-body .eyebrow{font-size:10px;margin-bottom:4px}.hub-choices .choice-body .primary{min-height:46px;font-size:13px;font-weight:600}.hub-choices .stage-help{font-size:10px;margin:8px 0 0;color:var(--muted);line-height:1.7}.hub-choices .typing-choice{border-top-color:var(--green)}.typing-choice .choice-art{background:linear-gradient(135deg,#394439,#273b39)!important}.typing-choice .choice-art::before,.typing-choice .choice-art::after{display:none}.typing-choice .choice-symbol{font-family:serif;font-size:48px!important;letter-spacing:-.05em;color:#e4e8d5}.typing-choice .choice-art-caption{color:#d6dfce}.typing-choice .choice-meta{margin:2px 0 14px}.typing-choice .choice-meta span{font-size:10px;background:#edf0e8;color:#6f7b62}
.stage-label{font-size:11px;color:var(--brown);font-weight:600;margin:0 0 4px}#stage-select{width:100%;max-width:none;min-height:42px;font-size:12px}.hub-choices .stage-description{font-size:11px;line-height:1.65;margin:6px 0 8px;color:var(--muted)}.stage-status{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;color:#796a60;font-variant-numeric:tabular-nums;margin:0 0 6px}.stage-status span:first-child{color:#667e60}.stage-progress{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px;list-style:none;margin:0 0 13px;padding:0}.stage-progress li{display:flex;justify-content:center;align-items:center;min-width:0;min-height:27px;border:1px solid #d8cdbb;border-radius:3px;background:#f0ebe1;color:#958775;font-size:10px;font-variant-numeric:tabular-nums;line-height:1.2}.stage-progress li.done,.stage-step.done{background:#e4eee5;border-color:#9eb69e;color:#406c4c;font-weight:700}.stage-progress li.found:not(.done),.stage-step.found:not(.done){background:#f1e6d2;border-color:#cbb287;color:#8b7043}.stage-progress .upcoming{background:#f3eee5}
.guide-download{display:flex;align-items:center;gap:16px;margin-top:auto;padding:16px 0 0;border-top:1px solid #e7dfd0}.guide-download>img{width:80px;height:96px;flex:0 0 80px;object-fit:contain;image-rendering:pixelated}.guide-download>div{display:grid;gap:4px;min-width:0}.guide-download strong{font-size:12px;font-weight:500}.guide-download small{font-size:10px}.guide-download a{font-size:11px;min-height:25px;display:inline-flex;align-items:center;justify-self:start}.typing-choice .stage-help{margin-bottom:15px!important}.home-bottom{max-width:1030px;margin-top:20px;padding-top:14px}.home-bottom .sample-note{font-size:10px}
/* Keep the actual action area at its native desktop width, responsive below it. */
.play-layout{grid-template-columns:minmax(0,640px) minmax(180px,240px);justify-content:center;gap:20px}.play-main{width:100%;max-width:640px}.touch-controls button{min-width:60px;min-height:54px}.direction-pad{gap:9px}#action-control{min-width:134px;min-height:54px}.game-notice:empty{display:none}.game-notice{min-height:32px}.run-panel .eyebrow{font-size:10px}#run-progress{font-size:11px;color:var(--muted);margin-bottom:10px}
/* Five rows on each fixed-height leaf; paging remains in the sticky toolbar. */
.book-spread{height:620px;min-height:620px;max-height:620px}.book-toolbar{top:8px;min-height:58px}.book-page{min-height:0}.book-row{min-height:0}.book-row strong{-webkit-line-clamp:2;line-height:1.35}.book-row .article-link{line-height:1.4;padding-bottom:1px}.book-row .work-memo{-webkit-line-clamp:1}.paper-title span{min-width:0}.book-pagination{font-variant-numeric:tabular-nums}.book-pagination button{min-height:40px;min-width:76px}.book-bottom{min-height:66px}
@media(max-width:900px){.hub-hero{gap:20px;padding-left:2px;padding-right:2px}.hub-hero h1{font-size:28px}.guide-portrait{margin-right:12px}.hub-choices{gap:17px}.hub-choices .choice-body{padding:16px 18px 18px}.hub-choices .choice-body h2{font-size:21px}.play-layout{grid-template-columns:minmax(0,640px)}.play-main,.run-panel{max-width:640px;width:100%;margin-left:auto;margin-right:auto}.run-list{grid-template-columns:minmax(0,1fr);max-height:230px}.guide-download{gap:12px}}
@media(max-width:650px){main{padding-top:16px}.hub-hero{gap:16px;margin-bottom:16px;padding-top:0;padding-bottom:0;align-items:center}.hub-hero h1{font-size:25px;line-height:1.5;letter-spacing:0;margin-bottom:6px}.hub-hero p:not(.eyebrow){font-size:11px}.hub-hero .eyebrow{font-size:9px;letter-spacing:.04em;margin-bottom:5px}.guide-portrait{margin:0;width:80px;height:96px}.hub-choices{grid-template-columns:minmax(0,1fr);gap:18px}.hub-choices .choice-art{height:88px;min-height:88px}.hub-choices .choice-art .choice-symbol{font-size:41px}.hub-choices .choice-body{padding:15px 17px 17px}.hub-choices .choice-body h2{font-size:22px}.hub-choices .choice-body p{font-size:12px}.hub-choices .choice-body .eyebrow{font-size:9px}.hub-choices .stage-description{font-size:11px}.hub-choices .stage-help{font-size:10px}.stage-progress{gap:3px}.stage-progress li{min-height:28px;font-size:10px}.guide-download{margin-top:0;padding-top:13px;gap:18px}.home-bottom{gap:9px;margin-top:17px}.home-bottom .sample-note{font-size:10px}.play-head h1{font-size:21px}.play-tools{gap:5px}.play-tools button{font-size:10px;min-height:39px;padding:7px 9px}.touch-controls{gap:12px;padding:10px 0 7px;position:sticky;bottom:0;z-index:7;background:var(--cream);padding-bottom:max(8px,env(safe-area-inset-bottom))}.touch-controls button{min-width:62px;min-height:56px;font-size:21px}.direction-pad{gap:8px}#action-control{min-width:125px;min-height:56px;font-size:14px}.controls-help{font-size:10px;line-height:1.8}.award-toast{top:48px}.book-toolbar{top:4px;min-height:53px}.book-pagination button{min-width:58px;min-height:38px}.book-page{padding-left:9px;padding-right:9px}.book-row strong{font-size:10px}.book-row small,.book-row .article-link,.book-row .work-memo{font-size:8px}.settings>summary{min-height:40px;display:list-item;align-content:center}}
@media(max-width:390px){.hub-hero h1{font-size:23px}.hub-hero{gap:10px}.hub-hero p:not(.eyebrow){font-size:10px}.hub-choices .choice-body{padding-left:15px;padding-right:15px}.touch-controls button{min-width:58px}#action-control{min-width:118px}.book-pagination{width:100%;justify-content:space-between}.book-pagination button{min-width:82px}.book-toolbar>select{flex-basis:calc(100% - 36px)}.guide-download strong{font-size:11px}}.hub-choices .jump .choice-art{background:linear-gradient(140deg,#39434b,#263638)}.hub-choices .jump .choice-art::before{width:58px;height:7px;left:19%;right:auto;top:auto;bottom:27px;border:0;border-top:3px solid #bdc7b0;border-radius:0;background:#596c67;opacity:.8}.hub-choices .jump .choice-art::after{width:76px;height:7px;left:auto;right:17%;top:auto;bottom:51px;border:0;border-top:3px solid #d7c9aa;border-radius:0;background:#77816e;opacity:.8}
.text-button{min-height:32px;padding:4px 0;border:0;background:transparent;color:var(--muted);font-size:10px;text-decoration:underline;text-underline-offset:3px;display:block;margin:6px auto 0}.text-button:hover{background:transparent;color:var(--rose)}

/* Playthrough polish: one paper reward, exact rank and a quiet ten-step route. */
.play-route{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px;min-height:31px;margin:0;padding:5px 9px;list-style:none;border:1px solid var(--line);border-top:0;border-bottom:0;background:#f8f3e9}.play-route .route-step{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:21px;padding:2px 4px;border:1px solid #ded4c2;border-radius:3px;background:#efeadf;color:#958875;font-size:10px;line-height:1.25;font-variant-numeric:tabular-nums}.play-route .route-step.is-done{border-color:#b2c3a9;background:#e7eee1;color:#56704d}.play-route .route-step.is-done::after{content:'✓';position:absolute;right:3px;top:2px;font-size:7px;color:#6d865f}.play-route .route-step.is-current{border-color:#a87586;background:#f4e6e8;color:#714658;font-weight:700;box-shadow:inset 0 -2px #a87586}.play-route .route-step.is-current::after{content:''}.play-route .route-step.is-current.is-done{background:#e8e9dd}
.award-toast{top:76px;left:50%;width:420px;max-width:calc(100% - 28px);display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:12px;padding:10px 13px 10px 10px;margin:0;border:1px solid #c8b99b;border-left:4px solid #ab8b64;border-radius:5px;background:#fffaf0;color:#4e3b38;box-shadow:0 3px 0 rgba(66,40,39,.16);pointer-events:none;transform:translateX(-50%);animation:reward-paper-in 180ms ease-out both}.award-toast.is-new{border-left-color:#a9667e}.award-toast.is-repeat{border-left-color:#7e906c;background:#fbf9ef}.award-toast.is-complete{border-color:#b69859;border-left-color:#b69859;background:#fff8e5}.award-number{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:0;min-height:65px;border:1px solid #cfbaa2;border-radius:3px;background:#f1e7d5;color:#8f6b4f}.award-number small{font-size:9px;line-height:1.15;color:inherit}.award-number #award-rank{display:block;margin:0;font-family:'Yu Mincho','Hiragino Mincho ProN',serif;font-size:27px;font-weight:600;line-height:1.15;color:inherit}.is-new .award-number{border-color:#d2a4b4;background:#f4e6e8;color:#8a4e65;animation:reward-stamp 180ms ease-out both}.is-repeat .award-number{border-color:#bdc9ad;background:#eaf0e1;color:#6c805b}.is-complete .award-number{border-color:#c5ab73;background:#f6e7bc;color:#8b692f}.award-copy{display:grid;gap:2px;min-width:0;align-content:center}.award-copy #award-label{display:block;font-size:9px;line-height:1.3;letter-spacing:.035em;color:#96705e;margin:0}.is-new .award-copy #award-label{color:#975671}.is-repeat .award-copy #award-label{color:#708262}.is-complete .award-copy #award-label{color:#99743b}.award-copy #award-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-height:2.9em;min-width:0;margin:0;font-size:13px;font-weight:600;line-height:1.45;color:#483837;overflow-wrap:anywhere}.award-copy #award-author{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;line-height:1.25;color:#927e70}.award-progress{display:flex;align-items:center;justify-content:space-between;gap:9px;min-width:0;margin-top:2px;font-size:10px;line-height:1.3;color:#7b6a54}.award-progress #award-count{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums}.award-progress #award-note{font-size:9px;color:#869071;flex-shrink:0}.award-track{height:3px;margin-top:2px;overflow:hidden;border-radius:2px;background:#e8deca}.award-track i{display:block;width:0;height:100%;border-radius:2px;background:#a47d86}.is-repeat .award-track i{background:#849875}.is-complete .award-track i{background:#b79753}.hide-covers .award-number,.hide-covers .award-progress,.hide-covers .award-track{visibility:visible}.book-row.last-found{background:rgba(183,153,101,.075);box-shadow:inset 3px 0 rgba(169,136,82,.34)}
@keyframes reward-paper-in{from{opacity:0;transform:translateX(-50%) translateY(-6px)}to{opacity:1;transform:translateX(-50%) translateY(0)}}
@keyframes reward-stamp{from{opacity:.7;transform:scale(1.065)}to{opacity:1;transform:scale(1)}}
@media(max-width:650px){.play-route{min-height:28px;padding:4px 6px;gap:3px}.play-route .route-step{min-height:20px;font-size:9px;padding:2px}.play-route .route-step.is-done::after{font-size:6px;right:2px;top:2px}.award-toast{top:6px;width:calc(100% - 20px);max-width:390px;grid-template-columns:37px minmax(0,1fr);gap:9px;padding:8px 10px 8px 8px;border-left-width:3px;box-shadow:0 2px 0 rgba(66,40,39,.14)}.award-number{min-height:55px;gap:0}.award-number #award-rank{font-size:24px}.award-number small{font-size:8px}.award-copy{gap:2px}.award-copy #award-label{font-size:8px;line-height:1.2}.award-copy #award-title{font-size:12px;line-height:1.4;max-height:2.8em}.award-copy #award-author{display:none}.award-progress{font-size:9px;margin-top:2px;gap:6px}.award-progress #award-note{font-size:8px}.award-track{height:3px;margin-top:1px}}
@media(max-width:360px){.award-toast{width:calc(100% - 14px);grid-template-columns:32px minmax(0,1fr);gap:7px;padding:7px 8px 7px 6px}.award-number #award-rank{font-size:22px}.award-copy #award-title{font-size:11px}.award-progress{font-size:8px}.play-route{gap:2px;padding-left:5px;padding-right:5px}}
@media(prefers-reduced-motion:reduce){.award-toast,.award-toast .award-number{animation:none!important;transform:none}.award-toast{transform:translateX(-50%)}.book-row.last-found{transition:none}}/* The objective occupies one stable short line, independent from transient messages. */
.hud-objective{font-size:10px;line-height:1.4;margin:0;padding:5px 12px;color:#70664f;background:#f8f4e9;border-left:1px solid var(--line);border-right:1px solid var(--line);min-height:24px}.result-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.result-stats .stat b{overflow-wrap:anywhere}@media(max-width:650px){.hud-objective{font-size:9px;padding:4px 8px;min-height:22px}.result-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Multi-article preview: one shared article selector and whole-title typing. */
.article-picker{max-width:1030px;margin:0 auto 18px;padding:13px 17px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 20px;align-items:center;border:1px solid var(--line);border-radius:7px;background:#fffcf5}.article-picker>label{grid-column:1/-1;font-size:11px;font-weight:600;color:var(--brown)}.article-picker #stage-select{grid-column:1;grid-row:2;min-width:0;width:100%;max-width:570px;min-height:41px}.article-picker .stage-status{grid-column:2;grid-row:2;gap:18px;margin:0;font-size:11px;white-space:nowrap}.article-picker #stage-description{grid-column:1/-1;min-height:18px;max-height:36px;overflow:hidden;font-size:11px;line-height:1.6;color:var(--muted);margin:3px 0 0}.article-picker #catalog-coverage{grid-column:1/-1;font-size:10px;line-height:1.65;color:#938274;margin:0}.typing-choice #typing-scope{width:100%;min-height:42px;margin-bottom:10px}.typing-choice #typing-pool-note{min-height:35px;font-size:11px;line-height:1.6;color:var(--muted);margin:7px 0 11px}.typing-choice #start-typing{margin-top:auto}#result-rules{max-width:730px;margin:14px auto 0;font-size:11px;line-height:1.8;color:var(--muted)}.settings .guide-download{max-width:480px;margin:15px 0 0;padding:14px;border:1px solid var(--line);border-radius:6px;background:#fffcf7}.settings .guide-download>div{flex:1}.settings .guide-download a{font-size:10px}
#typing-view>.play-head{max-width:900px;margin-left:auto;margin-right:auto}.typing-shell{position:relative;max-width:900px;min-height:485px;margin:0 auto;padding:22px 28px 20px;border:1px solid #d6cbb9;border-top:3px solid var(--rose);border-radius:8px;background:#fffdf7;box-shadow:0 3px 0 #e6ddce;isolation:isolate}.typing-top{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:8px}.typing-clock{font-size:12px;color:#8e776a;white-space:nowrap;font-variant-numeric:tabular-nums;line-height:1.2}.typing-clock strong{font-family:Georgia,serif;font-size:32px;font-weight:400;color:#7d4f61;margin:0 3px}.typing-rule{font-size:11px;color:var(--muted);margin:0}.typing-clock-track{height:3px;border-radius:2px;background:#eee5d7;overflow:hidden}.typing-clock-track i{display:block;width:100%;height:100%;background:#bc8b9d}.typing-subject{min-height:147px;max-height:230px;overflow:auto;overscroll-behavior:contain;padding:21px 0 15px;scrollbar-width:thin}.typing-subject .eyebrow{font-size:10px;margin-bottom:6px}.typing-title{font-family:'Yu Mincho','Hiragino Mincho ProN',serif;font-size:26px;font-weight:500;line-height:1.6;overflow-wrap:anywhere;margin:0 0 10px;letter-spacing:.025em}.typing-kana{font-size:14px;line-height:1.8;color:#9b8b78;margin:0;overflow-wrap:anywhere}.typing-roman{min-height:71px;max-height:113px;overflow:auto;padding:12px 15px;border:1px solid #e5d8c3;border-radius:5px;background:#f7f2e7;font-family:ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',monospace;font-size:23px;line-height:1.7;letter-spacing:.025em;word-break:break-all;overflow-wrap:anywhere;scrollbar-width:thin}.typing-typed{color:#c1b6a5}.typing-remaining{color:#4e3b43}.typing-input-label{display:grid;gap:5px;margin-top:15px;font-size:10px;line-height:1.5;color:#958373}.typing-input{display:block;width:100%;min-height:49px;padding:10px 13px;border:1px solid #bda68b;border-radius:5px;background:#fffefb;color:#654553;font-family:ui-monospace,Consolas,monospace;font-size:19px;line-height:1.3;caret-color:var(--rose);box-shadow:inset 0 1px 2px rgba(98,73,43,.025)}.typing-input:focus{outline:2px solid #b9899f;outline-offset:2px;border-color:#a36f88}.typing-input:disabled{background:#eee8dd;color:#a49887;opacity:1}.typing-ime{font-size:10px;line-height:1.65;color:#988778;margin:7px 0 0}.typing-feedback{min-height:26px;margin:5px 0 0;font-size:12px;line-height:1.8;color:#926b7c}.typing-shell.is-miss .typing-input{border-color:#b77783;background:#fff4f2}.typing-shell.is-miss .typing-feedback{color:#aa596a}.typing-shell.is-complete .typing-feedback{color:#8b6a43;animation:typing-bonus-note 180ms ease-out}.typing-metrics{display:flex;flex-wrap:wrap;gap:7px 18px;padding:11px 0 10px;border-top:1px solid #e9dfd0;font-size:11px;color:#8f7a67;font-variant-numeric:tabular-nums}.typing-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.typing-actions button{font-size:11px;min-height:38px;padding:8px 12px}.typing-shade{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;border-radius:6px;background:rgba(251,246,235,.94);color:#8a5d62;text-align:center;padding:25px}.typing-shade p{font-family:'Yu Mincho','Hiragino Mincho ProN',serif;font-size:27px;line-height:1.7;margin:0}.typing-shell.is-countdown .typing-shade p{font-family:Georgia,serif;font-size:72px;color:#9b687d}.typing-resume{min-width:150px;min-height:44px}.typing-discovery-strip{max-width:900px;min-height:47px;margin:14px auto 0;padding:11px 15px;border:1px solid #dcd1bd;border-radius:6px;background:#f2ecdf;display:flex;align-items:center;gap:14px;color:#8b7762;font-size:11px}.typing-discovery-strip #typing-new-count{flex-shrink:0;color:#77845e;font-weight:600;font-variant-numeric:tabular-nums}.typing-discovery-strip #typing-award-status{min-width:0;overflow-wrap:anywhere;line-height:1.6}.book-toolbar #book-stage-select,.book-toolbar #book-scope{min-width:0;width:100%;flex:1 1 170px;max-width:330px}.book-toolbar #book-stage-select{font-size:11px}.result-actions #next-topic{font-size:12px}
@keyframes typing-bonus-note{from{opacity:.6;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){.article-picker{gap:5px 12px}.article-picker #stage-select{max-width:none}.article-picker .stage-status{gap:10px;font-size:10px}.typing-shell{padding:20px 22px}.typing-title{font-size:24px}.typing-roman{font-size:21px}.book-toolbar #book-stage-select,.book-toolbar #book-scope{max-width:none;flex-basis:130px}.book-toolbar #book-stage-select{font-size:10px}}
@media(max-width:650px){.article-picker{padding:11px 13px;grid-template-columns:minmax(0,1fr);gap:5px;margin-bottom:16px}.article-picker>label,.article-picker #stage-select,.article-picker .stage-status,.article-picker #stage-description,.article-picker #catalog-coverage{grid-column:1;grid-row:auto}.article-picker>label{font-size:10px}.article-picker #stage-select{font-size:11px;min-height:41px}.article-picker .stage-status{font-size:10px;margin-top:2px;justify-content:space-between}.article-picker #stage-description{font-size:10px;max-height:34px;min-height:17px;margin-top:2px}.article-picker #catalog-coverage{font-size:9px}.typing-choice #typing-pool-note{font-size:10px;min-height:32px}#typing-view>.play-head h1{font-size:22px}.typing-shell{padding:16px 15px;min-height:475px}.typing-top{align-items:start;gap:12px;margin-bottom:7px}.typing-clock{font-size:10px}.typing-clock strong{font-size:28px}.typing-rule{max-width:190px;font-size:9px;line-height:1.6;text-align:right}.typing-subject{padding:17px 0 12px;min-height:130px;max-height:210px}.typing-title{font-size:21px;line-height:1.65;letter-spacing:0;margin-bottom:8px}.typing-kana{font-size:12px;line-height:1.7}.typing-subject .eyebrow{font-size:9px}.typing-roman{font-size:18px;line-height:1.65;padding:10px 12px;min-height:64px;max-height:95px}.typing-input-label{margin-top:13px;font-size:9px}.typing-input{font-size:18px;min-height:48px;padding:10px 11px}.typing-ime{font-size:9px}.typing-feedback{font-size:11px;min-height:25px}.typing-metrics{gap:5px 12px;font-size:10px;padding:9px 0}.typing-actions{gap:8px}.typing-actions button{font-size:10px;min-height:39px;padding:8px 10px}.typing-shade p{font-size:23px}.typing-shell.is-countdown .typing-shade p{font-size:64px}.typing-discovery-strip{margin-top:12px;padding:10px 12px;gap:10px;font-size:10px;align-items:start}.typing-discovery-strip #typing-new-count{font-size:10px}.book-toolbar{min-height:98px;gap:6px}.book-toolbar>label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.book-toolbar #book-stage-select,.book-toolbar #book-scope{flex:1 1 calc(50% - 4px);width:calc(50% - 4px);min-width:0;max-width:none;font-size:10px;min-height:35px;padding-left:8px}.book-toolbar .book-pagination{width:100%;margin:0;justify-content:space-between;padding-top:0}.book-toolbar .book-pagination button{min-width:82px}.settings .guide-download{margin-top:13px;padding:12px;gap:15px}.settings .guide-download strong{font-size:11px}.result-actions #next-topic{font-size:11px}#result-rules{font-size:10px}}
@media(prefers-reduced-motion:reduce){.typing-shell.is-complete .typing-feedback{animation:none;transform:none}.typing-clock-track i{transition:none}}
/* Keep the next input visible; only the visual tail is abbreviated by typing.js. */
.typing-roman{scroll-behavior:auto;scrollbar-gutter:stable}.typing-typed[title]{cursor:default}
@media(max-width:650px){.typing-roman{height:112px;min-height:112px;max-height:112px}}
.storage-warning{padding:12px 16px;margin:0 0 18px;border:1px solid #c8a16d;border-left:4px solid #aa744e;background:#fff3d9;color:#795534;font-size:12px;line-height:1.8;overflow-wrap:anywhere}

.book-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap}.book-head-actions #back-to-play{min-height:36px;padding:7px 12px;font-size:11px;white-space:nowrap}@media(max-width:650px){.book-head-actions{gap:6px;max-width:52%}.book-head-actions #back-to-play{min-height:35px;font-size:10px;padding:6px 9px}}

.view h1[tabindex="-1"]:focus{outline:none}
@media(max-width:650px){
 .hub-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}
 .hub-choices .choice-art{height:58px}.hub-choices .choice-art .choice-symbol{font-size:27px}.hub-choices .art-label{font-size:7px}.hub-choices .choice-art-caption{font-size:8px;bottom:7px}
 .hub-choices .choice-body{padding:13px 11px 14px;display:flex;flex-direction:column;align-items:stretch}
 .hub-choices .choice-body>.eyebrow,.hub-choices .stage-help,.hub-choices .stage-progress{display:none}
 .hub-choices .choice-body h2{font-size:16px;line-height:1.6;min-height:51px;margin-bottom:8px;letter-spacing:0}
 .hub-choices .choice-body>p:not(.sample-note){font-size:11px;line-height:1.85;min-height:104px;margin-bottom:8px}
 .hub-choices .choice-body>.primary{font-size:11px;line-height:1.7;min-height:46px;padding:9px 5px;width:100%}
 .hub-choices .choice-body>label{font-size:9px;line-height:1.5;margin:0 0 4px}.hub-choices #typing-scope{font-size:10px;min-height:38px;padding:5px 19px 5px 6px;margin-bottom:7px}
 .hub-choices #typing-pool-note{font-size:9px;line-height:1.6;min-height:30px;margin:0 0 9px}.hub-choices .legacy-link{font-size:9px;line-height:1.8;margin-top:10px}
 .hub-choices .jump #start-jump{margin-top:auto}.hub-choices #start-over{font-size:9px;line-height:1.7;margin-top:8px;padding:5px 0}
}

@media(max-width:650px){.hub-choices .choice-art{height:58px;min-height:58px}.hub-choices .choice-body>p:not(.sample-note){min-height:0}.hub-choices .jump #start-jump{margin-top:auto}.home-bottom .legacy-link{font-size:10px;margin:0}}

@media(min-width:651px) and (max-height:820px){
 main{padding-top:16px}.hub-hero{min-height:0;padding:0 0 15px;margin-bottom:0}.hub-hero h1{font-size:28px;line-height:1.4;margin-bottom:5px}.hub-hero .eyebrow{font-size:9px;line-height:1.4;margin-bottom:5px}.hub-hero p:not(.eyebrow){font-size:12px;line-height:1.65}.hub-hero .guide-portrait{width:64px;height:77px}
 .article-picker{padding:10px 15px;gap:4px;margin-bottom:15px}.article-picker #stage-select{min-height:37px}.article-picker #stage-description{min-height:16px;line-height:1.5}.article-picker #catalog-coverage{line-height:1.5}
 .hub-choices .choice-art{height:60px;min-height:60px}.hub-choices .choice-art .choice-symbol{font-size:30px}.hub-choices .choice-art-caption{font-size:9px;bottom:7px}.hub-choices .art-label{font-size:8px}
 .hub-choices .game-choice{display:flex;flex-direction:column}.hub-choices .choice-body{padding:13px 18px 14px;display:flex;flex:1;flex-direction:column}.hub-choices .choice-body>.eyebrow{font-size:9px;line-height:1.4;margin-bottom:5px}.hub-choices .choice-body h2{font-size:21px;line-height:1.4;margin-bottom:5px}.hub-choices .choice-body>p:not(.sample-note){font-size:12px;line-height:1.7;min-height:0;margin-bottom:8px}
 .hub-choices .jump #start-jump{margin-top:auto}.hub-choices #typing-scope{min-height:37px;padding-top:6px;padding-bottom:6px}.hub-choices #typing-pool-note{min-height:16px;margin-bottom:8px}.hub-choices .stage-progress{margin:9px 0 11px}.hub-choices .stage-help{font-size:10px;line-height:1.6;margin-top:6px}.hub-choices .primary{min-height:42px}
}

/* Result and community bridge: original typing rules, separate preview records. */
.legacy-result{max-width:820px;margin:0 auto 22px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:14px}
.assessment{display:flex;gap:18px;align-items:center;padding:18px;background:var(--paper);border:1px solid var(--line);border-top:3px solid var(--rose);border-radius:7px;min-width:0}
.assessment-badge{display:grid;place-items:center;min-width:84px;flex-shrink:0;color:var(--rose);border-right:1px solid var(--line);padding-right:18px}
.assessment-badge b{font-family:serif;font-size:42px;line-height:1.3}.assessment-badge span{font-size:12px;font-variant-numeric:tabular-nums}.assessment h2{font-size:19px;margin:3px 0 7px}.assessment p{margin:0}.assessment>div:last-child{min-width:0}.pb-notice{display:block;font-size:12px;color:var(--green)}
.athena-voice{display:flex;align-items:center;gap:15px;padding:18px;background:#f9f2ec;border:1px solid #dfcbd0;border-radius:7px;min-width:0}
.athena-voice img{image-rendering:pixelated;object-fit:contain;flex-shrink:0}.athena-voice p{margin:4px 0 0;font-size:13px;line-height:1.9;overflow-wrap:anywhere}.athena-voice small{color:var(--rose)}
.rank-guide,.fastest-work{grid-column:1/-1}.rank-guide{padding:9px 14px;border:1px solid var(--line);background:#fdfaf4;border-radius:5px}
.rank-guide summary{cursor:pointer;color:var(--muted);font-size:12px}.rank-guide>p{margin:10px 0}.rank-guide table{display:inline-table;vertical-align:top;border-collapse:collapse;margin:8px 18px 8px 0;max-width:100%;font-size:12px}.rank-guide caption{font-weight:600;text-align:left;padding:5px 0}.rank-guide th,.rank-guide td{padding:5px 12px 5px 0;text-align:left;border-bottom:1px solid var(--line);font-weight:400}.rank-guide th{color:var(--brown)}
.fastest-work{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 15px;padding:13px 17px;border-left:3px solid var(--green);background:#edf0e7}
.fastest-work small{grid-column:1/-1}.fastest-work strong{font-size:13px;overflow-wrap:anywhere}.fastest-work span{font-size:12px;color:var(--green)}.fastest-work a{font-size:11px}
.result-submit{max-width:820px;margin:20px auto 10px;border:1px solid var(--line);border-radius:6px;background:var(--paper)}
.result-submit>summary{padding:14px 18px;cursor:pointer;color:var(--brown);font-weight:600}.result-submit>div{padding:0 18px 18px}
.private-note{font-size:12px;color:#80624d;padding:10px 12px;background:#f2e9db;border-radius:4px}
.submission-form{display:grid;gap:7px;max-width:650px;margin:12px 0}.submission-form>label:not(.check-row){font-size:12px;color:var(--brown);margin-top:7px}
.submission-form input[type=text],.submission-form select,.submission-form textarea,.community-filters select{min-width:0;width:100%;min-height:42px;border:1px solid #c8bba5;border-radius:4px;background:#fffef9;color:var(--ink);padding:9px 11px;font:inherit}
.submission-form textarea{resize:vertical;line-height:1.7}.submission-form .check-row{display:flex;align-items:center;gap:5px;margin:9px 0;font-size:13px}.check-row input{width:18px;height:18px;accent-color:var(--rose)}.submission-form .primary{justify-self:start;min-width:220px;margin-top:9px}.character-count{text-align:right}.submission-status{font-size:12px;color:var(--green);margin:3px 0}
.own-submission h3{font-size:14px;margin-top:17px}.review-card{padding:14px 17px;border:1px solid var(--line);border-radius:5px;background:#fffdf7;margin:11px 0}.review-card>small,.review-card>strong{display:block;overflow-wrap:anywhere}.review-card p{white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0;font-size:13px}.review-card strong{font-size:13px}
.community-switches{display:flex;gap:7px;margin:17px 0}.community-switches button{flex:1;max-width:250px}.community-switches .selected{background:var(--rose);border-color:var(--rose);color:white}
.community-filters{display:grid;grid-template-columns:auto minmax(130px,230px) auto minmax(140px,250px);align-items:center;gap:10px;margin:15px 0}.community-filters label{font-size:12px;color:var(--muted)}
.community-content{margin:20px 0}.community-content h2{font-size:19px;margin-top:24px}.empty-state{padding:19px 21px;border:1px dashed #d3c5b1;border-radius:5px;color:var(--muted);font-size:13px}
.table-scroll{overflow-x:auto;max-width:100%;border:1px solid var(--line);border-radius:6px;background:var(--paper)}.records-table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}.records-table th,.records-table td{padding:12px 15px;border-bottom:1px solid #e7dfd1;font-weight:400;overflow-wrap:anywhere}.records-table thead th{font-size:11px;color:var(--muted);background:#eee8dc}.records-table tbody th{font-weight:600;max-width:180px}.records-table tr:last-child td,.records-table tr:last-child th{border-bottom:0}.records-table td:first-child{width:55px;color:var(--rose)}
#result-view>.text-button{display:block;margin:10px auto 20px}
@media(max-width:650px){.site-header nav{width:100%;margin-left:0;justify-content:space-between}.site-header nav button{padding-inline:8px}.legacy-result{grid-template-columns:minmax(0,1fr);gap:9px}.assessment{padding:13px;gap:14px}.assessment-badge{min-width:75px;padding-right:14px}.assessment-badge b{font-size:34px}.assessment h2{font-size:18px}.athena-voice{padding:13px}.athena-voice p{font-size:12px}.community-switches button{font-size:12px;padding-inline:8px}.community-filters{grid-template-columns:70px minmax(0,1fr);gap:7px}.records-table{font-size:11px;min-width:330px}.records-table th,.records-table td{padding:10px 8px}.fastest-work{grid-template-columns:minmax(0,1fr)}.rank-guide table{font-size:11px;width:100%;margin-right:0}.result-submit>summary{padding:12px 13px;font-size:13px}.result-submit>div{padding:0 13px 13px}.submission-form .primary{width:100%;min-width:0}}
