/* P2-74c 전용 스타일 — /arcade/cunning-nyang/ 페이지에서만 불러옴. 게임 화면은 고유 색(라이트·다크 공통)을 씀. 새 글꼴 없음 */
.sm-box{padding:10px;background:#fff4df}
[data-theme="dark"] .sm-box{background:#2a2420}
.examcat{max-width:560px;margin:0 auto;scroll-margin-top:72px}
.examcat [hidden]{display:none!important}
.sm-screen{position:relative;background:#fffaf0;border:2.5px solid #141414;border-radius:14px;overflow:hidden;color:#141414;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;min-height:520px}
.sm-screen button{font:inherit;color:inherit}
/* 위: 남은 시간·정답·점수 */
.sm-hud{display:flex;align-items:center;gap:10px;padding:6px 8px;background:#141414;color:#fff;font-size:14px;line-height:1.2}
.sm-time b{font-size:20px;color:#ffc21a;font-variant-numeric:tabular-nums}.sm-time.low b{color:#ff8a80}
.sm-chip{background:#ffc21a;color:#141414;border-radius:7px;padding:4px 8px;font-weight:800;white-space:nowrap}
.sm-score{font-weight:700;white-space:nowrap}.sm-score b{font-size:18px;font-variant-numeric:tabular-nums}
.sm-tools{margin-left:auto;display:flex;gap:6px;flex:none}
.sm-ib{width:40px;height:40px;display:grid;place-items:center;border:2px solid #fff;border-radius:9px;background:#2b2b2b;color:#fff;cursor:pointer;padding:0}
.sm-ib svg{width:20px;height:20px}
.sm-ib .x{display:none}.sm-ib.off .x{display:inline}.sm-ib.off .w{display:none}.sm-ib.off{color:#bbb;border-color:#bbb}
/* 가운데: 교실 그림 */
.sm-stage{position:relative;background:#fff4df}
.sm-cv{display:block;width:100%;aspect-ratio:360/320;touch-action:none;cursor:pointer}
.sm-toast{position:absolute;left:50%;top:10px;transform:translateX(-50%);background:#141414;color:#fff;font-weight:800;font-size:14px;padding:6px 12px;border-radius:20px;white-space:nowrap;opacity:0;pointer-events:none}
.sm-toast.go{opacity:1;animation:smpop .3s ease-out}
.sm-toast.bad{background:#e5372b}.sm-toast.warn{background:#2346d8}
@keyframes smpop{0%{transform:translateX(-50%) scale(.8)}100%{transform:translateX(-50%) scale(1)}}
.sm-screen.using .sm-stage{box-shadow:inset 0 0 0 3px #7b5cff}
/* 아래: 큰 버튼 하나(게이지 포함) */
.sm-hold{position:relative;display:grid;gap:2px;width:calc(100% - 20px);margin:10px;min-height:84px;padding:26px 12px 8px;border:2.5px solid #141414;border-radius:16px;background:#7b5cff;color:#fff!important;cursor:pointer;touch-action:none;box-shadow:0 5px 0 #141414;transition:transform .05s,box-shadow .05s}
.sm-hold-t{font-size:19px;font-weight:900}
.sm-hold small{font-size:12px;opacity:.92}
.sm-hold.on{transform:translateY(4px);box-shadow:0 1px 0 #141414;background:#4a2fc0}
.sm-gauge{position:absolute;left:10px;right:10px;top:7px;height:14px;border-radius:8px;background:rgba(255,255,255,.25);overflow:hidden}
.sm-gauge i{position:absolute;left:0;top:0;bottom:0;width:0;background:#ffc21a}
.sm-gauge em{position:absolute;top:0;font-style:normal;font-size:10px;font-weight:900;line-height:14px;padding-left:4px;color:#141414;border-left:2px solid rgba(20,20,20,.5)}
.sm-gauge em:first-of-type{border-left:0}
.sm-screen :focus-visible{outline:3px solid #2346d8;outline-offset:2px}
/* 오버레이 */
.sm-ov{position:absolute;inset:0;z-index:3;overflow:auto;background:#fffaf0;padding:12px;display:flex;flex-direction:column;align-items:center}
.sm-ov.pause{background:rgba(20,20,20,.55);justify-content:center}
.sm-card{width:100%;max-width:460px;background:#fff;border:2.5px solid #141414;border-radius:14px;padding:14px;margin:auto 0;text-align:center}
.sm-ov.title .sm-card,.sm-ov.end .sm-card,.sm-ov.share .sm-card{border:0;background:none;padding:0}
.sm-art{display:block;width:100%;aspect-ratio:360/300;border-radius:12px;border:2px solid #141414;background:#fff4df}
.sm-end .sm-art,.sm-title .sm-art{aspect-ratio:360/200}
.sm-kicker{margin:10px 0 2px;font-size:13px;font-weight:800;color:#555}
.sm-logo{font-family:var(--display);font-weight:400;font-size:46px;line-height:1.1;margin:2px 0;color:#141414}
.sm-subt{margin:0 0 10px;font-size:17px;font-weight:900;color:#c2281d}
.sm-card h3{margin:4px 0 4px;font-size:22px;font-weight:900;line-height:1.3}
.sm-big{margin:0;font-size:18px;font-weight:800}.sm-big b{font-family:var(--display);font-weight:400;font-size:44px;color:#c2281d}
.sm-rankline{margin:2px 0 6px;font-size:17px;font-weight:900;color:#2346d8;min-height:1.4em}
.sm-rules{text-align:left;margin:6px 0 8px;padding-left:22px;font-size:15px;line-height:1.5}
.sm-rules li{margin:3px 0}
.sm-note{margin:8px 0 0;font-size:13px;color:#555;line-height:1.5}
.sm-meta{margin:6px 0;font-size:14px;color:#3d3d3d}
.sm-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.sm-title .sm-btns,.sm-pause-c .sm-btns,.sm-share .sm-btns{grid-template-columns:1fr}
.sm-btn{display:flex;align-items:center;justify-content:center;min-height:48px;padding:8px 14px;border:2.5px solid #141414;border-radius:12px;background:#ffc21a;color:#141414!important;font-size:17px;font-weight:900;cursor:pointer;text-decoration:none;box-shadow:0 4px 0 #141414}
.sm-btn.ghost{background:#fff;font-size:15px}
.sm-btn:active{transform:translateY(3px);box-shadow:0 1px 0 #141414}
.sm-stats{list-style:none;padding:0;margin:8px 0;display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.sm-stats li{background:#f6f3ea;border-radius:10px;padding:6px 2px;font-size:12px;line-height:1.3;font-weight:700}
.sm-stats b{display:block;font-size:20px;font-weight:900}
.sm-story{margin:6px 0;font-size:15px;line-height:1.6}
.sm-msg{margin:6px 0 4px;font-size:17px;font-weight:900;color:#4a2fc0}
.sm-newe{font-style:normal;background:#e5372b;color:#fff;padding:0 6px;border-radius:6px;font-size:12px;vertical-align:middle}
.sm-rank{margin-top:12px;text-align:left}
.sm-share img{display:block;margin:0 auto 10px;width:216px;height:auto;border:2px solid #141414;border-radius:10px}
.sm-share .fname{margin:0 auto;max-width:360px}
.sm-share .fname label{color:#141414}
.sm-share .fname-in{background:#fff;color:#141414;border:2px solid #141414}
.sm-share .fname-ext{background:#f2f1ec;color:#141414;border-color:#141414}
.sm-warn{font-size:14px;color:var(--ink-2);margin:10px 0 0}
@media (prefers-reduced-motion:reduce){.sm-toast.go{animation:none}}
