/* ============================================================
   NOVA CASINO (NOVA3) base — MOMO 틀(사이드바 + 가로 스트립) 위에 NOVA 스킨
   2026-11-20 MOMO base.css 의 토큰 값만 NOVA(STORM · 보라/자홍/시안)로 교체.
   · 구조·선택자·변수 이름은 MOMO 와 동일(마크업·JS 그대로). 값만 바뀐다.
   · --gold* / --lg-* / --grad-gold-* 는 MOMO CSS 가 곳곳에서 참조하므로 이름을 그대로 두고
     값만 보라 계열로 바꿨다(이름은 gold 지만 NOVA3 에서는 "포인트 색"이라는 뜻).
   · 진짜 금색은 금액·순위에만: --nv-gold
   · @import 는 CSS 규칙상 맨 위.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800;900&family=Noto+Sans+JP:wght@100..900&display=swap');

:root {
  /* ── 바탕 (심우주 보라) ── */
  --bg: #0b0524;
  --panel: #190c3d;        /* 카드·모달·인풋 */
  --panel-2: #23124f;      /* 한 단 떠 있는 면 */
  --panel-3: #2f1966;      /* 호버 */
  --line: #33206a;
  --bg-rgb: 11, 5, 36;
  --grad-sidebar: linear-gradient(180deg, #07031a 0%, #100732 48%, #1b0a48 100%);
  --text: #f6f1ff;
  --text-muted: #b6a8d8;
  --text-faint: #8274ab;

  /* ── NOVA 팔레트 ── */
  --nv-violet: #b865ff;
  --nv-violet-deep: #8b3dff;
  --nv-magenta: #ff2d8a;
  --nv-cyan: #74d3ff;
  --nv-gold: #ffd166;      /* 금액·순위 전용 */
  --nv-ink: #0b0524;
  --nv-font-en: 'Montserrat', 'Noto Sans JP', system-ui, sans-serif;
  --nv-icon: url("../images/nova/fx/fx-icon.svg");
  /* 채움(활성 메뉴·주 버튼): 보라 → 자홍 */
  --nv-fill: linear-gradient(100deg, #6a2fd0 0%, #a13fd6 52%, #e0348a 100%);
  /* 유리 패널 */
  --nv-glass: linear-gradient(180deg, rgba(40, 19, 92, .92) 0%, rgba(16, 7, 44, .94) 100%);
  /* 테두리를 따라 도는 전류 */
  --nv-current: conic-gradient(from var(--nova-angle),
      rgba(184, 101, 255, .3) 0deg, rgba(184, 101, 255, .3) 250deg,
      #74d3ff 300deg, #ffffff 330deg, #b865ff 350deg, rgba(184, 101, 255, .3) 360deg);

  /* ── MOMO 변수 이름 유지(값만 NOVA) ── */
  --gold: #b865ff;
  --gold-deep: #8b3dff;
  --gold-soft: rgba(184, 101, 255, .16);
  --gold-edge: rgba(184, 101, 255, .46);
  --on-gold: #ffffff;
  --accent: #74d3ff;
  --lg-shadow:    #2a0f5e;
  --lg-deep:      #6a2fd0;
  --lg-mid-dark:  #8b3dff;
  --lg-mid:       #b865ff;
  --lg-light:     #d9b8ff;
  --lg-highlight: #f1e4ff;
  --lg-cream:     #f7f0ff;
  --grad-gold-metal: var(--nv-fill);
  --grad-gold-plate-dark: linear-gradient(135deg, #26135a 0%, #1a0b40 45%, #120730 100%);
  --gold-line: var(--gold-edge);
  --gold-ink:  var(--lg-light);
  --grad-gold-plate: linear-gradient(135deg, #d9b8ff 0%, #b865ff 38%, #8b3dff 72%, #6a2fd0 100%);
  --danger: #ff4d6d;
  --sidebar-w: 300px;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(0, 0, 0, .45);
}
@property --nova-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes nvCurrent { to { --nova-angle: 360deg; } }
@keyframes nvGlint { 0%, 100% { transform: scale(.72); opacity: .6; } 50% { transform: scale(1.1); opacity: 1; } }
/* ── NOVA 로고 락업 (글자 + 번개 아이콘) — nova.js 가 사이드바(.side-logo)와 로그인(.login-wrap)에 넣는다 ──
   「O」 안의 번개가 2.2초 주기로 커졌다 작아지며 반짝인다. 크기는 쓰는 곳에서 .nv-logo__word 의 font-size 로 정한다(main.css N2 · login.css)
   번개 img 는 선택자를 한 단계 높여(.nv-logo .nv-logo__o img) 여백 0 고정 — MOMO 의 .side-logo img 같은 넓은 규칙에 밀리지 않게 */
.nv-logo { display: flex; flex-direction: column; align-items: center; line-height: 1; font-family: var(--nv-font-en); text-decoration: none; }
.nv-logo__word {
  display: inline-flex; align-items: center; gap: .04em; font-weight: 900; letter-spacing: .01em; color: #fff;
  text-shadow: 0 0 22px rgba(168, 85, 247, .55), 0 0 60px rgba(139, 61, 255, .35), 0 8px 30px rgba(0, 0, 0, .6);
}
.nv-logo__o {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: .98em; height: .98em; margin: 0 .015em; border-radius: 50%; border: .07em solid #fff;
  background: radial-gradient(circle, rgba(60, 20, 120, .95) 0%, rgba(20, 8, 50, .95) 70%);
  animation: nvRingPulse 2.2s ease-in-out infinite;
}
.nv-logo .nv-logo__o img {
  display: block; flex: none; width: 78%; height: 78%; max-width: none; margin: 0; padding: 0; border: 0; transition: none; transform: rotate(8deg);
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, .9)) drop-shadow(0 0 9px rgba(168, 85, 247, .9)); animation: nvBoltPulse 2.2s ease-in-out infinite;
}
@keyframes nvBoltPulse { 0%, 100% { transform: rotate(8deg) scale(.86); opacity: .7; } 50% { transform: rotate(8deg) scale(1.06); opacity: 1; } }
@keyframes nvRingPulse {
  0%, 100% { box-shadow: 0 0 0 .03em rgba(139, 61, 255, .55), 0 0 12px rgba(168, 85, 247, .55), inset 0 0 12px rgba(139, 61, 255, .4); }
  50% { box-shadow: 0 0 0 .03em rgba(184, 101, 255, .8), 0 0 26px rgba(184, 101, 255, 1), inset 0 0 20px rgba(184, 101, 255, .7); }
}
.nv-logo__sub { font-weight: 500; letter-spacing: .52em; text-indent: .52em; color: #b865ff; text-shadow: 0 0 16px rgba(184, 101, 255, .55); }
.nv-logo__tag { font-weight: 600; letter-spacing: .42em; text-indent: .42em; color: rgba(255, 255, 255, .92); }
/* 번개 깜빡임: 번쩍 2~3회 → 잔광이 천천히 사라짐 */
@keyframes nvFlicker {
  0%, 9.6% { opacity: 0; } 9.9% { opacity: .55; } 10.2% { opacity: 1; } 10.9% { opacity: .35; } 11.5% { opacity: .95; }
  12.6% { opacity: .6; } 14% { opacity: .75; } 17% { opacity: .35; } 21% { opacity: .12; } 26% { opacity: 0; }
  54.6% { opacity: 0; } 54.9% { opacity: .45; } 55.2% { opacity: .9; } 56% { opacity: .3; } 56.8% { opacity: .7; }
  59% { opacity: .3; } 64%, 100% { opacity: 0; }
}
@keyframes nvFlash {
  0%, 9.6% { opacity: 0; } 10.2% { opacity: .26; } 10.9% { opacity: .06; } 11.5% { opacity: .2; } 13% { opacity: .1; }
  17% { opacity: .05; } 22% { opacity: 0; } 54.6% { opacity: 0; } 55.2% { opacity: .16; } 56.8% { opacity: .06; } 60%, 100% { opacity: 0; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: 'Noto Sans JP', 'Noto Sans KR', 'Hiragino Kaku Gothic Pro', Meiryo, sans-serif;
  font-size: 17px; /* 주 사용자 50~60대: 본문 17px 기준 */
  /* 심우주: 위쪽 보라 성운 + 아래로 가라앉는 남보라 */
  background:
    radial-gradient(1200px 760px at 16% -8%, rgba(184, 101, 255, .20) 0%, rgba(184, 101, 255, 0) 62%),
    radial-gradient(1000px 700px at 96% 6%, rgba(255, 45, 138, .11) 0%, rgba(255, 45, 138, 0) 62%),
    radial-gradient(1300px 700px at 50% 108%, rgba(58, 27, 122, .5) 0%, rgba(58, 27, 122, 0) 66%),
    linear-gradient(180deg, #0d0629 0%, var(--bg) 55%, #070318 100%);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
/* 다크 필수: 브라우저 기본 input 글자색이 검정이라 어두운 바탕에서 안 보임 */
input, textarea, select { font-family: inherit; color: var(--text); color-scheme: dark; }
input::placeholder, textarea::placeholder { color: var(--text-faint); }
ul { list-style: none; }

/* ── 스크롤바: 테마 골드 톤 (사이드바는 main.css에서 숨김 유지) ── */
html { scrollbar-color: var(--gold) var(--bg); } /* Firefox */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 5px;
  border: 2px solid var(--bg); /* 트랙 색 테두리로 얇아 보이게 */
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; font-size: 18px; font-weight: 800;
  padding: 13px 24px; transition: filter .15s, background .15s;
}
.btn-gold { background: var(--grad-gold-metal); color: var(--on-gold); }
.btn-gold:hover { filter: brightness(1.08); }
.btn-outline { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.btn-outline:hover { background: var(--panel-3); border-color: var(--text-muted); }

/* ── 스플래시 (betgoat pulsate 참조) ── */
.page-splash {
  position: fixed; inset: 0; z-index: 9999999;
  display: flex; background: var(--bg);
  transition: opacity .4s ease;
}
.page-splash.fade-out { opacity: 0; pointer-events: none; }
.no-splash .page-splash { display: none; } /* 이번 세션에 이미 본 경우 (index.html head 스크립트) */

/* katsuwin 로더 기법: 정지 로고 + 링 2장이 서로 반대 방향·다른 속도로 회전 */
.splash-loader { position: relative; margin: auto; width: 340px; height: 340px; }
.splash-loader .loader-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.splash-loader .ring1 { animation: ring-spin 1.5s linear infinite; }
.splash-loader .ring2 { animation: ring-spin-rev 2.4s linear infinite; }
.page-splash .splash-logo {
  position: absolute; inset: 0; margin: auto;
  width: 210px; height: auto;
  animation: logo-breathe 2s ease-in-out infinite;
}
/* NOVA3: 링 색(HTML 의 금색 그라데이션 대신) */
.splash-loader .ring1 circle { stroke: #b865ff; filter: drop-shadow(0 0 10px rgba(184, 101, 255, .9)); }
.splash-loader .ring2 circle { stroke: #74d3ff; opacity: .7; }

/* ── NOVA3 로그인 성공 연출 「점화」 (2026-11-20) ───────────────────────────────
   로그인 후 홈에 처음 들어올 때 한 번(common.js MOMO.splash, 2초 뒤 0.4초 페이드). nova.js 4번이 #pageSplash 안에 .nv-sp 를 넣는다.
   줄거리: 불 꺼진 간판(글자 윤곽만) → 0.35초에 번개가 「O」로 내리꽂힘 + 섬광 · 충격파 → 번개 아이콘 점화
           → N · V · A 가 네온처럼 깜빡이며 차례로 켜짐 → CASINO 가 벌어지며 나타남 → 밑줄 전류가 끝까지 차면 홈으로
   MOMO 의 회전 링 로더(.splash-loader)는 쓰지 않는다 */
.page-splash { background: radial-gradient(ellipse 80% 60% at 50% 46%, #1b0a48 0%, #0b0524 55%, #05020f 100%); overflow: hidden; }
.page-splash .splash-loader { display: none; }
.nv-sp { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--nv-font-en); }
.nv-sp i { display: block; pointer-events: none; }
/* 별 */
.nv-sp__stars {
  position: absolute; inset: 0; opacity: .7;
  background-image:
    radial-gradient(1px 1px at 30px 40px, rgba(255, 255, 255, .9), transparent 2px),
    radial-gradient(1.5px 1.5px at 140px 110px, rgba(184, 101, 255, .9), transparent 2.5px),
    radial-gradient(1px 1px at 230px 60px, rgba(116, 211, 255, .8), transparent 2px),
    radial-gradient(1px 1px at 90px 190px, rgba(255, 255, 255, .6), transparent 2px),
    radial-gradient(1.5px 1.5px at 280px 220px, rgba(255, 255, 255, .7), transparent 2.5px);
  background-size: 320px 260px;
}
/* 화면 섬광 */
.nv-sp__flash {
  position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(circle at 50% 46%, #fff 0%, rgba(226, 190, 255, .9) 18%, rgba(184, 101, 255, .45) 40%, rgba(184, 101, 255, 0) 72%);
  animation: nvSpFlash 1.1s linear .35s both;
}
@keyframes nvSpFlash { 0% { opacity: 0; } 12% { opacity: .95; } 22% { opacity: .2; } 32% { opacity: .6; } 48% { opacity: .15; } 100% { opacity: 0; } }
/* 간판 */
.nv-sp__lockup { position: relative; display: flex; flex-direction: column; align-items: center; line-height: 1; animation: nvSpShake .4s linear .5s both; transition: transform .45s cubic-bezier(.55, 0, .85, .35), filter .45s ease; }
@keyframes nvSpShake { 0%, 100% { transform: translate(0, 0); } 15% { transform: translate(-7px, 4px); } 30% { transform: translate(6px, -3px); } 45% { transform: translate(-4px, 2px); } 60% { transform: translate(3px, -2px); } 80% { transform: translate(-1px, 1px); } }
.nv-sp__word { display: inline-flex; align-items: center; gap: .04em; font-size: clamp(64px, 11vw, 150px); font-weight: 900; letter-spacing: .01em; }
/* 글자: 꺼진 윤곽 → 깜빡이며 켜짐 */
.nv-sp__l { color: transparent; -webkit-text-stroke: 1.5px rgba(184, 101, 255, .38); animation: nvSpNeon .55s linear both; animation-delay: calc(.62s + var(--i) * .13s); }
@keyframes nvSpNeon {
  0%   { color: transparent; -webkit-text-stroke-color: rgba(184, 101, 255, .38); text-shadow: none; }
  12%  { color: #fff; -webkit-text-stroke-color: #fff; text-shadow: 0 0 30px rgba(184, 101, 255, 1); }
  22%  { color: transparent; -webkit-text-stroke-color: rgba(184, 101, 255, .5); text-shadow: none; }
  38%  { color: #fff; -webkit-text-stroke-color: #fff; text-shadow: 0 0 34px rgba(184, 101, 255, 1); }
  48%  { color: rgba(255, 255, 255, .45); -webkit-text-stroke-color: rgba(255, 255, 255, .6); text-shadow: 0 0 10px rgba(184, 101, 255, .5); }
  62%, 100% { color: #fff; -webkit-text-stroke-color: #fff; text-shadow: 0 0 22px rgba(168, 85, 247, .7), 0 0 60px rgba(139, 61, 255, .5), 0 8px 30px rgba(0, 0, 0, .6); }
}
/* 「O」: 꺼진 고리 → 번개를 맞고 켜짐 */
.nv-sp__o {
  position: relative; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: .98em; height: .98em; margin: 0 .015em; border-radius: 50%; border: .07em solid rgba(184, 101, 255, .38);
  background: radial-gradient(circle, rgba(40, 14, 84, .95) 0%, rgba(14, 6, 36, .95) 70%);
  animation: nvSpRing .5s ease-out .5s both;
}
@keyframes nvSpRing {
  0%   { border-color: rgba(184, 101, 255, .38); box-shadow: none; }
  20%  { border-color: #fff; box-shadow: 0 0 0 .05em rgba(255, 255, 255, .9), 0 0 90px rgba(255, 255, 255, 1), inset 0 0 50px rgba(255, 255, 255, .9); }
  100% { border-color: #fff; box-shadow: 0 0 0 .03em rgba(139, 61, 255, .6), 0 0 34px rgba(184, 101, 255, .95), inset 0 0 24px rgba(139, 61, 255, .55); }
}
.nv-sp .nv-sp__o img { display: block; flex: none; width: 78%; height: 78%; max-width: none; margin: 0; filter: drop-shadow(0 0 5px rgba(255, 255, 255, .9)) drop-shadow(0 0 14px rgba(168, 85, 247, 1)); animation: nvSpIcon .5s cubic-bezier(.34, 1.56, .64, 1) .5s both, nvBoltPulse 2.2s ease-in-out 1s infinite; }
@keyframes nvSpIcon { 0% { transform: rotate(8deg) scale(0); opacity: 0; } 60% { transform: rotate(8deg) scale(1.3); opacity: 1; } 100% { transform: rotate(8deg) scale(1); opacity: 1; } }
/* 내리꽂히는 번개: 「O」 한가운데에서 화면 위 끝까지 */
/* 위에서 아래로 0.15초에 드러난다(clip-path). 선 길이 기준의 점선 방식은 non-scaling-stroke 와 같이 쓰면 미리 비쳐 보여서 쓰지 않는다 */
.nv-sp__strike { position: absolute; left: 50%; bottom: 50%; z-index: 3; width: 1.5em; height: 54vh; transform: translateX(-50%); overflow: visible; pointer-events: none; clip-path: inset(0 -60% 100% -60%); animation: nvSpStrikeDraw .15s linear .35s both, nvSpStrikeFade .62s linear .35s both; }
.nv-sp__strike path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.nv-sp__strike .g { stroke: #b865ff; stroke-width: 16; opacity: .75; filter: blur(7px); }
.nv-sp__strike .c { stroke: #fff; stroke-width: 4.5; filter: drop-shadow(0 0 8px #d9b8ff) drop-shadow(0 0 22px #a855f7); }
.nv-sp__strike .b { stroke: #e9d5ff; stroke-width: 2; opacity: .85; filter: drop-shadow(0 0 8px #a855f7); }
@keyframes nvSpStrikeDraw { from { clip-path: inset(0 -60% 100% -60%); } to { clip-path: inset(0 -60% -12% -60%); } }
@keyframes nvSpStrikeFade { 0%, 24% { opacity: 1; } 32% { opacity: .25; } 42% { opacity: 1; } 55% { opacity: .5; } 68% { opacity: .85; } 100% { opacity: 0; } }
/* 충격파 고리 2겹 */
.nv-sp__wave { position: absolute; left: 50%; top: 50%; width: 1em; height: 1em; border-radius: 50%; transform: translate(-50%, -50%); opacity: 0; border: 2px solid rgba(255, 255, 255, .95); box-shadow: 0 0 30px 6px rgba(184, 101, 255, .7), inset 0 0 24px rgba(255, 45, 138, .45); animation: nvSpWave .95s cubic-bezier(.2, .7, .3, 1) .5s both; }
.nv-sp__wave--2 { border-color: rgba(116, 211, 255, .9); box-shadow: 0 0 24px 4px rgba(116, 211, 255, .6); animation-delay: .66s; animation-duration: 1.1s; }
@keyframes nvSpWave { 0% { width: 1em; height: 1em; opacity: 0; } 10% { opacity: 1; } 100% { width: 190vmax; height: 190vmax; opacity: 0; } }
/* CASINO · 문구 · 밑줄 전류 */
.nv-sp__sub { margin-top: .16em; font-size: clamp(22px, 3.9vw, 54px); font-weight: 500; color: #b865ff; text-shadow: 0 0 16px rgba(184, 101, 255, .6); letter-spacing: .52em; text-indent: .52em; animation: nvSpSub .55s cubic-bezier(.2, .8, .2, 1) 1.02s both; }
@keyframes nvSpSub { from { opacity: 0; letter-spacing: 1.5em; text-indent: 1.5em; filter: blur(6px); } to { opacity: 1; letter-spacing: .52em; text-indent: .52em; filter: blur(0); } }
.nv-sp__tag { margin-top: 1.1em; font-size: clamp(12px, 1.9vw, 26px); font-weight: 600; color: rgba(255, 255, 255, .92); letter-spacing: .42em; text-indent: .42em; animation: nvSpTag .45s ease-out 1.28s both; }
@keyframes nvSpTag { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.nv-sp i.nv-sp__line { position: relative; width: min(74vw, 620px); height: 4px; margin-top: clamp(22px, 3.4vw, 44px); border-radius: 4px; background: rgba(184, 101, 255, .18); overflow: hidden; animation: nvSpTag .3s ease-out 1.1s both; }
.nv-sp__line::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #74d3ff 0%, #b865ff 55%, #ff2d8a 100%); box-shadow: 0 0 14px rgba(184, 101, 255, .9); transform-origin: 0 50%; animation: nvSpLine .8s cubic-bezier(.5, 0, .2, 1) 1.15s both; }
@keyframes nvSpLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* 끝: 간판이 커지며 흐려지고 홈이 나타난다 (common.js 가 2초 뒤 .fade-out 을 붙인다) */
.page-splash.fade-out .nv-sp__lockup { transform: scale(1.45); filter: blur(7px); }
@keyframes ring-spin     { to { transform: rotate(360deg); } }
@keyframes ring-spin-rev { to { transform: rotate(-360deg); } }
@keyframes logo-breathe {
  0%, 100% { transform: scale(1);    opacity: .92; }
  50%      { transform: scale(1.05); opacity: 1; }
}
@media (max-width: 576px) {
  .splash-loader { width: 230px; height: 230px; }
  .page-splash .splash-logo { width: 140px; }
}
@keyframes pulsate {
  0%   { transform: scale(.8);  opacity: 0; }
  50%  { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(.8);  opacity: 0; }
}

/* ── 게임 카드 + 로딩 연출 (Wonder 그리드 / betgoat placeholder) ── */
/* 게임 그리드: 1열 최대 5개 (카지노·슬롯 공통).
   콘텐츠 컨테이너가 1200px로 묶여서(main.css .content) 6개는 카드가 187px까지 쪼그라듦 → 5개로. */
.game-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
@media (max-width: 1500px) { .game-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1200px) { .game-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .game-grid { grid-template-columns: repeat(2, 1fr); } }

.game-card { cursor: pointer; min-width: 0; } /* min-width:auto면 긴 게임명(nowrap)이 그리드 열을 강제 확장 */
.game-card .thumb {
  position: relative; aspect-ratio: 4 / 3;
  border-radius: var(--radius); overflow: hidden;
  background: #120730; /* 로딩 중 바탕 */
}
.game-card .thumb::before {
  /* 로딩 중 로고 pulsate (betgoat) — 의도된 연출이므로 유지 */
  content: ''; position: absolute; inset: 0;
  background: var(--nv-icon) center / 64px no-repeat;
  filter: drop-shadow(0 0 8px rgba(184, 101, 255, .9));
  opacity: 0; animation: pulsate 2s ease-out infinite;
}
.game-card .thumb img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .45s ease;
}
.game-card.loaded .thumb::before { animation: none; opacity: 0; }
.game-card.loaded .thumb img { opacity: 1; }
/* 호버 시 PLAY 버튼 (Wonder식) */
.game-card .thumb .g-hover {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .45);
  opacity: 0; transition: opacity .2s ease;
}
.game-card:hover .thumb .g-hover { opacity: 1; }
.g-play {
  padding: 11px 32px; border-radius: 999px;
  background: var(--nv-fill); color: #fff;
  font-family: var(--nv-font-en); font-size: 17px; font-weight: 900; letter-spacing: .1em;
  transform: translateY(8px); transition: transform .2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45), 0 0 18px rgba(255, 45, 138, .55);
}
.game-card:hover .g-play { transform: translateY(0); }

.game-card .thumb .g-badge {
  position: absolute; z-index: 2; top: 8px; left: 8px;
  padding: 3px 8px; border-radius: 4px;
  font-size: 12px; font-weight: 800; letter-spacing: .05em; color: #fff;
  background: linear-gradient(135deg, #ff2d8a, #b865ff); /* HOT 등 */
}
.game-card:hover .thumb img { transform: scale(1.04); transition: opacity .45s ease, transform .3s ease; }
.game-card .g-name {
  margin-top: 9px; font-size: 15px; font-weight: 600;
  text-align: center; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; /* 폭을 넘는 긴 이름은 "…" */
}
.game-card .g-provider {
  margin-top: 2px; font-size: 12px; letter-spacing: .02em;
  color: var(--lg-mid); text-align: center; /* 게임사명은 골드 포인트 — 회색이면 다크 바탕에 묻힘 */
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 호버 시 말줄임을 풀고 전체 이름을 카드 폭 밖으로 펼친다.
   width:max-content로 글자 길이만큼 넓히고 left/translate로 카드 중앙에 다시 맞추므로
   짧은 이름은 위치·모양이 그대로고, 긴 이름만 양옆 카드 위로 튀어나온다.
   레이아웃 높이는 한 줄 그대로라 카드가 흔들리지 않는다.
   text-shadow는 옆 카드 글자와 겹쳤을 때 가독성용(바탕색 글로우). */
.game-card:hover { position: relative; z-index: 1; } /* hs-nav(z-index 3)보다는 아래 */
.game-card:hover .g-name {
  position: relative; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: none;
  overflow: visible; text-overflow: clip;
  text-shadow: 0 0 4px var(--bg), 0 0 8px var(--bg), 0 0 14px var(--bg);
}
/* 모바일 2열은 카드가 170px 안팎이라 한 단계 낮춰 잘림을 줄인다 */
@media (max-width: 700px) {
  .game-card .g-name { font-size: 14px; }
  .game-card .g-provider { font-size: 11.5px; }
}
