:root {
  --bg: #070b16;
  --bg2: #0c1226;
  --panel: #101828;
  --border: #1f2b45;
  --text: #eaf0ff;
  --muted: #8b98b8;
  --accent: #4f7cff;
  --neon: #00e5a0;
  --violet: #a06bff;
  --amber: #ffb020;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Pretendard", -apple-system, "Noto Sans KR", "Segoe UI", sans-serif;
}
a { color: inherit; }
.muted { color: var(--muted); font-weight: 400; font-size: 0.7em; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px; background: rgba(7, 11, 22, 0.78);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.logo { text-decoration: none; font-weight: 800; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.logo-mark { color: var(--neon); }
.logo-sub { font-size: 12px; color: var(--muted); font-weight: 400; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { text-decoration: none; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
#skyline { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; padding: 120px 8vw 80px; max-width: 1100px; }
.kicker {
  letter-spacing: 4px; font-size: 12px; color: var(--neon); font-weight: 700; margin: 0 0 18px;
  display: inline-block; border: 1px solid rgba(0, 229, 160, 0.35);
  padding: 6px 14px; border-radius: 20px; background: rgba(0, 229, 160, 0.06);
}
.hero h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1.08; margin: 0 0 20px; font-weight: 900; }
.grad {
  background: linear-gradient(92deg, var(--accent), var(--violet), var(--neon), var(--accent));
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s linear infinite;
}
@keyframes sheen { to { background-position: 220% center; } }
@media (prefers-reduced-motion: reduce) {
  .grad { animation: none; }
}
.hero-sub { font-size: 17px; color: var(--muted); line-height: 1.8; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 12px; margin-bottom: 56px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; padding: 13px 26px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--panel); font-weight: 700; font-size: 15px;
  transition: transform 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.btn.primary { background: linear-gradient(92deg, var(--accent), #6a5cff); border: none; color: #fff; }
.btn.small { padding: 9px 18px; font-size: 13px; }
.stats { display: flex; gap: 44px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 38px; font-weight: 900; color: var(--neon); font-variant-numeric: tabular-nums; }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }
.game-hint { margin-top: 22px; font-size: 13px; color: var(--muted); }
.game-hint #clickScore { color: #ffd166; font-weight: 800; font-variant-numeric: tabular-nums; }
.fever-bar {
  width: 190px; height: 7px; margin-top: 12px;
  background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden;
  border: 1px solid rgba(255,209,102,0.25);
}
#feverFill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #ffd166, #ff7ab8, #ffd166);
  background-size: 200% 100%;
  animation: feverflow 1.2s linear infinite;
  border-radius: 4px;
}
@keyframes feverflow { to { background-position: 200% 0; } }
.hero #skyline { transition: filter 0.4s; }
.hero.fever #skyline { filter: saturate(1.5) brightness(1.12); }
.hero.fever .fever-bar { box-shadow: 0 0 14px rgba(255,209,102,0.9); border-color: #ffd166; }
@media (prefers-reduced-motion: reduce) {
  #feverFill { animation: none; }
}

/* ---------- 트렌드 티커 ---------- */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(0,229,160,0.06), rgba(88,166,255,0.06), rgba(160,107,255,0.06));
}
.ticker-track {
  display: flex; align-items: center; gap: 30px;
  width: max-content; padding: 13px 0;
  white-space: nowrap;
  animation: tick 30s linear infinite;
}
.ticker-track span {
  font-size: 13px; font-weight: 800; letter-spacing: 0.14em; color: var(--text);
}
.ticker-track i { color: var(--neon); font-style: normal; font-size: 12px; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- sections ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 90px 28px 30px; }
.section-head h2 { font-size: 32px; margin: 0 0 8px; }
.section-head p { color: var(--muted); margin: 0 0 26px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  border: 1px solid var(--border); background: var(--panel); color: var(--muted);
  border-radius: 20px; padding: 8px 18px; font-size: 13px; cursor: pointer; font-weight: 600;
}
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip:hover { border-color: var(--accent); color: var(--text); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.card {
  position: relative; display: block; text-decoration: none;
  background: var(--panel); border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 18px 44px rgba(79, 124, 255, 0.16); }
.card-art { height: 170px; position: relative; overflow: hidden; }
.card-art img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.45s ease;
}
.card:hover .card-art img { transform: scale(1.07); }
.card-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,8,16,0) 30%, rgba(5,8,16,0.55) 100%);
}
.card-emoji {
  position: absolute; left: 14px; bottom: 10px; font-size: 36px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.65));
}
.card-art .ext {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 10px;
  background: rgba(0, 0, 0, 0.45); display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #fff; backdrop-filter: blur(4px);
}
.card-body { padding: 18px 20px 20px; }
.card-body h3 { margin: 0 0 6px; font-size: 17px; }
.card-body .url { font-size: 12px; color: var(--muted); margin: 0 0 10px; font-family: monospace; }
.card-body p { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin: 0 0 12px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; background: rgba(79, 124, 255, 0.12); color: #9db8ff;
  border: 1px solid rgba(79, 124, 255, 0.3); border-radius: 8px; padding: 3px 10px; }

/* ---------- about ---------- */
.about { padding-bottom: 90px; }
.about-card {
  display: flex; gap: 28px; align-items: flex-start;
  background: linear-gradient(135deg, var(--panel), var(--bg2));
  border: 1px solid var(--border); border-radius: 20px; padding: 36px;
}
.about-emoji { font-size: 56px; }
.about-card h2 { margin: 0 0 6px; font-size: 24px; }
.about-line { color: var(--neon); font-size: 14px; font-weight: 600; margin: 0 0 14px; }
.about-card p { color: var(--muted); line-height: 1.8; font-size: 14.5px; }
.about-links { margin-top: 18px; display: flex; gap: 10px; }

footer { text-align: center; padding: 40px 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
footer a { color: var(--accent); }
footer p { margin: 6px 0; }

@media (max-width: 640px) {
  .stats { gap: 26px; }
  .stat-num { font-size: 30px; }
  .about-card { flex-direction: column; }
  .nav-links { gap: 14px; }
}
