/* UtopiaGames — shared styles */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --text: #14151a;
  --muted: #5e6272;
  --line: #e7e8ef;
  --brand: #5b4cf5;
  --brand-dark: #4335d8;
  --brand-soft: #eeecff;
  --pink: #ff5c8a;
  --gold: #f5b83d;
  --radius: 20px;
  --max: 1120px;
  --shadow: 0 10px 30px rgba(20, 21, 26, 0.07);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.logo span b { color: var(--brand); font-weight: 800; }
.nav {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}
.nav a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(91, 76, 245, 0.25); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: #cfd1dc; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 16px; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.section-head { margin-bottom: 48px; }
.gradient-text {
  background: linear-gradient(90deg, var(--brand), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 110px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(91, 76, 245, 0.16), transparent 65%);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -50% -15%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(255, 92, 138, 0.12), transparent 65%);
  z-index: -1;
}
.hero h1 { margin-bottom: 24px; max-width: 820px; }
.hero .lead { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.card p { color: var(--muted); }
.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 20px;
}
.icon-badge svg { width: 24px; height: 24px; }

/* ---------- Game feature card (home) ---------- */
.game-card {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  align-items: center;
  gap: 48px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 48px;
  box-shadow: var(--shadow);
}
.game-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 28px; }
.tag {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
}
.game-card p { color: var(--muted); }
.game-art {
  display: block;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(20, 21, 26, 0.18);
  transition: transform 0.2s ease;
}
.game-art:hover { transform: translateY(-2px); }
.game-art img { width: 100%; height: auto; }
.game-visual {
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.35), transparent 40%),
    linear-gradient(135deg, #6a5cff 0%, #b24dff 50%, #ff5c8a 100%);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.game-visual .suits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.game-visual .suit {
  width: 84px;
  height: 112px;
  border-radius: 14px;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  box-shadow: 0 12px 24px rgba(20, 21, 26, 0.18);
}
.game-visual .suit:nth-child(1) { transform: rotate(-8deg); color: var(--text); }
.game-visual .suit:nth-child(2) { transform: rotate(6deg) translateY(-6px); color: var(--pink); }
.game-visual .suit:nth-child(3) { transform: rotate(4deg) translateY(4px); color: var(--pink); }
.game-visual .suit:nth-child(4) { transform: rotate(-5deg); color: var(--text); }

/* ---------- Store buttons ---------- */
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text);
  color: #fff;
  padding: 10px 20px 10px 16px;
  border-radius: 14px;
  min-width: 190px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.store-btn:hover { transform: translateY(-1px); background: #000; }
.store-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-btn small { display: block; font-size: 0.7rem; opacity: 0.8; line-height: 1.2; }
.store-btn strong { display: block; font-size: 1.05rem; line-height: 1.2; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a:hover { color: var(--text); }

/* ---------- Vegastopia page ---------- */
.vt-hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 92, 138, 0.14), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(91, 76, 245, 0.14), transparent 45%),
    #fff;
}
.vt-hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.vt-hero h1 { margin-bottom: 20px; }
.vt-hero .lead { margin-bottom: 32px; }
.vt-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
/* Landscape phone frame holding a game screenshot */
.phone {
  justify-self: center;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 19.5 / 9;
  border-radius: 44px;
  padding: 12px;
  background: var(--text);
  box-shadow: 0 30px 60px rgba(20, 21, 26, 0.25);
  transform: rotate(-2deg);
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 30% 15%, rgba(255, 255, 255, 0.3), transparent 40%),
    linear-gradient(160deg, #6a5cff 0%, #b24dff 55%, #ff5c8a 100%);
}
.phone-screen .title { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.phone-screen .chips { display: flex; gap: 8px; }
.phone-screen .chip {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 5px dashed rgba(255, 255, 255, 0.85);
  background: var(--gold);
}
.phone-screen .chip:nth-child(2) { background: var(--pink); }
.phone-screen .chip:nth-child(3) { background: #2bd99f; }
.phone-screen .cards { display: flex; gap: 8px; }
.phone-screen .mini-card {
  width: 54px;
  height: 74px;
  background: #fff;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: var(--text);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}
.phone-screen .mini-card.red { color: var(--pink); }

.games-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.game-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 20px;
  text-align: center;
  font-weight: 700;
}
.game-tile .emoji { font-size: 2rem; display: block; margin-bottom: 10px; }

.notice {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  padding: 24px 28px;
  color: var(--muted);
  font-size: 0.95rem;
}
.notice strong { color: var(--text); }
.notice p + p { margin-top: 8px; }

.cta-band {
  text-align: center;
  background: linear-gradient(135deg, var(--brand) 0%, #b24dff 55%, var(--pink) 100%);
  color: #fff;
  border-radius: 28px;
  padding: 64px 32px;
}
.cta-band h2 { color: #fff; }
.cta-band p { opacity: 0.9; margin-bottom: 28px; }
.cta-band .store-buttons { justify-content: center; }
.cta-band .store-btn { background: #fff; color: var(--text); }
.cta-band .store-btn:hover { background: #f1f1f6; }

.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}
.social-links a:hover { color: var(--text); border-color: #cfd1dc; }
.social-links svg { width: 18px; height: 18px; }

/* ---------- Legal pages ---------- */
.legal-head { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.legal-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 8px; }
.legal-body { padding: 48px 0 96px; }
.legal { max-width: 760px; color: #33363f; font-size: 0.98rem; }
.legal h2 {
  font-size: 1.2rem;
  color: var(--text);
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}
.legal p { margin-bottom: 12px; }
.legal a { color: var(--brand); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .game-card, .vt-hero .container { grid-template-columns: 1fr; }
  .game-card { padding: 28px; gap: 32px; }
  .games-list { grid-template-columns: repeat(2, 1fr); }
  section { padding: 72px 0; }
  .hero { padding: 88px 0 80px; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .nav { gap: 16px; font-size: 0.88rem; }
  .nav .hide-sm { display: none; }
  .card { padding: 24px; }
  .store-btn { min-width: 0; flex: 1 1 170px; }
  .phone { border-radius: 28px; padding: 8px; transform: none; }
  .phone-screen { border-radius: 22px; }
}
