@import "https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Zen+Old+Mincho:wght@500;600;700&family=Zen+Kaku+Gothic+New:wght@400;500;600;700&display=swap";
:root{--paper:#f6f1e5;--paper-deep:#ece3d0;--ink:#28352b;--muted:#7d8373;--olive:#6d7e55;--olive-dark:#4d6248;--rose:#d67860;--sun:#e8b751;--line:#dcd4c2;--white:#fffdf7;--serif:"Zen Old Mincho","Yu Mincho","Hiragino Mincho ProN",serif;--sans:"Zen Kaku Gothic New","Hiragino Kaku Gothic ProN",sans-serif}*{box-sizing:border-box}html{background:var(--paper);min-height:100%}body{color:var(--ink);font-family:var(--sans);background:var(--paper);margin:0}button,input{font:inherit}button{color:inherit}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline-offset:2px;outline:3px solid #d67860}.home-shell{width:min(1120px,100% - 64px);margin:0 auto;padding:0 0 44px}.topbar{border-bottom:1px solid var(--line);align-items:center;gap:24px;min-height:78px;display:flex}.brand-mark{font-family:var(--serif);letter-spacing:.08em;white-space:nowrap;align-items:center;gap:10px;font-size:17px;font-weight:700;display:inline-flex}.brand-icon{background:var(--olive-dark);width:31px;height:31px;color:var(--paper);font:700 15px var(--serif);border-radius:50%;place-items:center;display:grid}.top-rule{background:var(--line);flex:1;height:1px}.family-switch{align-items:center;gap:5px;display:flex}.family-chip,.add-child{cursor:pointer;min-height:42px;color:var(--muted);background:0 0;border:0;border-radius:99px;padding:0 13px;font-size:13px;transition:all .2s}.family-chip{align-items:center;gap:8px;display:inline-flex}.family-chip.is-active{color:var(--ink);background:var(--paper-deep)}.child-dot{color:var(--olive);font-size:8px}.child-dot-1{color:var(--rose);font-size:9px}.child-dot-2{color:#b68a36}.child-dot-3{color:#748b97;font-size:9px}.add-child{width:42px;color:var(--olive-dark);border:1px dashed #b5aa95;padding:0;font-size:21px}.add-child:hover{background:var(--white)}.add-child-form{z-index:4;border:1px solid var(--line);background:var(--white);border-radius:12px;gap:6px;margin-top:8px;padding:8px;display:flex;position:absolute;right:max(32px,50vw - 560px);box-shadow:0 8px 30px #28352b16}.add-child-form input{width:145px;color:var(--ink);background:0 0;border:0;outline:0;padding:8px}.small-submit,.small-cancel{cursor:pointer;border:0;border-radius:8px;padding:7px 11px}.small-submit{color:#fff;background:var(--olive-dark)}.small-cancel{color:var(--muted);background:0 0;font-size:18px}.hero{background:#e8ecde;border-radius:4px;align-items:center;min-height:244px;margin-top:36px;padding:30px 42px 32px;display:flex;position:relative;overflow:hidden}.hero-copy{z-index:1;width:61%;position:relative}.hero-heading-line{color:var(--olive-dark);align-items:center;gap:12px;display:flex}.hero-kicker{letter-spacing:.12em;font-size:12px}.tiny-spark{color:var(--rose);font-size:15px}.hero h1{font:600 clamp(27px,3.2vw,40px)/1.42 var(--serif);letter-spacing:.035em;margin:11px 0 20px}.mobile-break{display:none}.hero-lower{align-items:center;gap:20px;display:flex}.hero-stage{background:var(--olive-dark);width:46px;height:46px;color:var(--white);font:600 13px var(--serif);border-radius:50%;place-items:center;display:grid;box-shadow:0 0 0 5px #6d7e5520}.progress-wrap{width:min(240px,44%)}.progress-text{color:var(--muted);align-items:baseline;gap:5px;margin-bottom:6px;font-size:11px;display:flex}.progress-text strong{color:var(--ink);font:600 17px var(--serif)}.progress-track{background:#d3dac8;border-radius:99px;height:4px;overflow:hidden}.progress-track span{background:var(--rose);border-radius:inherit;height:100%;transition:width .35s;display:block}.hero-art{position:absolute;inset:0 0 0 58%;overflow:hidden}.sun-disc{opacity:.85;background:#efd184;border-radius:50%;width:103px;height:103px;position:absolute;top:30px;right:92px}.shelf-line{background:#9d8258;border-radius:3px;height:7px;position:absolute;bottom:42px;left:19%;right:9%;box-shadow:0 7px #b39b75}.book-stack{align-items:end;gap:3px;display:flex;position:absolute;bottom:49px}.book-stack i{border-radius:4px 4px 1px 1px;width:25px;display:block;box-shadow:inset 4px 0 #ffffff30}.stack-one{left:24%}.stack-one i:first-child{background:#d67860;height:57px;transform:rotate(-4deg)}.stack-one i:nth-child(2){background:#62784f;height:67px}.stack-one i:nth-child(3){background:#e5b64e;height:48px;transform:rotate(5deg)}.stack-two{left:63%}.stack-two i:first-child{background:#829a9a;height:53px}.stack-two i:nth-child(2){background:#d67860;height:62px;transform:rotate(3deg)}.sprout{width:50px;height:80px;position:absolute;bottom:50px;right:15%}.sprout i{transform-origin:bottom;background:#667c53;width:2px;height:66px;position:absolute;bottom:0;left:24px;transform:rotate(5deg)}.sprout b{z-index:1;background:#7d9466;border-radius:100% 0;width:25px;height:15px;position:absolute}.sprout b:first-child{top:15px;left:3px;transform:rotate(22deg)}.sprout b:nth-child(2){top:32px;right:0;transform:rotate(72deg)}.stage-rail{border-bottom:1px solid var(--line);scrollbar-width:none;justify-content:space-between;align-items:center;gap:7px;margin:30px 0 25px;padding-bottom:14px;display:flex;overflow-x:auto}.stage-rail::-webkit-scrollbar{display:none}.stage-tab{min-height:42px;color:var(--muted);cursor:pointer;font:600 14px var(--serif);background:0 0;border:0;border-radius:3px;flex:1 0 50px;transition:all .2s}.stage-tab:hover{color:var(--ink);background:#ede7d9}.stage-tab.selected{color:var(--white);background:var(--olive-dark);box-shadow:0 4px 10px #4d62482b}.stage-tab.earlier:not(.selected){color:var(--olive-dark)}.section-heading{justify-content:space-between;align-items:center;margin:0 0 14px;display:flex}.section-title-wrap{align-items:center;gap:12px;display:flex}.section-number{color:#7b735e;width:28px;height:28px;font:600 11px var(--serif);background:#e8deca;border-radius:50%;place-items:center;display:grid}.section-heading h2{font:600 21px var(--serif);letter-spacing:.035em;margin:0}.board-actions{align-items:center;gap:10px;display:flex}.library-dot{color:#78915f;font-size:8px}.quiet-button{color:#636b5b;cursor:pointer;background:0 0;border:1px solid #c8c1b2;border-radius:99px;min-height:44px;padding:8px 14px;font-size:12px}.quiet-button.active{border-color:var(--rose);color:#a94e3a;background:#f6e8e1}.shuffle-button{border:1px solid var(--line);background:var(--white);width:44px;height:44px;color:var(--olive-dark);cursor:pointer;border-radius:50%;font-size:20px}.shuffle-button:hover{transform:rotate(-25deg)}.board-layout{grid-template-columns:minmax(0,1fr) 172px;align-items:stretch;gap:22px;display:grid}.bingo-board{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;display:grid}.bingo-cell{aspect-ratio:1.3;background:#fffdf8;border:1px solid #ddd5c4;border-radius:4px;min-width:0;transition:transform .18s,box-shadow .18s;position:relative}.bingo-cell:hover{z-index:1;transform:translateY(-2px);box-shadow:0 5px 14px #28352b12}.cell-mark{text-align:left;border-radius:inherit;cursor:pointer;background:0 0;border:0;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:4px;padding:9px 10px;display:flex;position:absolute;inset:0}.cell-number{font:600 10px var(--serif);color:#a4a08f}.cell-title{-webkit-line-clamp:2;color:#374339;-webkit-box-orient:vertical;font-size:clamp(10px,1vw,12px);font-weight:600;line-height:1.5;display:-webkit-box;overflow:hidden}.library-credit{color:#68765b;text-underline-offset:2px;font-size:11px;text-decoration:underline}.settings-link{color:#52634b;white-space:nowrap;font-size:13px}.settings-page{width:min(100% - 32px,680px);margin:34px auto}.settings-card{border:1px solid var(--line);background:#fffdf8;border-radius:16px;margin-top:22px;padding:clamp(20px,4vw,36px)}.settings-card h1{font:600 24px var(--serif);margin:0 0 22px}.settings-card form{gap:18px;display:grid}.settings-card label{gap:7px;font-size:14px;display:grid}.settings-card input,.settings-card select{width:100%;min-height:46px;font:inherit;background:#fff;border:1px solid #c9c9c2;border-radius:9px;padding:0 12px}.settings-card button{min-height:46px}.configured-state{color:#52634b;margin:0 0 18px;font-weight:600}.settings-error{color:#a43d32}.remove-card{color:#a43d32;background:0 0;border:1px solid #a43d32;margin-top:12px;padding:10px 14px}.manage-children{color:var(--olive-dark);background:0 0;border:0;padding:8px;font-size:12px}.child-management{gap:6px;width:min(420px,100%);margin:0 0 12px auto;display:grid}.child-management>div{background:var(--white);border:1px solid var(--line);align-items:center;gap:8px;padding:8px;display:flex}.child-management span{flex:1}.child-management button{border:1px solid var(--line);background:0 0;min-height:38px;padding:0 10px}.cell-library{color:#64774f;text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:8px;line-height:1.25;display:block;overflow:hidden}.cell-detail{color:#9b9b89;opacity:.55;border-radius:50%;place-items:center;width:22px;height:22px;font-size:13px;display:grid;position:absolute;bottom:4px;right:5px}.cell-detail:hover{opacity:1;color:var(--rose);background:#f8eee6}.bingo-cell.completed{background:#e7eddf;border-color:#b6c3a8}.completed .cell-number{color:var(--olive-dark)}.completed .cell-title{color:#435c43}.cell-check{background:var(--olive-dark);color:#fff;border-radius:50%;place-items:center;width:20px;height:20px;font-size:12px;display:grid;position:absolute;top:7px;right:9px}.skeleton-cell{background:#f0ebdf;animation:1.2s ease-in-out infinite alternate pulse}@keyframes pulse{to{opacity:.56}}.board-side{border:1px solid var(--line);background:#f0eadb;border-radius:4px;flex-direction:column;justify-content:center;align-items:center;padding:18px 12px;display:flex;position:relative}.bingo-score{flex-direction:column;align-items:center;line-height:1.4;display:flex}.score-flower{color:var(--rose);font-size:21px}.bingo-score strong{font:600 43px/.98 var(--serif);margin-top:7px}.bingo-score span:last-child{color:var(--muted);margin-top:5px;font-size:11px}.list-link{width:100%;color:var(--olive-dark);border-top:1px solid #d6cbb6;justify-content:space-between;align-items:center;padding:13px 1px 0;font-size:12px;font-weight:600;display:flex}.list-link span{font-size:16px}.page-footer{border-top:1px solid var(--line);color:#929081;font:500 10px var(--serif);letter-spacing:.08em;justify-content:space-between;margin-top:34px;padding-top:13px;display:flex}.toast{bottom:max(18px,env(safe-area-inset-bottom));z-index:10;color:#fff;background:#8d3e32;border-radius:99px;margin:0;padding:12px 18px;font-size:13px;position:fixed;left:50%;transform:translate(-50%);box-shadow:0 4px 18px #28352b22}.detail-page{width:min(760px,100% - 40px);margin:0 auto;padding:30px 0 54px}.back-link{min-height:44px;color:var(--olive-dark);align-items:center;font-size:13px;display:inline-flex}.book-detail-card{border:1px solid var(--line);background:var(--white);margin-top:25px;padding:40px 50px 48px;position:relative;box-shadow:0 12px 35px #4d62480c}.detail-stage{color:var(--olive-dark);font:600 13px var(--serif);letter-spacing:.08em}.detail-stage span{color:#b4ad9d}.detail-cover{color:#627353;width:126px;height:164px;font:600 14px var(--serif);background:#dfe5d5;place-items:center;margin:28px 0 25px;display:grid;position:relative;overflow:hidden;box-shadow:7px 7px #e7ddc8}.cover-shape{background:#eabf66;border-radius:52% 48% 61% 39%;width:78px;height:78px;position:absolute;top:25px;transform:rotate(-25deg)}.cover-band{background:#bd7860;height:24px;position:absolute;bottom:27px;left:0;right:0}.detail-cover span{z-index:1;color:#56664b;position:absolute;top:56px}.book-detail-card h1{font:600 clamp(24px,4vw,36px)/1.5 var(--serif);letter-spacing:.03em;margin:0 0 26px}.detail-facts{border-top:1px solid var(--line);margin:0}.detail-facts div{border-bottom:1px solid var(--line);grid-template-columns:84px 1fr;gap:18px;padding:13px 0;display:grid}.detail-facts dt{color:var(--muted);font-size:12px}.detail-facts dd{margin:0;font-size:14px;line-height:1.6}.detail-actions{flex-wrap:wrap;gap:10px;margin-top:26px;display:flex}.reserve-button,.library-check{border:1px solid var(--olive-dark);background:var(--olive-dark);color:#fff;cursor:pointer;border-radius:2px;justify-content:center;align-items:center;min-height:48px;padding:0 18px;font-size:13px;display:inline-flex}.library-check{color:var(--olive-dark);background:0 0}.library-results{gap:8px;width:100%;margin-top:9px;display:grid}.library-results a{border:1px solid var(--line);justify-content:space-between;padding:12px;font-size:12px;display:flex}.library-results strong{color:var(--olive-dark)}.list-page{width:min(920px,100% - 48px);margin:0 auto;padding:21px 0 60px}.list-top{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;display:flex}.list-top>span{color:var(--muted);font-size:12px}.list-header{grid-template-columns:80px 1fr 180px;align-items:center;gap:17px;padding:28px 0;display:grid}.list-level{background:var(--olive-dark);width:64px;height:64px;color:var(--white);font:600 17px var(--serif);border-radius:50%;place-items:center;display:grid}.list-header h1{font:600 28px var(--serif);margin:0}.list-progress{color:var(--muted);grid-template-columns:auto auto 1fr;align-items:center;gap:4px;font-size:12px;display:grid}.list-progress strong{color:var(--ink);font:600 21px var(--serif)}.list-progress div{background:#e6decd;border-radius:5px;grid-column:1/-1;height:4px;margin-top:5px;overflow:hidden}.list-progress i{background:var(--rose);height:100%;display:block}.stage-list{border-top:1px solid var(--line);margin:0;padding:0;list-style:none}.stage-list li{border-bottom:1px solid var(--line);grid-template-columns:46px 1fr minmax(120px,200px);align-items:center;gap:13px;min-height:65px;padding:8px 6px;display:grid}.list-check{color:#948d7a;width:38px;height:38px;font:600 11px var(--serif);cursor:pointer;background:0 0;border:1px solid #cdc5b4;border-radius:50%}.stage-list li.read .list-check{background:var(--olive-dark);border-color:var(--olive-dark);color:#fff;font-size:16px}.list-book{align-content:center;gap:3px;min-height:46px;display:grid}.list-book strong{font:600 15px var(--serif)}.list-book span,.list-publisher{color:var(--muted);font-size:11px}.list-publisher{text-align:right}@media (min-width:1500px){.home-shell{width:min(1220px,100% - 80px)}}@media (max-width:760px){.home-shell{width:calc(100% - 28px);padding-bottom:26px}.topbar{gap:12px;min-height:66px}.brand-mark{gap:7px;font-size:15px}.brand-icon{width:28px;height:28px}.top-rule{display:none}.family-switch{gap:1px;margin-left:auto}.family-chip{gap:5px;min-height:38px;padding:0 8px;font-size:11px}.add-child{width:44px;height:44px;min-height:44px}.add-child-form{right:14px}.hero{min-height:224px;margin-top:18px;padding:24px 20px}.hero-copy{width:76%}.hero h1{max-width:280px;margin:9px 0 18px;font-size:clamp(25px,7vw,31px);line-height:1.4}.mobile-break{display:initial}.hero-art{opacity:.72;left:57%}.sun-disc{width:72px;height:72px;top:22px;right:17px}.shelf-line{height:6px;bottom:27px;left:3%;right:7%}.book-stack{transform-origin:0 100%;bottom:33px;transform:scale(.8)}.stack-one{left:1%}.stack-two{left:55%}.sprout{transform-origin:100% 100%;bottom:33px;right:1%;transform:scale(.72)}.hero-lower{gap:14px}.hero-stage{width:40px;height:40px;font-size:12px}.progress-wrap{width:min(165px,55%)}.stage-rail{justify-content:flex-start;gap:4px;margin:21px -1px 19px;padding-bottom:10px}.stage-tab{flex:0 0 48px;min-height:44px}.section-heading{margin-bottom:11px}.section-title-wrap{gap:8px}.section-number{width:25px;height:25px;font-size:10px}.section-heading h2{font-size:17px}.board-actions{gap:6px}.quiet-button{min-height:44px;padding:7px 10px;font-size:10px}.shuffle-button{width:44px;height:44px}.board-layout{grid-template-columns:minmax(0,1fr);gap:10px}.bingo-board{gap:5px}.bingo-cell{aspect-ratio:.94}.cell-mark{gap:3px;padding:7px 5px 6px}.cell-number{font-size:9px}.cell-title{-webkit-line-clamp:3;padding-right:18px;font-size:clamp(9px,2.7vw,11px);line-height:1.45}.cell-detail{width:18px;height:18px;font-size:11px;bottom:1px;right:2px}.cell-check{width:16px;height:16px;font-size:10px;top:3px;right:3px}.board-side{grid-template-columns:1fr 1fr;align-items:center;gap:11px;min-height:58px;padding:8px 13px;display:grid}.bingo-score{flex-direction:row;justify-content:center;gap:6px}.score-flower{font-size:15px}.bingo-score strong{margin:0;font-size:25px}.bingo-score span:last-child{margin:0;font-size:10px}.list-link{border-top:0;padding:8px 0;font-size:11px}.page-footer{margin-top:22px}.detail-page{width:calc(100% - 28px);padding:13px 0 35px}.book-detail-card{margin-top:12px;padding:27px 22px 32px}.detail-cover{width:108px;height:140px;margin:22px 0}.book-detail-card h1{margin-bottom:21px}.list-page{width:calc(100% - 28px);padding-top:8px}.list-header{grid-template-columns:58px 1fr 106px;gap:9px;padding:22px 0}.list-level{width:50px;height:50px;font-size:14px}.list-header h1{font-size:22px}.list-progress{gap:3px;font-size:10px}.list-progress strong{font-size:18px}.stage-list li{grid-template-columns:38px minmax(0,1fr);gap:8px;min-height:63px;padding:7px 2px}.list-check{width:34px;height:34px}.list-book strong{font-size:14px;line-height:1.45}.list-book span{font-size:10px}.list-publisher{display:none}}@media (max-width:360px){.home-shell{width:calc(100% - 20px)}.family-chip{padding:0 5px;font-size:10px}.hero{padding-left:15px;padding-right:15px}.hero-copy{width:82%}.cell-mark{padding:6px 4px}.cell-title{font-size:9px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}.login-shell{place-items:center;min-height:100svh;padding:24px;display:grid}.login-card{background:var(--paper,#fff);border-radius:24px;gap:20px;width:min(100%,360px);padding:28px;display:grid}.login-card h1{margin:0;font-size:1.5rem}.login-card input{min-height:48px;font:inherit;border:1px solid #c9c9c2;border-radius:12px;padding:0 14px}.login-card button{white-space:nowrap;border-radius:12px;width:100%;min-height:48px}.login-card [role=alert]{color:#a43d32;margin:0}
