/* ===== funquer shared design system — dark premium ===== */
:root {
  --bg: #0B1424;
  --bg-soft: #101B2E;
  --fg: #E9EEF6;
  --fg-soft: #8CA0BC;
  --muted: #93A3BA;
  --accent: #00B4D8;
  --navy: #0F2547;
  --border: rgba(148, 163, 184, 0.14);
  --max: 1080px;
  --nav-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Josefin Sans", "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: rgba(0, 180, 216, 0.32); }

/* ===== wordmark ===== */
.wordmark {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-block;
  line-height: 1;
}
.wordmark .fun  { color: var(--fg-soft); }
.wordmark .quer { color: #ffffff; }

/* ===== nav ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 20, 36, 0.72);
  border-bottom: 1px solid var(--border);
}
nav .inner {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav .wordmark { font-size: 1.15rem; }
nav ul {
  list-style: none;
  display: flex;
  gap: 2.2rem;
  font-size: 0.9rem;
  font-weight: 500;
}
nav ul a { color: var(--muted); transition: color 0.2s; position: relative; padding: 0.3rem 0; }
nav ul a:hover { color: #ffffff; }
nav ul a.active { color: #ffffff; }
nav ul a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
@media (max-width: 600px) { nav ul { gap: 1.25rem; font-size: 0.82rem; } }

/* ===== shared bits ===== */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
  font-weight: 600;
}
h1 { letter-spacing: -0.03em; line-height: 1.08; font-weight: 600; color: #ffffff; word-break: keep-all; }
h2 { letter-spacing: -0.025em; line-height: 1.14; font-weight: 600; font-size: clamp(1.7rem, 3.6vw, 2.2rem); color: #ffffff; word-break: keep-all; }
p.lead { font-size: clamp(1rem, 2vw, 1.12rem); color: var(--muted); max-width: 620px; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.7rem;
  background: var(--accent);
  color: #06121F;
  border-radius: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(0, 180, 216, 0.32); background: #1CC4E6; }
.cta.ghost { background: transparent; color: #ffffff; border: 1px solid var(--border); }
.cta.ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; background: transparent; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
  transition: gap 0.25s var(--ease), color 0.2s;
}
.text-link:hover { gap: 0.7rem; color: #6FDDF2; }

/* ===== page wrappers ===== */
.page { padding-top: calc(var(--nav-h) + 5.5rem); padding-bottom: 7rem; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.page-intro h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: 1.2rem; }
.page-intro p { color: var(--muted); font-size: clamp(1.02rem, 2vw, 1.18rem); max-width: 640px; }
.section { margin-top: 6rem; }
.section.tight { margin-top: 3.5rem; }
.divider { height: 1px; background: var(--border); margin: 6rem 0; border: 0; }

/* ===== home hero ===== */
#hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  padding: var(--nav-h) 1.5rem 0;
  background:
    radial-gradient(ellipse 75% 55% at 50% 0%, rgba(15, 37, 71, 0.85), transparent 72%),
    radial-gradient(circle at 82% 20%, rgba(0, 180, 216, 0.10), transparent 42%),
    radial-gradient(circle at 14% 80%, rgba(0, 180, 216, 0.06), transparent 45%);
}
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 68% 58% at 50% 42%, #000 25%, transparent 74%);
  mask-image: radial-gradient(ellipse 68% 58% at 50% 42%, #000 25%, transparent 74%);
  pointer-events: none;
}
#hero > div { position: relative; }
#hero .hero-mark {
  font-size: clamp(3rem, 13vw, 8.5rem);
  font-weight: 600;
  letter-spacing: 0.06em;
}
#hero .tagline {
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #D7E1EF;
  max-width: 640px;
  margin: 2.2rem auto 3rem;
}
.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-soft);
  animation: bob 2.2s ease-in-out infinite;
}

/* ===== home featured ===== */
.featured {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}
.featured .shot {
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}
.featured .shot img { width: 100%; height: auto; }
.featured .row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.featured .row img { width: 58px; height: 58px; border-radius: 0.85rem; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); }
.featured h2 { margin-bottom: 0.9rem; }
.featured p { color: var(--muted); margin-bottom: 1.6rem; }
@media (max-width: 760px) { .featured { grid-template-columns: 1fr; gap: 2rem; } }

