/* 사이트 진입 이벤트 안내 팝업 (2026-10-28, 뷰 app/Views/layouts/event_popup.php · JS public/js/event-popup.js)
 * 이벤트 시뮬레이터 게임 창(css/pages/event-enchant.css)과 같은 금줄 테·돌 바탕 — 늘 어둡다. 색은 아래 지역 토큰(게이트 check-design-tokens 허용)
 * PC는 가운데 레이어, 폭 640px 이하는 아래에서 올라오는 시트 */
.evp {
  --evp-scrim: rgba(10, 12, 17, .55);
  --evp-gold-1: #e3bd62; --evp-gold-2: #8a5f1c; --evp-gold-3: #3b2708; --evp-gold-4: #c9a24c;
  --evp-stone: #2a2b2e; --evp-close: #3c3d40; --evp-slot: #0d0d0f; --evp-slot-line: #55565a;
  --evp-white: #f1f1f1; --evp-text: #e9e6dc; --evp-text-2: #d8d4ca; --evp-mute: #a7a39a; --evp-yellow: #ffe08a; --evp-cream: #fff3c4;
  --evp-go: #8a6a2a; --evp-go-hover: #a07c33; --evp-go-hi: rgba(255, 236, 170, .35);
  --evp-chip-bg: rgba(201, 162, 76, .18); --evp-stat: rgba(0, 0, 0, .35);
  --evp-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  --evp-serif: Georgia, 'Times New Roman', 'Noto Serif', serif;
  position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 16px;
}
.evp[hidden] { display: none; }
.evp-open { overflow: hidden; }
.evp__scrim { position: absolute; inset: 0; background: var(--evp-scrim); }
.evp__win { position: relative; width: 520px; max-width: 100%; max-height: calc(100vh - 32px); overflow: auto; padding: 5px; border-radius: var(--radius-sm); background: repeating-linear-gradient(135deg, var(--evp-gold-1) 0 2px, var(--evp-gold-2) 2px 4px, var(--evp-gold-3) 4px 5px); box-shadow: var(--evp-shadow); animation: evp-in .25s ease-out; }
.evp__in { position: relative; border: 1px solid #000; background: var(--evp-stone); color: var(--evp-text); text-align: center; }
.evp__x { position: absolute; top: 0; right: 0; z-index: 2; height: 28px; padding: 0 10px; border: 0; border-left: 1px solid #000; border-bottom: 1px solid #000; border-bottom-left-radius: var(--radius-sm); background: var(--evp-close); color: var(--evp-white); font-family: var(--evp-serif); font-size: var(--fs-12); font-weight: 700; cursor: pointer; }
.evp__hd { padding: 22px 24px 8px; }
.evp__chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--evp-chip-bg); border: 1px solid var(--evp-gold-4); color: var(--evp-yellow); font-size: var(--fs-12); font-weight: 700; }
.evp__t { margin: 12px 0 4px; font-family: var(--evp-serif); font-size: var(--fs-24); font-weight: 800; line-height: 1.25; color: var(--evp-white); text-shadow: 1px 1px 0 #000; }
.evp__d { margin: 0; font-size: var(--fs-14); color: var(--evp-text-2); }
.evp__slots { display: flex; justify-content: center; gap: 12px; padding: 14px 0 6px; }
.evp__slot { width: 72px; height: 72px; display: grid; place-items: center; background: var(--evp-slot); border: 2px solid var(--evp-slot-line); border-radius: var(--radius-sm); box-shadow: inset 0 0 0 2px #000, 0 0 0 1px #000; }
.evp__stats { display: flex; gap: 8px; margin: 12px 24px 0; text-align: left; }
.evp__stats div { flex: 1; padding: 10px 12px; background: var(--evp-stat); border-radius: var(--radius-sm); }
.evp__stats dt { font-size: var(--fs-11); color: var(--evp-mute); }
.evp__stats dd { margin: 4px 0 0; font-size: var(--fs-18); font-weight: 800; color: var(--evp-yellow); text-shadow: 1px 1px 0 #000; font-variant-numeric: tabular-nums; }
.evp__stats small { font-size: var(--fs-12); font-weight: 500; color: var(--evp-text-2); }
.evp__note { margin: 10px 24px 0; font-size: var(--fs-12); color: var(--evp-mute); line-height: 1.5; }
.evp__go { display: flex; align-items: center; justify-content: center; height: 48px; margin: 16px 24px 8px; border: 1px solid #000; border-radius: var(--radius-sm); background: var(--evp-go); color: var(--evp-cream); font-size: var(--fs-16); font-weight: 800; text-decoration: none; box-shadow: inset 0 1px 0 var(--evp-go-hi); text-shadow: 1px 1px 0 #000; }
.evp__go:hover { background: var(--evp-go-hover); color: #fff; }
.evp__foot { display: flex; justify-content: space-between; padding: 0 16px 10px; }
.evp__foot button { height: 36px; padding: 0 12px; border: 0; background: transparent; color: var(--evp-mute); font: inherit; font-size: var(--fs-13); cursor: pointer; }
.evp__foot button:hover { color: var(--evp-white); }
.evp button:focus, .evp a:focus { outline: none; }
.evp button:focus-visible, .evp a:focus-visible { box-shadow: 0 0 0 2px var(--evp-gold-1); }
@keyframes evp-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes evp-up { from { transform: translateY(100%); } to { transform: none; } }
@media (max-width: 640px) {
  .evp { align-items: flex-end; padding: 0; }
  .evp__win { width: 100%; max-height: 92vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 5px 5px 0; animation: evp-up .25s ease-out; }
  .evp__in { border-radius: var(--radius-md) var(--radius-md) 0 0; }
  .evp__hd { padding: 18px 16px 4px; }
  .evp__t { font-size: var(--fs-22); }
  .evp__d { font-size: var(--fs-13); }
  .evp__slot { width: 60px; height: 60px; }
  .evp__slot img { width: 48px; height: 48px; }
  .evp__stats { margin: 10px 12px 0; gap: 6px; }
  .evp__note { margin: 8px 12px 0; }
  .evp__go { margin: 12px 12px 6px; }
  .evp__foot { padding: 0 8px 14px; }
}
@media (prefers-reduced-motion: reduce) { .evp__win { animation: none; } }
