/* GAME VIC — gamevic.net */
:root {
  --ink: #141729;
  --ink-2: #1d2140;
  --ink-3: #272c52;
  --paper: #fbf7ef;
  --paper-2: #f3ecdd;
  --text: #22253a;
  --muted: #6b6f86;
  --gold: #f5b83d;
  --gold-2: #ffd36e;
  --red: #c8483b;
  --green: #3fae6a;
  --radius: 18px;
  --wrap: 1120px;
  --display: "Pretendard Variable", "Pretendard", system-ui, sans-serif;
  --body: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 32px); margin: 0 auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 23, 41, .88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 3px 8px rgba(0,0,0,.35);
}
.logo-text { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .3px; }
.nav { display: flex; gap: 4px; }
.nav a {
  color: rgba(255,255,255,.78); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 14px; border-radius: 999px; transition: background .15s, color .15s;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--ink) url("img/hero-bg.webp") center / cover no-repeat;
  min-height: min(640px, 88vh);
  display: flex; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,23,41,.94) 0%, rgba(20,23,41,.72) 42%, rgba(20,23,41,.15) 75%),
    linear-gradient(0deg, rgba(20,23,41,.85) 0%, rgba(20,23,41,0) 40%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; padding: 72px 0; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(245,184,61,.16); color: var(--gold-2);
  border: 1px solid rgba(245,184,61,.4);
  padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .5px;
}
.hero h1 {
  font-family: var(--display); font-weight: 900; letter-spacing: -2px;
  font-size: clamp(52px, 8vw, 92px); line-height: 1; margin: 18px 0 14px;
  text-shadow: 0 4px 0 rgba(0,0,0,.35);
}
.hero h1 .accent { color: var(--gold-2); }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: rgba(255,255,255,.86); margin: 0 0 30px; max-width: 30em; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px; font-weight: 700; font-size: 16px;
  text-decoration: none; border: 0; cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.btn:active { transform: translateY(2px); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 4px 0 #b97d14; }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn .small { display: block; font-size: 11px; font-weight: 600; opacity: .75; line-height: 1.1; }
.btn .big { display: block; line-height: 1.15; }
.btn svg { width: 22px; height: 22px; flex: none; }

.party { position: relative; height: 380px; }
.party img { position: absolute; filter: drop-shadow(0 14px 18px rgba(0,0,0,.45)); animation: bob 3.2s ease-in-out infinite; }
.party .p1 { width: 46%; left: 0;   bottom: 6%;  animation-delay: -.4s; }
.party .p2 { width: 44%; left: 30%; bottom: 26%; animation-delay: -1.6s; z-index: 1; }
.party .p3 { width: 46%; right: 0;  bottom: 2%;  animation-delay: -2.4s; }
@keyframes bob { 50% { transform: translateY(-12px); } }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.eyebrow { color: var(--red); font-weight: 800; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
h2.title { font-family: var(--display); font-weight: 800; letter-spacing: -.5px; font-size: clamp(32px, 4.4vw, 46px); line-height: 1.15; margin: 8px 0 14px; color: var(--ink); }
.sub { color: var(--muted); font-size: 17px; max-width: 36em; margin: 0; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.feature {
  background: #fff; border-radius: var(--radius); padding: 26px 22px 24px;
  border: 1px solid #ece4d3; box-shadow: 0 6px 0 #ece4d3;
  transition: transform .18s, box-shadow .18s;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 10px 0 #e6dcc6; }
.feature .ico {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  background: var(--paper-2); margin-bottom: 16px; overflow: hidden;
}
.feature .ico img { width: 52px; height: 52px; object-fit: contain; }
.feature .ico span { font-size: 30px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; color: var(--ink); }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* games */
.games { background: var(--ink); color: #fff; }
.games h2.title { color: #fff; }
.games .sub { color: rgba(255,255,255,.65); }
.games .eyebrow { color: var(--gold); }
.game-card {
  margin-top: 40px; display: grid; grid-template-columns: 300px 1fr; overflow: hidden;
  background: var(--ink-2); border-radius: 24px; border: 1px solid rgba(255,255,255,.08);
}
.game-card .cover { background: url("img/game-cover.webp") center / cover; min-height: 340px; position: relative; }
.game-card .cover img { position: absolute; width: 62%; left: 19%; bottom: 8%; filter: drop-shadow(0 10px 14px rgba(0,0,0,.5)); }
.game-card .body { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }
.game-card h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.5px; font-size: 38px; margin: 0; line-height: 1.1; }
.game-card .en { color: rgba(255,255,255,.5); font-weight: 600; font-size: 14px; letter-spacing: 1px; margin-top: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 18px; }
.tag { font-size: 13px; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); }
.tag.live { background: rgba(245,184,61,.16); color: var(--gold-2); }
.game-card p { color: rgba(255,255,255,.78); margin: 0 0 24px; }

/* about */
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about .values { display: grid; gap: 14px; }
.value { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid #ece4d3; border-radius: 16px; padding: 18px 20px; }
.value b { display: block; color: var(--ink); font-size: 16px; }
.value span { color: var(--muted); font-size: 15px; }
.value .num { font-family: var(--display); font-weight: 900; font-size: 26px; color: var(--gold); line-height: 1; min-width: 28px; }

/* support */
.support { background: var(--paper-2); }
.support-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 16px; margin-top: 40px; }
.card {
  display: block; text-decoration: none; background: #fff; border-radius: var(--radius);
  padding: 24px; border: 1px solid #e6dcc6; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--gold); transform: translateY(-2px); }
.card .k { font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: .5px; }
.card .v { font-weight: 800; color: var(--ink); font-size: 18px; margin-top: 6px; word-break: break-all; }
.card .d { color: var(--muted); font-size: 14px; margin-top: 6px; }
.card.primary { background: var(--ink); border-color: var(--ink); }
.card.primary .k { color: var(--gold); }
.card.primary .v { color: #fff; }
.card.primary .d { color: rgba(255,255,255,.65); }

/* footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 44px 0 52px; font-size: 14px; }
.site-footer .top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer .links a { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600; }
.site-footer .links a:hover { color: var(--gold-2); }
.site-footer .links a.strong { color: var(--gold-2); }
.site-footer .info { margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); line-height: 1.9; }

/* ---------- document pages ---------- */
.doc-hero { background: var(--ink); color: #fff; padding: 56px 0 44px; }
.doc-hero h1 { font-family: var(--display); font-weight: 800; letter-spacing: -.5px; font-size: clamp(32px, 5vw, 44px); margin: 6px 0 6px; line-height: 1.2; }
.doc-hero p { margin: 0; color: rgba(255,255,255,.65); }
.doc { padding: 48px 0 96px; }
.doc .wrap { max-width: 820px; }
.doc h2 { font-size: 20px; color: var(--ink); margin: 40px 0 10px; padding-top: 8px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 16px; color: var(--ink); margin: 22px 0 6px; }
.doc p, .doc li { color: #3b3f55; font-size: 15.5px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 4px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 8px; font-size: 14.5px; background: #fff; border-radius: 12px; overflow: hidden; }
.doc th, .doc td { border: 1px solid #e6dcc6; padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--paper-2); color: var(--ink); font-weight: 700; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.note { background: #fff; border: 1px solid #e6dcc6; border-left: 4px solid var(--gold); border-radius: 12px; padding: 16px 18px; margin: 18px 0; }
.note p { margin: 0; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; background: #fff; border: 1px solid #e6dcc6; border-radius: 14px; padding: 16px 18px 16px 62px; margin: 0; }
.steps li::before {
  content: counter(s); position: absolute; left: 18px; top: 14px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--ink);
  display: grid; place-items: center; font-weight: 800;
}
.toc { background: #fff; border: 1px solid #e6dcc6; border-radius: 14px; padding: 18px 22px; margin-bottom: 8px; }
.toc ol { margin: 6px 0 0; columns: 2; column-gap: 28px; }
.toc a { text-decoration: none; color: #3b3f55; }
.toc a:hover { color: var(--red); }
.mail { color: var(--red); font-weight: 700; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.notfound img { width: 160px; margin: 0 auto 10px; }
.notfound h1 { font-family: var(--display); font-weight: 800; letter-spacing: -.5px; font-size: 64px; margin: 0; color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .support-grid { grid-template-columns: 1fr 1fr; }
  .about .wrap { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .nav a { padding: 8px 10px; font-size: 14px; }
  .nav a.hide-sm { display: none; }
  .hero .wrap { grid-template-columns: 1fr; padding: 48px 0 0; }
  .party { height: 260px; max-width: 420px; width: 100%; margin: 0 auto; }
  .game-card { grid-template-columns: 1fr; }
  .game-card .cover { min-height: 260px; }
  .game-card .cover img { width: 46%; left: 27%; }
  .game-card .body { padding: 28px 24px; }
  section { padding: 72px 0; }
  .toc ol { columns: 1; }
}
@media (max-width: 480px) {
  .features, .support-grid { grid-template-columns: 1fr; }
  .logo-text { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .party img { animation: none; }
  html { scroll-behavior: auto; }
}
