/* Gameplan learning app look-alike (app.gameplan.com): dark, purple-tinted, orange actions. */
:root {
  --bg: #121016;
  --bg2: #17141d;
  --panel: #1d1a24;
  --panel2: #25212e;
  --line: #322d3d;
  --text: #eeedf3;
  --muted: #a19cb0;
  --faint: #6f6a7e;
  --orange: #fe7233;
  --orange2: #ff8a52;
  --purple: #7b5cff;
  --purple-bg: #2a2045;
  --green: #3ccf8e;
  --red: #ff5d6c;
  --yellow: #ffc857;
  --radius: 12px;
  font-family: "Schibsted Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-size: 15px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 26px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }

/* shell */
.shell { display: grid; grid-template-columns: 76px 1fr; min-height: 100vh; }
.rail { background: var(--bg2); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; padding: 16px 0; gap: 6px; position: sticky; top: 0; height: 100vh; }
.rail .logo { width: 40px; height: 40px; margin-bottom: 14px; }
.rail a { width: 56px; padding: 8px 0 6px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: 10.5px; }
.rail a svg { width: 22px; height: 22px; }
.rail a:hover { background: var(--panel); color: var(--text); }
.rail a.on { background: var(--purple-bg); color: #fff; }
.rail .grow { flex: 1; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 60px; display: flex; align-items: center; gap: 16px; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(18,16,22,.85); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
.topbar .crumbs { color: var(--muted); font-size: 14px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .crumbs b { color: var(--text); font-weight: 600; }
.search { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; color: var(--faint); width: 260px; font-size: 13px; }
.me { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--purple); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; }
.avatar.t { background: var(--orange); }
.page { padding: 28px; max-width: 1240px; width: 100%; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.side { grid-template-columns: 1fr 340px; align-items: start; }
@media (max-width: 1000px) { .g2, .g3, .side { grid-template-columns: 1fr; } .search { display: none; } }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h2 + *, .card h3 + * { margin-top: 12px; }
.card .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 9px; padding: 9px 16px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; background: var(--orange); color: #fff; }
.btn:hover { background: var(--orange2); }
.btn.ghost { background: var(--panel2); color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { background: #2e2939; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--panel2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.pill.green { color: var(--green); border-color: rgba(60,207,142,.35); background: rgba(60,207,142,.08); }
.pill.red { color: var(--red); border-color: rgba(255,93,108,.35); background: rgba(255,93,108,.08); }
.pill.orange { color: var(--orange); border-color: rgba(254,114,51,.4); background: rgba(254,114,51,.08); }
.pill.yellow { color: var(--yellow); border-color: rgba(255,200,87,.35); background: rgba(255,200,87,.08); }
.pill.purple { color: #b9a8ff; border-color: rgba(123,92,255,.4); background: rgba(123,92,255,.1); }

.banner { border-radius: 16px; padding: 30px 32px; background: radial-gradient(120% 140% at 100% 0%, #5b3fd6 0%, #2a1f55 45%, #1a1530 100%); border: 1px solid #3b2f66; position: relative; overflow: hidden; min-height: 170px; }
.banner h1 { font-family: "Instrument Serif", serif; font-weight: 400; font-size: 38px; letter-spacing: 0; line-height: 1.05; }
.banner p { color: #d6cff5; margin-top: 10px; max-width: 520px; }
.banner .art { position: absolute; right: 28px; bottom: -8px; width: 170px; }

.progress { height: 8px; background: var(--panel2); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), #ffb07f); border-radius: 99px; }

.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 600; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.t td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }

/* week strip */
.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.day { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; min-height: 96px; font-size: 13px; }
.day b { display: block; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.day .ev { background: var(--purple-bg); border-left: 3px solid var(--purple); padding: 5px 7px; border-radius: 6px; margin-top: 6px; }
.day .ev.o { background: rgba(254,114,51,.12); border-left-color: var(--orange); }
.day.today { outline: 1px solid var(--orange); }

/* course outline */
.unit { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-bottom: 12px; overflow: hidden; }
.unit summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; align-items: center; gap: 14px; }
.unit summary::-webkit-details-marker { display: none; }
.unit .num { width: 34px; height: 34px; border-radius: 9px; background: var(--panel2); display: grid; place-items: center; font-weight: 700; color: var(--muted); flex: none; }
.unit.done .num { background: rgba(60,207,142,.15); color: var(--green); }
.unit.cur .num { background: rgba(254,114,51,.15); color: var(--orange); }
.unit .lessons { border-top: 1px solid var(--line); padding: 6px 20px 12px 68px; }
.unit .lessons a { display: flex; gap: 10px; align-items: center; padding: 7px 0; color: var(--muted); font-size: 14px; }
.unit .lessons a:hover { color: var(--text); }
.unit .lessons a.cur { color: var(--orange); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; }
.dot.done { background: var(--green); }
.dot.cur { background: var(--orange); }

/* lesson */
.lesson-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
@media (max-width: 1100px) { .lesson-wrap { grid-template-columns: 1fr; } }
.video { aspect-ratio: 16/9; border-radius: 14px; background: radial-gradient(80% 90% at 70% 30%, #3a2a74, #141018 70%); display: grid; place-items: center; position: relative; border: 1px solid var(--line); overflow: hidden; }
.video .play { width: 74px; height: 74px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; backdrop-filter: blur(4px); }
.video .cap { position: absolute; left: 18px; bottom: 16px; right: 18px; display: flex; justify-content: space-between; color: #cfc8ea; font-size: 13px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-top: 12px; scroll-margin-top: 80px; }
.step .n { color: var(--orange); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.step h3 { margin: 4px 0 6px; }
.step:target { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(254,114,51,.18); }
.transcript .cue { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.transcript .cue:first-child { border-top: 0; }
.transcript .cue b { color: var(--orange); font-variant-numeric: tabular-nums; min-width: 38px; }
.locked { text-align: center; padding: 70px 30px; }
.locked .ico { font-size: 44px; }

/* quiz */
.q { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 12px; }
.q label { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; margin-top: 8px; cursor: pointer; }
.q label:hover { background: var(--panel2); }
.q label.right { border-color: var(--green); background: rgba(60,207,142,.08); }
.q label.wrong { border-color: var(--red); background: rgba(255,93,108,.08); }
.q .why { display: none; margin-top: 10px; font-size: 14px; color: var(--muted); }
.q.answered .why { display: block; }

/* login */
.login { min-height: 100vh; display: grid; grid-template-columns: 460px 1fr; background: radial-gradient(70% 90% at 75% 50%, #3a2366 0%, #1d1530 45%, #141018 100%); }
.login .panel { margin: 28px; background: rgba(28,25,35,.92); border: 1px solid var(--line); border-radius: 16px; padding: 34px 32px; display: flex; flex-direction: column; gap: 14px; }
.login label { font-size: 13px; font-weight: 600; }
.login input { width: 100%; background: #26222f; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--text); font: inherit; margin-top: 6px; }
.login .sso { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px; border-radius: 8px; background: #2a2633; border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.login .sso.g { border-top: 2px solid #ea4335; }
.login .sso.c { border-top: 2px solid #436cf2; }
.login .sso.e { border-top: 2px solid #9aa0a6; }
.login .sso.l { border-top: 2px solid #31b5e8; }
.login .or { text-align: center; color: var(--muted); font-size: 13px; }
.login .art { display: grid; place-items: center; }
.persona { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: #221e2b; border: 1px dashed #4a4160; border-radius: 10px; padding: 11px 12px; color: var(--text); font: inherit; cursor: pointer; }
.persona:hover { border-color: var(--orange); }
@media (max-width: 900px) { .login { grid-template-columns: 1fr; } .login .art { display: none; } }

.flash { padding: 12px 16px; border-radius: 10px; background: rgba(254,114,51,.1); border: 1px solid rgba(254,114,51,.35); margin-bottom: 18px; }
.alert-red { padding: 14px 16px; border-radius: 10px; background: rgba(255,93,108,.1); border: 1px solid rgba(255,93,108,.4); }
.demo-note { position: fixed; left: 86px; bottom: 10px; font-size: 11px; color: var(--faint); }
