/* scene-sims-ui.css — 시뮬레이션 화면 안 UI(상단 표시 · 안내 도크 · 말풍선 · 살펴보기 표시 · 운전 표시)와
   가운데 카드/퀴즈 시트를 3D 공간과 같은 밝고 둥근 톤으로 맞춘다.
   기존 규칙(virtual-gyeongsan.html, scene-realism.css)은 그대로 두고 그 위에 덧입힌다. 지우면 이전 모습으로 돌아간다. */
:root{
  --sim-green:#01387A; --sim-green-d:#012a5c; --sim-green-dd:#00224d; --sim-mint:#dcf3f8; --sim-mint-2:#c5e8f2;
  --sim-ink:#0c2340; --sim-sub:#475a73; --sim-cream:#fbfcfa; --sim-paper:#f4f7fa; --sim-line:#d4dde8;
  --sim-sun:#efe6d2; --sim-sun-d:#d9cbb0; --sim-sun-soft:#f7f1e4; --sim-sun-ink:#5c4e32;
  --sim-coral:#c45448; --sim-coral-d:#a34138; --sim-coral-soft:#f8ece9; --sim-coral-ink:#8d3a30;
  --sim-sky:#3d9be9; --sim-sky-soft:#e6f3ff;
  --sim-shadow:0 14px 36px rgba(34,84,66,.18), 0 2px 0 rgba(255,255,255,.9) inset;
  --sim-pop:cubic-bezier(.16,1,.3,1);
}

/* ---------- 장소 이름 · 진행 표시 ---------- */
#stage .stage-actions{position:absolute;top:16px;right:18px;z-index:6;display:flex;align-items:center;gap:8px}
#stage>.sheet-wrap.end-modal{bottom:0;z-index:8}
#stage .help-btn,#stage .end-btn{position:static;height:36px;padding:0 14px;border:0;border-radius:999px;background:rgba(255,255,255,.5);color:var(--sim-ink);font-size:13px;font-weight:700;letter-spacing:-.03em;box-shadow:0 6px 16px rgba(34,84,66,.1);backdrop-filter:blur(10px);cursor:pointer}
#stage .help-btn[aria-expanded="true"],#stage .end-btn:hover{background:rgba(255,255,255,.9)}
#stage .scene-caption{top:18px;left:18px;gap:8px;padding:6px 14px 6px 12px;border-radius:999px;background:rgba(255,255,255,.92);border:2px solid #fff;box-shadow:0 6px 18px rgba(34,84,66,.16);color:var(--sim-ink);font-size:14px;letter-spacing:-.02em;backdrop-filter:blur(10px)}
#stage .scene-caption .live-dot{width:10px;height:14px;border-radius:0;background:#01387A;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);animation:simBob 2.4s ease-in-out infinite}
#stage .scene-caption small{font-size:11px;color:var(--sim-sub);border-left:2px solid var(--sim-line);padding-left:9px}
@keyframes simBob{0%,100%{transform:translateY(-1px)}50%{transform:translateY(2px)}}
#stage .hud{top:62px;left:22px;right:22px}
#stage .hud .grp{gap:6px}
#stage .hud .h{font:700 12px var(--f-mono);letter-spacing:.01em;padding:5px 11px;border-radius:999px;border:2px solid #fff;background:rgba(255,255,255,.9);color:var(--sim-ink);box-shadow:0 4px 12px rgba(34,84,66,.13);backdrop-filter:blur(10px)}
#stage .hud #hStep{background:var(--sim-green);border-color:#7fd4ea;color:#fff}
#stage .hud #hErr{color:var(--sim-coral-ink)}
#stage .inv{font-size:13px;font-weight:700;padding:6px 13px;border-radius:999px;border:2px solid #fff;background:var(--sim-sun-soft);color:var(--sim-sun-ink);box-shadow:0 4px 12px rgba(120,90,10,.16)}
#stage .camera-help{display:none;bottom:auto;top:58px;right:18px;left:auto;width:min(300px,calc(100% - 36px));max-width:min(300px,calc(100% - 36px));margin:0;padding:10px 12px;border-radius:16px;background:rgba(255,255,255,.96);color:var(--sim-ink);font-size:12.5px;font-weight:500;line-height:1.45;text-align:left;white-space:normal;word-break:keep-all;box-shadow:0 12px 28px rgba(34,84,66,.16);backdrop-filter:blur(8px);z-index:5;flex-direction:column;gap:8px}
body.help-open #stage .camera-help,body.sim-mobile.help-open #stage .camera-help{display:flex}
#stage .camera-help .help-line{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
#stage .camera-help .help-line b{font-size:11px;letter-spacing:.02em;color:var(--sim-green-dd)}
#stage .camera-help .help-body{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
#stage .camera-help kbd{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 4px;border-radius:5px;border:1px solid #c5ddd0;background:#fff;box-shadow:0 2px 0 #b7d0c4;color:var(--sim-ink);font:700 11px/1 var(--f-mono)}
#stage .camera-help .keypad{display:inline-flex;flex-direction:column;align-items:center;gap:3px}
#stage .camera-help .key-row{display:flex;gap:3px}
#stage .camera-help .joy-mini{width:34px;height:34px;border-radius:50%;border:2px solid rgba(43,182,115,.45);background:rgba(255,255,255,.7);display:inline-grid;place-items:center;box-shadow:inset 0 0 0 6px rgba(43,182,115,.08)}
#stage .camera-help .joy-mini i{width:12px;height:12px;border-radius:50%;background:var(--sim-green)}

/* ---------- 알림 ---------- */
#stage .toast{top:112px;padding:9px 18px;border-radius:999px;background:rgba(255,255,255,.96);border:2px solid var(--sim-sun);color:var(--sim-ink);font-size:14px;font-weight:700;box-shadow:0 10px 26px rgba(34,84,66,.2);transform:translate(-50%,-8px) scale(.94);transition:opacity .18s,transform .28s var(--sim-pop);z-index:7}
#stage .toast.show{transform:translate(-50%,0) scale(1)}

/* ---------- 안내 도크 ---------- */
#stage .ins{max-width:780px;border:3px solid #fff;border-radius:24px;padding:16px 20px 15px;gap:18px;background:rgba(255,253,247,.96);box-shadow:var(--sim-shadow);backdrop-filter:blur(14px)}
#stage .ins .ko{font-size:16.5px;font-weight:700;line-height:1.45;letter-spacing:-.02em;color:var(--sim-ink)}
#stage .ins .en{font-size:12px;color:var(--sim-sub)}
#stage .ins .hint{display:inline-block;margin-top:7px;padding:4px 11px;border-radius:999px;background:var(--sim-sun-soft);color:var(--sim-sun-ink);font-size:12.5px;font-weight:700;line-height:1.4}
#stage .ins .hint[hidden]{display:none}
#stage .bar{height:8px;margin-top:11px;border-radius:999px;background:#e4efe7;box-shadow:inset 0 1px 2px rgba(34,84,66,.14)}
#stage .bar i{border-radius:999px;background:#00AACC;box-shadow:none;transition:width .45s var(--sim-pop)}
#stage .dockfb{margin-top:9px;border-radius:14px;padding:9px 13px;font-size:13px;font-weight:500}
#stage .dockfb.good{background:var(--sim-mint);color:var(--sim-green-dd)}
#stage .dockfb.bad{background:var(--sim-coral-soft);color:var(--sim-coral-ink)}

/* ---------- 버튼 ---------- */
#stage .btn,.sheet-wrap .btn{border:2px solid var(--sim-line);background:#fff;color:var(--sim-ink);border-radius:999px;padding:9px 18px;font-size:13.5px;font-weight:700;letter-spacing:-.01em;box-shadow:0 3px 0 #cfe2d6;transition:transform .12s,box-shadow .12s,background .12s}
#stage .btn:hover,.sheet-wrap .btn:hover{background:var(--sim-paper);transform:translateY(-1px);box-shadow:0 4px 0 #cfe2d6}
#stage .btn:active,.sheet-wrap .btn:active{transform:translateY(2px);box-shadow:0 1px 0 #cfe2d6}
#stage .btn.pri,.sheet-wrap .btn.pri{background:#01387A;border-color:#01387A;color:#fff;box-shadow:0 3px 0 var(--sim-green-dd);text-shadow:none}
#stage .btn.pri:hover,.sheet-wrap .btn.pri:hover{background:#012a5c;box-shadow:0 4px 0 var(--sim-green-dd)}
#stage .btn.pri:active,.sheet-wrap .btn.pri:active{box-shadow:0 1px 0 var(--sim-green-dd)}
#stage .btn.hint,.sheet-wrap .btn.hint{background:#ffc83d;border-color:#ffc83d;color:var(--sim-sun-ink);box-shadow:0 3px 0 var(--sim-sun-d)}
#stage .btn:disabled,.sheet-wrap .btn:disabled{opacity:.55;transform:none;box-shadow:none}
.sheet-wrap .btn kbd{background:rgba(255,255,255,.3);border-radius:6px}

