/* ⚡ 타임어택 · ⌨️ 컴퓨터실 · 🏖️ 방학 작전 */

/* ---------- ⚡ 타임어택 ---------- */
.atk-board { justify-content: flex-start; }
.atk-timer { height: 10px; border-radius: 6px; background: rgba(255,255,255,.12); margin: 10px 0 6px; overflow: hidden; }
.atk-timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #9be7a8, #ffe066); border-radius: 6px; }
.atk-timer i.hurry { background: linear-gradient(90deg, #ff8a80, #ffb199); animation: blink .5s steps(2) infinite; }
.atk-q { flex: 1; display: grid; place-items: center; text-align: center; font-size: clamp(24px, 3.8vh, 38px); line-height: 1.4; padding: 0 20px; word-break: keep-all; }
.atk-q::before { content: '❓'; display: block; font-size: .7em; opacity: .7; }
.atk-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 6px; }
.atk-opt { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 14px; border: 3px dashed rgba(246,243,232,.35); font-size: clamp(22px, 3.4vh, 34px); transition: all .15s; }
.atk-letter { width: 34px; height: 34px; border-radius: 50%; background: rgba(246,243,232,.18); display: grid; place-items: center; font-size: 18px; flex: none; }
.atk-opt.typing { border-style: solid; border-color: #ffe066; background: rgba(255,224,102,.08); }
.atk-opt .ok { color: #fffef6; text-shadow: 0 0 6px rgba(255,255,255,.5); }
.atk-opt span span { color: rgba(246,243,232,.55); }
.atk-opt span span.ok { color: #fff; }
.atk-opt span span.now { color: #ffe066; }
.atk-opt.right { border-color: #9be7a8; border-style: solid; background: rgba(155,231,168,.15); }
.atk-opt.dim { opacity: .35; }
.atk-flash { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.6); font-size: 34px; padding: 10px 26px; border-radius: 18px; opacity: 0; pointer-events: none; white-space: nowrap; }
.atk-flash.show { animation: aflash 1.3s ease-out forwards; }
.atk-flash.ok { background: #2f9e5b; color: #fff; }
.atk-flash.no { background: #fff; color: #c0392b; font-size: 26px; }
.atk-flash b { color: #2f7d4f; }
@keyframes aflash { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 25% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- ⌨️ 컴퓨터실 ---------- */
#lab { overflow: auto; }
.lab-wrap { position: relative; z-index: 2; min-height: 100%; display: flex; flex-direction: column; align-items: center; padding: 64px 16px 20px; gap: 6px; }
.monitor { width: min(900px, 100%); }
.monitor-screen { background: #fffdf6; border: 16px solid #3b4a6b; border-bottom-width: 26px; border-radius: 18px; padding: 18px 22px; min-height: 230px; box-shadow: 0 16px 30px rgba(0,0,0,.3); position: relative; }
.monitor-screen::after { content: '● '; position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); color: #7fd36b; font-size: 12px; }
.monitor-stand { width: 120px; height: 26px; margin: 0 auto; background: linear-gradient(#3b4a6b, #2c3955); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.lab-kb { width: min(960px, 100%); }
#lab[data-view="list"] .lab-kb { opacity: .9; }
.lb-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.lb-top h2 { font-family: var(--title); font-weight: 400; font-size: 28px; margin: 0 0 4px; color: #3b6fb0; }
.lb-top p { margin: 0 0 10px; color: var(--ink2); font-size: 15px; }
.lb-license { background: linear-gradient(90deg, #fff3c4, #ffe0a8); border-radius: 12px; padding: 8px 14px; font-family: var(--title); font-size: 18px; margin-bottom: 10px; }
.lb-license.big { font-size: 22px; text-align: center; animation: ding .8s ease-out; }
.lb-stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.lb-stage { position: relative; border: 3px solid #dbe6f3; background: #fff; border-radius: 16px; padding: 10px 6px 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink); transition: transform .12s; }
.lb-stage:hover { transform: translateY(-3px); border-color: #4fa3e3; }
.lb-stage.pass { background: #f0fbf3; border-color: #9be0b0; }
.lb-stage.next { border-color: #ff8a5c; box-shadow: 0 0 0 4px rgba(255,138,92,.2); }
.lb-no { font-size: 12px; color: var(--ink2); } .lb-icon { font-size: 28px; } .lb-stage b { font-family: var(--title); font-weight: 400; font-size: 19px; }
.lb-stage small { font-size: 11px; color: var(--ink2); text-align: center; min-height: 28px; }
.lb-stars { color: #f5b301; letter-spacing: 2px; }
.lb-stage em { position: absolute; top: -12px; right: -6px; font-style: normal; font-family: var(--title); font-size: 13px; background: #ff8a5c; color: #fff; padding: 2px 8px; border-radius: 999px; transform: rotate(6deg); }
.lb-foot { margin: 10px 0 0; font-size: 13px; color: var(--ink2); text-align: center; }
.lb-run-head { display: flex; align-items: center; gap: 12px; font-family: var(--title); font-size: 18px; }
.lb-rounds { display: flex; gap: 6px; flex: 1; justify-content: center; }
.lb-rounds span { font-size: 14px; padding: 3px 10px; border-radius: 999px; background: #eef2f7; color: var(--ink2); }
.lb-rounds span.on { background: #4fa3e3; color: #fff; } .lb-rounds span.done { background: #d6f2df; color: #2f7d4f; }
.lb-acc b { color: #e86a3a; font-weight: 400; }
.lb-x { border: 0; background: #f3ece0; border-radius: 10px; width: 34px; height: 34px; font-size: 16px; }
.lb-bar { height: 8px; background: #eef2f7; border-radius: 6px; margin: 10px 0; overflow: hidden; } .lb-bar i { display: block; height: 100%; background: linear-gradient(90deg, #5cc28a, #4fa3e3); width: 0; transition: width .2s; }
.lb-line { display: flex; gap: 12px; overflow: hidden; white-space: nowrap; font-family: var(--title); font-size: 26px; padding: 4px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.lb-line span { color: #c5b9ab; flex: none; padding: 0 6px; border-radius: 8px; } .lb-line span.done { color: #5cc28a; } .lb-line span.on { color: var(--ink); background: #fff3c4; }
.lb-keys { display: flex; gap: 6px; justify-content: center; margin: 10px 0; min-height: 56px; }
.lb-keys span { min-width: 48px; height: 52px; padding: 0 10px; border-radius: 12px; border: 3px solid #e6dccd; display: grid; place-items: center; font-family: var(--title); font-size: 28px; color: #c5b9ab; }
.lb-keys span.done { color: #5cc28a; border-color: #bfe8cb; }
.lb-keys span.on { color: #fff; background: var(--fc, #ff8a5c); border-color: var(--fc, #ff8a5c); transform: scale(1.12); box-shadow: 0 6px 14px rgba(0,0,0,.15); }
.lb-keys span.on.wrong { animation: shake .25s; }
.lb-keys span.sp { font-size: 16px; min-width: 90px; }
.lb-hint { text-align: center; font-size: 16px; min-height: 26px; }
.lb-f { color: var(--fc); } .lb-k { font-family: var(--title); background: #fff3c4; padding: 0 8px; border-radius: 6px; }
.lb-oops { color: #c0392b; font-weight: 700; }
.lb-result { text-align: center; } .lb-r-title { font-family: var(--title); font-size: 30px; } .lb-r-stars { font-size: 34px; color: #f5b301; letter-spacing: 6px; }
.lb-r-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px auto; max-width: 480px; }
.lb-r-stats div { background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 6px; } .lb-r-stats small { display: block; font-size: 12px; color: var(--ink2); } .lb-r-stats b { font-family: var(--title); font-size: 22px; font-weight: 400; }
.lb-r-msg { color: var(--ink2); }
@media (max-width: 760px) { .lb-stages { grid-template-columns: repeat(3, 1fr); } .lb-stage small { display: none; } }

/* ---------- 🏖️ 방학 작전 ---------- */
#vacation { overflow: hidden; background: #bfe3f7; }
.vac-host { position: absolute; inset: 0; }
.vac-host.quake { animation: quake .3s; }
@keyframes quake { 20% { transform: translate(-6px, 3px); } 40% { transform: translate(5px, -4px); } 60% { transform: translate(-4px, 2px); } 80% { transform: translate(3px, -1px); } }
.vac-host.collapse { animation: collapse 1.6s ease-in forwards; }
@keyframes collapse { 0%, 30% { transform: none; filter: none; } 10%, 20% { transform: translate(-10px, 4px); } 100% { transform: translateY(40px); filter: blur(3px) brightness(1.1); } }
.school .piece { transform-box: fill-box; transform-origin: center; }
.school .vlabel rect { fill: #fff; stroke: #ff8a5c; stroke-width: 4; filter: drop-shadow(0 4px 4px rgba(0,0,0,.25)); }
.school .vlabel path { fill: #ff8a5c; }
.school .vlabel text { font-family: var(--title); font-size: 21px; fill: #3b2f2a; }
.school .vlabel.hot rect { fill: #fff3c4; stroke: #e8a10c; stroke-width: 5; }
.school .vlabel { transform-box: fill-box; transform-origin: center bottom; }
.school .vhole rect { fill: #3a2f4a; }
.school .vhole path { fill: none; stroke: #5a4636; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.school .vfix { font-family: var(--title); font-size: 20px; fill: #2f7d4f; paint-order: stroke; stroke: #fff; stroke-width: 5px; }
.vac-top { position: absolute; left: 16px; right: 16px; top: 12px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; z-index: 3; padding-right: 230px; }
.vac-title { font-family: var(--title); font-size: 26px; color: #fff; background: linear-gradient(90deg, #ff8a5c, #ffc83d); padding: 6px 18px; border-radius: 999px; border: 3px solid #fff; box-shadow: 0 4px 0 rgba(0,0,0,.12); }
.vac-meter { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.92); padding: 6px 14px; border-radius: 999px; font-family: var(--title); }
.vac-bar { width: 180px; height: 14px; background: #eadfce; border-radius: 8px; overflow: hidden; } .vac-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff8a5c, #ef5350); transition: width .3s; }
.vac-time, .vac-combo { font-family: var(--title); font-size: 18px; background: rgba(255,255,255,.92); padding: 6px 14px; border-radius: 999px; }
.vac-combo:empty { display: none; }
.vac-combo[data-l="1"] { background: #ffe0b2; } .vac-combo[data-l="2"] { background: linear-gradient(90deg, #ffd1dc, #fff3c4, #d1f0ff); }
.vac-tip { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); z-index: 3; background: #3b2f2a; color: #fff; padding: 8px 18px; border-radius: 14px; font-size: 16px; transition: opacity .5s; max-width: calc(100% - 32px); text-align: center; }
.vac-tip.gone { opacity: 0; pointer-events: none; }
.vac-desk { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(560px, calc(100% - 32px)); display: flex; gap: 8px; align-items: center; z-index: 3;
  background: rgba(255,255,255,.92); padding: 10px; border-radius: 18px; border: 4px solid #fff; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.vac-desk .type-host { flex: 1; }
.vac-fx { position: fixed; inset: 0; pointer-events: none; z-index: 4; }
.vfx { position: absolute; transform: translate(-50%, -50%); text-align: center; animation: vfx .9s ease-out forwards; }
.vfx span { display: block; font-size: 54px; }
.vfx b { font-family: var(--title); font-size: 32px; color: #fff; -webkit-text-stroke: 2px #e05d3a; paint-order: stroke; text-shadow: 0 4px 0 #e05d3a; }
@keyframes vfx { 0% { transform: translate(-50%, -50%) scale(.3) rotate(-20deg); opacity: 0; } 25% { transform: translate(-50%, -70%) scale(1.25) rotate(8deg); opacity: 1; } 100% { transform: translate(-50%, -130%) scale(1); opacity: 0; } }
.vac-end { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; animation: fadeIn .8s ease-out; }
@keyframes fadeIn { from { opacity: 0; } }
.beach { position: absolute; inset: 0; background: linear-gradient(#7fd3ff 0 45%, #45b5e8 45% 62%, #ffe2a8 62%); overflow: hidden; }
.beach .sun { position: absolute; right: 12%; top: 8%; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(#fff6b0, #ffd23f); box-shadow: 0 0 80px 30px rgba(255,220,80,.5); }
.beach .sea { position: absolute; left: -10%; right: -10%; top: 44%; height: 20%; background: repeating-linear-gradient(90deg, transparent 0 40px, rgba(255,255,255,.25) 40px 70px); animation: wave 4s linear infinite; }
@keyframes wave { to { transform: translateX(110px); } }
.beach .umbrella { position: absolute; left: 12%; bottom: 14%; font-size: 120px; } .beach .ball { position: absolute; right: 18%; bottom: 10%; font-size: 64px; animation: bounce 1.2s ease-in-out infinite; }
.beach .crab { position: absolute; left: 40%; bottom: 6%; font-size: 48px; animation: crab 3s ease-in-out infinite alternate; }
@keyframes bounce { 50% { transform: translateY(-40px); } } @keyframes crab { to { transform: translateX(120px); } }
.vac-card { position: relative; background: rgba(255,253,246,.96); border-radius: 26px; border: 5px solid #fff; padding: 22px 26px; width: min(520px, calc(100% - 32px)); text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.vac-card h2 { font-family: var(--title); font-weight: 400; font-size: 48px; margin: 0; color: #ff7a45; text-shadow: 3px 3px 0 #ffe1a8; animation: ding .8s ease-out; }
.vac-shh { font-size: 14px; color: var(--ink2); }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: confetti 3s linear infinite; }
@keyframes confetti { to { transform: translateY(110vh) rotate(720deg); } }
