/* 오름게임즈 — oreumgames.com */

:root {
  /* 바탕 — 옅은 아이보리 */
  --void:    #f8f5ec;
  --deep:    #f2ede0;
  --panel:   #fffdf7;
  --panel-2: #f4efe2;
  --line:    #e6dfcd;
  --line-2:  #d7ccb4;

  /* 글씨 */
  --ink:    #1b2a1f;
  --ink-2:  #45523f;
  --muted:  #7d8a76;

  /* 오름 초록 */
  --green:      #4e8f4a;
  --green-lit:  #2e6b39;   /* 글씨·강조용 진초록 */
  --green-soft: #e7f0dc;   /* 태그·칩 바탕 */
  --green-edge: #cadcbc;

  /* 귤 — 루루팜과 해 */
  --ember:     #e08a2e;
  --ember-ink: #a35c10;

  /* 차가운 빛 — 다음 것 */
  --cold:     #3d8a97;
  --cold-ink: #276570;

  --radius: 16px;
  --shadow: 0 1px 2px rgba(60, 55, 35, .05), 0 14px 34px rgba(60, 55, 35, .08);
  --font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕",
          system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--void); }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--void);
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-lit); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ember-ink); }

h1, h2, h3 { line-height: 1.3; letter-spacing: -.02em; margin: 0; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--green-lit); color: #fff; padding: 10px 16px; z-index: 50; }
.skip:focus { left: 12px; top: 12px; }

/* ── 헤더 ─────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(248, 245, 236, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  text-decoration: none; flex: none;
}
.brand img { width: 56px; height: auto; }
.brand-text {
  font-size: 11px; font-weight: 700; letter-spacing: .3em;
  color: var(--ink); line-height: 1; text-indent: .3em; white-space: nowrap;
}
.nav { display: flex; gap: 2px; }
.nav a {
  padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 600;
  color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
.nav a:hover { background: var(--green-soft); color: var(--green-lit); }

/* ── 히어로 — 아침의 오름 ─────────────── */
.hero { position: relative; overflow: hidden; }
.hero-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 78% 8%, rgba(224,138,46,.10), transparent 62%),
    linear-gradient(180deg, #fbf8f1 0%, #eef3e6 52%, #e4eeda 100%);
}
.stars { display: none; }

.moon {
  position: absolute; top: 58px; left: 50%; margin-left: 330px;
  width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #ffd18a, var(--ember) 74%);
  box-shadow: 0 0 0 16px rgba(224,138,46,.10), 0 0 0 38px rgba(224,138,46,.06);
}

.ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 280px; }
.ridge-far  { fill: #cbe0bb; }
.ridge-mid  { fill: #aecd99; }
.ridge-near { fill: #8fba7b; }

.hero-inner { position: relative; padding: 116px 0 148px; max-width: 720px; }
.eyebrow {
  margin: 0 0 18px; font-size: 12px; font-weight: 700;
  letter-spacing: .3em; color: var(--green-lit); text-transform: uppercase;
}
.hero h1 { font-size: clamp(34px, 6.4vw, 62px); font-weight: 800; color: #16281c; }
.hero h1 .dim { color: var(--green); }
.lede { margin: 24px 0 0; max-width: 30em; font-size: 17px; color: var(--ink-2); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px;
  font-size: 16px; font-weight: 700; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--green-lit); color: #fff;
  box-shadow: 0 8px 22px rgba(46,107,57,.26);
}
.btn-primary:hover { background: var(--green); color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,.75); color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: #fff; color: var(--green-lit); border-color: var(--green); }

/* ── 섹션 공통 ────────────────────────── */
.section { padding: 92px 0; position: relative; }
.section-alt { background: var(--deep); border-block: 1px solid var(--line); }
.section-tag { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .26em; color: var(--green); }
.section-title { font-size: clamp(26px, 3.6vw, 34px); font-weight: 800; color: var(--ink); margin-bottom: 30px; }

/* ── 게임 카드 ────────────────────────── */
.game {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px; margin-bottom: 22px; position: relative; overflow: hidden;
}
.game-warm::before {
  content: ""; position: absolute; inset: -1px -1px auto -1px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
}

.game-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.game-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--shadow); }
.game h3 { font-size: 25px; font-weight: 800; color: var(--ink); }
.game-sub { margin: 6px 0 10px; color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li {
  background: var(--green-soft); color: var(--green-lit); border: 1px solid var(--green-edge);
  padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
}

/* 게임 설명 */
.game-about { margin: 24px 0 0; }
.game-about > p { margin: 0 0 16px; color: var(--ink-2); }
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.about-grid li {
  background: var(--deep); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; font-size: 15px; color: var(--ink-2);
}
.about-grid b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }

.story {
  margin: 24px 0 0; padding: 22px 26px;
  background: #fdf6e9; border-left: 3px solid var(--ember);
  border-radius: 0 12px 12px 0; color: #4a3b28;
}
.story p { margin: 0 0 12px; }
.story p:last-child { margin-bottom: 0; }
.story-punch { font-weight: 700; font-size: 18px; color: var(--green-lit); }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0 0; }
.shots figure { margin: 0; }
.shots img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--line);
}
.shots figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }

