:root {
  --cream: #fbf3e4;
  --paper: #fffaf0;
  --navy: #1b2347;
  --navy-2: #2b3566;
  --muted: #5d6280;
  --coral: #ef6a4c;
  --coral-d: #c84a2e;
  --mustard: #ebb33a;
  --mustard-d: #b9851a;
  --teal: #3e9e93;
  --teal-d: #23766d;
  --line: #e8dcc4;
  --good: #2e9b6a;
  --bad: #d4462f;
  --accent: var(--coral);
  --accent-d: var(--coral-d);
  --radius: 22px;
  --shadow: 0 2px 0 var(--navy), 0 18px 40px -22px rgba(27, 35, 71, 0.55);
  --display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, sans-serif;
}
body[data-zone='teal'] { --accent: var(--teal); --accent-d: var(--teal-d); }
body[data-zone='coral'] { --accent: var(--coral); --accent-d: var(--coral-d); }
body[data-zone='mustard'] { --accent: var(--mustard); --accent-d: var(--mustard-d); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--navy);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.08; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:disabled { cursor: default; }
a { color: inherit; }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--navy); background: var(--paper); border: 1.5px solid var(--navy); padding: 6px 14px; border-radius: 999px;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 40px); background: rgba(251, 243, 228, 0.88); backdrop-filter: blur(10px);
  border-bottom: 1.5px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 19px; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: var(--mustard);
  font-size: 14px; letter-spacing: 0.02em; transform: rotate(-6deg);
}
.topbar-right { display: flex; align-items: center; gap: 10px; }
.player-chip { font-weight: 700; font-size: 14px; background: var(--paper); border: 1.5px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 18px;
  background: var(--paper); border: 1.5px solid var(--navy); box-shadow: 0 2px 0 var(--navy); transition: transform 0.12s;
}
.icon-btn:active { transform: translateY(2px); box-shadow: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 16px;
  padding: 14px 24px; border-radius: 14px; border: 2px solid var(--navy); transition: transform 0.12s, box-shadow 0.12s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 0 var(--navy); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15); }
.btn-ghost { background: var(--paper); box-shadow: 0 4px 0 var(--navy); }
.btn-link { border-color: transparent; text-decoration: underline; text-underline-offset: 4px; padding-inline: 8px; }
.btn-primary:hover:not(:disabled), .btn-ghost:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--navy); }
.btn-primary:active:not(:disabled), .btn-ghost:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--navy); }
.btn:disabled { opacity: 0.45; }

