/* 오락동 랜딩 — 공통 스타일
   컨셉: 동네 오락실의 간판을 지금의 화면 문법으로.
   픽셀 폰트(둥근모꼴)는 간판·제목에만, 본문은 Pretendard. */

@font-face {
  font-family: "DungGeunMo";
  src: url("/assets/fonts/DungGeunMo.woff") format("woff");
  font-weight: normal;
  font-display: swap;
}

:root {
  --bg: #131015;
  --panel: #1b171d;
  --ink: #efe7d8;
  --dim: #a89d8d;
  --faint: #6f675c;
  --amber: #ffc24b;
  --amber-deep: #e09a1f;
  --pink: #ff5d8f;
  --line: rgba(239, 231, 216, 0.12);
  --maxw: 1040px;
  --pixel: "DungGeunMo", "Pretendard Variable", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo",
    "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

/* 화면 전체에 아주 옅은 주사선 — 과하지 않게 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.13) 3px,
    rgba(0, 0, 0, 0.13) 4px
  );
  z-index: 999;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── 헤더 ─────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(19, 16, 21, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  font-family: var(--pixel);
  font-size: 22px;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand .coin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(255, 194, 75, 0.55);
  flex: none;
}

.site-nav { display: flex; align-items: center; gap: 26px; font-size: 14.5px; color: var(--dim); }
.site-nav a:hover { color: var(--ink); }

.btn-toss {
  font-size: 13.5px;
  font-weight: 700;
  color: #14110a;
  background: var(--amber);
  padding: 8px 16px;
  border-radius: 8px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-toss:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(255, 194, 75, 0.35); color: #14110a; }

@media (max-width: 640px) {
  .site-nav a:not(.btn-toss) { display: none; }
}

/* ── 히어로 ───────────────────────────── */
.hero {
  padding: 92px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-sign {
  display: inline-block;
  border: 3px solid var(--amber-deep);
  border-radius: 18px;
  padding: 34px 48px 30px;
  position: relative;
  box-shadow:
    0 0 0 3px #131015,
    0 0 0 4px rgba(255, 194, 75, 0.25),
    0 0 60px rgba(255, 194, 75, 0.1) inset,
    0 10px 60px rgba(255, 194, 75, 0.08);
}

/* 간판 모서리 전구 4개 */
.hero-sign i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(255, 194, 75, 0.9);
  animation: bulb 1.6s steps(2) infinite;
}
.hero-sign i:nth-child(1) { top: -4px; left: -4px; }
.hero-sign i:nth-child(2) { top: -4px; right: -4px; animation-delay: 0.8s; }
.hero-sign i:nth-child(3) { bottom: -4px; left: -4px; animation-delay: 0.8s; }
.hero-sign i:nth-child(4) { bottom: -4px; right: -4px; }
@keyframes bulb { 50% { opacity: 0.25; box-shadow: none; } }

.hero-sign .since {
  font-family: var(--pixel);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--faint);
  margin-bottom: 10px;
}

.hero-sign h1 {
  font-family: var(--pixel);
  font-size: clamp(58px, 11vw, 104px);
  line-height: 1;
  color: var(--amber);
  text-shadow:
    0 0 14px rgba(255, 194, 75, 0.45),
    0 0 48px rgba(255, 194, 75, 0.22);
  letter-spacing: 0.04em;
}

.hero-sub {
  margin: 30px auto 8px;
  font-size: clamp(17px, 2.6vw, 21px);
  color: var(--ink);
  max-width: 30em;
}

.hero-sub b { color: var(--amber); font-weight: 700; }

.hero-note { font-size: 14.5px; color: var(--dim); }

