/* MICE ENP 체험 모음 — 랜딩 안 목록 + 모달 + 게임 화면 (2026-10-16 claude:27f8bd9b-enp-play)
 * 색·글꼴·곡률은 랜딩(디자인 인계 README §6 토큰)과 같다. 모든 이름은 ep- 로 시작해 시안 스타일과 섞이지 않는다.
 * 글자색 #191F28·#333D4B·#4E5968·#5C6775·#7B8694 · 선 #E5E8EB·#D1D6DB · 강조 #3182F6(#1B64DA) · 버튼 5px · 카드 12~16px */

.ep-gallery, .ep-modal { --ep-ink: #191f28; --ep-ink2: #333d4b; --ep-body: #4e5968; --ep-sub: #5c6775; --ep-hint: #7b8694; --ep-off: #a3acb7;
  --ep-line: #e5e8eb; --ep-line2: #d1d6db; --ep-soft: #f2f4f6; --ep-bg: #f9fafb; --ep-bg2: #f7f8fa;
  --ep-blue: #3182f6; --ep-blue-d: #1b64da; --ep-blue-l: #e8f3ff; --ep-blue-b: #b5d3ff;
  --ep-ok: #147a43; --ep-ok-bg: #eafaf1; --ep-ok-b: #9cc4a8; --ep-warn: #a5520f; --ep-warn-bg: #fff5eb; --ep-bad: #b42e33; --ep-bad-bg: #fdecec; --ep-red: #e5484d;
  color: var(--ep-ink); letter-spacing: -0.015em; font-feature-settings: "tnum"; }
