/* quiz and notes, same look as the ecommerce story */
.q-hint { align-self: flex-start; padding: 8px 14px; border-radius: 999px; border: 1.5px dashed #d9b45a; background: #fffaf0; color: #8a6200; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.q-hint:hover { background: #fff3d6; }
.q-hintbox { padding: 12px 14px; border-radius: 14px; background: #fff7e0; border: 1px solid #efd58a; font-size: 13.5px; line-height: 1.5; color: #5c4400; animation: qin .3s ease both; }
.q-hintbox b { display: block; margin-bottom: 2px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8a6200; }

/* ---------- notes: one sheet ---------- */
.sheet { position: absolute; inset: 0; z-index: 300; background: var(--bg); overflow-y: auto; padding: 0 clamp(14px, 2.6vw, 36px) 40px; animation: qin .35s ease both; }
.sheet[hidden] { display: none; }
.sh-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0 14px; background: linear-gradient(var(--bg) 82%, transparent); }
.sh-title { margin: 4px 0 0; font-size: clamp(22px, 2.8vw, 36px); letter-spacing: -.03em; line-height: 1.1; }
.sh-sum { margin: 6px 0 18px; padding: 16px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.sh-sum h3 { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sh-sum .cheat { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.sh-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; }
.nc.full { padding: 16px 18px 14px; gap: 10px; }
.nc.full.missed { border-color: #e7b4a8; background: #fffaf8; }
.nc.full .nc-take { font-size: 19px; }
.pts { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.55; }
.pts li + li { margin-top: 5px; }
.nc .src { margin: 0; font-size: 11.5px; color: var(--muted); }
.nc .src a { color: var(--accent); text-underline-offset: 2px; }

/* ---------- notes: card parts ---------- */
.nc { padding: 16px 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
.nc-top { display: flex; align-items: center; gap: 12px; }
.nc-top h3 { margin: 0; flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: var(--muted); }
.nc-top .tag { flex: none; position: static; padding: 3px 9px; border-radius: 999px; background: #fde4de; color: #b3402a; font-size: 10.5px; font-weight: 700; }
.nc-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; }
.nc-ic .ic { width: 26px; height: 26px; display: grid; place-items: center; }
.nc-ic img { width: 26px; height: 26px; display: block; }
.nc-ic svg { width: 26px; height: 26px; padding: 4px; border-radius: 7px; background: #78716c; color: #fff; }
.nc-ic.sm { width: 32px; height: 32px; border-radius: 10px; }
.nc-ic.sm .ic, .nc-ic.sm img, .nc-ic.sm svg { width: 20px; height: 20px; }
.nc-take { margin: 0; font-size: clamp(21px, 2.3vw, 30px); font-weight: 650; letter-spacing: -.03em; line-height: 1.15; }
.ba { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; font-weight: 600; }
.ba span { padding: 7px 12px; border-radius: 999px; }
.ba .b { background: var(--surface-2); color: var(--muted); text-decoration: line-through; text-decoration-color: #c9c3b9; }
.ba .a { background: var(--accent-soft); color: var(--accent); }
.ba i { font-style: normal; color: var(--accent); }
.remember { margin: 0; padding: 10px 14px; border-left: 3px solid var(--accent); background: linear-gradient(90deg, var(--accent-soft), transparent); border-radius: 4px 12px 12px 4px; font-size: 14px; line-height: 1.5; }
.remember small { display: block; margin-bottom: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.seen { margin: 0; font-size: 12.5px; color: var(--muted); }
.seen b { color: var(--ink); }
.deeper { border-top: 1px dashed var(--line); padding-top: 10px; font-size: 13.5px; }
.deeper summary { cursor: pointer; font-weight: 600; color: var(--accent); list-style: none; }
.deeper summary::before { content: "+ "; }
.deeper[open] summary::before { content: "- "; }
.deeper ul { margin: 10px 0 0; padding-left: 18px; line-height: 1.55; }
.deeper li + li { margin-top: 5px; }
.deeper .src { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.deeper .src a { color: var(--accent); text-underline-offset: 2px; }
.cheat { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cheat li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.cheat li.missed { border-color: #e7b4a8; background: #fff8f6; }
.cheat b { display: block; font-size: 14px; line-height: 1.3; }
.cheat small { color: var(--muted); font-size: 12px; }

/* ---------- quiz, inside the system design panel ---------- */
.qwrap { display: flex; flex-direction: column; gap: 14px; min-height: 100%; animation: qin .35s ease both; }
@keyframes qin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.q-kicker { padding-right: 110px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.q-title { margin: 0; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -.03em; line-height: 1.12; }
.q-sub { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.q-text { margin: 0; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.4; font-weight: 600; letter-spacing: -.01em; }
.q-opts { display: grid; gap: 9px; }
.q-opt { text-align: left; width: 100%; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: clamp(13.5px, 1.05vw, 15px); line-height: 1.4; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.q-opt:hover:not([disabled]) { border-color: #b9b2a6; transform: translateY(-1px); }
.q-opt[disabled] { cursor: default; }
.q-opt.ok { border-color: var(--accent); background: var(--accent-soft); }
.q-opt.no { border-color: #d9534f; background: #fdecea; }
.q-opt.dim { opacity: .5; }
.q-fb { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 13.5px; line-height: 1.5; }
.q-fb b { display: block; margin-bottom: 2px; }
.q-fb.ok b { color: var(--accent); } .q-fb.no b { color: #b42318; }
.q-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.q-btn { padding: 11px 20px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.q-btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.q-btn:hover { transform: translateY(-1px); }
.q-note { padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--accent); background: linear-gradient(180deg, #fff, var(--accent-soft)); }
.q-note h3 { margin: 0 0 8px; font-size: 15.5px; }
.q-note ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; }
.q-note li + li { margin-top: 6px; }
.q-score { margin: 0; font-size: clamp(52px, 7vw, 76px); font-weight: 650; letter-spacing: -.05em; line-height: 1; }
.q-score span { color: var(--muted); font-weight: 400; font-size: .5em; letter-spacing: -.02em; }
.q-list { list-style: none; margin: 0; padding: 0; }
.q-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.q-list .mk { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }
.q-list .first .mk { background: var(--accent); } .q-list .recovered .mk { background: #d99a2b; } .q-list .noted .mk { background: #c8553d; }
.q-list small { margin-left: auto; color: var(--muted); font-size: 12px; text-align: right; }
.notes-wrap { display: grid; gap: 12px; }
.nt { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.nt.missed { border-color: #e7b4a8; background: #fff8f6; }
.nt h3 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nt .tag { padding: 2px 8px; border-radius: 999px; background: #fde4de; color: #b3402a; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; }
.nt ul { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; }
.nt li + li { margin-top: 5px; }
.nt .src { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.nt .src a { color: var(--accent); text-underline-offset: 2px; }
.q-dots { display: flex; gap: 5px; }
.q-dots i { width: 20px; height: 6px; border-radius: 3px; background: var(--line); }
.q-dots i.cur { background: var(--ink); } .q-dots i.first { background: var(--accent); } .q-dots i.recovered { background: #d99a2b; } .q-dots i.noted { background: #c8553d; }
@media (max-width: 860px) { .q-kicker { padding-right: 0; } .q-text { font-size: 15.5px; } .q-opt { padding: 10px 12px; font-size: 13.5px; } }

/* quiz stage: Nami on the left, the questions on the right */
.quiz { position: absolute; inset: 0; z-index: 6; display: none; padding: clamp(12px, 2vw, 22px) clamp(14px, 2.4vw, 32px); }
.arena[data-mode="quiz"] .quiz { display: block; }
.arena[data-mode="quiz"] .board { opacity: 0; visibility: hidden; pointer-events: none; }
.qlay { display: flex; justify-content: center; align-items: center; gap: clamp(48px, 8vw, 130px); max-width: 1020px; height: 100%; margin: 0 auto; }
.qchar { flex: none; width: clamp(120px, 15vw, 190px); aspect-ratio: 400 / 450; }
.qchar img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 14px 18px rgba(28, 25, 23, .18)); animation: float 3.6s ease-in-out infinite; }
.qchar.pop { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1); } @keyframes pop { from { transform: scale(.7); } to { transform: scale(1); } }
.qmain { flex: 0 1 640px; min-width: 0; max-height: 100%; overflow-y: auto; padding-right: 4px; }
.sheet { z-index: 300; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 860px) { .qlay { flex-direction: column; justify-content: flex-start; align-items: center; gap: 12px; } .qlay > :first-child { margin-top: auto; } .qlay > :last-child { margin-bottom: auto; } .qchar { width: 86px; } .qmain { width: 100%; flex: 0 1 auto; } }
/* thank-you */
.thanks { position: absolute; inset: 0; z-index: 7; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 4vw, 56px); padding: 20px clamp(18px, 6vw, 90px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .5s, visibility .5s; }
.arena[data-mode="thanks"] .thanks { opacity: 1; visibility: visible; pointer-events: auto; }
.arena[data-mode="thanks"] .board { opacity: 0; visibility: hidden; pointer-events: none; }
.t-art { flex: none; width: clamp(150px, 22vw, 260px); aspect-ratio: 400 / 450; } .t-art img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 16px 20px rgba(28, 25, 23, .16)); animation: float 3.6s ease-in-out infinite; }
.t-copy { max-width: 520px; } .t-copy h2 { margin: 6px 0 10px; font-size: clamp(24px, 3.2vw, 40px); letter-spacing: -.03em; line-height: 1.1; } .t-copy p { margin: 0 0 10px; color: var(--body); font-size: clamp(14px, 1.3vw, 17px); line-height: 1.5; }
.learned { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.learned li { position: relative; padding-left: 26px; font-size: clamp(13px, 1.2vw, 15.5px); line-height: 1.4; color: var(--body); }
.learned li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; display: grid; place-items: center; }
.t-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.t-kick { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 860px) { .thanks { flex-direction: column; padding: 24px 22px; text-align: center; overflow-y: auto; justify-content: flex-start; } .thanks > :first-child { margin-top: auto; } .thanks > :last-child { margin-bottom: auto; } .t-art { width: 120px; } .learned { text-align: left; } .t-actions { justify-content: center; } }