.hero-cta { margin-top: 34px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  font-family: var(--pixel);
  font-size: 18px;
  color: #14110a;
  background: var(--amber);
  padding: 14px 30px;
  border-radius: 10px;
  box-shadow: 0 6px 0 var(--amber-deep);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn-primary:hover { color: #14110a; }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--amber-deep); }

.btn-ghost {
  font-size: 15px;
  color: var(--dim);
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--dim); }

.press-start {
  margin-top: 40px;
  font-family: var(--pixel);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--faint);
  animation: blink 1.4s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── 전광판 띠 ─────────────────────────── */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 13px 0;
  background: var(--panel);
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  font-family: var(--pixel);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--dim);
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}
.marquee-track span b { color: var(--amber); font-weight: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ── 섹션 공통 ────────────────────────── */
section.block { padding: 88px 0; }

.sec-tag {
  font-family: var(--pixel);
  font-size: 14px;
  letter-spacing: 0.24em;
  color: var(--pink);
  margin-bottom: 14px;
}

.sec-title {
  font-size: clamp(26px, 4.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 14px;
}

.sec-desc { color: var(--dim); max-width: 36em; }

/* ── 게임 카드 ────────────────────────── */
.game-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 720px) { .game-grid { grid-template-columns: 1fr; } }

.game-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.game-card:hover { transform: translateY(-4px); border-color: rgba(255, 194, 75, 0.45); }

.game-card .shot {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0d0b0f;
}
.game-card .shot img { width: 100%; height: 100%; object-fit: cover; }

.game-card .body { padding: 20px 22px 22px; }

.game-card h3 {
  font-family: var(--pixel);
  font-size: 21px;
  color: var(--amber);
  margin-bottom: 8px;
  font-weight: normal;
}

.game-card p { font-size: 15px; color: var(--dim); }

.game-card .meta { margin-top: 14px; display: flex; gap: 8px; }
.game-card .meta span {
  font-size: 12px;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 9px;
}

.lineup-note {
  margin-top: 30px;
  text-align: center;
  font-family: var(--pixel);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--faint);
}

/* ── 오락동의 방식 ────────────────────── */
.ways { margin-top: 40px; border-top: 1px solid var(--line); }

.way {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  padding: 34px 6px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.way .num {
  font-family: var(--pixel);
  font-size: 34px;
  color: var(--pink);
}

.way h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.way p { color: var(--dim); font-size: 15.5px; max-width: 42em; }

@media (max-width: 560px) {
  .way { grid-template-columns: 1fr; gap: 6px; padding: 28px 2px; }
}

/* ── 이용 방법 ────────────────────────── */
.steps {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "STEP " counter(step);
  font-family: var(--pixel);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--amber);
  display: block;
  margin-bottom: 12px;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--dim); }

.how-foot { margin-top: 26px; font-size: 14px; color: var(--faint); }

/* ── FAQ ─────────────────────────────── */
.faq { margin-top: 38px; border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 4px;
  font-size: 16.5px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--pixel);
  font-size: 20px;
  color: var(--faint);
  flex: none;
}
.faq details[open] summary::after { content: "-"; color: var(--amber); }

.faq .a { padding: 0 4px 24px; color: var(--dim); font-size: 15px; max-width: 46em; }
.faq .a a { color: var(--amber); border-bottom: 1px solid rgba(255, 194, 75, 0.4); }

/* ── 푸터 ─────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 52px 0 64px;
  font-size: 13.5px;
  color: var(--faint);
}

.site-footer .foot-brand {
  font-family: var(--pixel);
  font-size: 18px;
  color: var(--dim);
  margin-bottom: 18px;
}

.foot-links { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; font-size: 14px; color: var(--dim); }
.foot-links a:hover { color: var(--ink); }

.site-footer .biz p { margin-bottom: 3px; }
.site-footer .legal { margin-top: 20px; font-size: 12.5px; }
.site-footer a.mail { color: var(--dim); border-bottom: 1px solid var(--line); }

/* ── 문서 페이지 (약관/방침/탈퇴) ───────── */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }

.doc-kicker {
  font-family: var(--pixel);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--pink);
  margin-bottom: 10px;
}

.doc h1 { font-size: 30px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.02em; }
.doc .doc-date { font-size: 13.5px; color: var(--faint); margin-bottom: 44px; }

.doc h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 44px 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.doc h2:first-of-type { border-top: none; padding-top: 0; }

.doc p { color: var(--dim); font-size: 15.5px; margin-bottom: 12px; }
.doc strong { color: var(--ink); }

.doc ul, .doc ol { padding-left: 22px; margin-bottom: 14px; color: var(--dim); font-size: 15.5px; }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc li { margin-bottom: 7px; }
.doc li::marker { color: var(--faint); }

.doc a { color: var(--amber); border-bottom: 1px solid rgba(255, 194, 75, 0.4); }

.doc table { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--dim); margin: 16px 0 22px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { color: var(--ink); background: var(--panel); font-weight: 600; }

.doc .callout {
  background: var(--panel);
  border: 1px solid rgba(255, 194, 75, 0.35);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 14.5px;
  color: var(--dim);
  margin: 20px 0;
}
.doc .callout strong { color: var(--amber); }

.doc .footer-box {
  margin-top: 56px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--faint);
}
