*{box-sizing:border-box}
:root{--ink:#123b3c;--teal:#095e56;--cream:#fcf9f0;--w:min(23vw,32dvh,322px)}
body{margin:0;background:var(--cream);color:var(--ink);font:16px/1.4 'Trebuchet MS',Arial,sans-serif}
button,a{color:inherit;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
button{border:none;padding:0;background:none}a{text-decoration:none}button:focus-visible,a:focus-visible,#wheel:focus-visible{outline:3px solid #ba5220;outline-offset:4px}
header{background:#fffefa;border-bottom:1px solid #dedfd3}
.bar{width:min(1160px,94%);margin:auto;display:flex;gap:20px;align-items:center;padding:7px 0}
.bar img{display:block;object-fit:contain}.bar strong{border-left:1px solid #bac8bf;padding-left:20px;font:700 23px Georgia;letter-spacing:-.7px}
#tutorials{display:flex;margin-left:auto;align-items:center;gap:8px;color:var(--teal);font-weight:bold;border:1px solid #9dbdb3;background:#f3faf5;padding:10px 17px;border-radius:24px}
main{text-align:center;overflow:hidden;background:radial-gradient(ellipse at 50% 37%,#fff4ce70,transparent 60%);min-height:calc(100dvh - 75px)}
.intro{padding:clamp(16px,3.1vh,40px) 10px 0}
h1,h2,p{margin:0}h1{font:700 clamp(34px,5.7vh,62px)/1.1 Georgia;letter-spacing:-1.7px;text-wrap:balance}
.intro p{margin-top:9px;color:#48645f;font-size:clamp(16px,2.2vh,19px)}
#shelf{position:relative;isolation:isolate;margin:clamp(12px,2.1vh,28px) auto 0}
.land{position:absolute;inset:0;z-index:-2;background:center bottom/100% 100% no-repeat url("hills.svg");pointer-events:none}
#wheel{position:relative;height:calc(var(--w)*1.36 + 38px);touch-action:pan-y pinch-zoom;cursor:grab;user-select:none;perspective:1450px;transform:translateX(var(--drag,0px));transition:transform .28s;outline-offset:-4px}
#wheel.drag{transition:none;cursor:grabbing}
.cover{position:absolute;top:calc(50% - 8px);left:50%;width:var(--w);aspect-ratio:17/22;transform-origin:50% 55%;transform:translate(-50%,-50%) translateX(var(--x)) scale(var(--s)) rotateY(var(--y));transition:transform .48s cubic-bezier(.2,.77,.23,1),opacity .33s,filter .35s;z-index:var(--z);box-shadow:0 13px 19px -8px #2f261667,0 4px 5px #30210632,0 1px 2px #5133114d;border-radius:3px 7px 7px 3px;background:#e3daca}
.cover img{pointer-events:none;display:block;border-radius:inherit;width:100%;height:100%}
.cover:before{content:"";position:absolute;inset:0;box-shadow:inset 1px 1px 2px #ffffff69,inset -1px -1px 2px #15230f73;background:linear-gradient(90deg,#0003,transparent 1.8%,#0002 3%,#fff2 3.8%,transparent 5.5%);border-radius:inherit}
.cover:after{content:"";position:absolute;left:1%;right:0;bottom:-4px;height:4px;background:linear-gradient(#fffdf6,#d1bfa4 55%,#fffcf1 65%,#766649);border-radius:0 0 5px 3px}
[data-pos="0"]{--x:0px;--s:1;--y:0deg;--z:5}
[data-pos="-1"],[data-pos="1"]{--x:85%;--s:.84;--y:-31deg;--z:4}
[data-pos="-1"]{--x:-85%;--y:31deg}
[data-pos="-2"],[data-pos="2"]{--x:148%;--s:.69;--y:-39deg;--z:3}
[data-pos="-2"]{--x:-148%;--y:39deg}
[data-pos="-3"],[data-pos="3"]{--x:180%;--s:.55;--y:-55deg;--z:1;opacity:0;pointer-events:none}
[data-pos="-3"]{--x:-180%;--y:55deg}
.arrow{position:absolute;top:48%;transform:translateY(-50%);width:52px;height:52px;border-radius:50%;background:#fffefa;color:var(--teal);border:1px solid #aac1ab;box-shadow:0 4px 12px #24413921;display:grid;place-items:center}
.arrow svg,.actions svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.3}
.prev{left:max(2vw,calc(50% - var(--w)*2.1 - 32px))}.next{right:max(2vw,calc(50% - var(--w)*2.1 - 32px))}
.browse,.actions,.actions>*,#allBooks{display:flex;align-items:center;justify-content:center}
.browse{gap:15px;font-size:16px;color:#45645d}.rule{height:18px;width:1px;background:#b8c8ba}
#allBooks{gap:8px;font-weight:bold;color:var(--teal);min-height:44px}#allBooks svg{width:16px;height:16px}
#selected{font:700 clamp(26px,3.8vh,38px)/1.13 Georgia;letter-spacing:-.75px;text-wrap:balance;margin:3px 14px 18px}
.actions{gap:14px}.actions>*{gap:9px;border-radius:30px;padding:14px 24px;font:bold 17px/1.2 Arial;min-height:52px}
#color{color:white;background:var(--teal);box-shadow:0 3px #063e37}
#buy{background:#ffb744;color:#26342c;box-shadow:0 3px #c7831e}#buy svg{width:19px;height:19px}
.tip{font-size:15px;margin:17px 0 20px;color:#536c66}
#picker{width:min(1080px,95vw);max-width:96vw;max-height:92dvh;background:#fffdf7;border:0;border-radius:20px;color:var(--ink);padding:0;overscroll-behavior:contain}
#picker::backdrop{background:#0d282caa;backdrop-filter:blur(4px)}
#picker.samples{width:min(660px,94vw)}
.modalHead{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;background:#fffdf7;position:sticky;top:0;z-index:1}
.modalHead h2{font:700 28px Georgia}.modalHead button{border-radius:50%;background:#e5efe7;width:42px;height:42px;font:30px/1 Arial}
#choices{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:18px 12px;padding:4px 20px 22px}
#choices>*{display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0;text-align:center;font-weight:bold;font-size:14px;line-height:1.22}
#choices img{width:100%;aspect-ratio:17/22;border-radius:4px;box-shadow:0 2px 7px #14212930}
#choices [aria-current=true] img{outline:3px solid var(--teal);outline-offset:2px}
#choices.samples{grid-template-columns:1fr 1fr;gap:15px}
#choices.samples img{object-fit:contain;max-height:54dvh;background:white}
#choices.samples span{font-size:17px}#choices b{margin-top:auto;background:var(--teal);color:white;border-radius:24px;padding:11px 12px}
@media(hover:hover){.arrow:hover,#tutorials:hover{background:#ddf1e6}.actions>*:hover,.cover:hover,#choices button:hover{filter:brightness(1.045)}#allBooks:hover{text-decoration:underline}}
@media(max-width:900px){:root{--w:min(34vw,32dvh)}.land{background-size:auto 100%}#choices.grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:620px){
:root{--w:min(56vw,32dvh)}.bar{gap:9px;padding:6px 0}.bar img{width:93px;height:46px}.bar strong{font-size:17px;padding-left:10px;line-height:1.02;max-width:96px}
#tutorials{font-size:14px;padding:10px 11px;gap:5px}#tutorials svg{width:16px}
.intro{padding-top:clamp(15px,3dvh,30px)}h1{font-size:clamp(27px,8.1vw,40px);letter-spacing:-1px}.intro p{font-size:16px;margin:8px auto 0;max-width:96%}
#shelf{margin-top:14px}.arrow{height:44px;width:44px;top:49%}.prev{left:9px}.next{right:9px}
[data-pos="1"]{--x:81%}[data-pos="-1"]{--x:-81%}
#selected{font-size:clamp(21px,6.2vw,29px);min-height:2.26em;margin:4px 12px 14px;display:grid;place-items:center}
.actions{gap:9px;padding:0 10px}.actions>*{font-size:clamp(13px,3.8vw,16px);padding:13px 12px;gap:6px;min-height:48px}.actions svg,#buy svg{width:17px;height:17px}
.tip{margin:15px 0 12px;font-size:14px}.browse{font-size:15px}
#choices.grid{grid-template-columns:repeat(3,minmax(0,1fr))}#choices{padding:4px 12px 18px;gap:15px 10px}
#choices.samples{gap:10px}#choices.samples span{font-size:15px}.modalHead{padding:12px}.modalHead h2{font-size:24px}
}
@media(max-width:365px){#tutorials svg,.actions svg{display:none}.bar img{width:80px}.actions>*{padding-inline:10px}}
@media(max-height:550px) and (orientation:landscape){:root{--w:34vh}.bar{padding:0}.bar img{height:40px}.intro{padding:6px 0 0}h1{font-size:26px}.intro p,.tip{display:none}#shelf{margin-top:0}#wheel{height:calc(var(--w)*1.34 + 16px)}.browse{height:32px}#selected{font-size:20px;margin:0 8px 7px}.actions>*{min-height:38px;padding:6px 16px;font-size:15px}}
@media(prefers-reduced-motion:reduce){#wheel,.cover{transition:none}}
