/* RIFT PILOTS · How to play (Claude, 2026-10-30). Same cyan identity as the whitepaper; lessons as a flight path. */
:root { color-scheme: dark; --bg: #03080d; --panel: #08131b; --panel2: #0b1b26; --line: #1d3b4b; --ink: #e6f6fb; --muted: #9fb6c2; --cyan: #54e4f5; --gold: #ffc266; --void: #b77cff;
  --common: #a9b4bf; --uncommon: #64f2c7; --rare: #57b8ff; --epic: #d787ff; --legendary: #ffca63; font-family: "Segoe UI", system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 16px; }
a { color: var(--cyan); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; font: 800 15px "Segoe UI", system-ui, sans-serif; color: #03222b; background: var(--cyan); border: 1px solid var(--cyan); text-decoration: none; cursor: pointer; }
.button.secondary { color: var(--cyan); background: transparent; }
.button:hover { filter: brightness(1.12); } .button.secondary:hover { background: #0e3442; filter: none; }
a.button.js-playtest.is-locked { color: #c9a66b; background: #1a1408; border-color: #6b5530; cursor: not-allowed; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* cover */
.ht-cover { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: 56px 7% 44px;
  background: linear-gradient(90deg, #03080df7 0%, #03080dd0 52%, #03080d70 100%), url("../assets/aerovanguard/background-asteroid.jpg") center / cover; border-bottom: 1px solid var(--line); }
.ht-kicker { margin: 0; font-size: 14px; font-weight: 700; color: var(--gold); }
.ht-cover h1 { margin: 6px 0 14px; font-size: clamp(44px, 7vw, 88px); line-height: .92; font-weight: 900; font-style: italic; text-shadow: 0 0 22px #54e4f566, 0 4px 0 #0b3a4a; }
.ht-lede { font-size: 20px; max-width: 560px; margin: 0 0 22px; color: #cfe2ea; }
.ht-lede b { color: var(--cyan); }
.ht-start { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; background: var(--cyan); color: #03222b; font-weight: 800; text-decoration: none; }
.ht-start:hover { filter: brightness(1.1); }
.ht-cover-ship { justify-self: center; width: min(330px, 100%); filter: drop-shadow(0 0 36px #54e4f555); }

/* sticky progress */
.ht-progress { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 18px; padding: 10px 7%; background: #040c12f2; border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.ht-rank span { display: block; font-size: 11px; color: var(--muted); }
.ht-rank b { font-size: 17px; color: var(--gold); }
.ht-bar { flex: 1; max-width: 420px; height: 10px; background: #0d2330; border: 1px solid var(--line); }
.ht-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #1aa3c4, var(--cyan)); box-shadow: 0 0 10px #54e4f580; transition: width .5s ease; }
.ht-xp { font-size: 14px; color: var(--muted); white-space: nowrap; } .ht-xp b { color: var(--ink); }
.ht-dots { display: flex; gap: 6px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.ht-dots a { display: flex; width: 26px; height: 26px; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); text-decoration: none; }
.ht-dots a.is-done { background: var(--cyan); color: #03222b; border-color: var(--cyan); }

/* lessons: a numbered flight path (they are a real sequence: the order the game opens them) */
.ht-main { max-width: 1040px; margin: 0 auto; padding: 36px 24px 64px; }
.ht-lessons { list-style: none; margin: 0; padding: 0; }
.ht-lesson { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 26px; scroll-margin-top: 70px; }
.ht-rail { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding-top: 4px; }
.ht-rail::after { content: ""; position: absolute; top: 58px; bottom: -8px; width: 2px; background: linear-gradient(var(--line), var(--line)); }
.ht-lesson:last-child .ht-rail::after { display: none; }
.ht-num { position: relative; z-index: 1; display: flex; width: 50px; height: 50px; align-items: center; justify-content: center; font-size: 22px; font-weight: 900; font-style: italic; color: var(--cyan); background: var(--bg); border: 2px solid var(--cyan); }
.ht-lesson.is-done .ht-num { background: var(--cyan); color: #03222b; }
.ht-opens { position: relative; z-index: 1; background: var(--bg); font-size: 12px; color: var(--muted); padding: 2px 4px; }
.ht-body { padding: 0 0 46px; }
.ht-body h2 { margin: 6px 0 14px; font-size: 28px; }
.ht-body h3 { margin: 0 0 4px; font-size: 16px; }
.ht-cali { position: relative; margin: 0 0 18px; padding: 14px 16px 14px 74px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--cyan); font-size: 17px; color: #d8ecf3; }
.ht-cali-tag { position: absolute; left: 14px; top: 14px; padding: 1px 7px; background: #0e3442; color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.ht-facts { margin: 0 0 20px; padding-left: 20px; color: #cddde4; }
.ht-facts li { margin: 6px 0; }
.ht-facts b { color: var(--ink); }
.r-c { color: var(--common); } .r-u { color: var(--uncommon); } .r-r { color: var(--rare); } .r-e { color: var(--epic); } .r-l { color: var(--legendary); }
.ht-got { min-height: 44px; padding: 0 20px; font: 700 15px inherit; font-family: inherit; color: var(--cyan); background: transparent; border: 1px solid var(--cyan); cursor: pointer; }
.ht-got:hover { background: #0e3442; }
.ht-lesson.is-done .ht-got { display: none; }
.ht-done-note { margin: 0; font-weight: 700; color: var(--uncommon); }
.ht-done-note::before { content: "✓ "; }

.ht-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 16px; }
.ht-split > div, .ht-grid > div { padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); }
.ht-split p, .ht-grid p { margin: 0; font-size: 15px; color: #c3d5dd; }
.ht-split h3 { color: var(--cyan); }
.ht-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 0 0 18px; }
.ht-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ht-grid img { width: 40px; height: 40px; object-fit: contain; image-rendering: pixelated; margin-bottom: 6px; }
.ht-icons { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.ht-icons figure { margin: 0; width: 96px; padding: 10px 6px; text-align: center; background: var(--panel); border: 1px solid var(--line); }
.ht-icons img { width: 44px; height: 44px; object-fit: contain; image-rendering: pixelated; }
.ht-icons figcaption { font-size: 13px; color: var(--muted); }
.ht-wide { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); }
.ht-wide img { width: 96px; flex: none; }
.ht-wide figcaption { font-size: 15px; color: #c3d5dd; }
.ht-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0 0 16px; }
.ht-flow span { position: relative; padding: 14px 16px 14px 18px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; color: #c3d5dd; }
.ht-flow span + span { border-left: 0; }
.ht-flow span:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 50%; z-index: 1; width: 14px; height: 14px; background: var(--panel); border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: translateY(-50%) rotate(45deg); }
.ht-flow b { display: block; font-size: 16px; color: var(--gold); }
.ht-tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 16px; }
.ht-tiers div { min-height: 92px; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(180deg, #03080d22, #03080de0), var(--tier, #0b1b26) center / cover; border: 1px solid #b77cff55; }
.ht-tiers .t-scout { --tier: url("../assets/backgrounds/void-scout.jpg"); } .ht-tiers .t-hunter { --tier: url("../assets/backgrounds/void-hunter.jpg"); }
.ht-tiers .t-vanguard { --tier: url("../assets/backgrounds/void-vanguard.jpg"); } .ht-tiers .t-abyss { --tier: url("../assets/backgrounds/void-abyss.jpg"); }
.ht-tiers b { font-size: 17px; } .ht-tiers span { font-size: 13px; color: var(--void); font-weight: 700; }
.ht-lesson.is-gold .ht-num { color: var(--gold); border-color: var(--gold); } .ht-lesson.is-gold.is-done .ht-num { background: var(--gold); color: #2a1a00; }
.ht-lesson.is-gold .ht-cali { border-left-color: var(--gold); }
.ht-lesson.is-void .ht-num { color: var(--void); border-color: var(--void); } .ht-lesson.is-void.is-done .ht-num { background: var(--void); color: #1a0730; }
.ht-lesson.is-void .ht-cali { border-left-color: var(--void); }

/* lesson 1: target practice */
.ht-drill { margin: 0 0 16px; border: 1px solid var(--line); background: var(--panel); }
.ht-drill-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.ht-drill-head span { color: var(--muted); } .ht-drill-head output { color: var(--cyan); font-weight: 800; }
.ht-field { position: relative; height: 230px; overflow: hidden; background: linear-gradient(180deg, #03080d55, #03080dcc), url("../assets/aerovanguard/background-nebula.jpg") center / cover; }
.ht-drone { position: absolute; width: 58px; height: 58px; padding: 0; border: 0; background: transparent; cursor: crosshair; animation: ht-bob 2.6s ease-in-out infinite alternate; }
.ht-drone img { width: 100%; height: 100%; object-fit: contain; transform: rotate(180deg); filter: drop-shadow(0 0 6px #ff5a5a88); }
.ht-drone.is-hit { pointer-events: none; animation: none; }
.ht-drone.is-hit img { opacity: 0; transition: opacity .2s; }
.ht-drone.is-hit::after { content: ""; position: absolute; inset: -18px; background: url("../assets/aerovanguard/vfx-explosion.png") center / contain no-repeat; animation: ht-boom .45s ease-out forwards; }
.ht-ship { position: absolute; left: 50%; bottom: 6px; width: 70px; filter: drop-shadow(0 0 10px #54e4f566); transform: translateX(-50%); pointer-events: none; }
.ht-shot { position: absolute; width: 4px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); pointer-events: none; transform-origin: bottom center; animation: ht-shot .18s linear forwards; }
.ht-clear { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 900; font-style: italic; color: var(--cyan); background: #03080daa; text-shadow: 0 0 14px #54e4f5aa; }
@keyframes ht-bob { from { translate: 0 0; } to { translate: 14px 10px; } }
@keyframes ht-boom { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.2); opacity: 0; } }
@keyframes ht-shot { from { opacity: 1; } to { opacity: 0; } }

/* final */
.ht-final { display: flex; align-items: center; gap: 28px; margin-top: 8px; padding: 28px; background: linear-gradient(90deg, #08131b, #0b1b26); border: 1px solid var(--cyan); }
.ht-final > img { width: 120px; flex: none; filter: drop-shadow(0 0 20px #54e4f566); }
.ht-final h2 { margin: 0 0 8px; font-size: 28px; } .ht-final h2 span { color: var(--gold); }
.ht-final p { margin: 0 0 18px; color: #c3d5dd; max-width: 640px; }
.ht-final-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .ht-final-actions { flex-direction: column; align-self: stretch; } .ht-final-actions .button { width: 100%; } .ht-final > div { width: 100%; } }
.ht-reset { margin-top: 14px; padding: 0; background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.ht-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 20px 7%; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { .ht-drone { animation: none; } .ht-bar i { transition: none; } .ht-drone.is-hit::after { animation: none; opacity: 0; } }
@media (max-width: 760px) {
  .ht-cover { grid-template-columns: 1fr; padding: 36px 16px 28px; } .ht-cover-ship { width: 200px; justify-self: start; order: -1; }
  .ht-progress { padding: 8px 16px; gap: 12px; flex-wrap: wrap; } .ht-dots { display: none; } .ht-bar { max-width: none; }
  .ht-main { padding: 24px 16px 48px; }
  .ht-lesson { grid-template-columns: 1fr; gap: 6px; } .ht-rail { flex-direction: row; align-items: center; text-align: left; } .ht-rail::after { display: none; }
  .ht-num { width: 40px; height: 40px; font-size: 18px; } .ht-body { padding-bottom: 34px; } .ht-body h2 { font-size: 23px; }
  .ht-cali { padding: 40px 14px 12px; font-size: 16px; } .ht-split, .ht-flow, .ht-grid-2 { grid-template-columns: 1fr; } .ht-flow span + span { border-left: 1px solid var(--line); border-top: 0; } .ht-flow span::after { display: none; }
  .ht-tiers { grid-template-columns: 1fr 1fr; } .ht-final { flex-direction: column; align-items: flex-start; padding: 20px; } .ht-final > img { width: 90px; }
  .ht-wide { flex-direction: column; align-items: flex-start; }
}
