/* Stridebound 2.1: original platform-adventure presentation.
   Layout and workout state remain in style.css and app.js. */
:root {
  --ink: #23324f;
  --yellow: #ffc857;
  --coral: #f48667;
  --sky: #d9f2f5;
  --purple: #e9e4fa;
  --radius: 18px;
}
body { background: var(--bg); font-size: 14px; }
h1,h2,h3 { font-weight: 800; }
h1 { letter-spacing: -1.3px; line-height: 1.13; }
p { line-height: 1.65; }
strong { font-weight: 750; }
.eyebrow { font-weight: 800; letter-spacing: 1.6px; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible { outline: 3px solid #ac381d; outline-offset: 4px; }
.sidebar { width: 218px; padding: 30px 18px; border-right: 2px solid var(--ink); }
.brand { letter-spacing: -.6px; font-size: 18px; font-weight: 900; gap: 8px; }
.brand-symbol { display: grid; place-items: center; background: var(--yellow); border: 2px solid var(--ink); width: 34px; height: 34px; color: var(--ink); border-radius: 10px; box-shadow: 2px 2px 0 var(--ink); }
.brand-sub { margin-left: 42px; margin-bottom: 36px; letter-spacing: 1.3px; color: #5f687b; }
.nav-label { font-weight: 800; font-size: 9px; }
.nav { gap: 8px; }
.nav button { border: 2px solid transparent; padding: 12px; color: #566074; font-weight: 650; }
.nav button:hover { background: #e8f2ea; color: var(--ink); }
.nav button.active { background: #fff0c5; color: var(--ink); border-color: var(--ink); box-shadow: 2px 3px 0 var(--ink); }
.sidebar-note { background: #eaf4e7; border: 1px solid #bed1b8; border-radius: 14px; margin-bottom: 18px; padding: 18px 14px; }
.sidebar-note strong { font-size: 13px; }
.sidebar-note p { color: #4c6357; }
.avatar { width: 38px; height: 38px; border: 2px solid var(--ink); background: #ffe5d9; color: var(--ink); font-weight: 800; }
.avatar svg { width: 34px; height: 34px; }
.profile-button strong { font-size: 13px; }
.main { margin-left: 218px; padding-left: 36px; padding-right: 36px; }
.topbar { height: 72px; border-bottom: 1px solid #cfd4cc; }
.topbar-brand { letter-spacing: -.4px; font-weight: 900; }
.topbar .status-dot { background: #197a65; }
.topbar-brand svg { color: var(--ink); }
.page { padding-top: 30px; }
.page-heading { margin-bottom: 24px; }
.page-heading h1 { max-width: 780px; }
.page-heading .eyebrow { color: #176f61; margin-bottom: 9px; }
.page-heading p { margin-top: 10px; font-size: 13px; }
.card { background: #fffef8; border: 2px solid var(--ink); box-shadow: 3px 4px 0 #23324f; }
.btn { border-width: 2px; border-radius: 11px; font-weight: 750; min-height: 46px; transition: transform .15s,box-shadow .15s; }
.btn:hover { filter: none; transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn:disabled { transform: none; box-shadow: none; opacity: .55; }
.btn.primary { background: var(--yellow); color: var(--ink); border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.btn.secondary { background: #eef5e7; border-color: #83938a; color: var(--ink); }
.btn.ghost { background: #fffdf6; border-color: #b1bbbd; color: #36465d; }
.btn.danger { color: #8c302a; background: #ffebe3; border-color: #bc6c5f; }
.btn.large { min-height: 54px; font-size: 14px; }
.btn.small { min-height: 40px; }
.icon-btn { color: #41516a; border: 1.5px solid #abb6b9; background: #fffef8; min-width: 38px; }
.icon-btn:hover { background: #fff0c5; }
.text-btn { font-weight: 750; min-height: 36px; color: #176f61; }
.pill { color: #155d50; background: #dcefdc; border: 1px solid #9dbca0; font-weight: 800; padding: 7px 9px; }
.pill.soft { background: #eef1ea; color: #4d5e5d; border-color: #c9d1c3; }
.pill.gold { background: #fff0ba; color: #704812; border-color: #cfaa5e; }
.pill.blue { background: #e3f1ff; color: #345f97; border-color: #a3c3df; }
.pill.muted { background: #eeefeb; color: #5f687b; border-color: #ccd0c7; }
.pill.demo { background: #fff0c5; color: #75471a; border-color: #d7b260; }
.today-grid { grid-template-columns: minmax(0,1.65fr) minmax(270px,1fr); gap: 23px; align-items: stretch; }
.start-card { display: block; min-height: 0; padding: 0; background: #fffef8; border: 2px solid var(--ink); border-radius: 20px; box-shadow: 4px 5px 0 var(--ink); overflow: hidden; }
.start-art { position: relative; background: #bceaf0; height: 220px; border-bottom: 2px solid var(--ink); overflow: hidden; }
.start-art > svg { width: 100%; height: 100%; display: block; }
.stage-label { position: absolute; z-index: 2; top: 14px; left: 16px; display: inline-flex; align-items: center; gap: 7px; border: 2px solid var(--ink); border-radius: 7px; background: #fff9e4; color: var(--ink); padding: 7px 9px; font-size: 10px; font-weight: 850; letter-spacing: 1px; box-shadow: 2px 2px 0 #23324f35; }
.start-art > .pill { position: absolute; right: 12px; bottom: 11px; z-index: 2; background: #fff8e7; border-color: #9caa8e; font-size: 8px; }
.stage-label strong { font-weight: 700; letter-spacing: 0; }
.start-copy { padding: 24px 27px 25px; }
.start-card .eyebrow { color: #657476; font-size: 9px; }
.start-card h2 { font-size: 34px; font-weight: 850; letter-spacing: -1.5px; max-width: none; margin: 13px 0 12px; line-height: 1.12; }
.start-card h2 em { color: #176f61; }
.start-card p { max-width: 440px; color: #586375; font-size: 12px; }
.start-card .start-actions { margin-top: 21px; gap: 10px; }
.start-card .micro { color: #5a6879; margin-top: 13px; font-size: 10px; }
.adventure-wallet { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adventure-wallet > span { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #b1bab0; border-radius: 9px; padding: 8px 10px; background: #fffdf6; color: #425568; font-size: 11px; font-weight: 750; }
.adventure-wallet svg { color: #976100; }
.week-card { background: #e8e5fa; padding: 27px; justify-content: center; box-shadow: 3px 4px 0 #23324f; }
.week-card .pill { background: #f7f5ff; border-color: #b5adcf; color: #615185; }
.week-card .eyebrow { color: #574972; }
.week-number { font-weight: 850; font-size: 83px; letter-spacing: -5px; margin-top: 34px; margin-bottom: 24px; }
.week-number span { color: #746989; font-weight: 700; font-size: 26px; }
.progress-track { height: 9px; background: #e7e9df; border: 1px solid #b9c4b4; border-radius: 8px; }
.progress-track > span { background: #168271; }
.week-card .progress-track { height: 12px; background: #d6cfe9; border-color: #a297bc; }
.week-card .progress-track > span { background: #8c76b9; }
.week-day { color: #605674; font-weight: 650; }
.week-day .circle { width: 30px; height: 30px; border: 1.5px solid #aba1c4; background: #f4f0ff; }
.week-day.today .circle { color: var(--ink); border: 2px solid var(--ink); background: var(--yellow); }
.week-day.active .circle { color: #fff; background: #176f61; border: 1.5px solid #176f61; }
.week-card .weekly-foot { color: #615770; line-height: 1.7; margin-top: 26px; }
.stat-strip { border: 1px solid #c8d0c4; background: #eef2e8; box-shadow: none; border-radius: 13px; margin-top: 23px; }
.stat-block strong { font-size: 25px; font-weight: 800; }
.stat-icon { background: #fffef8; color: #277363; border: 1px solid #c4d0ba; }
.stat-block p { font-weight: 600; color: #596979; }
.section-heading { margin-top: 30px; }
.section-heading h2 { font-size: 19px; }
.workout-grid { gap: 18px; }
.workout-card { min-height: 204px; border: 1.5px solid var(--ink); box-shadow: 2px 3px 0 var(--ink); background: #e6f3ff; }
.workout-card:nth-child(2) { background: #eaf3ce; }
.workout-card:nth-child(3) { background: #ffe9d8; }
.workout-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.workout-card .workout-symbol { color: var(--ink); background: #fffdf6; border: 1.5px solid var(--ink); border-radius: 11px; }
.workout-card h3 { font-size: 18px; }
.workout-card p,.workout-card .workout-bottom { color: #566475; }
.quest-feature { box-shadow: 2px 3px 0 var(--ink); background: #fffdf6; }
.quest-thumb { background: #bceaf0; position: relative; overflow: hidden; }
.quest-thumb > svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.quest-feature-copy { padding-right: 20px; }
.quiet-card { background: #edf5e8; border: 1px solid #b8c9b0; box-shadow: none; }
.quiet-card > svg { color: #267b69; }
.quiet-card h3 { font-size: 17px; }
.home-companion { display: grid; place-items: center; width: 115px; flex-shrink: 0; }
.home-companion > svg { width: 115px; height: 115px; }
.companion-card { position: relative; background: #fff0d2; padding: 20px; display: flex; align-items: center; gap: 15px; }
.companion-card .companion-art { width: 115px; height: 110px; flex-shrink: 0; }
.companion-card p { font-size: 12px; }
.companion-card h3 { font-size: 16px; margin-bottom: 7px; }
.notice { color: #475d47; background: #edf5e5; border: 1px solid #b5c9a4; }
.notice strong { color: #284435; }
.notice.warning { background: #fff1ca; border-color: #d3ac5e; color: #765216; }
.notice.error { background: #ffebe2; border-color: #cd8c74; color: #903d2f; }
.resume-banner { border: 2px solid #667b57; background: #e6f1ce; }
.choice-tabs { background: #ebece3; border-color: #c4cdba; }
.choice-tabs button { font-weight: 700; }
.choice-tabs button.active { background: #fffef8; color: var(--ink); box-shadow: 0 1px 3px #23324f22; }
.plan-header { background: #e5f0d4; }
.week-button { background: #fffdf6; border: 1.5px solid #bdc8b5; border-bottom-width: 3px; }
.week-button.active { border-color: var(--ink); background: var(--yellow); color: var(--ink); }
.week-button.done { border-color: #367b66; background: #d7eedb; }
.phase-bars span { background: #71b193; }
.phase-bars span[data-type="run"],.phase-bars span[data-type="steady"] { background: #176f61; }
.phase-bars span[data-type="warmup"],.phase-bars span[data-type="cooldown"] { background: #88b9cc; }
.quest-grid { margin-top: 24px; gap: 22px; }
.quest-card { padding: 0; box-shadow: 3px 4px 0 var(--ink); }
.quest-cover,.quest-card:nth-child(n) .quest-cover { background: #c6e9ee; filter: none; height: 166px; position: relative; overflow: hidden; padding: 14px; border-bottom: 2px solid var(--ink); }
.quest-cover > svg { position: absolute; width: 100%; height: 100%; inset: 0; }
.quest-cover .pill,.quest-cover .chapter-number { position: relative; z-index: 1; }
.chapter-number { color: var(--ink); text-shadow: none; background: #fff8de; border: 2px solid var(--ink); border-radius: 9px; min-width: 36px; height: 36px; text-align: center; line-height: 32px; font-size: 18px; box-shadow: 2px 2px 0 #23324f; }
.quest-body { padding: 22px; }
.quest-body .eyebrow { font-size: 8px; letter-spacing: 1.2px; }
.quest-body h3 { font-size: 19px; }
.episode-hero { position: relative; overflow: hidden; padding: 16px; background: #bceaf0; border: 2px solid var(--ink); height: 200px; }
.episode-hero > svg { position: absolute; width: 100%; height: 100%; inset: 0; }
.episode-hero .pill { position: relative; z-index: 1; }
.scene-number { color: #526275; background: #edf3e3; border: 1px solid #c3ceb6; font-weight: 750; }
.base-header { background: #e5f4dd; gap: 22px; }
.base-header p { color: #4d6556; }
.base-illustration { height: 210px; max-height: none; }
.building-icon { color: #566641; border: 2px solid var(--ink); background: #ecf4cf; box-shadow: 2px 2px 0 var(--ink); }
.building-card:nth-child(2) .building-icon { background: #e1ecff; }
.building-card:nth-child(3) .building-icon { background: #ffe1d8; }
.building-level { font-weight: 800; letter-spacing: .5px; color: #815017; }
.trophy-card { box-shadow: none; border: 1px solid #c2cbb7; background: #f3f5de; }
.trophy-card.locked { opacity: 1; border-color: #d5d9d1; background: #efefe9; }
.trophy-card.locked h3,.trophy-card.locked p { color: #717888; }
.trophy-card .trophy-art { background: #ffe59f; color: #845513; border: 1px solid #d1b25b; }
.trophy-card.locked .trophy-art { background: #e1e4da; color: #6e7880; border-color: #c5cbbf; }
.collectible { background: #fff6d8; border: 1.5px solid #c9ad67; }
.collectible.locked { opacity: 1; background: #efefe9; border-color: #d2d7ce; }
.collectible.locked h3,.collectible.locked p,.collectible.locked > svg { color: #717888; }
.supply { background: #fff5d3; border: 1px solid #cbb87b; color: #4f5e56; }
.supply svg { color: #8c5c12; }
.summary-badge { background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 3px 3px 0 var(--ink); }
.summary-stats { background: #edf4e7; border-color: #c7d1bd; }
.summary-header h2 { font-weight: 800; }
.reward-note { background: #fff0bd; border-color: #cbaa58; color: #79510c; }
.field > span { color: #43536a; font-weight: 700; }
.field input,.field select { color: var(--ink); background: #fffef8; border: 1.5px solid #adb9ac; }
.settings-card { box-shadow: none; border: 1px solid #bfc9b7; }
.switch { background: #c1c8c4; border: 1px solid #87968a; }
.switch::after { top: 2px; left: 2px; background: #fffef8; box-shadow: 0 1px 2px #23324f40; }
.switch[aria-checked="true"] { background: #176f61; border-color: #176f61; }
.switch[aria-checked="true"]::after { background: #fffef8; }
.music-panel { background: #edf3e7; border-color: #bdcbb5; }
.dialog-backdrop { background: #20324f88; backdrop-filter: blur(5px); }
.dialog { background: #fffdf6; border: 2px solid var(--ink); box-shadow: 6px 7px 0 #23324f; }
.dialog h2 { font-weight: 850; }
.dialog-section > label,.dialog-section > .label { color: #526176; font-weight: 700; }
.segmented button { background: #f0f2e9; color: #526176; border: 1.5px solid #bdc7b6; }
.segmented button[aria-pressed="true"] { background: #fff0c5; border-color: var(--ink); color: var(--ink); box-shadow: 0 2px 0 var(--ink); }
.prep-story { background: #eaf3e4; border-color: #bbcbae; }
.prep-story select { background: #fffdf6; border-color: #b7c4b2; }
.history-row .history-icon { background: #eaf5df; border-color: #8ca67c; }
.history-row:hover { background: #f5f6eb; }
.chart-column .bar { border: 1px solid #367c69; border-bottom: 0; background: #90bda1; }
.chart-column.today .bar { background: #ffc857; border-color: #b98a30; }
.chart-column strong { color: #4b6553; }
.filter-bar button.active { color: var(--ink); background: #fff0c5; border-color: var(--ink); }
.footer { color: #778076; }
.footer .text-btn { color: #5c6f61; }
#toast { background: #fff6d8; color: var(--ink); border: 2px solid var(--ink); box-shadow: 3px 4px 0 var(--ink); font-weight: 650; }
.upload-status { background: #e4f1dd; color: #426538; }
.run-layout { min-height: 100svh; background: #e9f4eb; }
.run-layout .topbar { border-bottom-color: #c3d6c0; }
.run-header h1 { font-weight: 800; }
.run-console { border: 2px solid var(--ink); box-shadow: 4px 5px 0 var(--ink); background: #fffdf6; }
.run-phase { color: #176f61; font-size: 16px; font-weight: 800; }
.run-clock { color: var(--ink); font-weight: 800; font-size: 94px; }
.run-instruction { color: #526176; }
.run-metrics { border-color: #c8d3c1; }
.run-metrics strong { font-weight: 800; font-size: 28px; }
.run-controls { gap: 14px; }
.run-controls .btn { min-height: 58px; font-size: 14px; }
.run-story { box-shadow: none; border: 1px solid #a4bda4; background: #f6faed; margin-top: 18px; }
.run-story h3 { font-size: 18px; }
.run-story .radio-status { color: #176f61; font-weight: 800; }
.story-caption { color: #526176; }
.run-world { position: relative; background: #fffdf6; border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; box-shadow: 3px 4px 0 var(--ink); }
.run-world-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 15px; border-bottom: 1px solid #b5c6bc; font-size: 10px; font-weight: 800; color: #546176; text-transform: uppercase; letter-spacing: .6px; }
.run-world > svg,.run-world-scene > svg { display: block; width: 100%; height: 132px; }
.run-world .screen-note { padding: 9px 13px; font-size: 9px; background: #fffdf6; }
.chase-banner { border: 2px solid #9d6c25; background: #ffe6ad; color: #704b1d; }
.chase-banner strong { color: #704714; }
.chase-banner p { color: #735726; }
.chase-banner .btn { background: #fff4d7; color: #67451d; border-color: #a47840; }
.paused-banner { background: #fff3c6; color: #665526; border-color: #b6a265; }
.run-details summary { color: #4c6259; font-weight: 700; }
.run-details .card { box-shadow: none; border: 1px solid #a9bda2; }
.run-side .notice { margin-top: 18px; }
@media (min-width:1600px) {
  .sidebar { width: 235px; }
  .main { margin-left: 235px; }
  .run-layout .main { margin-left: 0; }
  .start-art { height: 265px; }
  .start-card h2 { font-size: 39px; }
}
@media (max-width:1150px) {
  .sidebar { width: 194px; padding: 28px 14px; }
  .brand { font-size: 16px; gap: 7px; }
  .brand-symbol { width: 30px; height: 30px; }
  .main { margin-left: 194px; padding-left: 25px; padding-right: 25px; }
  .today-grid { grid-template-columns: minmax(0,1.5fr) minmax(240px,1fr); gap: 20px; }
  .start-copy { padding: 22px; }
  .start-card h2 { font-size: 30px; }
  .week-card { padding: 23px; }
  .week-number { font-size: 73px; }
  .run-layout .main { margin-left: 0; }
}
@media (max-width:860px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding: 0 22px 100px; }
  .topbar { height: 64px; }
  .page { padding-top: 24px; }
  .topbar-brand { color: var(--ink); }
  .mobile-nav { background: #fffdf6fa; border-top: 2px solid var(--ink); backdrop-filter: blur(12px); padding-top: 7px; }
  .mobile-nav button { color: #657180; font-weight: 750; padding: 7px 4px; gap: 5px; min-height: 51px; }
  .mobile-nav button.active { color: #176f61; background: #e4efda; border-radius: 10px; }
  .run-side { display: block; }
  .run-world { max-width: none; }
  .run-world > svg,.run-world-scene > svg { height: 145px; }
}
@media (max-width:620px) {
  h1 { font-size: 29px; }
  .main { padding-left: 18px; padding-right: 18px; }
  .page-heading { margin-bottom: 20px; gap: 12px; }
  .page-heading p { max-width: 315px; font-size: 12px; }
  .page-heading .eyebrow { font-size: 9px; }
  .page-heading .adventure-wallet { display: none; }
  .today-grid { grid-template-columns: 1fr; gap: 20px; }
  .start-card { border-radius: 17px; padding: 0; background: #fffef8; }
  .start-art { height: 200px; }
  .stage-label { top: 12px; left: 12px; font-size: 9px; padding: 6px 8px; }
  .start-copy { padding: 22px 21px 23px; }
  .start-card h2 { font-size: 32px; max-width: 100%; letter-spacing: -1.25px; margin: 12px 0; }
  .start-card p { max-width: none; font-size: 12px; }
  .start-card .start-actions { gap: 9px; margin-top: 20px; }
  .start-card .start-actions .btn.primary { width: 100%; flex: auto; min-height: 53px; }
  .start-card .start-actions .btn.ghost { width: 100%; min-height: 42px; font-size: 11px; background: transparent; border: 0; box-shadow: none; padding: 7px; }
  .start-card .micro { font-size: 9px; margin-top: 7px; }
  .week-card { padding: 20px; }
  .week-number { font-size: 46px; letter-spacing: -2px; margin: 18px 0 12px; }
  .week-number span { font-size: 21px; }
  .week-card .weekly-foot { margin-top: 5px; font-size: 10px; }
  .week-dots { margin-top: 10px; margin-bottom: 12px; }
  .stat-strip { margin-top: 20px; }
  .stat-block { padding: 17px 7px; }
  .stat-block strong { font-size: 23px; }
  .workout-grid { gap: 14px; }
  .workout-card { padding: 18px; min-height: 0; }
  .workout-card h3 { font-size: 16px; }
  .section-heading { margin-top: 27px; }
  .section-heading h2 { font-size: 18px; }
  .quest-feature { gap: 12px; }
  .quest-thumb { width: 100px; }
  .quest-feature-copy { padding: 18px 13px 18px 0; }
  .companion-card { padding: 18px 12px; gap: 9px; }
  .companion-card .companion-art { width: 95px; height: 100px; }
  .quiet-card { padding: 19px; gap: 14px; }
  .home-companion { width: 80px; }
  .home-companion > svg { width: 90px; height: 95px; }
  .quest-grid { gap: 20px; }
  .quest-cover,.quest-card:nth-child(n) .quest-cover { height: 170px; }
  .base-header { padding: 23px; }
  .base-illustration { height: 180px; }
  .dialog { border-radius: 17px; padding: 25px 20px; }
  .dialog h2 { font-size: 25px; }
  .episode-hero { height: 160px; }
  .run-layout .main { padding: 0 16px 25px; }
  .run-layout .topbar { height: 59px; }
  .run-layout .page { padding-top: 19px; }
  .run-header { align-items: flex-start; gap: 10px; }
  .run-header h1 { font-size: 20px; }
  .run-header .pill { margin-top: 3px; }
  .run-console { padding: 23px 18px; }
  .run-phase { font-size: 15px; }
  .run-clock { font-size: 78px; margin-top: 21px; font-weight: 800; }
  .run-instruction { font-size: 13px; margin: 17px auto 20px; min-height: 42px; }
  .run-metrics { margin: 21px 0; padding: 20px 0; }
  .run-metrics strong { font-size: 25px; }
  .run-controls .btn { min-height: 56px; font-size: 13px; }
  .run-grid { gap: 20px; }
  .run-story { padding: 21px; }
  .run-world > svg,.run-world-scene > svg { height: 125px; }
  .run-world-heading { padding: 11px 13px; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation: none!important; transition: none!important; scroll-behavior: auto!important; }
}