/* ---------- Screens ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 60px; }
.screen { display: none; }
.screen.is-active { display: block; animation: fadeUp 0.45s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Home ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 5vw, 64px) 0 40px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 82px); margin: 18px 0 18px; }
.hero h1 em { font-style: normal; color: var(--coral); background: linear-gradient(transparent 62%, rgba(235, 179, 58, 0.55) 62%); }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 46ch; }
.hero-art { position: relative; border-radius: 28px; overflow: hidden; border: 2.5px solid var(--navy); box-shadow: 10px 10px 0 var(--navy); transform: rotate(1.2deg); }
.hero-art img { width: 100%; aspect-ratio: 1376 / 768; object-fit: cover; }
.name-form { margin-top: 28px; }
.name-form label { display: block; font-weight: 700; margin-bottom: 8px; }
.name-row { display: flex; gap: 10px; flex-wrap: wrap; }
.name-row input {
  flex: 1 1 200px; font: inherit; font-size: 17px; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--navy);
  background: var(--paper); color: var(--navy); outline: none;
}
.name-row input:focus { box-shadow: 0 0 0 4px rgba(239, 106, 76, 0.25); }
.shake { animation: shake 0.45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

.zones-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin: 30px 0 22px; }
.zones-head h2 { font-size: clamp(32px, 4vw, 48px); }
.zones-head p { color: var(--muted); max-width: 52ch; }
.zone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.zone-card {
  --zc: var(--coral); text-align: left; background: var(--paper); border: 2.5px solid var(--navy); border-radius: var(--radius);
  overflow: hidden; box-shadow: 6px 6px 0 var(--navy); transition: transform 0.18s, box-shadow 0.18s; display: flex; flex-direction: column;
  animation: fadeUp 0.5s ease both; animation-delay: var(--d);
}
.zone-teal { --zc: var(--teal); }
.zone-coral { --zc: var(--coral); }
.zone-mustard { --zc: var(--mustard); }
.zone-card:hover { transform: translate(-3px, -3px) rotate(-0.5deg); box-shadow: 10px 10px 0 var(--zc); }
.zone-card.pulse { animation: pulse 1.2s ease 2; }
@keyframes pulse { 50% { box-shadow: 6px 6px 0 var(--navy), 0 0 0 10px rgba(239, 106, 76, 0.25); } }
.zone-img { aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 2.5px solid var(--navy); background: var(--zc); }
.zone-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.zone-card:hover .zone-img img { transform: scale(1.05); }
.zone-info { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.zone-num { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--zc); filter: brightness(0.8); }
.zone-info h3 { font-size: 30px; }
.zone-info p { color: var(--muted); }
.zone-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; border-top: 1.5px dashed var(--line); }
.zone-best { font-size: 13px; font-weight: 700; color: var(--muted); }
.stars i { font-style: normal; font-size: 20px; color: #ddd0b6; margin-right: 2px; }
.stars i.on { color: var(--mustard); text-shadow: 0 1px 0 var(--mustard-d); }
.stars.big i { font-size: 46px; display: inline-block; animation: pop 0.5s ease both; }
.stars.big i:nth-child(2) { animation-delay: 0.15s; }
.stars.big i:nth-child(3) { animation-delay: 0.3s; }
@keyframes pop { from { transform: scale(0) rotate(-40deg); } 70% { transform: scale(1.25); } to { transform: none; } }

.cert-cta { margin: 28px 0 10px; }
.cert-locked, .cert-ready {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 20px; border-radius: 16px;
  border: 2px dashed var(--navy); font-weight: 700; background: var(--paper);
}
.cert-ready { border-style: solid; background: #fff2c9; justify-content: space-between; }
.cert-meter { flex: 1 1 160px; height: 12px; border-radius: 99px; background: var(--line); overflow: hidden; }
.cert-meter div { height: 100%; background: linear-gradient(90deg, var(--teal), var(--coral), var(--mustard)); border-radius: 99px; }

.howto, .sources { margin-top: 44px; background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.howto h3, .sources h3 { font-size: 26px; margin-bottom: 14px; }
.howto ol { padding-left: 22px; display: grid; gap: 8px; }
.sources ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 22px; }
.sources li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.sources a { text-underline-offset: 3px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-teal { background: var(--teal); } .dot-coral { background: var(--coral); } .dot-mustard { background: var(--mustard); }
.disclaimer { margin-top: 18px; padding-top: 14px; border-top: 1.5px dashed var(--line); color: var(--muted); font-size: 14px; }

/* ---------- Play ---------- */
.screen-play { max-width: 820px; margin: 0 auto; padding-top: 22px; }
.hud { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hud-zone { font-family: var(--display); font-weight: 800; font-size: 20px; display: flex; gap: 6px; align-items: center; }
.hud-progress { flex: 1 1 120px; height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.hud-progress div { height: 100%; width: 0; background: var(--navy); border-radius: 99px; transition: width 0.4s ease; }
.hud-stat { font-weight: 800; font-size: 14px; background: var(--paper); border: 1.5px solid var(--navy); padding: 5px 12px; border-radius: 999px; }
.hud-score { background: var(--navy); color: #fff; }
.hud-combo { background: var(--mustard); animation: pop 0.35s; }
.timer { margin: 16px 0 18px; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.timer div { height: 100%; width: 100%; background: var(--accent); border-radius: 99px; }
.timer.low div { background: var(--bad); animation: blink 0.5s infinite alternate; }
@keyframes blink { to { opacity: 0.4; } }

.card-q { background: var(--paper); border: 2.5px solid var(--navy); border-radius: 26px; box-shadow: 8px 8px 0 var(--accent); padding: clamp(20px, 4vw, 36px); }
.card-q.enter { animation: cardIn 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(20px) rotate(-1deg); } to { opacity: 1; transform: none; } }
.q-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.q-type { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-d); }
.lifeline { font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1.5px dashed var(--navy); }
.lifeline:disabled { opacity: 0.35; text-decoration: line-through; }
.q-text { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 3vw, 30px); line-height: 1.2; margin-bottom: 22px; }
.q-body { display: grid; gap: 12px; }
.q-mc { grid-template-columns: 1fr 1fr; }

.opt {
  display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; border-radius: 16px;
  background: #fff; border: 2px solid var(--navy); box-shadow: 0 4px 0 var(--navy); font-weight: 600; font-size: 16px;
  transition: transform 0.12s, box-shadow 0.12s, background 0.2s;
}
.opt b {
  flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--cream); border: 1.5px solid var(--navy); font-family: var(--display);
}
.opt:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 0 var(--navy); background: #fffdf6; }
.opt:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--navy); }
.opt.correct { background: #d8f2e3; border-color: var(--good); box-shadow: 0 4px 0 var(--good); }
.opt.correct b { background: var(--good); color: #fff; border-color: var(--good); }
.opt.wrong { background: #fbe0da; border-color: var(--bad); box-shadow: 0 4px 0 var(--bad); animation: shake 0.4s; }
.opt.wrong b { background: var(--bad); color: #fff; border-color: var(--bad); }
.opt.struck { opacity: 0.3; text-decoration: line-through; }
.opt:disabled:not(.correct):not(.wrong):not(.struck) { opacity: 0.6; }

.tf-msg {
  position: relative; background: var(--cream); border: 2px solid var(--navy); border-radius: 20px 20px 20px 4px;
  padding: 18px 20px; font-size: 18px; font-weight: 600;
}
.tf-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }
.opt-tf { justify-content: center; font-family: var(--display); font-size: 22px; font-weight: 800; padding: 22px; }

.q-pick { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.chip {
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; border-radius: 14px; font-weight: 600;
  background: #fff; border: 2px solid var(--navy); transition: background 0.15s, transform 0.12s;
}
.chip .tick { display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--navy); color: transparent; font-weight: 900; }
.chip[aria-pressed='true'] { background: #fff1d0; transform: translateY(-1px); }
.chip[aria-pressed='true'] .tick { background: var(--navy); color: #fff; }
.chip.correct { background: #d8f2e3; border-color: var(--good); }
.chip.correct .tick { background: var(--good); border-color: var(--good); }
.chip.wrong { background: #fbe0da; border-color: var(--bad); }
.chip.wrong .tick { background: var(--bad); border-color: var(--bad); color: #fff; }
.chip.missed { border-style: dashed; border-color: var(--good); }
.chip.missed::after { content: 'terlewat'; margin-left: auto; font-size: 11px; font-weight: 800; color: var(--good); text-transform: uppercase; letter-spacing: 0.08em; }

.legend { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.legend .g { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; color: #fff; }
.g0 { --g: var(--teal); } .g1 { --g: var(--coral); } .g2 { --g: var(--mustard-d); } .g3 { --g: var(--navy-2); }
.legend .g { background: var(--g); }
.cl-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px;
  background: #fff; border: 2px solid var(--navy); border-radius: 14px;
}
.cl-text { font-weight: 600; flex: 1 1 220px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg-btn { font-size: 13px; font-weight: 800; padding: 7px 12px; border-radius: 10px; border: 1.5px solid var(--g); color: var(--g); background: #fff; transition: all 0.12s; }
.seg-btn.on { background: var(--g); color: #fff; }
.cl-row.correct { border-color: var(--good); background: #eefaf3; }
.cl-row.wrong { border-color: var(--bad); background: #fdf0ec; }
.cl-row.wrong .seg-btn.on { text-decoration: line-through; opacity: 0.6; }
.cl-row.wrong .seg-btn.answer { outline: 3px solid var(--good); outline-offset: 2px; }
.q-actions { display: flex; justify-content: flex-end; margin-top: 20px; }
.q-actions:empty { display: none; }

.feedback { position: fixed; inset: auto 0 0 0; z-index: 50; padding: 0 16px 16px; animation: slideUp 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1) both; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
.feedback-inner {
  max-width: 820px; margin: 0 auto; background: var(--navy); color: #fff; border-radius: 22px; padding: 20px 22px;
  display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: center; box-shadow: 0 -10px 40px -10px rgba(27, 35, 71, 0.5);
  border-top: 6px solid var(--good);
}
.feedback[data-state='mid'] .feedback-inner { border-top-color: var(--mustard); }
.feedback[data-state='bad'] .feedback-inner { border-top-color: var(--bad); }
.feedback-head { display: flex; gap: 12px; align-items: center; }
.feedback-icon { font-size: 34px; }
.feedback-head strong { display: block; font-family: var(--display); font-size: 22px; }
.feedback-head span { font-size: 14px; color: var(--mustard); font-weight: 700; }
.feedback p { grid-column: 1; color: #dfe2f2; }
.feedback .btn { grid-column: 2; grid-row: 1 / span 2; border-color: #fff; box-shadow: 0 4px 0 #0c1130; }
.screen-play { padding-bottom: 180px; }

/* ---------- Result ---------- */
.result-card {
  display: grid; grid-template-columns: 0.85fr 1.15fr; margin-top: 30px; background: var(--paper); border: 2.5px solid var(--navy);
  border-radius: 28px; overflow: hidden; box-shadow: 10px 10px 0 var(--accent);
}
.result-art { background: var(--accent); border-right: 2.5px solid var(--navy); }
.result-art img { width: 100%; height: 100%; object-fit: cover; }
.result-body { padding: clamp(22px, 4vw, 40px); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.result-body h2 { font-size: clamp(26px, 3.2vw, 38px); }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.result-stats div { background: #fff; border: 2px solid var(--navy); border-radius: 16px; padding: 12px 14px; }
.result-stats b { display: block; font-family: var(--display); font-size: 30px; }
.result-stats span { font-size: 13px; font-weight: 600; color: var(--muted); }
.result-stats em { font-style: normal; color: var(--coral-d); font-weight: 800; }
.badge-earned { display: flex; gap: 14px; align-items: center; background: #fff2c9; border: 2px solid var(--navy); border-radius: 16px; padding: 12px 18px; }
.badge-icon { font-size: 34px; animation: pop 0.6s 0.4s both; }
.badge-earned small { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.badge-earned b { font-family: var(--display); font-size: 20px; }
.review { width: 100%; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 12px 16px; }
.review summary { font-weight: 800; cursor: pointer; }
.review ul { list-style: none; display: grid; gap: 12px; margin-top: 12px; max-height: 300px; overflow: auto; }
.review li { border-left: 4px solid var(--accent); padding-left: 12px; }
.review li b { font-size: 14px; }
.review li p { font-size: 14px; color: var(--muted); }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.confetti { position: fixed; top: -12px; z-index: 90; width: 10px; height: 14px; border-radius: 2px; animation: fall 2.6s ease-in forwards; pointer-events: none; }
@keyframes fall { to { transform: translate(var(--x), 105vh) rotate(720deg); } }

/* ---------- Certificate ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(27, 35, 71, 0.6); backdrop-filter: blur(4px); }
/* Sertifikat selalu horizontal (rasio A4 lanskap); ukuran ikut lebar wadah lewat cqw */
.certificate { position: relative; width: min(980px, 100%); max-height: 95vh; overflow: auto; animation: cardIn 0.45s both; container-type: inline-size; }
.cert-frame {
  background: var(--paper); border: 3px solid var(--navy); border-radius: 24px; padding: 4.5cqw 7cqw; text-align: center;
  outline: 2px dashed var(--mustard); outline-offset: -16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1cqw;
  aspect-ratio: 297 / 210; width: 100%;
}
.cert-frame .eyebrow { font-size: max(8px, 1.4cqw); }
.cert-frame h2 { font-size: 6.6cqw; color: var(--coral); line-height: 1; }
.cert-frame p { color: var(--muted); max-width: 64ch; font-size: max(8px, 1.7cqw); }
.cert-name { font-family: var(--display); font-weight: 800; font-size: 4.6cqw; border-bottom: 3px solid var(--navy); padding: 0 2cqw 0.4cqw; }
.cert-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4cqw; width: 100%; margin-top: 0.6cqw; }
.cb { --zc: var(--coral); border: 2px solid var(--navy); border-radius: 1.6cqw; padding: 1cqw; background: #fff; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: 0 4px 0 var(--zc); font-size: max(7px, 1.4cqw); }
.cb > span { font-size: 3cqw; }
.cb b { font-size: max(7px, 1.4cqw); }
.cb .stars i { font-size: max(8px, 1.8cqw); }
.cert-foot { display: flex; justify-content: space-between; width: 100%; font-size: max(7px, 1.4cqw); color: var(--muted); margin-top: 0.6cqw; gap: 8px; }
.cert-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }

/* ---------- Peringatan belajar ---------- */
.study-card {
  --zc: var(--coral); position: relative; width: min(520px, 100%); max-height: 95vh; overflow: auto; animation: cardIn 0.45s both;
  background: var(--paper); border: 3px solid var(--navy); border-radius: var(--radius); box-shadow: 0 8px 0 var(--zc);
  padding: 28px 28px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.study-card.zone-teal { --zc: var(--teal); }
.study-card.zone-mustard { --zc: var(--mustard); }
.study-icon { font-size: 44px; line-height: 1; }
.study-card h2 { font-size: clamp(26px, 5vw, 34px); line-height: 1.1; }
.study-card p { color: var(--muted); }
.study-card p b { color: var(--navy); }
.study-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 8px; }
.study-actions .btn { width: 100%; justify-content: center; text-decoration: none; }
.study-actions .btn-primary { background: var(--zc); }
.study-actions .btn-link { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; transform: none; box-shadow: 6px 6px 0 var(--navy); }
  .zone-grid { grid-template-columns: 1fr; }
  .zone-card { flex-direction: row; }
  .zone-img { aspect-ratio: auto; width: 38%; border-bottom: 0; border-right: 2.5px solid var(--navy); }
  .result-card { grid-template-columns: 1fr; }
  .result-art { border-right: 0; border-bottom: 2.5px solid var(--navy); max-height: 240px; }
}
@media (max-width: 600px) {
  .q-mc { grid-template-columns: 1fr; }
  .zone-card { flex-direction: column; }
  .zone-img { width: 100%; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 2.5px solid var(--navy); }
  .feedback-inner { grid-template-columns: 1fr; }
  .feedback .btn { grid-column: 1; grid-row: auto; width: 100%; }
  .result-stats b { font-size: 24px; }
  .player-chip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
@page { size: A4 landscape; margin: 10mm; }
@media print {
  body > *:not(.modal), .modal-backdrop, .cert-actions, .grain { display: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .modal { position: static; padding: 0; display: block; }
  .certificate { max-height: none; overflow: visible; width: 100%; animation: none; }
  .cert-frame { width: auto; height: 188mm; aspect-ratio: auto; break-inside: avoid; }
}
