/* West Mall Lightning · Film Room
   Lightning Blue from the crest, rink-ice whites, condensed jersey lettering. */
@font-face { font-family: "Saira Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/saira-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/saira-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/saira-condensed-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/barlow-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/barlow-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/barlow-latin-700-normal.woff2) format("woff2"); }
:root {
  --blue: #263c83;      /* crest blue */
  --deep: #18275c;      /* dark crest blue */
  --ice: #f3f6fb;       /* rink ice */
  --frost: #e3e9f5;     /* boards, dividers */
  --line: #cdd6e8;
  --ink: #141a2e;
  --muted: #56607a;
  --white: #fff;
  --goal: #1f7a4a; --goal-bg: #e5f3ea;   /* right answer */
  --miss: #c8202f; --miss-bg: #fbe8ea;   /* wrong answer (rink red) */
  --display: "Saira Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--body); background: var(--ice); color: var(--ink); font-size: 17px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
button { font: inherit; cursor: pointer; color: inherit; }
:focus-visible { outline: 3px solid #6f8fe0; outline-offset: 2px; }
img { max-width: 100%; }

/* ---------- header ---------- */
header.top { background: var(--deep); color: var(--white); display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; position: sticky; top: 0; z-index: 5; }
header.top .crest { width: 38px; height: 38px; flex: none; }
header.top .brand { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1; letter-spacing: .2px; }
header.top .brand span { display: block; font-family: var(--body); font-weight: 500; font-size: 12.5px; opacity: .72; margin-top: 3px; letter-spacing: 0; }
header.top .who { margin-left: auto; text-align: right; font-size: 14px; line-height: 1.25; }
header.top .who b { font-family: var(--display); font-size: 17px; }
header.top .who button { background: none; border: 0; padding: 2px 0; color: #b9c8f0; font-size: 13px; text-decoration: underline; }
.progress { height: 4px; background: var(--deep); }
.progress > i { display: block; height: 100%; width: 100%; background: #8fb0ff; transform-origin: left; transform: scaleX(0); transition: transform .3s ease; }

main { max-width: 760px; margin: 0 auto; padding: 22px 16px 64px; }
h1 { font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1.05; margin: 2px 0 8px; color: var(--deep); letter-spacing: -.2px; }
h2 { font-family: var(--display); font-weight: 700; font-size: 25px; line-height: 1.1; margin: 26px 0 10px; color: var(--deep); }
.sub { color: var(--muted); margin: 0 0 18px; max-width: 62ch; }
.step { font-weight: 600; color: var(--blue); font-size: 15px; margin: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; min-height: 54px;
  padding: 12px 24px; background: var(--blue); color: var(--white); font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: .3px; }
.btn:hover { background: var(--deep); }
.btn.block { width: 100%; }
.btn.ghost { background: var(--white); color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.btn:disabled { opacity: .35; cursor: default; background: var(--blue); }
.link { background: none; border: 0; color: var(--blue); text-decoration: underline; padding: 10px 0; font-size: 15px; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; }

/* ---------- pick your jersey ---------- */
.hero { background: var(--deep); color: var(--white); text-align: center; padding: 26px 16px 34px; margin: -22px -16px 22px; }
.hero img { width: 150px; height: 150px; display: block; margin: 0 auto 10px; }
.hero h1 { color: var(--white); font-size: 48px; margin: 0; }
.hero p { margin: 4px 0 0; color: #c9d5f5; font-size: 18px; }
@media (min-width: 760px) { .hero { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); } }
.rack { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 10px; }
.hang { background: none; border: 0; padding: 6px 4px 8px; border-radius: 12px; text-align: center; }
.hang:hover, .hang:focus-visible { background: var(--frost); }
.hang:hover svg.jersey { transform: translateY(-3px); }
.hang .nm { display: block; font-weight: 600; line-height: 1.15; margin-top: 2px; }
.hang .nm small { display: block; font-weight: 500; color: var(--muted); font-size: 13.5px; }
svg.jersey { width: 84px; height: 84px; display: block; margin: 0 auto; transition: transform .15s ease; }
svg.jersey .j-body { fill: var(--blue); }
svg.jersey .j-trim { fill: var(--white); }
svg.jersey text { fill: var(--white); font-family: var(--display); font-weight: 800; font-size: 34px; }
svg.jersey.big { width: 170px; height: 170px; }
@media (prefers-reduced-motion: reduce) { svg.jersey, .progress > i { transition: none; } .hang:hover svg.jersey { transform: none; } }
.confirm { text-align: center; padding: 10px 0; }
.confirm h1 { font-size: 40px; }

/* ---------- home ---------- */
.menu { display: grid; gap: 12px; }
.row { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; width: 100%; text-align: left;
  background: var(--white); border: 0; border-radius: 14px; padding: 16px; box-shadow: 0 1px 0 var(--line); }
.row:hover { box-shadow: 0 0 0 2px var(--blue); }
.row .tile { width: 64px; height: 64px; border-radius: 12px; background: var(--blue); color: var(--white); display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 34px; }
.row .tile svg { width: 30px; height: 30px; fill: var(--white); }
.row h3 { font-family: var(--display); font-weight: 700; font-size: 25px; line-height: 1.05; margin: 0 0 3px; color: var(--deep); }
.row p { margin: 0; color: var(--muted); font-size: 15px; }
.row .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: 13px; font-weight: 600; border-radius: 6px; padding: 2px 8px; background: var(--frost); color: var(--deep); }
.tag.mine { background: var(--blue); color: var(--white); }
.tag.done { background: var(--goal-bg); color: var(--goal); }
.row.soon { background: transparent; box-shadow: inset 0 0 0 2px var(--line); cursor: default; }
.row.soon .tile { background: var(--frost); color: var(--muted); }
.row.soon h3 { color: var(--muted); }

/* ---------- panels ---------- */
.card { background: var(--white); border-radius: 14px; padding: 18px; margin-bottom: 14px; box-shadow: 0 1px 0 var(--line); }
.watch { background: var(--frost); border-radius: 10px; padding: 12px 14px; font-weight: 600; margin: 12px 0 14px; color: var(--deep); }
video { width: 100%; border-radius: 10px; background: #000; display: block; }
.speeds { display: flex; gap: 6px; margin: 10px 0 4px; flex-wrap: wrap; }
.speeds button, .seg button { border: 0; background: var(--white); color: var(--blue); border-radius: 8px; padding: 7px 12px; font-weight: 600; font-size: 14.5px; box-shadow: inset 0 0 0 2px var(--blue); }
.speeds button.on, .seg button.on { background: var(--blue); color: var(--white); }
.note { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.frames { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.frames figure { margin: 0; }
.frames img { width: 100%; border-radius: 8px; display: block; cursor: zoom-in; }
.frames figcaption { font-size: 13.5px; font-weight: 600; margin-top: 4px; line-height: 1.3; }
@media (max-width: 540px) { .frames { grid-template-columns: 1fr; } }
.primer .r { display: grid; grid-template-columns: 116px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--frost); }
.primer .r:last-child { border-bottom: 0; }
.primer .r b { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--blue); line-height: 1.15; }
@media (max-width: 420px) { .primer .r { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- questions ---------- */
.qtext { font-size: 20px; font-weight: 600; line-height: 1.35; margin: 8px 0 14px; }
.thumbs { display: flex; gap: 6px; margin: 8px 0 4px; }
.thumbs img { width: 50%; border-radius: 8px; cursor: zoom-in; }
.diagram { background: var(--white); border-radius: 12px; padding: 6px; margin-bottom: 8px; }
.diagram svg { width: 100%; height: auto; display: block; max-height: 62vh; }
.legend { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.legend b.x { color: #1f4e9c; } .legend b.o { color: var(--miss); } .legend b.s { color: #1d7a3a; }
.opts { display: grid; gap: 10px; }
.opts.letters { grid-template-columns: repeat(4, 1fr); }
.opt { text-align: left; background: var(--white); border: 0; box-shadow: inset 0 0 0 2px var(--line); border-radius: 10px; padding: 14px 15px; font-size: 17px; min-height: 56px; }
.opts.letters .opt { text-align: center; font-family: var(--display); font-size: 30px; font-weight: 800; color: var(--deep); }
.opt:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--blue); }
.opt:disabled { cursor: default; }
.opt.right { box-shadow: inset 0 0 0 3px var(--goal); background: var(--goal-bg); }
.opt.wrong { box-shadow: inset 0 0 0 3px var(--miss); background: var(--miss-bg); }
.opt.dim { opacity: .5; }
.feedback { margin-top: 14px; border-radius: 12px; padding: 16px; }
.feedback.ok { background: var(--goal-bg); }
.feedback.no { background: var(--miss-bg); }
.feedback .v { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.1; margin-bottom: 6px; }
.feedback.ok .v { color: var(--goal); } .feedback.no .v { color: var(--miss); }

/* ---------- lesson, rules, finish ---------- */
.lesson { background: var(--deep); color: var(--white); }
.lesson b { color: #c9d5f5; }
.rule { display: block; width: 100%; text-align: left; background: var(--white); border: 0; box-shadow: inset 0 0 0 2px var(--frost); border-radius: 10px; padding: 13px 15px; margin-bottom: 8px; }
.rule b { display: block; font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--deep); line-height: 1.15; margin-bottom: 2px; }
.rule span { font-size: 15.5px; }
.rule em { display: block; font-style: normal; font-size: 13px; color: var(--muted); margin-top: 3px; }
button.rule:hover { box-shadow: inset 0 0 0 2px var(--blue); }
.rule.on { box-shadow: inset 0 0 0 3px var(--blue); background: #eaf0ff; }
.scoreboard { background: var(--deep); color: var(--white); border-radius: 14px; padding: 22px 18px; text-align: center; margin-bottom: 16px; }
.scoreboard .n { font-family: var(--display); font-weight: 800; font-size: 84px; line-height: .95; }
.scoreboard .n small { font-size: 40px; opacity: .6; }
.scoreboard p { margin: 8px 0 0; color: #c9d5f5; }

/* ---------- video room ---------- */
.clip { margin-bottom: 26px; }
.clip h2 { margin-top: 6px; }
.seg { display: flex; gap: 6px; margin-bottom: 10px; }

.lightbox { position: fixed; inset: 0; background: rgba(10,16,40,.92); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 10px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; }
.err { background: var(--miss-bg); color: var(--miss); padding: 12px; border-radius: 10px; font-weight: 600; }
