/* Extension: retain the existing cream/ink/green UI; add only player controls.
   Dials: variance 1, motion 3, density 4, assets 8, brand fidelity 10.
   Read 3.9–6.5s, then hold the resulting screen for 1.1s. */
.tour-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
#tourStatus{font-size:10px;color:#666;white-space:nowrap}
.walk-progress{gap:3px;margin:10px 0 12px}
.walk-progress button{flex:1;min-width:0;padding:8px 0;border:0;background:transparent;cursor:pointer}
.walk-progress button i{display:block;height:3px;background:#ddd;border-radius:4px}
.walk-progress button.on i,.walk-progress button.current i{background:#65ad00}
.walk-progress button.current i{height:5px}
.tour-copy{min-height:116px}
.tour-time{height:2px;background:#e5e1d9;margin-top:12px;overflow:hidden;border-radius:2px}
.tour-time i{display:block;width:0;height:100%;background:#65ad00}
.walk-controls{gap:6px;margin-top:12px}
.walk-controls button{min-height:40px;cursor:pointer}
.walk-controls #tourPlay{flex:1;background:#111;color:#fff;padding:9px 12px;white-space:nowrap}
.walk-controls .tour-next{background:transparent;color:#111}
.walk-controls button:disabled{opacity:.3;cursor:default}
.walk-controls button:focus-visible,.walk-progress button:focus-visible{outline:2px solid #65ad00;outline-offset:3px}
.tour-marker{position:fixed;z-index:100;pointer-events:none;border:2px solid #65ad00;border-radius:9px;box-shadow:0 0 0 4px #65ad0026,0 0 20px 5px #65ad0055;animation:tour-breathe 1.8s ease-in-out infinite}
.tour-marker[hidden]{display:none}
.tour-marker.is-paused{animation-play-state:paused}
@keyframes tour-breathe{50%{box-shadow:0 0 0 6px #65ad0020,0 0 26px 7px #65ad0066}}
@media(prefers-reduced-motion:reduce){.tour-marker{animation:none}}
@media(max-width:620px){
 /* Keep the tour below the phone, not over the buttons being demonstrated. */
 .stage{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;height:100dvh;min-height:0;gap:0}
 .device-wrap{grid-row:1;min-height:0;height:100%;width:100%}
 .hint-panel{grid-row:2;grid-column:1;order:initial;display:flex;flex-direction:column;min-height:0;max-height:44dvh;overflow:auto;background:#fffcf8}
 .hint-panel .walk-card{display:block;order:-1;padding:9px 14px 10px;border:0;border-radius:0;border-bottom:1px solid #d6d2c9;flex:none}
 .tour-top .eyebrow{font-size:9px}
 .walk-progress{margin:2px 0;gap:4px}
 .walk-progress button{padding:5px 0}
 .tour-copy{min-height:0}
 .walk-card h2{font-size:15px;margin:3px 0}
 .walk-card p{font-size:11px;line-height:1.35;margin:3px 0;min-height:30px}
 .tour-time{margin-top:6px}
 .walk-controls{margin-top:5px}
 .walk-controls button{min-height:36px;padding:6px 12px}
 .scenario-controls{flex:none;padding:7px 12px}
 .portal-head{min-height:70px}
 .ios-status{height:28px;padding-bottom:3px}
 .browserbar{height:38px}
}

/* Readable tour copy: larger instructions, panel sits next to the phone. */
.hint-panel{max-width:400px}
.walk-card .tour-top .eyebrow,#tourStatus{font-size:12px;letter-spacing:.06em}
.walk-card h2{font-size:clamp(24px,2.3vw,30px);line-height:1.15;letter-spacing:-.01em;margin:6px 0 10px}
.walk-card p{font-size:18px;line-height:1.45;margin:0}
.tour-copy{min-height:150px}
.walk-controls button{min-height:46px;font-size:15px}
/* Embedded on a guide page: no duplicate intro, phone + instructions side by side. */
html.is-embed body{background:transparent}
html.is-embed .intro{display:none}
@media(min-width:621px){
 html.is-embed .stage{grid-template-columns:auto minmax(320px,400px);justify-content:center;gap:40px;min-height:0;padding:12px 0}
 html.is-embed .device-wrap{grid-column:1;grid-row:1}
 html.is-embed .hint-panel{grid-column:2;grid-row:1;width:100%;justify-self:stretch;align-self:center}
 html.is-embed .walk-card{background:#fffcf8;border-radius:10px;padding:22px 24px}
}
@media(max-width:620px){
 .walk-card h2{font-size:20px;margin:4px 0 6px}
 .walk-card p{font-size:15px;line-height:1.4;min-height:42px}
 .walk-controls button{min-height:42px;font-size:14px}
}

/* Scenario amount only matters in Follower Hub; hide it on home, menu, browse and strategy details. */
body:has([data-screen="home"]) #scenarioControls,
body:has([data-screen="browse"]) #scenarioControls,
body:has([data-screen="details"]) #scenarioControls{display:none}