/* ===== studio / about ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}
.about-grid p + p { margin-top: 1.2rem; }
.stats { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.stat {
  padding: 1.6rem 1.4rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 2px solid rgba(0, 180, 216, 0.6);
  border-radius: 0.7rem;
}
.stat .num { font-size: 1.8rem; font-weight: 600; color: #ffffff; display: block; line-height: 1; }
.stat .label { font-size: 0.82rem; color: var(--muted); margin-top: 0.5rem; letter-spacing: 0.04em; }
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.value h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; letter-spacing: -0.01em; color: #ffffff; }
.value p { color: var(--muted); font-size: 0.93rem; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; gap: 1.8rem; } }

/* ===== game title badge ===== */
.title-badge {
  width: 100%;
  max-width: 440px;
  height: auto;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.45));
}
.game-sub {
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  color: var(--fg-soft);
  font-weight: 600;
  margin: 0.8rem 0 1.1rem;
}

/* ===== game header ===== */
.game-head { display: grid; grid-template-columns: auto 1fr; gap: 1.9rem; align-items: start; }
.game-icon { width: 128px; height: 128px; border-radius: 1.5rem; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5); flex-shrink: 0; }
.game-head .body { max-width: 640px; }
.game-title { font-size: clamp(1.6rem, 3.6vw, 2.1rem); font-weight: 600; margin-bottom: 0.9rem; letter-spacing: -0.02em; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.chip { font-size: 0.78rem; padding: 0.42rem 0.9rem; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 2rem; color: var(--fg); font-weight: 500; }
.chip span { color: var(--accent); margin-right: 0.3rem; }
@media (max-width: 600px) {
  .game-head { grid-template-columns: 1fr; gap: 1.3rem; }
  .game-icon { width: 96px; height: 96px; border-radius: 1.2rem; }
}
.game-shot {
  margin-top: 3rem;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
.game-shot img { width: 100%; height: auto; }

/* ===== past titles ===== */
.past-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; margin-top: 2.5rem; }
.past-card {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start;
  padding: 1.6rem; background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 0.9rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.past-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4); }
.past-icon { width: 62px; height: 62px; border-radius: 0.95rem; box-shadow: 0 5px 16px rgba(0, 0, 0, 0.45); }
.past-card h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 0.3rem; letter-spacing: -0.01em; color: #ffffff; }
.past-card .past-meta { font-size: 0.78rem; color: var(--fg-soft); font-weight: 500; margin-bottom: 0.6rem; }
.past-card .past-meta .dl { color: var(--accent); font-weight: 600; }
.past-card p { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 600px) { .past-grid { grid-template-columns: 1fr; } }

/* ===== contact ===== */
.contact-wrap { text-align: center; max-width: 620px; margin: 0 auto; }
.contact-mail { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 600; letter-spacing: -0.02em; display: inline-block; margin: 1.5rem 0 0.6rem; color: #ffffff; transition: color 0.2s; }
.contact-mail:hover { color: var(--accent); }

/* ===== footer ===== */
footer { border-top: 1px solid var(--border); background: #081020; }
footer .inner {
  max-width: var(--max); margin: 0 auto; padding: 2.6rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
footer .wordmark { font-size: 1rem; }
footer .foot-links { display: flex; gap: 1.4rem; font-size: 0.85rem; }
footer .foot-links a { color: var(--muted); transition: color 0.2s; }
footer .foot-links a:hover { color: #ffffff; }
footer .copy { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.03em; width: 100%; margin-top: 0.4rem; }

/* ===== motion ===== */
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.fade-in { animation: fadeup 1s var(--ease) both; }
.fade-in.d1 { animation-delay: 0.12s; }
.fade-in.d2 { animation-delay: 0.24s; }
.fade-in.d3 { animation-delay: 0.36s; }
@keyframes fadeup { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .fade-in { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  .scroll-cue { animation: none; }
}
