/* ONE LIFE — 앱의 CRT 인광 팔레트를 그대로 쓴다.
   색·서체는 lib/core/design_system/app_colors.dart 와 같은 값이다. */
:root {
  --canvas: #0a0d0b;
  --surface: #0e1411;
  --raised: #121b16;
  --ink: #d8e2ed;
  --muted: #7a8981;
  --brand: #00ff66;
  --brand-dark: #00b348;
  --danger: #ff2222;
  --on-accent: #04120a;
  --line: #1c2a23;
  --radius: 14px;
  --max-width: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Pretendard", "Noto Sans KR", sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.65;
}

a { color: var(--brand); }
img { max-width: 100%; }

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

/* ── 헤더 ─────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(10, 13, 11, 0.92);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.site-nav { display: flex; gap: 20px; font-size: 14px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--brand); }

/* ── 히어로 ───────────────────────────────────────── */
.hero { padding: 64px 0 40px; text-align: center; }
.badge {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 24px;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.12;
  letter-spacing: -1px;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
  text-shadow: 0 0 26px rgba(0, 255, 102, 0.45);
}
.hero p {
  margin: 0 auto 30px;
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
}

.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
}
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-accent);
  box-shadow: 0 0 30px rgba(0, 255, 102, 0.28);
}
.btn-primary:hover { background: #4dff94; }
.btn:hover { border-color: var(--brand); }

/* ── 게임 ─────────────────────────────────────────── */
.play { padding: 16px 0 56px; }
.play-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--canvas);
  box-shadow: 0 0 60px rgba(0, 255, 102, 0.07);
  aspect-ratio: 16 / 10;
  min-height: 420px;
}
.play-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.play-note {
  margin: 14px 2px 0;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .play-frame { aspect-ratio: 3 / 4; min-height: 520px; }
}

/* ── 규칙·특징 ─────────────────────────────────────── */
section { padding: 48px 0; border-top: 1px solid var(--line); }
section h2 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -0.3px;
}
section .lead { margin: 0 0 28px; color: var(--muted); }

.rule-list { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.rule-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--surface);
}
.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.dot-green { background: var(--brand); box-shadow: 0 0 14px rgba(0, 255, 102, 0.7); }
.dot-red { background: var(--danger); box-shadow: 0 0 14px rgba(255, 34, 34, 0.7); }
.dot-dim { background: var(--muted); }
.rule-list strong { display: block; margin-bottom: 2px; }
.rule-list span { color: var(--muted); font-size: 14px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface);
}
.feature-card h3 { margin: 0 0 6px; font-size: 16px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }

table.curve {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
table.curve th, table.curve td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
}
table.curve th { color: var(--muted); font-weight: 600; }
table.curve td:first-child { color: var(--brand); }

/* ── FAQ · 폼 ─────────────────────────────────────── */
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  background: var(--surface);
  margin-bottom: 10px;
}
.faq-list summary { cursor: pointer; font-weight: 600; }
.faq-list p { color: var(--muted); margin: 10px 0 2px; }

.support-form { display: grid; gap: 14px; max-width: 520px; }
.support-form label { display: grid; gap: 6px; font-size: 14px; }
.support-form input,
.support-form select,
.support-form textarea {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
  font-size: 15px;
}
.support-form button {
  justify-self: start;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: var(--on-accent);
  border-radius: 10px;
  padding: 12px 24px;
  font-weight: 700;
  cursor: pointer;
}
.form-note { color: var(--muted); font-size: 13px; }

/* ── 방침 ─────────────────────────────────────────── */
.policy h2 { margin-top: 34px; font-size: 19px; }
.policy p, .policy li { color: var(--muted); }
.policy strong { color: var(--ink); }
.breadcrumb { font-size: 13px; color: var(--muted); padding-top: 26px; }
.breadcrumb a { color: var(--muted); }

/* ── 푸터 ─────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 46px;
  color: var(--muted);
  font-size: 13px;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