.ep-gallery *, .ep-modal * { box-sizing: border-box; }
/* 상속만 맞추고 크기는 각 부품이 정한다(:where = 우선순위 0 — .ep-tab 같은 부품 규칙을 덮지 않게) */
:where(.ep-gallery, .ep-modal) :where(button, input, select, textarea) { font: inherit; letter-spacing: inherit; color: inherit; }
.ep-ico { display: block; flex: none; }
.ep-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 목록(랜딩 #games 안) ───────────────────────────── */
.ep-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.ep-tab { height: 36px; padding: 0 14px; border-radius: 5px; border: 1px solid var(--ep-line2); background: #fff; color: var(--ep-ink2); font-size: 13.5px; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.ep-tab:hover { border-color: var(--ep-off); }
.ep-tab[aria-pressed="true"] { background: var(--ep-ink); border-color: var(--ep-ink); color: #fff; }
/* 2026-10-17 공개 화면 휴대폰 터치 44px — 폰·태블릿(랜딩 touch-20261017 과 같은 1039px)에서 분류 탭 높이만 36 → 44px(모양 그대로) */
@media (max-width: 1039px) { .ep-tab { height: 44px; } }
.ep-tab__n { margin-left: 6px; opacity: .7; }
.ep-subs { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 18px; }
.ep-sub { height: 32px; padding: 0 12px; border-radius: 5px; border: 1px solid var(--ep-line); background: #fff; color: var(--ep-body); font-size: 13px; font-weight: 700; cursor: pointer; }
.ep-sub[aria-pressed="true"] { background: var(--ep-blue-l); border-color: var(--ep-blue-b); color: var(--ep-blue-d); }
.ep-group + .ep-group { margin-top: 44px; }
.ep-group__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ep-group__title { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.ep-group__n { margin-left: 6px; font-size: 15px; font-weight: 700; color: var(--ep-hint); }
.ep-group__desc { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ep-sub); }
/* 한 줄 칸 수를 화면 폭으로 정한다(10-16 사용자 "5개씩 몇줄로") — 넓은 화면 5 · 1199px 이하 4 · 899px 이하 3 · 폰(640px 이하) 2 */
.ep-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1199px) { .ep-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 899px) { .ep-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
.ep-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--ep-line); border-radius: 12px; overflow: hidden; color: var(--ep-ink); text-decoration: none; transition: border-color .15s, box-shadow .2s, transform .2s; }
a.ep-card:hover, a.ep-card:focus-visible { border-color: var(--ep-line2); box-shadow: 0 8px 24px rgba(25, 31, 40, .06); transform: translateY(-2px); color: var(--ep-ink); }
a.ep-card:focus-visible { outline: 2px solid var(--ep-blue); outline-offset: 2px; }
.ep-card__art { position: relative; height: 150px; flex: none; }
.ep-card__tile { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border: 4px solid #fff; border-radius: 14px; background: #fff; box-shadow: 0 12px 26px rgba(25, 31, 40, .14); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; overflow: hidden; }
.ep-card__kind { position: absolute; left: 12px; top: 12px; height: 22px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 4px; background: #fff; color: var(--ep-blue-d); font-size: 11.5px; font-weight: 700; }
.ep-card__new { position: absolute; right: 12px; top: 12px; height: 22px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 4px; background: var(--ep-ok-bg); color: var(--ep-ok); font-size: 11.5px; font-weight: 800; }
.ep-card__body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; min-width: 0; }
.ep-card__title { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.ep-card__desc { font-size: 13.5px; line-height: 1.55; color: var(--ep-sub); }
.ep-card__meta { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 700; }
.ep-card__end { color: var(--ep-body); min-width: 0; }
.ep-card__go { flex: none; display: inline-flex; align-items: center; gap: 4px; }
.ep-gallery__note { margin-top: 22px; font-size: 13px; line-height: 1.6; color: var(--ep-sub); }

@media (max-width: 640px) {
  .ep-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 18px; padding: 0 20px 2px; scrollbar-width: none; }
  .ep-tabs::-webkit-scrollbar { display: none; }
  .ep-tab { flex: none; }
  .ep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ep-group + .ep-group { margin-top: 32px; }
  .ep-group__title { font-size: 17px; }
  .ep-group__n { font-size: 14px; }
  .ep-card__art { height: 112px; }
  .ep-card__tile { width: 72px; height: 72px; margin: -36px 0 0 -36px; border-width: 3px; border-radius: 12px; font-size: 18px; }
  .ep-card__kind { left: 8px; top: 8px; font-size: 10.5px; height: 20px; padding: 0 6px; }
  .ep-card__new { right: 8px; top: 8px; font-size: 10.5px; height: 20px; padding: 0 6px; }
  .ep-card__body { padding: 12px 12px 14px; gap: 4px; }
  .ep-card__title { font-size: 15px; }
  .ep-card__desc { font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ep-card__meta { font-size: 11.5px; padding-top: 8px; }
  .ep-card__go-t { display: none; }
}

/* ── 모달 ─────────────────────────────────────────── */
html.ep-lock { overflow: hidden; scrollbar-gutter: stable; }
.ep-modal { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ep-modal[hidden] { display: none; }
.ep-modal__scrim { position: absolute; inset: 0; background: rgba(25, 31, 40, .52); opacity: 0; transition: opacity .2s ease; }
.ep-modal__panel { position: relative; width: min(1100px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: 0 24px 64px rgba(25, 31, 40, .24); overflow: hidden; opacity: 0; transform: translateY(16px) scale(.985); transition: opacity .2s ease, transform .28s cubic-bezier(.2, .8, .2, 1); outline: none; }
.ep-modal.is-open .ep-modal__scrim { opacity: 1; }
.ep-modal.is-open .ep-modal__panel { opacity: 1; transform: none; }
.ep-modal__head { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 24px; border-bottom: 1px solid var(--ep-soft); background: #fff; }
.ep-modal__titles { min-width: 0; flex: 1; }
.ep-modal__eyebrow { font-size: 12.5px; font-weight: 700; color: var(--ep-blue); }
.ep-modal__title { margin: 2px 0 0; font-size: 20px; line-height: 1.3; font-weight: 800; letter-spacing: -0.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-modal__acts { flex: none; display: flex; align-items: center; gap: 4px; }
.ep-modal__pos { margin: 0 4px; font-size: 12.5px; font-weight: 700; color: var(--ep-hint); white-space: nowrap; }
.ep-iconbtn { width: 44px; height: 44px; flex: none; border: 0; border-radius: 8px; background: transparent; color: var(--ep-ink2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s; }
.ep-iconbtn:hover { background: var(--ep-soft); }
.ep-iconbtn:disabled { opacity: .3; cursor: default; background: transparent; }
.ep-modal__body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.ep-modal__play { min-width: 0; }

.ep-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ep-side__box { border: 1px solid var(--ep-line); border-radius: 12px; padding: 18px; background: #fff; }
.ep-side__k { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; color: var(--ep-hint); }
.ep-side__t { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 700; color: var(--ep-ink); }
.ep-side__p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--ep-body); }
.ep-side__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.ep-side__list li { position: relative; padding-left: 14px; font-size: 13.5px; line-height: 1.55; color: var(--ep-ink2); }
.ep-side__list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--ep-off); }
.ep-side__tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.ep-side__tag--base { background: var(--ep-ok-bg); color: var(--ep-ok); }
/* 2026-11-23 claude:d897491e — 기본형 표시가 한 줄을 넘는 문장이라 높이를 풀고 줄을 바꾼다(아이콘은 줄지 않게) */
.ep-side__tag--base { height: auto; min-height: 24px; padding: 4px 8px; line-height: 1.45; word-break: keep-all; }
.ep-side__tag--base svg { flex: none; }
.ep-side__tag--make { background: var(--ep-soft); color: var(--ep-body); }
.ep-side__cta { width: 100%; }
.ep-side__fine { margin: 0; font-size: 12px; line-height: 1.6; color: var(--ep-hint); }
.ep-rel { display: flex; flex-direction: column; gap: 6px; }
.ep-rel__item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 8px; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--ep-ink); text-align: left; cursor: pointer; }
.ep-rel__item:hover { background: var(--ep-bg2); border-color: var(--ep-line); }
.ep-rel__art { width: 36px; height: 36px; flex: none; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; overflow: hidden; }
.ep-rel__t { font-size: 13.5px; font-weight: 700; min-width: 0; }
.ep-rel__d { font-size: 12px; color: var(--ep-hint); font-weight: 600; }

@media (max-width: 899px) {
  .ep-modal__body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ep-modal { padding: 0; align-items: stretch; }
  .ep-modal__panel { width: 100%; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; transform: translateY(24px); }
  .ep-modal__head { padding: 6px 4px 6px 16px; }
  .ep-modal__eyebrow { font-size: 11.5px; }
  .ep-modal__title { font-size: 17px; }
  .ep-modal__pos { display: none; }
  .ep-modal__body { padding: 14px 14px 28px; gap: 14px; }
  .ep-side__box { padding: 16px; }
}

/* ── 공통 버튼 ─────────────────────────────────────── */
.ep-btn { height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14.5px; font-weight: 700; line-height: 1; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, opacity .15s, color .15s; }
.ep-btn--dark { background: var(--ep-ink); color: #fff; }
.ep-btn--dark:hover { background: var(--ep-ink2); color: #fff; }
.ep-btn--blue { background: var(--ep-blue); color: #fff; }
.ep-btn--blue:hover { background: var(--ep-blue-d); color: #fff; }
.ep-btn--red { background: var(--ep-red); color: #fff; }
.ep-btn--red:hover { background: #cd3a3f; color: #fff; }
.ep-btn--line { background: #fff; color: var(--ep-ink); border-color: var(--ep-line2); }
.ep-btn--line:hover { background: var(--ep-bg2); border-color: var(--ep-off); color: var(--ep-ink); }
.ep-btn--line[aria-pressed="true"] { background: var(--ep-blue-l); border-color: var(--ep-blue-b); color: var(--ep-blue-d); }
.ep-btn:disabled, .ep-btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.ep-btn--sm { height: 36px; padding: 0 12px; font-size: 13px; }
.ep-modal button:focus-visible, .ep-modal a:focus-visible, .ep-modal input:focus-visible, .ep-gallery button:focus-visible { outline: 2px solid var(--ep-blue); outline-offset: 2px; }
.ep-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ep-chip { height: 36px; padding: 0 12px; border-radius: 5px; border: 1px solid var(--ep-line2); background: #fff; color: var(--ep-ink2); font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.ep-chip[aria-pressed="true"] { background: var(--ep-ink); border-color: var(--ep-ink); color: #fff; font-weight: 700; }
.ep-chip:disabled { opacity: .45; cursor: not-allowed; }

/* ── 게임 틀(머리·게임판·아래 줄) ──────────────────── */
.ep-frame { position: relative; border: 1px solid var(--ep-line); border-radius: 14px; background: #fff; overflow: hidden; }
.ep-frame__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 16px; border-bottom: 1px solid var(--ep-soft); }
.ep-frame__eyebrow { font-size: 12px; font-weight: 700; color: var(--ep-blue-d); }
.ep-frame__title { margin-top: 3px; font-size: 19px; line-height: 1.35; font-weight: 800; letter-spacing: -0.03em; }
.ep-pill { flex: none; height: 26px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 5px; background: var(--ep-soft); color: var(--ep-body); font-size: 12.5px; font-weight: 700; white-space: nowrap; transition: background .2s, color .2s; }
.ep-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ep-pill--run { background: #f2f8ff; color: var(--ep-blue-d); }
.ep-pill--ok { background: var(--ep-ok-bg); color: var(--ep-ok); }
.ep-pill--warn { background: var(--ep-warn-bg); color: var(--ep-warn); }
.ep-pill--bad { background: var(--ep-bad-bg); color: var(--ep-bad); }
.ep-frame__stage { position: relative; min-height: 400px; padding: 28px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.ep-frame__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; padding: 14px 20px; border-top: 1px solid var(--ep-soft); }
.ep-frame__msg { flex: 1 1 220px; min-width: 0; margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ep-sub); }
.ep-frame__btns { flex: none; margin-left: auto; display: flex; gap: 8px; }
@media (max-width: 640px) {
  .ep-frame__head { padding: 14px 16px 12px; }
  .ep-frame__title { font-size: 17px; }
  .ep-frame__stage { min-height: 0; padding: 20px 12px; gap: 14px; }
  .ep-frame__foot { padding: 12px 14px 14px; }
  .ep-frame__btns { width: 100%; margin-left: 0; }
  .ep-frame__btns .ep-btn { flex: 1 1 0; padding: 0 10px; }
}

/* 완료 카드 */
.ep-done { position: absolute; inset: 0; z-index: 6; overflow: auto; display: flex; padding: 22px 14px; background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: epFade .2s ease both; }
.ep-done__card { position: relative; z-index: 1; width: min(360px, 100%); margin: auto; background: #fff; border: 1px solid var(--ep-line); border-radius: 16px; box-shadow: 0 20px 48px rgba(25, 31, 40, .16); overflow: hidden; animation: epPop .38s cubic-bezier(.2, .8, .2, 1) both; }
.ep-done__band { padding: 22px 20px 18px; text-align: center; }
.ep-done__eye { font-size: 12.5px; font-weight: 700; }
.ep-done__title { margin: 6px 0 0; font-size: 23px; line-height: 1.32; font-weight: 800; letter-spacing: -0.03em; white-space: pre-line; }
.ep-done__box { margin: 0 20px; padding: 14px 12px; border: 1.5px dashed; border-radius: 12px; text-align: center; }
.ep-done__k { font-size: 12px; font-weight: 700; color: var(--ep-body); }
.ep-done__code { margin-top: 4px; font-size: 24px; font-weight: 900; letter-spacing: .03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ep-done__s { margin-top: 4px; font-size: 12px; color: var(--ep-hint); }
.ep-done__how { margin: 14px 20px 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; counter-reset: ep-how; }
.ep-done__how li { display: flex; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--ep-ink2); counter-increment: ep-how; }
.ep-done__how li::before { content: counter(ep-how); flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--ep-ink); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ep-done__acts { padding: 16px 20px 10px; display: flex; flex-direction: column; gap: 8px; }
.ep-done__acts .ep-btn { height: auto; min-height: 44px; padding: 11px 14px; line-height: 1.35; white-space: normal; text-align: center; }
.ep-done__note { margin: 0; padding: 0 20px 18px; font-size: 12px; line-height: 1.5; color: var(--ep-hint); text-align: center; }
.ep-done--blue .ep-done__band { background: linear-gradient(160deg, #e8f3ff, #f4f0ff); } .ep-done--blue .ep-done__eye { color: var(--ep-blue-d); } .ep-done--blue .ep-done__box { border-color: #9ec5fe; background: #f2f8ff; }
.ep-done--green .ep-done__band { background: linear-gradient(160deg, #eafaf1, #fff6e0); } .ep-done--green .ep-done__eye { color: var(--ep-ok); } .ep-done--green .ep-done__box { border-color: var(--ep-ok-b); background: #eff8f1; }
.ep-done--orange .ep-done__band { background: linear-gradient(160deg, #fff1de, #fde7ee); } .ep-done--orange .ep-done__eye { color: var(--ep-warn); } .ep-done--orange .ep-done__box { border-color: #e6c9a0; background: #fff6ea; }
.ep-done--purple .ep-done__band { background: linear-gradient(160deg, #f4f0ff, #fff6e0); } .ep-done--purple .ep-done__eye { color: #6b4de6; } .ep-done--purple .ep-done__box { border-color: #c3b1e1; background: #f7f3ff; }
.ep-done--gray .ep-done__band { background: var(--ep-bg2); } .ep-done--gray .ep-done__eye { color: var(--ep-sub); } .ep-done--gray .ep-done__box { border-color: var(--ep-line2); background: var(--ep-bg); }

/* 색종이 */
.ep-burst { position: absolute; inset: 0; z-index: 7; overflow: hidden; pointer-events: none; }
.ep-burst i { position: absolute; left: 50%; top: 40%; opacity: 0; animation: epBurst var(--t, 1.6s) cubic-bezier(.15, .7, .3, 1) var(--d, 0s) forwards; }
@keyframes epBurst { 0% { opacity: 1; transform: translate(-50%, -50%) rotate(0); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + var(--fall))) rotate(var(--r)); } }
@keyframes epFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes epPop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes epShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes epRing { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
@keyframes epBlink { 50% { opacity: .35; } }
.ep-shake { animation: epShake .3s; }

/* ── 퀴즈·테스트 ───────────────────────────────────── */
.ep-q { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 16px; }
.ep-q__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ep-q__no { font-size: 12.5px; font-weight: 800; color: var(--ep-blue-d); }
.ep-segs { display: flex; gap: 4px; flex: 1; max-width: 260px; }
.ep-segs i { flex: 1; height: 4px; border-radius: 2px; background: var(--ep-line); transition: background .25s; }
.ep-segs i.is-on { background: var(--ep-ink); }
.ep-segs i.is-ok { background: #1f9d55; }
.ep-segs i.is-no { background: var(--ep-red); }
.ep-q__text { margin: 0; font-size: 22px; line-height: 1.42; font-weight: 800; letter-spacing: -0.03em; white-space: pre-line; }
.ep-q__sub { margin: -6px 0 0; font-size: 14px; color: var(--ep-sub); line-height: 1.5; }
/* 빈칸 채우기(10-16 4차) — 빈칸은 밑줄 친 칸, 답을 고르면 정답이 들어간다 */
.ep-q__blank { display: inline-block; min-width: 2.6em; margin: 0 .15em; padding: 0 .3em; border-bottom: 3px solid var(--ep-blue); border-radius: 4px 4px 0 0; background: var(--ep-blue-l); color: var(--ep-blue-d); text-align: center; line-height: 1.35; }
.ep-q__blank.is-filled { border-bottom-color: #1f9d55; background: var(--ep-ok-bg); color: var(--ep-ok); animation: epPop .25s both; }
.ep-q__chosung { align-self: center; display: flex; gap: 8px; }
.ep-q__chosung span { width: 64px; height: 64px; border-radius: 12px; background: #fff; border: 1px solid var(--ep-line); box-shadow: 0 6px 16px rgba(25, 31, 40, .08); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 900; color: #6b4de6; }
.ep-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ep-opts--1 { grid-template-columns: 1fr; }
.ep-opt { position: relative; min-height: 56px; padding: 12px 40px 12px 16px; border: 1px solid var(--ep-line); border-radius: 10px; background: #fff; color: var(--ep-ink); font-size: 15px; font-weight: 700; line-height: 1.4; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.ep-opt:hover:not(:disabled) { border-color: var(--ep-off); background: var(--ep-bg); }
.ep-opt:disabled { cursor: default; }
.ep-opt .ep-ico { position: absolute; right: 14px; top: 50%; margin-top: -9px; }
.ep-opt.is-pick { border: 1.5px solid var(--ep-ink); background: var(--ep-bg); }
.ep-opt.is-right { border: 1.5px solid #1f9d55; background: var(--ep-ok-bg); color: var(--ep-ok); }
.ep-opt.is-wrong { border: 1.5px solid var(--ep-red); background: var(--ep-bad-bg); color: var(--ep-bad); }
.ep-opt.is-dim { opacity: .55; }
.ep-opts--ox { grid-template-columns: 1fr 1fr; }
.ep-opts--ox .ep-opt { min-height: 120px; padding: 12px; text-align: center; font-size: 56px; font-weight: 900; line-height: 1; }
.ep-opts--ox .ep-opt:first-child { color: var(--ep-blue); }
.ep-opts--ox .ep-opt:last-child { color: var(--ep-red); }
.ep-opts--ox .ep-opt .ep-ico { right: 10px; top: 12px; margin: 0; }
.ep-ex { padding: 14px 16px; border-radius: 10px; background: var(--ep-bg2); font-size: 14px; line-height: 1.6; color: var(--ep-ink2); animation: epFade .2s ease both; }
.ep-ex b { display: block; margin-bottom: 2px; font-size: 12.5px; }
.ep-ex--ok b { color: var(--ep-ok); } .ep-ex--no b { color: var(--ep-bad); }
.ep-review { margin: 12px 20px 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow: auto; }
.ep-review li { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: var(--ep-ink2); }
.ep-review li .ep-ico { margin-top: 1px; }
.ep-review li.is-ok .ep-ico { color: #1f9d55; } .ep-review li.is-no .ep-ico { color: var(--ep-red); }

.ep-test { width: 100%; max-width: 620px; }
.ep-test__start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 24px; align-items: center; width: 100%; }
.ep-test__cover { aspect-ratio: 1; border-radius: 14px; box-shadow: 0 16px 34px rgba(25, 31, 40, .14); }
.ep-test__chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 4px; background: var(--ep-blue-l); color: var(--ep-blue-d); font-size: 12.5px; font-weight: 700; }
.ep-test__h { margin: 14px 0 0; font-size: 26px; line-height: 1.32; font-weight: 800; letter-spacing: -0.035em; }
.ep-test__p { margin: 10px 0 0; font-size: 15px; line-height: 1.65; color: var(--ep-body); }
.ep-facts { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.ep-facts li { height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 5px; background: var(--ep-soft); font-size: 12.5px; font-weight: 700; color: var(--ep-ink2); }
.ep-test__go { margin-top: 20px; }
.ep-test__fine { margin: 10px 0 0; font-size: 12.5px; color: var(--ep-hint); }
.ep-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ep-pair .ep-opt { min-height: 120px; padding: 18px 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; font-size: 16px; }
.ep-pair .ep-opt small { font-size: 12px; font-weight: 800; color: var(--ep-hint); letter-spacing: .02em; }
.ep-test__nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ep-res { width: 100%; max-width: 640px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 22px; align-items: start; }
.ep-res__img { aspect-ratio: 4 / 5; border-radius: 14px; box-shadow: 0 16px 34px rgba(25, 31, 40, .14); }
.ep-res__img--sprite { aspect-ratio: 1; background-color: #fbf3e6; }
.ep-res__name { font-size: 13px; font-weight: 800; }
.ep-res__title { margin: 6px 0 0; font-size: 25px; line-height: 1.32; font-weight: 800; letter-spacing: -0.035em; white-space: pre-line; }
.ep-res__desc { margin: 10px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--ep-body); }
.ep-res__why { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--ep-bg2); font-size: 13px; line-height: 1.6; color: var(--ep-ink2); }
.ep-res__why b { display: block; font-size: 12px; color: var(--ep-hint); margin-bottom: 2px; }
.ep-res__recs { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.ep-res__rec { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--ep-line); border-radius: 12px; background: #fff; color: var(--ep-ink); text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .2s; }
.ep-res__rec:hover { border-color: var(--ep-line2); box-shadow: 0 8px 20px rgba(25, 31, 40, .06); }
.ep-res__rec b { display: block; font-size: 14.5px; }
.ep-res__rec span { display: block; font-size: 12.5px; color: var(--ep-sub); margin-top: 1px; }
.ep-res__rec .ep-ico:last-child { margin-left: auto; color: var(--ep-hint); }
.ep-res__acts { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.ep-res__fine { margin: 12px 0 0; font-size: 12px; color: var(--ep-hint); line-height: 1.6; }
.ep-axes { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.ep-axis__lab { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--ep-hint); }
.ep-axis__lab .is-win { color: var(--ep-ink); }
.ep-axis__bar { position: relative; margin-top: 4px; height: 8px; border-radius: 4px; background: var(--ep-soft); overflow: hidden; }
.ep-axis__bar i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--ep-blue); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
@media (max-width: 640px) {
  .ep-q__text { font-size: 19px; }
  .ep-opts { grid-template-columns: 1fr; }
  .ep-opts--ox { grid-template-columns: 1fr 1fr; }
  .ep-opts--ox .ep-opt { min-height: 96px; font-size: 44px; }
  .ep-test__start { grid-template-columns: 1fr; gap: 16px; }
  .ep-test__cover { aspect-ratio: 16 / 9; order: -1; }
  .ep-test__h { font-size: 22px; }
  .ep-pair { grid-template-columns: 1fr; }
  .ep-pair .ep-opt { min-height: 76px; }
  .ep-res { grid-template-columns: 1fr; gap: 14px; }
  .ep-res__img { aspect-ratio: 16 / 9; }
  .ep-res__img--sprite { aspect-ratio: 1; width: min(200px, 62%); justify-self: center; }
  .ep-res__title { font-size: 22px; }
}

/* ── 게임별 ────────────────────────────────────────── */
/* 룰렛 */
.ep-wheel { position: relative; width: min(400px, 100%); aspect-ratio: 1; }
.ep-wheel__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ep-wheel__rot { transform-origin: 200px 200px; transform-box: view-box; }
.ep-wheel__pin { position: absolute; left: 50%; top: -6px; width: 34px; height: 44px; margin-left: -17px; z-index: 2; filter: drop-shadow(0 3px 4px rgba(25, 31, 40, .3)); transform-origin: 50% 30%; transition: transform .06s; }
.ep-wheel__hub { position: absolute; left: 50%; top: 50%; width: 27%; height: 27%; transform: translate(-50%, -50%); z-index: 2; border-radius: 50%; border: 4px solid #fff; background: var(--ep-blue); color: #fff; box-shadow: 0 6px 16px rgba(49, 130, 246, .38); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; font-weight: 900; font-size: clamp(14px, 4vw, 19px); letter-spacing: 0; }
.ep-wheel__hub small { font-size: clamp(9px, 2.4vw, 11px); font-weight: 700; opacity: .85; }
.ep-wheel__hub:disabled { cursor: progress; }
.ep-wheel__hub:hover:not(:disabled) { background: var(--ep-blue-d); }
.ep-legend { width: 100%; max-width: 440px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; margin: 0; padding: 0; list-style: none; }
.ep-legend li { display: flex; align-items: center; gap: 8px; min-height: 26px; font-size: 13px; color: var(--ep-body); font-weight: 600; }
.ep-legend li i { width: 20px; height: 20px; flex: none; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: 800; color: var(--ep-ink); }
.ep-legend li.is-win { color: var(--ep-ink); font-weight: 800; }
.ep-fine { margin: 0; font-size: 12px; line-height: 1.55; color: var(--ep-hint); text-align: center; }

/* 딱 5초 */
.ep-five { position: relative; width: min(260px, 72vw); aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 0 0 14px var(--ring, #e5e8eb), 0 22px 44px rgba(25, 31, 40, .12); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: box-shadow .3s; }
.ep-five__num { font-size: clamp(54px, 17vw, 76px); font-weight: 900; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; transition: opacity .25s, color .25s; }
.ep-five__sub { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--ep-sub); text-align: center; padding: 0 16px; }
.ep-check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 14px; font-weight: 600; color: var(--ep-ink2); cursor: pointer; }
.ep-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ep-ink); }

/* 타이밍 스톱 */
.ep-tm { position: relative; width: min(440px, 100%); padding: 22px 18px 18px; border-radius: 14px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(25, 31, 40, .06); }
.ep-tm__num { position: absolute; right: 16px; top: 10px; font-size: 32px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }
.ep-tm__cap { font-size: 14px; font-weight: 800; text-align: center; margin: 0 0 18px; padding: 0 60px; }
.ep-tm__bat { position: relative; height: 70px; margin-right: 12px; border: 5px solid var(--ep-ink); border-radius: 12px; background: #fff; }
.ep-tm__bat::after { content: ""; position: absolute; right: -14px; top: 50%; width: 9px; height: 26px; margin-top: -13px; border-radius: 0 4px 4px 0; background: var(--ep-ink); }
.ep-tm__fill { position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc((100% - 8px) * var(--p, 0) / 100); border-radius: 6px; background: linear-gradient(90deg, #ffe08a, #ffcba4); }
.ep-tm__zone { position: absolute; top: 0; bottom: 0; left: 42%; width: 16%; background: repeating-linear-gradient(135deg, rgba(31, 157, 85, .22) 0 6px, rgba(31, 157, 85, .08) 6px 12px); border-left: 2px dashed #1f9d55; border-right: 2px dashed #1f9d55; }
.ep-tm__mark { position: absolute; top: -10px; bottom: -10px; left: calc(var(--p, 0) * 1%); width: 4px; margin-left: -2px; border-radius: 2px; background: var(--ep-ink); }
.ep-tm__scale { display: flex; justify-content: space-between; margin: 10px 12px 0 0; font-size: 12px; font-weight: 700; color: var(--ep-sub); }
.ep-tm__scale b { color: #1f9d55; }
.ep-tm__thermo { position: relative; width: 52px; height: 240px; margin: 0 auto; }
.ep-tm__tube { position: absolute; left: 12px; top: 0; width: 28px; height: 200px; border-radius: 14px; border: 4px solid var(--ep-ink); background: #fff; overflow: hidden; }
.ep-tm__tube .ep-tm__fill { left: 0; top: auto; bottom: 0; width: 100%; height: calc(var(--p, 0) * 1%); border-radius: 0; background: linear-gradient(0deg, #ff8a7a, #ffb4a2); }
.ep-tm__tube .ep-tm__zone { left: 0; right: 0; width: auto; top: auto; bottom: 42%; height: 16%; border: 0; border-top: 2px dashed #1f9d55; border-bottom: 2px dashed #1f9d55; }
.ep-tm__bulb { position: absolute; left: 0; bottom: 0; width: 52px; height: 52px; border-radius: 50%; border: 4px solid var(--ep-ink); background: #ff8a7a; }
.ep-tm__lights { display: flex; justify-content: center; gap: 12px; margin-bottom: 18px; }
.ep-tm__lights i { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--ep-ink); background: #3a3f47; transition: background .15s, box-shadow .15s; }
.ep-tm__lights i.is-r { background: var(--ep-red); box-shadow: 0 0 16px rgba(229, 72, 77, .6); }
.ep-tm__lights i.is-y { background: #ffd66b; box-shadow: 0 0 16px rgba(255, 214, 107, .7); }
.ep-tm__lights i.is-g { background: #1f9d55; box-shadow: 0 0 16px rgba(31, 157, 85, .6); }
.ep-tm__track { position: relative; height: 18px; border-radius: 9px; background: var(--ep-soft); border: 1px solid var(--ep-line); }
.ep-tm__track .ep-tm__zone { border-radius: 0; }
.ep-tm__track .ep-tm__mark { top: 50%; bottom: auto; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 3px 8px rgba(25, 31, 40, .3); }

/* 사다리 */
.ep-ld { width: min(520px, 100%); }
.ep-ld__row { display: grid; gap: 6px; }
.ep-ld__start { justify-self: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ep-line2); background: #fff; color: var(--ep-ink); font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 3px 8px rgba(25, 31, 40, .08); transition: background .15s, color .15s, border-color .15s; }
.ep-ld__start:hover:not(:disabled) { border-color: var(--ep-ink); }
.ep-ld__start.is-cur { background: var(--ep-ink); border-color: var(--ep-ink); color: #fff; }
.ep-ld__start:disabled { cursor: default; }
.ep-ld__start.is-used { opacity: .4; }
.ep-ld svg { display: block; width: 100%; height: auto; margin: 4px 0; }
.ep-ld__end { min-height: 52px; padding: 6px 4px; border-radius: 10px; border: 1.5px dashed var(--ep-line2); background: rgba(255, 255, 255, .7); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12.5px; font-weight: 800; line-height: 1.3; color: var(--ep-off); }
.ep-ld__end.is-open { border-style: solid; border-color: var(--ep-line); background: #fff; color: var(--ep-ink); }
.ep-ld__end.is-win { border-color: #f1c66b; background: #fff8e6; }
.ep-ld__end.is-last { box-shadow: 0 0 0 3px rgba(49, 130, 246, .25); }

/* 그림 퍼즐 */
.ep-jg { width: min(420px, 100%); display: flex; flex-direction: column; gap: 14px; align-items: center; }
.ep-jg__board { position: relative; width: 100%; aspect-ratio: 1; display: grid; gap: 2px; padding: 2px; border-radius: 12px; background: #e9dcc8; box-shadow: 0 12px 28px rgba(60, 35, 15, .14); overflow: hidden; }
.ep-jg__ghost { position: absolute; inset: 2px; border-radius: 10px; background: url('../img/picnic.jpg') center / cover no-repeat; opacity: .28; pointer-events: none; transition: opacity .2s; }
.ep-jg__cell { position: relative; border: 0; padding: 0; border-radius: 3px; background: rgba(255, 253, 249, .55); cursor: pointer; background-repeat: no-repeat; transition: box-shadow .15s; }
.ep-jg__cell.is-placed { cursor: default; }
.ep-jg__cell.is-bad { box-shadow: inset 0 0 0 3px var(--ep-red); }
.ep-jg__cell.is-hint { box-shadow: inset 0 0 0 3px #f1c66b; animation: epBlink .8s 3; }
.ep-jg__tray { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-height: 52px; }
.ep-jg__piece { width: 52px; height: 52px; padding: 0; border: 3px solid #fff; border-radius: 6px; background-color: #fff; background-repeat: no-repeat; box-shadow: 0 4px 10px rgba(60, 35, 15, .16); cursor: pointer; transition: transform .15s, border-color .15s; }
.ep-jg__piece.is-pick { border-color: var(--ep-ink); transform: translateY(-4px) rotate(0deg) !important; }
.ep-seg { display: inline-flex; border: 1px solid var(--ep-line2); border-radius: 5px; overflow: hidden; }
.ep-seg button { height: 34px; padding: 0 12px; border: 0; background: #fff; color: var(--ep-ink2); font-size: 13px; font-weight: 700; cursor: pointer; }
.ep-seg button + button { border-left: 1px solid var(--ep-line2); }
.ep-seg button[aria-pressed="true"] { background: var(--ep-ink); color: #fff; }
@media (max-width: 640px) { .ep-jg__piece { width: 44px; height: 44px; } }

/* 짝 찾기 */
.ep-mem { width: min(460px, 100%); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; perspective: 900px; }
.ep-mem__card { position: relative; aspect-ratio: 1; border: 0; padding: 0; background: none; cursor: pointer; transform-style: preserve-3d; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.ep-mem__card.is-up { transform: rotateY(180deg); cursor: default; }
.ep-mem__face { position: absolute; inset: 0; border-radius: 10px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.ep-mem__back { background: radial-gradient(circle, #fff 0 9px, transparent 10px) center / 100% 100% no-repeat, linear-gradient(160deg, #dbeafe, #ede9ff); border: 1px solid #c9dafb; box-shadow: inset 0 -4px 0 rgba(25, 31, 40, .06); }
.ep-mem__front { transform: rotateY(180deg); background-color: #fbf3e6; background-repeat: no-repeat; border: 2px solid var(--ep-ink); box-shadow: 0 6px 14px rgba(60, 35, 15, .14); }
.ep-mem__card.is-done .ep-mem__front { border-color: #9cc4a8; }
.ep-mem__card.is-bad .ep-mem__front { border-color: var(--ep-red); }
.ep-mem__card.is-peek .ep-mem__front { border-color: #f1c66b; }

/* 슬라이딩 */
.ep-sl { display: flex; gap: 18px; align-items: flex-start; justify-content: center; flex-wrap: wrap; width: 100%; }
.ep-sl__board { position: relative; width: min(330px, 100%); aspect-ratio: 1; border-radius: 12px; background: #d8dcf3; box-shadow: 0 12px 28px rgba(25, 31, 40, .14); outline: none; }
.ep-sl__board:focus-visible { box-shadow: 0 0 0 3px var(--ep-blue), 0 12px 28px rgba(25, 31, 40, .14); }
.ep-sl__tile { position: absolute; left: 0; top: 0; width: calc((100% - 16px) / 3); height: calc((100% - 16px) / 3); padding: 0; border: 3px solid rgba(255, 255, 255, .45); border-radius: 8px; background-image: url('../img/robot.jpg'); background-size: 300% 300%; background-repeat: no-repeat; cursor: not-allowed; transition: transform .18s ease, border-color .15s; }
.ep-sl__tile.is-move { border-color: #fff; cursor: pointer; }
.ep-sl__tile.is-hint { border-color: #f1c66b; }
.ep-sl__tile.is-bad { border-color: var(--ep-red); }
.ep-sl__tile span { position: absolute; left: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--ep-ink); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.ep-sl__ref { width: 108px; flex: none; text-align: center; font-size: 12px; font-weight: 700; color: var(--ep-sub); }
.ep-sl__ref div { aspect-ratio: 1; margin-bottom: 6px; border-radius: 8px; border: 3px solid #fff; background: url('../img/robot.jpg') center / cover no-repeat; box-shadow: 0 6px 14px rgba(25, 31, 40, .14); }

/* 세 글자 */
.ep-wd { width: min(420px, 100%); display: flex; flex-direction: column; gap: 14px; align-items: center; }
.ep-wd__pic { width: 100%; height: 170px; border-radius: 12px; border: 4px solid #fff; box-shadow: 0 10px 24px rgba(60, 35, 15, .14); }
.ep-wd__clue { text-align: center; }
.ep-wd__clue small { display: block; font-size: 12px; font-weight: 800; color: var(--ep-warn); }
.ep-wd__clue b { display: block; margin-top: 3px; font-size: 16px; line-height: 1.45; }
.ep-wd__boxes { display: flex; gap: 8px; }
.ep-wd__box { width: 60px; height: 60px; border-radius: 10px; border: 2px solid #e0d3bf; background: #fff8ef; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 900; }
.ep-wd__box.is-on { border-color: var(--ep-ink); background: #fff; }
.ep-wd__boxes.is-wrong .ep-wd__box { border-color: var(--ep-red); }
.ep-wd__letters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; width: 100%; }
.ep-wd__l { height: 50px; border-radius: 10px; border: 1px solid var(--ep-line2); background: #fff; font-size: 20px; font-weight: 800; color: var(--ep-ink); cursor: pointer; }
.ep-wd__l:disabled { opacity: .28; cursor: default; }
@media (max-width: 400px) { .ep-wd__letters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 빙고 */
.ep-bg { width: min(420px, 100%); display: flex; flex-direction: column; gap: 14px; }
.ep-bg__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ep-bg__cell { aspect-ratio: 1; border-radius: 12px; border: 1.5px solid var(--ep-line); background: #fff; color: var(--ep-ink2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.ep-bg__cell b { font-size: 14px; }
.ep-bg__cell small { font-size: 11.5px; font-weight: 600; color: var(--ep-hint); }
.ep-bg__cell.is-done { background: var(--ep-ok-bg); border-color: var(--ep-ok-b); color: var(--ep-ok); cursor: default; }
.ep-bg__cell.is-done small { color: var(--ep-ok); }
.ep-bg__cell.is-line { background: var(--ep-ink); border-color: var(--ep-ink); color: #fff; }
.ep-bg__cell.is-line small { color: rgba(255, 255, 255, .75); }
.ep-bg__cell.is-cur { border-color: var(--ep-blue); box-shadow: 0 0 0 3px rgba(49, 130, 246, .2); }
.ep-bg__task { padding: 16px; border-radius: 12px; border: 1px solid var(--ep-line); background: #fff; animation: epPop .25s ease both; }
.ep-bg__task p { margin: 4px 0 12px; font-size: 16px; line-height: 1.45; font-weight: 800; }
.ep-bg__task small { font-size: 12px; font-weight: 800; color: var(--ep-blue-d); }
.ep-bg__fb { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--ep-bad); }

/* 숨은 그림 */
.ep-hd { width: min(420px, 100%); display: flex; flex-direction: column; gap: 12px; align-items: center; }
.ep-hd__pic { position: relative; width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: url('../img/picnic.jpg') center / cover no-repeat; box-shadow: 0 10px 24px rgba(60, 35, 15, .16); cursor: crosshair; touch-action: manipulation; }
.ep-hd__mark { position: absolute; width: 13%; aspect-ratio: 1; border-radius: 50%; border: 4px solid #1f9d55; box-shadow: 0 0 0 3px #fff; transform: translate(-50%, -50%); pointer-events: none; animation: epPop .3s both; }
.ep-hd__miss { position: absolute; width: 26px; height: 26px; transform: translate(-50%, -50%); color: #fff; pointer-events: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); animation: epShake .3s both; }
.ep-hd__hint { position: absolute; width: 24%; aspect-ratio: 1; margin: -12% 0 0 -12%; border-radius: 50%; border: 3px solid #ffd66b; pointer-events: none; animation: epRing 1s ease-out 3; }
.ep-hd__list { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.ep-hd__list li { height: 30px; display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; border-radius: 5px; background: #fff; border: 1px solid var(--ep-line); font-size: 12.5px; font-weight: 700; color: var(--ep-ink2); }
.ep-hd__list li.is-found { background: var(--ep-ok-bg); border-color: var(--ep-ok-b); color: var(--ep-ok); text-decoration: line-through; }

/* 한 접시 */
.ep-pl { width: min(400px, 100%); display: flex; flex-direction: column; gap: 16px; align-items: center; }
.ep-pl__plate { position: relative; width: min(320px, 100%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff 0 57%, #eef1f5 58% 61%, #fff 62%); box-shadow: 0 16px 34px rgba(25, 31, 40, .14); }
.ep-pl__slot { position: absolute; width: 31%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 2px dashed var(--ep-line2); background-color: rgba(247, 248, 250, .8); background-repeat: no-repeat; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; cursor: pointer; transition: border-color .2s; }
.ep-pl__slot span { font-size: 11px; font-weight: 800; color: var(--ep-body); background: rgba(255, 255, 255, .92); padding: 1px 6px; border-radius: 6px; }
.ep-pl__slot.is-ready { border-color: var(--ep-ink); }
.ep-pl__slot.is-full { border: 2px solid var(--ep-ok-b); cursor: default; background-color: #fbf3e6; }
.ep-pl__slot.is-full span { display: none; }
.ep-pl__items { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; width: 100%; }
.ep-pl__item { aspect-ratio: 1; padding: 0; border: 2px solid #fff; border-radius: 12px; background-color: #fbf3e6; background-repeat: no-repeat; box-shadow: 0 4px 10px rgba(60, 35, 15, .14); cursor: pointer; transition: transform .15s, border-color .15s, opacity .2s; }
.ep-pl__item.is-pick { border-color: var(--ep-ink); transform: translateY(-4px); }
.ep-pl__item:disabled { opacity: .22; cursor: default; }
@media (max-width: 420px) { .ep-pl__items { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 70%; } }

/* 그림 퀴즈 */
.ep-pq__pic { width: min(240px, 64vw); aspect-ratio: 1; border-radius: 50%; border: 8px solid #fff; background: url('../img/picnic.jpg') no-repeat; box-shadow: 0 16px 34px rgba(60, 35, 15, .18); transition: background-size .8s cubic-bezier(.2, .8, .2, 1), background-position .8s cubic-bezier(.2, .8, .2, 1); align-self: center; }

/* 사진 프레임 */
.ep-pf { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.ep-pf__view { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ep-pf__canvas { display: block; max-width: 100%; height: auto; border-radius: 6px; box-shadow: 0 16px 34px rgba(25, 31, 40, .16); background: #fff; }
.ep-pf__size { font-size: 12px; color: var(--ep-hint); font-weight: 600; }
.ep-pf__ctl { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ep-pf__k { margin: 0 0 8px; font-size: 13px; font-weight: 800; }
.ep-pf__row { display: flex; flex-wrap: wrap; gap: 6px; }
.ep-pf__frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ep-pf__frame { min-height: 74px; padding: 8px 4px; border: 1px solid var(--ep-line2); border-radius: 8px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ep-ink2); cursor: pointer; }
.ep-pf__frame i { width: 26px; height: 32px; border-radius: 3px; border: 1px solid var(--ep-line2); }
.ep-pf__frame[aria-pressed="true"] { border: 1.5px solid var(--ep-ink); background: var(--ep-bg2); }
.ep-range { display: grid; grid-template-columns: 52px minmax(0, 1fr) 44px; align-items: center; gap: 8px; font-size: 13px; color: var(--ep-body); font-weight: 600; }
.ep-range input { width: 100%; accent-color: var(--ep-ink); }
.ep-range output { text-align: right; font-variant-numeric: tabular-nums; }
.ep-pf__status { padding: 10px 12px; border-radius: 8px; background: var(--ep-bg2); font-size: 13px; line-height: 1.5; color: var(--ep-body); }
.ep-pf__status.is-ok { background: var(--ep-ok-bg); color: var(--ep-ok); }
.ep-pf__status.is-warn { background: var(--ep-warn-bg); color: var(--ep-warn); }
.ep-pf__status.is-bad { background: var(--ep-bad-bg); color: var(--ep-bad); }
.ep-pf__tag { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 8px; background: var(--ep-bg2); font-size: 13px; font-weight: 700; color: var(--ep-ink2); }
@media (max-width: 760px) { .ep-pf { grid-template-columns: 1fr; } }

/* ── 2026-10-16 추가: 결과 카드·밸런스 게임 ──────────────── */
.ep-res__card { display: flex; align-items: center; justify-content: center; padding: 18px; text-align: center; font-size: clamp(26px, 4.4vw, 38px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; overflow-wrap: anywhere; }
.ep-pair--vs { position: relative; gap: 16px; grid-auto-rows: 1fr; }
.ep-pair--vs::after { content: "VS"; position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 3px solid #fff; background: var(--ep-ink); color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .02em; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(25, 31, 40, .18); pointer-events: none; }
.ep-pair--vs .ep-opt { padding: 18px 22px 18px 16px; }
.ep-pair--vs .ep-opt:first-child small { color: var(--ep-blue-d); }
.ep-pair--vs .ep-opt:last-child small { color: var(--ep-red); }
.ep-pair--vs .ep-opt:last-child { padding: 18px 16px 18px 22px; }
@media (max-width: 640px) { .ep-pair--vs .ep-opt, .ep-pair--vs .ep-opt:last-child { padding: 14px 16px; } }

/* ── 2026-10-16 추가 미니게임 14종(enp-play-games2.js) ─────── */
/* 점수·남은 시간 */
.ep-hud { width: min(440px, 100%); display: flex; flex-direction: column; gap: 6px; }
.ep-hud__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; color: var(--ep-sub); }
.ep-hud__row b { margin-left: 4px; font-size: 22px; font-weight: 900; color: var(--ep-ink); font-variant-numeric: tabular-nums; }
.ep-timebar { height: 6px; border-radius: 3px; background: rgba(25, 31, 40, .08); overflow: hidden; }
.ep-timebar i { display: block; height: 100%; width: 100%; border-radius: 3px; background: var(--ep-blue); }

/* 반응 속도 */
.ep-rx { width: min(460px, 100%); min-height: 250px; padding: 24px 20px; border: 0; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; transition: background .12s, color .12s, box-shadow .2s; box-shadow: 0 14px 32px rgba(25, 31, 40, .12); }
.ep-rx b { font-size: clamp(30px, 8vw, 40px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ep-rx small { max-width: 320px; font-size: 13.5px; font-weight: 700; line-height: 1.5; opacity: .88; }
.ep-rx[data-state="idle"] { background: var(--ep-ink); color: #fff; }
.ep-rx[data-state="wait"] { background: #e5484d; color: #fff; }
.ep-rx[data-state="go"] { background: #1f9d55; color: #fff; }
.ep-rx[data-state="early"] { background: var(--ep-warn-bg); color: var(--ep-warn); box-shadow: inset 0 0 0 2px #f3c9a0; }
.ep-rx[data-state="shown"], .ep-rx[data-state="done"] { background: #fff; color: var(--ep-blue-d); box-shadow: inset 0 0 0 2px var(--ep-blue-b), 0 14px 32px rgba(25, 31, 40, .08); }
.ep-rx__log { min-height: 30px; margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ep-rx__log li { height: 30px; display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; border-radius: 5px; background: #fff; border: 1px solid var(--ep-line); font-size: 12.5px; font-weight: 700; color: var(--ep-sub); }
.ep-rx__log b { color: var(--ep-ink); font-variant-numeric: tabular-nums; }

/* 간식 잡기 */
.ep-mole { width: min(380px, 100%); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; touch-action: manipulation; }
.ep-mole__hole { position: relative; aspect-ratio: 1; border-radius: 16px; background: linear-gradient(180deg, #fffaf2, #f6ead8); box-shadow: inset 0 0 0 1px rgba(60, 35, 15, .07); overflow: hidden; }
.ep-mole__hole::before { content: ""; position: absolute; left: 13%; right: 13%; bottom: 9%; height: 24%; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #6e4a35, #4a3022); }
.ep-mole__item { position: absolute; left: 19%; bottom: 17%; width: 62%; aspect-ratio: 1; padding: 0; border: 3px solid #fff; border-radius: 50%; background-color: #fbf3e6; box-shadow: 0 6px 14px rgba(60, 35, 15, .22); cursor: pointer; transform: translateY(140%); transition: transform .13s ease-out; -webkit-tap-highlight-color: transparent; }
.ep-mole__item.is-up { transform: translateY(0); }
.ep-mole__item.is-hit { transform: translateY(0) scale(.82); border-color: #ffd66b; }

/* 풍선 */
.ep-bal { position: relative; width: min(520px, 100%); height: 340px; border-radius: 14px; background: linear-gradient(180deg, #eef4ff, #fff6e0); box-shadow: inset 0 0 0 1px rgba(25, 31, 40, .05); overflow: hidden; touch-action: manipulation; }
.ep-bal__b { position: absolute; bottom: 0; left: calc((100% - 56px) * var(--x, 50) / 100); width: 56px; height: 68px; padding: 0; border: 0; border-radius: 50% 50% 47% 47% / 56% 56% 44% 44%; background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .6) 0 11%, transparent 12%), var(--c, #9ec5fe); box-shadow: inset -6px -8px 0 rgba(25, 31, 40, .07); cursor: pointer; will-change: transform; -webkit-tap-highlight-color: transparent; }
.ep-bal__b::before { content: ""; position: absolute; left: 50%; bottom: -5px; width: 9px; height: 9px; margin-left: -4.5px; background: var(--c, #9ec5fe); transform: rotate(45deg); border-radius: 2px; }
.ep-bal__b::after { content: ""; position: absolute; left: 50%; top: calc(100% + 3px); width: 1.5px; height: 34px; margin-left: -.75px; background: rgba(78, 89, 104, .4); }
.ep-bal__b.is-pop { pointer-events: none; animation: epPopOut .18s ease-out forwards; }
@keyframes epPopOut { to { opacity: 0; scale: 1.5; } }

/* 다른 색 찾기 */
.ep-col { width: min(360px, 100%); display: grid; gap: 6px; }
.ep-col__t { aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px; cursor: pointer; transition: transform .12s; -webkit-tap-highlight-color: transparent; }
.ep-col__t:active { transform: scale(.94); }
.ep-col__t:disabled { cursor: default; }
.ep-col__t.is-odd { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ep-ink); position: relative; z-index: 1; }

/* 순서 기억하기 */
.ep-sim { position: relative; width: min(320px, 82vw); aspect-ratio: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ep-sim__p { padding: 0; border: 0; background: var(--l); box-shadow: inset 0 0 0 2px rgba(25, 31, 40, .05); cursor: pointer; transition: background .12s, box-shadow .12s, transform .12s; -webkit-tap-highlight-color: transparent; }
.ep-sim__p:nth-child(1) { border-radius: 100% 14px 14px 14px; }
.ep-sim__p:nth-child(2) { border-radius: 14px 100% 14px 14px; }
.ep-sim__p:nth-child(3) { border-radius: 14px 14px 14px 100%; }
.ep-sim__p:nth-child(4) { border-radius: 14px 14px 100% 14px; }
.ep-sim__p:disabled { cursor: default; }
.ep-sim[data-mode="input"] .ep-sim__p:hover { box-shadow: inset 0 0 0 3px var(--c); }
.ep-sim__p.is-lit { background: var(--c); box-shadow: 0 0 0 4px #fff, 0 0 26px var(--c); transform: scale(1.03); }
.ep-sim__c { position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; box-shadow: 0 0 0 8px rgba(255, 255, 255, .7), 0 8px 20px rgba(25, 31, 40, .14); display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.ep-sim__c b { font-size: 30px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.ep-sim__c small { margin-top: 3px; font-size: 11.5px; font-weight: 700; color: var(--ep-hint); }
.ep-sim[data-mode="input"] .ep-sim__c b { color: var(--ep-blue-d); }

/* 1부터 차례로 */
.ep-ord__clock { font-size: 30px; font-weight: 900; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ep-ord { width: min(360px, 100%); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ep-ord__n { aspect-ratio: 1; padding: 0; border: 1.5px solid var(--ep-line); border-radius: 12px; background: #fff; color: var(--ep-ink); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; cursor: pointer; box-shadow: 0 3px 8px rgba(25, 31, 40, .05); transition: background .15s, border-color .15s, color .15s, transform .1s; -webkit-tap-highlight-color: transparent; }
.ep-ord__n:active:not(:disabled) { transform: scale(.94); }
.ep-ord__n.is-done { background: var(--ep-ok-bg); border-color: var(--ep-ok-b); color: var(--ep-ok); box-shadow: none; cursor: default; }
.ep-ord.is-idle .ep-ord__n { opacity: .45; cursor: default; }

/* 틀린 그림 찾기 */
.ep-spot { width: min(760px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ep-spot__pic { border: 4px solid #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 24px rgba(25, 31, 40, .12); background: #fff; }
.ep-spot__svg { display: block; width: 100%; height: auto; cursor: crosshair; touch-action: manipulation; }
.ep-spot__mark { animation: epFade .25s both; }
.ep-spot__miss { pointer-events: none; animation: epFade .15s both; }
@media (max-width: 640px) { .ep-spot { grid-template-columns: 1fr; gap: 10px; } }

/* 낱말 찾기 */
.ep-ws { width: min(360px, 100%); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.ep-ws__c { aspect-ratio: 1; padding: 0; border: 1px solid var(--ep-line); border-radius: 8px; background: #fff; color: var(--ep-ink); font-size: 19px; font-weight: 800; cursor: pointer; transition: background .12s, border-color .12s, color .12s; -webkit-tap-highlight-color: transparent; }
.ep-ws__c:hover { border-color: var(--ep-off); }
.ep-ws__c.is-found { background: #f4f0ff; border-color: #c3b1e1; color: #6b4de6; }
.ep-ws__c.is-sel { background: var(--ep-ink); border-color: var(--ep-ink); color: #fff; }

/* 업다운 숫자 */
.ep-ud { width: min(340px, 100%); display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.ep-ud__show { height: 96px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ep-line), 0 10px 24px rgba(25, 31, 40, .06); display: flex; align-items: center; justify-content: center; font-size: 56px; font-weight: 900; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ep-ud__range { text-align: center; font-size: 13px; font-weight: 700; color: var(--ep-sub); }
.ep-ud__pad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ep-ud__k { height: 52px; padding: 0; border: 1px solid var(--ep-line2); border-radius: 10px; background: #fff; color: var(--ep-ink); font-size: 20px; font-weight: 800; cursor: pointer; font-variant-numeric: tabular-nums; -webkit-tap-highlight-color: transparent; }
.ep-ud__k:active:not(:disabled) { background: var(--ep-bg2); }
.ep-ud__k.is-del { font-size: 14px; color: var(--ep-sub); }
.ep-ud__k.is-ok { background: var(--ep-ink); border-color: var(--ep-ink); color: #fff; font-size: 15px; }
.ep-ud__k:disabled { opacity: .35; cursor: default; }
.ep-ud__k.is-ok:disabled { opacity: 1; background: var(--ep-line2); border-color: var(--ep-line2); color: #fff; }
.ep-ud__log { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ep-ud__log li { height: 30px; display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; border-radius: 5px; background: #fff; border: 1px solid var(--ep-line); font-size: 12.5px; font-weight: 700; color: var(--ep-sub); }
.ep-ud__log li b { color: var(--ep-ink); font-variant-numeric: tabular-nums; }
.ep-ud__log li.is-ok { background: var(--ep-ok-bg); border-color: var(--ep-ok-b); color: var(--ep-ok); }

/* 긁는 복권 */
.ep-scr { position: relative; width: min(360px, 100%); aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; box-shadow: 0 16px 34px rgba(25, 31, 40, .14); border: 4px solid #fff; background: #fff; }
.ep-scr__under { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; text-align: center; background: linear-gradient(160deg, #fff6e0, #fde7ee); }
.ep-scr__eye { font-size: 12.5px; font-weight: 800; color: var(--ep-warn); }
.ep-scr__big { font-size: 30px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.2; }
.ep-scr__big.is-lose { font-size: 24px; color: var(--ep-sub); }
.ep-scr__cv { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; transition: opacity .4s ease; }

/* 행운 캡슐 */
.ep-cap { width: min(250px, 72vw); display: flex; flex-direction: column; align-items: center; }
.ep-cap__dome { position: relative; z-index: 1; width: 100%; aspect-ratio: 1; border-radius: 50%; border: 6px solid #fff; background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .95) 0 8%, rgba(255, 255, 255, .4) 9% 34%, rgba(232, 243, 255, .65) 35%); box-shadow: inset 0 0 0 2px rgba(25, 31, 40, .05), 0 14px 30px rgba(25, 31, 40, .12); overflow: hidden; }
.ep-cap__dome i { position: absolute; width: 25%; aspect-ratio: 1; margin: -12.5% 0 0 -12.5%; border-radius: 50%; background: radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .7) 0 9%, transparent 10%), linear-gradient(180deg, var(--c) 0 47%, rgba(25, 31, 40, .14) 47% 53%, #fff 53%); box-shadow: inset 0 0 0 1.5px rgba(25, 31, 40, .14), 0 3px 6px rgba(25, 31, 40, .1); }
.ep-cap__dome.is-turn i { animation: epJiggle .3s ease-in-out 3; }
.ep-cap__dome.is-turn i:nth-child(2n) { animation-direction: reverse; }
@keyframes epJiggle { 25% { transform: translate(-6px, -8px) rotate(-14deg); } 75% { transform: translate(6px, -3px) rotate(12deg); } }
.ep-cap__body { position: relative; width: 84%; margin-top: -30px; padding: 40px 22px 20px; border-radius: 18px 18px 14px 14px; background: linear-gradient(180deg, #ff9b8c, #e5484d); box-shadow: 0 14px 30px rgba(229, 72, 77, .24); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ep-cap__knob { position: relative; width: 56px; height: 56px; flex: none; border-radius: 50%; background: #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .16); }
.ep-cap__knob::before { content: ""; position: absolute; left: 50%; top: 8px; bottom: 8px; width: 12px; margin-left: -6px; border-radius: 6px; background: #ffc9c0; }
.ep-cap__knob.is-turn { animation: epTurn .9s cubic-bezier(.3, .7, .3, 1); }
@keyframes epTurn { to { transform: rotate(360deg); } }
.ep-cap__slot { width: 70px; height: 62px; flex: none; border-radius: 12px; background: #4a3022; box-shadow: inset 0 4px 10px rgba(0, 0, 0, .35); display: flex; align-items: center; justify-content: center; }
.ep-cap__ball { width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%; background: radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .7) 0 9%, transparent 10%), linear-gradient(180deg, var(--c) 0 47%, rgba(25, 31, 40, .14) 47% 53%, #fff 53%); box-shadow: 0 4px 10px rgba(0, 0, 0, .3), inset 0 0 0 1.5px rgba(25, 31, 40, .14); cursor: pointer; animation: epDrop .5s cubic-bezier(.3, 1.4, .5, 1) both; }
.ep-cap__ball.is-open { animation: epPopOut .3s ease-out forwards; }
@keyframes epDrop { from { opacity: 0; transform: translateY(-30px) scale(.6); } to { opacity: 1; transform: none; } }
.ep-cap__res { min-height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; }
.ep-cap__res small { font-size: 12px; font-weight: 700; color: var(--ep-hint); }
.ep-cap__res b { font-size: 24px; font-weight: 900; letter-spacing: -0.03em; animation: epPop .3s both; }
.ep-cap__res b.is-lose { color: var(--ep-sub); font-size: 20px; }

/* 주사위 */
.ep-dice { display: flex; gap: 24px; justify-content: center; }
.ep-die { width: 104px; height: 104px; padding: 16px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ep-line), inset 0 -6px 0 rgba(25, 31, 40, .05), 0 12px 26px rgba(25, 31, 40, .12); display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 6px; }
.ep-die i { border-radius: 50%; }
.ep-die i.is-on { background: var(--ep-ink); }
.ep-die.is-roll { animation: epRoll .22s ease-in-out infinite; }
@keyframes epRoll { 25% { transform: rotate(-12deg) translateY(-6px); } 75% { transform: rotate(10deg) translateY(-3px); } }
.ep-dice__sum { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* 가위바위보 */
.ep-rps { width: min(460px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.ep-rps__side { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ep-rps__side small { font-size: 12.5px; font-weight: 800; color: var(--ep-sub); }
.ep-rps__hand { width: 112px; height: 112px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ep-line), 0 10px 24px rgba(25, 31, 40, .08); display: flex; align-items: center; justify-content: center; color: var(--ep-ink2); transition: background .2s, box-shadow .2s, color .2s; }
.ep-rps__side[data-r="win"] .ep-rps__hand { background: var(--ep-ok-bg); box-shadow: inset 0 0 0 2px var(--ep-ok-b); color: var(--ep-ok); }
.ep-rps__side[data-r="lose"] .ep-rps__hand { background: var(--ep-bad-bg); box-shadow: inset 0 0 0 2px #f3b8ba; color: var(--ep-bad); }
.ep-rps__side[data-r="draw"] .ep-rps__hand { background: var(--ep-soft); }
.ep-rps__q { font-size: 40px; font-weight: 900; line-height: 1; color: var(--ep-line2); }
.ep-rps__mid { text-align: center; }
.ep-rps__score { font-size: 30px; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ep-rps__call { margin-top: 2px; min-width: 72px; font-size: 14px; font-weight: 800; color: var(--ep-blue-d); }
.ep-rps__btns { width: min(460px, 100%); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ep-rps__b { height: 100px; padding: 8px; border: 1px solid var(--ep-line2); border-radius: 12px; background: #fff; color: var(--ep-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 15px; font-weight: 800; cursor: pointer; transition: border-color .15s, background .15s; -webkit-tap-highlight-color: transparent; }
.ep-rps__b:hover:not(:disabled) { border-color: var(--ep-ink); }
.ep-rps__b:disabled { opacity: .45; cursor: default; }
.ep-rps__ico { display: block; }

/* 포춘 쿠키 */
.ep-fc__wrap { height: 160px; display: flex; align-items: center; justify-content: center; }
.ep-fc { position: relative; width: 210px; height: 128px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; animation: epBob 2.6s ease-in-out infinite; }
.ep-fc:disabled { cursor: default; animation: none; }
.ep-fc__l, .ep-fc__r { position: absolute; top: 0; width: 53%; height: 100%; background: radial-gradient(ellipse at 50% 28%, #fbe2a4, #eeb55b 62%, #d79639); box-shadow: inset 0 -8px 14px rgba(160, 95, 20, .25), 0 12px 24px rgba(160, 95, 20, .2); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.ep-fc__l { left: 0; border-radius: 110px 16px 22px 110px / 90px 16px 22px 90px; transform-origin: 90% 70%; }
.ep-fc__r { right: 0; border-radius: 16px 110px 110px 22px / 16px 90px 90px 22px; transform-origin: 10% 70%; }
.ep-fc:hover:not(:disabled) .ep-fc__l { transform: rotate(-3deg); }
.ep-fc:hover:not(:disabled) .ep-fc__r { transform: rotate(3deg); }
.ep-fc.is-open .ep-fc__l { transform: translateX(-30px) rotate(-24deg); }
.ep-fc.is-open .ep-fc__r { transform: translateX(30px) rotate(24deg); }
@keyframes epBob { 50% { transform: translateY(-6px); } }
.ep-fc__slip { width: min(440px, 100%); min-height: 0; text-align: center; }
.ep-fc__slip.is-on { padding: 20px 18px 16px; border-radius: 12px; background: #fff; box-shadow: 0 12px 28px rgba(25, 31, 40, .1); border: 1px solid var(--ep-line); animation: epPop .38s cubic-bezier(.2, .8, .2, 1) both; }
.ep-fc__slip small { font-size: 12px; font-weight: 800; color: var(--ep-warn); }
.ep-fc__slip p { margin: 8px 0 0; font-size: 19px; line-height: 1.5; font-weight: 800; letter-spacing: -0.02em; }
.ep-fc__meta { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ep-fc__meta span { height: 30px; display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; border-radius: 5px; background: var(--ep-soft); font-size: 12.5px; font-weight: 700; color: var(--ep-sub); }
.ep-fc__meta b { color: var(--ep-ink); }

@media (max-width: 640px) {
  .ep-rx { min-height: 210px; }
  .ep-bal { height: 300px; }
  .ep-rps__hand { width: 88px; height: 88px; }
  .ep-rps__hand .ep-rps__ico { width: 52px; height: 52px; }
  .ep-rps__score { font-size: 24px; }
  .ep-rps__b { height: 88px; }
  .ep-die { width: 88px; height: 88px; padding: 13px; border-radius: 18px; }
  .ep-ud__show { height: 84px; font-size: 48px; }
  .ep-fc__slip p { font-size: 17px; }
}
@media (max-width: 360px) {
  .ep-mole { gap: 8px; }
  .ep-ws__c { font-size: 16px; }
  .ep-ord__n { font-size: 19px; }
  .ep-rps { gap: 6px; }
  .ep-rps__hand { width: 76px; height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .ep-fc, .ep-die.is-roll, .ep-cap__dome.is-turn i, .ep-cap__knob.is-turn, .ep-cap__ball { animation: none; }
  .ep-fc__l, .ep-fc__r, .ep-mole__item { transition: none; }
}

/* ── 2026-10-16 3차 11종(enp-play-games3.js 물리 5 · games4.js 추천 6) ─────── */
.ep-stats { width: min(440px, 100%); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; font-size: 13px; font-weight: 700; color: var(--ep-sub); }
.ep-stats b { margin-left: 2px; color: var(--ep-ink); font-weight: 900; font-variant-numeric: tabular-nums; }
@keyframes epSquash { 50% { scale: 1.12 .86; } }
@keyframes epBump { 50% { scale: 1.08; } }
@keyframes epPress { 50% { scale: .93; } }

/* 행성 합치기 */
.ep-merge { width: min(340px, 100%); }
.ep-merge__cv { display: block; width: 100%; height: auto; aspect-ratio: 320 / 440; border-radius: 14px; box-shadow: 0 16px 34px rgba(27, 35, 64, .28); cursor: crosshair; touch-action: pan-y; outline: none; }
.ep-merge__cv:focus-visible { box-shadow: 0 0 0 3px var(--ep-blue), 0 16px 34px rgba(27, 35, 64, .28); }

/* 모래 테트리스 */
.ep-sand__top { width: min(280px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ep-sand__top .ep-stats { width: auto; flex-direction: column; align-items: flex-start; gap: 2px; }
.ep-sand__nextbox { display: flex; align-items: center; gap: 6px; padding: 4px 8px 4px 10px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--ep-line); }
.ep-sand__nextbox small { font-size: 12px; font-weight: 700; color: var(--ep-sub); }
.ep-sand__next { display: block; width: 44px; height: 44px; }
.ep-sand { width: min(280px, 100%); border-radius: 12px; outline: none; }
.ep-sand:focus-visible { box-shadow: 0 0 0 3px var(--ep-blue); }
.ep-sand__cv { display: block; width: 100%; height: auto; aspect-ratio: 240 / 400; border-radius: 12px; image-rendering: pixelated; box-shadow: inset 0 0 0 1px var(--ep-line), 0 12px 28px rgba(60, 35, 15, .12); background: #fffdf8; }
.ep-sand__ctl { width: min(320px, 100%); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ep-sand__btn { height: 50px; padding: 0; border: 1px solid var(--ep-line2); border-radius: 10px; background: #fff; color: var(--ep-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.ep-sand__btn:active { background: var(--ep-bg2); }

/* 농구 슛 */
.ep-hoop { position: relative; width: min(460px, 100%); height: 300px; border-radius: 14px; overflow: hidden; cursor: pointer; touch-action: manipulation; outline: none; -webkit-tap-highlight-color: transparent;
  background: radial-gradient(ellipse 70% 45% at 70% 20%, rgba(255, 255, 255, .7), transparent 70%), linear-gradient(180deg, #E8F1FF, #F7F3EA); box-shadow: inset 0 0 0 1px rgba(25, 31, 40, .05); }
.ep-hoop:focus-visible { box-shadow: 0 0 0 3px var(--ep-blue); }
.ep-hoop__floor { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: repeating-linear-gradient(90deg, #E2B985 0 46px, #D9AE78 46px 92px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5); }
.ep-hoop__board { position: absolute; right: 40px; top: 36px; width: 104px; height: 72px; border-radius: 6px; background: rgba(255, 255, 255, .92); box-shadow: inset 0 0 0 3px #D1D6DB, 0 6px 14px rgba(25, 31, 40, .1); }
.ep-hoop__board i { position: absolute; left: 32px; top: 30px; width: 40px; height: 30px; border: 3px solid #E5484D; border-bottom: 0; }
.ep-hoop__rim { position: absolute; right: 62px; top: 100px; width: 60px; height: 12px; z-index: 4; border: 4px solid #F08A3C; border-radius: 50%; box-shadow: 0 2px 0 rgba(0, 0, 0, .08); }
.ep-hoop__net { position: absolute; right: 66px; top: 106px; width: 52px; height: 42px; z-index: 3; transform-origin: 50% 0; clip-path: polygon(0 0, 100% 0, 82% 100%, 18% 100%);
  background: repeating-linear-gradient(60deg, transparent 0 6px, rgba(255, 255, 255, .95) 6px 8px), repeating-linear-gradient(-60deg, transparent 0 6px, rgba(255, 255, 255, .95) 6px 8px), rgba(209, 214, 219, .35); }
.ep-hoop__net.is-swish { animation: epSwish .45s ease-out; }
@keyframes epSwish { 40% { scale: 1 1.25; } 100% { scale: 1; } }
.ep-hoop__ball { position: absolute; left: 0; top: 0; width: 44px; height: 44px; z-index: 2; border-radius: 50%; will-change: transform;
  background: linear-gradient(90deg, transparent 47%, rgba(80, 30, 5, .55) 47% 53%, transparent 53%), radial-gradient(ellipse 60% 100% at 0% 50%, transparent 62%, rgba(80, 30, 5, .5) 63% 68%, transparent 69%), radial-gradient(ellipse 60% 100% at 100% 50%, transparent 62%, rgba(80, 30, 5, .5) 63% 68%, transparent 69%), radial-gradient(circle at 35% 30%, #FFB26B, #F08A3C 55%, #C2611F); box-shadow: 0 6px 12px rgba(25, 31, 40, .18); }
.ep-hoop__say { position: absolute; left: 16px; top: 14px; z-index: 5; font-size: 18px; font-weight: 900; letter-spacing: -0.02em; }
.ep-hoop__say.is-in { color: var(--ep-ok); animation: epPop .3s both; }
.ep-hoop__say.is-out { color: var(--ep-warn); }
.ep-meter__wrap { width: min(460px, 100%); display: flex; align-items: center; gap: 10px; }
.ep-meter__wrap small { flex: none; font-size: 12.5px; font-weight: 800; color: var(--ep-sub); }
.ep-meter { position: relative; flex: 1; height: 18px; border-radius: 9px; background: var(--ep-soft); box-shadow: inset 0 0 0 1px var(--ep-line); }
.ep-meter__zone { position: absolute; top: 0; bottom: 0; background: rgba(31, 157, 85, .32); box-shadow: inset 0 0 0 1.5px rgba(31, 157, 85, .6); }
.ep-meter__mark { position: absolute; top: -4px; bottom: -4px; width: 6px; margin-left: -3px; border-radius: 3px; background: var(--ep-ink); box-shadow: 0 0 0 2px #fff; }
.ep-hoop__log { display: flex; gap: 8px; }
.ep-hoop__log i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ep-line2); }
.ep-hoop__log i.is-in { background: #1f9d55; box-shadow: none; }
.ep-hoop__log i.is-out { background: var(--ep-line2); box-shadow: none; }

/* 공 튀기기 */
.ep-keepy { position: relative; width: min(460px, 100%); height: 380px; border-radius: 14px; overflow: hidden; touch-action: manipulation; background: linear-gradient(180deg, #E8F3FF 0%, #F4F0FF 70%, #EAFAF1 100%); box-shadow: inset 0 -16px 0 #DCF7E9, inset 0 0 0 1px rgba(25, 31, 40, .05); }
.ep-keepy__count { position: absolute; left: 0; right: 0; top: 18px; text-align: center; font-size: 64px; font-weight: 900; letter-spacing: -0.04em; color: rgba(25, 31, 40, .1); font-variant-numeric: tabular-nums; pointer-events: none; }
.ep-keepy__ball { position: absolute; left: 0; top: 0; z-index: 2; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; will-change: transform; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .85) 0 12%, transparent 13%), radial-gradient(circle, #fff 0 13%, rgba(25, 31, 40, .08) 14% 16%, transparent 17%), conic-gradient(from -20deg, #FFB4A2 0 22%, #fff 0 33%, #9EC5FE 0 55%, #fff 0 66%, #FFE08A 0 88%, #fff 0); box-shadow: inset -6px -8px 0 rgba(25, 31, 40, .08), 0 6px 14px rgba(25, 31, 40, .14); }
.ep-keepy__ball.is-hit { animation: epSquash .14s ease-out; }
.ep-keepy__shadow { position: absolute; left: 0; bottom: 10px; width: 68px; height: 12px; border-radius: 50%; background: rgba(25, 31, 40, .45); filter: blur(2px); pointer-events: none; }

/* 경품 받기 */
.ep-catch { position: relative; width: min(460px, 100%); height: 360px; border-radius: 14px; overflow: hidden; touch-action: none; outline: none; background: linear-gradient(180deg, #FFF6E0, #FFF1E4 75%, #F6E6D2); box-shadow: inset 0 0 0 1px rgba(60, 35, 15, .06); }
.ep-catch:focus-visible { box-shadow: 0 0 0 3px var(--ep-blue); }
.ep-catch__basket { position: absolute; left: 0; bottom: 12px; width: 92px; height: 42px; z-index: 2; border-radius: 6px 6px 18px 18px; background: repeating-linear-gradient(90deg, #C8A27A 0 9px, #B98F65 9px 18px); box-shadow: inset 0 4px 0 #A97E55, 0 8px 14px rgba(60, 35, 15, .18); }
.ep-catch__basket i { position: absolute; left: 20px; right: 20px; top: -18px; height: 24px; border: 4px solid #A97E55; border-bottom: 0; border-radius: 20px 20px 0 0; }
.ep-catch__basket.is-got { animation: epBump .18s ease-out; }
.ep-catch__item { position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; background-color: #fbf3e6; box-shadow: 0 6px 12px rgba(60, 35, 15, .18); will-change: transform; pointer-events: none; }
.ep-catch__item.is-got { animation: epPopOut .2s ease-out forwards; }

/* 10초 연타 */
.ep-tap__bar { width: min(360px, 100%); display: flex; align-items: center; gap: 10px; }
.ep-tap__bar .ep-timebar { flex: 1; }
.ep-tap__left { flex: none; min-width: 48px; text-align: right; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ep-tap { width: 210px; height: 210px; padding: 0; border: 0; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #fff; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  background: radial-gradient(circle at 35% 30%, #FFCBA4, #F08A3C 70%); box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .08), 0 16px 32px rgba(240, 138, 60, .35); }
.ep-tap b { font-size: 64px; font-weight: 900; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ep-tap small { font-size: 14px; font-weight: 700; opacity: .92; }
.ep-tap.is-tap { animation: epPress .1s ease-out; }

/* 글자 색 맞히기 */
.ep-stroop__word { min-height: 92px; display: flex; align-items: center; justify-content: center; font-size: clamp(48px, 13vw, 64px); font-weight: 900; letter-spacing: -0.03em; }
.ep-stroop__word.is-new { animation: epPop .18s both; }
.ep-stroop__opts { width: min(380px, 100%); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ep-stroop__b { height: 64px; padding: 0 12px; border: 1.5px solid var(--ep-line2); border-radius: 12px; background: #fff; color: var(--ep-ink); display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 17px; font-weight: 800; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ep-stroop__b:active { background: var(--ep-bg2); }
.ep-stroop__b i { width: 20px; height: 20px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }

/* 슬롯머신 */
.ep-slot { --rs: 84px; position: relative; padding: 16px 62px 20px 18px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; background: linear-gradient(180deg, #FF9B8C, #E5484D); box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .1), 0 16px 34px rgba(229, 72, 77, .25); }
.ep-slot__top { margin-bottom: 10px; font-size: 13px; font-weight: 800; letter-spacing: .04em; color: #fff; }
.ep-slot__win { display: flex; gap: 8px; padding: 10px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .06); }
.ep-slot__reel { width: var(--rs); height: var(--rs); overflow: hidden; border-radius: 10px; background: #FBF3E6; box-shadow: inset 0 10px 10px -8px rgba(0, 0, 0, .25), inset 0 -10px 10px -8px rgba(0, 0, 0, .25); }
.ep-slot__strip { display: flex; flex-direction: column; will-change: transform; }
.ep-slot__strip i { display: block; flex: none; width: var(--rs); height: var(--rs); }
.ep-slot__lever { position: absolute; right: 14px; top: 34px; width: 30px; height: 120px; padding: 0; border: 0; background: none; cursor: pointer; }
.ep-slot__lever::before { content: ""; position: absolute; left: 12px; top: 20px; width: 6px; height: 90px; border-radius: 3px; background: rgba(255, 255, 255, .75); }
.ep-slot__lever i { position: absolute; left: 3px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: #FFE08A; box-shadow: inset -3px -4px 0 rgba(0, 0, 0, .12), 0 3px 6px rgba(0, 0, 0, .2); }
.ep-slot__lever.is-pull i { animation: epLever .5s ease-in-out; }
@keyframes epLever { 45% { transform: translateY(78px); } }
.ep-slot__res, .ep-plk__res { min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; }
.ep-slot__res small, .ep-plk__res small { font-size: 12px; font-weight: 700; color: var(--ep-hint); }
.ep-slot__res b, .ep-plk__res b { font-size: 23px; font-weight: 900; letter-spacing: -0.03em; animation: epPop .3s both; }
.ep-slot__res b.is-lose, .ep-plk__res b.is-lose { color: var(--ep-sub); font-size: 19px; }

/* 핀볼 뽑기 */
.ep-plk { width: min(340px, 100%); padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 14px 30px rgba(25, 31, 40, .1), inset 0 0 0 1px var(--ep-line); }
.ep-plk__svg { display: block; width: 100%; height: auto; }
.ep-plk__peg { fill: #C9CED4; transform-box: fill-box; transform-origin: center; transition: fill .3s; }
.ep-plk__peg.is-hit { fill: #F59AB5; animation: epBump .25s ease-out; }
.ep-plk__ball { fill: #3182F6; stroke: #fff; stroke-width: 2; filter: drop-shadow(0 2px 2px rgba(25, 31, 40, .25)); }
.ep-plk__slot rect { fill: #F2F4F6; transition: fill .3s; }
.ep-plk__slot text { font-size: 12px; font-weight: 800; fill: var(--ep-ink2); }
.ep-plk__slot.is-lose rect { fill: #F9FAFB; }
.ep-plk__slot.is-lose text { fill: var(--ep-off); }
.ep-plk__slot.is-win rect { fill: #FFE08A; }
.ep-plk__slot.is-win text { fill: var(--ep-ink); }

/* 삼목 */
.ep-ttt__score { font-size: 13px; font-weight: 700; color: var(--ep-sub); }
.ep-ttt { width: min(300px, 80vw); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ep-ttt__c { aspect-ratio: 1; padding: 0; border: 1.5px solid var(--ep-line); border-radius: 14px; background: #fff; color: var(--ep-ink); font-size: clamp(40px, 12vw, 56px); font-weight: 900; line-height: 1; cursor: pointer; box-shadow: 0 4px 10px rgba(25, 31, 40, .05); -webkit-tap-highlight-color: transparent; }
.ep-ttt__c:hover:not(:disabled) { border-color: var(--ep-off); }
.ep-ttt__c:disabled { cursor: default; }
.ep-ttt__c.is-o { color: var(--ep-blue); animation: epPop .2s both; }
.ep-ttt__c.is-x { color: var(--ep-red); animation: epPop .2s both; }
.ep-ttt__c.is-line { background: var(--ep-ok-bg); border-color: var(--ep-ok-b); }

/* 숫자 야구 */
.ep-bb { width: min(340px, 100%); display: flex; flex-direction: column; gap: 10px; }
.ep-bb__slots { display: flex; justify-content: center; gap: 10px; }
.ep-bb__slot { width: 64px; height: 72px; border-radius: 12px; border: 2px dashed var(--ep-line2); background: rgba(255, 255, 255, .6); display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ep-bb__slot.is-on { border: 2px solid var(--ep-ink); background: #fff; }
.ep-bb__info { text-align: center; font-size: 12.5px; font-weight: 700; color: var(--ep-sub); }
.ep-bb__pad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ep-bb__k { height: 50px; padding: 0; border: 1px solid var(--ep-line2); border-radius: 10px; background: #fff; color: var(--ep-ink); font-size: 20px; font-weight: 800; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ep-bb__k:disabled { opacity: .35; cursor: default; }
.ep-bb__k.is-del { font-size: 14px; color: var(--ep-sub); }
.ep-bb__k.is-ok { grid-column: span 2; background: var(--ep-ink); border-color: var(--ep-ink); color: #fff; font-size: 15px; }
.ep-bb__k.is-ok:disabled { opacity: 1; background: var(--ep-line2); border-color: var(--ep-line2); }
.ep-bb__log { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; max-height: 196px; overflow: auto; }
.ep-bb__log li { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 32px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--ep-line); font-size: 13px; font-weight: 800; }
.ep-bb__log li b { letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.ep-bb__log span { padding: 2px 8px; border-radius: 4px; font-size: 12.5px; }
.ep-bb__log .is-s { background: var(--ep-ok-bg); color: var(--ep-ok); }
.ep-bb__log .is-b { background: var(--ep-warn-bg); color: var(--ep-warn); }
.ep-bb__log .is-out { background: var(--ep-soft); color: var(--ep-sub); }

@media (max-width: 640px) {
  .ep-hoop { height: 270px; }
  .ep-keepy { height: 340px; }
  .ep-catch { height: 330px; }
  .ep-tap { width: 180px; height: 180px; }
  .ep-tap b { font-size: 54px; }
  .ep-slot { --rs: 64px; padding: 14px 48px 18px 14px; }
  .ep-slot__lever { right: 8px; }
}
@media (max-width: 360px) {
  .ep-slot { --rs: 56px; padding-right: 44px; }
  .ep-slot__win { gap: 6px; padding: 8px; }
  .ep-bb__slot { width: 56px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .ep-hoop__net.is-swish, .ep-keepy__ball.is-hit, .ep-catch__basket.is-got, .ep-tap.is-tap, .ep-slot__lever.is-pull i, .ep-plk__peg.is-hit { animation: none; }
}

/* ── 2026-10-16 4차 7종(enp-play-games5.js) ─────────────── */
/* 따라 그리기 */
.ep-trace { width: min(340px, 100%); }
.ep-trace__cv { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--ep-line), 0 14px 30px rgba(107, 77, 230, .12); cursor: crosshair; touch-action: none; }
.ep-trace__res { min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; }
.ep-trace__res b { font-size: 30px; font-weight: 900; letter-spacing: -0.03em; color: var(--ep-ink); animation: epPop .3s both; }
.ep-trace__res small { font-size: 12.5px; font-weight: 700; color: var(--ep-sub); }

/* 반으로 자르기 */
.ep-cut { position: relative; width: min(460px, 100%); height: 230px; border-radius: 14px; overflow: hidden; cursor: pointer; touch-action: manipulation; outline: none; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(180deg, #F7F8FA, #EEF1F5); box-shadow: inset 0 0 0 1px var(--ep-line); }
.ep-cut:focus-visible { box-shadow: 0 0 0 3px var(--ep-blue); }
.ep-cut__shape { position: absolute; left: 0; top: 50%; width: 200px; height: 136px; margin-top: -78px; will-change: transform; }
.ep-cut__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.ep-cut__shape.is-cut .is-l { transform: translateX(-14px) rotate(-4deg); }
.ep-cut__shape.is-cut .is-r { transform: translateX(14px) rotate(4deg); }
.ep-cut__knife { position: absolute; left: 50%; top: 0; bottom: 0; z-index: 2; border-left: 2px dashed rgba(229, 72, 77, .75); pointer-events: none; }
.ep-cut__knife i { position: absolute; left: -10px; top: 6px; width: 20px; height: 34px; border-radius: 5px 5px 2px 2px; background: #333D4B; box-shadow: 0 3px 6px rgba(25, 31, 40, .25); }
.ep-cut__knife i::after { content: ""; position: absolute; left: 5px; top: 34px; width: 10px; height: 12px; background: #C9CED4; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.ep-cut__say { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; pointer-events: none; }
.ep-cut__say b { font-size: 21px; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; animation: epPop .3s both; }
.ep-cut__say small { font-size: 12.5px; font-weight: 800; }
.ep-cut__say.is-ok { color: var(--ep-ok); }
.ep-cut__say.is-no { color: var(--ep-warn); }
.ep-cut__log { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ep-cut__log span { height: 30px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 5px; background: #fff; box-shadow: inset 0 0 0 1px var(--ep-line); font-size: 12.5px; font-weight: 700; color: var(--ep-hint); font-variant-numeric: tabular-nums; }
.ep-cut__log span.is-ok { background: var(--ep-ok-bg); box-shadow: inset 0 0 0 1px var(--ep-ok-b); color: var(--ep-ok); }
.ep-cut__log span.is-no { color: var(--ep-ink2); }

/* 높이 쌓기 */
.ep-stack { position: relative; width: min(380px, 100%); height: 380px; border-radius: 14px; overflow: hidden; cursor: pointer; touch-action: manipulation; outline: none; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(180deg, #E8F1FF, #F4F0FF 60%, #FFF6E0); box-shadow: inset 0 0 0 1px rgba(25, 31, 40, .05); }
.ep-stack:focus-visible { box-shadow: 0 0 0 3px var(--ep-blue); }
.ep-stack__count { position: absolute; left: 0; right: 0; top: 14px; text-align: center; font-size: 56px; font-weight: 900; letter-spacing: -0.04em; color: rgba(25, 31, 40, .1); font-variant-numeric: tabular-nums; pointer-events: none; }
.ep-stack__tower { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; transition: transform .35s ease; }
.ep-stack__b { position: absolute; height: 26px; border-radius: 4px; box-shadow: inset 0 -4px 0 rgba(25, 31, 40, .08), inset 0 2px 0 rgba(255, 255, 255, .55); }
.ep-stack__b.is-move { box-shadow: inset 0 -4px 0 rgba(25, 31, 40, .08), 0 0 0 2px rgba(255, 255, 255, .9), 0 6px 12px rgba(25, 31, 40, .12); }
.ep-stack__b.is-perfect { animation: epGlow .45s ease-out; }
@keyframes epGlow { 0% { box-shadow: 0 0 0 0 rgba(255, 224, 138, .9); } 100% { box-shadow: 0 0 0 10px rgba(255, 224, 138, 0); } }
.ep-stack__b.is-chip, .ep-stack__b.is-fall { animation: epChip .7s ease-in forwards; }
@keyframes epChip { to { transform: translateY(160px) rotate(18deg); opacity: 0; } }
.ep-stack__say { position: absolute; left: 0; right: 0; top: 80px; text-align: center; font-size: 22px; font-weight: 900; color: var(--ep-ok); opacity: 0; pointer-events: none; }
.ep-stack__say.is-on { animation: epSay .6s ease-out; }
@keyframes epSay { 0% { opacity: 0; transform: translateY(8px); } 30% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* 미로 찾기 */
.ep-maze { width: min(340px, 100%); border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--ep-line), 0 12px 26px rgba(25, 31, 40, .08); touch-action: none; outline: none; }
.ep-maze:focus-visible { box-shadow: 0 0 0 3px var(--ep-blue); }
.ep-maze__svg { display: block; width: 100%; height: auto; }
.ep-maze__wall { fill: none; stroke: var(--ep-ink); stroke-width: 3; stroke-linecap: round; }
.ep-maze__me { fill: var(--ep-blue); stroke: #fff; stroke-width: 3; }
.ep-maze__goal { fill: #B7E4C7; stroke: #1F9D55; stroke-width: 2; }
.ep-maze__dot { fill: rgba(49, 130, 246, .22); }
.ep-maze__pad { display: grid; grid-template-columns: repeat(3, 56px); grid-template-rows: 46px 46px; gap: 6px; }
.ep-maze__k { border: 1px solid var(--ep-line2); border-radius: 10px; background: #fff; color: var(--ep-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ep-maze__k:active { background: var(--ep-bg2); }
.ep-maze__k[data-dir="0"] { grid-column: 2; grid-row: 1; }
.ep-maze__k[data-dir="3"] { grid-column: 1; grid-row: 2; }
.ep-maze__k[data-dir="2"] { grid-column: 2; grid-row: 2; }
.ep-maze__k[data-dir="1"] { grid-column: 3; grid-row: 2; }

/* 다트 던지기 */
.ep-dart { position: relative; width: min(300px, 78vw); aspect-ratio: 1; cursor: crosshair; touch-action: manipulation; outline: none; -webkit-tap-highlight-color: transparent; }
.ep-dart:focus-visible { box-shadow: 0 0 0 3px var(--ep-blue); border-radius: 50%; }
.ep-dart__svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 12px 22px rgba(25, 31, 40, .16)); }
.ep-dart__ring { stroke: #191F28; stroke-width: 1.5; }
.ep-dart__ring.is-a { fill: #fff; }
.ep-dart__ring.is-b { fill: #FFB4A2; }
.ep-dart__bull { fill: #E5484D; }
.ep-dart__v { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(49, 130, 246, .9); pointer-events: none; }
.ep-dart__h { position: absolute; top: 50%; left: 0; right: 0; height: 2px; margin-top: -1px; background: rgba(49, 130, 246, .9); pointer-events: none; }
.ep-dart__dot { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 3px solid var(--ep-blue); background: rgba(255, 255, 255, .6); pointer-events: none; }
.ep-dart__pins i { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #FFE08A; border: 2.5px solid #191F28; box-shadow: 0 3px 6px rgba(25, 31, 40, .3); animation: epPop .2s both; }
.ep-dart__sum { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.ep-dart__sum span { height: 30px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 5px; background: #fff; box-shadow: inset 0 0 0 1px var(--ep-line); font-size: 12.5px; font-weight: 700; color: var(--ep-hint); }
.ep-dart__sum span.is-on { color: var(--ep-ink); }
.ep-dart__sum b { margin-left: 4px; font-size: 15px; font-weight: 900; }

/* 숫자 기억 */
.ep-recall__show { height: 96px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ep-line), 0 10px 24px rgba(25, 31, 40, .06); display: flex; align-items: center; justify-content: center; font-size: clamp(30px, 9vw, 40px); font-weight: 900; letter-spacing: .04em; color: var(--ep-hint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ep-recall__show.is-show { color: var(--ep-ink); }
.ep-recall__show.is-ok { color: var(--ep-ok); }
.ep-recall__show.is-wrong { color: var(--ep-bad); }
.ep-recall__bar { margin-top: -2px; }

/* 끝말잇기 */
.ep-chain { width: min(420px, 100%); display: flex; flex-direction: column; gap: 10px; }
.ep-chain__log { height: 220px; margin: 0; padding: 12px; list-style: none; overflow: auto; display: flex; flex-direction: column; gap: 8px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--ep-line); }
.ep-chain__log li { max-width: 78%; padding: 8px 12px; animation: epPop .2s both; }
.ep-chain__log li.is-cpu { align-self: flex-start; border-radius: 14px 14px 14px 4px; background: var(--ep-soft); }
.ep-chain__log li.is-me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--ep-blue-l); color: var(--ep-blue-d); }
.ep-chain__log li b { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.ep-chain__log li small { display: block; margin-top: 1px; font-size: 11.5px; font-weight: 700; color: var(--ep-hint); }
.ep-chain__need { text-align: center; font-size: 13.5px; font-weight: 700; color: var(--ep-sub); }
.ep-chain__need b { margin: 0 1px; padding: 0 4px; border-radius: 4px; background: #FFF1C8; color: var(--ep-ink); font-weight: 900; }
.ep-chain__form { display: flex; gap: 8px; }
.ep-chain__in { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1.5px solid var(--ep-line2); border-radius: 10px; background: #fff; color: var(--ep-ink); font-size: 17px; font-weight: 700; outline: none; }
.ep-chain__in:focus { border-color: var(--ep-blue); box-shadow: 0 0 0 3px rgba(49, 130, 246, .15); }
.ep-chain__in:disabled { background: var(--ep-bg2); }
.ep-chain__send { height: 48px; flex: none; }

@media (max-width: 640px) {
  .ep-cut { height: 210px; }
  .ep-stack { height: 340px; }
  .ep-chain__log { height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  .ep-cut__svg, .ep-stack__tower { transition: none; }
  .ep-stack__b.is-perfect, .ep-stack__say.is-on { animation: none; }
}

/* ── 5·6차(10-16~17) 카드 장면 그림(enp-play-scenes.js) — 사용자 "기존 느낌이랑 비슷하게": 기존 .ep-card__tile 문법(흰 테두리·그림자·기울기)을 그대로 쓰고 크기만 키운다 ── */
.ep-card__tile--scene { width: min(172px, 82%); height: auto; aspect-ratio: 3 / 2; margin: 0; padding: 0; border-radius: 18px; font-size: 0; }
.ep-card__tile--scene svg { display: block; width: 100%; height: 100%; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
a.ep-card:hover .ep-card__tile--scene svg, a.ep-card:focus-visible .ep-card__tile--scene svg { transform: scale(1.06); }
@media (max-width: 640px) { .ep-card__tile--scene { width: min(132px, 80%); height: auto; margin: 0; border-width: 3px; border-radius: 14px; } }
@media (prefers-reduced-motion: reduce) { .ep-card__tile--scene svg { transition: none; } a.ep-card:hover .ep-card__tile--scene svg, a.ep-card:focus-visible .ep-card__tile--scene svg { transform: none; } }

/* ── 10-17 폰 '전체' 보기 접기 — 분류마다 4장 + 'N개 더 보기'(폰 640px 이하만, PC·태블릿은 단추 숨김·카드 전부) ── */
.ep-fold { display: none; }
@media (max-width: 640px) {
  .ep-group--fold:not(.is-open) .ep-grid > .ep-card:nth-child(n+5) { display: none; }
  .ep-fold { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 48px; margin-top: 10px; padding: 0 16px; border: 1px solid var(--ep-line2); border-radius: 12px; background: #fff; color: var(--ep-ink); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .ep-fold:active { background: var(--ep-soft); }
  .ep-fold:focus-visible { outline: 2px solid var(--ep-blue); outline-offset: 2px; }
}
