/* 용코바코 게임즈 — 허브 스타일시트
 *
 * 결: «게임 회사 홈페이지». 어두운 바탕에 키아트를 크게 깔고, 금빛 하나로만 강조한다.
 * (2026-09-12에 한 번 갈아엎었다 — 그전에는 학습 웹앱 쪽 흰 패널 결이었는데
 *  게임 스튜디오로 읽히지 않았다.)
 *
 * 규칙 넷:
 *  1) 호버로만 되는 것을 만들지 않는다. 모바일에는 :hover 가 «영영» 안 온다.
 *     호버는 «덤»으로만 쓴다 — 눌러야 알 수 있는 것을 호버 뒤에 숨기지 않는다.
 *  2) 색은 전부 :root 토큰에서 온다.
 *  3) 넘치는 것(스크린샷 띠)은 자기 안에서 구른다. 본문은 가로로 안 밀린다.
 *  4) 글꼴은 기기에 있는 것을 쓴다. 웹폰트를 남의 CDN에서 끌어오면 방문자 아이피가
 *     그쪽으로 나가는데, 방침에 「Cloudflare 말고는 없다」고 적어 두었다.
 */

:root {
  --ink: #070a11;
  --ink-2: #0b0f18;
  --panel: #121927;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #e9edfa;
  --muted: #9aa6c0;
  --muted-2: #6d7a95;
  --gold: #ffc247;
  --gold-2: #ff9f1c;
  --blue: #5b9bff;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --max: 1200px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Segoe UI", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.85);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.03em; }
p { margin: 0; }

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

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--gold); color: #1a1206; padding: 10px 16px; font-weight: 700; }
.skip:focus { left: 0; }
:where(a, button, [tabindex]):focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ── 위 띠 ───────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 10, 17, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: var(--max); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark {
  width: 34px; height: 34px; flex: none;
  background: url("img/mark.svg") center / 21px 21px no-repeat;
  background-color: rgba(255, 194, 71, 0.14);
  border: 1px solid rgba(255, 194, 71, 0.3);
  border-radius: 9px;
}
.brand-text { display: grid; line-height: 1.15; }
.brand-text b { font-size: 15.5px; font-weight: 800; letter-spacing: -0.03em; }
.brand-text i {
  font-style: normal; font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.16em; color: var(--muted-2);
}
.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  padding: 7px 12px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; color: var(--muted);
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-links a.nav-cta {
  color: #1a1206;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-2) 100%);
}
.nav-links a.nav-cta:hover { color: #1a1206; filter: brightness(1.07); }

/* ── 첫 화면 ─────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-art {
  position: absolute; inset: 0;
  background: #0b1220 url("img/hero.webp") center bottom / cover no-repeat;
  transform: scale(1.04);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(95% 75% at 20% 34%, rgba(7, 10, 17, 0.88) 0%, rgba(7, 10, 17, 0.6) 42%, rgba(7, 10, 17, 0.1) 78%),
    linear-gradient(180deg, rgba(7, 10, 17, 0.35) 0%, rgba(7, 10, 17, 0.12) 38%, rgba(7, 10, 17, 0.78) 84%, var(--ink) 100%);
}
.hero-in {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto; padding: 84px 20px 34px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.18em;
  color: var(--gold);
}
.hero-kicker::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.hero-title {
  margin: 16px 0 0;
  font-size: clamp(32px, 6.4vw, 56px); font-weight: 900; line-height: 1.12;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
}
.hero-title em { font-style: normal; color: var(--gold); }
.hero-lead {
  margin: 18px 0 0; max-width: 33em;
  font-size: clamp(14.5px, 1.6vw, 16.5px); color: #c8d2e8;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* 방문자 수 — 첫 화면 아래 얇은 띠 */
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 40px 0 0; padding-top: 20px;
  border-top: 1px solid var(--line);
}
.hero-stats div {
  display: flex; align-items: baseline; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
}
.hero-stats i { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.hero-stats b { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hero-stats b.on { color: var(--gold); }

/* ── 단추 ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--r);
  font-size: 14.5px; font-weight: 800; letter-spacing: -0.02em;
  border: 1px solid transparent; cursor: pointer;
}
.btn-main {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #1a1206;
  box-shadow: 0 10px 26px -12px rgba(255, 159, 28, 0.9);
}
.btn-main:hover { filter: brightness(1.06); }
.btn-line { background: rgba(255, 255, 255, 0.07); border-color: var(--line-2); color: var(--text); }
.btn-line:hover { background: rgba(255, 255, 255, 0.13); }
.btn-off { background: rgba(255, 255, 255, 0.04); border-color: var(--line); color: var(--muted-2); cursor: default; }
.btn-sm { padding: 10px 16px; font-size: 13.5px; }

/* ── 알림 줄 ─────────────────────────────────────────────────────────── */
.notice {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 26px 0 0; padding: 14px 18px;
  background: linear-gradient(90deg, rgba(255, 194, 71, 0.12) 0%, rgba(255, 194, 71, 0.03) 60%, transparent 100%);
  border: 1px solid rgba(255, 194, 71, 0.22); border-radius: var(--r-lg);
}
.notice-ico {
  width: 30px; height: 30px; flex: none; border-radius: 9px;
  background: url("img/mark.svg") center / 18px 18px no-repeat rgba(255, 194, 71, 0.16);
}
.notice-text { flex: 1; min-width: 220px; font-size: 14px; font-weight: 700; }
.notice-sub { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.notice-flag {
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--gold); background: rgba(255, 194, 71, 0.12); border: 1px solid rgba(255, 194, 71, 0.28);
}

/* ── 구역 ────────────────────────────────────────────────────────────── */
.sec { padding: 64px 0; }
.sec-alt { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { margin-bottom: 26px; }
.sec-head h2 {
  font-size: clamp(22px, 3vw, 28px); font-weight: 900;
  display: flex; align-items: center; gap: 12px;
}
.sec-head h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sec-head p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.sec-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: 0.2em; color: var(--gold);
  margin-bottom: 10px;
}

/* ── 게임 카드 ───────────────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.game {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow);
}
.game-wide { grid-column: span 2; }
.game-art { position: relative; display: block; overflow: hidden; background: #0b1220; }
.game-art img { width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; transition: transform 0.45s ease; }
.game:hover .game-art img { transform: scale(1.035); }
.game-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 11, 18, 0.9) 100%);
}
.game-badge {
  position: absolute; z-index: 1; left: 14px; top: 14px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(7, 10, 17, 0.7); border: 1px solid var(--line-2);
  backdrop-filter: blur(6px);
  font-size: 11.5px; font-weight: 800; color: var(--gold);
}
.game-body { padding: 18px 20px 0; }
.game-title { font-size: 20px; font-weight: 900; }
.game-short { margin-top: 6px; color: var(--muted); font-size: 13.5px; }
.game-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding: 0; list-style: none; }
.game-tags li {
  padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  color: var(--muted); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
}
.game-foot { margin-top: auto; padding: 18px 20px 20px; }
.game-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.game-btns .btn { flex: 1 1 auto; }
.game-store { margin-top: 10px; font-size: 12px; color: var(--muted-2); text-align: center; }
.game-store a { color: var(--blue); font-weight: 700; }

.game-soon {
  align-items: center; justify-content: center; text-align: center;
  min-height: 260px; padding: 30px;
  background: transparent; border-style: dashed; border-color: var(--line-2); box-shadow: none;
}
.soon-mark {
  width: 42px; height: 42px; margin: 0 auto 12px; border-radius: 12px;
  background: url("img/mark.svg") center / 24px 24px no-repeat rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  opacity: 0.6;
}
.soon-title { font-size: 15px; font-weight: 800; color: var(--muted); }
.soon-sub { margin-top: 4px; font-size: 12.5px; color: var(--muted-2); }

/* ── 스튜디오 ────────────────────────────────────────────────────────── */
.studio { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.studio-text p + p { margin-top: 14px; }
.studio-lead { font-size: 17px; font-weight: 700; color: var(--text); }
.studio-text p { color: var(--muted); }
.studio-card {
  padding: 22px; border-radius: var(--r-lg);
  background: var(--panel); border: 1px solid var(--line);
}
.studio-card dl { margin: 0; display: grid; gap: 12px; }
.studio-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.studio-row dt { font-size: 12.5px; color: var(--muted-2); font-weight: 700; }
.studio-row dd { margin: 0; font-size: 13.5px; font-weight: 700; }
.studio-row dd a { color: var(--gold); }
.studio-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted-2); }

/* ── 바닥 ────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); background: var(--ink-2); padding: 34px 0 40px; }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 0 20px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.foot-brand { font-size: 14px; font-weight: 800; margin-right: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px; }
.foot-links a { font-size: 13px; font-weight: 700; color: var(--muted); padding: 6px 10px; border-radius: 8px; }
.foot-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.foot-copy { width: 100%; font-size: 12px; color: var(--muted-2); }

/* ── 게임 상세 ───────────────────────────────────────────────────────── */
.detail-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
/* ⚠ 카드 그림의 위쪽 절반에 게임 로고가 박혀 있다 — 제목 뒤에 겹치지 않게 아래를 보인다. */
.detail-art { position: absolute; inset: 0; background-size: cover; background-position: center 88%; }
.detail-hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(80% 90% at 12% 40%, rgba(7, 10, 17, 0.82) 0%, rgba(7, 10, 17, 0.45) 55%, rgba(7, 10, 17, 0.1) 100%),
    linear-gradient(180deg, rgba(7, 10, 17, 0.62) 0%, rgba(7, 10, 17, 0.72) 45%, var(--ink) 100%);
}
.detail-in { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 30px 20px 36px; }
.crumb { font-size: 12.5px; color: var(--muted); margin-bottom: 20px; }
.crumb a { color: var(--muted); font-weight: 700; }
.crumb a:hover { color: var(--text); }
.detail-head { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.detail-icon { width: 84px; height: 84px; flex: none; border-radius: 18px; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.detail-head h1 { font-size: clamp(24px, 4.2vw, 36px); font-weight: 900; }
.detail-short { margin-top: 8px; color: #c8d2e8; font-size: 15px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.lead {
  margin-top: 24px; max-width: 46em; padding-left: 16px;
  border-left: 2px solid var(--gold);
  font-size: 15.5px; color: #c8d2e8;
}

.shots {
  display: flex; gap: 14px; overflow-x: auto; padding: 4px 20px 18px;
  max-width: var(--max); margin: 0 auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shots figure { margin: 0; flex: 0 0 min(78vw, 460px); scroll-snap-align: start; }
.shots img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--line); background: #0b1220; }

.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.about section {
  padding: 20px; border-radius: var(--r-lg);
  background: var(--panel); border: 1px solid var(--line);
}
.about h2 { font-size: 16px; font-weight: 800; }
.about p { margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.detail-foot { margin-top: 26px; font-size: 13px; color: var(--muted-2); }
.detail-foot a { color: var(--blue); font-weight: 700; }

/* ── 문서(방침) ──────────────────────────────────────────────────────── */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 60px; }
.doc h1 { font-size: 28px; font-weight: 900; }
.doc-meta { margin-top: 10px; color: var(--muted-2); font-size: 12.5px; }
.doc section { margin-top: 30px; }
.doc h2 { font-size: 16px; font-weight: 800; color: var(--gold); }
.doc section p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.doc ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.doc a { color: var(--blue); font-weight: 700; }
.doc-back { margin-top: 36px; font-size: 13.5px; }
.doc-back a { color: var(--muted); font-weight: 700; }

/* ── 광고 자리 ───────────────────────────────────────────────────────── */
.ad { margin-top: 28px; padding: 14px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.ad-label { display: block; font-size: 11px; color: var(--muted-2); margin-bottom: 8px; }

/* ── 전면광고 덮개 ───────────────────────────────────────────────────── */
.gate {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: rgba(7, 10, 17, 0.94); color: var(--text); font-weight: 700;
}
.gate-spin {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: var(--gold);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gate-spin { animation: none; } }

/* ── 좁은 화면 ───────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .studio { grid-template-columns: 1fr; }
  .game-wide { grid-column: auto; }
  .hero-in { padding: 54px 20px 28px; }
  .sec { padding: 46px 0; }
}
@media (max-width: 560px) {
  .nav-in { padding: 10px 16px; gap: 10px; }
  .nav-links a { padding: 6px 9px; font-size: 12.5px; }
  .brand-text i { display: none; }
  .wrap { padding: 0 16px; }
  .hero-in { padding: 44px 16px 24px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-stats { gap: 8px; }
  .grid { grid-template-columns: 1fr; }
  .detail-in { padding: 26px 16px 30px; }
  .detail-icon { width: 66px; height: 66px; border-radius: 15px; }
  .doc { padding: 34px 16px 48px; }
  /* ⚠ 좁은 화면에서는 키아트가 «제목 폭만큼» 확대돼 들어와서 그림 속 게임 로고가 제목 뒤로
     비친다(2026-09-12 실측). 넓은 화면에서는 로고가 오른쪽으로 밀려 안 겹친다. */
  .detail-hero::after {
    background: linear-gradient(180deg, rgba(7, 10, 17, 0.94) 0%, rgba(7, 10, 17, 0.96) 55%, var(--ink) 100%);
  }
}
