:root{--navy:#173e59;--ink:#203d50;--muted:#667d8a;--gold:#c49a46;--pale-gold:#f7edda;--paper:#fffefa;--line:#dbe4e7;--tile:31px;--letter:20px;--tile-height:55px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#f1f5f5;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,a,input{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible{outline:3px solid #ac7b20;outline-offset:4px}button{touch-action:manipulation}button,dialog{-webkit-tap-highlight-color:transparent}button{border:0}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Georgia,'Times New Roman',serif;font-weight:400}h1{font-size:clamp(36px,6vw,51px);letter-spacing:-1.4px;line-height:1.12}h2{font-size:30px;line-height:1.2}p{line-height:1.65}svg{width:22px;height:22px}.app-shell{max-width:1000px;margin:auto;padding:0 36px}.site-header{display:flex;align-items:center;justify-content:space-between;padding:26px 0;border-bottom:1px solid var(--line)}.brand{background:none;display:flex;gap:11px;align-items:center;text-align:left;font-size:15px;line-height:1.3;letter-spacing:.2px;padding:0}.brand strong{font-size:16px;font-weight:600}nav{display:flex;gap:10px}.icon-button{width:43px;height:43px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;background:var(--paper);font-weight:500;font-size:20px}.eyebrow{font-size:15px;font-weight:700;letter-spacing:2.1px;text-transform:uppercase;color:var(--muted)}.gold{color:#8c6a2a}.home{max-width:720px;margin:58px auto 0}.hero{text-align:center;max-width:590px;margin:0 auto 32px}.hero h1{margin:16px 0}.hero p{color:var(--muted);max-width:430px;margin:0 auto;font-size:16px}.hero-mark{width:66px;height:66px;margin:0 auto 20px}.study-card{background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:31px;box-shadow:0 9px 30px #183e5905}.card-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.card-heading h2{margin:8px 0 10px}.book-icon{width:52px;height:52px;display:grid;place-items:center;background:#edf3f5;border-radius:15px;color:var(--navy)}.book-icon svg{width:28px;height:28px}.study-meta{display:flex;flex-wrap:wrap;gap:7px;align-items:center;font-size:15px;color:var(--muted);margin-bottom:24px}.dot{padding:0 4px}.progress-track{height:5px;background:#e9eef0;border-radius:10px;overflow:hidden;margin:19px 0 10px}.progress-fill{height:100%;background:var(--gold);transition:width .3s}.progress-label{font-size:15px;color:var(--muted);display:flex;justify-content:space-between;margin-bottom:24px}.primary,.secondary,.danger{border-radius:11px;padding:14px 20px;font-size:15px;font-weight:600;min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:15px}.primary{background:var(--navy);color:#fff}.primary:hover{background:#25556f}.secondary{background:transparent;border:1px solid var(--line)}.danger{background:#a84035;color:white}.full{width:100%}.arrow{font-size:20px;font-weight:400}.text-button{padding:12px;background:transparent;font-size:15px;text-decoration:underline;text-underline-offset:4px}.study-card>.text-button{display:block;margin:8px auto -11px}.home-foot{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:27px 0 0;text-align:center;color:var(--muted);font-size:15px;line-height:1.6}.home-foot b{display:block;color:var(--ink);font-weight:500;font-size:15px}.sample-note{font-size:15px;color:var(--muted);text-align:center;line-height:1.65;margin:27px auto 0;max-width:560px}.site-footer{display:flex;justify-content:space-between;gap:12px;padding:28px 0 23px;margin-top:28px;font-size:15px;letter-spacing:.4px;color:var(--muted)}.site-footer>span:first-child{font-weight:700;letter-spacing:1.7px}.back{display:inline-flex;align-items:center;gap:8px;background:none;padding:0;min-height:44px;color:var(--muted);font-size:15px}.study-view{max-width:720px;margin:25px auto}.study-view h1{font-size:36px;margin:16px 0 12px}.study-description{color:var(--muted);font-size:15px}.puzzle-list{list-style:none;padding:0;margin:28px 0}.puzzle-list li{border-bottom:1px solid var(--line)}.puzzle-row{background:transparent;display:flex;align-items:center;gap:15px;text-align:left;width:100%;padding:19px 0}.row-number{width:38px;height:38px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;color:var(--muted);font-size:15px;flex-shrink:0}.row-number.done{background:#e1ede7;border-color:#e1ede7;color:#32624c}.row-copy{flex:1}.row-title{display:block;font-weight:500;font-size:15px}.row-sub{display:block;font-size:15px;color:var(--muted);margin-top:5px}.row-status{font-size:15px;color:var(--muted);white-space:nowrap}.row-status.active{color:#936e29}.play-view{margin:16px auto 0}.play-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.play-top .eyebrow{font-size:15px;letter-spacing:1.3px}.puzzle-card{background:var(--paper);border:1px solid var(--line);border-radius:21px;padding:28px 30px 23px}.puzzle-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.puzzle-heading h1{font-size:30px;letter-spacing:-.6px;margin:8px 0 13px}.puzzle-heading p{font-size:15px;color:var(--muted);margin:0}.puzzle-number{font-size:15px;color:var(--muted);padding-top:4px;white-space:nowrap}.metrics{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin-top:21px;padding-top:16px;gap:14px;font-size:15px}.mistakes{display:flex;align-items:center;gap:8px}.mistake-dot{width:8px;height:8px;border-radius:50%;background:#dfe6e9}.mistake-dot.used{background:#b65043}.hint-button{background:var(--pale-gold);color:#795820;border-radius:8px;min-height:38px;padding:7px 11px;display:flex;align-items:center;gap:7px;font-size:15px}.hint-button svg{width:16px;height:16px}.puzzle-grid{display:flex;flex-wrap:wrap;align-items:flex-end;column-gap:16px;row-gap:19px;margin:34px 0 29px;scroll-margin-bottom:230px}.word{display:inline-flex;gap:3px;align-items:flex-end;max-width:100%;flex-wrap:wrap;row-gap:18px}.tile{width:var(--tile);height:var(--tile-height);display:flex;flex-direction:column;justify-content:space-between;align-items:center;background:#f1f5f6;border:1px solid transparent;border-bottom:2px solid #b9cbd4;border-radius:6px 6px 3px 3px;padding:7px 0 4px;flex-shrink:0;scroll-margin:145px 0 240px}.tile-letter{font-size:var(--letter);font-weight:500;line-height:1.05;min-height:1.05em}.tile-code{font-size:15px;line-height:1;color:#667e8a}.tile.solved{background:#e9f0f3;border-bottom-color:#a7becb;color:var(--navy)}.tile.selected{background:var(--pale-gold);border-color:#bd8b36;border-bottom:2px solid #a57422;box-shadow:0 0 0 2px #c89d4320}.tile.wrong{background:#fae5e1;color:#b24335;border-color:#b24335}.punctuation{font-family:Georgia,serif;font-size:var(--letter);padding-bottom:16px;color:#607e8d}.puzzle-help{font-size:15px;color:var(--muted);display:flex;justify-content:space-between;gap:15px;padding-top:15px;border-top:1px solid var(--line);margin:0}.status-line{font-size:15px;color:var(--muted);min-height:18px;margin:14px 0 0}.keyboard{position:sticky;bottom:0;z-index:5;background:linear-gradient(#f1f5f500,#f1f5f5 12px);padding:25px 0 max(14px,env(safe-area-inset-bottom));margin:0 auto;max-width:620px}.keyboard-label{font-size:15px;font-weight:600;color:var(--muted);letter-spacing:1.4px;text-align:center;text-transform:uppercase;margin-bottom:10px}.key-row{display:flex;justify-content:center;gap:5px;margin:0 0 6px}.key{min-width:0;flex:1;max-width:51px;height:45px;background:#fff;border:1px solid #d1dce1;border-bottom:3px solid #c0ced5;border-radius:7px;font-weight:500;font-size:16px;box-shadow:0 1px 2px #183e5905}.key:active{transform:translateY(2px);border-bottom-width:1px;background:#e4edf1}.key-row:nth-of-type(2){padding:0 26px}.key-row:nth-of-type(3){padding:0 79px}.play-bottom{text-align:center;margin:5px 0}.play-bottom .text-button{font-size:15px;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:22px;padding:30px;width:min(460px,calc(100% - 32px));color:var(--ink);background:var(--paper);max-height:85dvh;box-shadow:0 20px 100px #16374d30}dialog::backdrop{background:#17324770;backdrop-filter:blur(3px)}dialog h2{margin:0 0 15px}dialog p,dialog li{font-size:15px;line-height:1.7;color:var(--muted)}dialog ol{padding-left:20px}dialog li{padding-left:3px;margin:8px 0}.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.close-button{background:none;font-size:25px;padding:0 0 7px 12px;line-height:1}.dialog-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}.dialog-actions>button{flex:1}.settings-label{font-size:15px;font-weight:600;margin:24px 0 12px}.sizes{display:flex;gap:6px}.size-button{flex:1;min-height:48px;border:1px solid var(--line);border-radius:8px;background:transparent}.size-button.chosen{background:var(--navy);color:white;border-color:var(--navy)}.setting-note{margin:16px 0 0!important;font-size:15px!important}.size-preview{padding:16px 0 0;display:flex;justify-content:center;gap:4px}.size-preview .tile{cursor:default}.complete{max-width:650px;margin:40px auto 0;text-align:center}.success-icon{margin:0 auto 22px;width:68px;height:68px;border-radius:50%;background:#e4eee8;color:#43765e;display:grid;place-items:center;font-size:28px}.complete h1{font-size:40px;margin:14px 0 25px}.verse-reveal{font-family:Georgia,serif;font-size:25px;line-height:1.65;margin:0}.verse-reference{font-size:15px;color:var(--muted);margin:18px 0 0}.complete .study-card{margin-top:22px}.result-metrics{display:flex;justify-content:center;gap:26px;font-size:15px;color:var(--muted);margin:24px 0}.complete .primary{min-width:230px}.complete .text-button{display:block;margin:8px auto}.storage-warning{padding:14px;background:#fff0cd;font-size:15px;line-height:1.5}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:800px){.play-view{max-width:880px}.puzzle-grid{column-gap:19px;row-gap:23px;margin-top:37px}.puzzle-card{padding:30px 35px}.keyboard{padding-top:28px}.home{margin-top:55px}.site-footer{margin-top:36px}}
@media(max-width:600px){.app-shell{padding:0 18px}.site-header{padding:18px 0}.brand img{width:35px;height:35px}.brand{font-size:15px;gap:9px}.brand strong{font-size:15px}nav{gap:8px}.icon-button{width:39px;height:39px}.home{margin-top:33px}.hero{margin-bottom:26px}.hero h1{font-size:38px}.hero p{font-size:15px;max-width:300px}.hero-mark{width:55px;height:55px;margin-bottom:17px}.study-card{padding:23px;border-radius:17px}.card-heading h2{font-size:28px}.eyebrow{font-size:15px;letter-spacing:1.7px}.home-foot{gap:6px;margin-top:23px;font-size:15px}.home-foot b{font-size:15px}.sample-note{font-size:15px;margin-top:23px}.site-footer{font-size:15px;letter-spacing:0;flex-wrap:wrap;margin-top:23px;padding:22px 0}.site-footer>span:first-child{letter-spacing:1.3px}.puzzle-card{padding:20px 15px 17px;border-radius:16px}.play-top{margin-bottom:7px}.play-top .eyebrow{font-size:15px}.puzzle-heading h1{font-size:27px}.puzzle-heading p{font-size:15px}.puzzle-number{font-size:15px}.metrics{font-size:15px;gap:8px}.mistakes{gap:6px}.hint-button{font-size:15px}.puzzle-grid{column-gap:12px;row-gap:18px;margin:28px 0 24px}.word{gap:3px}.puzzle-help{font-size:15px;gap:8px;align-items:center}.status-line{font-size:15px}.keyboard{padding-top:22px}.key-row{gap:4px}.key{height:45px;font-size:15px;border-radius:6px}.key-row:nth-of-type(2){padding:0 17px}.key-row:nth-of-type(3){padding:0 51px}.keyboard-label{font-size:15px;margin-bottom:9px}.play-view{margin-top:10px}.study-view h1{font-size:33px}.row-status{font-size:15px}.row-title{font-size:15px}.puzzle-row{gap:11px}.row-number{width:32px;height:32px}.complete{margin-top:30px}.complete h1{font-size:34px}.verse-reveal{font-size:23px}.result-metrics{gap:15px;font-size:15px}dialog{padding:25px}.sizes{gap:5px}}
.tile:disabled{opacity:1}.key-row:nth-of-type(2){padding:0}.key-row:nth-of-type(3){padding:0 26px}.key-row:nth-of-type(4){padding:0 79px}
@media(max-width:600px){.key-row:nth-of-type(2){padding:0}.key-row:nth-of-type(3){padding:0 17px}.key-row:nth-of-type(4){padding:0 51px}}
.key.letter-complete:disabled{opacity:1;color:#a0adb4;background:#e5ebee;border-color:#d6dfe3;border-bottom-color:#cfd9de;box-shadow:none}
.section-kicker{margin-top:22px}.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:28px 0}.category-card{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:23px 20px;text-align:left;display:flex;flex-direction:column;min-height:260px}.category-card:hover{border-color:#b6cbd5;box-shadow:0 5px 20px #173e590a}.category-symbol{font-family:Georgia,serif;color:#a27d36;font-size:31px;margin-bottom:19px}.category-card h2{font-size:23px;line-height:1.25;margin-bottom:12px}.category-card p{font-size:15px;color:var(--muted);flex:1}.category-count{font-size:15px;color:var(--muted);display:flex;justify-content:space-between}.study-selection{margin-top:28px;display:grid;gap:18px}.study-selection h2{margin:12px 0}.continue-banner{border:1px solid #dbc48f;background:#fcf6e9;border-radius:12px;padding:12px 16px;font-size:15px;line-height:1.6;display:flex;align-items:center;justify-content:space-between;gap:12px}.continue-banner .text-button{white-space:nowrap;color:#815f27}.intro-copy{font-family:Georgia,serif;font-size:21px;line-height:1.7;margin:0 0 12px}.intro-source{font-size:15px;color:var(--muted);margin:0 0 25px}.list-heading{font-size:24px;margin-top:35px}.completion-insight{border-top:1px solid var(--line);margin-top:24px;padding-top:22px}.completion-insight p{font-size:16px;line-height:1.65;margin:12px 0 0;color:var(--ink)}
@media(max-width:650px){.category-grid{grid-template-columns:1fr}.category-card{min-height:0;padding:21px}.category-symbol{margin-bottom:10px}.category-card p{margin-bottom:18px}.continue-banner{flex-direction:column;align-items:flex-start;gap:0}.intro-copy{font-size:19px}.play-top>.eyebrow{max-width:50%;text-align:right;line-height:1.6}.study-view h1{font-size:33px}}
.category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.category-card{padding:20px 15px;min-height:245px}.category-card h2{font-size:21px}.category-card p{font-size:15px}.category-count{font-size:15px;gap:8px}.study-view:has(.category-grid){max-width:920px}
@media(max-width:750px){.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category-card{min-height:230px}.category-card h2{font-size:22px}}
@media(max-width:360px){.category-card{padding:17px 12px}.category-card h2{font-size:19px}}
.tile-code{font-size:var(--code,15px);line-height:1}
.tile-check{color:#2d7c9c;font-size:var(--check,16px);font-weight:700;line-height:1}
.letter-reward{position:fixed;z-index:15;top:max(18px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;padding:12px 22px 12px 12px;border-radius:16px;background:#fffaf0;border:1px solid #dfc48c;box-shadow:0 8px 32px #173e592b;color:var(--navy);font-size:15px;font-weight:600;white-space:nowrap;pointer-events:none}
.letter-reward[hidden]{display:none}.reward-badge{position:relative;display:grid;place-items:center;width:42px;height:42px;background:var(--navy);color:#fff;border-radius:12px;font-size:24px}.reward-badge>span{position:absolute;bottom:-4px;right:-5px;background:#e5c477;border:2px solid #fffaf0;color:#173e59;width:21px;height:21px;border-radius:50%;font-size:15px;display:grid;place-items:center}.spark{position:absolute;color:#b68728;font-style:normal;opacity:0}.spark-one{left:4px;top:0}.spark-two{right:4px;top:3px;font-size:19px}.spark-three{right:20px;bottom:0;font-size:15px}
.letter-reward.celebrate{animation:reward-appear 1.9s ease both}.celebrate .reward-badge{animation:badge-pop .65s ease both}.celebrate .spark{animation:sparkle .85s ease .12s both}.celebrate .spark-two{animation-delay:.25s}.celebrate .spark-three{animation-delay:.4s}.tile.just-completed{animation:letter-glow .85s ease both}.key.just-completed{animation:key-pop .65s ease both}
@keyframes reward-appear{0%{opacity:0;transform:translate(-50%,-14px) scale(.94)}14%,82%{opacity:1;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,-9px)}}
@keyframes badge-pop{0%{transform:scale(.7) rotate(-10deg)}55%{transform:scale(1.12) rotate(4deg)}100%{transform:scale(1) rotate(0)}}
@keyframes sparkle{0%,100%{opacity:0;transform:scale(.3)}40%{opacity:1;transform:translateY(-8px) scale(1.3)}}
@keyframes letter-glow{0%,100%{box-shadow:none}35%{background:#f7ebcd;box-shadow:0 0 0 3px #d4ad5b66}}
@keyframes key-pop{0%,100%{transform:scale(1)}40%{transform:translateY(-5px) scale(1.1);background:#eed9a8;color:#795820}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}.letter-reward.celebrate,.celebrate .reward-badge,.celebrate .spark,.tile.just-completed,.key.just-completed{animation:none}.celebrate .spark{display:none}}

/* Readable phone typography: 15 CSS px exceeds the requested 11 pt minimum. */
:root{font-size:18px;--muted:#526a78}
body{font-size:18px;line-height:1.6}
.hero p,.study-description,dialog p,dialog li{font-size:18px}
.study-meta,.home-foot,.home-foot b,.primary,.secondary,.danger,.text-button,.back{font-size:16px}
.brand{font-size:15px}.brand strong{font-size:18px}
.eyebrow,.play-top .eyebrow,.keyboard-label,.site-footer>span:first-child{letter-spacing:1px}
.row-title{font-size:18px}.row-sub,.row-status,.progress-label,.sample-note,.intro-source,.category-count,.puzzle-number,.puzzle-heading p,.status-line,.puzzle-help,.metrics,.hint-button,.setting-note{font-size:15px}
.category-card h2{font-size:24px;overflow-wrap:anywhere}.category-card p{font-size:17px}.category-card{min-height:285px}
.category-count{line-height:1.6;align-items:flex-end}.category-count>span{font-size:22px;flex-shrink:0}
.completion-insight p{font-size:18px}.result-metrics,.verse-reference{font-size:16px}
.hint-button{min-height:44px}.icon-button{width:44px;height:44px}.key{font-size:18px;min-height:46px}
.metrics,.puzzle-help,.result-metrics{flex-wrap:wrap}.metrics{row-gap:12px}.mistakes{flex-wrap:wrap}.puzzle-help{row-gap:8px}
.site-footer{font-size:15px;line-height:1.6;flex-wrap:wrap}.site-footer>span:first-child{letter-spacing:1px}
.close-button{min-width:44px;min-height:44px;padding:0}.settings-label{font-size:17px}.size-button{font-size:16px}
.tile-code{font-size:var(--code,19px);line-height:1}.tile-check{font-size:var(--check,20px);line-height:1}
.puzzle-grid{column-gap:28px;row-gap:24px}
.tile,.tile.selected{border-bottom:0;border-radius:6px;padding-bottom:4px}
.tile-code{width:100%;flex-shrink:0;text-align:center;border-top:2px solid #b9cbd4;padding-top:4px}
.complete .verse-reference{font-size:28px;line-height:1.3;font-weight:600;color:var(--navy);margin:24px 0 0;overflow-wrap:anywhere}
.verse-version{font-size:16px;line-height:1.5;color:var(--muted);margin:7px 0 0}
.tile.solved .tile-code{border-top-color:#a7becb}.tile.selected .tile-code{border-top-color:#a57422}.tile.wrong .tile-code{border-top-color:#b24335}
@media(max-width:600px){.puzzle-grid{column-gap:24px;row-gap:24px}}
@media(max-width:600px){.app-shell{padding:0 16px}.hero p{font-size:18px}.home-foot{gap:12px}.study-card{padding:22px}.puzzle-card{padding:20px 14px}.category-card{min-height:285px;padding:20px 14px}.category-card h2{font-size:23px}.category-card p{font-size:17px}.study-meta{gap:8px}.play-top .eyebrow{font-size:15px;letter-spacing:.5px}.play-top{gap:12px}.back{font-size:16px}.puzzle-heading h1{font-size:30px}.key-row{gap:3px}.key-row:nth-of-type(3){padding:0 16px}.key-row:nth-of-type(4){padding:0 48px}.key{font-size:18px}.home-foot b{font-size:16px}.puzzle-number{font-size:15px}}
.home .hero .home-title{font-family:inherit;font-size:15px;font-weight:700;line-height:1.6;letter-spacing:1px;margin:0 0 16px}.home .card-heading{margin-bottom:18px}
.category-view .category-card{min-height:178px;padding:22px 18px;justify-content:center;gap:14px}.category-view .category-symbol{margin:0;font-size:31px;line-height:1}.category-view .category-card h2{margin:0;font-size:24px;line-height:1.25;overflow-wrap:normal}.category-view .category-grid{margin-top:24px;gap:14px}@media(max-width:600px){.category-view .category-card{min-height:174px;padding:20px 14px}.category-view .category-card h2{font-size:23px}.category-view .category-grid{gap:12px}}
.study-selection .study-option{width:100%;text-align:left;display:block}.study-selection .study-option h2{margin:0 0 18px;font-size:28px}.study-option-meta{display:flex;flex-wrap:wrap;gap:12px 24px;font-size:16px;color:var(--muted);line-height:1.5}.study-state{font-weight:600}.study-option:hover{border-color:#a9bdc7}.verse-progress{margin-top:28px}.verse-progress summary{cursor:pointer;font-size:20px;font-weight:600;min-height:48px;padding:12px 0}.verse-progress .puzzle-list{margin-top:8px}
.tile.hinted:disabled{opacity:1;background:var(--pale-gold);border:2px solid #a57422;color:var(--navy);box-shadow:0 0 0 3px #c89d4340}.tile.hinted .tile-code{border-top-color:#a57422}
.puzzle-help{justify-content:flex-end}.status-line[hidden]{display:none}
.full-text-link{display:inline-block;font-size:17px;line-height:1.5;color:var(--navy);padding:12px 0;min-height:44px;text-underline-offset:4px}.row-copy .completed-reference{display:block;font-size:17px;line-height:1.5;color:var(--navy);margin-top:5px;overflow-wrap:anywhere}
.verse-choice{width:100%;background:transparent;text-align:left;color:var(--ink);border-radius:8px}.verse-choice:hover{background:#e9f0f3}.verse-choice .row-copy{min-width:0}.verse-choice .row-sub{display:block;margin-top:4px;line-height:1.5}

/* Solid, viewport-anchored keyboard. Reserve its measured height in the page. */
:root{--keyboard-height:230px}
body.playing .site-footer{display:none}
body.playing .play-view{padding-bottom:calc(var(--keyboard-height) + 20px)}
.keyboard{position:fixed;inset:auto 0 0;z-index:10;max-width:none;width:100%;margin:0;background:var(--navy);border-top:3px solid var(--gold);box-shadow:0 -5px 20px #173e5926;padding:10px max(12px,calc((100vw - 620px)/2)) max(10px,env(safe-area-inset-bottom));isolation:isolate}
.keyboard-label{color:#f3f6f8;font-size:15px;line-height:1.35;margin:0 0 8px}
.keyboard .key-row{gap:5px;margin-bottom:6px}
.keyboard .key-row:last-child{margin-bottom:0}
.keyboard .key{height:48px;min-height:46px;background:#f5f8fa;color:var(--navy);border-color:#e0e8ed;border-bottom-color:#a8bcc8;font-weight:600}
.keyboard .key.letter-active{background:#f2d38a;color:#47320d;border-color:#f7e3b4;border-bottom-color:#b0832f;box-shadow:inset 0 0 0 1px #b68a37;font-weight:800}
.keyboard .key.letter-active:active{background:#e6bc61}
.keyboard .key.letter-complete:disabled{opacity:1;color:#8ca4b4;background:#2b5069;border-color:#40647b;border-bottom-color:#40647b;box-shadow:none}
.keyboard .key:focus-visible{outline-color:#ffe2a0;outline-offset:2px}
@media(max-width:600px){.keyboard{padding-top:9px}.keyboard .key-row{gap:3px}.keyboard .key{height:46px;font-size:18px}}
@media(max-height:500px) and (orientation:landscape){.keyboard{padding-top:5px;padding-bottom:max(5px,env(safe-area-inset-bottom))}.keyboard-label{display:none}.keyboard .key{height:36px;min-height:36px}.keyboard .key-row{margin-bottom:3px}}

/* Play tools share the dock so the passage begins immediately below its title. */
.keyboard .keyboard-controls{margin:0 0 8px;padding:0;border:0;min-height:44px;flex-wrap:nowrap;gap:8px;color:#f5f8fa;font-size:15px;line-height:1.3}
.keyboard-controls .mistakes{gap:5px;flex-wrap:nowrap}
.keyboard-controls .mistake-dot{background:#557386;width:7px;height:7px;flex-shrink:0}
.keyboard-controls .mistake-dot.used{background:#f29b8b}
.keyboard-controls .hint-button{min-height:40px;padding:6px 10px;white-space:nowrap;flex-shrink:0}
body.playing .play-view{margin-top:10px}
body.playing .puzzle-card{padding-top:18px}
body.playing .puzzle-grid{margin-top:22px}
@media(max-width:380px){.keyboard-controls .mistake-dot{display:none}.keyboard .keyboard-controls{font-size:15px}.keyboard-controls .hint-button{font-size:15px}}
@media(max-height:500px) and (orientation:landscape){.keyboard .keyboard-controls{min-height:34px;margin-bottom:4px}.keyboard-controls .hint-button{min-height:32px}}

/* Puzzle title and verse explanation, matching the approved preview. */
.puzzle-heading>div{min-width:0;width:100%}
.puzzle-heading h1{font-size:clamp(26px,4.5vw,34px);line-height:1.18;margin:0 0 10px;letter-spacing:-.5px;overflow-wrap:break-word}
.puzzle-heading .puzzle-description{font-size:18px;line-height:1.5;color:var(--ink);margin:0 0 8px}
.puzzle-heading .puzzle-meta{font-size:15px;line-height:1.5;margin:0;color:var(--muted)}
@media(max-width:600px){.puzzle-heading h1{font-size:27px}.puzzle-heading .puzzle-description{font-size:17px}}

body.category-screen .site-footer{display:none}

/* Completion screen: explanation first, inline original text for modified puzzles. */
.complete .completion-study{line-height:1.6;margin:0 auto 20px;overflow-wrap:anywhere}
.complete .completion-introduction{border:0;margin:22px 0 0;padding:0}
.complete .completion-introduction p{margin:10px 0 0}
.full-kjv{border-top:1px solid var(--line);padding-top:22px;margin-top:24px}
.full-kjv-label{font-size:17px;font-weight:600;color:var(--navy);margin:0 0 12px}
.full-kjv-text{font-family:Georgia,'Times New Roman',serif;font-size:23px;line-height:1.65;margin:0;white-space:pre-line;overflow-wrap:anywhere}
@media(max-width:600px){.full-kjv-text{font-size:21px}.complete .completion-study{font-size:15px}}

/* Emphasize the study and its main point on completion. */
.complete .completion-panel{background:#fff8e9;border:1px solid #d6bd83;border-left:5px solid #a67b26;border-radius:17px;padding:26px 28px;margin:0 0 26px;box-shadow:0 5px 18px #173e5906}
.complete .completion-panel .completion-study{font-size:22px;line-height:1.5;letter-spacing:.6px;color:var(--navy);margin:0}
.complete .completion-panel .completion-introduction{margin-top:21px;padding-top:20px;border-top:1px solid #e3d2ac}
.complete .completion-panel .completion-introduction .eyebrow{font-size:17px;line-height:1.5;letter-spacing:.7px;color:#765619}
.complete .completion-panel .completion-introduction p{font-size:26px;font-weight:600;line-height:1.5;color:var(--navy);margin-top:12px}
.complete .completion-panel .study-description{margin:16px 0 0}
@media(max-width:600px){.complete .completion-panel{padding:22px 19px}.complete .completion-panel .completion-study{font-size:19px}.complete .completion-panel .completion-introduction .eyebrow{font-size:16px}.complete .completion-panel .completion-introduction p{font-size:23px}}

.completed-puzzle{border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:5px}
.completed-puzzle .completed-puzzle-summary{border-bottom:0;padding-bottom:12px}
.completed-puzzle-actions{display:flex;flex-wrap:wrap;gap:10px;margin-left:53px}
.verse-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;border-radius:10px;padding:10px 17px;font-size:16px;font-weight:600;line-height:1.4}
.verse-action span{font-size:21px;line-height:1}
.verse-action-view{background:var(--navy);color:white;border:1px solid var(--navy)}
.verse-action-replay{background:#fff8e9;color:#765619;border:1px solid #d6bd83}
.verse-action:hover{filter:brightness(.96)}
.verse-preview-dialog{width:min(680px,calc(100% - 28px));max-width:680px;max-height:90dvh;overflow-y:auto}
.verse-preview-dialog .completed-verse-preview{margin:20px 0 0;max-width:none}
.verse-preview-dialog .verse-reveal,.verse-preview-dialog .full-kjv-text{color:var(--ink)}
.verse-preview-dialog .verse-reference{color:var(--navy)}
@media(max-width:600px){.completed-puzzle-actions{margin-left:0}.verse-action{flex:1;padding:10px 12px}.completed-puzzle-summary{flex-wrap:wrap}.completed-puzzle-summary .row-status{margin-left:auto}.verse-preview-dialog{padding:22px 18px}.verse-preview-dialog .study-card{padding:20px 16px}}

.verse-preview-dialog .completion-panel{padding:18px 16px;margin-bottom:18px}
.verse-preview-dialog .completion-panel .completion-study{font-size:18px}
.verse-preview-dialog .completion-panel .completion-introduction{margin-top:15px;padding-top:15px}
.verse-preview-dialog .completion-panel .completion-introduction p{font-size:22px}
.verse-preview-dialog .verse-reveal,.verse-preview-dialog .full-kjv-text{font-size:21px}
.verse-preview-dialog .verse-reference{font-size:25px}

/* Completion hierarchy: quiet position, gold main point, no extra label. */
.complete .completion-panel .completion-position{font-size:17px;font-weight:400;color:#64747c;letter-spacing:0;line-height:1.5;margin:8px 0 0;text-transform:none}
.complete .completion-panel .completion-introduction p{color:#8c6a2a}
@media(max-width:600px){.complete .completion-panel .completion-position{font-size:16px}}

/* One-screen first-visit guide; available again through the help button. */
.quick-start-dialog{width:min(440px,calc(100% - 24px));max-width:440px;max-height:calc(100dvh - 24px);padding:22px;overflow-y:auto}
.quick-start-dialog .dialog-heading{margin-bottom:8px}
.quick-start-dialog .dialog-heading h2{font-size:30px}
.quick-start-dialog p,.quick-start-dialog li{font-size:17px;line-height:1.45}
.quick-start-lead{color:var(--muted);margin-bottom:14px}
.quick-start-example{padding:12px;border:1px solid var(--line);border-radius:14px;background:#edf3f5;text-align:center;margin-bottom:16px}
.quick-start-example .eyebrow{font-size:15px;letter-spacing:1px}
.quick-start-tiles{display:flex;justify-content:center;gap:9px;margin:8px 0}
.quick-start-tile{width:49px;border-radius:7px;background:var(--paper);border:1px solid #b9cbd4;display:flex;flex-direction:column;color:var(--navy)}
.quick-start-tile b{font-size:27px;line-height:1.35;padding:2px;font-weight:600}
.quick-start-tile>span{font-size:16px;line-height:1.3;border-top:2px solid #b9cbd4;padding:3px}
.quick-start-empty{background:var(--pale-gold);border-color:var(--gold)}
.quick-start-empty b{color:#8c6a2a}
.quick-start-example p{margin:5px 0 0}
.quick-start-steps{padding-left:23px;margin:0 0 17px}
.quick-start-steps li{padding-left:3px;margin-bottom:10px}
.quick-start-actions{text-align:center}
.quick-start-actions .text-button{margin:4px auto 0;padding:8px}
@media(max-height:700px){.quick-start-dialog{padding:16px}.quick-start-example{padding:8px;margin-bottom:12px}.quick-start-steps li{margin-bottom:7px}.quick-start-dialog p,.quick-start-dialog li{font-size:16px}.quick-start-example .eyebrow{display:none}}

/* Keep punctuation prominent and aligned with the letter area at every size. */
.punctuation{font-size:calc(var(--letter) * 1.4);font-weight:700;line-height:calc(var(--letter) * 1.05);height:var(--tile-height);padding:7px 0 0;color:var(--navy);flex-shrink:0}

/* Compact completion panel and a single acknowledgement row below it. */
.complete .completion-panel{padding:18px 20px;margin-bottom:18px}
.complete .completion-panel .completion-introduction{margin-top:12px;padding-top:12px}
.complete .completion-panel .completion-introduction p{margin-top:0}
.completion-status{display:flex;align-items:center;justify-content:center;gap:12px;margin:0 0 18px}
.completion-status .success-icon{width:44px;height:44px;font-size:25px;flex-shrink:0;margin:0}
.complete .completion-status h1{font-size:clamp(26px,5vw,34px);line-height:1.15;margin:0;letter-spacing:-.7px}
.complete .completion-status+.study-card{margin-top:0}
@media(max-width:600px){.complete .completion-panel{padding:16px}.complete .completion-panel .completion-introduction{margin-top:10px;padding-top:10px}}

/* Completed verses stay available from the welcome screen. */
.completed-home-button{margin-top:14px;display:flex;align-items:center;justify-content:center;gap:12px;min-height:52px;border:1px solid var(--gold);background:var(--paper)}
.completed-count{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;padding:0 8px;border-radius:20px;background:var(--pale-gold);color:var(--navy);font-size:15px}
.library-intro{color:var(--muted);font-size:18px;line-height:1.6;margin:0 0 26px}
.library-study{margin-bottom:24px}.library-study h2{font-family:Georgia,serif;font-size:27px;line-height:1.3;margin:0 0 16px}
.library-study .puzzle-list{list-style:none;padding:0;margin:0}.library-study .completed-puzzle:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.library-reference{display:block;font-size:20px;font-weight:600;margin-bottom:5px}.library-study .row-sub{line-height:1.5}
.library-empty{text-align:center}.library-empty .book-icon{margin:0 auto 18px}.library-empty h2{font-family:Georgia,serif;font-size:28px;margin:0 0 12px}.library-empty p{color:var(--muted);font-size:18px;line-height:1.6;margin:0 0 24px}
@media(max-width:600px){.library-study{padding:22px 18px}.library-study h2{font-size:25px}.library-reference{font-size:18px}}

.home-study-switch{margin-top:14px;min-height:52px;border:1px solid var(--line);background:var(--paper);display:flex;align-items:center;justify-content:center;gap:10px}
.home-help{display:block;margin:12px auto 0;min-height:46px;padding:10px 22px;text-decoration:underline;text-underline-offset:4px}
.home .home-help+.sample-note{margin-top:12px}

.home .home-help{display:block;width:100%;margin:14px 0 0;padding:15px 22px;min-height:52px;background:#e1bf70;border:1px solid #b58b32;color:var(--navy);font-weight:700;text-decoration:none;border-radius:12px}
.home .home-help:hover{background:#d8b15e}
.home .home-help:focus-visible{outline:3px solid var(--navy);outline-offset:3px}

/* Medium keeps each word together; over-wide words are fitted by the grid. */
:root[data-puzzle-size="2"] .puzzle-grid .word{flex-wrap:nowrap}

/* Approved returning-player actions. */
.home-continue{flex-direction:column;gap:5px;padding-top:15px;padding-bottom:15px}
.home-action-label{display:flex;align-items:center;justify-content:center;gap:14px;line-height:1.35}
.home-verse-position{display:block;font-size:16px;line-height:1.35;font-weight:400;color:#e1ebf1}
.returning-home .home-study-switch,.returning-home .completed-home-button{background:#e1bf70;border:1px solid #b58b32;color:var(--navy);font-weight:700;min-height:58px}
.returning-home .home-study-switch:hover,.returning-home .completed-home-button:hover{background:#d8b15e}
.home .home-help-link{display:block;width:auto;margin:17px auto 0;padding:10px 18px;min-height:46px;border:0;border-radius:0;background:transparent;color:var(--navy);font-weight:400;text-decoration:underline;text-underline-offset:4px}
.home .home-help-link:hover{background:transparent;color:#536d7c}
@media(max-width:400px){.home-action-label{gap:8px;font-size:16px}.home-continue{padding-left:12px;padding-right:12px}.home-verse-position{font-size:15px}}

.study-categories{margin-top:14px;min-height:58px;background:#e1bf70;border:1px solid #b58b32;color:var(--navy);font-weight:700}
.study-categories:hover{background:#d8b15e}

/* Emphasize the saved study when browsing categories. */
.continue-banner{display:flex;flex-direction:column;align-items:stretch;gap:18px;padding:24px;border:2px solid #c39a43;border-left:6px solid #b58b32;border-radius:18px;background:#fff7e6;box-shadow:0 5px 18px #815f2712;font-size:clamp(18px,2.5vw,22px);font-weight:700;line-height:1.45}
.continue-banner .text-button{display:flex;align-items:center;justify-content:center;width:100%;min-height:58px;margin:0;padding:16px 20px;border:1px solid #b58b32;border-radius:12px;background:#e1bf70;color:var(--ink);font-size:18px;font-weight:800;line-height:1.4;text-decoration:none;white-space:normal;text-align:center}
.continue-banner .text-button:hover{background:#d8b15a}
@media(max-width:450px){.continue-banner{padding:20px;gap:16px}.continue-banner .text-button{font-size:17px}}

.failure-recovery{padding:4px 0 12px;color:#fff;text-align:center}.failure-recovery p{font-size:17px;line-height:1.45;margin:8px 0 16px}.failure-recovery>div{display:flex;gap:12px}.failure-recovery button{flex:1;min-height:52px}.failure-recovery .primary{background:#e1bf70;color:#173e59;border:1px solid #b58b32}.failure-recovery .secondary{background:#fff;color:#173e59}#dialog-title:focus{outline:none}

/* A study milestone gets its own celebration; individual verses keep their layout. */
.study-celebration{position:relative;isolation:isolate;overflow:hidden;padding:12px 8px 0;max-width:700px;margin-top:24px}
.study-medallion{position:relative;display:grid;place-items:center;width:230px;height:230px;margin:0 auto 12px;color:#c69a38}
.medallion-rays{position:absolute;inset:0;width:100%;height:100%;animation:study-rays 3.6s ease-out both}
.medallion-disc{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:174px;height:174px;border-radius:50%;border:4px solid #d6aa49;background:radial-gradient(circle at 35% 25%,#fff1bf,#e4bc60 55%,#b98729);box-shadow:inset 0 0 0 5px #f9dfa0,0 6px 20px #926c2526;animation:study-medal 3.6s ease-out both}
.medallion-disc>svg{width:86px;height:86px;color:#173e59;fill:#fff8e5;stroke-width:1.2}
.medallion-check{font-size:45px;font-weight:800;color:#815d1c;line-height:1;margin:0 0 -5px}
.study-celebration h1{font-size:clamp(36px,7vw,52px);line-height:1.1;margin:14px 0 18px;letter-spacing:-1px}
.celebration-title{font-family:Georgia,serif;font-size:clamp(25px,5vw,34px);line-height:1.3;margin:0 auto 18px;color:var(--ink)}
.celebration-count{display:table;margin:0 auto;padding:10px 28px;border:1px solid #d9b86a;border-radius:999px;background:#f9e8b7;color:#79591e;font-size:21px;font-weight:700}
.celebration-tagline{font-size:19px;line-height:1.5;margin:18px 0 28px;color:var(--muted)}
.study-celebration .celebration-verse{border-color:#dfc788;background:#fffdf7;margin:0;padding:30px 26px}
.celebration-verse>.eyebrow{font-size:15px;letter-spacing:2.5px;margin:0 0 20px}
.celebration-verse .verse-reveal{font-size:clamp(23px,4vw,30px);line-height:1.55}
.celebration-verse .verse-reference{font-size:25px;margin-top:20px}
.celebration-verse .verse-version{margin-top:8px}
.celebration-insight{font-family:Georgia,serif;color:#8b6828;font-size:20px;line-height:1.5;border-top:1px solid #dfc788;padding-top:20px;margin:22px 0 0}
.celebration-actions{display:grid;gap:14px;margin:26px 0 0}.celebration-actions .primary,.celebration-actions .secondary{min-height:58px;font-size:18px;white-space:normal}
.celebration-actions .secondary{background:#e1bf70;color:#173e59;border:1px solid #b58b32}.celebration-actions .secondary:hover{background:#d8b15a}
.study-confetti{position:absolute;inset:0 0 auto;height:370px;pointer-events:none;z-index:-1;overflow:hidden}
.study-confetti i{position:absolute;top:-20px;left:var(--x);width:8px;height:15px;background:#c99b37;animation:study-confetti 3.6s var(--delay) ease-out both}
.study-confetti i:nth-child(3n){background:#173e59;width:7px;height:9px}.study-confetti i:nth-child(4n){background:#e5c56f;border-radius:3px;width:6px;height:24px}
@keyframes study-confetti{0%{transform:translate(0,-20px) rotate(0);opacity:0}10%{opacity:1}75%{opacity:.9}100%{transform:translate(var(--drift),380px) rotate(var(--turn));opacity:0}}
@keyframes study-medal{0%{transform:scale(.8);opacity:0}18%{transform:scale(1.06);opacity:1}35%{transform:scale(1)}65%{box-shadow:inset 0 0 0 5px #f9dfa0,0 0 32px #d6aa4955}100%{transform:scale(1)}}
@keyframes study-rays{0%{transform:scale(.8) rotate(-12deg);opacity:0}25%{opacity:1}100%{transform:scale(1) rotate(0);opacity:1}}
@media(max-width:450px){.study-medallion{width:200px;height:200px}.medallion-disc{width:152px;height:152px}.medallion-disc>svg{width:75px;height:75px}.study-celebration{padding-left:0;padding-right:0}.study-celebration .celebration-verse{padding:26px 20px}.celebration-actions .primary,.celebration-actions .secondary{padding:15px 12px;font-size:17px}}
@media(prefers-reduced-motion:reduce){.study-confetti{display:none}.medallion-disc,.medallion-rays{animation:none}}

.preview-notice{position:relative;margin:0 0 12px;font-size:15px;line-height:1.5;color:var(--muted)}#preview-celebration{margin-top:15px;background:#e1bf70;color:#173e59;border-color:#b58b32;min-height:50px}.quick-start-actions>.setting-note{text-align:center}

/* Illustrated Bible and gold seal, matching the approved completion concept. */
.study-medallion{width:290px;height:290px;margin-bottom:12px}
.medallion-art{display:block;position:relative;width:86%;height:auto;object-fit:contain;filter:drop-shadow(0 6px 8px #8a681e20);animation:illustrated-seal 3.6s ease-out both}
@keyframes illustrated-seal{0%{transform:scale(.8);opacity:0}18%{transform:scale(1.06);opacity:1}35%,100%{transform:scale(1);opacity:1}}
@media(max-width:450px){.study-medallion{width:260px;height:260px}}
@media(prefers-reduced-motion:reduce){.medallion-art{animation:none}}

/* A roomier QWERTY keyboard uses the tablet width instead of a narrow central strip. */
.keyboard{--key-gap:clamp(5px,1vw,12px);padding:16px max(12px,calc((100vw - 980px)/2)) max(16px,env(safe-area-inset-bottom))}
.keyboard .keyboard-controls{margin-bottom:16px;min-height:46px;font-size:17px}
.keyboard .key-row{gap:var(--key-gap);margin-bottom:14px}
.keyboard .key-row:nth-of-type(2){padding:0}
.keyboard .key-row:nth-of-type(3){padding:0 calc(5% + var(--key-gap)*.05)}
.keyboard .key-row:nth-of-type(4){padding:0 calc(15% + var(--key-gap)*.15)}
.keyboard .key{max-width:none;height:68px;min-height:60px;padding:0;border-radius:12px;font-size:26px;line-height:1;border-bottom-width:3px;user-select:none;-webkit-user-select:none}
.keyboard-controls .hint-button{min-height:46px;padding:9px 14px;font-size:17px}
@media(max-width:600px){.keyboard{padding:12px 8px max(14px,env(safe-area-inset-bottom))}.keyboard .keyboard-controls{margin-bottom:12px;min-height:44px;font-size:15px}.keyboard-controls .hint-button{min-height:42px;padding:7px 10px;font-size:15px}.keyboard .key{height:56px;min-height:56px;font-size:22px;border-radius:9px}.keyboard .key-row{margin-bottom:12px}}
@media(max-height:500px) and (orientation:landscape){.keyboard{padding-top:7px;padding-bottom:max(7px,env(safe-area-inset-bottom))}.keyboard .keyboard-controls{min-height:34px;margin-bottom:7px}.keyboard-controls .hint-button{min-height:34px;padding:4px 10px}.keyboard .key{height:42px;min-height:42px;font-size:22px}.keyboard .key-row{margin-bottom:8px}}

/* Phone comfort is the priority: native-style spacing with taller tap areas. */
@media(max-width:600px) and (orientation:portrait){.keyboard{--key-gap:6px;padding-left:6px;padding-right:6px;padding-top:12px;padding-bottom:max(14px,env(safe-area-inset-bottom))}.keyboard .key{height:48px;min-height:48px;font-size:24px;font-weight:500;border-radius:10px}.keyboard .key-row{margin-bottom:14px}.keyboard .keyboard-controls{margin-bottom:14px}}

dialog.faq-dialog{width:min(600px,calc(100% - 28px))}.faq-howto{margin:4px 0 22px;min-height:52px}.faq-list details{border-top:1px solid var(--line);padding:0}.faq-list details:last-child{border-bottom:1px solid var(--line)}.faq-list summary{cursor:pointer;padding:18px 4px;font-size:18px;font-weight:600;line-height:1.45;color:var(--navy)}.faq-list p{font-size:17px;line-height:1.65;margin:0;padding:0 4px 20px}.faq-list a{color:#173e59;text-underline-offset:3px}.faq-list summary:focus-visible{outline:3px solid #ac7b20;outline-offset:2px}
