:root{--ink:#19342d;--muted:#68756e;--paper:#f5f2e9;--paper2:#e9e5d9;--green:#1d5142;--green-dark:#17372f;--orange:#d76d42;--line:#d5d0c3;--serif:Georgia,'Times New Roman',serif;--sans:Arial,Helvetica,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.5}a{color:inherit}.skip-link{position:absolute;left:-999px;top:8px;background:white;padding:10px 14px;z-index:20}.skip-link:focus{left:8px}.topbar{height:78px;padding:0 clamp(24px,5vw,78px);display:flex;align-items:center;border-bottom:1px solid var(--line);gap:50px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;letter-spacing:.16em}.brand strong{display:block;font-size:15px;line-height:1.1}.brand small{display:block;font-size:9px;letter-spacing:.34em;margin-top:3px}.brand-mark{height:28px;width:22px;display:flex;gap:3px;align-items:end}.brand-mark i{display:block;width:5px;border-radius:3px 3px 0 0;background:var(--orange)}.brand-mark i:nth-child(1){height:18px}.brand-mark i:nth-child(2){height:26px;background:var(--green)}.brand-mark i:nth-child(3){height:21px;background:#b88a45}.topbar nav{display:flex;gap:30px;margin-left:auto}.topbar nav a{text-decoration:none;font-size:12px;color:#43564d;letter-spacing:.05em}.topbar nav a:hover,.topbar nav a.active{color:var(--orange)}.topbar-note{font-family:var(--serif);font-style:italic;font-size:13px;color:var(--muted)}main{min-height:calc(100vh - 134px)}.view{display:none}.view.is-visible{display:block}.hero-view{position:relative;min-height:calc(100vh - 134px);padding:clamp(40px,7vh,80px) clamp(24px,8vw,120px) 60px;display:grid!important;grid-template-columns:1fr 1fr;align-items:center;column-gap:7vw;overflow:hidden}.hero-view[hidden]{display:none!important}.hero-copy{max-width:580px;position:relative;z-index:2;padding-bottom:28px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:.18em;color:#6b776f;margin:0 0 22px}.eyebrow-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--orange);margin-right:8px}.hero-copy h1,.section-heading h1{font-family:var(--serif);font-weight:400;letter-spacing:-.045em;line-height:1.02;margin:0;font-size:clamp(48px,6vw,82px)}.hero-copy h1 em{color:var(--green);font-weight:400}.hero-intro{max-width:440px;color:#53635a;font-size:17px;line-height:1.65;margin:26px 0 30px}.hero-actions{display:flex;align-items:center;gap:27px}.button{display:inline-flex;align-items:center;justify-content:center;gap:20px;border:0;text-decoration:none;padding:14px 19px;font-size:12px;font-weight:700;letter-spacing:.04em;cursor:pointer;transition:background .18s ease,transform .18s ease}.button:hover{transform:translateY(-1px)}.button:focus-visible,a:focus-visible,select:focus-visible,button:focus-visible{outline:3px solid #e29b78;outline-offset:3px}.button-primary{background:var(--green);color:#fff}.button-primary:hover{background:#143b31}.button-light{background:#e7e2d6;color:var(--ink)}.button-light:hover{background:#dcd5c5}.button:disabled{opacity:.55;cursor:not-allowed;transform:none}.text-link{font-size:12px;text-decoration:none;border-bottom:1px solid #aeb5ac;padding-bottom:4px}.text-link span{color:var(--orange);margin-left:5px}.hero-meta{display:flex;align-items:center;gap:10px;margin-top:61px;font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:#7d857c}.hero-meta>span:first-child{color:var(--orange);font-weight:bold}.meta-rule{width:34px;height:1px;background:#bbb9ac}.hero-visual{min-height:450px;height:min(58vh,610px);position:relative;background:#e8e2d4;overflow:hidden;display:flex;align-items:center;justify-content:center}.hero-visual:before{content:'';position:absolute;width:70%;height:70%;border:1px solid #c8c2b3;border-radius:50%;top:9%;left:14%}.arch{position:absolute;border:1px solid #bdb8aa;border-bottom:0;border-radius:170px 170px 0 0;width:54%;height:48%;bottom:17%;left:23%}.arch-two{width:43%;height:37%;left:28.5%;bottom:17%}.shelf-label{position:absolute;top:12%;left:9%;font-size:9px;line-height:1.6;letter-spacing:.15em;color:#7a7e72}.shelf-label b{color:var(--green);font-size:10px}.hero-books{position:absolute;bottom:27%;height:52%;display:flex;align-items:end;gap:7px;transform:rotate(-1deg)}.hero-book{height:95%;width:clamp(38px,5vw,63px);display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:14px 4px 10px;color:#f7f0df;box-shadow:4px 5px 8px #18352d24;border-left:5px solid #ffffff28;text-align:center}.hero-book span,.hero-book small{font-size:7px;writing-mode:vertical-rl;transform:rotate(180deg);letter-spacing:.1em}.hero-book b{font-family:var(--serif);font-size:13px;writing-mode:vertical-rl;transform:rotate(180deg);font-weight:400}.hb-1{background:#a44f37;height:86%}.hb-2{background:#55715b;height:96%}.hb-3{background:#415c72;height:89%}.hb-4{background:#b28842;height:100%}.hb-5{background:#735567;height:91%}.shelf-front{position:absolute;bottom:22%;left:9%;right:9%;height:22px;background:#bb9d70;box-shadow:0 8px 0 #856f50;display:flex;align-items:center;justify-content:space-between;padding:0 10px;font-size:7px;letter-spacing:.15em;color:#4e493b}.hero-caption{position:absolute;bottom:8%;left:9%;display:flex;align-items:center;gap:10px;font-size:8px;letter-spacing:.18em;color:#6f786f}.caption-line{height:1px;width:28px;background:var(--orange)}.hero-bottom{position:absolute;bottom:0;left:0;right:0;height:42px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:center;gap:6vw;font-size:8px;letter-spacing:.14em;color:#7c8279}.section-heading{padding:70px clamp(24px,8vw,120px) 42px;display:flex;align-items:end;justify-content:space-between;gap:30px}.section-heading h1{font-size:clamp(45px,5vw,68px)}.section-heading>p{max-width:365px;color:var(--muted);font-family:var(--serif);font-size:18px;line-height:1.55;margin:0 0 5px}.game-toolbar{margin:0 clamp(24px,8vw,120px) 22px;padding:15px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:26px}.level-control{display:flex;flex-direction:column;gap:4px}.level-control span{font-size:8px;font-weight:bold;letter-spacing:.14em;color:#778078}.level-control select{font:inherit;font-size:12px;color:var(--ink);border:0;background:transparent;max-width:340px}.level-objective{font-family:var(--serif);font-style:italic;color:var(--muted);font-size:14px;flex:1}.game-toolbar .button{margin-left:auto}.game-status{margin:0 clamp(24px,8vw,120px) 20px;min-height:25px;font-size:12px;color:#59685e}.shelf-scene{margin:0 clamp(24px,8vw,120px);padding:20px 22px 0;background:#ede8dc;border:1px solid #ddd7ca}.shelf-marker,.shelf-lip{display:flex;justify-content:space-between;font-size:8px;letter-spacing:.14em;color:#798078}.book-row{list-style:none;margin:23px 0 0;padding:0 0 0;display:flex;align-items:stretch;gap:10px;min-height:310px;overflow-x:auto}.book-card{--book:#51705e;position:relative;flex:1 0 112px;max-width:190px;min-height:290px;background:var(--book);color:#fff8ea;padding:17px 13px 14px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:5px 5px 10px #17372f20;border-left:7px solid #ffffff25;cursor:grab;transition:transform .16s ease,box-shadow .16s ease;user-select:none}.book-card:hover{transform:translateY(-5px);box-shadow:7px 11px 12px #17372f25}.book-card:focus-within{outline:3px solid #e29b78;outline-offset:3px}.book-card.is-dragging{opacity:.4}.book-card.drop-target{outline:2px dashed #e6c18a;outline-offset:3px}.book-kicker{font-size:8px;letter-spacing:.15em;opacity:.72}.book-title{font-family:var(--serif);font-size:17px;line-height:1.16;max-width:125px}.call-number{font-size:14px;line-height:1.4;font-weight:700;overflow-wrap:anywhere}.book-controls{display:flex;justify-content:space-between;gap:8px}.book-controls button{border:1px solid #ffffff75;color:white;background:#ffffff12;font-size:14px;width:34px;height:30px;cursor:pointer}.book-controls button:hover:not(:disabled){background:#ffffff30}.book-controls button:disabled{opacity:.35;cursor:not-allowed}.clay{--book:#a34f3a}.moss{--book:#55715b}.blue{--book:#415c72}.ochre{--book:#a27a38}.plum{--book:#735567}.sage{--book:#657a70}.shelf-lip{height:37px;align-items:center;background:#c1a579;margin:0 -22px;padding:0 22px;color:#554b3a;font-weight:bold}.game-actions{padding:24px clamp(24px,8vw,120px) 45px;display:flex;justify-content:space-between;align-items:center;gap:25px}.move-help{font-size:11px;color:var(--muted);margin:0;max-width:500px}.feedback{margin:0 clamp(24px,8vw,120px) 60px;padding:25px 28px;border-left:3px solid var(--orange);background:#eee8dc}.feedback h2{font-family:var(--serif);font-weight:400;font-size:27px;margin:0 0 8px}.feedback p{margin:0 0 12px;color:#53635a;font-size:13px}.feedback ul{padding-left:19px;margin:12px 0 0}.feedback li{font-size:12px;margin:9px 0;color:#42534a}.feedback li strong{color:var(--ink)}.guide-example{margin:0 clamp(24px,8vw,120px) 35px;padding:26px 30px;background:#eae5d9;border:1px solid var(--line)}.guide-label{font-size:8px;letter-spacing:.15em;color:#7c837a}.sample-call{font-family:var(--serif);font-size:clamp(27px,4vw,44px);margin:12px 0 23px;letter-spacing:.03em}.sample-call b{color:var(--green)}.sample-call em{color:var(--orange);font-style:normal}.sample-call strong{color:#856d3e}.guide-parts{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #c9c4b7}.guide-parts>div{padding:18px 14px 0;border-right:1px solid #c9c4b7;display:flex;flex-direction:column;gap:3px}.guide-parts>div:first-child{padding-left:0}.guide-parts>div:last-child{border:0}.guide-parts b{font-family:var(--serif);font-size:19px}.guide-parts span{font-size:11px;font-weight:bold}.guide-parts small{font-size:10px;color:var(--muted)}.guide-grid,.about-columns{padding:0 clamp(24px,8vw,120px);display:grid;grid-template-columns:repeat(4,1fr);gap:25px}.guide-grid article,.about-columns article{border-top:1px solid var(--line);padding-top:17px}.rule-no{font-size:10px;color:var(--orange);letter-spacing:.12em;font-weight:bold}.guide-grid h2,.about-columns h2{font-family:var(--serif);font-weight:400;font-size:23px;margin:9px 0}.guide-grid p,.about-columns p{font-size:12px;line-height:1.65;color:#59685e;margin:0}.guide-note{margin:38px clamp(24px,8vw,120px) 24px;padding:15px 18px;background:#eae5d9;font-size:11px;color:#59685e}.guide-note b{color:var(--ink);margin-right:8px}.guide-view>.button{margin:0 clamp(24px,8vw,120px) 60px}.about-columns{grid-template-columns:repeat(3,1fr);gap:38px}.about-footer{margin:70px clamp(24px,8vw,120px) 55px;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;justify-content:space-between;font-size:8px;letter-spacing:.14em;color:#747d73}.site-footer{min-height:56px;border-top:1px solid var(--line);padding:0 clamp(24px,5vw,78px);display:flex;justify-content:space-between;align-items:center;font-size:8px;letter-spacing:.15em;color:#7d857c}
@media(max-width:900px){.topbar{gap:22px}.topbar-note{display:none}.hero-view{column-gap:4vw;padding-left:6vw;padding-right:6vw}.hero-visual{min-height:380px}.section-heading{padding-top:50px}.book-card{flex-basis:105px;min-height:260px}.book-row{min-height:280px}.guide-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.topbar{height:auto;min-height:68px;padding:13px 20px;gap:12px;flex-wrap:wrap}.topbar nav{gap:17px}.topbar nav a{font-size:10px}.brand{margin-right:auto}.hero-view{min-height:auto;padding:50px 22px 65px;grid-template-columns:1fr;gap:28px}.hero-copy{padding:0}.hero-copy h1{font-size:54px}.hero-intro{font-size:15px}.hero-meta{margin-top:32px}.hero-visual{height:380px;min-height:0}.hero-bottom{gap:12px;font-size:6px;letter-spacing:.08em}.section-heading{padding:43px 22px 26px;display:block}.section-heading h1{font-size:48px}.section-heading>p{font-size:16px;margin-top:15px}.game-toolbar{margin:0 22px 18px;align-items:flex-end;gap:10px;flex-wrap:wrap}.level-control{flex:1 1 100%}.level-control select{max-width:100%;width:100%}.level-objective{font-size:12px}.game-toolbar .button{padding:10px 12px}.game-status{margin:0 22px 15px}.shelf-scene{margin:0 22px;padding:15px 13px 0;overflow:hidden}.book-row{margin-top:18px;gap:8px;min-height:260px}.book-card{flex:0 0 120px;min-height:245px;padding:13px 10px 11px}.book-title{font-size:15px}.call-number{font-size:12px}.shelf-lip{margin:0 -13px;padding:0 13px;font-size:6px}.game-actions{padding:18px 22px 35px;align-items:stretch;flex-direction:column}.game-actions .button{align-self:flex-start}.feedback{margin:0 22px 40px;padding:20px}.guide-example{margin:0 22px 28px;padding:20px}.guide-parts{grid-template-columns:repeat(2,1fr)}.guide-parts>div{padding:14px 10px;border-bottom:1px solid #c9c4b7}.guide-parts>div:nth-child(2){border-right:0}.guide-parts>div:first-child{padding-left:10px}.guide-parts>div:nth-last-child(-n+2){border-bottom:0}.guide-grid,.about-columns{padding:0 22px;grid-template-columns:1fr;gap:20px}.guide-grid article,.about-columns article{padding-top:13px}.guide-note{margin:25px 22px 20px}.guide-view>.button{margin-left:22px;margin-bottom:40px}.about-footer{margin:45px 22px 35px;gap:12px;flex-wrap:wrap}.site-footer{padding:13px 20px;min-height:55px;gap:12px;flex-wrap:wrap;font-size:7px}.hero-caption{font-size:7px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

/* Multi-game room */
.game-library[hidden],.game-screen[hidden],.game-session-bar[hidden]{display:none!important}
.library-heading{padding-top:62px;padding-bottom:34px}
.game-card-grid{padding:0 clamp(24px,8vw,120px) 20px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.game-choice{--accent:#55715b;position:relative;display:flex;flex-direction:column;min-height:375px;padding:18px;background:#eee9dd;border:1px solid #ded8ca;overflow:hidden}
.game-choice h2{font:400 27px/1.1 var(--serif);margin:17px 0 9px;color:var(--ink)}
.game-choice p{font-size:12px;line-height:1.6;color:#56645b;margin:0 0 12px;min-height:58px}
.game-choice .game-index{font-size:8px;letter-spacing:.15em;font-weight:700;color:var(--muted)}
.game-choice .choice-meta{font-size:9px;letter-spacing:.06em;color:#6e796f;border-top:1px solid #d0cbbd;padding-top:10px;margin-top:auto;margin-bottom:12px}
.game-choice .button{align-self:flex-start;padding:11px 13px;gap:12px}
.choice-shelf{--accent:#55715b}.choice-cart{--accent:#b78342}.choice-detective{--accent:#74566a}.choice-find{--accent:#435d74}
.choice-art{height:112px;margin-top:17px;background:#e4dfd2;display:flex;align-items:flex-end;justify-content:center;gap:6px;position:relative;overflow:hidden}
.choice-art:after{content:'';position:absolute;bottom:15px;left:12%;right:12%;height:8px;background:#b69c73;box-shadow:0 5px 0 #8c7657}
.choice-art i{display:block;width:28px;height:75px;background:var(--accent);border-left:4px solid #ffffff30;position:relative;z-index:1;box-shadow:2px 3px 4px #17372f1c}
.choice-art i:nth-child(2){height:88px;background:#a34f3a}.choice-art i:nth-child(3){height:65px;background:#a27a38}.choice-art i:nth-child(4){height:82px;background:#735567}
.cart-art i{width:25px}.cart-art b{position:absolute;bottom:5px;right:19%;width:90px;height:28px;border:3px solid #4b5f54;border-top:0;border-radius:0 0 9px 9px;z-index:2}
.detective-art i{height:74px}.detective-art b,.map-art b{position:absolute;right:17%;top:12px;font-size:49px;color:var(--accent);font-weight:400;z-index:2}
.map-art{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:17px 22px 25px}.map-art i{width:auto;height:25px;background:#98a69a;border:0;box-shadow:none}.map-art i:nth-child(2){background:#d5bd85}.map-art i:nth-child(3){background:#899bb0}
.progress-caption{margin:10px clamp(24px,8vw,120px) 55px;color:#737e74;font-size:10px}
.game-screen .section-heading{padding-top:55px}
.back-to-games{margin:0 clamp(24px,8vw,120px) 42px;padding:10px 0;background:none;border:0;border-top:1px solid var(--line);color:#52645a;font-size:11px;cursor:pointer;text-align:left;width:calc(100% - 2 * clamp(24px,8vw,120px))}
.return-layout{margin:0 clamp(24px,8vw,120px);display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,2fr);gap:20px;align-items:start}
.cart-panel,.collection-panel{background:#ebe6d9;border:1px solid #dbd5c7;padding:20px;min-width:0}
.panel-heading{border-bottom:1px solid #d1cbbc;padding-bottom:12px;margin-bottom:13px}.panel-heading .eyebrow{margin-bottom:4px;font-size:8px}.panel-heading h2,.map-heading h2{font:400 24px/1.1 var(--serif);margin:0}
.return-cart{display:grid;gap:10px}.return-book{display:flex;flex-direction:column;align-items:flex-start;gap:9px;border:0;border-left:6px solid #ffffff36;padding:13px;background:#55715b;color:#fff9ed;text-align:left;cursor:pointer;min-height:130px;box-shadow:3px 4px 7px #20362c18}.return-book .book-title{font:17px/1.15 var(--serif)}.return-book .call-number{font-size:12px}.return-book .book-kicker{font-size:8px;letter-spacing:.14em}.return-book.is-selected{outline:3px solid #17372f;outline-offset:2px;transform:translateX(4px)}
.return-shelves{display:grid;gap:20px}.return-shelf{min-width:0}.shelf-range-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:9px;letter-spacing:.09em;color:#68746b;text-transform:uppercase}.shelf-range-label strong{color:var(--ink)}
.return-row{display:flex;align-items:stretch;gap:5px;overflow-x:auto;padding:12px 8px 15px;background:#ddd6c7;border-bottom:8px solid #b99d71;min-height:185px}
.mini-book{display:flex;flex:1 0 105px;max-width:170px;min-height:155px;flex-direction:column;justify-content:space-between;padding:13px 10px;color:#fff8ea;border-left:6px solid #ffffff30;box-shadow:3px 4px 7px #18352d20}.mini-book .book-title{font:15px/1.15 var(--serif)}.mini-book .call-number{font-size:11px}
.insert-slot{flex:0 0 27px;min-width:27px;padding:2px;border:1px dashed #8b917f;background:#f5f2e9;color:#42534a;font-size:0;cursor:pointer;position:relative}.insert-slot:before{content:'+';font-size:15px;position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%)}.insert-slot:hover:not(:disabled),.insert-slot:focus-visible{background:#d5b984;border-style:solid}.insert-slot:disabled{opacity:.52;cursor:not-allowed}.empty-state{font-size:11px;color:#67746a;margin:12px 0}
.detective-note{margin:0 clamp(24px,8vw,120px) 17px;padding:13px 16px;background:#ece5d9;border-left:3px solid #a34f3a;color:#57665d;font-size:11px}.detective-note b{color:var(--ink);margin-right:5px}.detective-shelves{margin:0 clamp(24px,8vw,120px);display:grid;gap:18px}.detective-shelf{padding:15px;background:#e9e4d8;border:1px solid #d8d2c5}.detective-row{list-style:none;display:flex;gap:8px;overflow-x:auto;margin:0;padding:4px 3px 15px;border-bottom:7px solid #b99d71}.detective-book{display:flex;flex:1 0 126px;max-width:190px;min-height:215px;flex-direction:column;justify-content:space-between;padding:13px 10px;background:#55715b;color:#fff8ea;border-left:6px solid #ffffff30;box-shadow:3px 4px 7px #18352d20}.detective-book.is-marked{outline:3px solid #ca754a;outline-offset:2px}.detective-book .book-title{font:15px/1.15 var(--serif)}.detective-book .call-number{font-size:11px}.detective-controls{display:flex;gap:5px;align-items:center}.detective-controls .mark-button{flex:1;background:#ffffff15;border:1px solid #ffffff75;color:#fff;padding:7px 4px;font-size:9px;cursor:pointer}.detective-controls .mark-button[aria-pressed=true]{background:#f6e4c8;color:#2b4036;border-color:#f6e4c8}.detective-controls .move-button{width:29px;height:28px;background:#ffffff15;border:1px solid #ffffff75;color:#fff;font-size:14px;cursor:pointer}.detective-controls button:disabled{opacity:.38;cursor:not-allowed}
.patron-request{position:sticky;top:8px;z-index:5;margin:0 clamp(24px,8vw,120px) 17px;padding:15px 18px;background:#17372f;color:#fbf5e9;box-shadow:0 5px 16px #17372f26}.patron-request .eyebrow{color:#d5bd85;margin:0 0 5px}.request-call{font:23px/1.2 var(--serif);margin:0 0 5px}.patron-request small{font-size:9px;color:#d3d4c8}.find-progress{margin:0 clamp(24px,8vw,120px) 12px;color:#6c786f;font-size:9px;letter-spacing:.13em;font-weight:bold}.library-map-wrap{margin:0 clamp(24px,8vw,120px);padding:19px;background:#e9e4d8;border:1px solid #d6d0c2;min-height:290px}.map-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #d0cabb;padding-bottom:13px;margin-bottom:16px}.map-heading .eyebrow{margin:0 0 4px;font-size:8px}.map-heading .button{padding:9px 11px;font-size:9px}.library-map{min-height:200px}.map-building-label{font:italic 16px var(--serif);color:#5a685f;margin-bottom:14px}.floor-grid,.collection-plan,.aisle-plan,.shelf-plan,.book-search-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.collection-plan,.aisle-plan,.shelf-plan{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.map-instruction{margin:0 0 13px;color:#5c6b60;font-size:11px}.map-card{position:relative;min-height:191px;padding:12px;background:#f2eee3;border:1px solid #d8d2c5;display:flex;flex-direction:column;gap:6px;overflow:hidden}.map-icon{height:68px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#e2ddd0;color:#3f5d4c}.map-icon span{font-size:26px;line-height:1}.map-icon small{font-size:7px;letter-spacing:.15em;margin-top:3px}.map-floor{background:#dfe4dc}.map-aisle{background:#e3ddd0}.map-shelf{background:#e5e1d5}.map-book{background:#e4dfd2}.map-card-title{font:17px/1.15 var(--serif);color:var(--ink)}.map-range{font-size:10px;font-weight:bold;color:#43584c;overflow-wrap:anywhere}.map-card-sub{font-size:9px;color:#768077}.map-select{margin-top:auto;align-self:flex-start;border:0;border-bottom:1px solid #a9b0a4;padding:5px 0;background:transparent;color:#1d5142;font-size:9px;font-weight:bold;cursor:pointer}.map-select:hover{color:#a34f3a;border-color:#a34f3a}.map-book{min-height:185px}.map-book .map-icon{height:48px}.book-search-row{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.book-search-row .map-card{min-height:205px}.retrieved-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.retrieved-tag{padding:6px 9px;background:#e0e8db;color:#29493b;font-size:10px;font-weight:bold}.game-screen .feedback{margin-top:20px}
@media(max-width:1000px){.game-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.return-layout{grid-template-columns:1fr}.return-cart{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}}
@media(max-width:640px){.library-heading{padding-top:42px}.game-card-grid{padding:0 22px 15px;grid-template-columns:1fr;gap:12px}.game-choice{min-height:0;padding:15px}.game-choice p{min-height:0}.choice-art{height:90px;margin-top:12px}.progress-caption{margin:10px 22px 35px}.game-screen .section-heading{padding-top:40px}.return-layout,.detective-shelves,.detective-note,.patron-request,.find-progress,.library-map-wrap{margin-left:22px;margin-right:22px}.return-layout{gap:12px}.cart-panel,.collection-panel{padding:14px}.return-cart{grid-template-columns:repeat(auto-fit,minmax(125px,1fr))}.return-book{min-height:110px;padding:10px}.return-row{min-height:145px}.mini-book{flex-basis:95px;min-height:125px;padding:10px 8px}.insert-slot{flex-basis:21px;min-width:21px}.detective-row{gap:6px}.detective-book{flex-basis:125px;min-height:200px}.patron-request{top:0;padding:12px 14px}.request-call{font-size:20px}.library-map-wrap{padding:13px}.floor-grid,.collection-plan,.aisle-plan,.shelf-plan,.book-search-row{grid-template-columns:1fr}.map-card{min-height:160px}.map-icon{height:55px}.map-heading h2{font-size:21px}.back-to-games{width:calc(100% - 44px);margin-left:22px;margin-right:22px}}
@media(prefers-reduced-motion:reduce){.return-book,.map-card,.game-choice{transition:none!important}}

/* Usability pass: make current action guidance and movement affordances easy to scan. */
.game-status{display:flex;align-items:center;min-height:46px;padding:10px 14px;background:#eee8dc;border-left:3px solid var(--orange);color:#34483d;font-weight:600;line-height:1.45}.book-controls .move-button,.detective-controls .move-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;width:42px;min-width:42px;height:42px;padding:2px 1px;font-size:15px;line-height:1}.book-controls .move-button::after,.detective-controls .move-button::after{content:attr(data-direction);font-size:6px;line-height:1.2;letter-spacing:.05em;font-weight:700}.book-controls .move-button:disabled,.detective-controls .move-button:disabled{opacity:.3}.insert-slot{flex-basis:38px;min-width:38px;border-color:#737e70;background:#f5f2e9;transition:background .15s ease,border-color .15s ease,transform .15s ease}.insert-slot::before{font-size:18px}.insert-slot.is-ready{background:#efe2c7;border-color:#a27a38;border-width:2px;color:#294c3e;opacity:1}.insert-slot.is-ready:hover,.insert-slot.is-ready:focus-visible{background:#dfc18d;transform:scale(1.04)}.map-select{min-height:42px;padding:10px 12px;border:1px solid #b7b9ab;background:#e6e2d6;font-size:10px}.map-select:hover,.map-select:focus-visible{background:#d9c9a6;border-color:#8f7446;color:#243e33}.map-card{transition:box-shadow .15s ease,border-color .15s ease}.map-card:focus-within{border-color:#a27a38;box-shadow:0 0 0 2px #d7bd8a}
@media(max-width:640px){.game-status{min-height:44px;padding:9px 11px}.book-controls .move-button,.detective-controls .move-button{width:40px;min-width:40px;height:40px}.insert-slot{flex-basis:30px;min-width:30px}.map-select{width:100%;justify-content:center}}
@media(prefers-reduced-motion:reduce){.insert-slot,.map-card{transition:none!important}}

/* Session performance reports use the same restrained field-guide palette. */
.game-session-bar{margin:0 clamp(24px,8vw,120px);padding:11px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--zsr-alloy);background:var(--zsr-fog);color:var(--zsr-iron);font-size:10px;letter-spacing:.08em}
.game-session-bar strong{font-family:monospace;font-size:13px;letter-spacing:.1em;margin-left:7px}
.session-link{border:0;background:none;color:var(--zsr-blue);font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer;min-height:38px}
.session-report-screen .section-heading{padding-bottom:20px}
.session-report{margin:0 clamp(24px,8vw,120px);max-width:980px}
.report-metadata{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0 0 22px;border-top:1px solid var(--zsr-alloy)}
.report-metadata dt,.report-metadata dd{margin:0;padding:11px 12px;border-bottom:1px solid var(--zsr-alloy)}
.report-metadata dt{font-size:9px;text-transform:uppercase;letter-spacing:.1em;color:var(--zsr-carbon);background:var(--zsr-fog)}
.report-metadata dd{font-size:12px;color:var(--zsr-iron);overflow-wrap:anywhere}
.report-metadata dd:nth-of-type(2){font-family:monospace;font-weight:bold;letter-spacing:.1em}
.report-table{width:100%;border-collapse:collapse;background:var(--paper);font-size:12px}
.report-table caption{text-align:left;padding:0 0 10px;font:24px/1.2 var(--serif);color:var(--zsr-iron)}
.report-table th,.report-table td{padding:12px;border-bottom:1px solid var(--zsr-alloy);text-align:left;vertical-align:top}
.report-table thead th{background:var(--zsr-iron);color:#fff;font-size:9px;text-transform:uppercase;letter-spacing:.1em}
.report-table tbody th{width:38%;font-weight:600}
.report-table tbody tr:nth-child(even){background:var(--zsr-fog)}
.result-badge{display:inline-block;margin:5px 0 0 8px;padding:3px 6px;background:#e4edf3;color:#185c82;font-size:9px;font-weight:bold;white-space:nowrap}
.report-totals{margin:20px 0;padding:14px 16px;background:var(--zsr-fog);border-left:3px solid var(--zsr-gold)}
.report-totals h2{margin:0 0 8px;font:22px/1.2 var(--serif)}
.report-totals p{margin:5px 0;font-size:12px}
.report-counts{padding:12px 0;border-top:1px solid var(--zsr-alloy);font-size:11px;font-weight:bold}
.report-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 clamp(24px,8vw,120px) 40px}
.report-actions .back-to-games{width:auto;margin:0 0 0 auto;padding:10px 0;border-top:0}
.copy-status{min-height:22px;margin:8px clamp(24px,8vw,120px);font-size:11px;color:var(--zsr-iron)}
.session-report-screen .section-heading h1{color:var(--zsr-iron)}
.game-session-bar button:focus-visible,.report-actions button:focus-visible{outline:3px solid var(--zsr-blue);outline-offset:3px}
@media(max-width:640px){.game-session-bar,.session-report,.report-actions{margin-left:22px;margin-right:22px}.game-session-bar{align-items:flex-start;flex-direction:column}.report-metadata{grid-template-columns:1fr}.report-metadata dt{padding-bottom:5px;border-bottom:0}.report-metadata dd{padding-top:4px}.report-table{font-size:10px}.report-table th,.report-table td{padding:9px 7px}.report-table tbody th{width:40%}.report-actions{align-items:stretch;flex-direction:column}.report-actions .button,.report-actions .back-to-games{width:100%;margin:0;text-align:center}.copy-status{margin-left:22px;margin-right:22px}}

/* Stack Academy visual system: academic editorial character, tuned for active practice. */
:root {
  color-scheme: light;
  --ink: #353331;
  --muted: #5d5c5a;
  --paper: #ffffff;
  --paper2: #f3f2f0;
  --line: #d2d0ce;
  --green: #353331;
  --green-dark: #252423;
  --orange: #8c6d2c;
  --zsr-gold: #8c6d2c;
  --zsr-gold-dark: #816221;
  --zsr-iron: #353331;
  --zsr-blue: #2171a1;
  --zsr-fog: #f3f2f0;
  --zsr-alloy: #d2d0ce;
  --zsr-carbon: #5d5c5a;
  --zsr-muted: #5d5c5a;
  --page-gutter: clamp(20px, 5vw, 76px);
  --content-width: 1320px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
  --focus-ring: 0 0 0 3px #2171a14d;
}

html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--zsr-iron); font-size: 16px; }
body, button, select { font-family: var(--sans); }
a { color: var(--zsr-blue); }
[hidden], .game-library[hidden], .game-screen[hidden], .game-session-bar[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--zsr-blue) !important; outline-offset: 3px; }
button, select, .button, .map-select { min-height: 44px; }

/* One compact header makes the Games route easy to spot. */
.topbar {
  height: 72px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  gap: clamp(20px, 4vw, 52px);
  border-color: var(--zsr-alloy);
}
.brand { flex: 0 0 auto; gap: 11px; letter-spacing: .13em; color: var(--zsr-iron); }
.brand strong { font-size: 15px; }
.brand small { font-size: 9px; letter-spacing: .28em; }
.brand-mark { width: 24px; height: 30px; }
.brand-mark i:nth-child(1) { background: var(--zsr-gold); }
.brand-mark i:nth-child(2) { background: var(--zsr-iron); }
.brand-mark i:nth-child(3) { background: var(--zsr-blue); }
.topbar nav { align-items: center; gap: 8px; }
.topbar nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-bottom: 2px solid transparent;
  color: var(--zsr-iron);
  font-size: 13px;
  letter-spacing: .015em;
}
.topbar nav a:hover, .topbar nav a.active { color: var(--zsr-iron); border-bottom-color: var(--zsr-gold); }
.topbar nav .nav-games { background: var(--zsr-fog); font-weight: 700; }
.topbar nav .nav-games:hover, .topbar nav .nav-games.active { background: #e9e5dc; }

/* Home: a shorter hero followed by a compact route into the four games. */
.home-view { display: block; }
.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: clamp(34px, 6vw, 84px);
  min-height: clamp(540px, 68vh, 680px);
  padding: clamp(40px, 5.5vh, 64px) var(--page-gutter) 68px;
  overflow: hidden;
}
.hero-copy { max-width: 620px; padding: 0; }
.eyebrow { margin-bottom: 16px; color: var(--zsr-carbon); font-size: 11px; letter-spacing: .13em; }
.eyebrow-dot { background: var(--zsr-gold); }
.hero-copy h1 { font-size: clamp(46px, 5.15vw, 70px); letter-spacing: -.045em; line-height: 1.04; }
.hero-copy h1 em { color: var(--zsr-gold-dark); }
.hero-intro { max-width: 470px; margin: 21px 0 26px; color: var(--zsr-muted); font-size: 18px; line-height: 1.6; }
.hero-actions { gap: 18px; flex-wrap: wrap; }
.button { min-height: 46px; padding: 12px 17px; border-radius: 2px; font-size: 13px; letter-spacing: .02em; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--zsr-iron); color: #fff; }
.button-primary:hover { background: #252423; }
.button-light { background: #e8e7e5; color: var(--zsr-iron); }
.button-light:hover { background: #dddbd8; }
.text-link { color: var(--zsr-blue); font-size: 14px; }
.text-link span { color: var(--zsr-gold-dark); }
.hero-meta { gap: 12px; margin-top: 36px; color: var(--zsr-carbon); font-size: 10px; letter-spacing: .09em; }
.hero-meta > span:first-child { color: var(--zsr-gold-dark); }
.meta-rule { background: var(--zsr-alloy); }
.hero-visual { width: 100%; min-height: 0; height: clamp(340px, 43vw, 470px); background: var(--zsr-fog); }
.hero-visual:before, .arch { border-color: var(--zsr-alloy); }
.shelf-label, .hero-caption { color: var(--zsr-carbon); }
.shelf-label b { color: var(--zsr-iron); }
.hero-book { color: #fff; }
.hb-1 { background: var(--zsr-gold); }
.hb-2 { background: var(--zsr-iron); }
.hb-3 { background: var(--zsr-blue); }
.hb-4 { background: var(--zsr-gold-dark); }
.hb-5 { background: var(--zsr-carbon); }
.shelf-front { background: var(--zsr-alloy); color: var(--zsr-iron); box-shadow: 0 7px 0 #777675; }
.caption-line { background: var(--zsr-gold); }
.hero-bottom {
  height: 38px;
  gap: clamp(16px, 4vw, 52px);
  border-color: var(--zsr-alloy);
  color: var(--zsr-carbon);
  font-size: 10px;
  letter-spacing: .08em;
}
.home-games { max-width: var(--content-width); margin: 0 auto; padding: 30px var(--page-gutter) 52px; border-top: 1px solid var(--zsr-alloy); }
.home-games-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.home-games-heading .eyebrow { margin: 0 0 5px; }
.home-games-heading h2 { margin: 0; font: 400 clamp(25px, 3vw, 32px)/1.15 var(--serif); }
.home-game-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--zsr-alloy); }
.home-game-link { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 15px 16px; text-decoration: none; color: var(--zsr-iron); border-right: 1px solid var(--zsr-alloy); transition: background .15s ease; }
.home-game-link:last-child { border-right: 0; }
.home-game-link:hover { background: var(--zsr-fog); }
.home-game-link span { color: var(--zsr-gold-dark); font-size: 10px; font-weight: 700; letter-spacing: .09em; }
.home-game-link strong { font: 400 19px/1.2 var(--serif); }
.home-game-link small { color: var(--zsr-muted); font-size: 13px; line-height: 1.4; }

/* Shared page and gameplay rhythm. */
.section-heading { max-width: var(--content-width); margin: 0 auto; padding: clamp(32px, 4vw, 52px) var(--page-gutter) 24px; gap: 26px; }
.section-heading h1 { font-size: clamp(40px, 4.5vw, 58px); letter-spacing: -.04em; }
.section-heading > p { max-width: 430px; margin: 0 0 4px; color: var(--zsr-muted); font-size: 17px; line-height: 1.5; }
.game-screen .section-heading { padding-top: 30px; padding-bottom: 22px; }
.game-screen .section-heading h1 { font-size: clamp(36px, 4.1vw, 54px); }
.game-session-bar, .game-toolbar, .game-status, .shelf-scene, .feedback, .return-layout, .detective-note, .detective-shelves, .patron-request, .find-progress, .library-map-wrap, .back-to-games {
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - var(--page-gutter) - var(--page-gutter));
  max-width: calc(var(--content-width) - var(--page-gutter) - var(--page-gutter));
}
.game-session-bar { padding: 9px 14px; border: 1px solid var(--zsr-alloy); background: var(--zsr-fog); color: var(--zsr-iron); font-size: 11px; letter-spacing: .06em; }
.game-session-bar strong { font: 700 13px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; }
.session-link { min-height: 40px; padding: 0 7px; color: var(--zsr-blue); font-size: 13px; }
.game-toolbar { min-height: 62px; margin-bottom: 14px; padding: 9px 0; gap: 18px; border-color: var(--zsr-alloy); }
.level-control { min-width: min(270px, 35%); gap: 3px; }
.level-control span { color: var(--zsr-carbon); font-size: 10px; letter-spacing: .1em; }
.level-control select { min-height: 38px; max-width: 350px; font-size: 14px; }
.level-objective { color: var(--zsr-muted); font-size: 15px; }
.game-toolbar .button { margin-left: auto; }
.game-status { min-height: 42px; margin-bottom: 14px; padding: 9px 14px; border-left: 3px solid var(--zsr-gold); background: var(--zsr-fog); color: var(--zsr-iron); font-size: 13px; line-height: 1.45; }

/* Game room: shared card structure, distinct illustrations and a clear start action. */
.library-heading { padding-top: 42px; padding-bottom: 26px; }
.game-card-grid { max-width: var(--content-width); margin: 0 auto; padding: 0 var(--page-gutter) 18px; gap: 16px; }
.game-choice { min-height: 330px; padding: 17px; background: #f5f4f2; border: 1px solid var(--zsr-alloy); border-top: 3px solid var(--accent); }
.game-choice:hover { transform: translateY(-2px); box-shadow: 0 8px 20px #35333114; }
.choice-shelf { --accent: var(--zsr-gold); }
.choice-cart { --accent: var(--zsr-blue); }
.choice-detective { --accent: var(--zsr-iron); }
.choice-find { --accent: var(--zsr-gold-dark); }
.game-choice .game-index { font-size: 10px; letter-spacing: .09em; color: var(--zsr-carbon); }
.choice-art { height: 100px; margin: 11px 0 0; background: #e9e8e6; }
.choice-art:after { background: var(--zsr-alloy); box-shadow: 0 5px 0 #777675; }
.choice-art i { box-shadow: none; }
.choice-art i:nth-child(1), .choice-art i:nth-child(4) { background: var(--zsr-gold); }
.choice-art i:nth-child(2), .choice-art i:nth-child(5) { background: var(--zsr-iron); }
.choice-art i:nth-child(3) { background: var(--zsr-blue); }
.choice-art b { color: var(--accent); }
.game-choice h2 { margin: 13px 0 7px; color: var(--zsr-iron); font-size: 25px; }
.game-choice p { min-height: 0; margin: 0 0 12px; color: var(--zsr-muted); font-size: 14px; line-height: 1.5; }
.game-choice .choice-meta { margin: auto 0 10px; padding-top: 9px; border-color: var(--zsr-alloy); color: var(--zsr-carbon); font-size: 11px; }
.game-choice .button { min-height: 44px; align-self: flex-start; padding: 10px 13px; }
.progress-caption { max-width: var(--content-width); margin: 8px auto 28px; padding: 0 var(--page-gutter); color: var(--zsr-carbon); font-size: 12px; }

/* Bookshelves, carts, and location cards stay tactile and keyboard operable. */
.shelf-scene { padding: 16px 16px 0; border-color: var(--zsr-alloy); background: var(--zsr-fog); }
.shelf-marker, .shelf-lip { color: var(--zsr-carbon); font-size: 10px; letter-spacing: .09em; }
.book-row { min-height: 260px; margin-top: 15px; gap: 9px; }
.book-card { min-height: 240px; flex-basis: 115px; padding: 14px 11px 12px; border-left-width: 6px; }
.book-card, .return-book, .mini-book, .detective-book { color: #fff; background-color: var(--zsr-iron); }
.book-card.clay, .return-book.clay, .mini-book.clay, .detective-book.clay { background-color: var(--zsr-gold); }
.book-card.moss, .return-book.moss, .mini-book.moss, .detective-book.moss { background-color: var(--zsr-iron); }
.book-card.blue, .return-book.blue, .mini-book.blue, .detective-book.blue { background-color: var(--zsr-blue); }
.book-card.ochre, .return-book.ochre, .mini-book.ochre, .detective-book.ochre { background-color: var(--zsr-gold-dark); }
.book-card.plum, .return-book.plum, .mini-book.plum, .detective-book.plum { background-color: var(--zsr-carbon); }
.book-card.sage, .return-book.sage, .mini-book.sage, .detective-book.sage { background-color: #777675; }
.book-card:hover { transform: translateY(-2px); }
.book-kicker { font-size: 9px; letter-spacing: .11em; }
.book-title { font-size: 17px; }
.call-number { font-size: 14px; font-variant-numeric: tabular-nums; }
.book-controls .move-button, .detective-controls .move-button { width: 44px; min-width: 44px; height: 44px; font-size: 14px; }
.book-controls .move-button::after, .detective-controls .move-button::after { font-size: 8px; letter-spacing: .04em; }
.shelf-lip { height: 34px; margin: 0 -16px; padding: 0 16px; background: var(--zsr-alloy); color: var(--zsr-iron); box-shadow: 0 5px 0 #777675; }
.game-actions { padding: 15px var(--page-gutter) 25px; gap: 22px; }
.game-actions { width: 100%; max-width: none; margin: 0; }
.move-help { max-width: 600px; color: var(--zsr-muted); font-size: 13px; line-height: 1.45; }
.feedback { margin-bottom: 28px; padding: 19px 22px; border: 1px solid var(--zsr-alloy); border-left: 3px solid var(--zsr-gold); background: var(--zsr-fog); }
.feedback h2 { margin-bottom: 6px; color: var(--zsr-iron); font-size: 25px; }
.feedback p, .feedback li { color: var(--zsr-muted); font-size: 14px; line-height: 1.5; }
.feedback li { margin: 7px 0; }
.back-to-games { display: block; margin-bottom: 30px; padding: 11px 0; border-color: var(--zsr-alloy); color: var(--zsr-blue); font-size: 13px; }
.return-layout { grid-template-columns: minmax(190px, .72fr) minmax(0, 2fr); gap: 16px; }
.cart-panel, .collection-panel { padding: 16px; border-color: var(--zsr-alloy); background: var(--zsr-fog); }
.panel-heading .eyebrow { margin-bottom: 6px; font-size: 10px; }
.panel-heading h2, .map-heading h2 { color: var(--zsr-iron); font-size: 23px; }
.return-row { min-height: 162px; padding: 10px 8px 13px; gap: 5px; border-bottom-width: 6px; border-color: var(--zsr-alloy); background: #e5e4e2; }
.return-book, .mini-book { color: #fff; background: var(--zsr-iron); }
.return-book.is-selected { outline-color: var(--zsr-blue); }
.insert-slot { min-height: 44px; background: #fff; color: var(--zsr-iron); border-color: var(--zsr-alloy); }
.insert-slot.is-ready, .insert-slot:hover:not(:disabled), .insert-slot:focus-visible { background: #e9e2d4; border-color: var(--zsr-gold-dark); color: var(--zsr-iron); }
.detective-note { margin-bottom: 12px; padding: 10px 13px; border: 1px solid var(--zsr-alloy); border-left: 3px solid var(--zsr-gold); background: var(--zsr-fog); color: var(--zsr-muted); font-size: 13px; }
.detective-note b { color: var(--zsr-iron); }
.detective-shelves { gap: 14px; }
.detective-shelf { padding: 12px; border-color: var(--zsr-alloy); background: var(--zsr-fog); }
.detective-row { gap: 8px; padding-bottom: 12px; border-color: var(--zsr-alloy); background: #e5e4e2; }
.detective-book { min-height: 200px; flex-basis: 128px; padding: 12px 10px; color: #fff; background: var(--zsr-iron); }
.detective-book.is-marked { outline-color: #b44728; }
.detective-controls .mark-button, .detective-controls .move-button { min-height: 44px; font-size: 11px; }
.detective-controls .mark-button { flex: 1; background: #ffffff18; border-color: #ffffff8c; }
.detective-controls .mark-button[aria-pressed=true] { background: #f4e6c9; color: var(--zsr-iron); border-color: var(--zsr-gold-dark); }
.patron-request { position: sticky; top: 8px; z-index: 5; margin-bottom: 12px; padding: 14px 16px; background: var(--zsr-iron); color: #fff; }
.patron-request .eyebrow { color: #f0dba9; margin-bottom: 4px; }
.patron-request small { color: #efeeed; }
.find-progress { margin-bottom: 9px; color: var(--zsr-carbon); font-size: 11px; letter-spacing: .09em; }
.library-map-wrap { min-height: 0; padding: 16px; border-color: var(--zsr-alloy); background: var(--zsr-fog); }
.map-heading { padding-bottom: 11px; margin-bottom: 13px; border-color: var(--zsr-alloy); }
.map-heading .eyebrow { margin-bottom: 4px; font-size: 10px; }
.map-heading .button { font-size: 12px; }
.library-map { min-height: 160px; }
.floor-grid, .collection-plan, .aisle-plan, .shelf-plan, .book-search-row { gap: 12px; }
.map-card { min-height: 172px; padding: 14px; border-color: var(--zsr-alloy); background: #fff; }
.map-icon, .map-floor, .map-aisle, .map-shelf, .map-book { background: var(--zsr-fog); }
.map-icon { color: var(--zsr-blue); }
.map-card:hover { border-color: var(--zsr-blue); box-shadow: 0 4px 14px #35333112; }
.map-card-title { color: var(--zsr-iron); font-size: 19px; }
.map-card-sub { color: var(--zsr-muted); font-size: 12px; line-height: 1.4; }
.map-range { color: var(--zsr-blue); font-size: 12px; font-weight: 700; }
.map-select { min-height: 44px; padding: 9px 12px; border-color: var(--zsr-alloy); background: var(--zsr-fog); color: var(--zsr-blue); font-size: 13px; }
.map-select:hover { background: #e9e8e6; border-color: var(--zsr-blue); color: var(--zsr-blue); }

/* Reference, results, and About use the same readable scale and content width. */
.guide-example, .guide-note { border-color: var(--zsr-alloy); background: var(--zsr-fog); }
.guide-example { padding: 22px 24px; }
.guide-label { color: var(--zsr-carbon); font-size: 10px; letter-spacing: .1em; }
.sample-call { margin: 10px 0 18px; font-size: clamp(29px, 4vw, 44px); font-variant-numeric: tabular-nums; }
.sample-call b { color: var(--zsr-iron); }
.sample-call em { color: var(--zsr-blue); }
.sample-call strong { color: var(--zsr-gold-dark); }
.guide-parts { border-color: var(--zsr-alloy); }
.guide-parts > div { padding-top: 14px; border-color: var(--zsr-alloy); }
.guide-parts b { color: var(--zsr-iron); font-size: 20px; }
.guide-parts span { font-size: 13px; }
.guide-parts small { color: var(--zsr-muted); font-size: 12px; line-height: 1.4; }
.guide-grid, .about-columns { max-width: var(--content-width); margin: 0 auto; padding: 0 var(--page-gutter); gap: 18px; }
.guide-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.guide-grid article, .about-columns article { padding: 15px 14px 0 0; border-color: var(--zsr-alloy); }
.rule-no { color: var(--zsr-gold-dark); font-size: 11px; letter-spacing: .08em; }
.guide-grid h2, .about-columns h2 { margin: 8px 0; color: var(--zsr-iron); font-size: 21px; }
.guide-grid p, .about-columns p { color: var(--zsr-muted); font-size: 14px; line-height: 1.55; }
.guide-note { max-width: calc(var(--content-width) - var(--page-gutter) - var(--page-gutter)); margin: 26px auto 18px; padding: 13px 16px; color: var(--zsr-muted); font-size: 13px; }
.guide-view > .button { display: flex; width: fit-content; margin: 0 auto 42px; }
.about-columns { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.about-columns article { padding-right: 6px; }

/* Session reports remain plain-language records rather than analytics dashboards. */
.session-report-screen .section-heading { padding-bottom: 18px; }
.session-report-screen .section-heading h1 { color: var(--zsr-iron); }
.session-report { width: calc(100% - var(--page-gutter) - var(--page-gutter)); max-width: 1120px; margin: 0 auto; }
.report-metadata { border-color: var(--zsr-alloy); }
.report-metadata dt, .report-metadata dd { padding: 10px 12px; border-color: var(--zsr-alloy); }
.report-metadata dt { background: var(--zsr-fog); color: var(--zsr-carbon); font-size: 10px; letter-spacing: .08em; }
.report-metadata dd { color: var(--zsr-iron); font-size: 14px; }
.report-table { color: var(--zsr-iron); font-size: 14px; }
.report-table caption { color: var(--zsr-iron); font-size: 23px; }
.report-table th, .report-table td { padding: 11px 12px; border-color: var(--zsr-alloy); overflow-wrap: anywhere; }
.report-table thead th { background: var(--zsr-iron); color: #fff; font-size: 10px; }
.report-table tbody tr:nth-child(even) { background: var(--zsr-fog); }
.result-badge { background: #e7f0f5; color: #185c82; font-size: 11px; }
.report-totals { padding: 15px 17px; background: var(--zsr-fog); border-left-color: var(--zsr-gold); }
.report-totals h2 { color: var(--zsr-iron); font-size: 23px; }
.report-totals p, .report-counts { color: var(--zsr-iron); font-size: 14px; }
.report-counts { border-color: var(--zsr-alloy); }
.report-actions { width: calc(100% - var(--page-gutter) - var(--page-gutter)); max-width: 1120px; margin: 0 auto 36px; gap: 10px; }
.report-actions .back-to-games { width: auto; margin: 0 0 0 auto; }
.copy-status { width: calc(100% - var(--page-gutter) - var(--page-gutter)); max-width: 1120px; margin: 8px auto; color: var(--zsr-iron); font-size: 13px; }

/* One useful footer; the About page no longer repeats its own branding strip. */
.site-footer { min-height: 62px; gap: 16px; padding: 12px var(--page-gutter); border-color: var(--zsr-alloy); color: var(--zsr-carbon); font-size: 11px; letter-spacing: .04em; }
.site-footer a { color: var(--zsr-iron); text-decoration: none; font-weight: 700; letter-spacing: .08em; }
.site-footer a:hover { color: var(--zsr-blue); }

@media (max-width: 1050px) {
  :root { --page-gutter: clamp(20px, 4.5vw, 50px); }
  .game-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-game-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-game-link:nth-child(2) { border-right: 0; }
  .home-game-link:nth-child(-n+2) { border-bottom: 1px solid var(--zsr-alloy); }
  .return-layout { grid-template-columns: minmax(180px, .7fr) minmax(0, 1.8fr); }
  .section-heading { padding-top: 36px; }
  .hero-stage { grid-template-columns: minmax(0, .95fr) minmax(340px, 1.05fr); gap: 32px; }
  .hero-copy h1 { font-size: clamp(43px, 5.4vw, 58px); }
  .hero-visual { height: clamp(320px, 40vw, 405px); }
}
@media (max-width: 760px) {
  .topbar { height: auto; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; gap: 5px 14px; }
  .topbar nav { order: 2; width: 100%; justify-content: space-between; margin: 0; gap: 4px; }
  .topbar nav a { flex: 1 1 auto; justify-content: center; min-height: 42px; padding: 0 7px; font-size: 12px; }
  .hero-stage { display: flex; flex-direction: column; align-items: stretch; gap: 28px; min-height: 0; padding: 36px var(--page-gutter) 62px; }
  .hero-copy { max-width: 620px; }
  .hero-copy h1 { font-size: clamp(42px, 9vw, 58px); }
  .hero-intro { font-size: 16px; }
  .hero-meta { margin-top: 25px; flex-wrap: wrap; }
  .hero-visual { width: 100%; height: clamp(260px, 62vw, 360px); }
  .hero-bottom { gap: 12px; padding: 0 14px; font-size: 8px; letter-spacing: .035em; }
  .home-games { padding-top: 24px; }
  .home-games-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .game-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-choice { min-height: 315px; }
  .section-heading { display: block; padding: 30px var(--page-gutter) 20px; }
  .section-heading h1 { font-size: clamp(36px, 8vw, 48px); }
  .section-heading > p { margin-top: 12px; font-size: 16px; }
  .game-screen .section-heading { padding-top: 24px; padding-bottom: 16px; }
  .game-screen .section-heading h1 { font-size: clamp(34px, 7vw, 46px); }
  .game-toolbar { flex-wrap: wrap; gap: 8px 14px; padding: 10px 0; }
  .level-control { flex: 1 1 100%; min-width: 0; }
  .level-control select { width: 100%; max-width: 100%; }
  .level-objective { flex: 1 1 auto; font-size: 13px; }
  .game-toolbar .button { margin-left: auto; }
  .game-actions { align-items: flex-start; flex-direction: column; padding-top: 12px; gap: 10px; }
  .game-actions .button { width: 100%; }
  .return-layout { grid-template-columns: 1fr; }
  .floor-grid, .collection-plan, .aisle-plan, .shelf-plan, .book-search-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-parts > div { min-height: 90px; padding: 13px 10px 0; border-bottom: 1px solid var(--zsr-alloy); }
  .guide-parts > div:nth-child(2) { border-right: 0; }
  .guide-parts > div:nth-child(n+3) { border-bottom: 0; }
  .guide-parts > div:first-child { padding-left: 10px; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-table { font-size: 12px; }
}
@media (max-width: 520px) {
  .home-game-links, .game-card-grid, .guide-grid, .about-columns { grid-template-columns: 1fr; }
  .home-game-link, .home-game-link:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--zsr-alloy); }
  .home-game-link:last-child { border-bottom: 0; }
  .game-choice { min-height: 0; }
  .choice-art { height: 90px; }
  .game-session-bar { align-items: flex-start; flex-direction: column; gap: 4px; }
  .session-link { padding-left: 0; }
  .book-row { min-height: 240px; }
  .book-card { flex: 0 0 124px; min-height: 225px; }
  .return-row { min-height: 140px; }
  .detective-book { flex-basis: 124px; min-height: 190px; }
  .floor-grid, .collection-plan, .aisle-plan, .shelf-plan, .book-search-row { grid-template-columns: 1fr; }
  .map-card { min-height: 145px; }
  .guide-example { padding: 17px 15px; }
  .guide-parts > div { padding-left: 8px; padding-right: 8px; }
  .sample-call { font-size: clamp(25px, 7vw, 34px); }
  .report-metadata { grid-template-columns: 1fr; }
  .report-metadata dt { padding-bottom: 4px; border-bottom: 0; }
  .report-metadata dd { padding-top: 5px; }
  .report-table th, .report-table td { padding: 8px 6px; }
  .report-table tbody th { width: 42%; }
  .report-actions { align-items: stretch; flex-direction: column; }
  .report-actions .button, .report-actions .back-to-games { width: 100%; margin: 0; text-align: center; }
  .site-footer { justify-content: center; text-align: center; flex-direction: column; gap: 4px; }
  .hero-bottom { white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