.game-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ── 다음 것 (티저) ───────────────────── */
.teaser {
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(61,138,151,.08), transparent 70%),
    var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 54px 32px; text-align: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.teaser::before {
  content: ""; position: absolute; inset: -1px -1px auto -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cold), transparent);
}
.teaser-tag { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .34em; color: var(--cold-ink); }
.teaser h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--ink); }
.teaser p { margin: 16px auto 0; max-width: 32em; color: var(--ink-2); }
.teaser .whisper { color: var(--muted); font-size: 15px; }
.pulse {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cold); margin-left: 8px; vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(61,138,151,.5); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(61,138,151,.45); opacity: 1 }
  70%  { box-shadow: 0 0 0 14px rgba(61,138,151,0); opacity: .55 }
  100% { box-shadow: 0 0 0 0 rgba(61,138,151,0); opacity: 1 }
}

/* ── 스튜디오 ─────────────────────────── */
.studio { display: grid; grid-template-columns: 1.3fr .7fr; gap: 44px; align-items: center; }
.studio p { margin: 0 0 14px; color: var(--ink-2); }
.studio strong { color: var(--ink); }
.values { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.values li {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 16px; font-size: 15px; color: var(--ink-2);
}
.values span { font-weight: 800; color: var(--green-lit); }
.studio-mark img { width: 100%; max-width: 240px; margin-inline: auto; opacity: .92; }

/* ── 문의 ─────────────────────────────── */
.contact > p { max-width: 34em; color: var(--ink-2); }
.mailbox { margin: 20px 0 10px; }
.mailbox a {
  display: inline-block; background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 12px 24px; font-size: 17px; font-weight: 700;
  text-decoration: none; box-shadow: var(--shadow);
}
.mailbox a:hover { border-color: var(--green); }
.small { font-size: 14px; color: var(--muted); }

/* ── 푸터 ─────────────────────────────── */
.site-footer { background: var(--deep); border-top: 1px solid var(--line); color: var(--ink-2); padding: 44px 0; }
.footer-inner { display: grid; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.footer-brand img { width: 36px; }
.footer-brand em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 4px; }
.footer-motto { margin: 0; color: var(--green-lit); font-size: 14px; letter-spacing: .04em; font-weight: 600; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a { color: var(--ink-2); font-size: 14px; text-decoration: none; }
.footer-nav a:hover { color: var(--green-lit); text-decoration: underline; }
.copy { margin: 0; font-size: 13px; color: var(--muted); }

/* ── 본문 페이지 (가이드·지원·개인정보) ── */
.doc { padding: 60px 0 92px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: 30px; font-weight: 800; color: var(--ink); }
.doc h2 { font-size: 19px; font-weight: 700; color: var(--green-lit); margin: 36px 0 8px; }
.doc h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 26px 0 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc b, .doc strong { color: var(--ink); }
.doc ul { padding-left: 20px; }
.doc .date { color: var(--muted); font-size: 14px; margin-top: 6px; }
.doc .back { display: inline-block; margin-bottom: 26px; font-size: 14px; text-decoration: none; }
.doc .card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; box-shadow: var(--shadow); margin-top: 18px;
}
.doc .card strong { color: var(--ink); }

/* ── 플레이 가이드 ────────────────────── */
.guide .wrap { max-width: 820px; }
.guide .play-here { margin: 32px 0; }
.guide h3 { padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.guide ul { margin: 10px 0; }
.guide li { margin-bottom: 6px; }
.guide .warn {
  background: #fdf6e9; border-left: 3px solid var(--ember);
  border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 18px 0; color: #4a3b28;
}
.guide .warn b { color: var(--ember-ink); }

.tablewrap { overflow-x: auto; margin: 14px 0 6px; -webkit-overflow-scrolling: touch; }
.doc table {
  border-collapse: collapse; width: 100%; min-width: 320px;
  font-size: 15px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.doc thead th { background: var(--green-soft); color: var(--green-lit); font-weight: 700; text-align: left; }
.doc th, .doc td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.doc tbody th { text-align: left; color: var(--ink); white-space: nowrap; width: 1%; }
.doc tbody tr:last-child th, .doc tbody tr:last-child td { border-bottom: 0; }

/* ── 반응형 ───────────────────────────── */
@media (max-width: 860px) {
  .hero-inner { padding: 76px 0 120px; }
  .moon { top: 30px; left: auto; right: 7%; margin-left: 0; width: 54px; height: 54px; }
  .studio { grid-template-columns: 1fr; }
  .studio-mark { display: none; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .section { padding: 66px 0; }
  .game { padding: 22px; }
  .teaser { padding: 40px 22px; }
}

@media (max-width: 620px) {
  /* 좁은 화면에서는 로고만 — 글자가 메뉴와 부딪힙니다 */
  .brand-text { display: none; }
  .brand img { width: 46px; }
  .nav a { padding: 8px 9px; font-size: 14px; }
  .header-inner { gap: 8px; min-height: 60px; }
}

@media (max-width: 520px) {
  .game-head { gap: 14px; }
  .game-icon { width: 66px; height: 66px; border-radius: 16px; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
  .btn:hover { transform: none; }
}
