/* Setia Training Consultancy Services — shared training engine styles
   Palette follows the approved certificate template (CERT.pdf). */
:root {
  --navy: #0d2646;
  --navy-2: #143a68;
  --gold: #f7b500;
  --green: #17924a;
  --ink: #0e1726;
  --paper: #f4f6fa;
  --card: #ffffff;
  --line: #dfe5ee;
  --muted: #5d6b80;
  --shadow: 0 10px 30px rgba(13, 38, 70, .13);
  --hl: rgba(247, 181, 0, .28);
  --pink: #f6d3de;
  --pink-ink: #7a2246;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1220;
    --card: #121c2e;
    --line: #263349;
    --ink: #e8eefb;
    --muted: #93a3bb;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  /* Matches the setiaconsultancy.com site background: a soft blue-to-cream
     diagonal gradient scattered with small blue/gold sparkle stars. */
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><g fill='%23a9c8e8' fill-opacity='0.55'><rect x='28' y='24' width='7' height='7' transform='rotate(45 31.5 27.5)'/><rect x='150' y='40' width='5' height='5' transform='rotate(45 152.5 42.5)'/><rect x='70' y='110' width='6' height='6' transform='rotate(45 73 113)'/><rect x='190' y='140' width='7' height='7' transform='rotate(45 193.5 143.5)'/><rect x='10' y='170' width='5' height='5' transform='rotate(45 12.5 172.5)'/><circle cx='110' cy='30' r='2'/><circle cx='45' cy='150' r='2'/><circle cx='170' cy='90' r='2'/></g><g fill='%23e4c98a' fill-opacity='0.6'><rect x='95' y='55' width='6' height='6' transform='rotate(45 98 58)'/><rect x='20' y='95' width='6' height='6' transform='rotate(45 23 98)'/><rect x='160' y='190' width='7' height='7' transform='rotate(45 163.5 193.5)'/><rect x='125' y='150' width='5' height='5' transform='rotate(45 127.5 152.5)'/><circle cx='60' cy='20' r='2'/><circle cx='200' cy='70' r='2'/><circle cx='140' cy='115' r='2'/></g></svg>"),
    linear-gradient(135deg, #eaf3fb 0%, #fdf3e4 100%);
  background-repeat: repeat, no-repeat;
  background-size: 220px 220px, cover;
  background-attachment: fixed, fixed;
  position: relative;
}
/* Glittering effect: two star layers pulsing out of phase over the static base pattern. */
body::before, body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><g fill='%23ffffff' fill-opacity='0.9'><rect x='28' y='24' width='7' height='7' transform='rotate(45 31.5 27.5)'/><rect x='150' y='40' width='5' height='5' transform='rotate(45 152.5 42.5)'/><rect x='70' y='110' width='6' height='6' transform='rotate(45 73 113)'/><rect x='190' y='140' width='7' height='7' transform='rotate(45 193.5 143.5)'/><rect x='10' y='170' width='5' height='5' transform='rotate(45 12.5 172.5)'/><circle cx='110' cy='30' r='2.4'/><circle cx='45' cy='150' r='2.4'/><circle cx='170' cy='90' r='2.4'/></g></svg>");
  background-repeat: repeat;
  background-size: 220px 220px;
  opacity: 0;
}
body::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><g fill='%23fff6df' fill-opacity='0.95'><rect x='95' y='55' width='6' height='6' transform='rotate(45 98 58)'/><rect x='20' y='95' width='6' height='6' transform='rotate(45 23 98)'/><rect x='160' y='190' width='7' height='7' transform='rotate(45 163.5 193.5)'/><rect x='125' y='150' width='5' height='5' transform='rotate(45 127.5 152.5)'/><circle cx='60' cy='20' r='2.4'/><circle cx='200' cy='70' r='2.4'/><circle cx='140' cy='115' r='2.4'/></g></svg>");
  animation-delay: 1.6s;
}
@media (prefers-reduced-motion: no-preference) {
  body::before { animation: twinkle 3.2s ease-in-out infinite; }
  body::after { animation: twinkle 3.2s ease-in-out infinite; animation-delay: 1.6s; }
}
@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.85; }
}
.sitebar, .landing-main, header.trainhead, main.player, .crumb, footer.sitefoot, .ov {
  position: relative;
  z-index: 1;
}
@media (prefers-color-scheme: dark) {
  body { background-image: none; background-color: var(--paper); }
  body::before, body::after { display: none; }
}
a { color: inherit; }

