/* The Journey guide · v6 (8 Nov 2026). The game side of Misclo, explained: a dark hero with a live quest card, the campaign chain,
   an example map, four mode cards, a day simulator with a real level-up, the E–S ladder, self-attested badges and the inactivity
   slider. Motion is short and bounded (WCAG 2.2.2) and switches off with reduced motion. Text accents are darkened for contrast. */
:root { --m-essential: #34a58a; --m-balanced: #3e6bef; --m-intensive: #ed7073; --m-legendary: #e5b767; --dim: #aeb4bd; --soft-on-dark: #c9cdd4; }

/* hero */
.gm-hero { padding: 112px 0 56px; }
.gm-hero-in { position: relative; display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .gm-hero-in { grid-template-columns: 1.15fr .85fr; gap: 56px; } .gm-hero { padding: 132px 0 80px; } }
.gm-hero-copy { display: grid; gap: 16px; justify-items: start; }
.gm-hero .lede { color: var(--soft-on-dark); }
.gm-status { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gm-hero .tag { white-space: normal; }
.gm-hero .tag--m { background: #fbfaf71a; color: var(--ivory); box-shadow: inset 0 0 0 1px #fbfaf733; }
.gm-hero .tag--soon { color: var(--soft-on-dark); border-color: #8a909a; }
.gm-hero .row { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 0; }

.gm-card { position: relative; width: 100%; max-width: 420px; justify-self: center; border-radius: 26px; padding: 20px; display: grid; gap: 14px;
  background: linear-gradient(160deg, #222830, #15181e); box-shadow: var(--sculpt-dark), inset 0 0 0 1px #ffffff17; transform: rotate(-1.2deg); }
.gm-card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, #e5b76780, transparent 40%, #3e6bef66); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.gm-card-top { display: flex; align-items: center; gap: 12px; }
.gm-card-top .face { width: 44px; height: 44px; }
.gm-card-top b { display: block; font: 700 16px/1.2 var(--font-display); color: var(--ivory); }
.gm-card-top small { display: block; color: var(--dim); font-size: 13px; font-weight: 650; }
.rank-chip { margin-left: auto; flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font: 700 21px/1 var(--font-display); color: #fff;
  background: var(--rc, #5d626b); box-shadow: inset 0 1px 0 #ffffff40, 0 8px 18px -10px var(--rc, #000); transition: background .4s; }
.rank-chip[data-r="E"] { --rc: #5d626b; } .rank-chip[data-r="D"] { --rc: #23775f; } .rank-chip[data-r="C"] { --rc: #2f56c9; }
.rank-chip[data-r="B"] { --rc: #7550c4; } .rank-chip[data-r="A"] { --rc: #b6474b; } .rank-chip[data-r="S"] { --rc: #a87a2a; }
.rank-chip.burst { animation: burst 1.2s var(--spring); }
@keyframes burst { 0% { transform: scale(1); box-shadow: 0 0 0 0 #e5b767aa; } 35% { transform: scale(1.35) rotate(-8deg); } 100% { transform: none; box-shadow: 0 0 0 22px #e5b76700; } }
.gm-lvl { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.gm-lvl b { font: 700 22px/1 var(--font-display); color: var(--ivory); }
.gm-lvl span { color: var(--dim); font-weight: 700; font-size: 14px; }
.gm-bar { position: relative; display: block; height: 10px; border-radius: 6px; background: #ffffff17; overflow: hidden; }
.gm-bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--brass-shade), var(--brass), var(--brass-light)); transition: width 1s var(--ease); }
.gm-quests { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gm-quests li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #ffffff0b; font-size: 14px; line-height: 1.3; font-weight: 650; color: var(--soft-on-dark); }
.gm-quests li > span { width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 2px #ffffff45; display: grid; place-items: center; }
.gm-quests li.done { color: var(--ivory); }
.gm-quests li.done > span { background: var(--m-essential); box-shadow: none; }
.gm-quests li.done > span::after { content: ''; width: 10px; height: 5px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.gm-quests li.pop > span { animation: pop .5s var(--spring); }
.gm-quests li b { font: 800 13px/1 var(--font-body); color: var(--brass); }
.gm-toast { margin: 0; justify-self: start; padding: 8px 12px; border-radius: 12px; background: var(--brass); color: #2a1d06; font: 800 13px/1.2 var(--font-body); opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.gm-toast.on { opacity: 1; transform: none; }

/* the chain: game words over training words */
.chain { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; counter-reset: c; }
@media (min-width: 760px) { .chain { grid-template-columns: repeat(6, 1fr); gap: 12px; } .chain li:not(:last-child)::after { content: ''; position: absolute; right: -12px; top: 50%; width: 12px; height: 2px; background: var(--line-strong); } }
.chain li { position: relative; }
.chain button { width: 100%; height: 100%; min-height: 80px; border: 0; cursor: pointer; border-radius: 16px; background: #fff; color: var(--graphite); font: inherit; text-align: left;
  box-shadow: var(--sculpt), inset 0 0 0 1px var(--line); display: grid; align-content: center; justify-items: start; gap: 3px; padding: 12px 14px; transition: transform .25s var(--ease), background .25s, box-shadow .25s; }
.chain button::before { counter-increment: c; content: counter(c); font: 800 11.5px/1 var(--font-body); letter-spacing: .06em; color: var(--slate); }
.chain button b { font: 700 17px/1.1 var(--font-display); }
.chain button span { font-size: 13px; line-height: 1.25; font-weight: 650; color: var(--ink2); }
.chain button:hover { transform: translateY(-2px); }
.chain button[aria-pressed="true"] { background: var(--graphite); color: var(--ivory); box-shadow: 0 16px 30px -18px #1d2128; }
.chain button[aria-pressed="true"]::before, .chain button[aria-pressed="true"] span { color: var(--soft-on-dark); }
html.js .chain.in-view button { animation: lit .9s var(--ease) both; animation-delay: calc(var(--k) * 140ms); }
@keyframes lit { 0% { opacity: 0; transform: translateY(12px); } 50% { opacity: 1; box-shadow: var(--sculpt), inset 0 0 0 2px var(--brass); } 100% { transform: none; } }
.chain-panel { border-radius: var(--r); background: #fff; box-shadow: var(--sculpt); padding: 20px 22px; min-height: 150px; }
.cp-in { display: grid; gap: 8px; animation: optIn .35s var(--ease) both; }
.chain-panel h3 { font: 650 clamp(22px, 4.6vw, 28px)/1.15 var(--font-display); letter-spacing: -.02em; }
.chain-panel p:not(.kicker) { margin: 0; color: var(--ink2); font-size: 16px; line-height: 1.55; max-width: 72ch; }

/* two-column sections */
.gm-map-wrap, .gm-two { display: grid; gap: 28px; }
@media (min-width: 960px) { .gm-map-wrap, .gm-two { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
.gm-two .head, .gm-map-wrap .head { margin-bottom: 0; }
.gm-points { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.gm-points li { position: relative; padding-left: 28px; color: var(--ink2); font-size: 15.5px; line-height: 1.5; }
.gm-points li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 11px; height: 11px; border-radius: 3px; background: var(--brass); transform: rotate(45deg); }
.gm-points b { color: var(--graphite); }

/* the example map */
.gm-map { display: grid; gap: 12px; --dc: var(--c-calisthenics); }
.gm-stages .stage { padding-bottom: 14px; }
.gm-stages .stage.done .st-dot { background: #23775f; color: #fff; box-shadow: none; }
.gm-stages .stage.done::before { background: #23775f; }
.gm-stages .stage.here .st-dot { background: var(--graphite); color: #fff; box-shadow: 0 0 0 6px #ed707340; }
html.js .gm-map.in-view .stage.here .st-dot { animation: here 1.4s ease-in-out 3; }
@keyframes here { 50% { box-shadow: 0 0 0 11px #ed707322; } }
.gm-stages .stage.here .st-body { border-radius: 16px; background: #fff; box-shadow: var(--sculpt), inset 0 0 0 2px var(--coral); padding: 12px 14px; }
.gm-stages .stage.open .st-dot { box-shadow: inset 0 0 0 2px var(--graphite); color: var(--graphite); }
.gm-stages .stage.is-locked .st-body > b { color: var(--ink2); }
.st-state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.35; font-weight: 750; color: var(--ink2); }
.stage.done .st-state { color: #1f6b54; }
.stage.here .st-state { color: #a33a3d; }
.st-state .i { width: 14px; height: 14px; flex: none; }
.gm-more { margin: 0; padding-left: 52px; font-size: 14px; font-weight: 700; color: var(--ink2); }

/* modes */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 960px) { .modes { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.mode { position: relative; display: block; cursor: pointer; }
.mode input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.m-essential { --mc: var(--m-essential); --lvl: 1; } .m-balanced { --mc: var(--m-balanced); --lvl: 2; } .m-intensive { --mc: var(--m-intensive); --lvl: 3; } .m-legendary { --mc: var(--m-legendary); --lvl: 4; }
.mode-in { position: relative; overflow: hidden; height: 100%; display: grid; gap: 6px; align-content: start; border-radius: 20px; padding: 16px; background: #fff;
  box-shadow: var(--sculpt), inset 0 0 0 1.5px var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s; }
.mode-in::before { content: ''; display: block; height: 6px; width: calc(var(--lvl) * 25%); border-radius: 4px; background: var(--mc); margin-bottom: 4px; }
.mode-in > b { font: 700 19px/1.1 var(--font-display); }
.mode .mx { font: 700 26px/1 var(--font-display); letter-spacing: -.02em; color: color-mix(in srgb, var(--mc) 55%, #14171b); }
.mode small { font-size: 14px; line-height: 1.4; color: var(--ink2); }
.mode .cap { margin-top: 4px; font-size: 13.5px; font-weight: 700; color: var(--ink2); }
.mode .cap b { font-weight: 800; color: var(--graphite); }
.mode:hover .mode-in { transform: translateY(-2px); }
.mode input:checked + .mode-in { transform: translateY(-4px); box-shadow: 0 20px 36px -22px var(--mc), inset 0 0 0 2.5px var(--mc); }
.mode input:focus-visible + .mode-in { outline: 3px solid var(--graphite); outline-offset: 3px; }
.m-legendary .mode-in { background: linear-gradient(165deg, #fff9ec, #fff 55%); }
.m-legendary .mode-in::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, #e5b76740 50%, transparent 65%); transform: translateX(-110%); pointer-events: none; }
.m-legendary input:checked + .mode-in::after { animation: legend 1.5s var(--ease) 2; }
@keyframes legend { to { transform: translateX(110%); } }

/* the day simulator */
#xp .head p.lede { color: var(--soft-on-dark); }
.sim { position: relative; display: grid; gap: 16px; }
@media (min-width: 900px) { .sim { grid-template-columns: 1.1fr .9fr; gap: 24px; } }
.sim-in { min-width: 0; margin: 0; border: 0; padding: 18px; border-radius: 24px; background: #ffffff0a; box-shadow: inset 0 0 0 1px #ffffff1c; display: grid; gap: 8px; }
.sim-in legend { float: left; width: 100%; padding: 0; margin-bottom: 6px; font: 800 13px/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.sw { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: #ffffff09; cursor: pointer; transition: background .25s; }
.sw:hover { background: #ffffff14; }
.sw input { width: 22px; height: 22px; margin: 0; accent-color: var(--brass); cursor: pointer; }
.sw b { display: block; font: 700 15.5px/1.25 var(--font-display); color: var(--ivory); }
.sw small { display: block; font-size: 13px; line-height: 1.4; font-weight: 600; color: var(--dim); }
.sw em { font: 700 16px/1 var(--font-display); font-style: normal; color: var(--brass); }
.sw-rec { margin-left: 24px; }
.sw.is-off { cursor: default; background: transparent; box-shadow: inset 0 0 0 1px #ffffff26; }
.sw.is-off em { color: var(--dim); }
.sim-mode { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14.5px; color: var(--soft-on-dark); }
.sim-mode b { color: var(--ivory); }
.sim-mode .link { color: var(--ivory); }
.sim-mode small { flex-basis: 100%; font-size: 13px; color: var(--dim); }
.sim-out { position: relative; overflow: hidden; border-radius: 24px; padding: 22px; display: grid; gap: 14px; align-content: start;
  background: linear-gradient(160deg, #252b34, #171a20); box-shadow: var(--sculpt-dark), inset 0 0 0 1px #ffffff1c; }
.sim-big { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.sim-big span { font: 700 clamp(60px, 13vw, 92px)/.9 var(--font-display); letter-spacing: -.045em; color: var(--brass); font-variant-numeric: tabular-nums; }
.sim-big small { font: 800 13px/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.sim-sum { margin: 0; font-size: 14.5px; line-height: 1.5; font-weight: 650; color: var(--soft-on-dark); }
.sim-lvl { display: grid; gap: 8px; }
.sim-lvl p { margin: 0; display: flex; align-items: center; gap: 10px; }
.sim-lvl p b { font: 700 20px/1 var(--font-display); color: var(--ivory); }
.sim-lvl .rank-chip { margin-left: 0; width: 36px; height: 36px; font-size: 18px; border-radius: 11px; }
.sim-out .btn { justify-self: start; }
.sim-out .btn--secondary { color: var(--ivory); border-color: #ffffff59; }
.sim-pop { position: absolute; right: 16px; top: 16px; margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--brass); color: #2a1d06; font: 800 14px/1.2 var(--font-body); opacity: 0; pointer-events: none; }
.sim-pop.go { animation: simPop 2.2s var(--ease) both; }
.sim-pop.big { padding: 12px 16px; font-size: 18px; background: linear-gradient(135deg, var(--brass-light), var(--brass)); box-shadow: 0 0 0 6px #e5b76733, 0 20px 40px -16px var(--brass); }
@keyframes simPop { 0% { opacity: 0; transform: translateY(10px) scale(.8); } 14% { opacity: 1; transform: translateY(0) scale(1.08); } 24% { transform: none; } 82% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
.never { margin-top: 24px; border-radius: 24px; padding: 18px; display: grid; gap: 10px; box-shadow: inset 0 0 0 1px #ffffff21; }
.never ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.never li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: #ffffff0e; font-size: 14px; line-height: 1.3; font-weight: 650; color: #e1e4e8; }
.never li::before { content: ''; flex: none; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--coral); background: linear-gradient(45deg, transparent 43%, var(--coral) 43% 57%, transparent 57%); }
.week-rw { margin-top: 14px; max-width: 82ch; color: var(--soft-on-dark); font-size: 15.5px; line-height: 1.55; }
.week-rw p { margin: 0; }
.week-rw b { color: var(--ivory); }

/* ranks */
.ranks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .ranks { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 1100px) { .ranks { grid-template-columns: repeat(6, 1fr); } }
.rk { position: relative; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: var(--sculpt); padding: 16px; display: grid; gap: 4px; align-content: start; }
.rk-l { width: 52px; height: 52px; margin-bottom: 6px; border-radius: 16px; display: grid; place-items: center; font: 700 28px/1 var(--font-display); color: #fff; background: var(--rc); box-shadow: inset 0 1px 0 #ffffff40, 0 12px 22px -12px var(--rc); }
.rk-E { --rc: #5d626b; } .rk-D { --rc: #23775f; } .rk-C { --rc: #2f56c9; } .rk-B { --rc: #7550c4; } .rk-A { --rc: #b6474b; }
.rk-S { --rc: #a87a2a; } .rk-S .rk-l { background: linear-gradient(140deg, var(--brass-light), var(--brass) 45%, var(--brass-shade)); color: #2a1d06; }
.rk b { font: 700 17px/1.2 var(--font-display); }
.rk small { font-size: 13.5px; line-height: 1.35; font-weight: 650; color: var(--ink2); }
.rk .wk { margin-top: 4px; font-size: 13px; line-height: 1.35; font-weight: 800; color: color-mix(in srgb, var(--rc) 75%, #14171b); }
.rk.now { box-shadow: var(--sculpt), inset 0 0 0 2px var(--graphite); }
.rk .you { position: absolute; top: 14px; right: 12px; padding: 3px 8px; border-radius: 999px; background: var(--graphite); color: var(--ivory); font: 800 11px/1.3 var(--font-body); }
html.js .ranks.in-view .rk { animation: tileIn .6s var(--spring) both; animation-delay: calc(var(--k) * 80ms); }

/* badges */
.badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .badges { grid-template-columns: repeat(3, 1fr); } }
.bd-k { grid-column: 1 / -1; margin: 0; }
.bdg { margin: 0; border-radius: 20px; background: var(--ivory); box-shadow: var(--sculpt); padding: 18px 12px 16px; display: grid; justify-items: center; align-content: start; gap: 10px; text-align: center; }
.medal { position: relative; width: 78px; height: 86px; display: grid; place-items: center; clip-path: polygon(50% 0, 96% 25%, 96% 75%, 50% 100%, 4% 75%, 4% 25%); background: linear-gradient(150deg, var(--brass-light), var(--brass) 50%, var(--brass-shade)); }
.medal::before { content: ''; position: absolute; inset: 6px; clip-path: inherit; background: radial-gradient(circle at 35% 25%, color-mix(in srgb, var(--dc) 75%, #fff), color-mix(in srgb, var(--dc) 72%, #14171b) 70%); }
.medal .gl { position: relative; width: 42px; height: 42px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.bdg.is-locked .medal { background: linear-gradient(150deg, #e7e4dc, #b9b5ac); }
.bdg.is-locked .medal::before { background: #9a9ea6; }
.bdg.is-locked .medal .gl { stroke: #eceae4; }
html.js .badges.in-view .bdg.earned .medal { animation: medal 1s var(--spring) both; animation-delay: calc(var(--k) * 120ms + 200ms); }
@keyframes medal { 0% { transform: scale(.4) rotate(-20deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.bdg figcaption { display: grid; gap: 4px; }
.bdg b { font: 700 15px/1.25 var(--font-display); }
.bdg small { font-size: 12.5px; line-height: 1.35; font-weight: 650; color: var(--ink2); }
.bdg .att { font: 800 11.5px/1.35 var(--font-body); color: var(--brass-text); }
.bdg.is-locked .att { color: var(--slate); }

/* time away */
.decay { display: grid; gap: 14px; }
.decay label { font-size: 16px; }
.decay output { font: 700 24px/1 var(--font-display); }
.decay input[type="range"] { width: 100%; height: 30px; margin: 0; accent-color: var(--graphite); cursor: pointer; }
.ticks { position: relative; height: 10px; margin: -8px 9px 0; }
.ticks i { position: absolute; left: calc(var(--x) * 100%); top: 0; width: 2px; height: 10px; border-radius: 1px; transform: translateX(-1px); background: #c9a85a; }
.ticks i.t2 { background: #c97b4a; height: 12px; } .ticks i.t3 { background: #b6474b; height: 14px; }
.decay-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.decay-out p { margin: 0; border-radius: 14px; background: var(--soft); padding: 10px; display: grid; gap: 4px; align-content: start; }
.decay-out span { font-size: 12px; line-height: 1.25; font-weight: 750; color: var(--ink2); }
.decay-out b { font: 700 19px/1.1 var(--font-display); transition: color .3s; }
.decay-out p.fell b { color: #a33a3d; }
.decay .small { margin: 0; }
#awayNote { font-weight: 700; color: var(--graphite); min-height: 3em; }

/* the end */
#next .gate { padding: clamp(24px, 5vw, 48px); }
#next .gate h2 { max-width: 20ch; }
#next .gate .lede { color: var(--soft-on-dark); }
#next .gate .row { display: flex; flex-wrap: wrap; gap: 10px; }

@media (prefers-reduced-motion: reduce) {
  #game *, #game *::before, #game *::after { animation: none !important; transition: none !important; }
  .gm-card { transform: none; }
}

/* release fix 2026-11-13: tracks may shrink below their content width */
.gm-map-wrap, .gm-two { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .gm-map-wrap, .gm-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
