/* =========================================================
   블루캣 스튜디오 홈페이지 스타일
   색을 바꾸고 싶으면 :root 의 --c1, --c2, --c3 만 고치면 됩니다.
   ========================================================= */
:root {
  --bg: #060a1c;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-hover: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef2ff;
  --muted: #9ba6c9;
  --c1: #38bdf8; /* 하늘색 */
  --c2: #6366f1; /* 남색 */
  --c3: #a855f7; /* 보라 */
  --grad: linear-gradient(120deg, var(--c1), var(--c2) 55%, var(--c3));
  --radius: 22px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 8% -10%, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(800px 600px at 95% 0%, rgba(168, 85, 247, 0.15), transparent 60%),
    radial-gradient(1000px 700px at 50% 115%, rgba(99, 102, 241, 0.14), transparent 60%);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- 상단 메뉴 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 10, 28, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo-text { font-weight: 800; font-size: 0.78rem; line-height: 1.08; letter-spacing: 0.1em; }
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: var(--panel); }
.lang { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.lang button {
  appearance: none;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: #fff; color: #0b1026; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.85); }
.btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(99, 102, 241, 1); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2); }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn:focus-visible, .chip:focus-visible, .lang button:focus-visible, .nav a:focus-visible, .logo:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

/* ---------- 임시 아이콘 (이미지 없을 때) ---------- */
.icon-ph {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.38), transparent 45%),
    linear-gradient(145deg, var(--g1), var(--g2));
}
.icon-ph span { font-size: 2.6em; line-height: 1; text-shadow: 0 4px 16px rgba(0, 0, 0, 0.25); }

/* ---------- 첫 화면 ---------- */
.hero { padding: 76px 0 64px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { margin: 0 0 16px; color: var(--c1); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; }
h1 {
  margin: 0 0 22px;
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 0 0 32px; color: var(--muted); font-size: 1.08rem; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; width: 100%; max-width: 470px; justify-self: end; }
.tile {
  aspect-ratio: 1;
  border-radius: 24%;
  overflow: hidden;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transform: rotate(var(--r, 0deg));
  animation: float 7s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.tile-icon { width: 100%; height: 100%; object-fit: cover; font-size: clamp(14px, 2.2vw, 22px); }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* ---------- 대표 게임 ---------- */
.featured { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; padding: 24px; }
.featured-media { border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
.banner-ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(rgba(255, 255, 255, 0.14) 1.5px, transparent 1.5px) 0 0 / 22px 22px,
    linear-gradient(135deg, var(--g1), var(--g2));
}
.banner-icon {
  width: 34%;
  aspect-ratio: 1;
  border-radius: 24%;
  font-size: clamp(16px, 2.6vw, 28px);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.55), 0 0 0 3px rgba(255, 255, 255, 0.35);
}
.label { display: inline-block; margin-bottom: 10px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; color: var(--c1); }
.featured-body h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.3; }
.featured-body p { margin: 0 0 24px; color: var(--muted); }
.stores { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 게임 목록 ---------- */
.section { padding-top: 88px; }
.section-head h2 { margin: 0 0 8px; font-size: clamp(1.8rem, 3.4vw, 2.5rem); letter-spacing: -0.015em; line-height: 1.25; }
.section-head p { margin: 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 24px; }
.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.22); }
.chip[aria-pressed="true"] { background: #fff; border-color: #fff; color: #0b1026; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 18px; }
.card {
  display: flex;
  gap: 18px;
  padding: 20px;
  transition: transform 0.25s, background 0.25s, border-color 0.25s;
  animation: pop 0.4s ease both;
}
.card:hover { transform: translateY(-3px); background: var(--panel-hover); border-color: rgba(56, 189, 248, 0.35); }
@keyframes pop {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.game-icon { flex: none; width: 96px; height: 96px; border-radius: 22px; object-fit: cover; font-size: 16px; }
.card-body { min-width: 0; display: flex; flex-direction: column; }
.tag { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; color: var(--c1); }
.card h3 { margin: 2px 0 6px; font-size: 1.08rem; line-height: 1.35; }
.card p { margin: 0 0 14px; color: var(--muted); font-size: 0.9rem; }
.card .stores { margin-top: auto; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-dev { color: #7dd3fc; background: rgba(56, 189, 248, 0.1); border-color: rgba(56, 189, 248, 0.3); }
.badge-dev::before { animation: blink 1.6s ease-in-out infinite; }
.badge-soon { color: #fcd34d; background: rgba(252, 211, 77, 0.1); border-color: rgba(252, 211, 77, 0.28); }
@keyframes blink { 50% { opacity: 0.25; } }
.chips[hidden] { display: none; }
.decor svg { width: 46%; height: 46%; fill: #fff; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25)); }
.empty { color: var(--muted); }

/* ---------- 회사 소개 · 문의 ---------- */
.info { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; padding-top: 88px; }
.info .panel { padding: 32px; }
.info h2 { margin: 0 0 14px; font-size: 1.5rem; }
.info p { margin: 0 0 12px; color: var(--muted); }
.mail { margin-top: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.socials:empty { display: none; }

/* ---------- 하단 ---------- */
.site-footer { margin-top: 88px; border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted); font-size: 0.85rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: flex-start; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.biz { margin-top: 6px; font-size: 0.8rem; opacity: 0.85; }
.biz span + span::before { content: "|"; margin: 0 8px; opacity: 0.4; }

/* ---------- 스크롤 등장 효과 ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 약관 페이지 ---------- */
.back { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.back:hover { color: var(--text); }
.legal { max-width: 820px; padding-top: 56px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin: 0 0 32px; }
.legal h2 { font-size: 1.15rem; margin: 36px 0 10px; }
.legal p, .legal li { color: #c9d2ee; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin: 4px 0; }
.table-scroll { overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 10px 0; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--panel); white-space: nowrap; }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .hero { padding: 48px 0 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-art { justify-self: center; max-width: 400px; }
  .featured { grid-template-columns: 1fr; gap: 22px; padding: 16px 16px 24px; }
  .featured-body { padding: 0 8px; }
  .info { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .hero-art { gap: 12px; }
  .info .panel { padding: 24px; }
  .section, .info { padding-top: 64px; }
}
@media (max-width: 420px) {
  .card { padding: 16px; gap: 14px; }
  .game-icon { width: 72px; height: 72px; border-radius: 18px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile, .card, .badge-dev::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
