/* Pilot Prep Guide: free practice paper (tool page). The exam console is the opener. */

/* ---------- opener: title row + exam console ---------- */
.pp { padding: clamp(104px, 13vh, 122px) 0 clamp(28px, 3vw, 40px); }
.pp__title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 32px; margin-bottom: clamp(16px, 2.2vh, 24px); }
.pp__title h1 { font-size: clamp(1.95rem, 3vw, 2.95rem); line-height: 1.08; color: #fff; flex: 1 1 auto; min-width: 0; }
.pp__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; font: 600 1.06rem/1.2 var(--cond); letter-spacing: .04em; color: var(--on-dark-2); }
.pp__meta i { width: 6px; height: 6px; background: var(--brass); transform: rotate(45deg); }
.js:not(.reduce):not(.js-fallback) .pp__title h1 { opacity: 0; }

.exam { position: relative; border-radius: var(--r); background: linear-gradient(180deg, #0F1D42 0%, #0A1430 60%, #081028 100%); box-shadow: 0 0 0 1px rgba(125, 240, 176, .2), 0 50px 90px -50px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06); color: var(--on-dark); }
.exam::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(60% 50% at 18% 40%, rgba(125, 240, 176, .07), transparent 70%); }
.exam__bar { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 28px; padding: 12px 22px; border-bottom: 1px solid rgba(125, 240, 176, .16); }
.exam__count, .exam__score { margin: 0; font: 600 1.02rem/1 var(--cond); letter-spacing: .06em; color: var(--hud); white-space: nowrap; font-variant-numeric: tabular-nums; }
.exam__count b, .exam__score b { display: inline-block; color: #fff; font-size: 1.3rem; min-width: .6em; text-align: center; }
.exam__score span { color: var(--on-dark-2); }
.tape-wrap { position: relative; padding-bottom: 7px; }
.tape { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0; padding: 0; }
.tape__cell { position: relative; height: 34px; display: grid; place-items: center; border-radius: var(--r); border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03); font: 600 1rem/1 var(--cond); color: var(--on-dark-2); transition: border-color .4s, background .4s, color .4s; }
.tape__i { position: absolute; width: 20px; height: 20px; right: 6px; top: 6px; opacity: 0; }
.tape__i path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tape__cell.is-now { border-color: var(--route); color: #fff; background: rgba(210, 51, 140, .12); }
.tape__cell.is-right { border-color: rgba(125, 240, 176, .6); background: rgba(125, 240, 176, .12); color: var(--hud); }
.tape__cell.is-wrong, .tape__cell.is-time { border-color: rgba(255, 107, 125, .6); background: rgba(255, 107, 125, .1); color: #FF8E9B; }
.tape__cell.is-right .tape__i, .tape__cell.is-wrong .tape__i, .tape__cell.is-time .tape__i { opacity: 1; }
.tape__bug { position: absolute; left: 0; bottom: 0; height: 3px; width: calc((100% - 36px) / 7); border-radius: 2px; background: var(--route); box-shadow: 0 0 12px rgba(210, 51, 140, .8); }

.exam__body { position: relative; display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(26px, 3.4vw, 48px); padding: clamp(18px, 2.2vw, 26px) clamp(18px, 2.2vw, 28px) clamp(18px, 2.2vw, 26px); align-items: start; }

/* ---------- the clock instrument ---------- */
.inst { position: relative; }
.inst__flip { position: relative; width: 100%; aspect-ratio: 1; perspective: 1200px; }
.inst__face { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.inst__face.is-off { display: none; }
.ck-case { fill: url(#ckCase); stroke: rgba(255, 255, 255, .08); stroke-width: 1.5; }
.ck-screw circle { fill: #10193A; stroke: rgba(255, 255, 255, .16); stroke-width: 1.2; }
.ck-screw path { stroke: rgba(255, 255, 255, .3); stroke-width: 1.6; stroke-linecap: round; }
.ck-bezel { fill: #050B1E; stroke: rgba(217, 168, 78, .45); stroke-width: 1.5; }
.ck-sec { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 7; stroke-linecap: butt; transition: stroke .5s; }
.ck-sec.is-now { stroke: var(--route); }
.ck-sec.is-right { stroke: var(--hud); }
.ck-sec.is-wrong, .ck-sec.is-time { stroke: #FF6B7D; }
.ck-face { fill: url(#ckFace); stroke: rgba(125, 240, 176, .2); stroke-width: 1; }
.tk { stroke: rgba(233, 238, 248, .45); stroke-width: 1.4; }
.tk--mid { stroke: rgba(233, 238, 248, .7); stroke-width: 2; }
.tk--maj { stroke: #fff; stroke-width: 4; }
.ck-nums text { font: 600 27px/1 var(--cond); fill: #fff; }
.ck-label { font: 600 13px/1 var(--cond); letter-spacing: .16em; fill: var(--hud); }
.ck-brand { font: 600 11px/1 var(--cond); letter-spacing: .2em; fill: rgba(233, 238, 248, .4); }
.ck-flown { fill: none; stroke: var(--route); stroke-width: 6; stroke-linecap: round; opacity: .9; filter: drop-shadow(0 0 6px rgba(210, 51, 140, .7)); }
.ck-sub__face { fill: #071029; stroke: rgba(255, 255, 255, .14); stroke-width: 1.2; }
.stk { stroke: rgba(233, 238, 248, .35); stroke-width: 1; }
.stk--maj { stroke: rgba(233, 238, 248, .85); stroke-width: 2; }
.ck-sub__left { fill: none; stroke: var(--hud); stroke-width: 3.5; opacity: .85; transition: stroke .4s; }
.ck-sub.is-low .ck-sub__left { stroke: #FF6B7D; }
.ck-sub__label { font: 600 10px/1 var(--cond); letter-spacing: .16em; fill: rgba(233, 238, 248, .5); }
.ck-sub__needle { fill: var(--hud); }
.ck-sub__hub { fill: var(--hud); }
.ck-needle { fill: #fff; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
.ck-needle__tail { fill: var(--brass); }
.ck-hub { fill: var(--brass); stroke: #0A1430; stroke-width: 2; }
.ck-hub__dot { fill: #0A1430; }
.ck-glass { fill: url(#ckGlass); pointer-events: none; }
.ck-sweep { fill: url(#ckSweep); transition: opacity .6s; }
.exam:not([data-state="ready"]) .ck-sweep { opacity: 0; }
.ck-shine { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 3; stroke-linecap: round; }
/* score face */
.sg-band { fill: none; stroke-width: 4; opacity: .55; }
.sg-band--low { stroke: #FF6B7D; }
.sg-band--mid { stroke: var(--brass); }
.sg-band--high { stroke: var(--hud); }
.sg-fill { fill: none; stroke: var(--hud); stroke-width: 12; stroke-linecap: round; opacity: 0; filter: drop-shadow(0 0 8px rgba(125, 240, 176, .55)); }
.sg-num { font: 600 20px/1 var(--cond); fill: rgba(233, 238, 248, .8); }
.sg-value { font: 600 50px/1 var(--display); fill: #fff; }

.inst__reads { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.read { margin: 0; display: flex; align-items: baseline; gap: 8px; padding: 9px 12px; border-radius: var(--r); background: rgba(5, 11, 30, .7); box-shadow: inset 0 0 0 1px rgba(125, 240, 176, .16); font-family: var(--cond); font-weight: 600; }
.read__k { font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-2); }
.read b { font-size: 1.45rem; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; margin-left: auto; }
.read__s { font-size: .9rem; color: var(--on-dark-2); }
.read--ann { grid-column: 1 / -1; align-items: center; gap: 10px; font-size: 1rem; letter-spacing: .03em; color: var(--on-dark); }
.ann__lamp { width: 10px; height: 10px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 10px var(--brass); flex: none; }
.read--ann.is-run .ann__lamp { background: var(--hud); box-shadow: 0 0 10px var(--hud); }
.read--ann.is-behind .ann__lamp { background: #FFB547; box-shadow: 0 0 10px #FFB547; }
.read--ann.is-stop .ann__lamp { background: #FF6B7D; box-shadow: 0 0 10px #FF6B7D; }

/* ---------- the right-hand deck: start, question, results ---------- */
.deck { position: relative; min-width: 0; }
.deck__pane[hidden] { display: none; }
.deck__h { font-size: clamp(1.55rem, 2.2vw, 2.15rem); color: #fff; margin-bottom: 12px; }
.deck__lede { font-size: 1.1rem; color: var(--on-dark-2); margin-bottom: 22px; }
.rules { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rules li { padding: 16px 16px 14px; border-radius: var(--r); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.rules b { display: block; font: 600 1.9rem/1 var(--cond); color: var(--brass); margin-bottom: 8px; }
.rules span { display: block; font-size: 1rem; line-height: 1.45; color: var(--on-dark-2); }
/* question 1's framing, locked behind the start button until the clock runs */
.ghost { position: relative; border-radius: var(--r); padding: 16px; background: rgba(5, 11, 30, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); overflow: hidden; }
.ghost__rows { display: grid; gap: 8px; filter: blur(1.5px); opacity: .55; }
.ghost__q { display: block; height: 14px; border-radius: 4px; background: rgba(233, 238, 248, .32); width: 88%; }
.ghost__q--short { width: 52%; margin-bottom: 8px; }
.ghost__row { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; padding: 9px 12px; border-radius: var(--r); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14); }
.ghost__k { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(255, 255, 255, .35); font: 600 .95rem/1 var(--cond); color: #fff; }
.ghost__bars { display: grid; gap: 6px; }
.ghost__bars i { display: block; height: 8px; border-radius: 4px; background: rgba(233, 238, 248, .22); }
.ghost::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(125, 240, 176, .1) 46%, rgba(255, 255, 255, .14) 50%, rgba(125, 240, 176, .1) 54%, transparent 70%); transform: translateX(var(--sh, -100%)); pointer-events: none; }
.deck__go { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; text-align: center; padding: 16px; background: radial-gradient(60% 60% at 50% 50%, rgba(10, 20, 48, .82), rgba(10, 20, 48, .2)); }
.deck__hint { margin: 0; font-size: 1rem; color: var(--on-dark-2); }
.deck__go .deck__hint { color: #fff; }
.deck__go .deck__hint::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--brass); vertical-align: middle; }

.qset { border: 0; margin: 0; padding: 0; min-width: 0; }
.qset__q { display: block; float: left; width: 100%; padding: 0; margin: 0 0 16px; font: 600 clamp(1.25rem, 1.65vw, 1.55rem)/1.25 var(--display); color: #fff; text-wrap: balance; }
.qset__q:focus { outline: none; }
.qset__q:focus-visible { outline: 3px solid var(--route); }
.qopts { clear: both; list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.qopt { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: center; min-height: 58px; padding: 11px 16px 11px 12px; border-radius: var(--r); border: 1.5px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03); font-size: 1rem; line-height: 1.42; color: var(--on-dark); cursor: pointer; transition: border-color .3s, background .3s, opacity .4s, transform .3s var(--ease); }
.qopt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
@media (hover: hover) { .qopt:hover { border-color: rgba(217, 168, 78, .7); background: rgba(217, 168, 78, .06); } }
.qopt:has(input:focus-visible) { outline: 3px solid var(--route); outline-offset: 2px; }
.qopt__k { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(255, 255, 255, .35); font: 600 1.08rem/1 var(--cond); color: #fff; transition: background .3s, border-color .3s, color .3s; }
.qopt__k b { transition: opacity .2s; }
.qopt__i { position: absolute; inset: 7px; width: 24px; height: 24px; }
.qopt__i path { fill: none; stroke: var(--deck); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.qopt.is-picked, .qopt:not(.is-right):not(.is-wrong):has(input:checked) { border-color: var(--brass); background: rgba(217, 168, 78, .1); }
.qopt.is-picked .qopt__k, .qopt:not(.is-right):not(.is-wrong):has(input:checked) .qopt__k { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.qopt.is-right { border-color: var(--hud); background: rgba(125, 240, 176, .09); }
.qopt.is-right .qopt__k { background: var(--hud); border-color: var(--hud); }
.qopt.is-wrong { border-color: #FF6B7D; background: rgba(255, 107, 125, .09); }
.qopt.is-wrong .qopt__k { background: #FF6B7D; border-color: #FF6B7D; }
.qopt.is-right .qopt__k b, .qopt.is-wrong .qopt__k b { opacity: 0; }
.qopt.is-right .qopt__tick, .qopt.is-wrong .qopt__x { opacity: 1; }
.qopt.is-dim { opacity: .42; }
.qset:disabled .qopt { cursor: default; }
.qset:disabled .qopt:hover:not(.is-right):not(.is-wrong) { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03); }

.fb { overflow: hidden; }
.fb p { margin: 14px 0 0; padding: 14px 18px; border-radius: var(--r); background: rgba(125, 240, 176, .07); border-left: 3px solid var(--hud); color: var(--on-dark); font-size: 1rem; line-height: 1.55; }
.fb p.is-miss { background: rgba(255, 107, 125, .07); border-left-color: #FF6B7D; }
.fb strong { color: #fff; }
.deck__act { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 16px; }
.deck__act .btn { margin-left: auto; }

.deck__res .deck__h em { font-variant-numeric: tabular-nums; }
.res__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 6px 0 18px; }
.res__stats div { padding: 14px 16px; border-radius: var(--r); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.res__stats dt { font: 600 .95rem/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-2); }
.res__stats dd { margin: 8px 0 0; font: 600 1.7rem/1 var(--cond); color: #fff; }
.res__msg { font: 600 clamp(1.2rem, 1.5vw, 1.4rem)/1.3 var(--display); color: var(--brass); margin-bottom: 14px; }
.res__line { color: var(--on-dark-2); margin-bottom: 14px; }
.res__eds { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.res__eds .btn { padding: 0 22px; }
.res__more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; }
.res__more .btn svg { width: 18px; height: 18px; }
.deck__res:focus { outline: none; }

/* no scripts: the static paper */
.plist { display: none; }
.no-js .exam, .pp-static .exam { display: none; }
.no-js .plist, .pp-static .plist { display: block; }
.plist__intro { color: var(--on-dark-2); }
.plist__qs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.plist__item { padding: 22px 24px; border-radius: var(--r); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(125, 240, 176, .16); }
.plist__q { display: flex; gap: 14px; font: 600 1.25rem/1.3 var(--display); color: #fff; }
.plist__q span { flex: none; font-family: var(--cond); color: var(--brass); }
.plist__opts { margin: 0 0 12px; padding-left: 2.2em; color: var(--on-dark-2); }
.plist__opts li { margin: 6px 0; }
.plist__ans summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--brass); }
.plist__ans summary::before { content: ''; width: 8px; height: 8px; margin-right: 14px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(-45deg); transition: transform .3s; }
.plist__ans[open] summary::before { transform: rotate(45deg); }
.plist__ans p { margin: 4px 0 0; color: var(--on-dark); }

@media (max-width: 1100px) {
  .exam__body { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); }
  .rules { grid-template-columns: 1fr; }
  .rules li { display: flex; align-items: baseline; gap: 14px; padding: 12px 16px; }
  .rules b { margin: 0; font-size: 1.5rem; min-width: 3.2em; }
}
@media (max-width: 760px) {
  .pp { padding-top: 96px; }
  .pp__title h1 { font-size: clamp(1.75rem, 7.6vw, 2.2rem); }
  .pp__meta { font-size: 1rem; }
  .exam__bar { grid-template-columns: 1fr auto; padding: 10px 12px; gap: 10px; }
  .tape-wrap { grid-column: 1 / -1; grid-row: 2; }
  .tape { gap: 4px; }
  .tape__cell { height: 30px; }
  .tape__i { width: 14px; height: 14px; right: 3px; top: 3px; }
  .tape__bug { width: calc((100% - 24px) / 7); }
  .exam__body { grid-template-columns: 1fr; gap: 16px; padding: 14px 12px 16px; }
  .inst { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 12px; align-items: center; }
  .inst__reads { grid-template-columns: 1fr; margin: 0; gap: 6px; }
  .read { padding: 7px 10px; }
  .read b { font-size: 1.25rem; }
  .read--ann { font-size: .95rem; }
  .deck__h { font-size: 1.45rem; }
  .deck__start { display: flex; flex-direction: column; }
  .deck__start .ghost { order: 2; margin-bottom: 16px; }
  .deck__start .deck__lede { order: 3; font-size: 1rem; margin-bottom: 14px; }
  .deck__start .rules { order: 4; margin-bottom: 0; }
  .rules { margin-bottom: 16px; gap: 6px; }
  .rules li { padding: 9px 12px; }
  .rules b { font-size: 1.25rem; }
  .rules span { font-size: .95rem; }
  .qset__q { font-size: 1.2rem; }
  .qopt { padding: 10px 12px 10px 10px; gap: 12px; grid-template-columns: 34px minmax(0, 1fr); font-size: .98rem; }
  .qopt__k { width: 34px; height: 34px; }
  .qopt__i { inset: 5px; }
  .deck__act .btn { width: 100%; justify-content: center; }
  .ghost { padding: 10px; }
  .ghost__row { padding: 6px 10px; }
  .res__eds .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- how the paper works ---------- */
.rulecards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.rulecard { position: relative; padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r); background: #fff; box-shadow: 0 1px 0 rgba(18, 48, 111, .1), 0 30px 60px -40px rgba(10, 20, 48, .5); overflow: hidden; }
.rulecard::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--route), var(--brass)); transform-origin: left; transform: scaleX(var(--bar, 1)); }
.rulecard__win { position: relative; display: flex; align-items: center; gap: 18px; margin: calc(clamp(22px, 2.4vw, 32px) * -1) calc(clamp(22px, 2.4vw, 32px) * -1) 22px; padding: 18px clamp(22px, 2.4vw, 32px); background: var(--deck) url(../img/tex/hud-ladder.svg) 0 0 / 320px 200px; overflow: hidden; }
.rulecard__win::after { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 90% at 20% 50%, rgba(125, 240, 176, .12), transparent 70%); pointer-events: none; }
.rulecard__ico { position: relative; z-index: 1; width: 104px; height: 104px; flex: none; }
.rulecard__read { position: relative; z-index: 1; margin-left: auto; font: 600 1.05rem/1 var(--cond); letter-spacing: .06em; color: var(--hud); }
.rulecard h3 { color: var(--navy); margin-bottom: 10px; }
.rulecard p { color: var(--ink-2); font-size: 1.02rem; line-height: 1.55; margin: 0; }
.ri-ring { fill: none; stroke: rgba(233, 238, 248, .2); stroke-width: 3; }
.ri-tick { stroke: rgba(233, 238, 248, .85); stroke-width: 2; stroke-linecap: round; }
.ri-arc { fill: none; stroke: var(--route); stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(210, 51, 140, .8)); }
.ri-hand path { stroke: #fff; stroke-width: 3.5; stroke-linecap: round; }
.ri-hub { fill: var(--brass); }
.ri-row { fill: rgba(233, 238, 248, .12); }
.ri-row--on { fill: rgba(125, 240, 176, .3); }
.ri-dot { fill: var(--hud); }
.ri-ok { fill: none; stroke: var(--deck); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ri-line { stroke: rgba(233, 238, 248, .55); stroke-width: 4; stroke-linecap: round; }
.ri-gfill { fill: none; stroke: var(--hud); stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(125, 240, 176, .7)); }
.ri-pct { font: 600 20px/1 var(--cond); fill: #fff; }

.cover { margin-top: clamp(48px, 6vw, 80px); }
.cover__h { color: var(--navy); margin-bottom: clamp(22px, 3vw, 36px); }
.cover__route { position: relative; }
.cover__track, .cover__line, .cover__pulse { position: absolute; top: 83.5px; left: calc(100% / 14); right: calc(100% / 14); height: 3px; border-radius: 2px; }
.cover__track { background: repeating-linear-gradient(90deg, rgba(18, 48, 111, .35) 0 8px, transparent 8px 16px); }
.cover__line { background: var(--route); transform-origin: left center; box-shadow: 0 0 10px rgba(210, 51, 140, .4); }
.cover__pulse { height: 0; }
.cover__pulse::before { content: ''; position: absolute; left: -7px; top: -5px; width: 14px; height: 14px; border-radius: 50%; background: var(--route); box-shadow: 0 0 0 5px rgba(210, 51, 140, .2), 0 0 18px rgba(210, 51, 140, .9); transform: translateX(var(--px, 0px)); }
.cover__list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, auto); justify-content: space-between; gap: 10px; }
/* labels alternate below and above the route, so each one has two columns of room */
.cover__wpt { display: grid; grid-template-rows: 70px 30px 70px; justify-items: center; }
.cover__mark { grid-row: 2; width: 30px; height: 30px; }
.cover__txt { grid-row: 3; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding-top: 10px; }
.cover__wpt:nth-child(even) .cover__txt { grid-row: 1; justify-content: flex-end; padding: 0 0 10px; }
.cover__wpt strong { white-space: nowrap; }
.cover__mark path { fill: var(--paper); stroke: var(--navy); stroke-width: 2; transition: fill .4s, stroke .4s; }
.cover__mark circle { fill: var(--navy); transition: fill .4s; }
.cover__wpt.is-on .cover__mark path { fill: var(--route); stroke: var(--route); }
.cover__wpt.is-on .cover__mark circle { fill: #fff; }
.cover__id { font: 600 .98rem/1 var(--cond); letter-spacing: .08em; color: var(--route); }
.cover__wpt strong { font: 600 clamp(1.05rem, 1.25vw, 1.2rem)/1.2 var(--display); color: var(--navy); }
.cover__s { font-size: .98rem; line-height: 1.35; color: var(--ink-2); }
@media (max-width: 900px) {
  .rulecards { grid-template-columns: 1fr; }
  .rulecard__win { margin-bottom: 18px; padding-top: 12px; padding-bottom: 12px; }
  .rulecard__ico { width: 80px; height: 80px; }
  .cover__list { grid-template-columns: 1fr; gap: 14px; }
  .cover__wpt { grid-template-rows: none; grid-template-columns: 30px minmax(0, 1fr); justify-items: stretch; align-items: start; gap: 12px; }
  .cover__mark { grid-row: auto; }
  .cover__txt, .cover__wpt:nth-child(even) .cover__txt { grid-row: auto; width: auto; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; text-align: left; gap: 2px 12px; padding: 4px 0 0; }
  .cover__wpt strong { white-space: normal; }
  .cover__s { grid-column: 2; }
  .cover__track, .cover__line, .cover__pulse { top: 15px; bottom: 15px; left: 14px; right: auto; width: 3px; height: auto; }
  .cover__track { background: repeating-linear-gradient(180deg, rgba(18, 48, 111, .35) 0 8px, transparent 8px 16px); }
  .cover__line { transform-origin: center top; }
  .cover__pulse { width: 0; }
  .cover__pulse::before { left: -5px; top: -7px; transform: translateY(var(--py, 0px)); }
}

/* ---------- want all 25? ---------- */
.all25__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.all25__stage { position: relative; height: min(68vh, 560px); min-height: 420px; display: grid; place-items: center; perspective: 1600px; }
.all25__glow { position: absolute; width: 96%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(217, 168, 78, .42), rgba(210, 51, 140, .18) 38%, transparent 68%); }
.all25__glow::after { content: ''; position: absolute; inset: 8%; border-radius: 50%; border: 1px dashed rgba(217, 168, 78, .35); }
.all25__floor { position: absolute; left: 14%; right: 14%; bottom: 4%; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); }
.all25__books { position: relative; width: min(300px, 25vw, calc(min(68vh, 560px) * .58)); aspect-ratio: 800 / 1131; transform-style: preserve-3d; }
.cbook { position: absolute; inset: 0; transform-style: preserve-3d; }
.cbook--back { transform: translateX(-40%) translateZ(-90px) rotate(-8deg) rotateY(16deg); }
.cbook--front { transform: translateX(24%) translateY(6%) translateZ(70px) rotate(4deg) rotateY(-12deg); }
.cbook__in { position: relative; width: 100%; height: 100%; border-radius: 3px var(--r) var(--r) 3px; overflow: hidden; box-shadow: 30px 40px 70px -24px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .08); transform-style: preserve-3d; }
.cbook__in::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; z-index: 2; background: linear-gradient(90deg, rgba(255, 255, 255, .16), rgba(0, 0, 0, .25) 40%, rgba(255, 255, 255, .05)); }
.cbook__in img { width: 100%; height: 100%; object-fit: cover; }
.cbook__glare { position: absolute; inset: 0; z-index: 3; background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, .24), transparent 46%); mix-blend-mode: screen; pointer-events: none; }
.all25__tag { position: absolute; z-index: 4; left: calc(50% + min(150px, 12.5vw)); top: 14%; padding: 12px 16px 12px 22px; border-radius: var(--r); background: var(--brass); color: var(--ink); font: 600 1.35rem/1 var(--cond); letter-spacing: .04em; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .6); transform: rotate(8deg); transform-origin: 12px 50%; white-space: nowrap; }
.all25__tag::before { content: ''; position: absolute; left: 8px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--navy); }
.all25__text h2 { margin-bottom: 18px; }
.all25__text .feats { margin: 22px 0 26px; }
.all25__buy { display: grid; gap: 16px; justify-items: start; }
.all25__eds { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) {
  .all25__grid { grid-template-columns: 1fr; }
  .all25__stage { height: 380px; min-height: 0; }
  .all25__books { width: min(46vw, 220px); }
  .all25__tag { left: calc(50% + min(23vw, 110px)); top: 8%; font-size: 1.15rem; }
}

/* ---------- closing band ---------- */
.next .sec__wash { background: radial-gradient(60% 80% at 85% 30%, rgba(217, 168, 78, .28), transparent 70%), linear-gradient(90deg, rgba(48, 30, 14, .94) 0%, rgba(58, 36, 16, .78) 48%, rgba(40, 24, 10, .38) 100%), linear-gradient(0deg, rgba(30, 18, 8, .55), transparent 40%); }
.next__head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.next__head .lede { margin: 0; color: #F1E6D2; }
.next .next__card p:not(.next__tag) { color: #E2D6C2; }
.next__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.next__card { position: relative; padding: clamp(24px, 2.8vw, 36px); border-radius: var(--r); background: rgba(24, 15, 8, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .14); overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; }
.next__route { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, #fff 50%, transparent) -40% 0 / 40% 100% no-repeat, linear-gradient(90deg, var(--route), var(--brass)); transform-origin: left; }
.next__tag { font: 600 1rem/1 var(--cond); letter-spacing: .06em; color: var(--brass); margin-bottom: 14px; }
.next__card h3 { color: #fff; margin-bottom: 10px; }
.next__card p:not(.next__tag) { color: var(--on-dark-2); margin-bottom: 24px; }
.next__card .btn { margin-top: auto; }
@media (max-width: 900px) {
  .next__head, .next__grid { grid-template-columns: 1fr; }
  .next .sec__wash { background: linear-gradient(180deg, rgba(48, 30, 14, .9) 0%, rgba(52, 32, 14, .84) 100%); }
}
.exam__done { display: none; }
.exam[data-state="done"] .exam__run { display: none; }
.exam[data-state="done"] .exam__done { display: inline; color: #fff; }

/* text links that wrap like running text, arrow on the last line */
.tlink--flow { display: block; width: fit-content; max-width: 100%; }
.tlink--flow svg { display: inline-block; vertical-align: -3px; margin-left: 6px; }
