/* VOICE: 시험장 + 쉬는시간 장난기. 차분한 종이, 빨간 OMR 칸, 검은 사인펜
   IDEA: 학교 시간표와 성적표 — 테스트는 '교시', 결과는 '성적표'
   PICTURE: 홈은 시간표 자체, 테스트는 답안지 버블, 결과는 성적표 카드
   COLOUR and TYPE: 흰 종이 + OMR 빨강 + 사인펜 검정 / Black Han Sans + IBM Plex Sans KR
   LAYOUT: 한 줄 흐름, 넓은 화면에서만 2단. 600px 아래 전부 세로 */
:root{color-scheme:light dark;
--bg:light-dark(#ffffff,#141012);--ink:light-dark(#1b1a1d,#f3eeef);
--omr:light-dark(#d43f4b,#ff7d86);--soft:light-dark(#fdecec,#2b1b1e);
--line:light-dark(#f1b9bd,#5b3036);--muted:light-dark(#6c6467,#b8abae);--card:light-dark(#fff,#1c1619);
--ok:light-dark(#1f7a4a,#5fd49a);--go:light-dark(#1f9d57,#36c977)}
*{box-sizing:border-box;min-width:0}
[hidden]{display:none!important}
html{scroll-padding-top:72px}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.6 "IBM Plex Sans KR",system-ui,sans-serif;overflow-x:clip;word-break:keep-all;overflow-wrap:anywhere}
a{color:inherit}
.band{padding:clamp(24px,4vw,56px) max(5vw,16px)}
.wrap{max-width:1100px;margin:auto}
.narrow{max-width:680px;margin:auto}
h1,h2,h3,.big{font-family:"Black Han Sans","IBM Plex Sans KR",sans-serif;font-weight:400;line-height:1.1;text-wrap:balance;margin:0}
h1{font-size:clamp(34px,6vw,52px)}h2{font-size:clamp(24px,3.6vw,32px)}h3{font-size:21px}
.top{background:var(--omr);color:#fff;padding:12px max(5vw,16px)}
.top .wrap{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.brand{font-family:"Black Han Sans",sans-serif;font-size:21px;text-decoration:none;color:#fff;display:flex;align-items:center;gap:8px}
.brand i{display:inline-block;width:11px;height:18px;border-radius:50%;background:#fff}
.top nav a{color:#fff;font-size:14px;font-weight:600;text-decoration:none;opacity:.92}
.top nav a:hover{text-decoration:underline}
.lead{font-size:17px;color:var(--muted);max-width:36em}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 22px;border-radius:12px;border:2px solid var(--ink);background:var(--ink);color:var(--bg);font:inherit;font-weight:700;cursor:pointer;text-decoration:none}
.btn.ghost{background:none;color:var(--ink)}.btn.red{background:var(--omr);border-color:var(--omr);color:#fff}
.btn:disabled{opacity:.35;cursor:default}
button{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--omr);outline-offset:2px}
.acts{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.note{font-size:13px;color:var(--muted)}
.tag{display:inline-block;font-size:13px;font-weight:700;color:var(--omr);background:var(--soft);padding:2px 10px;border-radius:99px}
/* 홈: 시간표 */
.hero{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(24px,5vw,56px);align-items:start}
.tt{border:2px solid var(--omr);border-radius:16px;overflow:hidden;background:var(--card);box-shadow:0 20px 44px -28px var(--omr)}
.tt .hd{display:flex;justify-content:space-between;background:var(--soft);color:var(--omr);font-weight:700;padding:10px 16px;border-bottom:2px solid var(--omr)}
.per{display:grid;grid-template-columns:4.2em minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px 16px;border-bottom:1px solid var(--line);text-decoration:none;color:inherit;transition:background .15s}
.per:last-child{border-bottom:0}.per:hover{background:var(--soft)}
.per .no{font-family:"Black Han Sans",sans-serif;color:var(--omr);font-size:22px;line-height:1}
.per .no small{display:block;font-family:"IBM Plex Sans KR",sans-serif;font-size:12px;color:var(--muted);margin-top:4px}
.per b{display:block;font-size:18px}.per span{color:var(--muted);font-size:14px}
.per .go{font-weight:700;color:var(--omr);white-space:nowrap;font-size:14px}
.per.soon{opacity:.5;pointer-events:none}
.report{margin-top:8px}
.rrow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:10px 0;border-bottom:1px dashed var(--line)}
.rrow b{font-variant-numeric:tabular-nums}
/* 문항 화면 */
.qcard{border:2px solid var(--omr);border-radius:16px;background:var(--card);padding:clamp(18px,4vw,32px)}
.prog{height:8px;background:var(--soft);border-radius:9px;overflow:hidden;margin:6px 0 20px}.prog i{display:block;height:100%;background:var(--omr);width:0;transition:width .3s}
.qno{font-family:"Black Han Sans",sans-serif;color:var(--omr);font-size:44px;line-height:1}
.qtext{font-size:clamp(19px,3vw,23px);font-weight:700;margin:10px 0 22px;min-height:2.6em}
.likert{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;align-items:center}
.likert button{border:0;background:none;padding:8px 0;cursor:pointer;display:grid;justify-items:center;gap:6px}
.likert button i{display:block;border-radius:50%;border:2.5px solid var(--omr);transition:transform .12s,background .12s}
.likert button:nth-child(1) i,.likert button:nth-child(5) i{width:38px;height:56px}
.likert button:nth-child(2) i,.likert button:nth-child(4) i{width:30px;height:46px}
.likert button:nth-child(3) i{width:24px;height:36px}
.likert button:hover i{background:var(--soft)}
.likert button.on i{background:var(--ink);border-color:var(--ink);transform:scale(1.06)}
.likert button span{font-size:12px;color:var(--muted)}
.ends{display:flex;justify-content:space-between;font-size:14px;font-weight:700;margin-top:6px}
.choices{display:grid;gap:10px}
.choices button{display:flex;gap:14px;align-items:center;text-align:left;min-height:56px;padding:12px 16px;border:1.5px solid var(--line);border-radius:12px;background:var(--card);cursor:pointer;font-size:17px}
.choices button b{color:var(--omr);font-size:20px}
.choices button:hover{border-color:var(--omr)}.choices button.on{border-color:var(--ink);background:var(--soft)}
.qnav{display:flex;justify-content:space-between;align-items:center;margin-top:22px;gap:10px}
/* 결과(성적표) */
.sheet{border:2px solid var(--omr);border-radius:16px;background:var(--card);overflow:hidden}
.sheet .hd{background:var(--omr);color:#fff;padding:10px 18px;display:flex;justify-content:space-between;font-weight:700;gap:10px}
.sheet .bd{padding:clamp(18px,4vw,32px)}
.rtitle{font-size:clamp(40px,8vw,64px);color:var(--omr);line-height:1.05}
.rline{font-size:20px;font-weight:700;margin:10px 0 0}
.chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:14px}.chips span{border:1.5px solid var(--ink);border-radius:99px;padding:2px 12px;font-weight:700;font-size:14px}
.grid2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-top:22px}
.box{border:1.5px solid var(--line);border-radius:12px;padding:14px 16px}.box h3{font-size:17px;color:var(--omr);margin-bottom:4px}.box p{margin:0}
.axis{display:grid;grid-template-columns:3.2em minmax(0,1fr) 3.2em;gap:10px;align-items:center;margin:10px 0;font-size:14px;font-weight:700}
.axis .tr{height:14px;background:var(--soft);border-radius:9px;position:relative;overflow:hidden}
.axis .tr i{position:absolute;left:0;top:0;bottom:0;background:var(--omr);border-radius:9px}
.axis span:last-child{text-align:right}
.friend{background:var(--soft);border-left:4px solid var(--omr);padding:14px 16px;border-radius:0 12px 12px 0;margin-bottom:18px;font-weight:600}
.score{font-size:clamp(72px,16vw,120px);color:var(--omr);line-height:1}
/* 게임 */
.pad{width:100%;min-height:clamp(260px,50vh,420px);border-radius:18px;border:0;display:grid;place-items:center;text-align:center;font-family:"Black Han Sans",sans-serif;font-size:clamp(30px,6vw,46px);color:#fff;cursor:pointer;user-select:none;touch-action:manipulation;padding:20px}
.pad small{display:block;font-family:"IBM Plex Sans KR",sans-serif;font-size:16px;opacity:.9;margin-top:8px}
.pad.idle{background:var(--ink);color:var(--bg)}.pad.wait{background:var(--omr)}.pad.go{background:var(--go)}.pad.early{background:#f0a400;color:#1b1a1d}
.tiles{display:grid;gap:6px;width:min(100%,460px);aspect-ratio:1;margin:0 auto}
.tiles button{border:0;border-radius:8px;cursor:pointer;padding:0}
.hud{display:flex;justify-content:space-between;align-items:center;gap:10px;font-weight:700;margin-bottom:14px;font-variant-numeric:tabular-nums}
.hud .t{font-size:22px}.hud .t.low{color:var(--omr)}
.shake{animation:shake .3s}@keyframes shake{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
.list{list-style:none;padding:0;margin:14px 0 0}.list li{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px dashed var(--line);font-variant-numeric:tabular-nums}
/* 기타 */
.prose h2{margin:28px 0 8px}.prose p,.prose li{max-width:40em}
footer{border-top:2px solid var(--omr);font-size:13px;color:var(--muted)}
footer .wrap{display:flex;gap:16px;flex-wrap:wrap;justify-content:space-between}
footer a{color:var(--muted)}
.ad-slot:empty{display:none}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:12px 18px;border-radius:12px;font-weight:600;z-index:50;max-width:90vw}
@media(max-width:760px){.hero,.grid2{grid-template-columns:1fr}}
@media(max-width:420px){.likert button:nth-child(1) i,.likert button:nth-child(5) i{width:32px;height:48px}.likert button span{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
