:root{--ink:#183d32;--paper:#fff9e9;--green:#275a43;--gold:#ffd56d}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:17px/1.5 system-ui,sans-serif}a{color:inherit}header{display:flex;align-items:center;gap:1.5rem;padding:1rem max(5vw,1rem);background:#fffdf3;justify-content:space-between}header nav{display:flex;gap:1.1rem}header a{text-decoration:none;font-weight:700}.brand{font-family:Georgia,serif;font-size:1.35rem}#stars{white-space:nowrap;background:#ffedaf;border-radius:2rem;padding:.35rem .8rem;font-weight:800}.hero{padding:clamp(3rem,9vw,8rem) 7vw;background:#b9e0d4 url(island.webp) center right/cover;position:relative;isolation:isolate}.hero:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#fff5d9 0%,#fff5d9f5 28%,#fff5d900 75%)}.hero div{max-width:590px}.hero p:not(.eyebrow){max-width:330px;font-size:1.2rem}h1,h2,h3{font-family:Georgia,serif;line-height:1.08;margin:.2em 0}h1{font-size:clamp(2.85rem,7vw,6.6rem);letter-spacing:-.055em}h2{font-size:clamp(2rem,4vw,3.1rem)}h3{font-size:1.6rem}.eyebrow,small{letter-spacing:.12em;font-weight:800;font-size:.76rem}.button,button{display:inline-block;text-decoration:none;color:var(--ink);border:0;border-radius:1rem;background:var(--gold);font:inherit;font-weight:800;padding:.65rem 1rem;cursor:pointer}.button:hover,button:hover{filter:brightness(.95)}:focus-visible{outline:3px solid #106b87;outline-offset:4px}#games{max-width:1180px;margin:auto;padding:3rem 1.25rem 3.5rem;text-align:center}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;text-align:left;margin-top:1.7rem}.cards article{display:flex;flex-direction:column;align-items:flex-start;background:#fffef7;border:1px solid #ded7b9;border-radius:1.4rem;padding:1.1rem;box-shadow:0 5px 0 #eae2c6}.icon{width:100%;display:grid;place-items:center;font-size:3.5rem;border-radius:.9rem;margin-bottom:1rem;min-height:105px}.meadow{background:#d7e9b4}.cove{background:#c6e9e9}.hill{background:#f4deb1}.cards p{flex:1}.cards button{background:var(--green);color:white}#families{background:#e4edcc;display:flex;align-items:center;gap:1.5rem;padding:2.5rem max(7vw,1.25rem)}#families>div:first-child{font-size:2.5rem}footer{display:flex;justify-content:space-between;gap:1rem;padding:1rem 7vw;background:var(--ink);color:white}dialog{background:var(--paper);color:var(--ink);border:1px solid #b5bd9d;border-radius:1.4rem;width:min(550px,calc(100% - 2rem));padding:1.5rem}dialog::backdrop{background:#13352bc7}.close{float:right;background:#e4edcc}#choices{display:grid;gap:.6rem}#choices button{text-align:left;background:#e4edcc}#choices button:disabled{cursor:default;color:#355b49}#feedback{min-height:1.5em}button[hidden]{display:none}@media(max-width:720px){.cards{grid-template-columns:1fr}header{flex-wrap:wrap;gap:.6rem}.hero:before{background:linear-gradient(90deg,#fff5d9f5 0%,#fff5d9bb 57%,#fff5d915 100%)}.hero{background-position:62% center}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.icon{height:146px;padding:.55rem;background-image:radial-gradient(ellipse at 50% 100%,#fff7c18c,transparent 70%)}.icon img{max-width:95%;max-height:100%;object-fit:contain;min-height:0;filter:drop-shadow(0 4px 3px #253e302c)}#families img{width:75px;display:block}#choices.memory,#choices.search{grid-template-columns:repeat(2,minmax(0,1fr))}#choices.memory button,#choices.search button{text-align:center;min-height:52px}#choices .matched{background:#ffe396}
.book{margin:1rem auto 2.5rem;max-width:1080px;padding:clamp(1rem,4vw,2.5rem);background:#f0e3bf;border:1px solid #cbb789;border-radius:1.5rem}.book-page{margin:1rem 0;padding:clamp(1rem,4vw,2rem);background:#fffdf3;border-radius:.6rem;box-shadow:0 3px 0 #d8c59a}.book label{display:inline-flex;align-items:center;flex-wrap:wrap;gap:.4rem;margin:.5rem .6rem .5rem 0}.book select{max-width:100%;font:inherit;color:inherit;border:1px solid #9f8b5e;border-radius:.5rem;padding:.35rem;background:#fffdf3}.book-page p{max-width:72ch}.book button,#play>button{margin:.25rem .15rem .25rem 0}.note,#reading-note{font-size:.9rem}.game-scene{height:130px;display:grid;place-items:center;border-radius:.8rem;background:linear-gradient(0deg,#1b4d4b55,#f6e5a122),url(island.webp) center 63%/cover;margin:.25rem 0 .65rem}.game-scene img{height:118px;max-width:90%;object-fit:contain;filter:drop-shadow(0 4px 4px #17372777)}.close{position:relative}:is(#journey,[data-snapshot-id="journey"]){padding-left:1.6rem;columns:2}:is(#journey,[data-snapshot-id="journey"]) li{break-inside:avoid;margin:.35rem 0}@media(max-width:720px){.book{margin-inline:1rem}:is(#journey,[data-snapshot-id="journey"]){columns:1}}
.book{max-width:1120px;background:#fff6dd;border-color:#dac291}.book-tabs{display:flex;align-items:end;gap:.5rem;padding:0 7%;margin-top:.5rem}.book-tabs>span,.book-tabs>label{padding:.55rem .85rem;background:#e8c78b;border:1px solid #a87a41;border-bottom:0;border-radius:.65rem .65rem 0 0;margin:0;color:#553520;font-weight:800}.spread{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8%;padding:6.5% 9%;min-height:clamp(360px,48vw,520px);background: center / 100% 100% no-repeat;color:#4c2f21;font-family:Georgia,serif;line-height:1.45}.scripture-spread{background-image:url(art/books/spread.webp)}.keeper-spread{background-image:url(art/books/keeper_spread.webp)}.leaf h3{color:#823f28}.leaf h4{margin:.65rem 0 .4rem}.leaf p{margin:.45em 0}.keeper-detail{text-align:center}.keeper-detail img,.leaf .story-stamp{display:block;max-width:95px;max-height:105px;object-fit:contain;margin:.5rem auto}.keeper-spread :is(#journey,[data-snapshot-id="journey"]){columns:1;margin:.5rem 0;font-size:.94rem}.keeper-spread :is(#journey,[data-snapshot-id="journey"]) li::marker{color:#983f24}.book-controls,.recordings{padding:.5rem 0}.book-controls button,.recordings button{background:#ead49c}.book button:disabled{opacity:.55;cursor:default}.spread.turn .leaf{animation:page-settle .22s ease-out}@keyframes page-settle{from{opacity:.55;transform:translateX(4px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.spread.turn .leaf{animation:none}}@media(max-width:680px){.spread{grid-template-columns:1fr;min-height:0;gap:0;padding:0;background:none}.spread .leaf{padding:1rem 1.15rem;background:#f9ebc9 url(art/books/page.webp) center/100% 100%;border:1px solid #c19a63;border-radius:.6rem}.keeper-spread .leaf{background-image:url(art/books/keeper_leaf.webp)}.leaf:empty{display:none}.book-tabs{padding-left:2%}}
.spread{position:relative;perspective:1500px;isolation:isolate}.spread>.leaf{cursor:pointer}.spread[aria-busy=true]>.leaf{pointer-events:none}.curl-sheet,.curl-strip{position:absolute;transform-style:preserve-3d;pointer-events:none}.curl-sheet{z-index:4}.curl-strip{inset-block:0}.curl-face{position:absolute;inset:0;overflow:hidden;backface-visibility:hidden;background:#f6e4b7 url(art/books/page.webp) center/auto 100%;color:#4c2f21}.curl-face>.leaf{position:absolute;inset-block:0;margin:0;background:none;border:0;overflow:hidden}.curl-back{transform:rotateY(180deg)}.keeper-spread .curl-face{background-image:url(art/books/keeper_leaf.webp)}.curl-strip{filter:none}
.curl-stationary{position:absolute;z-index:2;overflow:hidden;pointer-events:none;background:#f6e4b7 url(art/books/page.webp) center/100% 100%}.keeper-spread .curl-stationary{background-image:url(art/books/keeper_leaf.webp)}
.curl-face,.curl-stationary{background-repeat:no-repeat}.curl-face::after{content:"";position:absolute;inset:0;background:rgba(76,47,33,var(--paper-shade,0));pointer-events:none}.curl-face>.leaf{bottom:auto;height:100%}.curl-sheet{overflow:visible}
/* Keep the painted spread at its native proportions. Longer readings scroll on the parchment. */
@media(min-width:681px){
  .spread{width:min(100%,800px,112svh);height:auto;min-height:0;aspect-ratio:8/5;margin-inline:auto;display:block;padding:0}
  .spread>.leaf{position:absolute;top:10%;bottom:13%;width:36%;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a58551 transparent;padding:0 .25rem}
  .spread>.leaf:first-child{left:10%}
  .spread>.leaf:nth-child(2){left:54%}
}
@media(max-width:680px){
  .spread>.leaf{max-height:55svh;overflow:auto;overscroll-behavior:contain}
}
.spread.curl-forward>.leaf:first-child,.spread.curl-backward>.leaf:nth-child(2){visibility:hidden}
@media(max-width:680px){
  .spread.curl-forward>.leaf:first-child,.spread.curl-backward>.leaf:nth-child(2){visibility:visible}
}

.scripture-spread > .leaf{scrollbar-gutter:stable}

.scripture-spread > .leaf{padding-bottom:1em}

.cards article[hidden],#hebrew-card[hidden]{display:none}.trail-glyph{font-size:2.4rem;line-height:1.2}.icon:has(.trail-glyph){grid-template-columns:1fr 1fr}.icon:has(.trail-glyph) img{height:105px}#hebrew-card{padding:.5rem;background:#f0e3bf;border-radius:.6rem}#hebrew-card button,#prompt-voice button,#feedback-voice button{margin:.25rem}
.game-guide{max-width:1120px;margin:0 auto;padding:3rem max(1rem,4vw)}.game-guide .cards img{width:100%;height:125px;object-fit:contain;background:#e3edc8;border-radius:.8rem;margin-bottom:.7rem}.game-callout,.game-guide details{padding:1rem;background:#e4edcc;border-radius:.75rem;margin-top:1rem}.game-guide summary{cursor:pointer;font-weight:700}.game-promo{padding:3rem max(1.25rem,7vw);background:#e4edcc}.game-promo .button,.pc-game .hero .button{margin:.25rem 0}.guide-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.5rem;padding-left:1.4rem}.guide-steps li{padding:.5rem}.guide-steps li::marker{font-weight:bold}.control-table{width:100%;border-collapse:collapse;background:#fffef7}.control-table th,.control-table td{padding:.65rem;text-align:left;border-bottom:1px solid #d8cfae}.control-table thead{background:#d8e5bd}.control-table kbd,.pc-game kbd{background:#fff5d4;border:1px solid #c9b779;border-radius:.25rem;padding:.1rem .3rem;white-space:nowrap}.secondary-button{background:#e4edcc}.pc-game header nav{flex-wrap:wrap}.pc-game .hero{padding-block:clamp(3rem,8vw,7rem)}

.handbook section,.handbook-index{scroll-margin-top:6rem}
.handbook-index{background:#e4edcc;padding:1.25rem;border-radius:1rem;margin:2rem 0}
.handbook-index ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));gap:.45rem 1.5rem;padding-left:1.25rem}
.handbook-chapter{padding:2rem 0;border-top:1px solid #a5b187}
.handbook-chapter>h3,.handbook #how-to-play>h3{font-size:clamp(1.55rem,3vw,2.2rem)}
.handbook-chapter>p:not(.eyebrow){max-width:76ch}
.handbook-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr));gap:1rem;margin:1rem 0 1.5rem}
.handbook-gallery figure{margin:0;background:#e4edcc;border-radius:.8rem;overflow:hidden}
.handbook-gallery img{width:100%;height:auto;display:block}
.handbook-gallery figcaption{padding:.65rem .85rem;font-size:.9rem}
.handbook-art{max-width:18rem}
.handbook-art img{height:10rem;object-fit:contain;padding:.5rem}
.handbook-back{display:inline-block;margin-top:.65rem}
.handbook .control-table th:first-child{width:28%}

.hebrew-scene{overflow:visible}
.hebrew-scene #game-art{object-fit:contain}
.hebrew-scene.hebrew-speaking #game-art{animation:hebrew-talk .44s ease-in-out infinite alternate}
.hebrew-scene.hebrew-cheer #game-art{animation:hebrew-hop .72s ease-out}
.hebrew-word-picture{display:block;width:min(100%,13rem);aspect-ratio:1;object-fit:cover;border-radius:.7rem;margin:.5rem auto}
@keyframes hebrew-talk{to{transform:translateY(-3px) rotate(2deg)}}
@keyframes hebrew-hop{30%{transform:translateY(-24px) rotate(-6deg)}65%{transform:translateY(-9px) rotate(4deg)}}
@media(prefers-reduced-motion:reduce){.hebrew-scene #game-art{animation:none!important}}

/* Give the Hebrew guide a dedicated stage instead of the illustrated site banner. */
.game-scene.hebrew-scene{
  height:154px;
  overflow:hidden;
  border:1px solid #c5d3b1;
  background:radial-gradient(ellipse 46px 8px at 50% calc(100% - 12px), #344a3438, transparent 90%),
             linear-gradient(180deg,#eff3df,#dce8c6);
}
.hebrew-scene #game-art{
  height:116px;
  align-self:end;
  margin-bottom:12px;
}
.hebrew-guide-picker{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.4rem;
  padding-bottom:.55rem;
  margin-bottom:.5rem;
  border-bottom:1px solid #d6c69c;
}
.hebrew-guide-picker select{font:inherit;color:inherit}
