:root{--paper:#eee9dc;--cream:#fffaf0;--ink:#3e3329;--muted:#82765f;--line:#d4c9b3;--mint:#397b65;--gold:#cc9c37;--red:#b96b50;--blue:#478c9c}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at top,#faf6e9,var(--paper));color:var(--ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}button,input,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.42}button,a{touch-action:manipulation}a{color:var(--mint)}button:focus-visible,a:focus-visible,canvas:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--gold);outline-offset:3px}[hidden]{display:none!important}.shell{max-width:1200px;margin:auto;padding:16px 26px}header{display:flex;justify-content:space-between;align-items:center;padding-bottom:8px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:8px;align-items:center;font-size:12px;font-weight:850;letter-spacing:1.5px;text-decoration:none;color:var(--ink)}.brand img{width:42px;height:42px;object-fit:cover}.brand small{display:block;font-size:8px;color:var(--muted);margin-top:4px}.header-actions{display:flex;gap:7px;align-items:center}.small{border:1px solid var(--line);border-radius:9px;padding:10px 12px;background:#fffaf080;font-size:11px;font-weight:750}.small:hover{background:#fffaf0}.wallet{display:flex;gap:8px;align-items:center}.coin{display:inline-flex;align-items:center;justify-content:center;font-style:normal;background:linear-gradient(#f9df92,#d0a343);border:2px solid #9d762d;box-shadow:inset 0 0 0 2px #f3d78b;width:23px;height:23px;border-radius:50%;color:#69501f;font-size:12px;font-weight:900}.title-row{display:flex;justify-content:space-between;align-items:center;padding:15px 0}.eyebrow{font-size:9px;font-weight:800;letter-spacing:1.6px;color:var(--muted)}h1{font-size:clamp(32px,4vw,49px);margin:0;letter-spacing:-2px;font-weight:900;line-height:1}h1 span{color:var(--gold)}.subtitle{font-size:11px;color:var(--muted);margin:7px 0 0}.machine-teaser{background:#e6dcc5;border:1px solid #c6b586;border-radius:12px;display:grid;grid-template-columns:auto auto;gap:3px 9px;padding:10px 13px;text-align:left}.machine-teaser>span{grid-row:span 2;font-size:30px;color:var(--gold)}.machine-teaser strong{font-size:16px}.machine-teaser small{font-size:9px;color:var(--muted)}.modes{display:flex;gap:6px;border-bottom:1px solid var(--line);margin-bottom:12px}.modes button{border:0;border-bottom:3px solid transparent;background:none;padding:10px 15px;font-size:12px;color:var(--muted)}.modes button.active{border-bottom-color:var(--mint);color:var(--mint);font-weight:850}.selector{display:flex;gap:10px;align-items:center;justify-content:space-between;max-width:880px;margin:0 auto 10px}.selector span{font-size:10px;color:var(--muted)}#layout-select{display:flex;gap:4px}#layout-select .selected{background:var(--mint);color:white}.layout{display:grid;grid-template-columns:minmax(0,650px) 240px;justify-content:center;gap:20px}.mission-bar{display:flex;justify-content:space-between;gap:8px;min-height:27px;padding:0 5px 7px;font-size:11px;font-weight:700;color:var(--mint)}#challenge{color:var(--muted);font-size:10px}.board{border:1px solid #c2bba6;border-radius:19px;overflow:hidden;position:relative;background:var(--cream);box-shadow:0 5px 0 #dbd4c3,0 15px 40px #52401e14}.hud{display:flex;justify-content:space-around;align-items:flex-start;padding:12px 15px 0;text-align:center}.hud small{display:block;font-size:8px;letter-spacing:1px;font-weight:800;color:var(--muted)}.hud strong{font-size:25px;line-height:1.3;font-variant-numeric:tabular-nums}.inline-next canvas{width:100px;height:45px;margin-top:-4px}#canvas{display:block;width:100%;height:auto;max-height:min(66vh,720px);object-fit:contain;touch-action:none}.rotation-row{display:flex;align-items:center;justify-content:space-between;padding:0 16px 7px;gap:8px}.rotation-row .small{font-size:25px;padding:4px 20px;min-width:65px;line-height:1.2}.rotation-row span{font-size:10px;color:var(--muted);text-align:center}.controls{display:flex;gap:8px;padding:0 16px 9px}.action{border:1px solid var(--line);border-radius:11px;padding:13px 10px;min-height:49px;font-size:11px;font-weight:850}.primary{background:var(--mint);color:#fff;border-color:#2b624f;box-shadow:0 3px 0 #275e4c}.secondary{background:#e9e0cc}.gold{background:#edd08d;border-color:#c6a45c;color:#5d481f}.water{background:#e5eff0;border-color:#a3c3c9;min-width:75px}.water.selected{background:var(--blue);color:white}.controls #drop{flex:1.3}.controls #hold{flex:1}.controls small{display:block;font-size:8px;font-weight:600;opacity:.8;margin-bottom:3px}.mini-row{display:flex;justify-content:space-between;align-items:center;gap:9px;padding:0 17px 11px}.text-button{border:0;background:none;font-size:9px;font-weight:750;color:var(--muted);padding:7px 0}.keyboard{text-align:center;font-size:9px;color:var(--muted)}.lesson{margin:0 16px 9px;padding:8px 10px;border:1px solid #d2b974;border-radius:8px;background:#fff0bd;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px}.lesson .text-button{padding:0 4px;color:var(--mint);font-size:17px}.fact-strip{display:flex;gap:12px;border:1px solid var(--line);border-radius:12px;padding:13px 16px;background:#e7e5cd;min-height:86px;margin-top:12px}.fact-mark{display:grid;place-items:center;background:#d2d4ad;color:#657047;border-radius:50%;width:26px;height:26px;flex:0 0 26px;font-weight:850}.fact-strip small{font-size:9px;font-weight:800;color:#69704d}.fact-strip p{font-size:11px;line-height:1.5;margin:5px 0}.fact-strip a{font-size:9px;color:#69704d}aside{padding-top:27px;display:flex;flex-direction:column;gap:13px}.side-card{border:1px solid var(--line);border-radius:12px;padding:16px;background:#fffaf080}.side-card h3{font-size:24px;letter-spacing:-.6px;margin:8px 0}.side-card p{font-size:11px;line-height:1.5;color:var(--muted)}.side-card .small{width:100%;margin-top:7px}.queue-card canvas{width:100%;display:block}.progress{height:5px;background:#dcd2ba;border-radius:4px;overflow:hidden}.progress i{display:block;height:100%;background:var(--gold);width:0}#discovery-icons{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}#discovery-icons span{font-size:19px;opacity:.25;filter:grayscale(1)}#discovery-icons .found{opacity:1;filter:none}.heckler{text-align:center}.heckler canvas{max-width:150px}.heckler p{font-size:12px;line-height:1.5;font-style:italic;color:var(--muted);margin:0}.start-cover{position:absolute;inset:35% 25px auto;z-index:3;text-align:center;padding:24px;border:1px solid #cbbfa5;border-radius:15px;background:#fffaf0f5;box-shadow:0 5px 25px #5b4c2422}.start-cover h2{font-size:34px;line-height:1.03;letter-spacing:-1px;margin:10px 0}.start-cover p{font-size:12px;line-height:1.5;color:var(--muted)}.start-cover .action{width:100%}.note{font-size:10px!important;line-height:1.5!important;color:var(--muted)}.overlay{position:absolute;inset:0;z-index:5;background:#fffaf0f7;display:flex;flex-direction:column;justify-content:center;align-items:center;overflow-y:auto;text-align:center;padding:24px}.overlay>*{flex-shrink:0}.overlay h2{font-size:34px;letter-spacing:-1px;margin:12px 0}.overlay #result-score{font-size:64px;line-height:1;color:var(--mint)}.overlay p{font-size:12px;line-height:1.5;margin:8px 0;max-width:420px}.overlay .reward{color:#a07623;font-weight:850}#result-roast{font-style:italic}.result-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;width:100%;margin-top:12px}.result-buttons .action{flex:1;min-width:40%}.share-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:14px}#rescue{width:100%;max-width:370px;margin-top:10px}#pause{z-index:7}#resume{min-width:200px}.celebration{position:absolute;left:50%;top:22%;transform:translateX(-50%);z-index:3;background:#315f49dd;color:#fff6d4;border-radius:13px;padding:15px 22px;text-align:center;pointer-events:none;box-shadow:0 0 60px #eed58d77}.celebration span{display:block;color:#fbd36c;font-size:34px}.celebration strong{font-size:21px;white-space:nowrap}.modal{position:fixed;inset:0;background:#f5f0e3fb;z-index:15;overflow:auto;padding:24px 20px}.modal-inner{max-width:1050px;margin:0 auto}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:20px}.modal-head h2{margin:0;font-size:30px;letter-spacing:-1px}.modal-inner>p{font-size:12px;line-height:1.6;color:var(--muted)}#modal-content{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:20px}.item{border:1px solid var(--line);border-radius:12px;padding:17px;background:var(--cream)}.item h3{font-size:20px;margin:8px 0}.item p{font-size:11px;line-height:1.5;color:var(--muted)}.item .small{margin-top:5px}.item.locked{opacity:.55}.item canvas{width:100%;max-height:110px;object-fit:contain}.item-icon{font-size:26px}.swatch{height:55px;border:6px solid var(--swatch);border-radius:10px;background:#fffaf0}.shop-heading,.chapter-heading,.wide{grid-column:1/-1}.shop-heading{font-size:13px;margin:10px 0 0}.chapter-heading{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line);font-size:17px}.level-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.level-tile{border:1px solid var(--line);border-radius:9px;background:var(--cream);padding:12px 8px;text-align:left;min-height:86px}.level-tile strong{display:block;font-size:21px;color:var(--mint)}.level-tile span{font-size:9px;line-height:1.3;display:block;margin-top:4px}.level-tile .stars{color:var(--gold)}.editor-layout{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:20px}.editor-fields{display:flex;flex-direction:column;gap:12px}.editor-fields label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:750}.editor-fields input,.editor-fields select{padding:11px;background:var(--cream);border:1px solid var(--line);border-radius:8px;min-width:0}.editor-fields input[type=color]{width:100%;height:44px;padding:4px}.editor-preview{border:1px solid var(--line);border-radius:15px;background:var(--cream);padding:12px;text-align:center}.editor-preview canvas{width:100%;max-height:440px;object-fit:contain}.editor-preview p{font-size:11px;color:var(--muted)}.editor-actions{display:flex;gap:8px;flex-wrap:wrap}.status-pill{display:inline-block;font-size:9px;padding:5px 7px;border-radius:7px;background:#eee2c4}.status-pill.ready{background:#dceadd;color:var(--mint)}.gift-banner{max-width:910px;margin:0 auto 12px;background:#f0dfa7;border:1px solid #d2b46a;border-radius:12px;display:flex;gap:10px;align-items:center;padding:8px 12px}.gift-banner canvas{width:85px;flex:0 0 85px}.gift-banner strong{font-size:14px}.gift-banner p{font-size:11px;margin:4px 0}.story-modal{background:#ebe4d2fc}.story-modal canvas{width:100%;display:block;border:1px solid var(--line);border-radius:18px;background:var(--cream);margin:20px 0 0}.story-modal #story-line{text-align:center;color:var(--ink);font-size:17px;font-weight:650;min-height:50px}.story-actions{display:flex;justify-content:center;gap:10px;align-items:center}.story-actions span{font-size:11px}.mobile-links{display:none}footer{display:flex;justify-content:space-between;gap:12px;margin:19px 0 4px;font-size:9px;color:var(--muted)}#toast{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:30;background:var(--ink);color:var(--cream);padding:13px 18px;border-radius:11px;max-width:90%;font-size:12px;text-align:center}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:850px){.shell{max-width:630px;padding:12px}.layout{grid-template-columns:1fr;gap:0}aside{display:none}.mobile-links{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin-top:13px}.keyboard{display:none}#canvas{max-height:54vh}.title-row{padding:12px 0}.title-row .eyebrow{font-size:7px}h1{font-size:33px}.machine-teaser{padding:8px}.machine-teaser small{font-size:8px}.machine-teaser>span{font-size:23px}.modes button{padding:9px 12px;font-size:11px}.mission-bar{font-size:10px}.start-cover{inset:31% 18px auto;padding:17px}.start-cover h2{font-size:27px}.hud strong{font-size:21px}body.running header,body.running .title-row,body.running .modes,body.running .selector{display:none}body.running .shell{padding-top:7px}body.running #canvas{max-height:calc(100dvh - 244px)}body.running .fact-strip{margin-top:10px}#modal-content{grid-template-columns:repeat(2,1fr)}.overlay{justify-content:flex-start;padding:22px 17px}.overlay h2{font-size:29px}.overlay #result-score{font-size:50px}.overlay p{font-size:11px;margin:6px 0}#pause{justify-content:center}.selector{gap:6px}.selector #mode-note{font-size:9px;max-width:170px;text-align:right}.story-modal #story-line{font-size:14px}.level-grid{grid-template-columns:repeat(5,1fr)}}
@media(max-width:480px){.brand{font-size:10px}.header-actions{gap:4px}.header-actions .small{padding:8px}.title-row h1{font-size:29px}.subtitle{font-size:9px}.machine-teaser small{max-width:90px}#modal-content{grid-template-columns:1fr}.editor-layout{grid-template-columns:1fr}.editor-preview{grid-row:1}.editor-preview canvas{max-height:230px}.level-grid{grid-template-columns:repeat(3,1fr)}.controls{padding:0 12px 8px;gap:6px}.action{font-size:10px;padding:11px 6px}.water{min-width:65px}.rotation-row{padding:0 12px 6px}.rotation-row .small{min-width:55px;padding:4px 16px}.rotation-row span{font-size:9px}.mini-row{padding:0 13px 9px}.text-button{font-size:8px}.fact-strip{padding:11px}.modal-head h2{font-size:25px}.gift-banner canvas{width:65px;flex-basis:65px}.gift-banner strong{font-size:12px}.celebration strong{font-size:17px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

#held-preview{width:60px;height:30px;vertical-align:middle;margin:auto;display:block}.speaker{display:flex;align-items:center;gap:12px;width:100%;max-width:470px;margin:8px auto}.speaker img{width:65px;height:85px;object-fit:contain;flex-shrink:0}.speech-bubble{position:relative;background:#fff2c9;border:2px solid #c7ad70;border-radius:15px;padding:12px!important;text-align:left;font-size:12px!important;color:var(--ink)!important;font-style:normal!important}.speech-bubble:before{content:'';position:absolute;left:-10px;top:40%;width:16px;height:16px;transform:rotate(45deg);background:#fff2c9;border-left:2px solid #c7ad70;border-bottom:2px solid #c7ad70}.guide{padding:0 12px;max-width:none}.guide p{margin:0 0 8px;line-height:1.5}.guide-target{outline:4px solid #db9b25;outline-offset:2px;box-shadow:0 0 0 7px #ffe39b!important;opacity:1!important}.part-preview{background:#f2e2b6;border-radius:10px;padding:8px;color:#775b1e!important;font-weight:800}#part-reward{padding:12px;background:#f1e0aa;border-radius:12px;width:100%;max-width:380px}#part-reward strong{display:block;margin-bottom:10px}#part-collect{width:100%}.heckler{display:flex;align-items:center;gap:10px}.heckler canvas{width:75px;flex-shrink:0}.heckler .speech-bubble{font-size:10px!important}#guide:not([hidden])~.rotation-row{margin-top:8px}@media(max-width:850px){body.running:has(#guide:not([hidden])) #canvas{max-height:calc(100dvh - 370px)}.guide img{width:46px;height:65px}.guide .speech-bubble{font-size:11px!important;padding:9px!important}.guide .small{padding:7px 10px}}

.goal-card{display:flex;align-items:center;gap:8px;padding:9px 15px;background:#e4eee3;border-bottom:1px solid #b5c8b3}.goal-card canvas{width:65px;height:42px;flex-shrink:0}.goal-card>div{flex:1}.goal-card strong{display:block;font-size:12px;color:#295d43}.goal-card span{display:block;font-size:10px;margin:4px 0 6px}.goal-card .progress{background:#bdcfb8;height:4px}.goal-card .progress i{background:#397b65}@media(max-width:850px){body.running #canvas{max-height:calc(100dvh - 306px)}body.running:has(#guide:not([hidden])) #canvas{max-height:calc(100dvh - 432px)}.goal-card strong{font-size:10px}.goal-card span{font-size:9px}}

/* Version 4: goal context, real orders, compact contextual learning. */
#goal-context{display:block;font-size:9px;font-weight:850;letter-spacing:1px;color:#5b765e;margin-bottom:4px}#goal-list{display:flex;gap:6px;margin:6px 0}.goal-order{display:flex;align-items:center;gap:5px;flex:1;min-width:0;padding:5px;border:1px solid #b9cbb3;border-radius:9px;background:#fffaf0a0}.goal-order>b{display:grid;place-items:center;width:20px;height:20px;flex-shrink:0;border-radius:50%;background:#cc963e;color:white;font-size:11px}.goal-order:nth-child(2)>b{background:#478699}.goal-order:nth-child(3)>b{background:#89688d}.goal-order canvas{width:40px;height:25px;flex-shrink:0}.goal-order span{margin:0;min-width:0}.goal-order span strong{font-size:10px;line-height:1.2}.goal-order small{display:block;font-size:9px;line-height:1.2;margin-top:3px}.goal-order.ready,.goal-order.done{border-color:#397b65;background:#cfe4cd}.goal-order.lost{border-color:#b56248;background:#f4d4c1}.fact-strip{display:block;min-height:0;padding:10px 13px}.fact-toggle{display:flex;align-items:center;gap:9px;background:none;border:0;text-align:left;width:100%;padding:0}.fact-toggle small{flex:1;font-size:9px}#fact-detail{padding-left:35px;margin-top:8px}#water-ad{margin-top:15px}.goal-card{align-items:flex-start}.goal-card>div{width:100%}.goal-card .progress{height:3px}.goal-card #goal-progress{font-size:10px}#help-button{color:#397b65}.start-cover{inset:30% 20px auto}.start-cover h2{font-size:27px}.start-cover p{margin:9px 0}.overlay #result-score{font-size:48px}.start-cover .note{font-size:11px!important}.controls #hold{display:flex;flex-direction:column;align-items:center;justify-content:center}.controls #held-name{font-size:9px}
@media(max-width:850px){#goal-list{gap:4px}.goal-order{padding:4px;gap:3px}.goal-order canvas{width:33px;height:22px}.goal-order span strong{font-size:9px}.goal-order small{font-size:8px}body.running #canvas{max-height:calc(100dvh - 318px)}body.running:has(#guide:not([hidden])) #canvas{max-height:calc(100dvh - 418px)}.start-cover{inset:28% 15px auto;padding:15px}.goal-card{padding:8px 10px}#goal-context{font-size:8px}.goal-card #goal-title{font-size:11px}body.running .fact-strip{margin-top:8px}}
@media(max-width:380px){.goal-order canvas{width:29px}.goal-order>b{width:16px;height:16px;font-size:9px}.goal-order span strong{font-size:8px}.goal-order small{font-size:7px}#goal-progress{font-size:9px!important}}

@media(max-width:480px){.goal-order{display:grid;grid-template-columns:20px minmax(0,1fr);justify-items:center;align-content:start}.goal-order>span{grid-column:1/-1;justify-self:stretch;text-align:center}.goal-order span strong,.goal-order small{overflow-wrap:anywhere}.goal-order>b{justify-self:start}}
.journey-card{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 16px;margin-bottom:14px;background:#e6e9d1;border:1px solid #bcc3a0;border-radius:13px}.journey-copy{min-width:0;flex:1}.journey-eyebrow{display:block;border:0;background:none;padding:0;margin:0 0 5px;color:#627147;font-size:9px;letter-spacing:1px;font-weight:850;text-align:left}.journey-copy>strong{display:block;font-size:17px;line-height:1.15}.journey-progress{display:flex;gap:9px;align-items:center;margin:6px 0}.journey-progress>span{font-size:10px;font-weight:750;white-space:nowrap}.journey-progress .progress{flex:1;max-width:160px;background:#cad0af;height:4px}.journey-progress .progress i{background:#627a4a}.journey-copy>small{font-size:10px;color:#756434}.journey-payoff{display:flex;align-items:center;gap:10px;flex-shrink:0}.journey-payoff>span{font-size:12px;font-weight:850;color:#795a25}.journey-payoff button{background:#fffaf0}.journey-step-number{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e1d5b4;color:#715b30;font-weight:850}.journey-step.current{border:2px solid #859a66}.journey-step.done{border-color:#91ae7e;background:#e4edd8}.journey-step small{display:block;margin-top:8px;font-size:10px;line-height:1.4;color:#877348}.journey-step>strong{font-size:13px;display:block}.journey-step h3{font-size:21px}.journey-step.locked{opacity:.7}.hall-toolbar{display:flex;gap:15px;align-items:center;justify-content:space-between;flex-wrap:wrap}.hall-toolbar>div{display:flex;gap:8px}.hall-toolbar .selected{background:#397b65;color:#fff;border-color:#397b65}.hall-toolbar>span{font-size:12px;color:#82765f}.hall-table-wrap{overflow:auto;border:1px solid #d4c9b3;border-radius:12px}.hall-table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.hall-table th{font-size:10px;color:#82765f;padding:12px;background:#e9e4d5}.hall-table td{padding:14px 12px;border-top:1px solid #ded6c4}.hall-table td:nth-child(2){font-weight:800;word-break:break-word}.hall-table td:first-child{color:#987226;font-weight:850;max-width:60px}.hall-table td:last-child{font-size:11px;color:#82765f;white-space:nowrap}.hall-table .is-own{background:#e2ecd7}.hall-entry label{display:block;margin-bottom:10px;font-weight:850}.hall-entry>div{display:flex;gap:10px}.hall-entry input{flex:1;min-width:0;border:1px solid #c6b897;padding:12px;border-radius:9px;background:#fffaf0}.hall-entry small{font-size:10px;display:block;margin-top:9px;color:#82765f}.hall-error{color:#9b513d;font-size:12px}.hall-own{border-color:#a7bb8e;background:#e3ecd6}.hall-own strong{font-size:21px}.hall-empty .speech-bubble{font-size:14px!important}.discovery-card{display:flex;flex-direction:column;padding:18px}.discovery-heading small{font-size:8px;letter-spacing:1px;color:#6e805a;font-weight:850}.discovery-heading h3{font-size:25px;margin:5px 0 0}.discovery-pair{display:grid;grid-template-columns:minmax(0,1fr) 12px minmax(0,1fr);gap:6px;align-items:center;height:142px;margin:14px 0 0}.discovery-pair img{width:100%;height:135px;object-fit:contain;padding:5px}.discovery-pair canvas{width:100%;height:auto;max-height:135px;object-fit:contain}.discovery-pair>span{color:#b19e73;font-size:16px}.discovery-card .specimen-name{text-align:right;color:#82765f;font-size:9px;margin-bottom:14px}.discovery-card h4{font-size:16px;margin:0 0 4px}.discovery-card .discovery-fact{font-size:12px;line-height:1.5;margin:0 0 13px;color:#4f493c}.discovery-speaker{display:flex;gap:7px;align-items:center;margin-top:auto}.discovery-speaker>canvas{flex:0 0 44px;width:44px;height:51px;object-fit:contain}.discovery-speaker .speech-bubble{font-size:11px!important;line-height:1.4;flex:1;margin:0;padding:9px!important;border-width:1px}.discovery-unknown{height:155px;display:grid;place-items:center;font-size:60px;color:#d3c7aa}.fact-roast{font-style:italic;color:#6d7856!important}body.running .journey-card{padding:8px 12px;margin-bottom:8px}body.running .journey-copy>strong{font-size:12px}body.running .journey-progress{margin:3px 0 0}body.running .journey-eyebrow{font-size:8px;margin:0 0 3px}body.running .journey-copy>small{display:none}body.running .journey-payoff>span{font-size:11px}body.running .journey-payoff button{display:none}
@media(max-width:850px){.journey-card{padding:11px 12px;margin-bottom:11px;gap:8px}.journey-copy>strong{font-size:15px}.journey-payoff{flex-direction:column;gap:5px;align-items:flex-end}.journey-payoff .small{padding:7px 10px;font-size:10px}.journey-copy>small{font-size:9px}body.running #canvas{max-height:calc(100dvh - 372px)}body.running:has(#guide:not([hidden])) #canvas{max-height:calc(100dvh - 472px)}.discovery-card{padding:15px}.discovery-heading h3{font-size:23px}.hall-entry>div{flex-direction:column}.hall-table td,.hall-table th{padding:10px 8px}}
@media(max-width:530px){#modal-content:has(.discovery-card){grid-template-columns:1fr}.discovery-pair{height:153px}.discovery-pair img{height:145px}.discovery-card .discovery-fact{font-size:13px}.discovery-speaker .speech-bubble{font-size:12px!important}#modal-content:has(.journey-step){grid-template-columns:1fr}.journey-step{position:relative;padding-left:58px}.journey-step-number{position:absolute;left:17px;top:18px}.journey-step h3{margin-top:0}}
.modal-head{position:sticky;top:0;z-index:2;background:#f7f1e5;padding:10px 0}body.running .journey-payoff{max-width:115px;text-align:right}

/* 4.2: one compact home, one playing surface; controls travel with the bowl. */
.shell{max-width:1120px;padding:12px 20px}.brand small{font-size:9px}.title-row{padding:10px 0}.title-row .eyebrow,.subtitle{display:none}h1{font-size:32px;letter-spacing:-1.3px}.mode-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.modes{flex:1;margin:0;border:0}.modes button{padding:10px 12px;font-size:12px}.selector{margin:0;max-width:none;gap:8px;flex-shrink:0}#mode-note{display:none}.progress-overview{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:10px;margin-bottom:12px}.journey-card{margin:0;padding:10px 12px;border:0;background:#e6e9d1;border-radius:10px;gap:10px}.journey-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:center}.journey-eyebrow{margin:0;font-size:8px;grid-column:1}.journey-copy>strong{font-size:14px;grid-column:1}.journey-progress{grid-column:2;grid-row:1/3;margin:0;flex-wrap:wrap;width:90px;gap:4px}.journey-progress .progress{flex-basis:100%;max-width:none}.journey-copy>small{grid-column:1/-1;font-size:9px}.journey-payoff{flex-direction:column;gap:4px;align-items:flex-end}.journey-payoff>span{font-size:11px}.journey-payoff .small{padding:7px 10px;font-size:10px}.machine-teaser{padding:9px 11px;gap:2px 8px;border-radius:10px}.machine-teaser>span{font-size:28px}.machine-teaser small{max-width:130px}.layout{display:block;max-width:1000px;margin:auto}.layout main{min-width:0}aside{display:none}.mission-bar{display:none}.mobile-links{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin:13px auto 0}.mobile-links .small{padding:9px 12px;min-height:38px}.keyboard{display:none}.board{border-radius:15px}.goal-card{padding:9px 13px;align-items:center}.goal-card #goal-title{font-size:12px}.goal-card>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 12px}#goal-context{margin:0;font-size:9px;grid-column:1}#goal-title{grid-column:1}#goal-list{grid-column:1/-1;margin:4px 0 0;display:flex;gap:7px;flex-wrap:wrap}.goal-card #goal-progress{grid-column:2;grid-row:1/3;margin:0;text-align:right;font-size:10px;white-space:nowrap}.goal-card .progress{display:none}.goal-order{display:grid;grid-template-columns:24px 60px minmax(0,1fr);gap:7px;justify-items:stretch;align-content:center;padding:7px;background:#fffaf075;min-width:180px;border:0;border-left:3px solid #b9cbb3;border-radius:5px}.goal-order>b{width:24px;height:24px;justify-self:start}.goal-order>canvas{width:60px;height:37px}.goal-order>span{grid-column:auto;text-align:left}.goal-order span strong{font-size:11px;line-height:1.25}.goal-order small{font-size:10px;line-height:1.25;margin-top:2px}.goal-order .goal-rule{font-size:9px;color:#69745e}.goal-order.ready,.goal-order.done{border-left-color:#397b65}.goal-order.lost{border-left-color:#b56248}.hud{justify-content:center;align-items:center;gap:30px;padding:7px 14px}.hud small{font-size:8px;letter-spacing:.5px}.hud strong{font-size:20px;line-height:1.1}.hud .inline-next{display:flex;align-items:center;gap:6px}.hud .inline-next canvas{width:92px;height:38px;margin:0}.has-output-goals .hud>div:first-child{display:none}.play-stage{display:grid;grid-template-columns:220px minmax(0,500px);grid-template-areas:'coach field' 'coach rotate' 'coach controls' 'coach mini';gap:0 20px;justify-content:center;padding:0 16px 6px}.coach{grid-area:coach;align-self:center;min-width:0}#canvas{grid-area:field;display:block;width:100%;height:auto;max-height:none;object-fit:initial;aspect-ratio:500/802;touch-action:none}.guide,.coach .speaker{max-width:none;display:flex;flex-direction:column;gap:8px;padding:0;margin:0}.coach canvas{display:block;width:135px;height:160px;flex-shrink:0}.coach .speech-bubble{width:100%;font-size:13px!important;line-height:1.45;padding:12px!important;margin:0}.coach .speech-bubble:before{left:40px;top:-10px;transform:rotate(135deg)}.guide p{margin:0 0 8px}.guide .small{min-height:38px}.rotation-row{grid-area:rotate;padding:0 8px 5px;margin:0!important}.rotation-row .small{font-size:22px;min-width:50px;min-height:36px;padding:2px 14px}.rotation-row span{font-size:10px}.controls{grid-area:controls;padding:0 8px 6px;gap:6px}.controls .action{min-height:48px;font-size:11px;padding:8px}.controls #hold{flex:1;display:grid;grid-template-columns:45px 1fr;gap:1px 4px}.controls #hold small{grid-column:1/-1;margin:0}.controls #held-preview{width:45px;height:23px;grid-column:1;margin:0}.controls #held-name{font-size:9px;grid-column:2;text-align:left}.controls #held-preview[hidden]+#held-name{grid-column:1/-1;text-align:center}.controls #drop{flex:1.7}.controls #water{min-width:56px;flex:0 0 56px}.mini-row{grid-area:mini;padding:0 9px 3px}.mini-row .text-button{font-size:9px;min-height:32px}.lesson{grid-column:1/-1;margin:5px 8px}.start-cover{position:static;inset:auto;z-index:auto;display:grid;grid-template-columns:85px minmax(0,1fr) auto;align-items:center;gap:12px;border:0;border-radius:0;box-shadow:none;background:var(--cream);padding:16px;text-align:left}.start-cover>canvas{width:85px;height:101px}.start-cover h2{font-size:25px;margin:5px 0;line-height:1.1}.start-cover .eyebrow{font-size:9px}.start-cover p{margin:5px 0}.start-cover .note{font-size:11px!important}.start-cover>.action{width:auto;min-width:110px;min-height:50px}.start-cover .part-preview{font-size:10px;padding:6px;margin:5px 0}.start-copy{min-width:0}.home .board .play-stage,.home .board .hud,.home .fact-strip{display:none}.home .goal-card{border-bottom:0;border-top:1px solid #b5c8b3}.home .mobile-links{margin-top:16px}.home .board{box-shadow:0 3px 0 #dbd4c3}.celebration{display:none}.fact-strip{padding:9px 12px;margin-top:10px}.fact-toggle{min-height:28px}.fact-toggle small{font-size:10px}.overlay{min-height:380px}.overlay .speaker img{width:100px;height:120px}.overlay #result-score{font-size:45px}footer{margin-top:15px;flex-wrap:wrap}.board:not(:has(#start-cover[hidden])){min-height:0}
body.running .progress-overview{grid-template-columns:minmax(0,1fr) auto;margin-bottom:6px;gap:5px}body.running .journey-card{padding:5px 8px;margin:0;background:transparent}body.running .journey-copy{display:flex;align-items:center;gap:7px;flex-wrap:wrap}body.running .journey-eyebrow{margin:0;font-size:8px}body.running .journey-copy>strong{font-size:10px}body.running .journey-progress{width:56px;flex-wrap:nowrap;font-size:9px}body.running .journey-progress .progress{flex:1;min-width:20px}body.running .journey-progress>span{font-size:9px}body.running .journey-payoff{max-width:none}body.running .journey-payoff>span{font-size:9px}body.running .machine-teaser{padding:3px 7px;display:flex;align-items:center;background:transparent;border:0}body.running .machine-teaser>span{font-size:15px}body.running .machine-teaser strong{font-size:10px}body.running .machine-teaser small{display:none}body.running .shell{padding-top:5px}body.running header,body.running .title-row,body.running .mode-row{display:none}
@media(max-width:850px){.shell{max-width:620px;padding:10px}.mode-row{gap:5px}.modes{gap:0}.modes button{padding:9px 7px;font-size:11px}.selector #levels-button{padding:8px;font-size:10px}.selector #layout-select .small{padding:8px;font-size:10px}#level-label{font-size:10px}.progress-overview{gap:6px}.journey-card{padding:8px 10px}.journey-copy{gap:3px 7px}.journey-copy>strong{font-size:12px}.journey-progress{width:52px}.journey-progress>span{font-size:9px}.journey-copy>small{font-size:8px}.machine-teaser{padding:8px;grid-template-columns:1fr;justify-items:center;gap:2px}.machine-teaser>span{display:none}.machine-teaser strong{font-size:14px}.machine-teaser small{font-size:8px;max-width:92px;text-align:center}.start-cover{grid-template-columns:70px minmax(0,1fr) auto;gap:9px;padding:12px}.start-cover>canvas{width:70px;height:83px}.start-cover h2{font-size:23px}.start-cover>.action{min-width:82px;min-height:48px}.start-cover .note{font-size:10px!important}.goal-card{padding:8px 10px}.goal-card #goal-title{font-size:11px}.goal-card #goal-context{font-size:8px}.goal-order{min-width:145px;padding:5px;grid-template-columns:20px 48px minmax(0,1fr);gap:4px}.goal-order>b{width:20px;height:20px;font-size:10px}.goal-order>canvas{width:48px;height:30px}.goal-order span strong{font-size:10px}.goal-order small{font-size:9px}.goal-order .goal-rule{font-size:8px}.play-stage{grid-template-columns:minmax(0,1fr);grid-template-areas:'coach' 'field' 'rotate' 'controls' 'mini';padding:0 6px 4px;gap:0}.coach{align-self:auto;padding:0 10px}.guide,.coach .speaker{flex-direction:row;align-items:center;gap:8px;margin:2px 0 4px}.coach canvas{width:68px;height:81px}.coach .speech-bubble{padding:8px 10px!important;font-size:11px!important;line-height:1.35;flex:1}.coach .speech-bubble:before{left:-9px;top:40%;transform:rotate(45deg)}.guide p{margin-bottom:5px}.guide .small{padding:7px 10px;min-height:34px}.hud{gap:22px;padding:6px 9px}.hud strong{font-size:19px}.hud .inline-next canvas{width:78px;height:32px}.hud small{font-size:7px}#canvas,body.running #canvas,body.running:has(#guide:not([hidden])) #canvas{width:100%;height:auto;max-height:none;object-fit:initial;margin:0 auto;max-width:430px}.rotation-row{padding:0 7px 4px}.controls{padding:0 7px 6px}.controls .action{min-height:46px}.mini-row{padding:0 7px 0}.mobile-links .small{padding:8px 10px;font-size:10px;min-height:36px}.fact-strip{padding:8px 10px}.overlay{padding:18px 14px}.title-row{padding:9px 0}.title-row h1{font-size:28px}.brand small{font-size:8px}body.running .journey-card{padding:3px 4px}body.running .journey-eyebrow{font-size:7px}body.running .journey-copy>strong{font-size:9px}body.running .journey-payoff>span{font-size:8px}body.running .progress-overview{margin-bottom:4px}}
@media(max-width:390px){.shell{padding:8px}.header-actions .small{padding:7px}.brand{font-size:9px}.brand img{width:32px;height:38px}.mode-row{flex-wrap:wrap}.modes{flex:1 1 235px}.selector{flex:0 0 auto;margin-left:auto}.modes button{padding:8px 7px;font-size:10px}.start-cover{grid-template-columns:56px minmax(0,1fr) auto;gap:6px;padding:10px}.start-cover>canvas{width:56px;height:67px}.start-cover h2{font-size:19px}.start-cover>.action{min-width:70px;font-size:10px}.start-cover .note{font-size:9px!important}.goal-order{min-width:135px;grid-template-columns:18px 35px minmax(0,1fr)}.goal-order>canvas{width:35px;height:26px}.goal-card>div{gap:3px 6px}.goal-card #goal-progress{font-size:8px}.coach canvas{width:60px;height:71px}.coach .speech-bubble{font-size:10px!important}.journey-copy{grid-template-columns:minmax(0,1fr)}.journey-progress{grid-row:auto;grid-column:1;flex-wrap:nowrap;width:100%}.journey-copy>strong{font-size:11px}.journey-progress .progress{flex-basis:auto;max-width:70px}}
@media(max-width:850px) and (orientation:landscape){.play-stage{grid-template-columns:170px minmax(0,360px);grid-template-areas:'coach field' 'coach rotate' 'coach controls' 'coach mini';gap:0 10px}.coach{padding:5px}.guide,.coach .speaker{flex-direction:column}.coach canvas{width:90px;height:107px}.coach .speech-bubble:before{left:35px;top:-9px;transform:rotate(135deg)}}
.home #goal-context{display:none}.home .goal-card #goal-title{grid-row:1}.home .goal-card #goal-progress{grid-row:1}.home .goal-card{background:#e4eee380}.home .journey-payoff:has(button[hidden]){justify-content:center}

/* A compact menu card, never an obstacle on the active board. */
body.running #ego-home{display:none!important}#ego-home{margin-bottom:12px;min-width:0}#ego-home-mobile{margin-top:12px}#ego-home-mobile:empty{display:none}
/* 4.3: material silhouettes and full-colour target swatches take priority. */
.goal-order{grid-template-columns:24px 82px minmax(0,1fr)}.goal-order>canvas{width:82px;height:53px}.goal-order span strong{font-size:12px}.goal-order small{font-size:10px}.goal-order .goal-rule{font-size:9px}#exact-shape-rule{grid-column:1/-1;color:#63705a;font-size:10px;margin-top:3px}.goal-card #goal-title{font-size:12px}.play-stage:not(:has(.coach .speaker:not([hidden]))){grid-template-columns:minmax(0,500px);grid-template-areas:'field' 'rotate' 'controls' 'mini'}.queue-strip{padding:6px 14px;background:#f4eedf;border-bottom:1px solid var(--line)}.queue-strip>small{font-size:9px;color:var(--muted)}#queue-pieces{display:flex;align-items:center;gap:5px;overflow-x:auto;padding:4px 0}#queue-pieces>span{display:flex;flex-direction:column;align-items:center;flex:0 0 48px}#queue-pieces canvas{width:48px;height:36px}#queue-pieces small{font-size:8px;color:var(--muted)}.hud .inline-next{position:relative;flex-wrap:wrap;max-width:160px;justify-content:center;gap:3px}.hud #queue-button{padding:3px 7px;min-height:26px;color:var(--mint);font-size:9px;border:1px solid var(--line);border-radius:6px}.home .queue-strip{display:none}body.running #fact-strip{margin-top:7px}.home #start-hint[hidden]{display:none}
@media(max-width:850px){.goal-order{grid-template-columns:20px 68px minmax(0,1fr);min-width:160px;gap:5px}.goal-order>canvas{width:68px;height:44px}.goal-order span strong{font-size:10px}.goal-order small{font-size:9px}.goal-card #goal-title{font-size:11px}#exact-shape-rule{font-size:9px}.play-stage:not(:has(.coach .speaker:not([hidden]))){grid-template-columns:minmax(0,1fr)}.hud{gap:18px}.hud .inline-next{max-width:120px}.hud .inline-next canvas{width:72px;height:32px}.hud #queue-button{font-size:8px}.goal-card{padding:7px 9px}}
@media(max-width:390px){.goal-order{min-width:138px;grid-template-columns:18px 52px minmax(0,1fr);gap:4px}.goal-order>canvas{width:52px;height:34px}.goal-order span strong{font-size:9px}.goal-order small{font-size:8px}#goal-context{letter-spacing:.3px}}
/* Release 5: compact home rewards, category vault, attached previews. */
.v5-home{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:8px 0}.sample-row{display:flex;gap:6px}.sample-button{display:flex;align-items:center;gap:6px;flex:1;text-align:left;border:1px solid #c9baa1;border-radius:9px;padding:6px;background:#fff9eb;font:700 11px system-ui;color:#443528}.sample-icon{font-size:27px;white-space:nowrap}.sample-button small,.home-hall small{display:block;font-size:10px;font-weight:500}.home-hall{text-align:left;border:1px solid #c8a354;background:#f3e6be;border-radius:9px;padding:7px;color:#4a3825}.home-hall strong{font-size:12px}.release-label{grid-column:1/-1;font-size:10px;color:#78684d}.vault-tabs{display:flex;gap:6px;flex-wrap:wrap;position:sticky;top:0;background:#f8f1e3;padding:8px 0;z-index:2}.vault-product canvas{width:100%;height:110px;object-fit:contain}.vault-product h3{font-size:15px}.vault-product p{font-size:12px}.preset-row{display:flex;gap:5px;flex-wrap:wrap}.sample-button:disabled{opacity:.55}#modal-content:has(.vault-tabs){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}#modal-content:has(.vault-tabs) .wide{grid-column:1/-1}.owned{font-size:12px;color:#428776}@media(max-width:600px){.v5-home{grid-template-columns:1fr}.sample-button{font-size:11px}#modal-content:has(.vault-tabs){grid-template-columns:repeat(2,minmax(0,1fr))}.modes{flex-wrap:wrap}.modes button{font-size:11px;padding:6px}}
/* Gift handoff: contextual reward information, then one explicit next action. */
.sample-button img.sample-icon{width:46px;height:44px;object-fit:contain}.ad-parcel-icon{position:relative;width:46px;height:44px;display:block;font-size:12px;flex-shrink:0}.ad-parcel-icon img{width:46px;height:44px;object-fit:contain}.ad-parcel-icon{color:#a77a26}.friend-parcel{grid-column:1/-1;display:flex;align-items:center;gap:8px;border:1px dashed #b09b6e;border-radius:9px;background:#f5eddb;color:#59482f;padding:8px 10px;text-align:left}.friend-parcel span{font-size:21px}.friend-parcel strong{font-size:12px}.friend-parcel small{margin-left:auto;white-space:nowrap;font-size:10px}.modal-inner:has(.reward-scene){max-width:580px}#modal-content:has(.reward-scene){display:block}.reward-scene{text-align:center;padding:0 10px 8px}.reward-heckler{display:block;margin:0 auto;width:min(100%,360px);height:250px;object-fit:contain;animation:parcel-handoff .45s ease-out}.reward-scene h3{font-size:23px;margin:8px 0;color:#594227}.reward-scene>p{font-size:13px;line-height:1.5;max-width:390px;margin:10px auto}.reward-actions{display:grid;gap:9px;max-width:390px;margin:17px auto 0}.reward-actions .action{width:100%;min-height:46px}.parcel-secondary{font-size:11px;min-height:42px}.reward-prize{display:block;margin:10px auto;border-radius:12px;background:#efe2b9;max-width:100%}.reward-coins{display:flex;justify-content:center;align-items:center;gap:14px;padding:14px}.reward-coins strong{font-size:36px;color:#a77a26}.reward-coins .coin{width:46px;height:46px;font-size:27px}.reward-symbol{font-size:31px;color:#8b6044;padding:16px}.reward-roast{font-style:italic;color:#857049}.is-revealed .reward-heckler{height:165px}.parcel-link input{width:100%;box-sizing:border-box;min-height:40px;padding:8px;margin-bottom:10px;border:1px solid #bdad88;border-radius:6px;font-size:12px}.parcel-link>div{display:grid;gap:8px}.reward-scene small{font-size:11px}@keyframes parcel-handoff{from{opacity:.4;transform:translateY(15px) scale(.94)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:600px){.reward-heckler{height:205px}.reward-scene h3{font-size:21px}.reward-scene>p{font-size:12px}.friend-parcel{flex-wrap:wrap}.friend-parcel small{margin-left:29px}.is-revealed .reward-heckler{height:145px}}@media(prefers-reduced-motion:reduce){.reward-heckler{animation:none}}
/* 5.2: one screen, one play action, four purposeful areas. */
.dashboard .shell{max-width:850px}.dashboard .title-row,.dashboard .mode-row,.dashboard .layout,.dashboard .mobile-links,.dashboard #ego-home-mobile,.dashboard header #sound,.dashboard header #language{display:none!important}.home-screen{max-width:720px;margin:4px auto 0}.home-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:15px}.home-tool{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:105px;border:1px solid #c6baa0;border-radius:14px;background:#fff8e8;color:#463927;padding:7px 3px;text-align:center}.home-tool strong{font-size:13px}.home-tool small{font-size:10px;line-height:1.2;font-variant-numeric:tabular-nums}.home-tool img,.home-tool canvas{width:70px;height:53px;object-fit:contain}.home-tool .coin{width:43px;height:43px;font-size:23px;margin:5px}.podium-icon{font-size:43px;line-height:53px;color:#9c7e3e}.gift-tool{background:#f8edce}.vault-tool{background:#eee5cc}.own-tool{background:#e5ede4}.record-tool{background:#e8e4ef}.gift-ready{border-color:#c49a39;box-shadow:0 2px 0 #ddbf77}.home-highlight{outline:2px solid #d3aa4b;outline-offset:2px}.home-hero{display:grid;grid-template-columns:200px 1fr;gap:0 18px;padding:20px;border:1px solid #bdad8b;border-radius:20px;background:#fffaf0;box-shadow:0 5px 0 #ded2b8}.home-hero-art{position:relative;grid-row:1;display:flex;align-items:center;justify-content:center}.home-hero-art>img{width:170px;height:195px;object-fit:contain}.home-hero-art canvas{position:absolute;bottom:-3px;right:-5px;width:85px;height:50px;object-fit:contain;background:#f8ecd0;border:1px solid #d4bd86;border-radius:12px}.home-hero-copy{align-self:center}.home-hero-copy h1{font-size:34px;line-height:1.06;letter-spacing:-1px;margin:9px 0}.home-hero-copy p{font-size:13px;line-height:1.4;color:#86714d;margin:8px 0}.home-play-row{grid-column:1/-1;display:grid;grid-template-columns:1.2fr 1fr;gap:10px;margin-top:17px}.home-play-row .primary{font-size:15px;min-height:58px}.home-target{border:1px dashed #baa273;border-radius:11px;background:#f5edd7;text-align:left;padding:10px;color:#6a542c}.home-target span{display:block;font-size:12px;font-weight:800}.home-target small{display:block;margin-top:5px;font-size:10px;line-height:1.3}.home-progress-row{display:flex;align-items:center;justify-content:space-between;gap:8px;grid-column:1/-1;margin-top:13px}.home-progress-row .text-button{font-size:11px;text-align:left;padding:7px 0}.home-progress-row #home-path{white-space:nowrap}.home-nudge{grid-column:1/-1;font-size:11px;margin-top:12px;background:#f4e4b6;padding:9px;border-radius:8px}.home-modes{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.home-mode-card{display:grid;grid-template-columns:45px 1fr;text-align:left;gap:2px 9px;border:1px solid #c6bea9;border-radius:13px;background:#e8eee5;padding:13px;color:#435b43;min-height:83px}.home-mode-card+.home-mode-card{background:#ebe7dc;color:#665a42}.mode-symbol{grid-row:1/3;align-self:center;font-size:22px}.home-mode-card strong{font-size:14px}.home-mode-card small{font-size:11px;line-height:1.3}.home-hall-peek{display:block;width:100%;margin-top:12px;padding:12px 14px;border:1px solid #c4ae7e;border-radius:12px;background:#f0e5c6;text-align:left;color:#6c5128}.home-hall-peek strong{font-size:11px;letter-spacing:.5px}.home-hall-peek span{display:block;font-size:11px;line-height:1.4;margin-top:5px}.home-how{display:block;margin:8px auto 0;min-height:40px}.dashboard footer{justify-content:center}.dashboard footer>*:not(:first-child){display:none}.running .progress-overview,.running #v5-home,.running .mobile-links,.running .layout>aside,.running footer,.running #ego-home-mobile{display:none!important}.running .layout{grid-template-columns:minmax(0,650px)}.gift-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:15px 0}.gift-options section{border:1px solid #cfb77c;border-radius:12px;background:#fff4d7;padding:13px 9px}.gift-options strong,.gift-options small{display:block}.gift-options strong{font-size:15px}.gift-options small{min-height:31px;margin:7px 0;font-size:11px;font-variant-numeric:tabular-nums}.gift-options .action{width:100%;min-height:48px;font-size:10px}.gift-hub>.parcel-secondary{width:100%;min-height:44px}.gift-hub>.text-button{display:block;margin:6px auto}.own-hub-card{text-align:center;color:#4c604a}.own-hub-card>span{font-size:34px}.settings-options{display:grid;gap:12px;max-width:420px;margin:auto}.context-help{text-align:center;max-width:580px;margin:auto}.context-help img{width:130px;height:150px;object-fit:contain}.context-help p{font-size:14px;line-height:1.7}.result-coach{border:1px solid #cfb77c;border-radius:9px;background:#f2e5bb;padding:9px}#pause-home{margin-top:15px}#result-home{margin-top:9px}#modal-help{margin-left:auto}#machine-help-note{display:block;text-align:center;margin-top:10px}.modal #ego-home{display:block!important}.record-tabs{position:static}.home-screen button:focus-visible{outline:3px solid #cc9b35;outline-offset:3px}@media(max-width:600px){.dashboard .shell{padding:10px 12px}.dashboard header{padding-bottom:8px}.home-tools{gap:6px;margin-bottom:11px}.home-tool{min-height:92px;border-radius:11px}.home-tool strong{font-size:11px}.home-tool small{font-size:9px}.home-tool img,.home-tool canvas{width:54px;height:44px}.home-hero{grid-template-columns:125px 1fr;padding:14px;gap:0 12px}.home-hero-art>img{width:120px;height:155px}.home-hero-art canvas{width:66px;height:39px;right:-2px;bottom:0}.home-hero-copy h1{font-size:26px}.home-hero-copy p{font-size:11px}.home-play-row{grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.home-play-row .primary{font-size:12px;min-height:58px}.home-target{padding:9px}.home-target span{font-size:10px}.home-target small{font-size:9px}.home-progress-row .text-button{font-size:10px}.home-modes{gap:8px;margin-top:15px}.home-mode-card{grid-template-columns:26px 1fr;gap:2px 7px;padding:11px 9px}.mode-symbol{font-size:16px}.home-mode-card strong{font-size:12px}.home-mode-card small{font-size:10px}.gift-options{gap:8px}.gift-options section{padding:11px 7px}.gift-options strong{font-size:13px}.gift-options .action{padding:11px 6px;font-size:9px}.record-tabs{gap:4px}.record-tabs .small{padding:8px;font-size:10px}}@media(max-width:360px){.home-hero{grid-template-columns:100px 1fr;padding:12px;gap:0 9px}.home-hero-art>img{width:100px;height:145px}.home-hero-copy h1{font-size:23px}.home-tool strong{font-size:10px}.home-tool small{font-size:8px}}
.running .mode-row,.running .title-row{display:none!important}.weekly-summary{text-align:center;max-width:620px;justify-self:center;width:100%}.weekly-summary>.action{display:block;width:100%;margin:9px 0}.weekly-summary details{text-align:left;margin:14px 0;font-size:12px}.weekly-summary summary{cursor:pointer;padding:8px 0}.weekly-summary h3{font-size:29px}
/* 5.3: product-specific art and faithful, readable motion previews. */
.modal-inner:has(.vault-product),.modal-inner:has(.vault-large){max-width:850px}
#modal-content:has(.vault-product){grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch}
.vault-tabs{display:flex;flex-wrap:wrap;gap:7px;z-index:1}
.vault-tabs button[aria-pressed="true"],.vault-filters button[aria-pressed="true"]{background:#dcebdd;border-color:#78a08a;color:#2f664e}
.vault-filters{display:flex;gap:5px;flex-wrap:wrap;align-items:center;margin:0;padding:0 0 5px;border-bottom:1px solid var(--line)}
.vault-filters .text-button{font-size:12px;padding:9px 10px;min-height:38px;border-radius:8px}
.vault-group-heading{margin:8px 0 0;font-size:14px;letter-spacing:.3px;color:#6d5a37}
.vault-product{display:flex;flex-direction:column;min-width:0;padding:12px;border-radius:15px;background:#fffaf0}
.vault-product>canvas,.vault-product>.vault-art{display:block;width:100%;height:auto;aspect-ratio:22/15;object-fit:contain;background:linear-gradient(135deg,#f5f0df,#edf0df);border-radius:10px;margin:0 0 10px}
.vault-product>.vault-art{padding:5px}
.vault-product h3{font-size:17px;line-height:1.15;margin:1px 0 7px;overflow-wrap:anywhere}
.vault-product p{font-size:12px;line-height:1.45;margin:0 0 10px;flex:1;color:#7b6b53}
.vault-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;min-height:40px;margin-top:auto}
.vault-actions .small{min-height:42px;margin:0;padding:9px 10px;font-size:12px}
.vault-actions .vault-buy{flex:1}.vault-actions .owned{font-size:12px;line-height:1.4}
.coin-price{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}
.coin-price .coin{display:inline-grid;place-items:center;width:21px;height:21px;min-width:21px;border-radius:50%;font-size:12px;margin:0;border:1px solid #bd9145;background:radial-gradient(circle at 35% 25%,#fff0a6,#d6a339);color:#74521d;font-style:normal}
.vault-try{align-self:flex-start;font-size:12px;min-height:36px;margin-top:3px;padding:8px 0;color:#397b65}
.vault-scope-note{border:1px solid #c8d5c0;border-radius:10px;background:#e9f0e2;padding:10px 12px;font-size:12px}
.vault-scope-note p{margin:0 0 5px}.vault-scope-note .text-button{font-size:12px;min-height:38px}
.vault-large{text-align:center;max-width:650px;justify-self:center;width:100%}.vault-large canvas{display:block;width:100%;height:auto;max-height:55dvh;object-fit:contain;border-radius:12px;margin:10px 0}.vault-large .vault-actions{justify-content:center}
.ad-credit{justify-content:center}.ad-credit small{font-size:11px;margin-top:8px}
@media(max-width:600px){#modal-content:has(.vault-product){grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.vault-product{padding:10px}.vault-product h3{font-size:15px}.vault-product p{font-size:11px}.vault-actions .small{font-size:11px;padding:9px 8px}.vault-filters .text-button{font-size:11px;padding:8px}.vault-tabs .small{padding:10px;font-size:12px}.vault-product>canvas,.vault-product>.vault-art{margin-bottom:8px}}
@media(max-width:350px){.vault-product{padding:8px}.vault-product h3{font-size:13px}.vault-actions{gap:4px}.vault-actions .small{padding:8px 6px}.vault-actions .vault-target{font-size:10px}}
/* 5.4: keep the next meaningful action beside its cause. */
.creation-refill{border:1px solid #cbb06e;border-radius:10px;background:#f5e8bc;padding:10px;margin:8px 0}.creation-refill strong,.creation-refill small{display:block;font-size:11px;line-height:1.45}.creation-refill>div{display:flex;gap:7px;margin:8px 0}.creation-refill .small{min-height:42px;flex:1;padding:8px;font-size:11px}.result-purchase{margin:5px 0 10px;background:#e4eddb;min-height:42px;border-color:#98b18c;max-width:100%;font-size:11px;line-height:1.4}.goal-order canvas{object-fit:contain}.goal-order:has([data-goal-kind="part"]){border-color:#b89b50;background:#f6eac5}.goal-order:has([data-goal-kind="plug"]),.goal-order:has([data-goal-kind="seal"]){border-color:#70a4b3;background:#e1f0eb}
/* The final challenge is a single invitation, separate from the ordinary path. */
.elite-invitation{display:flex;align-items:center;gap:12px;width:100%;padding:14px 16px;margin:17px 0 0;text-align:left;border:1px solid #8c7744;border-radius:13px;color:#413625;background:linear-gradient(120deg,#e9e3ce,#f4ecd6)}
.elite-seal{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border:2px solid #9c7b35;outline:1px solid #c4ac6b;outline-offset:3px;border-radius:50%;font-size:20px;font-weight:900;color:#6d5426;background:#fff5cd}
.elite-invitation>span:nth-child(2){flex:1;min-width:0}.elite-invitation strong{display:block;font-size:15px}.elite-invitation small{display:block;font-size:11px;line-height:1.4;margin-top:3px;color:#76623c}.elite-invitation>b{font-size:12px;white-space:nowrap}
.elite-intro{display:flex;align-items:center;gap:15px;background:#e9e3ce;border-color:#9d8753}.elite-intro img{width:85px;height:100px;object-fit:contain}.elite-intro h3{margin:0 0 8px;font-size:21px}.elite-intro p{font-size:13px;line-height:1.45}.elite-series-nav{display:flex;flex-wrap:wrap;gap:8px}.elite-verification{color:#7b6637;font-size:11px}.elite-phase{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 0 4px}.elite-phase small{font-size:11px;color:#837044}.elite-finish{background:#fff1c5;border-color:#ad8739}
@media(max-width:500px){.elite-invitation{padding:12px;gap:10px}.elite-invitation strong{font-size:13px}.elite-invitation small{font-size:10px}.elite-intro{align-items:flex-start;padding:13px}.elite-intro img{width:62px;height:78px}.elite-intro h3{font-size:18px}.elite-intro p{font-size:12px}.elite-phase strong{font-size:13px}}
