/* Cyber Escape Room (inc/escape.php, assets/js/escape.js) */
.esc { max-width: 960px; margin: 0 auto; scroll-margin-top: 96px; }
.esc__stage { background: #fff; border-radius: var(--radius, 14px); box-shadow: var(--shadow, 0 6px 24px rgba(14, 30, 66, .08)); padding: 24px; border-top: 5px solid var(--blue, #2274b5); }
.esc__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.esc__wombat { width: 150px; height: auto; flex: none; }
.esc__intro, .esc__end { display: flex; gap: 24px; align-items: flex-start; }
.esc__intro h2, .esc__end h2 { margin-top: 0; }
.esc__fine { font-size: .88rem; color: #6a7489; }
.esc__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-bottom: 14px; font-size: .95rem; color: #4a5568; }
.esc__bar strong { color: var(--navy, #0e1e42); font-variant-numeric: tabular-nums; }
.esc__code strong { letter-spacing: .2em; font-family: Sora, sans-serif; }
.esc__hintbtn { margin-left: auto; background: #fff; border: 2px solid #c9d2e3; border-radius: 8px; padding: 6px 12px; font: inherit; font-weight: 600; color: #12385e; cursor: pointer; }
.esc__hintbtn:disabled { opacity: .5; cursor: default; }
.esc__room { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid #d9e0ea; }
.esc__svg { display: block; width: 100%; height: auto; }
.esc__spot { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--navy, #0e1e42); }
.esc__dot { width: 30px; height: 30px; border-radius: 50%; background: rgba(216, 219, 62, .95); border: 3px solid var(--navy, #0e1e42); box-shadow: 0 0 0 0 rgba(216, 219, 62, .7); animation: esc-pulse 2s infinite; }
.esc__lbl { font-size: .78rem; font-weight: 700; background: rgba(255, 255, 255, .92); padding: 2px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.esc__spot:hover .esc__lbl, .esc__spot:focus-visible .esc__lbl, .esc__spot.is-hint .esc__lbl { opacity: 1; }
.esc__spot:focus-visible { outline: 3px solid var(--blue, #2274b5); outline-offset: 2px; border-radius: 10px; }
.esc__spot.is-fixed .esc__dot { background: var(--green, #9dc24c); animation: none; position: relative; }
.esc__spot.is-fixed .esc__dot::after { content: ""; position: absolute; left: 8px; top: 4px; width: 7px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.esc__spot.is-hint .esc__dot { background: var(--red, #d14938); }
.esc__door .esc__dot { background: #c9d2e3; animation: none; }
.esc__door.is-ready .esc__dot { background: var(--yellow, #d8db3e); animation: esc-pulse 1s infinite; }
@keyframes esc-pulse { 0% { box-shadow: 0 0 0 0 rgba(216, 219, 62, .7); } 70% { box-shadow: 0 0 0 12px rgba(216, 219, 62, 0); } 100% { box-shadow: 0 0 0 0 rgba(216, 219, 62, 0); } }
@media (prefers-reduced-motion: reduce) { .esc__dot, .esc__door.is-ready .esc__dot { animation: none; } }
.esc__panel { margin-top: 16px; }
.esc__card { background: #f7f9fc; border: 1px solid #d9e0ea; border-left: 5px solid var(--blue, #2274b5); border-radius: 12px; padding: 18px 20px; }
.esc__card h3 { margin: 0 0 8px; }
.esc__choices { display: grid; gap: 8px; margin: 10px 0; }
.esc__choice { text-align: left; background: #fff; border: 2px solid #c9d2e3; border-radius: 10px; padding: 10px 14px; font: inherit; color: #12385e; cursor: pointer; }
.esc__choice:hover:not(:disabled) { border-color: var(--blue, #2274b5); }
.esc__choice:disabled { cursor: default; opacity: .55; }
.esc__choice.is-right { border-color: #3f7d20; background: #eef6e4; opacity: 1; }
.esc__choice.is-wrong { border-color: #b8382a; background: #fbecea; opacity: 1; }
.esc__ok { display: flex; gap: 12px; align-items: center; background: #eef6e4; border-radius: 10px; padding: 10px 12px; margin: 6px 0 12px; }
.esc__mini { width: 64px; height: auto; flex: none; }
.esc__bad { background: #fbecea; border-radius: 10px; padding: 10px 12px; margin: 6px 0 12px; }
.esc__entry { font: 700 1.8rem/1 Sora, sans-serif; letter-spacing: .3em; color: var(--navy, #0e1e42); }
.esc__pad { display: grid; grid-template-columns: repeat(3, 72px); gap: 8px; margin: 10px 0 14px; }
.esc__key { height: 52px; border-radius: 10px; border: 2px solid #c9d2e3; background: #fff; font: 700 1.1rem Sora, sans-serif; color: var(--navy, #0e1e42); cursor: pointer; }
.esc__key:hover { border-color: var(--blue, #2274b5); }
.esc__key[data-v="Enter"] { background: var(--blue, #2274b5); color: #fff; border-color: var(--blue, #2274b5); font-size: .9rem; }
.esc__key[data-v="Clear"] { font-size: .9rem; }
.esc__stats { color: #4a5568; font-weight: 600; }
.esc__list { padding-left: 20px; margin: 0 0 12px; }
@media (max-width: 640px) {
  .esc__stage { padding: 16px; }
  .esc__intro, .esc__end { flex-direction: column; align-items: center; }
  .esc__wombat { width: 120px; }
  .esc__bar { gap: 6px 14px; font-size: .88rem; }
  .esc__hintbtn { margin-left: 0; }
  .esc__room { border: 0; overflow: visible; }
  .esc__svg { border-radius: 10px; border: 1px solid #d9e0ea; }
  .esc__spots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
  .esc__spot { position: static; transform: none; flex-direction: row; justify-content: flex-start; text-align: left; background: #f7f9fc; border: 1px solid #d9e0ea; border-radius: 10px; padding: 10px; }
  .esc__dot { width: 22px; height: 22px; flex: none; }
  .esc__spot.is-fixed .esc__dot::after { left: 5px; top: 2px; width: 6px; height: 10px; }
  .esc__lbl { opacity: 1; background: none; padding: 0; white-space: normal; font-size: .85rem; }
  .esc__pad { grid-template-columns: repeat(3, 1fr); }
}
