/* JoY Studio 네온 테마: 형광색은 어두운 배경 위 제목·강조에만, 본문은 흰색·회색 (모든 글자 대비 4.5:1 이상) */
:root {
  --bg: #0b0b14;
  --panel: #13131f;
  --card: #171726;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f5fa;
  --muted: #b9bdd3;
  --cyan: #2ee6ff;
  --pink: #ff4fd8;
  --yellow: #ffe14d;
  --green: #3dff8a;
  --ink: #0b0b14;
  --display: 'Black Han Sans', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --latin: 'Fredoka', 'Apple SD Gothic Neo', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif;
  line-height: 1.65;
}
main, .hero, footer { width: min(1080px, 100% - 32px); margin-inline: auto; }
a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

/* ─────────── 상단 ─────────── */
.hero { text-align: center; padding: 52px 0 30px; }
.logo { margin: 0 auto; width: min(560px, 92vw); line-height: 0; }
.logo svg { width: 100%; height: auto; overflow: visible; }
.lg-letter { font-family: var(--latin); font-weight: 700; font-size: 64px; }
.lg-studio { font-family: var(--latin); font-weight: 700; font-size: 24px; letter-spacing: 3px; }
.tagline { margin: 22px 0 4px; font-size: clamp(16px, 4vw, 20px); color: var(--text); }
.makers { margin: 0; color: var(--muted); font-size: 15px; }
.makers b { color: var(--text); font-weight: 600; }

/* ─────────── 게임 카드 ─────────── */
h2 {
  font-family: var(--display); font-weight: 400; font-size: 26px; margin: 28px 0 14px; color: var(--yellow);
  display: flex; align-items: center; gap: 10px;
}
h2::before {
  content: ''; width: 14px; height: 14px; border-radius: 50%; flex: none;
  background: var(--pink); box-shadow: 18px 0 0 var(--cyan); margin-right: 18px;
}
.game-list { display: grid; gap: 18px; }
.game {
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr) auto; gap: 22px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  transition: border-color 0.2s;
}
.game:hover { border-color: rgba(46, 230, 255, 0.45); }
.thumb { display: block; border-radius: 12px; overflow: hidden; border: 2px solid rgba(46, 230, 255, 0.4); aspect-ratio: 16 / 9; background: #000; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s; }
.thumb:hover img { transform: scale(1.04); }
.body h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.2; color: var(--text); }
.body h3 small { display: block; font-family: var(--latin); font-weight: 600; font-size: 14px; color: var(--cyan); margin-top: 6px; letter-spacing: 0.5px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 12px 0 0; }
.tags li { font-size: 13px; padding: 3px 11px; border-radius: 999px; background: rgba(46, 230, 255, 0.1); color: var(--cyan); border: 1px solid rgba(46, 230, 255, 0.35); }
.desc { margin: 12px 0 8px; color: var(--text); }
.how { margin: 0 0 16px; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.how li::marker { color: var(--pink); }
.play {
  display: inline-block; font-family: var(--display); font-size: 20px; text-decoration: none;
  color: var(--ink); background: var(--pink); border-radius: 12px; padding: 10px 24px;
  box-shadow: 0 4px 0 #a3168a; transition: transform 0.08s, background 0.15s;
}
.play:hover { background: #ff74e2; transform: translateY(-2px); }
.play:active { transform: translateY(2px); box-shadow: 0 1px 0 #a3168a; }
.qr { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.qr-box { background: #fff; padding: 10px; border-radius: 12px; width: 152px; height: 152px; display: grid; place-items: center; border: 3px solid var(--cyan); }
.qr-box img, .qr-box canvas { display: block; }
.qr-fallback { color: var(--ink); font-size: 11px; word-break: break-all; }
.game.soon { grid-template-columns: auto 1fr; border-style: dashed; background: transparent; padding: 18px 22px; }
.game.soon h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--muted); }
.game.soon .desc { grid-column: 2; margin: 0; color: var(--muted); }
.soon-mark { grid-row: span 2; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--latin); font-weight: 700; font-size: 26px; color: var(--muted); border: 2px dashed rgba(255, 255, 255, 0.3); }

/* ─────────── 안내 ─────────── */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 6px 22px 16px; margin-top: 28px; }
.panel h2 { font-size: 22px; margin: 16px 0 8px; }
.notes { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.notes li { margin: 4px 0; }
.notes li::marker { color: var(--cyan); }
.notes b { color: var(--text); font-weight: 600; }
.panel.small .notes { font-size: 13.5px; }
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); }

/* ─────────── 작은 화면 ─────────── */
@media (max-width: 860px) {
  .game { grid-template-columns: 1fr; gap: 14px; }
  .qr { flex-direction: row; justify-content: center; text-align: left; }
  .qr-box { width: 112px; height: 112px; padding: 8px; }
  .qr-box img, .qr-box canvas { width: 90px !important; height: 90px !important; }
  .qr span { max-width: 120px; }
  .body h3 { font-size: 24px; }
  .play { display: block; text-align: center; }
}
