/* Shared styles for woo3.swyun.kr. Warm light palette taken from the dealer otter mascot. */

:root {
  color-scheme: light;
  --bg: #fbf7f1;
  --surface: #ffffff;
  --surface-2: #f3ebe1;
  --border: #e8ddd0;
  --text: #3d3532;
  --text-dim: #5f5550;
  --text-mute: #8c7b74;
  --heading: #2a2422;
  --accent: #6b5a52;
  --accent-hover: #54463f;
  --gold: #94681f;
  --shadow: 0 1px 2px rgba(80, 60, 40, 0.06), 0 4px 14px rgba(80, 60, 40, 0.06);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  word-break: keep-all;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

code {
  background: var(--surface-2);
  color: var(--heading);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ── Header ─────────────────────────────────────────────── */

header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--heading);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--heading); }
.logo img { width: 28px; height: 28px; }

.badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

header nav {
  margin-left: auto;
  display: flex;
  gap: 1.25rem;
}

header nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
}
header nav a:hover { color: var(--heading); }

@media (max-width: 560px) {
  header nav .wide { display: none; }
}

/* ── Footer ─────────────────────────────────────────────── */

footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.8rem;
  color: var(--text-mute);
  border-top: 1px solid var(--border);
  line-height: 1.8;
}
footer a { color: var(--text-mute); }
footer a:hover { color: var(--text); }

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

/* ── Landing ────────────────────────────────────────────── */

.landing { flex: 1; }

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 4.5rem 1rem;
}

.section h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section .lead {
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 2rem;
  padding-top: 4rem;
}

.hero .eyebrow {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 900;
  color: var(--heading);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero h1 small {
  display: block;
  font-size: 0.4em;
  font-weight: 600;
  color: var(--text-mute);
  letter-spacing: 0;
  margin-top: 0.4rem;
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.hero .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Mascot in front, cards fanned out behind its head. */
.stage {
  position: relative;
  height: 380px;
}

.stage::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 340px;
  height: 340px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, #f1e2cf 0%, rgba(241, 226, 207, 0) 70%);
}

.stage .mascot {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 200px;
  transform: translateX(-50%);
  z-index: 1;
  filter: drop-shadow(0 10px 14px rgba(80, 60, 40, 0.18));
}

.stage .fan img {
  position: absolute;
  left: 50%;
  bottom: 110px;
  width: 140px;
  height: 140px;
  transform-origin: 50% 190%;
  filter: drop-shadow(0 6px 10px rgba(80, 60, 40, 0.2));
  transition: transform 0.25s;
}

.stage .fan img:nth-child(1) { transform: translateX(-50%) rotate(-40deg); }
.stage .fan img:nth-child(2) { transform: translateX(-50%) rotate(-14deg); }
.stage .fan img:nth-child(3) { transform: translateX(-50%) rotate(14deg); }
.stage .fan img:nth-child(4) { transform: translateX(-50%) rotate(40deg); }
.stage:hover .fan img:nth-child(1) { transform: translateX(-50%) rotate(-46deg); }
.stage:hover .fan img:nth-child(2) { transform: translateX(-50%) rotate(-17deg); }
.stage:hover .fan img:nth-child(3) { transform: translateX(-50%) rotate(17deg); }
.stage:hover .fan img:nth-child(4) { transform: translateX(-50%) rotate(46deg); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .stage { height: 300px; order: -1; }
  .stage::before { width: 260px; height: 260px; }
  .stage .mascot { width: 155px; }
  .stage .fan img { width: 108px; height: 108px; bottom: 86px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage .fan img { transition: none; }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.card .icon { font-size: 1.8rem; margin-bottom: 0.6rem; }

.card h3 {
  color: var(--heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.card p {
  color: var(--text-dim);
  line-height: 1.65;
  font-size: 0.95rem;
}

.card .cmd { margin-top: 0.8rem; font-size: 0.85rem; color: var(--text-mute); }

.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.game {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.game h3 {
  color: var(--heading);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.game p { color: var(--text-dim); font-size: 0.88rem; line-height: 1.6; }

.tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
}
.tag-house { background: #fbe4e1; color: #a8372f; }
.tag-pvp { background: #e3edf4; color: #3f6178; }
.tag-bank { background: #f6ead3; color: #85570f; }

.note {
  margin-top: 1.5rem;
  background: #fbf1df;
  border-left: 3px solid #d9a441;
  border-radius: 0 10px 10px 0;
  padding: 0.9rem 1.2rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
}

.commands {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 760px) {
  .commands { grid-template-columns: 1fr; }
}

.commands .card h3 { margin-bottom: 0.8rem; }

.commands dl { display: grid; gap: 0.6rem; }
.commands dt { font-size: 0.88rem; }
.commands dd { color: var(--text-mute); font-size: 0.85rem; margin-top: 0.1rem; }

.cta {
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta .mascot { width: 120px; margin-bottom: 1rem; }
.cta p { color: var(--text-dim); margin-bottom: 1.5rem; }

/* ── Legal pages ────────────────────────────────────────── */

.doc {
  max-width: 780px;
  width: 100%;
  margin: 3rem auto;
  padding: 0 1rem;
  flex: 1;
}

.doc h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 0.4rem;
}

.doc .meta {
  font-size: 0.85rem;
  color: var(--text-mute);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.doc h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading);
  margin: 2rem 0 0.6rem;
}

.doc h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.25rem 0 0.4rem;
}

.doc p { line-height: 1.75; color: var(--text-dim); margin-bottom: 0.75rem; }

.doc ul {
  padding-left: 1.4rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.doc ul li { margin-bottom: 0.25rem; }

.doc strong { color: var(--heading); }

.callout {
  background: #f3ece4;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 0.9rem 1.2rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.notfound { text-align: center; }
.notfound .mascot { width: 160px; margin-bottom: 1.5rem; }
.notfound .meta { border-bottom: none; padding-bottom: 0; margin-bottom: 1rem; }
