:root {
  --navy: #16344c; --ink: #16202c; --chateau: #0366a2; --chateau-700: #024b78;
  --sky: #37c6f4; --orange: #ec7a2c; --bg: #eef2f6; --line: #dfe5ec; --muted: #5a6573;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: "Source Sans 3", system-ui, sans-serif; color: var(--ink); background: var(--bg); display: flex; flex-direction: column; }
header { display: flex; align-items: center; gap: 14px; padding: 10px 22px; background: var(--navy); color: #fff; }
header h1 { font-family: Archivo, sans-serif; font-size: 17px; margin: 0; font-weight: 800; letter-spacing: -0.01em; }
header h1 span { color: var(--sky); font-weight: 600; }
header a { margin-left: auto; color: #cfe6f5; font-size: 14px; text-decoration: none; }
header a:hover { color: #fff; text-decoration: underline; }
#progress { background: #fff; border-bottom: 1px solid var(--line); }
.bar { height: 4px; background: #e3eaf1; }
.bar span { display: block; height: 100%; background: var(--chateau); transition: width .25s; }
ol.chapters { display: flex; gap: 6px; list-style: none; margin: 0; padding: 8px 22px; overflow-x: auto; }
ol.chapters li { white-space: nowrap; font-size: 13.5px; padding: 3px 10px; border-radius: 999px; color: var(--muted); cursor: pointer; }
ol.chapters li.done { color: var(--chateau-700); }
ol.chapters li.on { background: var(--chateau); color: #fff; font-weight: 700; }
main { flex: 1; display: grid; grid-template-columns: 330px 1fr; min-height: 0; }
#side { padding: 34px 28px; display: flex; flex-direction: column; justify-content: center; }
.chap { font-family: Archivo, sans-serif; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
#side h1 { font-family: Archivo, sans-serif; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; margin: 8px 0 12px; }
#side p { font-size: 17px; line-height: 1.5; margin: 0 0 12px; }
#side p.do { color: var(--orange); font-weight: 700; }
.btns { display: flex; gap: 10px; margin-top: 18px; }
.btns button { font: inherit; font-weight: 700; font-size: 16px; padding: 10px 20px; border-radius: 10px; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.btns button.pri { background: var(--chateau); border-color: var(--chateau); color: #fff; }
.btns button:disabled { opacity: .35; cursor: default; }
.btns button.nudge { box-shadow: 0 0 0 0 rgba(3,102,162,.5); animation: ring 1.8s ease-out infinite; }
.count { margin-top: 14px; color: var(--muted); font-size: 14px; }
label.pick { display: block; margin-top: 8px; font-size: 15px; color: var(--muted); }
label.pick select { display: block; margin-top: 6px; width: 100%; font: inherit; font-size: 16px; padding: 8px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
#stage { display: flex; align-items: center; justify-content: center; padding: 20px 28px; min-height: 0; }
.shot { position: relative; display: inline-block; line-height: 0; }
.shot img { display: block; user-select: none; -webkit-user-drag: none; }
body.phone .shot { border: 12px solid #0d2536; border-radius: 34px; overflow: visible; box-shadow: 0 18px 44px rgba(22,32,44,.22); background: #0d2536; }
body.phone .shot img { max-height: calc(100vh - 150px); width: auto; border-radius: 22px; }
body.web .shot { border: 1px solid var(--line); border-top: 26px solid #dfe6ee; border-radius: 10px; box-shadow: 0 18px 44px rgba(22,32,44,.16); }
body.web .shot img { max-width: 100%; max-height: calc(100vh - 160px); width: auto; height: auto; }
.hots { position: absolute; inset: 0; }
.hot { position: absolute; padding: 0; margin: 0; border: 2px solid transparent; border-radius: 6px; background: transparent; cursor: help; }
.hot.go { cursor: pointer; }
.hot:hover { border-color: rgba(3,102,162,.7); background: rgba(3,102,162,.08); }
.hot.target { border: 3px solid var(--orange); background: rgba(236,122,44,.12); animation: ring2 1.8s ease-out infinite; cursor: pointer; }
.callout { position: absolute; transform: translateX(-50%); background: var(--orange); color: #fff; font-weight: 700; font-size: 15px; line-height: 1.2; padding: 7px 12px; border-radius: 8px; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 16px rgba(0,0,0,.2); z-index: 3; }
.callout.below { margin-top: 12px; }
.callout.above { transform: translate(-50%, -100%); margin-top: -12px; }
.callout::after { content: ""; position: absolute; left: 50%; margin-left: -8px; border: 8px solid transparent; }
.callout.below::after { bottom: 100%; border-bottom-color: var(--orange); }
.callout.above::after { top: 100%; border-top-color: var(--orange); }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(3,102,162,.45); } 100% { box-shadow: 0 0 0 12px rgba(3,102,162,0); } }
@keyframes ring2 { 0% { box-shadow: 0 0 0 0 rgba(236,122,44,.55); } 100% { box-shadow: 0 0 0 12px rgba(236,122,44,0); } }
@media (prefers-reduced-motion: reduce) { .hot.target, .btns button.nudge { animation: none; } }
#tip { position: fixed; z-index: 40; max-width: 280px; pointer-events: none; background: var(--navy); color: #fff; padding: 8px 10px; border-radius: 8px; font-size: 14px; line-height: 1.35; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
#tip[hidden] { display: none; }
@media (max-width: 900px) {
  main { grid-template-columns: 1fr; }
  #side { padding: 20px 18px 6px; }
  #side h1 { font-size: 22px; }
  #stage { padding: 12px 16px 24px; }
  body.phone .shot img { max-height: 70vh; }
}
header a.back { margin-left: 0; padding-right: 14px; border-right: 1px solid rgba(255,255,255,.25); }
