/* Entry, and the loading title. The boot ground matches the painted valley and the iOS launch colour. */
:root{--entry-paper:#f4f1e8;--entry-ink:#193b30;--entry-muted:#57685e;--entry-line:#d4d8cb;--entry-accent:#a5753c;--boot-ground:#827231}
html{font-size:17px;font:-apple-system-body}
html,body{background:var(--entry-paper)}
body.app-booting{background:var(--boot-ground)}
html.entry-active,body.entry-active,#modal.entry-modal,#modal.entry-modal #sheet{touch-action:pan-y pinch-zoom}
body.app-booting>#cv,body.app-booting>#hud,body.app-booting>#bar,body.app-booting>#sub,body.app-booting>#goal,body.app-booting>#mini,body.app-booting>#side,body.app-booting>#rside,body.app-booting>#panel,body.app-booting>#toasts{visibility:hidden}
#entry-boot{position:fixed;inset:0;z-index:30;background:var(--boot-ground) center/cover no-repeat;background-image:url("boot-valley.webp");color:#fff6e4;display:grid;place-content:center;gap:16px;text-align:center;font-size:1rem;padding:calc(24px + env(safe-area-inset-top,0px)) 24px calc(24px + env(safe-area-inset-bottom,0px));line-height:1.5}
#entry-boot[hidden]{display:none}
.entry-progress{width:24px;height:24px;border:2px solid var(--entry-line);border-top-color:var(--entry-ink);border-radius:50%;margin:auto;animation:entry-spin .9s linear infinite}
@keyframes entry-spin{to{transform:rotate(360deg)}}
#entry-boot button,#entry-boot a{min-height:48px;padding:12px 20px;font:600 1rem system-ui,-apple-system,sans-serif;color:var(--entry-ink);border:1px solid var(--entry-line);border-radius:14px;background:transparent;text-decoration:none}
body.entry-active>#cv,body.entry-active>#hud,body.entry-active>#bar,body.entry-active>#sub,body.entry-active>#goal,body.entry-active>#mini,body.entry-active>#side,body.entry-active>#rside,body.entry-active>#panel,body.entry-active>#toasts{visibility:hidden}
#modal.entry-modal{inset:0;width:100%;height:100%;background:var(--entry-paper);align-items:stretch;color:var(--entry-ink)}
#modal.entry-modal #sheet{width:100%;max-width:none;height:100%;max-height:none;border-radius:0;margin:0;padding:0;background:var(--entry-paper);overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}
.entry-shell{max-width:1100px;min-height:100%;margin:auto;display:flex;flex-direction:column;padding:calc(24px + env(safe-area-inset-top,0px)) max(24px,env(safe-area-inset-right,0px)) calc(16px + env(safe-area-inset-bottom,0px)) max(24px,env(safe-area-inset-left,0px));color:var(--entry-ink);font-family:-apple-system,BlinkMacSystemFont,system-ui,sans-serif;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.entry-brand{font-size:.75rem;font-weight:650;letter-spacing:.16em;text-transform:uppercase;display:flex;align-items:center;gap:10px;color:var(--entry-muted)}
.entry-brand svg{width:32px;height:24px;flex-shrink:0}
.entry-layout{display:grid;align-items:center;flex:1;gap:26px;padding-top:20px}
.entry-art{width:100%;height:clamp(112px,23dvh,220px);max-height:31dvh;min-height:100px;display:block;border-radius:20px;overflow:hidden;background:#e6e8da}
.entry-copy{max-width:460px}
#sheet .entry-eyebrow{font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;color:var(--entry-muted);font-weight:650;margin:0 0 12px}
#sheet .entry-title{font-family:ui-serif,Georgia,serif;font-size:clamp(2.45rem,11vw,3.75rem);line-height:1.02;font-weight:500;letter-spacing:-.045em;margin:0 0 18px;color:var(--entry-ink);outline:none}
#sheet .entry-description{font-size:1rem;line-height:1.55;color:var(--entry-muted);margin:0;max-width:33ch}
#sheet .entry-shell.difficulty .entry-title{font-size:1.75rem;line-height:1.15;margin:0 0 6px}
#sheet .entry-shell.difficulty .entry-eyebrow,#sheet .entry-shell.difficulty .entry-brand{font-size:13px;margin-bottom:4px}
.entry-shell.difficulty{padding-top:calc(10px + env(safe-area-inset-top,0px));padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))}
.entry-shell.difficulty .entry-description{font-size:15px;line-height:1.3;margin-bottom:6px}
.entry-shell.difficulty .entry-layout{align-items:start;padding-top:0;gap:6px}
.entry-shell.difficulty .entry-actions{margin-top:4px;gap:4px}
.entry-shell.difficulty .entry-button{min-height:48px;padding:12px 16px}
.diff-cards{display:flex;flex-direction:column;gap:4px}
.diff-card{display:grid;grid-template-columns:36px 1fr 24px;gap:8px;align-items:start;width:100%;text-align:left;padding:8px 10px;border-radius:16px;border:2px solid var(--entry-line);background:#fffdf8;color:var(--entry-ink);font:500 15px/1.35 -apple-system,BlinkMacSystemFont,system-ui,sans-serif;box-shadow:inset 0 0 0 1px #f3ead8}
.diff-card.is-on{border-color:var(--entry-ink);background:#fff6e4;box-shadow:0 0 0 3px var(--entry-accent)}
.diff-icon{width:36px;height:36px;border-radius:12px;background:#efe4cc;display:grid;place-items:center}
.diff-icon svg{width:28px;height:28px;display:block}
.diff-copy{min-width:0;display:flex;flex-direction:column;gap:1px}
.diff-name{font-size:18px;font-weight:700;line-height:1.2}
.diff-rec{align-self:flex-start;margin:1px 0;padding:1px 8px;border-radius:999px;border:1px solid var(--entry-ink);font-size:13px;font-weight:700;letter-spacing:.02em}
.diff-vibe{font-size:15px;color:var(--entry-ink)}
.diff-card ul{margin:2px 0 0;padding-left:16px;font-size:14px;line-height:1.25}
.diff-card li{margin:0}
.diff-tick{width:24px;height:24px;border:2px solid var(--entry-ink);border-radius:50%;display:grid;place-items:center;margin-top:2px}
.diff-tick-mark{font-size:15px;font-weight:700;line-height:1;color:#fff}
.diff-card.is-on .diff-tick{background:var(--entry-ink)}
.diff-card:focus-visible{outline:3px solid var(--entry-accent);outline-offset:3px}
.diff-setting{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;width:100%;margin:0 0 12px;padding:12px 12px 12px 14px;min-height:44px;text-align:left;border-radius:14px;border:2px solid #193b30;background:#fffdf8;color:#193b30;font:600 16px/1.3 -apple-system,BlinkMacSystemFont,system-ui,sans-serif}
.diff-setting-copy{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.diff-setting-kicker{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.diff-setting-value{font-size:18px}
.diff-setting-vibe{font-size:15px;font-weight:500}
.diff-setting-change{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;min-height:36px;padding:6px 12px;border-radius:999px;background:#193b30;color:#fff;font-size:15px;font-weight:700}
.diff-setting-chevron{font-size:20px;line-height:1}
.diff-confirm{width:100%;min-height:48px;margin:0 0 8px;padding:12px 14px;border:0;border-radius:14px;background:#193b30;color:#fff;font:600 16px/1.3 -apple-system,BlinkMacSystemFont,system-ui,sans-serif}
.diff-confirm.secondary{background:transparent;color:#193b30;border:2px solid #193b30}
@media(prefers-reduced-motion:reduce){.diff-card,.diff-setting,.diff-confirm{transition:none}}
.entry-actions{display:flex;flex-direction:column;gap:8px;margin-top:24px}
.entry-button{width:100%;min-height:52px;border:0;border-radius:14px;background:var(--entry-ink);color:#fff;font:600 1rem/1.35 -apple-system,BlinkMacSystemFont,system-ui,sans-serif;padding:15px 20px;cursor:pointer;box-shadow:none}
.entry-button.secondary{background:transparent;color:var(--entry-ink);font-weight:550}
.entry-button:hover{filter:brightness(1.08)}
.entry-button:focus-visible,.entry-footer a:focus-visible{outline:3px solid var(--entry-accent);outline-offset:4px}
.entry-trust{font-size:.8rem;line-height:1.5;color:var(--entry-muted);margin:18px 0 0}
.entry-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;font-size:.75rem;line-height:1.5;color:var(--entry-muted);padding-top:24px;margin-top:16px;border-top:1px solid var(--entry-line)}
.entry-footer a{display:inline-flex;align-items:center;min-height:44px;color:var(--entry-muted);text-decoration:none;padding:4px 0}
.entry-footer p{margin:0;display:flex;align-items:center;min-height:44px}
.entry-footer nav{display:flex;gap:18px}
.entry-steps{list-style:none;margin:4px 0 0;padding:0;counter-reset:entry-step}
.entry-steps li{counter-increment:entry-step;position:relative;padding:16px 0 16px 44px;border-bottom:1px solid var(--entry-line)}
.entry-steps li::before{content:counter(entry-step,decimal-leading-zero);position:absolute;left:0;top:18px;font-size:.75rem;letter-spacing:.08em;color:var(--entry-accent);font-weight:650}
.entry-steps h2{font-size:1rem;line-height:1.4;margin:0 0 4px;font-weight:650}
.entry-steps p{font-size:.9rem;line-height:1.5;margin:0;color:var(--entry-muted)}
.entry-shell.help .entry-title{font-size:clamp(2rem,8vw,2.85rem)}
.entry-shell.help .entry-layout{padding-top:28px;align-content:center}
@media(min-width:760px){.entry-shell{padding-left:48px;padding-right:48px}.entry-layout{grid-template-columns:1.1fr 1fr;gap:56px;padding:40px 0}.entry-art{max-height:560px;min-height:360px;height:58dvh}.entry-copy{padding:12px 0}.entry-title{font-size:64px}.entry-shell.help .entry-layout{grid-template-columns:1fr;max-width:560px;width:100%;margin:auto}.entry-footer{margin-top:0}}
@media(max-height:680px) and (max-width:759px){.entry-shell{padding-top:calc(16px + env(safe-area-inset-top,0px))}.entry-art{max-height:20dvh;min-height:76px}.entry-layout{gap:18px}.entry-actions{margin-top:16px}.entry-footer{padding-top:12px;margin-top:12px}}
.boot-card{width:min(440px,100%);display:flex;flex-direction:column;align-items:center;text-align:center;color:#fff6e4}
.boot-icon{width:30vw;max-width:220px;height:auto;border-radius:22%;box-shadow:0 14px 32px rgba(28,16,6,.5);display:block}
.boot-title{font-family:ui-serif,Georgia,serif;font-size:clamp(2.5rem,11vw,3.5rem);line-height:1.02;font-weight:500;letter-spacing:-.04em;margin:18px 0 0;color:#fff6e4;text-shadow:0 2px 10px rgba(42,24,8,.55)}
.boot-credit{margin:10px 0 0;font-size:.8rem;font-weight:650;letter-spacing:.16em;text-transform:uppercase;color:#f3e2c4;text-shadow:0 1px 6px rgba(42,24,8,.5)}
.boot-panel{width:min(300px,84vw);margin-top:22px;padding:14px 16px 12px;border-radius:16px;background:rgba(36,24,12,.46)}
.boot-bar{width:100%;height:8px;margin:0;border-radius:999px;background:rgba(255,246,228,.28);overflow:hidden}
.boot-bar span{display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#2f6b45,#e2b15a)}
.boot-tips{position:relative;width:100%;height:3.2em;margin:12px 0 0;font-size:.95rem;line-height:1.45;color:#f6edd8}
.boot-tips span{position:absolute;left:0;right:0;top:0;opacity:0;animation:boot-tip 18s infinite}
.boot-tips span:nth-child(2){animation-delay:4.5s}
.boot-tips span:nth-child(3){animation-delay:9s}
.boot-tips span:nth-child(4){animation-delay:13.5s}
@keyframes boot-tip{0%,20%{opacity:1}25%,100%{opacity:0}}
#entry-boot{transition:opacity .4s ease}
#entry-boot.is-done{opacity:0}
@media(prefers-reduced-motion:reduce){.entry-progress{animation:none;border-color:var(--entry-ink)}.entry-button{transition:none}.boot-tips span{animation:none;opacity:0}.boot-tips span:first-child{opacity:1}#entry-boot{transition:none}}
@media(prefers-contrast:more){:root{--entry-muted:#31483c;--entry-line:#788b7b}.entry-button{outline:1px solid currentColor}}
@media(forced-colors:active){.entry-button{border:2px solid ButtonText}.entry-art{forced-color-adjust:auto}}