/* ---------- Site top bar (ribbon nav) ---------- */
.sitebar {
  background: var(--navy);
  color: #fff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 60;
}
.sitebrand { font-weight: 700; letter-spacing: .5px; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.sitebrand .mark { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #ffd766); display: inline-block; }
nav.ribbon { position: relative; }
.ribbon-trigger {
  background: var(--navy-2); color: #fff; border: 1px solid rgba(255,255,255,.25);
  padding: 9px 15px; border-radius: 8px; cursor: pointer; font-size: .92rem;
  display: flex; align-items: center; gap: 8px;
}
.ribbon-trigger:hover { background: #1c4a82; }
.ribbon-panel {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--pink); color: var(--pink-ink);
  border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.28);
  min-width: 320px; max-width: 92vw; max-height: 70vh; overflow-y: auto;
  display: none; border: 1px solid #eeb9cc;
}
.ribbon-panel.open { display: block; }
.ribbon-panel .panel-title {
  background: #eeb9cc; color: var(--pink-ink); font-weight: 800;
  padding: 10px 16px; font-size: .78rem; text-transform: uppercase; letter-spacing: .6px;
}
.ribbon-row { border-top: 1px solid #eeb9cc; display: flex; flex-direction: column; }
.ribbon-item {
  display: flex; align-items: center; justify-content: space-between; flex: 1;
  padding: 12px 16px; text-decoration: none;
  color: var(--pink-ink); font-size: .94rem;
}
.ribbon-item:hover { background: #f2c4d4; }
.ribbon-item.active { background: #eeb9cc; font-weight: 800; }
.ribbon-item.disabled { color: #b97b93; cursor: default; }
.ribbon-item .navtag { font-size: .66rem; padding: 2px 8px; border-radius: 999px; background: #fff; color: var(--green); font-weight: 700; }
.ribbon-item.disabled .navtag { background: #fff; color: #b97b93; }
.ribbon-row:has(.ribbon-expand) { flex-direction: row; flex-wrap: wrap; align-items: stretch; }
.ribbon-expand {
  background: transparent; border: none; border-left: 1px solid #eeb9cc; cursor: pointer;
  width: 40px; flex: 0 0 40px; color: var(--pink-ink); font-size: .8rem;
  display: flex; align-items: center; justify-content: center; transition: transform .15s ease;
}
.ribbon-expand:hover { background: #f2c4d4; }
.ribbon-row.open .ribbon-expand { transform: rotate(90deg); }
.ribbon-sublist {
  flex: 1 0 100%; display: none; background: #fbe0e9; max-height: 240px; overflow-y: auto;
}
.ribbon-row.open .ribbon-sublist { display: block; }
.ribbon-sub-item {
  display: block; padding: 9px 16px 9px 30px; text-decoration: none;
  color: var(--pink-ink); font-size: .84rem; border-top: 1px solid #f2c4d4;
}
.ribbon-sub-item:hover { background: #f2c4d4; }
.crumb { padding: 14px 20px 0; }
.back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); color: var(--navy); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 9px 18px; font-size: .88rem; font-weight: 700;
  text-decoration: none; cursor: pointer; box-shadow: 0 2px 8px rgba(13,38,70,.08);
  transition: background .15s ease, border-color .15s ease;
}
.back-btn:hover { background: var(--paper); border-color: var(--navy-2); }
.back-btn .arrow { font-size: 1rem; line-height: 1; }

/* ---------- Landing / overview page ---------- */
.landing-main { max-width: 1100px; margin: 0 auto; padding: 26px 22px 60px; }
.landing-hero {
  background: linear-gradient(100deg, var(--navy), var(--navy-2)); color: #fff;
  border-radius: 16px; padding: 34px 30px; margin-bottom: 24px;
}
.landing-hero h1 { margin: 0 0 8px; font-size: 1.7rem; text-wrap: balance; }
.landing-hero p { margin: 0; color: #cfe0f5; max-width: 680px; }
.subtopic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 22px 0; }
.subtopic-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  box-shadow: var(--shadow); text-decoration: none; color: var(--ink); display: block;
  transition: transform .12s ease, box-shadow .2s ease;
}
.subtopic-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(13,38,70,.18); }
.subtopic-card .n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 800; font-size: .85rem; margin-bottom: 10px; }
.subtopic-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.subtopic-card p { margin: 0; font-size: .87rem; color: var(--muted); }

/* ---------- Login gate ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card {
  width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(13,38,70,.25); overflow: hidden;
}
.login-top { background: linear-gradient(100deg, var(--navy), var(--navy-2)); color: #fff; padding: 26px 28px 22px; text-align: center; }
.login-top .mark { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #ffd766); margin: 0 auto 12px; }
.login-top h1 { margin: 0 0 4px; font-size: 1.25rem; }
.login-top p { margin: 0; font-size: .82rem; color: #cfe0f5; }
.login-body { padding: 26px 28px 28px; }
.login-body label { display: block; font-size: .82rem; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.login-body input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font-size: 15px; margin-bottom: 16px; }
.login-body input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.login-body .go { width: 100%; margin-top: 4px; }
.login-err { display: none; background: rgba(200,40,40,.1); color: #c02828; border: 1px solid rgba(200,40,40,.3); border-radius: 10px; padding: 10px 13px; font-size: .85rem; margin-bottom: 16px; }
.login-err.show { display: block; }
.login-foot { text-align: center; font-size: .78rem; color: var(--muted); margin-top: 18px; }
.assess-cta {
  display: inline-flex; align-items: center; gap: 10px; background: var(--gold); color: var(--navy);
  border: 0; border-radius: 999px; padding: 13px 26px; font: 700 16px/1 "Segoe UI", system-ui, sans-serif;
  cursor: pointer; box-shadow: 0 6px 18px rgba(247,181,0,.4); margin-top: 6px;
}
.assess-cta:hover { transform: translateY(-1px); }
.assess-cta small { display: block; font-size: 10.5px; font-weight: 600; opacity: .75; margin-top: 3px; }

/* ---------- Narration page header ---------- */
header.trainhead {
  background: linear-gradient(100deg, var(--navy), var(--navy-2)); color: #fff;
  padding: 16px 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand .icon { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-size: 19px; flex: none; }
.brand h1 { margin: 0; font-size: 17px; letter-spacing: .3px; }
.brand p { margin: 0; font-size: 12px; color: #b9cbe6; }

.listen {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: var(--navy); border: 0; border-radius: 999px;
  padding: 12px 22px; font: 700 15px/1 "Segoe UI", system-ui, sans-serif; letter-spacing: .3px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(247,181,0,.4); transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.listen:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(247,181,0,.55); }
.listen[data-state="playing"] { background: #fff; }
.listen .lbl { text-align: left; }
.listen small { display: block; font-size: 10px; font-weight: 600; opacity: .72; margin-top: 3px; }
.listen .bars { display: none; gap: 3px; align-items: flex-end; height: 15px; }
.listen[data-state="playing"] .bars { display: flex; }
.listen[data-state="playing"] .ico { display: none; }
.bars i { width: 3px; background: var(--navy); border-radius: 2px; animation: eq .9s ease-in-out infinite; }
.bars i:nth-child(1) { height: 7px; animation-delay: 0s; }
.bars i:nth-child(2) { height: 15px; animation-delay: .15s; }
.bars i:nth-child(3) { height: 10px; animation-delay: .3s; }
.bars i:nth-child(4) { height: 13px; animation-delay: .45s; }
@keyframes eq { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .bars i { animation: none; } }

.assess {
  display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.55); border-radius: 999px; padding: 11px 20px;
  font: 700 14px/1 "Segoe UI", system-ui, sans-serif; letter-spacing: .3px; cursor: pointer;
}
.assess:hover { background: rgba(255,255,255,.22); }
.assess small { display: block; font-size: 10px; font-weight: 600; opacity: .75; margin-top: 3px; }

.hlang { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 8px 12px; }
.hlang select { background: transparent; color: #fff; border: 0; font: 700 13px/1 "Segoe UI", system-ui, sans-serif; cursor: pointer; padding: 2px 4px; outline: none; }
.hlang select option { color: #111; }

/* ---------- Stage / chapters layout ---------- */
main.player {
  max-width: 1400px; margin: 0 auto; padding: 22px;
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); gap: 22px; align-items: start;
}
@media (max-width: 940px) { main.player { grid-template-columns: 1fr; } }

.stage { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.frame { position: relative; min-height: 560px; background: linear-gradient(160deg, var(--navy), var(--navy-2)); overflow: hidden; }
.tag { position: absolute; left: 12px; top: 12px; z-index: 3; background: rgba(13,38,70,.88); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .5px; padding: 5px 11px; border-radius: 999px; }

/* Slide picture — a real page from the source PDF, with a gentle Ken Burns
   zoom and a slow diagonal glitter sweep to keep it feeling alive. */
.slide-imgwrap { position: absolute; inset: 0; overflow: hidden; background: #fff; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; transform-origin: center center; animation: kenburns 16s ease-in-out infinite alternate; }
.slide-imgwrap::after {
  content: ''; position: absolute; inset: -20%; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.55) 50%, transparent 58%);
  background-size: 220% 220%; animation: glitter 7s ease-in-out infinite;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes glitter { 0% { background-position: -60% -60%; } 100% { background-position: 60% 60%; } }
@media (prefers-reduced-motion: reduce) { .slide-img { animation: none; } .slide-imgwrap::after { animation: none; display: none; } }

.slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  background: linear-gradient(0deg, rgba(13,38,70,.94) 0%, rgba(13,38,70,.78) 60%, rgba(13,38,70,0) 100%);
  padding: 46px 26px 16px; color: #fff;
}
.slide-caption .module { color: var(--gold); text-transform: uppercase; font-size: .72rem; font-weight: 800; letter-spacing: 1px; margin-bottom: 6px; }
.slide-caption h2 { margin: 0 0 4px; font-size: 1.35rem; color: #fff; text-wrap: balance; }
.slide-caption .sub { color: #dbe4ee; font-size: .9rem; }

.slidecard { background: #fff; color: var(--ink); border-radius: 14px; padding: 30px 34px; max-width: 620px; width: 100%; box-shadow: 0 18px 44px rgba(0,0,0,.28); }
.slidecard .module { color: var(--gold); text-transform: uppercase; font-size: .72rem; font-weight: 800; letter-spacing: 1px; margin-bottom: 6px; }
.slidecard h2 { margin: 0 0 6px; font-size: 1.35rem; color: var(--navy); text-wrap: balance; }
.slidecard .sub { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.slidecard ul { margin: 0; padding-left: 20px; }
.slidecard li { margin-bottom: 8px; font-size: .96rem; }
.frame:has(.slide-imgwrap) { display: block; padding: 0; }
.frame:not(:has(.slide-imgwrap)) { display: flex; align-items: center; justify-content: center; padding: 34px; }

.bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.btn { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 9px; padding: 8px 13px; cursor: pointer; font-size: 14px; }
.btn:hover { border-color: var(--navy-2); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.bar .spacer { margin-left: auto; }
.bar label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
select, input[type=range] { accent-color: var(--gold); }
select { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 13px; max-width: 190px; }

.track { height: 4px; background: var(--line); }
.track > div { height: 100%; width: 0; background: var(--gold); transition: width .3s linear; }

.side { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; max-height: 78vh; }
.side h2 { margin: 0; padding: 14px 16px; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.chapters { overflow-y: auto; padding: 8px; }
.ch { padding: 10px 12px; border-radius: 10px; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; }
.ch:hover { background: rgba(125,145,175,.12); }
.ch .n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--muted); font-size: 11px; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }
.ch .t { font-size: 14px; font-weight: 600; }
.ch .d { font-size: 12px; color: var(--muted); }
.ch.on { background: var(--hl); }
.ch.on .n { background: var(--gold); color: var(--navy); }
.ch.done .n { background: var(--green); color: #fff; }

.script { border-top: 1px solid var(--line); padding: 14px 16px; font-size: 15px; overflow-y: auto; max-height: 34vh; background: rgba(125,145,175,.05); }
.script .s { color: var(--muted); transition: color .2s ease; }
.script .s.on { color: var(--ink); background: var(--hl); border-radius: 4px; box-shadow: 0 0 0 3px var(--hl); }

.note { display: none; }
.warn { display: none; margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #ffe9e9; color: #8a1c1c; font-size: 13.5px; border: 1px solid #f3c2c2; }

/* ---------- Assessment modal ---------- */
.ov { position: fixed; inset: 0; z-index: 80; background: rgba(8,16,32,.62); backdrop-filter: blur(3px); display: none; padding: 24px; overflow-y: auto; }
.ov.open { display: block; }
.modal { max-width: 780px; margin: 0 auto; background: var(--card); color: var(--ink); border-radius: 16px; box-shadow: 0 24px 70px rgba(0,0,0,.5); overflow: hidden; }
.modal .top { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: linear-gradient(100deg, var(--navy), var(--navy-2)); color: #fff; }
.modal .top h3 { margin: 0; font-size: 16px; margin-right: auto; }
.modal .top .x { background: rgba(255,255,255,.16); border: 0; color: #fff; width: 30px; height: 30px; border-radius: 8px; font-size: 16px; cursor: pointer; }
.modal .top .x:hover { background: rgba(255,255,255,.3); }
.body { padding: 20px; }
.intro p { margin: 0 0 12px; }
.rules { margin: 0 0 16px; padding-left: 20px; }
.rules li { margin: 5px 0; }
.go { background: var(--green); color: #fff; border: 0; border-radius: 10px; padding: 12px 22px; font: 700 15px/1 "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.go:hover { filter: brightness(1.08); }
.go:disabled { opacity: .45; cursor: not-allowed; filter: none; }

.qbar { position: sticky; top: 0; background: var(--card); padding: 10px 0 12px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); z-index: 2; }
.qbar b { color: var(--ink); }
.qtrack { height: 5px; background: var(--line); border-radius: 3px; margin-top: 7px; overflow: hidden; }
.qtrack > div { height: 100%; width: 0; background: var(--green); transition: width .25s ease; }

.q { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 14px 0; }
.q.answered { background: rgba(125,145,175,.07); }
.q .qt { font-weight: 600; margin-bottom: 10px; }
.q .qt span { color: var(--muted); font-weight: 700; margin-right: 6px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 9px 11px; border: 1px solid transparent; border-radius: 9px; cursor: pointer; }
.opt:hover { background: rgba(125,145,175,.12); }
.opt input { margin-top: 4px; flex: none; accent-color: var(--navy-2); }
.opt .k { font-weight: 700; color: var(--muted); flex: none; }
.q.locked .opt { cursor: default; opacity: .62; }
.q.locked .opt:hover { background: transparent; }
.q.locked .opt.chosen { opacity: 1; border-color: var(--navy-2); background: rgba(20,58,104,.1); }
.lockmsg { font-size: 12px; color: var(--muted); margin-top: 8px; display: none; }
.q.locked .lockmsg { display: block; }

.result { text-align: center; padding: 10px 0 4px; }
.score { font-size: 42px; font-weight: 800; margin: 6px 0; }
.verdict { display: inline-block; padding: 6px 16px; border-radius: 999px; font-weight: 700; letter-spacing: .5px; }
.verdict.pass { background: rgba(23,146,74,.16); color: var(--green); }
.verdict.fail { background: rgba(200,40,40,.14); color: #c22; }
.namebox { margin: 18px auto 0; max-width: 430px; text-align: left; }
.namebox label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 6px; }
.namebox input { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font-size: 15px; margin-bottom: 10px; }
.namebox .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.acts { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 12px 18px; font-size: 14px; cursor: pointer; }
.ghost:hover { border-color: var(--navy-2); }
.langpick { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.langpick select { background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font-size: 14px; }

footer.sitefoot { text-align: center; padding: 22px; color: var(--muted); font-size: .8rem; }

@media print {
  .sitebar, .trainhead, .bar, .side, .note, footer.sitefoot { display: none !important; }
}