/* ---------- 가운데 카드 · 퀴즈 시트 ---------- */
.sheet-wrap{background:rgba(214,238,226,.5);backdrop-filter:blur(5px) saturate(1.1)}
.sheet-wrap.floor,.sheet-wrap.talk-wrap{background:none;backdrop-filter:none}
.sheet-wrap .sheet{background:var(--sim-cream);border:3px solid #fff;border-radius:26px;padding:20px;gap:13px;color:var(--sim-ink);box-shadow:0 22px 60px rgba(34,84,66,.24), 0 0 0 1px rgba(43,182,115,.1)}
.sheet-wrap .sheet h3{display:flex;align-items:center;gap:9px;font-size:19px;font-weight:700;letter-spacing:-.03em;color:var(--sim-ink)}
.sheet-wrap .sheet h3::before{content:"";flex:none;width:11px;height:16px;background:#01387A;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}
.sheet-wrap .sheet,#stage .talk,#stage .ins{word-break:keep-all;overflow-wrap:anywhere}
.sheet-wrap .sheet>.k{align-self:flex-start;padding:3px 11px;border-radius:999px;background:var(--sim-mint);color:var(--sim-green-d)!important;font:700 11.5px var(--f-mono)!important;letter-spacing:.02em}
.sheet-wrap .sheet .sub{margin:-7px 0 0;color:var(--sim-sub);font-size:13px;line-height:1.55}
.sheet-wrap .sheet .row{gap:9px;padding-top:2px}
.sheet-wrap .sheet-x{border:2px solid var(--sim-line);background:#fff;color:var(--sim-sub);border-radius:999px;padding:5px 14px;font-size:12.5px;box-shadow:0 3px 0 #cfe2d6}
.sheet-wrap .kcard{border:0;border-radius:20px;padding:16px 18px;gap:8px;background:#fff;box-shadow:inset 0 0 0 2px #fff, 0 0 0 1px var(--sim-mint-2)}
.sheet-wrap .kcard .k{align-self:flex-start;padding:3px 11px;border-radius:999px;background:#fff;color:var(--sim-green-d);font:700 11.5px var(--f-mono);letter-spacing:.02em;box-shadow:0 2px 0 var(--sim-mint-2)}
.sheet-wrap .kcard h4{font-size:17.5px;letter-spacing:-.03em;color:var(--sim-ink)}
.sheet-wrap .kcard ul{list-style:none;padding:0;gap:6px}
.sheet-wrap .kcard li{position:relative;padding-left:20px;font-size:14px;line-height:1.55;color:#2f4d45}
.sheet-wrap .kcard li::before{content:"";position:absolute;left:3px;top:.52em;width:8px;height:8px;border-radius:50%;background:var(--sim-green);box-shadow:0 0 0 3px #c9efd8}
.sheet-wrap .kcard li .e{color:var(--sim-sub)}
.sheet-wrap .dots{gap:7px}
.sheet-wrap .dots i{width:9px;height:9px;background:#d6e6dc;transition:width .25s var(--sim-pop),background .2s}
.sheet-wrap .dots i.on{width:24px;border-radius:999px;background:var(--sim-green)}
/* 보기: 큼직한 알약 버튼 + A·B·C 표지 */
.sheet-wrap .opts{gap:9px;counter-reset:simopt}
.sheet-wrap .level-pick{display:flex;flex-direction:column}
.sheet-wrap .level-pick .opt{width:100%;text-align:left}
.sheet-wrap .level-pick .opt b{display:block}
.sheet-wrap .level-pick .opt .e{display:block}
.sheet-wrap .opt{counter-increment:simopt;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:12px;row-gap:1px;align-items:center;border:2px solid var(--sim-line);background:#fff;border-radius:18px;padding:11px 14px 11px 11px;font-size:15px;font-weight:500;color:var(--sim-ink);box-shadow:0 3px 0 #d3e5d9;transition:transform .12s,box-shadow .12s,border-color .12s,background .12s}
.sheet-wrap .opt::before{content:counter(simopt,upper-alpha);grid-row:1 / span 2;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--sim-mint);color:var(--sim-green-d);font:700 13px var(--f-mono)}
.sheet-wrap .opt>*{grid-column:2}
.sheet-wrap .sheet.study:has(.pics){max-width:760px}
.sheet-wrap .opts.pics{display:grid;grid-template-columns:1fr 1fr;align-items:start;align-content:start;grid-auto-rows:max-content}
.sheet-wrap .opt.pic{padding:8px;align-items:stretch}
.sheet-wrap .opt.pic .art:empty{display:none}
.sheet-wrap .opt.pic:has(.art:empty){align-items:center}
.sheet-wrap .opt.pic:has(.art:empty)::before,
.sheet-wrap .opt.pic:has(.art:empty) .cap{grid-row:1}
.sheet-wrap .opt.pic .art{grid-column:1 / -1;grid-row:1;height:168px;border-radius:12px;overflow:hidden;background:#e7f0ea}
.sheet-wrap .opt.pic .art svg{display:block;width:100%;height:100%}
.sheet-wrap .opt.pic .art img{display:block;width:100%;height:100%;object-fit:cover}
.sheet-wrap .opt.pic::before{grid-column:1;grid-row:2}
.sheet-wrap .opt.pic .cap{grid-column:2;grid-row:2;align-self:center;line-height:1.35}
@media (max-width:640px){
  .sheet-wrap .opts.pics{grid-template-columns:1fr}
  .sheet-wrap .sheet.study:has(.pics){max-width:100%}
}
.sheet-wrap .opt .e{font-size:12px;color:var(--sim-sub)}
.sheet-wrap .opt:hover{border-color:#8fdcb1;background:#fbfffc;transform:translateY(-1px);box-shadow:0 4px 0 #c5e6d2}
.sheet-wrap .opt:active{transform:translateY(2px);box-shadow:0 1px 0 #c5e6d2}
.sheet-wrap .opt.sel{border-color:var(--sim-green);background:var(--sim-mint)}
.sheet-wrap .opt.yes{border-color:var(--sim-green);background:var(--sim-mint);box-shadow:0 3px 0 #9fdcb9}
.sheet-wrap .opt.yes::before{content:"✓";background:var(--sim-green);color:#fff;font-size:15px}
.sheet-wrap .opt.no{border-color:var(--sim-coral);background:var(--sim-coral-soft);box-shadow:0 3px 0 #f5c2b9;animation:simShake .3s}
.sheet-wrap .opt.no::before{content:"✕";background:var(--sim-coral);color:#fff}
@keyframes simShake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
.sheet-wrap .fb{border-radius:16px;padding:11px 14px;font-size:13.5px;line-height:1.6}
.sheet-wrap .fb b{font-size:14px}
.sheet-wrap .fb.good{background:var(--sim-mint);color:var(--sim-green-dd);box-shadow:inset 0 0 0 2px #c4ecd4}
.sheet-wrap .fb.bad{background:var(--sim-coral-soft);color:var(--sim-coral-ink);box-shadow:inset 0 0 0 2px #ffd5cd}
.sheet-wrap .qres{border-radius:16px;padding:10px 14px;font-size:13.5px}
.sheet-wrap .qres.ok{background:var(--sim-mint);color:var(--sim-green-dd)}
.sheet-wrap .qres.bad{background:var(--sim-coral-soft);color:var(--sim-coral-ink)}
.sheet-wrap .qres p,.sheet-wrap .qres .mine{color:var(--sim-ink)}
.sheet-wrap .res-head .big{font-family:var(--f-body);font-weight:700;font-size:28px;letter-spacing:-.04em;color:var(--sim-green-d)}
.sheet-wrap .stats{gap:9px}
.sheet-wrap .stat{border:0;border-radius:18px;padding:12px 8px;background:#fff;box-shadow:0 3px 0 #d3e5d9, inset 0 0 0 2px var(--sim-line)}
.sheet-wrap .stat b{font-size:21px;color:var(--sim-green-d)}
.sheet-wrap .stat span{font-size:12px;color:var(--sim-sub)}
.sheet-wrap .chip{padding:3px 12px;font-size:12px}
.sheet-wrap .goals{border:2px dashed var(--sim-mint-2);border-radius:16px;background:#fff}
.sheet-wrap .goals li.on{color:var(--sim-green-d)}
/* 분류 활동 · 대화 연습 */
.sheet-wrap .sitem{border:2px solid var(--sim-line);border-radius:18px;padding:12px;background:#fff;box-shadow:0 3px 0 #d3e5d9}
.sheet-wrap .sitem .bins{gap:7px}
.sheet-wrap .sitem .bins button{border:2px solid var(--sim-line);background:var(--sim-paper);border-radius:999px;padding:5px 13px;font-size:13px;font-weight:700;color:var(--sim-ink)}
.sheet-wrap .sitem .bins button:hover{border-color:#8fdcb1;background:#fff}
.sheet-wrap .sitem .bins button.yes{border-color:var(--sim-green);background:var(--sim-mint)}
.sheet-wrap .sitem .bins button.no{border-color:var(--sim-coral);background:var(--sim-coral-soft)}
.sheet-wrap .sitem.done{border-color:var(--sim-green);background:var(--sim-mint);box-shadow:0 3px 0 #9fdcb9}
.sheet-wrap .av{background:#01387A;color:#fff;box-shadow:0 0 0 3px #fff, 0 3px 8px rgba(34,84,66,.2)}
.sheet-wrap .bub{background:#fff;border:2px solid var(--sim-line);border-radius:6px 18px 18px 18px;padding:11px 14px}
.sheet-wrap .msg{border-radius:18px;padding:9px 13px}
.sheet-wrap .msg.npc{background:#fff;border:2px solid var(--sim-line);border-top-left-radius:6px}
.sheet-wrap .msg.me{background:#01387A;color:#fff;border-top-right-radius:6px}
.sheet-wrap .hints button{border:2px solid var(--sim-sun);background:var(--sim-sun-soft);color:var(--sim-sun-ink);border-radius:999px;padding:5px 12px;font-weight:700}
.sheet-wrap .say textarea,.sheet-wrap .auth-form input{border:2px solid var(--sim-line);border-radius:16px;background:#fff;color:var(--sim-ink)}
.sheet-wrap .say textarea:focus,.sheet-wrap .auth-form input:focus{outline:0;border-color:var(--sim-green);box-shadow:0 0 0 4px #cdf0dc}
/* 화면 아래에 뜨는 시트 */
.sheet-wrap.floor .sheet{width:min(700px,calc(100% - 240px));max-height:min(62vh,500px);margin-bottom:16px;padding:18px 20px 14px}
.sheet-wrap.floor .sheet h3{font-size:17px}
.sheet-wrap.floor .sheet .sub{font-size:12.5px}
.sheet-wrap.floor .kcard .k{font-size:11px}
.sheet-wrap.floor .kcard h4{font-size:16px}
.sheet-wrap.floor .kcard li{font-size:13.5px;line-height:1.5}
.sheet-wrap.floor .opt{font-size:14.5px}
.sheet-wrap.floor .fb{font-size:13px}
.sheet-wrap.floor .btn{font-size:13px}

/* ---------- 말풍선 대화 ---------- */
#stage .talk{width:min(292px,calc(100% - 24px));max-height:none;overflow:visible;background:rgba(255,253,247,.95);border:3px solid #fff;border-radius:24px;padding:14px 16px 14px;box-shadow:0 16px 38px rgba(34,84,66,.22);color:var(--sim-ink);backdrop-filter:blur(12px)}
#stage .talk-x{top:9px;right:9px;width:26px;height:26px;background:var(--sim-mint);color:var(--sim-green-d);font-weight:700}
#stage .talk .who{margin:0 26px 9px 0}
#stage .talk .who b{font-size:12.5px;color:var(--sim-green-d);background:var(--sim-mint);border-radius:999px;padding:2px 10px}
#stage .talk .av{width:26px;height:26px;font-size:12px}
#stage .talk .npc-line{font-size:15.5px;font-weight:700;line-height:1.5;color:var(--sim-ink)}
#stage .talk .me{gap:7px}
#stage .talk .reply,.sheet.phone-dock .reply{border:2px solid var(--sim-line);background:#fff;color:var(--sim-ink);border-radius:18px 18px 6px 18px;padding:9px 13px;font-size:13.5px;font-weight:500;box-shadow:0 3px 0 #d3e5d9;transition:transform .12s,box-shadow .12s,border-color .12s}
#stage .talk .reply:hover,.sheet.phone-dock .reply:hover{border-color:#8fdcb1;background:#fbfffc;transform:translateY(-1px)}
#stage .talk .reply.go,.sheet.phone-dock .reply.go{background:#01387A;border-color:#01387A;color:#fff;box-shadow:0 3px 0 var(--sim-green-dd)}
#stage .talk .reply.yes,.sheet.phone-dock .reply.yes{border-color:var(--sim-green);background:var(--sim-mint);box-shadow:0 3px 0 #9fdcb9}
#stage .talk .reply.no,.sheet.phone-dock .reply.no{border-color:var(--sim-coral);background:var(--sim-coral-soft);box-shadow:0 3px 0 #f5c2b9}
#stage .talk .reply:focus,#stage .talk .reply:focus-visible,.sheet.phone-dock .reply:focus,.sheet.phone-dock .reply:focus-visible{outline:none}
#stage .talk .fb{border-radius:14px;font-size:12.5px}
.phone-task{color:var(--sim-ink)}

/* ---------- 살펴보기 표시 · 휴대폰 · 이동 ---------- */
#stage .interact-mark{filter:drop-shadow(0 8px 14px rgba(34,84,66,.28))}
#stage .interact-mark .name{height:34px;padding:0 16px;border-radius:999px;border:2px solid #fff;background:#01387A;color:#fff;font-size:14.5px;text-shadow:none}
#stage .interact-mark .arc path:nth-child(n+3){stroke:#01387A}
#stage .interact-mark .tap{width:52px;height:52px;border:3px solid #fff;background:#01387A;box-shadow:0 4px 0 var(--sim-green-dd);animation:simPulse 1.6s ease-in-out infinite}
#stage .interact-mark .key{border-radius:7px;color:var(--sim-green-dd)}
@keyframes simPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.07)}}
#stage .phone-launch{position:absolute;left:50%;top:auto;right:auto;bottom:210px;transform:translateX(-50%);z-index:6;width:auto;margin:0;pointer-events:auto;color:#fff;gap:8px}
#stage .phone-launch .glyph{position:relative;width:72px;height:128px;border:0;border-radius:0;background:transparent;box-shadow:none;color:#fff}
#stage .phone-launch .glyph::before{content:"";position:absolute;inset:-12px;border-radius:30px;border:2px solid rgba(255,255,255,.85);box-shadow:0 0 0 6px rgba(17,17,17,.18);animation:phonePulse 1.6s ease-out infinite}
#stage .phone-launch .bezel{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;width:72px;height:128px;padding:8px 6px 7px;border-radius:18px;background:#111;box-shadow:0 16px 34px rgba(0,0,0,.38), inset 0 0 0 2px #3a3a3c}
#stage .phone-launch .notch{width:26px;height:5px;border-radius:4px;background:#2a2a2c;flex:none}
#stage .phone-launch .glass{flex:1;width:100%;margin-top:5px;border-radius:6px;background:#dff6ea}
#stage .phone-launch .home{width:14px;height:14px;margin-top:5px;border-radius:50%;border:2px solid #3a3a3c;flex:none}
#stage .phone-launch .cap{max-width:120px;padding:3px 9px;border-radius:999px;background:rgba(17,17,17,.86);color:#fff;text-shadow:none;font-size:12px;font-weight:700}
@keyframes phonePulse{0%{transform:scale(.94);opacity:.85}100%{transform:scale(1.12);opacity:0}}
#stage .move-pad button{width:40px;height:36px;border:2px solid #fff;border-radius:12px;background:rgba(255,255,255,.92);color:var(--sim-green-d);box-shadow:0 3px 0 #cfe2d6}
#stage .joy{background:rgba(255,255,255,.22);border:1.5px solid rgba(255,255,255,.62);box-shadow:0 8px 22px rgba(20,40,32,.08);backdrop-filter:blur(8px)}
#stage .joy-dir{width:8px;height:8px;border-color:rgba(255,255,255,.75)}
#stage .joy-knob{width:52px;height:52px;margin:-26px 0 0 -26px;background:rgba(255,255,255,.7);box-shadow:0 4px 12px rgba(20,40,32,.16)}
#stage .kim-bubble{border:2px solid #fff;border-radius:18px;background:rgba(255,253,247,.96);color:var(--sim-ink);box-shadow:0 10px 24px rgba(34,84,66,.18)}
#stage .kim-bubble::after{border-color:rgba(255,253,247,.96) transparent transparent}
#stage .kim-launch{background:var(--sim-green);box-shadow:0 4px 0 var(--sim-green-dd), 0 10px 22px rgba(34,84,66,.28)}

/* ---------- 운전 표시 ---------- */
#stage .drive-hud{display:none !important}
#stage #driveSpeed{
  position:absolute;z-index:8;min-width:78px;padding:6px 12px;border:2px solid #fff;border-radius:999px;
  background:#12181c;color:#9cf3bd;font:800 15px/1 "IBM Plex Sans KR","Noto Sans KR",sans-serif;
  text-align:center;pointer-events:none;transform:translate(-50%,-100%);
  box-shadow:0 8px 18px rgba(0,0,0,.28)
}
#stage #driveSpeed[hidden]{display:none !important}
#stage .drive-hud b{font-size:14.5px;letter-spacing:-.02em}
#stage .drive-hud span{font:700 13px var(--f-mono);opacity:1;color:var(--sim-sub)}
#stage .drive-hud #driveSpeed{min-width:74px;text-align:center;padding:4px 11px;border-radius:999px;background:var(--sim-ink);color:#9cf3bd}
#stage .drive-hud #driveGate:empty{display:none}
#stage .drive-hud #driveGate{padding:4px 11px;border-radius:999px;background:var(--sim-sun-soft);color:var(--sim-sun-ink)}
#stage .drive-hud button{padding:7px 16px;background:#ffc83d;color:var(--sim-sun-ink);box-shadow:0 3px 0 var(--sim-sun-d)}
#stage #driveHazard,
#stage #driveBrake{
  position:absolute;z-index:8;width:82px;min-height:82px;margin:0;padding:7px 6px 5px;
  border:3px solid #fff;border-radius:20px;color:#fff;
  transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;
  font-weight:800;letter-spacing:-.04em;line-height:1.05;pointer-events:auto;cursor:pointer
}
#stage #driveHazard{background:#e10600;box-shadow:0 6px 0 #9a0e0a, 0 12px 22px rgba(160,20,12,.35)}
#stage #driveBrake{background:#1d4f91;box-shadow:0 6px 0 #143664, 0 12px 22px rgba(16,40,80,.32)}
#stage #driveHazard[hidden],
#stage #driveBrake[hidden]{display:none !important}
#stage #driveHazard svg,
#stage #driveBrake svg{width:32px;height:28px;display:block}
#stage #driveHazard .lb,
#stage #driveBrake .lb{color:#fff;font-size:13px;font-weight:800}
#stage #driveHazard .key,
#stage #driveBrake .key{margin-top:1px;min-width:16px;padding:1px 5px;border-radius:6px;background:rgba(255,255,255,.22);color:#fff;font-size:11px;font-weight:800;line-height:1.25}
#stage #driveHazard.on{background:#ff3b30;box-shadow:0 6px 0 #9a0e0a, 0 0 0 5px rgba(255,80,60,.5)}
#stage #driveBrake.on{background:#2f74c8;box-shadow:0 6px 0 #143664, 0 0 0 5px rgba(80,150,230,.45)}
#stage #driveHazard.need{border-width:4px;border-color:#ffe0da;animation:hazNeed .6s ease-in-out infinite}
#stage #driveBrake.need{border-width:4px;border-color:#d7ecff;animation:brakeNeed .6s ease-in-out infinite}
@keyframes hazNeed{50%{transform:translate(-50%,-50%) scale(1.08);box-shadow:0 6px 0 #9a0e0a, 0 0 0 10px rgba(255,50,36,.45)}}
@keyframes brakeNeed{50%{transform:translate(-50%,-50%) scale(1.08);box-shadow:0 6px 0 #143664, 0 0 0 10px rgba(90,170,255,.5)}}
#stage #driveHazard:active{transform:translate(-50%,-50%) translateY(3px);box-shadow:0 2px 0 #9a0e0a}
#stage #driveBrake:active{transform:translate(-50%,-50%) translateY(3px);box-shadow:0 2px 0 #143664}
#stage .drive-sig{
  position:absolute;z-index:8;width:72px;min-height:72px;margin:0;padding:6px 5px 5px;
  border:3px solid #fff;border-radius:18px;color:#fff;background:#b06a00;
  box-shadow:0 6px 0 #7a4a00, 0 12px 22px rgba(120,70,0,.3);
  transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;
  font-weight:800;letter-spacing:-.04em;line-height:1.05;pointer-events:auto;cursor:pointer
}
#stage .drive-sig[hidden]{display:none !important}
#stage .drive-sig svg{width:30px;height:26px;display:block}
#stage .drive-sig .lb{color:#fff;font-size:11.5px;font-weight:800;text-align:center;word-break:keep-all}
#stage .drive-sig .key{margin-top:1px;min-width:16px;padding:1px 5px;border-radius:6px;background:rgba(255,255,255,.22);color:#fff;font-size:11px;font-weight:800;line-height:1.25}
#stage .drive-sig.need{border-width:4px;border-color:#ffe7b0;animation:sigNeed .6s ease-in-out infinite}
#stage .drive-sig.on{background:#ff9d0a;box-shadow:0 6px 0 #7a4a00, 0 0 0 5px rgba(255,170,40,.55);animation:sigBlink .66s steps(2, jump-none) infinite}
@keyframes sigNeed{50%{transform:translate(-50%,-50%) scale(1.08);box-shadow:0 6px 0 #7a4a00, 0 0 0 10px rgba(255,170,40,.55)}}
@keyframes sigBlink{50%{background:#ffc04d}}
#stage .drive-sig:active{transform:translate(-50%,-50%) translateY(3px);box-shadow:0 2px 0 #7a4a00}
#stage #driveBanner{
  position:absolute;z-index:8;left:50%;top:118px;transform:translate(-50%,-100%);transform-origin:center bottom;
  width:max-content;max-width:min(420px,calc(100% - 32px));
  padding:12px 18px 13px;border-radius:18px;border:3px solid #f0b429;
  background:#fffdf7;color:#1c2418;text-align:center;pointer-events:none;
  box-shadow:0 12px 28px rgba(34,84,66,.24)
}
#stage #driveBanner[hidden]{display:none !important}
#stage #crossWait{
  position:absolute;z-index:8;left:50%;top:108px;transform:translateX(-50%);
  width:max-content;max-width:min(420px,calc(100% - 48px));
  padding:14px 22px;border-radius:18px;border:3px solid #e23b2f;
  background:#fff;color:#9a1c14;text-align:center;pointer-events:none;
  font-size:18px;font-weight:800;line-height:1.35;letter-spacing:-.03em;
  box-shadow:0 14px 32px rgba(120,24,16,.22);
  animation:crossPop .28s var(--sim-pop)
}
#stage #crossWait[hidden]{display:none !important}
@keyframes crossPop{from{opacity:0;transform:translateX(-50%) translateY(-8px) scale(.94)}to{opacity:1;transform:translateX(-50%) translateY(0) scale(1)}}
#stage #driveBanner b{display:block;margin-bottom:3px;color:#9a5b00;font-size:15px;font-weight:800;letter-spacing:-.03em}
#stage #driveBanner span{display:block;font-size:18px;font-weight:800;line-height:1.35;letter-spacing:-.03em}
#stage #driveBanner.urge{
  z-index:12;max-width:min(420px,calc(100% - 32px));
  border:4px solid #e23b2f;background:#fff;padding:14px 18px 15px;
  box-shadow:0 0 0 6px rgba(226,59,47,.28), 0 18px 36px rgba(80,16,12,.28);
  animation:bannerUrge .7s ease-in-out infinite
}
#stage #driveBanner.urge b{color:#9a1c14;font-size:17px}
#stage #driveBanner.urge span{color:#1c100e;font-size:20px}
@keyframes bannerUrge{
  50%{transform:translate(-50%,-100%) scale(1.035);box-shadow:0 0 0 11px rgba(226,59,47,.16), 0 18px 36px rgba(80,16,12,.28)}
}
#stage .drive-hud button:active{transform:translateY(2px);box-shadow:0 1px 0 var(--sim-sun-d)}

/* ---------- 기기 화면(무인 단말기 · 휴대폰 · PC · ATM · 단말기) ---------- */
.sheet-wrap .dv,.sheet-wrap .dev{border:3px solid #fff;border-radius:26px;background:#2a403a;box-shadow:0 14px 30px rgba(34,84,66,.26)}
.sheet-wrap .dv .scr,.sheet-wrap .dev .scr{border-radius:16px;background:#fffefb}
.sheet-wrap .dv.phone{border-radius:38px}
.sheet-wrap .dv.phone .scr{border-radius:26px}
.sheet-wrap .dv.pc{border-radius:20px;background:#e2efe7;overflow:hidden}
.sheet-wrap .dv.pc .scr{border-radius:0 0 16px 16px}
.sheet-wrap .chrome{background:#e2efe7}
.sheet-wrap .addr{color:var(--sim-sub)}
.sheet-wrap .dv .body h4,.sheet-wrap .scr h4{color:var(--sim-ink);letter-spacing:-.03em}
.sheet-wrap .dv .p,.sheet-wrap .scr .p{color:#3f5a52}
.sheet-wrap .dv .pe{color:var(--sim-sub)}
.sheet-wrap .sbar{color:var(--sim-ink)}
.sheet-wrap .abar{border-bottom:2px solid var(--sim-line);background:#fff}
.sheet-wrap .abar b,.sheet-wrap .site b,.sheet-wrap .iconbtn{color:var(--sim-green-dd)}
.sheet-wrap .abar .tag2,.sheet-wrap .site small{color:var(--sim-coral-ink);border-color:#ffd5cd;background:var(--sim-coral-soft);border-radius:999px;padding:1px 8px}
.sheet-wrap .site{border-bottom:2px solid var(--sim-line)}
.sheet-wrap .gnb{background:var(--sim-paper);border-bottom:2px solid var(--sim-line)}
.sheet-wrap .gnb span{color:var(--sim-sub)}
.sheet-wrap .gnb span.on{color:var(--sim-green-dd);box-shadow:inset 0 -3px 0 var(--sim-green);background:#fff}
.sheet-wrap .scr .appbar{background:#01387A}
.sheet-wrap .khead{background:#2c5148;color:#fff}
.sheet-wrap .dv.atm .khead{background:#1b8f58}
.sheet-wrap .khead .tm{background:rgba(255,255,255,.18)}
.sheet-wrap .voice{border:2px solid #ffe08a;border-radius:16px;background:var(--sim-sun-soft);color:var(--sim-sun-ink)}
.sheet-wrap .kfoot{background:var(--sim-paper);border-top:2px solid var(--sim-line)}
.sheet-wrap .kfoot button{border:2px solid var(--sim-line);border-radius:999px;color:var(--sim-ink);box-shadow:0 3px 0 #d3e5d9}
.sheet-wrap .kb{gap:10px}
.sheet-wrap .eye-chart{background:#fff;border:3px solid #1d2a30;border-radius:12px;padding:12px 10px 8px;margin:4px 0 12px;text-align:center;color:#142033}
.sheet-wrap .eye-chart .ln{font-weight:800;letter-spacing:.16em;line-height:1.2;font-family:"IBM Plex Sans KR",sans-serif}
.sheet-wrap .eye-chart .mark{display:inline-block;padding:0 .12em;border:3px solid #d23b2e;border-radius:6px;color:#d23b2e;letter-spacing:0}
.sheet-wrap .eye-chart .cap{margin:8px 0 0;font-size:13px;font-weight:700;letter-spacing:0;color:#4a5a68}
.sheet-wrap .kb button{border:2px solid var(--sim-line);border-radius:18px;color:var(--sim-ink);box-shadow:0 3px 0 #d3e5d9;transition:transform .12s,box-shadow .12s,border-color .12s}
.sheet-wrap .kb button .e{color:var(--sim-sub)}
.sheet-wrap .kb button:hover{border-color:#8fdcb1;transform:translateY(-1px)}
.sheet-wrap .kb button:active{transform:translateY(2px);box-shadow:0 1px 0 #d3e5d9}
.sheet-wrap .kb button.no,.sheet-wrap .mlist button.no{border-color:var(--sim-coral);background:var(--sim-coral-soft)}
.sheet-wrap .kb button.yes,.sheet-wrap .mlist button.yes,.sheet-wrap .bins button.yes{border-color:var(--sim-green);background:var(--sim-mint)}
.sheet-wrap .dv .kb button.pri{background:#01387A;border-color:#01387A;color:#fff;box-shadow:0 3px 0 var(--sim-green-dd)}
.sheet-wrap .dv .kb button.pri .e{color:#e2f8ea}
.sheet-wrap .stepper li{color:#8aa399;border-top-color:#dcebe2;border-top-width:5px;border-radius:2px}
.sheet-wrap .stepper li.on{color:var(--sim-green-dd);border-top-color:var(--sim-green)}
.sheet-wrap .stepper li.done{color:var(--sim-green-d);border-top-color:#a6e3c1}
.sheet-wrap .crumb,.sheet-wrap .legend,.sheet-wrap .cal .wd{color:var(--sim-sub)}
.sheet-wrap .fld span{color:#4d6a61}
.sheet-wrap .fld div{border:2px solid var(--sim-line);border-radius:12px;background:#fbfdfb;color:var(--sim-ink)}
.sheet-wrap .tbl th,.sheet-wrap .tbl td{border-color:var(--sim-line)}
.sheet-wrap .tbl th{background:var(--sim-paper);color:#3f5a52}
.sheet-wrap .note{border-radius:14px;background:var(--sim-paper);color:#4d6a61}
.sheet-wrap .warn{border-radius:14px;background:var(--sim-coral-soft);color:var(--sim-coral-ink)}
.sheet-wrap .calhead{color:var(--sim-ink)}
.sheet-wrap .cal button,.sheet-wrap .cal span.d{border-radius:12px}
.sheet-wrap .cal button{background:var(--sim-green);box-shadow:0 2px 0 var(--sim-green-dd)}
.sheet-wrap .cal span.d{background:#edf3ee;color:#a3b6ad}
.sheet-wrap .slots button{border:2px solid var(--sim-green);color:var(--sim-green-dd);border-radius:12px}
.sheet-wrap .slots button:disabled{border-color:var(--sim-line);color:#a9bbb2;background:var(--sim-paper)}
.sheet-wrap .chk button{border:2px solid var(--sim-line);border-radius:14px;color:var(--sim-ink)}
.sheet-wrap .chk button.on{border-color:var(--sim-green);background:var(--sim-mint)}
.sheet-wrap .pindots i{border-color:var(--sim-ink)}
.sheet-wrap .pindots i.on{background:var(--sim-green);border-color:var(--sim-green)}
.sheet-wrap .keys button{border:2px solid var(--sim-line);border-radius:14px;color:var(--sim-ink);box-shadow:0 3px 0 #d3e5d9}
.sheet-wrap .keys button:active{transform:translateY(2px);box-shadow:0 1px 0 #d3e5d9}
.sheet-wrap .mlist{border:2px solid var(--sim-line);border-radius:16px}
.sheet-wrap .mlist button{border-bottom-color:#e8f2ec;color:var(--sim-ink)}
.sheet-wrap .mlist button::after{color:var(--sim-green)}
.sheet-wrap .mlist button .e{color:var(--sim-sub)}
.sheet-wrap .dv.reader{border-radius:28px;background:#f0b429}
.sheet-wrap .lcd{border-radius:14px;background:#12261c}
.sheet-wrap .rd-b button{border-radius:999px;background:var(--sim-ink);box-shadow:0 3px 0 #132823}
.sheet-wrap .dv .fb.bad,.sheet-wrap .scr .fb.bad{background:var(--sim-coral-soft);color:var(--sim-coral-ink)}

/* ---------- 좁은 화면 ---------- */
@media(max-width:1000px){#stage .scene-caption small{display:none}}
@media(max-width:720px){
  #stage .scene-caption{top:12px;left:12px;padding:4px 11px 4px 9px;font-size:12px}
  #stage .hud{top:48px;left:12px;right:12px}
  #stage .hud .h{font-size:11px;padding:3px 9px}
  #stage .ins{padding:11px 14px 11px;gap:10px;border-radius:20px}
  #stage .ins .ko{font-size:14.5px}
  #stage .ins .hint{font-size:11.5px;margin-top:5px}
  #stage .bar{height:6px;margin-top:8px}
  #stage .camera-help{bottom:168px;font-size:10px}
  #stage .toast{top:92px;font-size:13px;padding:7px 14px}
  #stage .drive-hud{top:48px;gap:6px;padding:5px 6px 5px 12px}
  #stage .drive-hud b{font-size:13px}
  .sheet-wrap .sheet{border-radius:22px;padding:15px;gap:10px}
  .sheet-wrap .sheet h3{font-size:17px}
  .sheet-wrap .opt{font-size:14px;padding:9px 12px 9px 9px;border-radius:16px}
  .sheet-wrap .opt::before{width:26px;height:26px;font-size:12px}
  .sheet-wrap .btn,#stage .btn{padding:8px 14px;font-size:13px}
  .sheet-wrap.floor .sheet{width:min(700px,calc(100% - 20px));max-height:48vh;margin-bottom:10px;padding:14px 15px 12px}
  .sheet-wrap .stats{gap:7px}
}
/* 휴대폰(가로): 조이스틱과 도우미 버튼 자리를 비워 둔다 */
body.sim-mobile #stage .dock{padding-left:max(176px,calc(env(safe-area-inset-left,0px) + 172px));padding-right:max(88px,calc(env(safe-area-inset-right,0px) + 84px))}
body.sim-mobile .sheet-wrap.floor:not(.phone-corner) .sheet{width:calc(100% - 268px);margin-left:max(172px,calc(env(safe-area-inset-left,0px) + 164px));margin-right:auto}
@media(max-height:460px){
  #stage .ins{padding:9px 14px 9px}
  #stage .ins .ko{font-size:14px;line-height:1.35}
  .sheet-wrap.floor .sheet{max-height:calc(100% - 4px);margin-bottom:4px}
  #stage>.sheet-wrap:not(.floor):not(.talk-wrap){bottom:0;padding:8px 12px;z-index:8}   /* 낮은 화면: 기기 화면이 안내 도크 자리까지 쓴다 */
  #stage .talk{max-height:none;overflow:visible}
  .sheet-wrap .sheet{padding:13px 15px;gap:9px}
  .sheet-wrap .kcard{padding:11px 14px;gap:5px}
  .sheet-wrap .kcard li{font-size:13px;line-height:1.4}
}
@media(prefers-reduced-motion:reduce){
  #stage .interact-mark .tap,#stage .scene-caption .live-dot,.sheet-wrap .opt.no,
  #stage #driveHazard.need,#stage #driveBrake.need,#stage .drive-sig.need,#stage #driveBanner.urge{animation:none}
}

/* ==========================================================================
   심즈풍 하단 패널 (안내 도크 · 문제 시트)
   둥근 게임 글꼴, 초록 플럼밥 배지, 꼬리표, 도톰한 아래 테두리, 칸 진행 막대.
   위 규칙을 덮어쓴다. 이 구획을 지우면 이전 모습으로 돌아간다.
   ========================================================================== */
:root{--f-sim:var(--f-body);--w-sim:600;--sim-edge:#c9ddd4;
  --sim-bob:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='22' fill='%231f6b56'/%3E%3Ccircle cx='24' cy='24' r='8' fill='%23e7f3ee'/%3E%3C/svg%3E")}
:root:lang(ko),:root:lang(en){--f-sim:var(--f-body);--w-sim:600}

/* ---------- 안내 도크 ---------- */
#stage .dock{flex-direction:column;align-items:center;gap:8px;padding-bottom:calc(18px + env(safe-area-inset-bottom,0px));overflow:visible}
#stage .ins{position:relative;max-width:800px;border:3px solid #fff;border-radius:28px;padding:14px 18px 12px 78px;gap:12px;
  background:#fff;overflow:visible;max-height:none;
  box-shadow:0 10px 24px rgba(20,32,28,.1);backdrop-filter:none}
#stage .ins .txt{overflow:visible;max-height:none}
#stage .ins::before{content:"";position:absolute;left:18px;top:50%;width:50px;height:50px;margin-top:-28px;background:var(--sim-bob) center/contain no-repeat;filter:drop-shadow(0 4px 0 rgba(20,116,74,.28));animation:simBob 2.6s ease-in-out infinite}
#stage .ins[data-step]::after{content:attr(data-step);box-sizing:border-box;position:absolute;left:26px;top:-42px;height:28px;padding:0 14px;display:flex;align-items:center;border:3px solid #fff;border-radius:999px;
  background:#01387A;color:#fff;font:400 13px/1 'Jua',var(--f-mono);letter-spacing:.04em;text-shadow:none;box-shadow:0 3px 0 var(--sim-green-dd)}
#stage .ins .ko{font-family:var(--f-sim);font-weight:var(--w-sim);font-size:16.5px;line-height:1.32;letter-spacing:-.01em;color:#1f3b35}
#stage .ins .hint{position:relative;display:inline-block;margin-top:9px;padding:6px 13px 6px 12px;border:2px solid #ffe08a;border-radius:6px 16px 16px 16px;background:var(--sim-sun-soft);color:var(--sim-sun-ink);font-size:13px;font-weight:700;line-height:1.4}
#stage .ins .hint[hidden]{display:none}
#stage .bar{height:8px;margin-top:8px;border-radius:999px;background:#e6eeea;box-shadow:none;
  -webkit-mask:repeating-linear-gradient(90deg,#000 0 calc(100% / var(--steps,1) - 4px),transparent 0 calc(100% / var(--steps,1)));mask:repeating-linear-gradient(90deg,#000 0 calc(100% / var(--steps,1) - 4px),transparent 0 calc(100% / var(--steps,1)))}
#stage .bar i{border-radius:0;background:#00AACC;box-shadow:none}
#stage .dockfb{margin-top:6px;border-radius:12px;padding:6px 10px;font-size:13px;font-weight:500;line-height:1.35;border:2px solid transparent;overflow:visible}
#stage .dockfb b{font-family:var(--f-sim);font-weight:var(--w-sim);font-size:14px}
#stage .dockfb.good{border-color:#c4ecd4}
#stage .dockfb.bad{border-color:#ffd5cd}
#stage .ins .btn{flex:none;font-family:var(--f-sim);font-weight:var(--w-sim);font-size:15.5px;padding:11px 20px;border-width:3px;border-color:#fff;box-shadow:0 4px 0 #cfe2d6, 0 8px 16px rgba(34,84,66,.14)}
#stage .ins .btn.hint{box-shadow:0 4px 0 var(--sim-sun-d), 0 8px 16px rgba(120,90,10,.2)}
#stage .ins .btn.pri{box-shadow:0 4px 0 var(--sim-green-dd), 0 8px 16px rgba(34,84,66,.2)}
#stage .ins .btn:active{transform:translateY(3px);box-shadow:0 1px 0 #cfe2d6}
.admin-edit{align-self:flex-end;margin-top:2px;border:1px solid #d5e3dc;background:#fff;color:#01387A;border-radius:999px;padding:6px 12px;font:700 12.5px/1.2 "IBM Plex Sans KR","Noto Sans KR",sans-serif;cursor:pointer}
.admin-edit:hover{background:#e7f3ee}
.admin-tools,.sheet-wrap .sum-tools{display:flex;justify-content:flex-end;align-items:center;gap:6px;flex:none}
.admin-tools .admin-edit,.sheet-wrap .sum-tools .admin-edit{margin-top:0}
.admin-edit.admin-remove,.sheet-wrap .btn.admin-remove{color:#9b2c2c;border-color:#f0d2cc;background:#fff}
.admin-edit.admin-remove:hover,.sheet-wrap .btn.admin-remove:hover{background:#fff1ee}
.sheet-wrap .admin-form{display:flex;flex-direction:column;gap:8px}
.sheet-wrap .admin-field{display:flex;flex-direction:column;gap:4px;color:#5d736c;font-size:12px;font-weight:700}
.sheet-wrap .admin-field textarea{width:100%;min-height:46px;border:1px solid #d5e3dc;border-radius:12px;padding:8px 10px;color:#1c2c28;font:500 14px/1.4 "IBM Plex Sans KR","Noto Sans KR",sans-serif;background:#fff;resize:vertical}
.sheet-wrap .admin-note{margin:0;color:#8d3a30;font-size:13px;font-weight:600}
.sheet-wrap .admin-check{display:flex;align-items:center;gap:8px;color:#1f3b35;font-size:13.5px;font-weight:700}
.sheet-wrap .admin-check input{width:16px;height:16px;margin:0;accent-color:#01387A}
.sheet-wrap .admin-choices{display:flex;flex-direction:column;gap:8px}
.sheet-wrap .admin-choice{display:flex;flex-direction:column;gap:6px;padding:10px;border:1px solid #d5e3dc;border-radius:14px;background:#f7fbf8}
.sheet-wrap .admin-choice-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.sheet-wrap .admin-del{border:0;background:transparent;color:#8d3a30;font:700 12.5px/1.2 "IBM Plex Sans KR","Noto Sans KR",sans-serif;cursor:pointer;padding:4px 2px}
.sheet-wrap .admin-del:disabled{color:#b7c4be;cursor:default}
.sheet-wrap .admin-add{align-self:flex-start}
.sheet-wrap .admin-choice .admin-field textarea{min-height:38px}
.sheet-wrap .admin-shot{display:flex;align-items:center;gap:10px}
.sheet-wrap .admin-shot-frame{width:168px;height:auto;aspect-ratio:2.02 / 1;flex:none;display:grid;place-items:center;overflow:hidden;border:1.5px dashed #9bb0a6;border-radius:12px;background:#fff;color:#5d736c;font:700 12px/1.2 "IBM Plex Sans KR","Noto Sans KR",sans-serif;cursor:pointer}
.sheet-wrap .admin-shot-frame:focus{outline:none}
.sheet-wrap .admin-shot-frame img{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.sheet-wrap .admin-choice.is-paste{border-color:#9ec3ad}
.sheet-wrap .admin-choice.is-paste .admin-shot-frame{border-style:solid;border-color:#01387A;box-shadow:0 0 0 2px rgba(1,56,122,.18)}
.sheet-wrap .admin-shot-side{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}
.sheet-wrap .admin-shot p{margin:0;color:#5d736c;font-size:12px;font-weight:600;line-height:1.45}
.sheet-wrap .admin-shot .admin-del{padding:0}
.sheet-wrap .eval-bank{display:flex;flex-direction:column;gap:6px}
.sheet-wrap .eval-bank button{display:flex;gap:10px;align-items:flex-start;width:100%;text-align:left;border:1px solid #d5e3dc;background:#fff;border-radius:12px;padding:8px 10px;cursor:pointer;color:#1c2c28;font:500 14px/1.45 "IBM Plex Sans KR","Noto Sans KR",sans-serif}
.sheet-wrap .eval-bank button:hover{background:#f3faf6}
.sheet-wrap .eval-bank b{flex:none;color:#01387A;font-weight:700}
.sheet-wrap .eval-bank span{min-width:0}
.sheet-wrap .sheet.admin-editing{max-height:min(72vh,640px);overflow:auto}
.sheet-wrap .sheet.layout-sheet{max-width:680px;max-height:min(82vh,760px)}
.sheet-wrap .layout-step{border:1px solid #d5e3dc;border-radius:14px;padding:10px 12px;margin:0 0 10px;background:#f7fbf8}
.sheet-wrap .layout-step-top{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.sheet-wrap .layout-step-top b{flex:none;color:#01387A}
.sheet-wrap .layout-ko{flex:1;min-width:0;color:#3d4d46;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sheet-wrap .layout-items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.sheet-wrap .layout-item{display:flex;align-items:center;flex-wrap:wrap;gap:8px;background:#fff;border:1px solid #e3ece7;border-radius:10px;padding:6px 8px}
.sheet-wrap .layout-item > span:first-child{flex:1;min-width:0;font-size:13.5px;line-height:1.4}
.sheet-wrap .layout-quiz{flex:1 0 100%;display:flex;flex-direction:column;gap:8px;padding-top:2px}
.sheet-wrap .layout-add{align-self:flex-start;margin-top:8px}
.sheet-wrap .layout-moves{display:flex;gap:4px;flex:none}
.sheet-wrap .layout-moves button{border:1px solid #d5e3dc;background:#fff;border-radius:8px;padding:4px 8px;font:700 12px/1.2 "IBM Plex Sans KR","Noto Sans KR",sans-serif;color:#01387A;cursor:pointer}
.sheet-wrap .layout-moves button:disabled{opacity:.35;cursor:default}
.sheet-wrap .layout-moves button.danger{color:#9b2c2c}

/* ---------- 문제 시트 (화면 아래) ---------- */
.sheet-wrap.floor .sheet{--px:22px;--py:20px;position:relative;width:min(720px,calc(100% - 240px));padding:var(--py) var(--px) 16px;gap:12px;border:3px solid #fff;border-radius:28px;
  background:#fff;box-shadow:0 12px 32px rgba(20,32,28,.12);margin-bottom:20px;animation:simRise .32s var(--sim-pop) both}
@keyframes simRise{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:none}}
/* 문제 제목: 초록 머리띠 + 플럼밥 배지 */
.sheet-wrap.floor .sheet>h3:first-child,.sheet-wrap.floor .sheet>.sheet-x+h3,.sheet-wrap.floor .sheet>.k:first-child+h3{margin:calc(var(--py) * -1) calc(var(--px) * -1) 4px;padding:15px 22px 15px 66px;min-height:60px;position:relative;align-items:center;
  background:#01387A;color:#fff;font-family:var(--f-sim);font-weight:var(--w-sim);font-size:19.5px;line-height:1.36;letter-spacing:0;text-shadow:none;
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.08), inset 0 2px 0 rgba(255,255,255,.28)}
.sheet-wrap.floor .sheet>.sheet-x+h3,.sheet-wrap.floor .sheet>.k:first-child+h3{padding-right:96px}
.sheet-wrap.floor .sheet>h3:first-child::before,.sheet-wrap.floor .sheet>.sheet-x+h3::before,.sheet-wrap.floor .sheet>.k:first-child+h3::before{position:absolute;left:16px;top:50%;width:38px;height:38px;margin-top:-19px;clip-path:none;background:var(--sim-bob) center/contain no-repeat;filter:drop-shadow(0 2px 0 rgba(0,0,0,.14))}
.sheet-wrap.floor .sheet>.sheet-x{position:absolute;top:13px;right:14px;margin:0;z-index:5;border:2px solid rgba(255,255,255,.85);background:rgba(255,255,255,.22);color:#fff;font-family:var(--f-sim);font-weight:var(--w-sim);font-size:13.5px;padding:6px 15px;box-shadow:none;text-shadow:0 1px 0 rgba(0,0,0,.14)}
.sheet-wrap.floor .sheet>.sheet-x:hover{background:rgba(255,255,255,.36)}
.sheet-wrap.floor .sheet>.sheet-x:first-child:not(:has(+h3)){position:sticky;align-self:flex-end;top:0;right:auto;margin:0 0 -4px;border-color:var(--sim-line);background:#fff;color:var(--sim-sub);text-shadow:none;box-shadow:0 3px 0 #cfe2d6}
.sheet-wrap .sheet h3,.sheet-wrap .kcard h4,.sheet-wrap .res-head .big{font-family:var(--f-sim);font-weight:var(--w-sim)}
.sheet-wrap.floor .sheet .sub{margin:0;padding:5px 12px;align-self:flex-start;border-radius:999px;background:var(--sim-sky-soft);color:#2a6fa8;font-size:12.5px;font-weight:700}
/* 퀴즈 번호표: 머리띠 오른쪽에 얹는다 */
.sheet-wrap.floor .sheet>.k:first-child{position:absolute;top:16px;right:16px;z-index:5;padding:4px 12px;border:2px solid rgba(255,255,255,.8);background:rgba(255,255,255,.22);color:#fff!important;font:400 13px/1.2 'Jua',var(--f-mono)!important;text-shadow:0 1px 0 rgba(0,0,0,.14)}
/* 보기 */
.sheet-wrap .opts{gap:10px}
.sheet-wrap .opt{border:3px solid #e2efe7;border-radius:20px;padding:11px 16px 11px 11px;column-gap:13px;font-family:var(--f-sim);font-weight:var(--w-sim);font-size:16.5px;line-height:1.4;color:#1f3b35;background:#fff;box-shadow:0 4px 0 #d3e5d9}
.sheet-wrap.floor .opt{font-size:16.5px}
.sheet-wrap .opt::before{width:34px;height:34px;border-radius:12px;background:#e8f8ee;color:var(--sim-green-d);font:400 16px/1 'Jua',var(--f-mono);box-shadow:none}
.sheet-wrap .opt:hover{border-color:#7fdcaa;background:#f6fff9;transform:translateY(-2px);box-shadow:0 6px 0 #bfe6cf}
.sheet-wrap .opt:hover::before{background:#01387A;color:#fff}
.sheet-wrap .opt:active{transform:translateY(3px);box-shadow:0 1px 0 #c5e6d2}
.sheet-wrap .opt:focus-visible{outline:0;border-color:var(--sim-green);box-shadow:0 4px 0 #9fdcb9, 0 0 0 4px #cdf0dc}
.sheet-wrap .opt.sel{border-color:var(--sim-green);background:var(--sim-mint);box-shadow:0 4px 0 #9fdcb9}
.sheet-wrap .opt.sel::before{background:#01387A;color:#fff}
.sheet-wrap .opt.yes{border-color:var(--sim-green);background:var(--sim-mint);box-shadow:0 4px 0 #9fdcb9}
.sheet-wrap .opt.yes::before{background:var(--sim-green);color:#fff;font-size:17px;box-shadow:none}
.sheet-wrap .opt.no{border-color:var(--sim-coral);background:var(--sim-coral-soft);box-shadow:0 4px 0 #f5c2b9}
.sheet-wrap .opt.no::before{background:var(--sim-coral);color:#fff;box-shadow:none}
.sheet-wrap .opt:disabled{opacity:.55;transform:none;box-shadow:none}
.sheet-wrap .opt.yes:disabled,.sheet-wrap .opt.no:disabled{opacity:1}
/* 풀이 */
.sheet-wrap .fb{position:relative;border-radius:18px;padding:12px 15px 12px 54px;font-size:14px;line-height:1.6;min-height:50px}
.sheet-wrap.floor .fb{font-size:14px}
.sheet-wrap .fb::before{position:absolute;left:12px;top:11px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;color:#fff;font:700 16px/1 var(--f-mono)}
.sheet-wrap .fb.good::before{content:"✓";background:var(--sim-green);box-shadow:0 3px 0 var(--sim-green-dd)}
.sheet-wrap .fb.bad::before{content:"!";background:var(--sim-coral);box-shadow:0 3px 0 var(--sim-coral-d)}
.sheet-wrap .fb b{font-family:var(--f-sim);font-weight:var(--w-sim);font-size:16px;margin-bottom:2px}
.sheet-wrap .dv .fb,.sheet-wrap .scr .fb,#stage .talk .fb{padding-left:13px;min-height:0}
.sheet-wrap .dv .fb::before,.sheet-wrap .scr .fb::before,#stage .talk .fb::before{content:none}
.sheet-wrap .sheet .row .btn,.sheet-wrap.floor .btn{font-family:var(--f-sim);font-weight:var(--w-sim);font-size:15.5px;padding:10px 22px;box-shadow:0 4px 0 #cfe2d6}
.sheet-wrap .sheet .row .btn.pri,.sheet-wrap.floor .btn.pri{box-shadow:0 4px 0 var(--sim-green-dd)}
.sheet-wrap .sitem b{font-family:var(--f-sim);font-weight:var(--w-sim);font-size:15.5px}
.sheet-wrap .sitem .bins button{font-family:var(--f-sim);font-weight:var(--w-sim);font-size:14.5px;padding:7px 15px;box-shadow:0 3px 0 #d3e5d9}

/* 분류 문제: 넓은 화면에서는 두 줄로 나눠 한눈에 보이게 */
@media(min-width:721px){.sheet-wrap.floor .sheet:has(.sortgrid){width:min(840px,calc(100% - 240px));max-width:840px}.sheet-wrap.floor .sortgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}}
@media(max-width:720px){
  #stage .ins{padding:16px 14px 12px 62px;border-radius:22px;gap:10px}
  #stage .ins::before{left:12px;width:40px;height:40px;margin-top:-22px}
  #stage .ins[data-step]::after{left:18px;top:-36px;height:24px;font-size:11.5px;padding:0 11px}
  #stage .ins .ko{font-size:15.5px}
  #stage .ins .btn{font-size:14px;padding:9px 15px}
  #stage .bar{height:8px;margin-top:9px}
  .sheet-wrap.floor .sheet{--px:15px;--py:14px;width:min(720px,calc(100% - 20px));padding:var(--py) var(--px) 12px;border-radius:22px;margin-bottom:12px}
  .sheet-wrap.floor .sheet>h3:first-child,.sheet-wrap.floor .sheet>.sheet-x+h3,.sheet-wrap.floor .sheet>.k:first-child+h3{font-size:16.5px;padding:11px 14px 11px 52px;min-height:48px}
  .sheet-wrap.floor .sheet>.sheet-x+h3,.sheet-wrap.floor .sheet>.k:first-child+h3{padding-right:80px}
  .sheet-wrap.floor .sheet>h3:first-child::before,.sheet-wrap.floor .sheet>.sheet-x+h3::before,.sheet-wrap.floor .sheet>.k:first-child+h3::before{left:11px;width:30px;height:30px;margin-top:-15px}
  .sheet-wrap.floor .sheet>.sheet-x{top:8px;right:9px;font-size:12.5px;padding:4px 12px}
  .sheet-wrap.floor .sheet>.k:first-child{top:10px;right:10px}
  .sheet-wrap .opt,.sheet-wrap.floor .opt{font-size:15px;padding:8px 12px 8px 8px;border-radius:16px;border-width:2px}
  .sheet-wrap .opt::before{width:28px;height:28px;border-radius:10px;font-size:14px}
  .sheet-wrap .fb,.sheet-wrap.floor .fb{font-size:13px;padding:9px 12px 9px 46px}
  .sheet-wrap .fb::before{left:9px;top:8px;width:26px;height:26px;font-size:14px}
}
body.sim-mobile .sheet-wrap.floor:not(.phone-corner) .sheet{width:calc(100% - 268px)}
@media(max-height:460px){
  #stage .dock{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
  #stage .ins{padding:13px 14px 9px 58px}
  #stage .ins::before{left:11px;width:36px;height:36px;margin-top:-20px}
  #stage .ins[data-step]::after{top:-36px}
  #stage .ins .ko{font-size:15px;line-height:1.34}
  #stage .ins .hint{margin-top:5px;padding:3px 10px;font-size:11.5px}
  #stage .bar{height:7px;margin-top:7px}
  .sheet-wrap.floor .sheet{--px:15px;--py:12px;padding:var(--py) var(--px) 10px;gap:8px;margin-bottom:8px;max-height:calc(100% - 10px)}
  .sheet-wrap.floor .sheet>h3:first-child,.sheet-wrap.floor .sheet>.sheet-x+h3,.sheet-wrap.floor .sheet>.k:first-child+h3{font-size:15.5px;padding:8px 14px 8px 48px;min-height:40px}
  .sheet-wrap.floor .sheet>.sheet-x+h3,.sheet-wrap.floor .sheet>.k:first-child+h3{padding-right:76px}
  .sheet-wrap.floor .sheet>h3:first-child::before,.sheet-wrap.floor .sheet>.sheet-x+h3::before,.sheet-wrap.floor .sheet>.k:first-child+h3::before{left:10px;width:26px;height:26px;margin-top:-13px}
  .sheet-wrap.floor .sheet>.sheet-x{top:5px;right:8px}
  .sheet-wrap.floor .sheet>.k:first-child{top:7px;right:9px}
  .sheet-wrap .opts{gap:7px}
  .sheet-wrap .sitem{padding:8px 10px;border-radius:14px}
  .sheet-wrap .sitem b{font-size:14px}
  .sheet-wrap .sitem .bins{gap:5px}
  .sheet-wrap .sitem .bins button{padding:4px 9px;font-size:13px}
  .sheet-wrap.floor .sortgrid{gap:7px}
  .sheet-wrap .opt,.sheet-wrap.floor .opt{font-size:14px;padding:6px 11px 6px 7px;box-shadow:0 3px 0 #d3e5d9}
  .sheet-wrap .opt::before{width:24px;height:24px;border-radius:8px;font-size:12.5px}
}
@media(prefers-reduced-motion:reduce){
  #stage .ins::before,.sheet-wrap.floor .sheet,#stage .phone-launch .glyph::before{animation:none}
}

/* ---------- 모바일 · 태블릿: 짧은 화면에 맞춰 UI를 줄인다 ---------- */
body.touch-tablet .top{min-height:52px;padding:8px 14px;gap:10px}
body.touch-tablet .brand{font-size:14px}
body.touch-tablet .brand::before{width:28px;height:28px;font-size:14px}
body.touch-tablet .top .now{font-size:12px;padding-left:12px}
body.touch-tablet .top .tbtn,body.touch-tablet .lsel select{padding:5px 8px !important;font-size:12px !important}
body.touch-tablet #home{padding:22px 16px 40px}
body.touch-tablet .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
body.touch-tablet .card{min-height:160px;padding:14px}
body.touch-tablet #stage .joy{width:100px;height:100px}
body.touch-tablet #stage .joy-knob{width:38px;height:38px;margin:-19px 0 0 -19px}
body.touch-tablet #stage .kim-launch{width:52px;height:52px}
body.touch-tablet #stage .phone-launch .glyph,body.touch-tablet #stage .phone-launch .bezel{width:60px;height:106px}
body.touch-tablet #stage .phone-launch .cap{font-size:11px}
body.touch-tablet #stage .stage-actions{top:8px;right:10px}
body.touch-tablet #stage .help-btn,body.touch-tablet #stage .end-btn{height:28px;padding:0 10px;font-size:12px}
body.touch-tablet #stage .scene-caption{top:8px;left:10px}
body.touch-tablet #stage .kim-bubble{bottom:max(78px,calc(env(safe-area-inset-bottom) + 72px));max-width:min(180px,34vw);font-size:12px;padding:7px 10px 8px}
body.touch-tablet.sim-mobile #stage .dock{padding-left:max(136px,calc(env(safe-area-inset-left,0px) + 128px));padding-right:max(64px,calc(env(safe-area-inset-right,0px) + 60px))}
body.touch-tablet.sim-mobile .sheet-wrap.floor:not(.phone-corner) .sheet{width:min(640px,calc(100% - 210px));margin-left:max(128px,calc(env(safe-area-inset-left,0px) + 120px))}
body.touch-tablet #stage .ins{padding:14px 16px 12px 68px;border-radius:22px}
body.touch-tablet #stage .ins::before{width:42px;height:42px;left:14px;margin-top:-24px}
body.touch-tablet #stage .ins .ko{font-size:13.5px}
body.touch-tablet #stage .ins .btn{font-size:12.5px;padding:6px 12px}
body.touch-tablet .sheet-wrap.floor .sheet>h3:first-child,body.touch-tablet .sheet-wrap.floor .sheet>.sheet-x+h3,body.touch-tablet .sheet-wrap.floor .sheet>.k:first-child+h3{font-size:14px;min-height:36px;padding:7px 12px 7px 44px}
body.touch-tablet .sheet-wrap .opt,body.touch-tablet .sheet-wrap.floor .opt{font-size:13px;padding:6px 10px 6px 6px}
body.touch-tablet #stage .interact-mark .name{height:24px;font-size:12px;padding:0 9px}
body.touch-tablet #stage .interact-mark .tap{width:36px;height:36px}
body.touch-tablet.kim-mini .kim-chat{width:min(340px,calc(100vw - 28px));height:min(460px,calc(100vh - 150px));right:12px;bottom:78px}

body.touch-phone .top{min-height:40px;padding:4px 8px;gap:6px}
body.touch-phone .brand{font-size:12px;letter-spacing:-.04em}
body.touch-phone .brand::before{width:22px;height:22px;font-size:12px;border-radius:7px}
body.touch-phone .top .now{font-size:11px;padding-left:8px;max-width:34vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.touch-phone .top .chip{font-size:10px;padding:2px 7px}
body.touch-phone .top .tbtn,body.touch-phone .lsel select{padding:3px 7px !important;font-size:11px !important}
body.touch-phone #home{padding:14px 10px 24px}
body.touch-phone .intro{grid-template-columns:1fr;gap:12px}
body.touch-phone .intro h1{font-size:24px;margin:6px 0 8px}
body.touch-phone .intro p{font-size:12px;line-height:1.6}
body.touch-phone .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.touch-phone .card{min-height:0;padding:12px;gap:6px}
body.touch-phone .card h3{font-size:14px}
body.touch-phone .learning-strip{grid-template-columns:repeat(2,1fr);padding:8px 0}
body.touch-phone .learning-strip p{display:none}
body.touch-phone #stage .scene-caption{top:6px;left:8px;padding:3px 8px 3px 7px;font-size:11px;gap:6px}
body.touch-phone #stage .scene-caption small{display:none}
body.touch-phone #stage .hud{top:32px;left:8px;right:8px}
body.touch-phone #stage .hud .h{font-size:10px;padding:2px 7px}
body.touch-phone #stage .inv{font-size:11px;padding:3px 8px}
body.touch-phone #stage .toast{top:58px;font-size:12px;padding:5px 10px}
body.touch-phone #stage .drive-hud{top:32px;gap:6px;padding:4px 5px 4px 10px}
body.touch-phone #stage .drive-hud b{font-size:12px}
body.touch-phone #stage .drive-hud span{font-size:11px}
body.touch-phone #stage .joy{width:80px;height:80px;left:max(8px,env(safe-area-inset-left));bottom:max(8px,env(safe-area-inset-bottom));box-shadow:0 6px 16px rgba(20,40,32,.08)}
body.touch-phone #stage .joy-knob{width:30px;height:30px;margin:-15px 0 0 -15px}
body.touch-phone #stage .joy-n{top:8px}
body.touch-phone #stage .joy-e{right:8px}
body.touch-phone #stage .joy-s{bottom:8px}
body.touch-phone #stage .joy-w{left:8px}
body.touch-phone #stage .kim-launch{width:44px;height:44px;right:max(8px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom));border-width:2px}
body.touch-phone #stage .phone-launch{gap:4px}
body.touch-phone #stage .phone-launch .glyph,body.touch-phone #stage .phone-launch .bezel{width:52px;height:92px;border-radius:14px}
body.touch-phone #stage .phone-launch .cap{font-size:10px;padding:2px 7px}
body.touch-phone #stage .stage-actions{top:6px;right:8px}
body.touch-phone #stage .help-btn,body.touch-phone #stage .end-btn{height:24px;padding:0 8px;font-size:11px}
body.touch-phone #stage .kim-bubble{right:max(8px,env(safe-area-inset-right));bottom:max(58px,calc(env(safe-area-inset-bottom) + 54px));max-width:min(148px,42vw);padding:6px 9px 7px;font-size:11px;line-height:1.35;border-radius:14px}
body.touch-phone #stage .kim-bubble::after{right:16px;bottom:-5px}
body.touch-phone.sim-mobile #stage .dock{padding:0 max(56px,calc(env(safe-area-inset-right,0px) + 52px)) calc(6px + env(safe-area-inset-bottom,0px)) max(108px,calc(env(safe-area-inset-left,0px) + 100px))}
body.touch-phone #stage .ins{padding:5px 8px 5px 32px;gap:6px;border-radius:14px;border-width:2px;box-shadow:0 8px 16px rgba(20,32,28,.1)}
body.touch-phone #stage .ins::before{left:6px;width:22px;height:22px;margin-top:-12px}
body.touch-phone #stage .ins[data-step]::after{left:8px;top:-24px;height:16px;padding:0 6px;font-size:10px;border-width:2px}
body.touch-phone #stage .ins .ko{font-size:11.5px;line-height:1.28}
body.touch-phone #stage .ins .hint{margin-top:3px;padding:1px 6px;font-size:10px}
body.touch-phone #stage .bar{height:4px;margin-top:4px}
body.touch-phone #stage .ins .btn{font-size:11px;padding:4px 8px;border-width:2px;box-shadow:0 2px 0 #cfe2d6}
body.touch-phone #stage .talk{width:min(248px,56vw);padding:8px 10px;border-radius:16px;border-width:2px}
body.touch-phone #stage .talk .npc-line{font-size:12px;line-height:1.3;margin-bottom:6px}
body.touch-phone #stage .talk .who{margin-bottom:4px}
body.touch-phone #stage .talk .me{gap:4px}
body.touch-phone #stage .talk .reply{padding:4px 8px;font-size:11.5px;line-height:1.3}
body.touch-phone .sheet-wrap.floor:not(.phone-corner) .sheet{--px:12px;--py:10px;width:min(560px,calc(100% - 168px));max-height:calc(100% - 8px);margin:0 8px 6px max(100px,calc(env(safe-area-inset-left,0px) + 96px));padding:var(--py) var(--px) 8px;gap:6px;border-radius:16px}
body.touch-phone .sheet-wrap.floor .sheet>h3:first-child,body.touch-phone .sheet-wrap.floor .sheet>.sheet-x+h3,body.touch-phone .sheet-wrap.floor .sheet>.k:first-child+h3{font-size:12px;min-height:26px;padding:4px 8px 4px 32px}
body.touch-phone .sheet-wrap.floor .sheet>.sheet-x+h3,body.touch-phone .sheet-wrap.floor .sheet>.k:first-child+h3{padding-right:64px}
body.touch-phone .sheet-wrap.floor .sheet>h3:first-child::before,body.touch-phone .sheet-wrap.floor .sheet>.sheet-x+h3::before,body.touch-phone .sheet-wrap.floor .sheet>.k:first-child+h3::before{left:8px;width:22px;height:22px;margin-top:-11px}
body.touch-phone .sheet-wrap.floor .sheet>.sheet-x{top:4px;right:6px;font-size:11px;padding:2px 8px}
body.touch-phone .sheet-wrap.floor .sheet>.k:first-child{top:6px;right:6px;font-size:11px}
body.touch-phone .sheet-wrap .opt,body.touch-phone .sheet-wrap.floor .opt{font-size:11.5px;padding:4px 6px 4px 4px;border-radius:10px;border-width:2px;box-shadow:0 2px 0 #d3e5d9;column-gap:6px}
body.touch-phone .sheet-wrap .opt::before{width:18px;height:18px;border-radius:6px;font-size:10px}
body.touch-phone .sheet-wrap .fb,body.touch-phone .sheet-wrap.floor .fb{font-size:12px;padding:7px 8px 7px 36px}
body.touch-phone .sheet-wrap .fb::before{left:6px;top:6px;width:22px;height:22px;font-size:12px}
body.touch-phone .sheet-wrap .sheet .row .btn,body.touch-phone .sheet-wrap.floor .btn{font-size:11.5px;padding:4px 10px}
body.touch-phone #stage .interact-mark .name{height:20px;font-size:10.5px;padding:0 7px;border-width:1px}
body.touch-phone #stage .interact-mark .tap{width:30px;height:30px;border-width:0}
body.touch-phone #stage .interact-mark .arc{height:34px;margin-bottom:-8px}
body.touch-phone.kim-mini .kim-chat{width:min(260px,calc(100vw - 16px));height:min(210px,calc(100vh - 108px));right:8px;bottom:58px}
body.touch-phone .sheet-wrap.floor.phone-corner .sheet.phone-dock{width:min(280px,46vw);min-height:0;max-height:min(320px,78vh)}
body.touch-tablet.help-open #stage .camera-help{top:42px;right:10px;left:auto;width:min(240px,46vw);font-size:12px;padding:8px 10px}
body.touch-phone.help-open #stage .camera-help{top:34px;right:8px;left:auto;width:min(210px,52vw);font-size:11px;padding:7px 8px;gap:6px}
body.touch-phone.help-open #stage .camera-help kbd{min-width:18px;height:18px;font-size:10px}
body.sim-mobile #stage .ins{width:min(360px,42vw);max-width:min(360px,42vw)}
body.touch-phone #stage .ins{width:min(260px,44vw);max-width:min(260px,44vw)}
body.sim-mobile .sheet-wrap.floor:not(.phone-center) .sheet{width:min(380px,44vw);max-width:min(380px,44vw);margin-left:auto;margin-right:auto}
body.touch-phone .sheet-wrap.floor:not(.phone-center) .sheet{width:min(280px,46vw);max-width:min(280px,46vw)}
body.sim-mobile .top{min-height:40px;padding:4px 8px;gap:6px}
body.sim-mobile .brand{font-size:12px}
body.sim-mobile .brand::before{width:22px;height:22px;font-size:11px;border-radius:7px}
body.sim-mobile .top .now{font-size:11px}
body.sim-mobile .top .chip{font-size:10px;padding:2px 7px}
body.sim-mobile .top .tbtn,body.sim-mobile .lsel select{padding:3px 7px !important;font-size:11px !important}
.sheet-wrap.floor.phone-center{align-items:center;justify-content:center;padding:16px}
.sheet-wrap.floor.phone-center .sheet.phone-dock{width:min(440px,48vw);min-height:0;height:min(700px,86vh);max-height:min(700px,86vh);margin:0;padding:28px 0 0;background:transparent;border:0;box-shadow:none;overflow:visible}
.sheet-wrap.floor.phone-center .phone-task{margin:0 0 8px;padding:6px 10px;border-radius:12px;background:rgba(255,255,255,.92);text-align:center;font-size:12px}
.sheet-wrap.floor.phone-center .sheet.phone-dock>.sheet-x{position:absolute;top:0;right:0;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:#111;color:#fff;font-size:22px;line-height:1;display:grid;place-items:center;text-shadow:none;box-shadow:none}
.sheet-wrap.floor.phone-center .sheet.phone-dock{display:flex;flex-direction:column;height:min(700px,86vh);max-height:min(700px,86vh);overflow:visible}
.sheet.phone-dock .dv.phone{flex:1 1 auto;height:auto;min-height:0;max-height:none;display:flex;flex-direction:column;background:#111;border:3px solid #111;border-radius:32px;padding:22px 8px 16px;box-shadow:0 22px 48px rgba(0,0,0,.4), inset 0 0 0 1px #2c2c2e;position:relative}
.sheet.phone-dock .dv.phone::before{content:"";position:absolute;top:8px;left:50%;width:74px;height:8px;border-radius:8px;background:#1c1c1e;transform:translateX(-50%)}
.sheet.phone-dock .dv.phone::after{content:"";position:absolute;bottom:6px;left:50%;width:46px;height:4px;border-radius:4px;background:#3a3a3c;transform:translateX(-50%)}
.sheet-wrap.floor.phone-center .sheet.phone-dock .dv.phone .scr{flex:1 1 auto;height:auto;min-height:0;max-height:none;display:flex;flex-direction:column;border-radius:16px;box-shadow:none;background:#fff;overflow:hidden}
.sheet.phone-dock .dv.phone .body{flex:1 1 auto;min-height:0;padding:8px 10px;gap:6px;display:flex;flex-direction:column;overflow:auto;scrollbar-width:thin;scrollbar-color:rgba(20,40,32,.28) transparent}
.sheet.phone-dock .dv.phone .body::-webkit-scrollbar{width:5px;height:5px}
.sheet.phone-dock .dv.phone .body::-webkit-scrollbar-thumb{background:rgba(20,40,32,.28);border-radius:99px}
.sheet.phone-dock .dv.phone .body::-webkit-scrollbar-track{background:transparent}
.sheet.phone-dock .dv.phone .body>.kb{margin-top:auto}
.sheet-wrap .dv .tip{margin-top:auto;padding:10px 12px;border-radius:12px;background:#fff4d4;border:1px solid #e0b03a;color:#6b4a08;font-size:13px;font-weight:650;line-height:1.45}
.sheet-wrap .dv .tip b{display:inline-block;margin-right:6px;padding:1px 7px;border-radius:999px;background:#e23d3d;color:#fff;font-size:11px;letter-spacing:.04em;vertical-align:1px}
.sheet.phone-dock .dv.phone .body h4{font-size:18px;line-height:1.35}
.sheet.phone-dock .dv.phone .p,.sheet.phone-dock .dv.phone .pe{font-size:15px;line-height:1.45}
.sheet.phone-dock .sbar{font-size:14px;padding:6px 14px 2px}
.sheet.phone-dock .abar{padding:8px 12px}
.sheet.phone-dock .abar b{font-size:17px}
.sheet.phone-dock .abar .tag2{font-size:13px;padding:3px 8px}
.sheet.phone-dock .gnb span{font-size:16px;padding:10px 14px}
.sheet.phone-dock .tbl{font-size:16px;line-height:1.4}
.sheet.phone-dock .tbl th,.sheet.phone-dock .tbl td{padding:8px 10px}
.sheet.phone-dock .kb button,.sheet.phone-dock .dv .kb button{padding:10px 12px;font-size:16px}
.sheet.phone-dock .note,.sheet.phone-dock .warn{font-size:15px;line-height:1.45;padding:10px 12px}
.sheet.phone-dock .stepper li{font-size:13px}
.sheet.phone-dock .crumb,.sheet.phone-dock .legend,.sheet.phone-dock .cal .wd{font-size:14px}
.sheet.phone-dock .fld{font-size:15px}
.sheet.phone-dock .mlist button{font-size:16px}
body.touch-phone .sheet-wrap.floor.phone-center .sheet.phone-dock{width:min(390px,78vw);height:min(330px,84vh);max-height:min(330px,84vh);margin:0}
body.touch-phone .sheet-wrap.floor.phone-center .sheet.phone-dock>.sheet-x,body.touch-tablet .sheet-wrap.floor.phone-center .sheet.phone-dock>.sheet-x{top:0;right:0;width:30px;height:30px;padding:0;border-radius:50%;font-size:18px}
body.touch-tablet .sheet-wrap.floor.phone-center .sheet.phone-dock{width:min(420px,46vw);height:min(620px,84vh);max-height:min(620px,84vh);margin:0}
body.sim-mobile.kim-mini .kim-chat{font-size:12px}

/* ==========================================================================
   한 톤으로 정리. 버튼 아래의 두꺼운 그림자는 없애고, 글꼴·크기·색을 본문 서체에 맞춘다.
   ========================================================================== */
#stage,.sheet-wrap,.sheet-wrap button,.sheet-wrap .opt,#stage .talk,#stage .ins,#stage .kim-bubble{font-family:var(--f-body)}
#stage .btn,.sheet-wrap .btn,
#stage .btn:hover,.sheet-wrap .btn:hover,
#stage .btn:active,.sheet-wrap .btn:active,
#stage .btn.pri,.sheet-wrap .btn.pri,
#stage .btn.pri:hover,.sheet-wrap .btn.pri:hover,
#stage .btn.pri:active,.sheet-wrap .btn.pri:active,
#stage .btn.hint,.sheet-wrap .btn.hint,
#stage .ins .btn,#stage .ins .btn.pri,#stage .ins .btn.hint,#stage .ins .btn:active,
.sheet-wrap .sheet .row .btn,.sheet-wrap.floor .btn,
.sheet-wrap .sheet .row .btn.pri,.sheet-wrap.floor .btn.pri,
.sheet-wrap .opt,.sheet-wrap .opt:hover,.sheet-wrap .opt:active,.sheet-wrap .opt:focus-visible,
.sheet-wrap .opt.sel,.sheet-wrap .opt.yes,.sheet-wrap .opt.no,
.sheet-wrap .kb button,.sheet-wrap .kb button:hover,.sheet-wrap .kb button:active,
.sheet-wrap .kfoot button,.sheet-wrap .keys button,.sheet-wrap .keys button:active,
.sheet-wrap .rd-b button,.sheet-wrap .cal button,.sheet-wrap .dv .kb button.pri,
.sheet-wrap .sitem,.sheet-wrap .sitem.done,.sheet-wrap .stat,.sheet-wrap .kcard .k,
.sheet-wrap .sheet-x,.sheet-wrap.floor .sheet>.sheet-x,.sheet-wrap.floor .sheet>.sheet-x:first-child:not(:has(+h3)),
.sheet-wrap .sitem .bins button,
#stage .talk .reply,.sheet.phone-dock .reply,
#stage .talk .reply:hover,.sheet.phone-dock .reply:hover,
#stage .talk .reply.go,#stage .talk .reply.yes,#stage .talk .reply.no,
.sheet.phone-dock .reply.go,.sheet.phone-dock .reply.yes,.sheet.phone-dock .reply.no,
#stage .move-pad button,#stage .drive-hud button,#stage .drive-hud button:active,
#stage .kim-launch,#stage .interact-mark .tap,#stage .camera-help kbd,
.sheet-wrap .fb.good::before,.sheet-wrap .fb.bad::before,
body.touch-phone #stage .ins .btn,
body.touch-phone .sheet-wrap .opt,body.touch-phone .sheet-wrap.floor .opt{
  box-shadow:none;text-shadow:none;transform:none}
#stage .btn:focus-visible,.sheet-wrap .btn:focus-visible,.sheet-wrap .opt:focus-visible,#stage .talk .reply:focus-visible,.sheet.phone-dock .reply:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(31,107,86,.28)}
#stage .btn,.sheet-wrap .btn,#stage .ins .btn,.sheet-wrap .sheet .row .btn,.sheet-wrap.floor .btn{border-width:1px;font-weight:600;font-size:14px}
#stage .btn.pri,.sheet-wrap .btn.pri,#stage .talk .reply.go,.sheet.phone-dock .reply.go,.sheet-wrap .dv .kb button.pri{background:var(--sim-green);border-color:var(--sim-green)}
#stage .btn.pri:hover,.sheet-wrap .btn.pri:hover{background:var(--sim-green-d)}
#stage .btn.hint,.sheet-wrap .btn.hint,#stage .drive-hud button{background:var(--sim-sun-soft);border-color:#e4d7bc;color:var(--sim-sun-ink)}
#stage .ins{border-width:1px;border-color:var(--sim-line)}
#stage .ins::before{width:40px;height:40px;margin-top:-20px;border-radius:50%;background:var(--sim-mint);box-shadow:inset 0 0 0 1.5px var(--sim-green);filter:none;animation:none}
#stage .ins[data-step]::after{background:#fff;color:var(--sim-green-dd);border:1px solid var(--sim-line);box-shadow:none;font-family:var(--f-body);font-weight:650}
#stage .ins .ko{font-size:15.5px;font-weight:600;letter-spacing:-.02em}
#stage .scene-caption .live-dot{width:7px;height:7px;border-radius:50%;clip-path:none;animation:none;background:var(--sim-green)}
.sheet-wrap.floor .sheet{border-width:1px;border-color:var(--sim-line)}
.sheet-wrap.floor .sheet>h3:first-child,.sheet-wrap.floor .sheet>.sheet-x+h3,.sheet-wrap.floor .sheet>.k:first-child+h3{background:#f6f8f7;color:var(--sim-ink);font-family:var(--f-body);font-weight:650;font-size:16.5px;letter-spacing:-.03em;box-shadow:inset 0 -1px 0 var(--sim-line)}
.sheet-wrap.floor .sheet>h3:first-child::before,.sheet-wrap.floor .sheet>.sheet-x+h3::before,.sheet-wrap.floor .sheet>.k:first-child+h3::before{background:var(--sim-green);border-radius:50%;filter:none}
.sheet-wrap.floor .sheet>.sheet-x{background:#fff;color:var(--sim-sub);border-color:var(--sim-line);text-shadow:none;font-family:var(--f-body)}
.sheet-wrap.floor .sheet>.k:first-child{background:var(--sim-mint);color:var(--sim-green-dd)!important;border-color:transparent;text-shadow:none;font-family:var(--f-body)!important;font-weight:650!important}
.sheet-wrap .opt,.sheet-wrap.floor .opt{font-size:14.5px;font-weight:550;border-width:1px;font-family:var(--f-body)}
.sheet-wrap .opt::before{font-family:var(--f-body);font-weight:650}
.sheet-wrap .stat{border:1px solid var(--sim-line)}
#stage .interact-mark{flex-direction:row;align-items:center;gap:0;padding:4px 12px 4px 4px;border-radius:999px;background:rgba(255,255,255,.96);border:1px solid rgba(255,255,255,.92);box-shadow:0 8px 22px rgba(20,40,32,.16);filter:none;transform:translate(-50%,-50%)}
#stage .interact-mark .arc{display:none}
#stage .interact-mark .name{height:auto;min-width:0;padding:0 2px 0 8px;border:0;border-radius:0;background:transparent;color:var(--sim-ink);font-size:13.5px;font-weight:650;letter-spacing:-.02em}
#stage .interact-mark .tap{width:34px;height:34px;border:0;background:var(--sim-green);box-shadow:none;animation:none}
#stage .kim-launch{border:1px solid #e4eeea;box-shadow:0 8px 20px rgba(20,40,32,.16)}
body.kim-mini:not(.kim-collapsed) #stage .kim-launch{box-shadow:0 0 0 2px var(--sim-green),0 8px 20px rgba(20,40,32,.16)}
#stage .kim-bubble{border:1px solid #e4eeea;font-weight:550;box-shadow:0 10px 24px rgba(20,40,32,.12)}
body.touch-phone #stage .interact-mark{padding:3px 8px 3px 3px;filter:none}
body.touch-phone #stage .interact-mark .name{height:auto;font-size:11px;padding:0 2px 0 6px;background:transparent;color:var(--sim-ink);border:0}
body.touch-phone #stage .interact-mark .tap{width:26px;height:26px;border:0;box-shadow:none;animation:none}
body.touch-phone #stage .interact-mark .arc{display:none}

/* 보기가 많은 퀴즈: 줄을 납작하게 누르지 않는다. 화면이 짧으면 보기만 스크롤된다. */
body:not(.touch-phone) .sheet-wrap.floor .sheet:has(.opt:nth-child(5)):not(.phone-dock){
  max-height:min(90vh,840px);overflow:hidden;gap:12px;padding-bottom:18px}
body:not(.touch-phone) .sheet-wrap.floor .sheet:has(.opt:nth-child(5)):not(.phone-dock)>h3,
body:not(.touch-phone) .sheet-wrap.floor .sheet:has(.opt:nth-child(5)):not(.phone-dock)>.sheet-x+h3,
body:not(.touch-phone) .sheet-wrap.floor .sheet:has(.opt:nth-child(5)):not(.phone-dock)>.k:first-child+h3{
  flex:none;min-height:58px;padding-top:14px;padding-bottom:14px;font-size:18px}
body:not(.touch-phone) .sheet-wrap.floor .sheet:has(.opt:nth-child(5)):not(.phone-dock) .sub{
  flex:none;padding:6px 14px;font-size:13px}
body:not(.touch-phone) .sheet-wrap.floor .sheet:has(.opt:nth-child(5)):not(.phone-dock) .opts{
  gap:10px;flex:1 1 auto;min-height:0;overflow:auto}
body:not(.touch-phone) .sheet-wrap.floor .sheet:has(.opt:nth-child(5)):not(.phone-dock) .opt{
  flex:none;min-height:56px;max-height:none;padding:14px 18px;border-radius:16px;line-height:1.45;column-gap:12px;align-items:center}
body:not(.touch-phone) .sheet-wrap.floor .sheet:has(.opt:nth-child(5)):not(.phone-dock) .opt::before{
  width:32px;height:32px;border-radius:50%;font-size:14px}
body:not(.touch-phone) .sheet-wrap.floor .sheet:has(.opt:nth-child(5)):not(.phone-dock) .row,
body:not(.touch-phone) .sheet-wrap.floor .sheet:has(.opt:nth-child(5)):not(.phone-dock) .fb,
body:not(.touch-phone) .sheet-wrap.floor .sheet:has(.opt:nth-child(5)):not(.phone-dock) .admin-edit{flex:none}
body:not(.touch-phone) .sheet-wrap.floor .sheet:has(.opt:nth-child(5)):not(.phone-dock) .row{padding-top:4px}
/* 여러 개 고르기: 제목과 보기 왼쪽의 파란 점은 뺀다. 체크가 선택을 보여 준다. */
.sheet-wrap.floor .sheet:has(.opt .mk)>h3:first-child::before,
.sheet-wrap.floor .sheet:has(.opt .mk)>.sheet-x+h3::before,
.sheet-wrap.floor .sheet:has(.opt .mk)>.k:first-child+h3::before{content:none;display:none}
.sheet-wrap.floor .sheet:has(.opt .mk)>h3:first-child,
.sheet-wrap.floor .sheet:has(.opt .mk)>.sheet-x+h3,
.sheet-wrap.floor .sheet:has(.opt .mk)>.k:first-child+h3{padding-left:22px}
.sheet-wrap .opt:has(.mk){grid-template-columns:minmax(0,1fr);column-gap:0}
.sheet-wrap .opt:has(.mk)>*{grid-column:1}
.sheet-wrap .opt:has(.mk)::before,
.sheet-wrap .opt:has(.mk).yes::before,
.sheet-wrap .opt:has(.mk).no::before,
.sheet-wrap .opt:has(.mk).sel::before{content:none;display:none}

/* 기기 화면의 정답 안내는 guide-pick 버튼에만 둔다. 다른 버튼의 포커스 테두리는 같은 금색이라 오답도 정답처럼 보인다. */
.sheet-wrap .kb button:focus-visible:not(.guide-pick),
.sheet-wrap .mlist button:focus-visible:not(.guide-pick),
.sheet-wrap .rd-b button:focus-visible:not(.guide-pick),
.sheet-wrap .kfoot button:focus-visible,
.sheet-wrap .keys button:focus-visible:not(.pin-ready),
.sheet:focus,.sheet:focus-visible{outline:none}
body.guide-assist .sheet-wrap .kb button.guide-pick,
body.guide-assist .sheet-wrap .mlist button.guide-pick,
body.guide-assist .sheet-wrap .rd-b button.guide-pick{outline-offset:2px}
/* 비밀번호 입력기: 네 자리를 다 누르면 확인 버튼에 테두리 강조가 생긴다. (위의 box-shadow:none 정리에 걸리지 않도록 outline 으로 그린다) */
.sheet-wrap .keys button.pin-ready{position:relative;z-index:1;border-color:#f0a800;outline:3px solid #ffc628;outline-offset:1px;animation:pinReadyRim 1.3s ease-in-out infinite}
@keyframes pinReadyRim{0%,100%{outline-color:#ffc628;outline-offset:1px}50%{outline-color:rgba(255,198,40,.4);outline-offset:3px}}
@media (prefers-reduced-motion:reduce){.sheet-wrap .keys button.pin-ready{animation:none}}
/* 관리자가 문제 · 보기 · 설명에 넣은 줄바꿈 */
.sheet-wrap .nl,#stage .talk .nl{display:inline-block;min-width:0;max-width:100%;text-align:inherit}
#stage .ins .ko{white-space:pre-line}

/* ---------- 레벨 도전 퀴즈 모달 (시안: 레벨도전-1차시안) ---------- */
.sheet-wrap:has(.sheet.sq){background:rgba(0,0,0,.5)}
.sheet-wrap .sheet.study.sq{max-width:700px;max-height:min(100%,calc(100vh - 120px));padding:0;gap:0;border-radius:28px;overflow:hidden;background:#fff;box-shadow:0 20px 60px rgba(0,0,0,.25);color:#2B2F33}
.sq .sq-hd{display:flex;align-items:center;gap:12px;flex:none;height:82px;padding:0 30px;border-bottom:1px solid #F2F3F4}
.sq .sq-badge{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#00AACC;color:#fff;font:700 16px/1 Pretendard,sans-serif}
.sq .sq-hd b{flex:1;min-width:0;font-size:20px;font-weight:500;letter-spacing:-.02em;color:#2B2F33}
.sheet-wrap .sheet.study.sq>.sq-hd>.study-x{position:static;flex:none;width:32px;height:32px;margin:0;border:0;border-radius:8px;background:none;box-shadow:none;color:#2B2F33}
.sheet-wrap .sheet.study.sq>.sq-hd>.study-x:hover{background:#F2F3F4}
.sq .sq-hd .study-x svg{width:24px;height:24px}
.sq .sq-top{flex:none;padding:18px 30px 0;display:flex;flex-direction:column;gap:14px;background:#fff}
.sq .sq-prog{display:flex;align-items:center;gap:12px}
.sq .sq-prog span{flex:none;font-size:15px;font-weight:500;color:#00AACC;white-space:nowrap}
.sq .sq-prog i{flex:1;height:6px;border-radius:3px;background:#D6DADB;overflow:hidden}
.sq .sq-prog u{display:block;height:100%;border-radius:3px;background:#00AACC;text-decoration:none;transition:width .3s}
.sq .sq-top h3{margin:0;font-size:22px;font-weight:500;line-height:1.4;letter-spacing:-.02em;color:#2B2F33}
.sq .sq-main{flex:1 1 auto;min-height:0;overflow-y:auto;padding:18px 30px 24px;display:flex;flex-direction:column;gap:20px}
.sheet-wrap .sq .opts.pics{display:grid;grid-template-columns:1fr 1fr;gap:20px;counter-reset:none}
.sheet-wrap .sq .opt.pic{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;overflow:hidden;border:2px solid #E4E6E8;border-radius:16px;background:#F4F4F4;box-shadow:none;transform:none;font-weight:400;color:#2B2F33;text-align:left}
.sheet-wrap .sq .opt.pic::before{content:none;display:none}
.sheet-wrap .sq .opt.pic:hover{transform:none;box-shadow:none;border-color:#00AACC;background:#F4F4F4}
.sheet-wrap .sq .opt.pic .art{height:196px;border-radius:0;background:#e7edf0}
.sheet-wrap .sq .opt.pic .art:empty{display:none}
.sq .sq-foot{display:flex;align-items:center;gap:12px;min-height:58px;padding:0 16px}
.sq .sq-foot .mk{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#00AACC;color:#fff;font:600 14px/1 Pretendard,sans-serif}
.sq .sq-foot .cap{font-size:16px;line-height:1.35;letter-spacing:-.02em}
.sheet-wrap .sq .opt.pic.yes{border-color:#00AACC;background:#00AACC;color:#fff}
.sheet-wrap .sq .opt.pic.no{border-color:#ED7789;background:#ED7789;color:#fff}
.sheet-wrap .sq .opt.pic.yes .mk,.sheet-wrap .sq .opt.pic.no .mk{position:relative;background:#fff;font-size:0}
.sheet-wrap .sq .opt.pic.yes .mk::after{content:"";width:12px;height:12px;border-radius:50%;border:3px solid #00AACC;box-sizing:border-box}
.sheet-wrap .sq .opt.pic.no .mk::after{content:"¹5";font-size:15px;font-weight:700;color:#ED7789;line-height:1}
.sq .opt.pic:disabled{opacity:1}
.sq .fb{margin:0;padding:16px 20px;border-radius:16px;font-size:15px;line-height:1.6;letter-spacing:-.02em;color:#2B2F33}
.sq .fb.good{background:#EBF8FB;border:1px solid #9BDDEB}
.sq .fb.bad{background:#FFF0F2;border:1px solid #F7BCC6;color:#2B2F33}
.sq .fb>b:first-child{display:inline-block;margin:0 0 8px;padding:3px 10px;border-radius:999px;font-size:13px;font-weight:500;line-height:1.4}
.sq .fb.good>b:first-child{background:#D2F0F7;color:#0089A6}
.sq .fb.bad>b:first-child{background:#FFD9DF;color:#E0506A}
.sq .fb.bad>b+p:not(.why-note){display:none}
.sq .fb ul.why{margin:0}
.sq .fb ul.why li b{display:block;font-weight:600;margin-bottom:2px}
.sq .fb .why-note{margin-top:4px}
.sq .sq-ft{flex:none;padding:0 30px 30px;background:#fff}
.sq .sq-next{display:block;width:100%;height:52px;border:0;border-radius:12px;background:#00AACC;color:#fff;font:500 18px Pretendard,sans-serif;letter-spacing:-.02em;cursor:pointer}
.sq .sq-next:hover{background:#0098b8}
@media (max-width:640px){
  .sheet-wrap .sheet.study.sq{max-height:calc(100vh - 32px);border-radius:20px}
  .sq .sq-hd{height:64px;padding:0 20px}.sq .sq-hd b{font-size:17px}
  .sq .sq-top{padding:14px 20px 0}.sq .sq-top h3{font-size:19px}
  .sq .sq-main{padding:14px 20px 18px}.sq .sq-ft{padding:0 20px 20px}
  .sheet-wrap .sq .opts.pics{grid-template-columns:1fr;gap:14px}
  .sheet-wrap .sq .opt.pic .art{height:170px}
}
.sq .sq-top h3::before,.sq .sq-top h3::after,.sheet-wrap .sq .fb::before,.sheet-wrap .sq .fb::after{content:none;display:none}
.sq .fb>b:first-child{display:block;width:fit-content}
.sheet-wrap .sq .opt.pic.yes .mk::after,.sheet-wrap .sq .opt.pic.no .mk::after{position:absolute;inset:0;margin:auto;display:grid;place-items:center}
.sheet-wrap .sq .opt.pic.yes .mk::after{width:14px;height:14px}
.sheet-wrap .sq .opt.pic.no .mk::after{content:"";width:14px;height:14px;font-size:0;background:linear-gradient(45deg,transparent 43%,#ED7789 43%,#ED7789 57%,transparent 57%),linear-gradient(-45deg,transparent 43%,#ED7789 43%,#ED7789 57%,transparent 57%)}
body.home-view #app > .sheet-wrap:has(.sheet.sq){top:0;z-index:80;padding:60px 12px}
body.home-view #app > .sheet-wrap > .sheet.sq{max-height:100%;overflow:hidden}
body.home-view #app > .sheet-wrap > .sheet.sq > .sq-main{flex:1 1 auto;flex-shrink:1;min-height:0;overflow-y:auto}
body.home-view #app > .sheet-wrap > .sheet.sq::-webkit-scrollbar{display:none}
.sq .sq-main::-webkit-scrollbar{width:6px}.sq .sq-main::-webkit-scrollbar-thumb{background:#D6DADB;border-radius:3px}
@media (max-width:640px){body.home-view #app > .sheet-wrap:has(.sheet.sq){padding:16px 12px}}
.sq .sq-main>*{flex-shrink:0}
/* ---- 퀴즈 모달 수정 2차 ---- */
.sheet-wrap .sheet.study.sq,.sheet-wrap .sheet.study.sq *{font-family:Pretendard,'Pretendard Variable',-apple-system,'Malgun Gothic',sans-serif}
.sq .sq-badge{background:linear-gradient(135deg,#1498E9,#00AACC)}
.sq .sq-main{padding:0 0 30px;gap:0}
.sq .sq-top{padding:10px 30px 0 30px}
.sheet-wrap .sq .opts.pics{margin:18px 30px 24px}
.sq .sq-main>.fb{margin:0 30px 24px}
.sq .sq-main>.fb:last-child{margin-bottom:0}
.sheet-wrap .sq .opt.pic{height:255px}
.sheet-wrap .sq .opt.pic .art{flex:1 1 0;min-height:0;height:auto}
.sq .sq-foot{flex:none}
.sq .sq-ft{position:relative;z-index:2;margin-top:-30px;padding:30px;background:linear-gradient(to bottom,rgba(255,255,255,0),#fff 30px);pointer-events:none}
.sq .sq-ft .sq-next{pointer-events:auto}
@media (max-width:640px){
  .sq .sq-top{padding:10px 20px 0}
  .sheet-wrap .sq .opts.pics{margin:14px 20px 20px}.sq .sq-main>.fb{margin:0 20px 20px}
  .sq .sq-ft{padding:20px}
  .sheet-wrap .sq .opt.pic{height:auto}.sheet-wrap .sq .opt.pic .art{flex:none;height:170px}
}

/* 학습 팝업: 해설 위치, 선택 후 확인, 닫기 크기 */
.sheet-wrap .sheet.study.sq>.sq-hd>.study-x{width:44px;height:44px;margin-right:-8px;border-radius:12px}
.sq .sq-hd .sq-save{flex:none;font-size:14px;line-height:1.3;color:#5B6368;white-space:nowrap}
.sq .sq-top>.fb{margin:6px 0 0;padding:18px 20px;font-size:16px;line-height:1.65;animation:sqFb .24s cubic-bezier(.16,1,.3,1)}
.sq .fb>b:first-child{font-size:14px}
.sq .sq-top>.fb .why-note{margin-top:6px}
.sheet-wrap .sq .opt.pic{transition:border-color .15s,box-shadow .15s}
.sheet-wrap .sq .opt.pic.pick{border-color:#00AACC;box-shadow:0 0 0 3px rgba(0,170,204,.28)}
.sheet-wrap .sq .opt.pic:focus-visible{outline:3px solid #00AACC;outline-offset:2px}
.sq .sq-next:disabled{background:#E4E6E8;color:#4A5156;cursor:not-allowed}
.sq .sq-next:focus-visible{outline:3px solid #2B2F33;outline-offset:3px}
@keyframes sqFb{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media (max-width:640px){
  .sq .sq-hd .sq-save{display:none}
  .sheet-wrap .sq .opts.pics{grid-template-columns:1fr 1fr;gap:10px}
  .sheet-wrap .sq .opt.pic .art{height:112px}
  .sq .sq-foot{min-height:52px;padding:0 10px;gap:8px}
  .sq .sq-foot .cap{font-size:15px}
}
@media (prefers-reduced-motion:reduce){
  .sq .sq-prog u,.sheet-wrap .sq .opt.pic{transition:none}
  .sq .sq-top>.fb{animation:none}
}

/* 학습 팝업: 문제 풀 때 스크롤 없이 한 화면에 맞추기 */
.sq .sq-hd{height:68px}
.sq .sq-main{display:flex;flex-direction:column}
.sheet-wrap .sq .opts.pics{flex:1 1 auto;min-height:0;max-height:540px;grid-auto-rows:minmax(0,1fr);margin:14px 30px 20px;gap:16px}
.sheet-wrap .sq .opt.pic{height:auto;min-height:0}
.sheet-wrap .sq .opt.pic .art{flex:1 1 0;min-height:56px;height:auto}
.sheet-wrap .sq .opt.pic .art img,.sheet-wrap .sq .opt.pic .art svg{width:100%;height:100%;object-fit:cover;display:block}
/* 사진 없이 글만 있는 보기: 왼쪽 정렬, 글 높이만큼 */
.sheet-wrap .sq .opts.pics.txt{flex:0 0 auto;max-height:none;grid-auto-rows:auto}
.sheet-wrap .sq .opt.pic.nopic{justify-content:center;background:#fff}
.sheet-wrap .sq .opt.pic.nopic .sq-foot{min-height:64px;padding:14px 18px;justify-content:flex-start;text-align:left}
.sheet-wrap .sq .opt.pic.nopic .cap{flex:1;text-align:left}
.sheet-wrap .sq .opt.pic.nopic:hover{background:#F4FBFD}
.sheet-wrap .sq .opt.pic.nopic.yes{background:#00AACC}
.sheet-wrap .sq .opt.pic.nopic.no{background:#ED7789}
.sheet-wrap .sq .opts.pics.txt{grid-template-columns:1fr}
@media (max-width:640px){
  .sq .sq-hd{height:56px}
  .sheet-wrap .sq .opts.pics{margin:10px 20px 16px;gap:10px;max-height:420px}
  .sheet-wrap .sq .opt.pic .art{flex:1 1 0;min-height:48px;height:auto}
  .sheet-wrap .sq .opt.pic.nopic .sq-foot{min-height:56px;padding:12px 14px}
}

/* 정정: 사진은 원래 크기로 두고, 팝업 바깥 여백과 머리글을 줄여 문제 풀 때 스크롤이 없게 함. 해설이 나오면 스크롤 */
body.home-view #app > .sheet-wrap:has(.sheet.sq){padding:20px 12px}
.sheet-wrap .sheet.study.sq{max-height:calc(100vh - 40px)}
.sq .sq-hd{height:60px}
.sheet-wrap .sq .opts.pics{flex:0 0 auto;max-height:none;grid-auto-rows:auto;margin:14px 30px 20px}
.sheet-wrap .sq .opt.pic{height:255px}
.sheet-wrap .sq .opt.pic .art{flex:1 1 0;min-height:0;height:auto}
.sheet-wrap .sq .opts.pics.txt{grid-auto-rows:auto}
.sheet-wrap .sq .opt.pic.nopic{height:auto}
@media (max-height:820px){.sheet-wrap .sq .opt.pic{height:215px}.sheet-wrap .sq .opt.pic.nopic{height:auto}}
@media (max-width:640px){
  .sq .sq-hd{height:52px}
  .sheet-wrap .sq .opts.pics{margin:10px 20px 16px;gap:10px;max-height:none}
  .sheet-wrap .sq .opt.pic{height:auto}
  .sheet-wrap .sq .opt.pic .art{flex:none;height:140px;min-height:0}
}

/* 파트 만점 팝업 (시안: L05 문제 모두 맞혔을 때) */
.sheet-wrap .sheet.study.sq.sqw{max-width:600px;max-height:calc(100vh - 40px);overflow:hidden}
.sqw .win-main{flex:1 1 auto;min-height:0;overflow-y:auto;padding:0 30px 8px;display:flex;flex-direction:column;align-items:center;text-align:center}
.sqw .win-art{position:relative;flex:none;width:100%;height:250px;display:grid;place-items:center}
.sqw .win-art img{height:236px;width:auto;object-fit:contain;animation:winPop .55s cubic-bezier(.16,1,.3,1) both}
.sqw .win-art img{position:relative;z-index:2}
.sqw .win-art i{position:absolute;left:50%;top:50%;z-index:1;pointer-events:none;opacity:0;animation:winConfetti var(--t) linear var(--d) both}
.sqw .win-art i.bar{width:16px;height:8px;border-radius:1px;background:var(--c)}
.sqw .win-art i.para{width:15px;height:8px;background:var(--c);clip-path:polygon(24% 0,100% 0,76% 100%,0 100%)}
.sqw .win-art i.sq{width:9px;height:9px;border-radius:1px;background:var(--c)}
.sqw .win-lv{display:inline-flex;align-items:center;gap:8px;margin:2px 0 0;padding:6px 14px 6px 12px;border-radius:999px;background:rgba(1,56,122,.08);color:#01387A}
.sqw .win-lv b{font-size:15px;font-weight:500;letter-spacing:-.02em}
.sqw .win-st{width:24px;height:18px}
.sqw .win-st rect{fill:#00AACC}
.sqw h3{margin:12px 0 0;font-size:24px;font-weight:500;line-height:1.35;letter-spacing:-.02em;color:#2B2F33;text-wrap:balance}
.sqw .win-sub{margin:10px 0 0;font-size:15px;line-height:1.5;color:#5B6368}
.sqw .win-sum{align-self:stretch;margin-top:22px;padding-top:20px;border-top:1px solid #E4E6E8;text-align:left}
.sqw .win-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0}
.sqw .win-row b{font-size:20px;font-weight:500;letter-spacing:-.02em;color:#2B2F33}
.sqw .win-row span{font-size:15px;color:#5B6368}
.sqw .win-row em{font-style:normal;font-weight:500;color:#00AACC}
.sqw .win-note{margin:6px 0 0;font-size:15px;line-height:1.5;color:#5B6368}
.sqw .win-pips{display:flex;gap:10px;list-style:none;margin:16px 0 0;padding:0}
.sqw .win-pips li{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#fff;border:1px solid #D6DADB;color:#6B7480;font-size:18px;font-weight:500;animation:winPip .4s cubic-bezier(.16,1,.3,1) both;animation-delay:calc(.8s + var(--i)*.07s)}
.sqw .win-pips li.on{background:#00AACC;border-color:#00AACC;color:#fff}
.sqw .win-act{flex:none;display:flex;flex-direction:column;gap:4px;padding:18px 30px 22px}
.sqw .win-act .sq-next{height:56px;border-radius:10px}
.sqw .win-txt{height:44px;border:0;background:none;color:#6B7480;font:400 17px Pretendard,sans-serif;cursor:pointer;border-radius:10px}
.sqw .win-txt:hover{background:#F2F3F4}
.sqw .win-txt:focus-visible{outline:3px solid #2B2F33;outline-offset:2px}
@keyframes winPop{from{opacity:0;transform:translateY(14px) scale(.92)}to{opacity:1;transform:none}}
@keyframes winRise{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes winPip{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:none}}
@keyframes winConfetti{
  0%{opacity:0;transform:translate(calc(-50% + var(--x0)),calc(-50% + var(--y0))) scale(.5) rotate(0);animation-timing-function:cubic-bezier(.2,.6,.35,1)}
  8%{opacity:1}
  24%{opacity:1;transform:translate(calc(-50% + var(--bx)),calc(-50% + var(--by))) scale(1) rotate(calc(var(--r)*.25));animation-timing-function:cubic-bezier(.3,0,.6,.7)}
  55%{opacity:1;transform:translate(calc(-50% + var(--mx)),calc(-50% + var(--my))) scale(1) rotate(calc(var(--r)*.6));animation-timing-function:cubic-bezier(.3,.3,.6,1)}
  100%{opacity:0;transform:translate(calc(-50% + var(--ex)),calc(-50% + var(--ey))) scale(.9) rotate(var(--r))}
}
@media (max-width:640px){
  .sqw .win-main{padding:0 20px 6px}
  .sqw .win-art{height:190px}.sqw .win-art img{height:178px}
  .sqw h3{font-size:21px}.sqw .win-row b{font-size:18px}
  .sqw .win-pips{gap:6px}.sqw .win-pips li{width:36px;height:36px;font-size:16px}
  .sqw .win-act{padding:14px 20px 18px}
}
@media (prefers-reduced-motion:reduce){.sqw .win-art img,.sqw .win-pips li{animation:none}}

.sqw h3::before,.sqw h3::after{content:none;display:none}
.sheet-wrap .sheet.sq.sqw h3{color:#2B2F33;font-weight:500;font-size:24px}
@media (max-width:640px){.sheet-wrap .sheet.sq.sqw h3{font-size:21px}}

/* 만점 팝업: A~F 동그라미는 메인 배지와 같은 모양, 닫기 X는 네모 안 정중앙 */
.sqw .win-pips{gap:8px}
.sqw .win-pips li{width:42px;height:42px;box-sizing:border-box;border:1.5px dashed #b4bac1;background:transparent;color:#5B6472;font-size:18px;font-weight:600}
.sqw .win-pips li.on{background:linear-gradient(135deg,#1498E9,#00AACC);border:0;color:#fff}
@media (max-width:640px){.sqw .win-pips{gap:4px}.sqw .win-pips li{width:34px;height:34px;font-size:16px}}
.sheet-wrap .sheet.study.sq>.sq-hd>.study-x{display:grid;place-items:center;padding:0;line-height:0}
.sheet-wrap .sheet.study.sq>.sq-hd>.study-x svg{display:block;width:24px;height:24px;margin:0}
.sqw .win-sum{margin-top:32px}
@media (max-width:640px){.sqw .win-sum{margin-top:26px}}

/* 만점 팝업 컨페티: 팝업 전체에 위에서 내리는 비 (시안 영상 115522) */
.sheet-wrap .sheet.study.sq.sqw{position:relative}
.sqw .win-rain{position:absolute;inset:0;z-index:5;overflow:hidden;pointer-events:none;border-radius:inherit}
.sqw .win-rain i{position:absolute;top:0;display:block;border-radius:1px;background:var(--c);opacity:var(--o);will-change:transform;animation:winRain var(--t) linear var(--d) infinite}
@keyframes winRain{
  0%{transform:translate3d(0,-24px,0) rotateZ(0) rotateX(0)}
  25%{transform:translate3d(var(--sw),calc(var(--H)*.25),0) rotateZ(calc(var(--rz)*.25)) rotateX(calc(var(--rx)*.25))}
  50%{transform:translate3d(0,calc(var(--H)*.5),0) rotateZ(calc(var(--rz)*.5)) rotateX(calc(var(--rx)*.5))}
  75%{transform:translate3d(calc(var(--sw)*-1),calc(var(--H)*.75),0) rotateZ(calc(var(--rz)*.75)) rotateX(calc(var(--rx)*.75))}
  100%{transform:translate3d(0,calc(var(--H) + 24px),0) rotateZ(var(--rz)) rotateX(var(--rx))}
}
@media (prefers-reduced-motion:reduce){.sqw .win-rain{display:none}}

/* 퀴즈 보기 표시: O와 X의 선 굵기를 같게(2.5px) */
.sheet-wrap .sq .opt.pic.yes .mk::after{width:14px;height:14px;border:0;border-radius:0;background:radial-gradient(circle closest-side,transparent 4.5px,#00AACC 4.5px 7px,transparent 7px)}
.sheet-wrap .sq .opt.pic.no .mk::after{width:14px;height:14px;background:linear-gradient(45deg,transparent 43.7%,#ED7789 43.7%,#ED7789 56.3%,transparent 56.3%),linear-gradient(-45deg,transparent 43.7%,#ED7789 43.7%,#ED7789 56.3%,transparent 56.3%)}
/* 보기 표시: 동그라미 마커, O는 부드러운 2.5px 고리 */
.sq .sq-foot .mk{border-radius:50%}
.sheet-wrap .sq .opt.pic.yes .mk::after{width:16px;height:16px;border:0;border-radius:0;background:radial-gradient(circle closest-side,transparent 4.9px,#00AACC 5.4px,#00AACC 7.4px,transparent 7.9px)}
.sheet-wrap .sq .opt.pic.no .mk::after{width:14px;height:14px}

/* 정답 O 아이콘: 지정 이미지 사용 */
.sheet-wrap .sq .opt.pic.yes .mk::after{width:24px;height:24px;background:url("assets/home-v2/icon-o.png") center/contain no-repeat}

/* 난이도 선택 팝업 (퀴즈 팝업과 같은 머리글·색) */
.sheet-wrap .sheet.study.sq.sqp{max-width:560px;max-height:calc(100vh - 40px)}
.sqp .lvp-main{flex:1 1 auto;min-height:0;overflow-y:auto;padding:26px 30px 30px}
.sqp .lvp-main h3{margin:0;font-size:24px;font-weight:500;line-height:1.35;letter-spacing:-.02em;color:#2B2F33}
.sqp .lvp-main h3::before,.sqp .lvp-main h3::after{content:none;display:none}
.sqp .lvp-lead{margin:8px 0 0;font-size:15px;line-height:1.55;color:#5B6368}
.sqp .lvp-list{display:flex;flex-direction:column;gap:12px;margin-top:22px}
.sheet-wrap .sqp .lvp{display:flex;align-items:center;gap:16px;width:100%;min-height:84px;padding:16px 20px;border:1.5px solid #E4E6E8;border-radius:16px;background:#fff;color:#2B2F33;text-align:left;font-weight:400;cursor:pointer;box-shadow:none;transform:none;transition:border-color .15s,background-color .15s}
.sheet-wrap .sqp .lvp:hover{border-color:#00AACC;background:#F4FBFD}
.sheet-wrap .sqp .lvp:focus-visible{outline:3px solid #00AACC;outline-offset:2px}
.sheet-wrap .sqp .lvp:disabled{opacity:.6;cursor:default}
.sqp .lvp::after{content:"";flex:none;width:9px;height:9px;margin-right:4px;border-top:2px solid #8A9096;border-right:2px solid #8A9096;transform:rotate(45deg)}
.sqp .lvp-ic{flex:none;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:rgba(1,56,122,.08)}
.sqp .lvp-ic .on{fill:#00AACC}.sqp .lvp-ic .off{fill:#C9CED2}
.sqp .lvp-t{flex:1;min-width:0}
.sqp .lvp-t b{display:block;font-size:18px;font-weight:500;color:#2B2F33}
.sqp .lvp-t span{display:block;margin-top:4px;font-size:14px;line-height:1.45;color:#5B6368}
@media (max-width:640px){.sqp .lvp-main{padding:20px 20px 24px}.sqp .lvp-main h3{font-size:21px}.sheet-wrap .sqp .lvp{padding:14px 16px;min-height:76px}}
.sqp .lvp-ic{font-size:18px;font-weight:600;color:#01387A;background:rgba(0,170,204,.14)}
.sqp .lvp-ic.lv-mid{background:rgba(0,170,204,.32)}
.sqp .lvp-ic.lv-high{background:linear-gradient(135deg,#1498E9,#00AACC);color:#fff}

/* 로그인 · 회원가입 팝업 (시안: 로그인-1차시안) */
.sheet-wrap .sheet.study.sq.sqa{display:flex;padding:20px 30px;max-height:calc(100vh - 24px);overflow:auto;font-family:Pretendard,sans-serif}
.sheet-wrap .sheet.study.sq.sqa-login{flex-direction:row;gap:30px;width:min(800px,calc(100vw - 24px));max-width:800px;min-height:540px;padding:20px 30px 20px 20px}
.sheet-wrap .sheet.study.sq.sqa-signup{flex-direction:row;gap:30px;width:min(800px,calc(100vw - 24px));max-width:800px;padding:20px 30px 20px 20px}
.sqa-signup .sqa-photo{height:auto;align-self:stretch;min-height:500px}
.sqa .sqa-photo{flex:none;width:387px;height:500px;border-radius:20px;overflow:hidden;background:#d9d9d9}
.sqa .sqa-photo img{display:block;width:100%;height:100%;object-fit:cover}
.sqa .sqa-col{flex:1;min-width:0;display:flex;flex-direction:column;min-height:500px}
.sqa-signup .sqa-col{min-height:0}
.sqa .sqa-head{display:flex;align-items:flex-start;padding:16px 0 15px;border-bottom:1px solid #E4E6E8}
.sqa .sqa-head h3{margin:0;font-size:22px;font-weight:500;line-height:30px;color:#41454A}
.sqa .sqa-head h3::before,.sqa .sqa-head h3::after{content:none;display:none}
.sheet-wrap .sheet.study.sq.sqa .study-x{position:absolute;top:20px;right:20px;width:44px;height:44px;margin:0;padding:0;display:grid;place-items:center;border:0;border-radius:10px;background:none;box-shadow:none;color:#41454A;line-height:0;cursor:pointer}
.sheet-wrap .sheet.study.sq.sqa .study-x:hover{background:#F2F3F4}
.sqa .auth-tabs{display:flex;gap:0;height:44px;margin-top:19px;padding:3px;border-radius:12px;background:#E4E6E8}
.sheet-wrap .sqa .auth-tabs button{flex:1;height:100%;border:0;border-radius:9px;background:transparent;color:#898E91;font:400 16px Pretendard,sans-serif;cursor:pointer;box-shadow:none}
.sheet-wrap .sqa .auth-tabs button.on{background:#fff;color:#41454A}
.sheet-wrap .sqa .auth-tabs button:focus-visible{outline:3px solid #00AACC;outline-offset:1px}
.sqa .auth-form{display:flex;flex-direction:column;gap:8px;margin-top:19px}
.sqa .af{display:flex;flex-direction:column;gap:7px}
.sqa .af span{font-size:14px;line-height:20px;font-weight:400;color:#898E91}
.sheet-wrap .sqa .auth-form input{height:52px;padding:0 16px;border:1px solid #D6DADB;border-radius:12px;background:#fff;color:#2B2F33;font:400 16px Pretendard,sans-serif;box-shadow:none}
.sheet-wrap .sqa .auth-form input:focus{outline:0;border-color:#00AACC;box-shadow:0 0 0 3px rgba(0,170,204,.2)}
.sqa .auth-note{margin:-5px 0 2px;font-size:14px;line-height:20px;color:#C3C5C6}
.sqa .auth-form .fb{margin:4px 0 0;padding:12px 16px;font-size:14px}
.sheet-wrap .sqa .auth-form .sq-next{height:58px;margin-top:22px;border:0;border-radius:12px;background:#00AACC;color:#fff;font:500 17px Pretendard,sans-serif;cursor:pointer}
.sheet-wrap .sqa .auth-form .sq-next:hover{background:#0098b8}
.sqa .sqa-alt{margin:8px 0 0;text-align:center;font-size:14px;line-height:20px;color:#898E91}
.sheet-wrap .sqa .sqa-alt button{border:0;background:none;padding:0;margin-left:6px;color:#013879;font:600 14px Pretendard,sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer;box-shadow:none}
.sqa .sqa-brand{margin-top:auto;padding-top:36px;padding-bottom:10px;display:flex;justify-content:flex-end;align-items:center;gap:4px}
.sqa .sqa-brand img{display:block;height:22px;width:auto}
.sqa .sqa-brand span{font-size:9px;font-weight:700;color:#013879;line-height:1}
@media (max-width:820px){
  .sheet-wrap .sheet.study.sq.sqa-login,.sheet-wrap .sheet.study.sq.sqa-signup{flex-direction:column;width:min(440px,calc(100vw - 24px));padding:20px 30px;min-height:0}
  .sqa .sqa-photo{display:none}
  .sqa .sqa-col{min-height:0}
}
@media (max-width:480px){.sheet-wrap .sheet.study.sq.sqa{padding:20px}}

.sheet-wrap .sheet.study.sq.sqa{position:relative}
.sheet-wrap .sheet.sqa-signup .sqa-photo{position:relative;height:auto;align-self:stretch;min-height:500px}
.sheet-wrap .sheet.sqa-signup .sqa-photo img{position:absolute;inset:0}
@media (max-width:820px){.sheet-wrap .sheet.sqa-signup .sqa-photo{display:none}}

/* 로그인·회원가입 높이 통일: 이름·학번, 비밀번호·확인은 가로로 나란히 */
.sheet-wrap .sheet.study.sq.sqa-login,.sheet-wrap .sheet.study.sq.sqa-signup{min-height:0}
.sqa .sqa-photo{position:relative;height:auto;align-self:stretch;min-height:500px}
.sqa .sqa-photo img{position:absolute;inset:0}
.sqa .auth-form{gap:8px}
.sqa .af-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.sheet-wrap .sqa .auth-form input{height:48px;min-width:0}
.sqa .af{gap:5px}
.sqa .auth-note{margin:-2px 0 0}
.sheet-wrap .sqa .auth-form .sq-next{margin-top:14px}
.sqa .sqa-brand{padding-top:20px}
.sqa .sqa-col{min-height:571px}
@media (max-width:820px){.sqa .sqa-col{min-height:0}.sqa .sqa-photo{display:none}}
.sqa-login .auth-form{margin-top:39px}
.sqa .sqa-brand img{height:22px}

.sqa-signup .sqa-photo img{object-position:50% 50%}

/* 크리틱 반영 ------------------------------------------------ */
/* F5·F10: 팝업 공통 X 굵기와 포커스 (영남대 하늘색) */
.sheet-wrap .sheet.sq .study-x svg{width:22px;height:22px}
.sheet-wrap .sheet.sq .study-x svg path{stroke-width:1.5}
.sheet-wrap .sheet.sq :focus-visible,.sheet-wrap .sheet.sq .opt:focus-visible,.sheet-wrap .sheet.sq .pick:focus-visible{outline:3px solid #00AACC;outline-offset:2px;box-shadow:none}
/* F6: 짝지은 입력칸은 라벨이 줄바꿈돼도 입력칸 높이를 맞추고, 좁으면 한 칸씩 */
.sqa .af-row{align-items:end}
.sqa .af-in{position:relative;display:block}
.sqa .af-in input{width:100%}
.sheet-wrap .sqa .af-in input[type="password"],.sheet-wrap .sqa .af-in input[type="text"]{padding-right:44px}
.sheet-wrap .sqa .pw-eye{position:absolute;right:2px;top:50%;transform:translateY(-50%);width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:10px;background:none;color:#6B7480;cursor:pointer;box-shadow:none}
.sheet-wrap .sqa .pw-eye:hover{color:#41454A}
.sheet-wrap .sqa .pw-eye[aria-pressed="true"]{color:#013879}
.sheet-wrap .sqa .auth-form input[aria-invalid="true"]{border-color:#D14343;box-shadow:0 0 0 2px rgba(209,67,67,.15)}
@media (max-width:480px){.sqa .af-row{grid-template-columns:1fr}}
/* F7: 로그인 오른쪽 칸 여백을 입력칸·버튼으로 채움 */
.sqa-login .auth-form{gap:12px}
.sqa-login .af{gap:6px}
.sheet-wrap .sqa-login .auth-form input{height:52px}
/* F12: 비밀번호 안내 대비 */
.sqa .auth-note{color:#5B6368}
/* F15: 탭·전환 링크 터치 영역 */
.sqa .auth-tabs{height:48px}
.sheet-wrap .sqa .sqa-alt button{padding:12px 6px;margin:-12px 0}
.sqw .win-txt{min-height:44px;padding:0 12px}
/* F8: 모바일에서도 사진은 얇은 띠로 남긴다 */
@media (max-width:820px){
  .sheet-wrap .sheet.sqa .sqa-photo{display:block;position:relative;flex:none;width:100%;height:96px;min-height:0;align-self:auto;border-radius:14px}
  .sheet-wrap .sheet.sqa .sqa-photo img{position:absolute;inset:0;object-position:50% 45%}
}
/* F11: 쿠폰은 칩으로 */
.sqw .win-chip{display:inline-block;margin-right:8px;padding:2px 10px;border-radius:999px;background:rgba(0,170,204,.14);color:#006B84;font-weight:600;font-size:13px;vertical-align:1px}

/* 로고 두 장(YU 마크 + 유학생 정착 교육) */
.sqa .sqa-brand{gap:8px}
.sqa .sqa-brand .logo-yu{height:24px;width:auto}
.sqa .sqa-brand .logo-tx{height:26px;width:auto}

/* 시뮬레이션 여러 개 고르기: 예시 사진은 한 줄에 두 장 */
.sheet-wrap.floor .sheet:has(.opts.pics){
  width:min(880px,calc(100% - 200px));
  max-width:880px;
}
.sheet-wrap.floor .opts.pics,
body:not(.touch-phone) .sheet-wrap.floor .sheet:has(.opts.pics):not(.phone-dock) .opts.pics{
  display:grid;
  grid-template-columns:1fr 1fr;
  grid-auto-rows:max-content;
  gap:12px;
  align-content:start;
  align-items:stretch;
}
body:not(.touch-phone) .sheet-wrap.floor .sheet:has(.opts.pics):not(.phone-dock) .opt.pic,
body.touch-phone .sheet-wrap.floor .opt.pic{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  align-self:stretch;
  justify-content:flex-start;
  gap:0;
  min-height:min-content;
  height:auto;
  max-height:none;
  padding:0;
  overflow:hidden;
  grid-template-columns:none;
  column-gap:0;
  line-height:1.35;
}
.sheet-wrap.floor .opt.pic .art{
  display:block;
  flex:none;
  width:100%;
  height:148px;
  grid-column:auto;
  grid-row:auto;
  border-radius:0;
  background:#eef3f0;
}
.sheet-wrap.floor .opt.pic .art img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.sheet-wrap.floor .opt.pic .ol{
  display:flex;
  align-items:flex-start;
  gap:8px;
  min-height:48px;
  padding:10px 12px 12px;
  grid-column:auto;
  text-align:left;
}
.sheet-wrap.floor .opt.pic .mk{flex:none;font-size:18px;line-height:1.2}
@media (max-width:720px){
  .sheet-wrap.floor .sheet:has(.opts.pics){width:min(880px,calc(100% - 16px))}
  body.touch-phone .sheet-wrap.floor .opt.pic .art{height:112px}
  body.touch-phone .sheet-wrap.floor .opt.pic .ol{min-height:40px;padding:8px 8px 10px;font-size:12px}
}
@media (max-width:420px){
  .sheet-wrap.floor .opts.pics,
  body:not(.touch-phone) .sheet-wrap.floor .sheet:has(.opts.pics):not(.phone-dock) .opts.pics{grid-template-columns:1fr}
}

/* 로그인·회원가입 전환 시 팝업 높이 통일: 더 긴 회원가입 기준으로 로그인도 같은 높이 */
.sqa .sqa-col{min-height:573px}
@media (max-width:820px){.sqa .sqa-col{min-height:573px}}
@media (max-width:480px){.sqa .sqa-col{min-height:739px}}

/* 태블릿(761~1280): 로그인·회원가입 사진 없이 한 칸 */
@media (min-width:761px) and (max-width:1280px){
  .sheet-wrap .sheet.study.sq.sqa-login,.sheet-wrap .sheet.study.sq.sqa-signup{flex-direction:column;width:min(440px,calc(100vw - 24px));max-width:440px;padding:20px 30px;min-height:0}
  .sheet-wrap .sheet.sqa .sqa-photo{display:none}
  .sqa .sqa-col{min-height:0}
}