/* A notebook, drawn locally: no fonts, images or other downloads. */
:root {
  --paper: #f5f5f5;
  --ink: #282828;
  --muted: #676767;
  --line: #cecece;
  --lime: #e1e1e1;
  --sheet: #fefefe;
  --hand: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  background: var(--paper);
}
body {
  background-color: var(--paper);
  background-image: repeating-linear-gradient(0deg, transparent, transparent 27px, #cacaca26 27px, #cacaca26 28px);
}
.header { border-bottom: 1px solid #7c7c7c; position: relative; }
.header::after { content: ""; position: absolute; bottom: -4px; left: 0; width: 100%; height: 1px; background: #a8a8a880; transform: rotate(-.1deg); pointer-events: none; }
.brand svg { filter: none; }
.header-actions .icon-button { background: #fefefe; border: 1px solid #898989; border-radius: 3px 6px 4px 5px; }
.nav-button.active { border-bottom-width: 3px; }
.hero { gap: 5%; margin-bottom: 37px; }
.hero h1 { font-weight: 500; letter-spacing: -3.1px; }
.hero-copy .eyebrow { letter-spacing: 1.3px; }
.hero-description { color: #5e5e5e; }
.hero-meta > span:first-child { border-bottom: 1px solid #6f6f6f; padding-bottom: 4px; }
.hero-visual {
  height: 318px; background: #fafafa; border: 1px solid #767676;
  border-radius: 5px 8px 6px 4px; overflow: hidden;
  box-shadow: 3px 3px 0 #fefefe, 4px 4px 0 #b5b5b5;
}
.visual-top { top: 13px; left: 13px; right: 13px; align-items: flex-start; gap: 10px; text-shadow: none; }
.visual-top > span { padding: 6px 8px; color: #4f4f4f; background: #fdfdfdeb; border: 1px solid #b2b2b2; border-radius: 2px 4px 2px 3px; font-size: 7px; letter-spacing: 1px; }
.visual-bottom { bottom: 11px; left: 13px; right: 13px; gap: 9px; text-shadow: none; }
.visual-caption { color: var(--ink); background: #fdfdfded; padding: 8px 11px; border: 1px solid #afafaf; border-radius: 3px 5px 2px 4px; max-width: 85%; }
.visual-caption > span { font-family: var(--hand); font-size: 11px; letter-spacing: .1px; }
.visual-caption small { display: block; font-size: 10px; font-weight: 400; letter-spacing: 0; margin-top: 3px; line-height: 1.4; color: #656565; }
.visual-number { color: #616161; font-family: var(--hand); font-size: 42px; font-weight: 400; letter-spacing: -2px; }
.section-heading h2 { font-size: 16px; }
.section-number { border: 1px solid #979797; border-radius: 45% 52% 48% 46%; padding: 3px 6px; color: #717171; }
.mode-grid { gap: 17px; padding-bottom: 5px; }
.mode-card {
  min-height: 283px; padding: 9px 9px 17px; background: #fefefe;
  color: var(--ink); border: 1px solid #a5a5a5; border-radius: 4px 7px 5px 3px;
  box-shadow: 2px 2px 0 #e2e2e2; transform: none;
  transition: border-color .15s, box-shadow .15s;
}
.mode-card:hover { background: #fefefe; transform: none; border-color: #5d5d5d; box-shadow: 2px 3px 0 #c8c8c8; }
.mode-card.selected { background: #f3f3f3; color: var(--ink); border: 2px solid #5f5f5f; padding: 8px 8px 16px; box-shadow: 3px 3px 0 #cdcdcd; }
.mode-art { width: 100%; height: 106px; position: relative; overflow: hidden; margin-bottom: 14px; border: 1px solid #d7d7d7; background: #f9f9f9; }
.mode-art canvas { display: block; width: 100%; height: 100%; }
.mode-stamp { position: absolute; top: 6px; left: 6px; padding: 3px 6px; color: #616161; background: #fefefee8; border-bottom: 1px solid #b1b1b1; font-size: 8px; letter-spacing: 1px; }
.mode-card-top { margin: 0 7px 9px; min-height: 20px; gap: 5px; }
.mode-world-label, .selected .mode-world-label { color: #767676; font-size: 7px; letter-spacing: .7px; line-height: 1.5; }
.mode-icon { width: 22px; height: 18px; flex: none; }
.mode-index, .selected .mode-index { color: #767676; }
.mode-card h3 { margin: 0 7px 9px; font-size: 19px; line-height: 1.15; }
.mode-card p, .mode-card.selected p { margin: 0 7px; max-width: none; color: #696969; font-size: 11px; line-height: 1.5; }
.mode-card-bottom { padding: 17px 7px 0; font-size: 7px; letter-spacing: .6px; gap: 5px; }
.mode-selected-marker { width: 20px; height: 20px; flex: none; border-radius: 45% 50% 48% 40%; }
.selected .mode-selected-marker { background: #5e5e5e; border-color: #5e5e5e; color: #fdfdfd; }
.training-section { margin-top: 30px; }
.training-config { padding: 18px; border: 1px solid #adadad; border-radius: 4px 6px 3px 5px; background: #fefefed9; box-shadow: 2px 2px 0 #dadada; }
.config-field select, .config-field input { background: transparent; }
.config-field > span { color: #6e6e6e; }
.primary-button { background: #414141; border-color: #414141; border-radius: 4px 6px 3px 5px; box-shadow: 2px 2px 0 #c4c4c4; }
.primary-button:hover { background: #565656; }
.secondary-button { background: #fdfdfd; border-color: #a8a8a8; border-radius: 3px 5px 4px 6px; box-shadow: 1px 2px 0 #e0e0e0; }
.secondary-button:hover { background: #f0f0f0; }
.start-button { min-height: 55px; }
.plan-preview { padding: 20px 0 14px; }
.profile-bars span { background: #bcbcbc; border-radius: 1px 2px 0 0; }
.profile-bars span.done { background: #838383; }
.profile-bars span.current { background: #484848; }
.page-footer { margin-top: 12px; }
.ride-heading { margin-bottom: 22px; }
.road-container { height: clamp(370px, 46vh, 620px); border: 1px solid #808080; border-radius: 5px 7px 3px 5px; box-shadow: 3px 3px 0 #fefefe, 4px 4px 0 #c0c0c0; background: #fafafa; isolation: isolate; }
.road-top { top: 11px; left: 12px; right: 12px; align-items: flex-start; gap: 10px; text-shadow: none; color: #424242; }
.live-pill, #distance-label { padding: 7px 9px; background: #fdfdfdef; border: 1px solid #b4b4b4; border-radius: 2px 4px 2px 3px; }
.live-pill .tiny-dot { background: #7c7c7c; }
#distance-label { font-size: 10px; }
.game-objective { top: 52px; left: 12px; color: #404040; background: #fefefeee; padding: 9px 12px; border: 1px solid #aeaeae; border-radius: 3px 5px 3px 4px; max-width: calc(100% - 24px); text-shadow: none; }
.game-objective > span { font-size: 8px; letter-spacing: .8px; color: #777777; }
.game-objective strong { font-size: clamp(21px, 2.3vw, 33px); }
.game-event { bottom: 8px; left: 12px; right: auto; max-width: calc(100% - 157px); padding: 6px 8px; color: #494949; background: #fefefef0; border: 1px dashed #a7a7a7; border-radius: 2px 4px 3px 5px; font-size: 10px; text-shadow: none; }
.steering { right: 12px; bottom: 9px; gap: 8px; }
.steering > span { color: #616161; background: #fefefee8; padding: 4px; }
.steering button { background: #fefefef0; color: #414141; border: 1px solid #8b8b8b; border-radius: 4px 2px 5px 3px; box-shadow: 1px 2px 0 #d7d7d7; }
.steering button:hover { background: #e9e9e9; }
.metrics { margin-top: 18px; padding: 25px 17px 23px; background: #fefefee8; border: 1px solid #bcbcbc; border-radius: 3px 5px 4px 3px; box-shadow: 2px 2px 0 #e2e2e2; }
.metric > span { color: #6e6e6e; font-size: 10px; }
.metric strong { color: #343434; font-family: Arial, Helvetica, sans-serif; }
.metric small { color: #6f6f6f; }
.workout-panel { padding: 20px; background: #f2f2f2; border: 1px solid #b1b1b1; border-radius: 4px 6px 3px 5px; box-shadow: 2px 2px 0 #d9d9d9; }
.workout-panel h2 { font-size: 21px; }
.panel-heading .mini-label { color: #737373; }
.simulator-panel { padding: 20px 12px; margin-top: 16px; border: 1px solid #c4c4c4; border-radius: 4px 5px 3px 6px; background: #fefefeb8; }
.sim-badge { background: #ececec; border-color: #b4b4b4; color: #676767; }
.session-stats { margin-top: 16px; }
.pause-overlay { background: #f6f6f6ed; color: #414141; backdrop-filter: blur(4px); }
.pause-overlay h2 { font-family: var(--hand); font-size: 39px; letter-spacing: -1.5px; }
.pause-overlay p { color: #767676; }
.pause-overlay .primary-button { background: #484848; color: #fefefe; }
.mission-briefing { margin: 18px 0 6px; padding: 18px; background: #fefefeca; border: 1px solid #b4b4b4; border-radius: 4px 7px 3px 5px; }
.mission-name { color: #4c4c4c; font-family: var(--hand); font-size: 19px; line-height: 1.45; margin: 6px 0; }
.mission-note { color: #797979; font-size: 11px; line-height: 1.6; margin-top: 5px; }
.mission-timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); gap: 9px; margin: 15px 0 0; padding: 0; list-style: none; }
.mission-step { min-width: 0; padding: 10px 10px 9px; border: 1px dashed #b5b5b5; border-radius: 3px 5px 2px 4px; background: #fefefeb3; position: relative; font-size: 11px; line-height: 1.45; }
.mission-step-number { display: block; color: #8a8a8a; font-family: var(--hand); font-size: 12px; margin-bottom: 4px; }
.mission-step strong { display: block; color: #5b5b5b; font-size: 12px; }
.mission-step small { display: block; color: #8a8a8a; font-size: 10px; margin-top: 4px; }
.mission-step.active { background: #ededed; border: 2px solid #787878; padding: 9px 9px 8px; }
.mission-step.complete { background: #f5f5f5; border-style: solid; border-color: #b4b4b4; }
.mission-panel { padding: 18px 18px 16px; margin-bottom: 17px; background: #fefefeee; border: 1px solid #a4a4a4; border-left: 3px solid #777777; border-radius: 3px 6px 4px 5px; box-shadow: 2px 2px 0 #e5e5e5; }
.mission-phase { font-family: var(--hand); color: #4c4c4c; font-size: 19px; line-height: 1.4; margin: 7px 0 9px; }
.mission-message { color: #747474; font-size: 12px; line-height: 1.6; }
.mission-phase-progress { display: block; height: 4px; margin-top: 14px; background: #e1e1e1; border-radius: 0; overflow: hidden; }
.mission-phase-progress > span, .mission-phase-progress > div { display: block; height: 100%; background: #6b6b6b; }
.mission-panel .mini-label { color: #7f7f7f; font-size: 9px; }
dialog { border: 1px solid #8a8a8a; outline: 5px solid #fdfdfd; border-radius: 4px 8px 3px 6px; background: repeating-linear-gradient(0deg, transparent, transparent 27px, #c6c6c62b 27px, #c6c6c62b 28px), #fafafa; box-shadow: 7px 8px 0 #c5c5c57a, 0 20px 100px #1e1e1e29; }
dialog::backdrop { background: #32323266; }
dialog h2 { font-family: var(--hand); font-size: 30px; line-height: 1.3; letter-spacing: -1px; }
.summary-grid > div { border-bottom: 1px solid #c8c8c8; padding-bottom: 11px; }
.history-stats { padding: 24px 20px; border: 1px solid #b7b7b7; background: #fefefec9; border-radius: 3px 5px 3px 6px; box-shadow: 2px 2px 0 #dddddd; }
.history-table { background: #fefefec9; }
.history-table td:first-child, .history-table th:first-child { padding-left: 14px; }
.toast { border: 1px solid #b5b5b5; border-radius: 3px 6px 4px 2px; background: #3d3d3d; color: #fefefe; box-shadow: 2px 3px 0 #b4b4b4; }
@media (min-width: 1700px) {
  .hero-visual { height: 350px; }
  .mode-art { height: 125px; }
  .mode-card { min-height: 300px; }
  .mode-card h3 { font-size: 22px; }
  .mode-card p { font-size: 13px; }
  .mode-world-label { font-size: 9px; }
  .visual-caption > span { font-size: 13px; }
  .visual-caption small { font-size: 12px; }
  .mission-message { font-size: 14px; }
}
@media (max-width: 1100px) {
  .hero { gap: 4%; }
  .hero-visual { height: 290px; }
  .mode-grid { gap: 12px; }
  .mode-art { height: 90px; }
  .mode-card { min-height: 284px; padding: 7px 7px 14px; }
  .mode-card.selected { padding: 6px 6px 13px; }
  .mode-card h3 { font-size: 17px; margin-left: 4px; margin-right: 4px; }
  .mode-card p { font-size: 11px; margin-left: 4px; margin-right: 4px; }
  .mode-card-top { margin-left: 4px; margin-right: 4px; }
  .mode-world-label { font-size: 6px; letter-spacing: .5px; }
  .mode-card-bottom { padding-left: 4px; padding-right: 4px; font-size: 6.5px; }
  .training-config { padding: 15px; gap: 17px; }
  .road-container { height: 420px; }
  .metrics { padding: 22px 12px; }
  .metric > span { font-size: 8px; }
  .workout-panel { padding: 17px; }
  .workout-panel h2 { font-size: 19px; }
  .game-event { max-width: calc(100% - 110px); font-size: 9px; }
  .mission-panel { padding: 15px; }
  .mission-phase { font-size: 17px; }
  .mission-message { font-size: 11px; }
}
@media (max-width: 760px) {
  .hero { margin-bottom: 30px; gap: 24px; }
  .hero-visual { height: 253px; }
  .hero h1 { letter-spacing: -2.5px; }
  .visual-caption small { font-size: 9px; }
  .mode-grid { gap: 14px 12px; }
  .mode-art { height: 105px; }
  .mode-card h3 { font-size: 17px; }
  .mode-card p { font-size: 11px; }
  .training-config { padding: 18px; }
  .road-container { height: 375px; }
  .metrics { padding: 22px 10px; }
  .metric { padding: 0 6px; }
  .metric > span { font-size: 7px; }
  .metric strong { font-size: clamp(25px, 6.1vw, 45px); }
  .ride-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .mission-panel { grid-column: 1 / -1; margin: 5px 0 0; }
  .mission-message { font-size: 12px; }
  .workout-panel { margin-top: 0; }
  .simulator-panel { margin-top: 0; padding: 18px 11px; }
  .range-label { gap: 8px; }
  .game-objective { top: 51px; padding: 8px 10px; left: 10px; }
  .game-objective strong { font-size: 24px; }
  .game-event { padding: 6px; left: 8px; font-size: 8px; }
  .road-top { left: 10px; right: 10px; }
  .live-pill, #distance-label { padding: 6px; font-size: 7px; }
  .mission-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mission-briefing { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .mode-card { transition: none; } }
