/* =========================================================
   더블업(2UP) 랜딩 — 테마 토큰
   원본 사이트(rmc19-333/999.com) 톤: 시안 디지털 그리드 영상 배경
   + 크림슨 레드(--primary #E00A15) / 크롬 실버 2UP 로고 → 그대로 계승
   ========================================================= */
:root {
  --bg-0: #03070b;          /* 최심부 */
  --bg-1: #08121b;          /* 섹션 바닥 */
  --bg-2: #0e1c28;          /* 카드/패널 */
  --line: rgba(150, 210, 235, .14);
  --line-strong: rgba(150, 210, 235, .32);

  --ink-1: #f5f7fa;
  --ink-2: #c9d3dd;         /* 밝게 유지 — 가독성 */
  --ink-3: #8d9cab;

  --red: #e00a15;           /* 원본 --primary */
  --red-hi: #f52832;
  --red-deep: #9a0710;
  --red-glow: rgba(224, 10, 21, .45);
  --silver-hi: #ffffff;
  --silver-lo: #9aa3ad;     /* 로고 크롬 하단 */
  --cyan: #2fa6d6;          /* 배경 영상 그리드 */
  --cyan-glow: rgba(47, 166, 214, .45);
  --tg: #2aabee;            /* 텔레그램 */

  --font-display: 'Anton', 'Noto Sans KR', sans-serif;
  --font-body: 'Noto Sans KR', system-ui, sans-serif;

  --wrap: 1120px;
  --gutter: 16px;
  --radius: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-1);
  background: var(--bg-0);
  overflow-x: hidden;
  min-height: 100vh;
  word-break: keep-all;        /* 한글 어절 단위 줄바꿈 */
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover, a:active, a:visited { text-decoration: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 배경: 원본 back.mp4 루프 + 레드/시안 조명 스윕 ---------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: var(--bg-0) url('poster.jpg') center / cover no-repeat; }
.bg__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) brightness(.7);
}
.bg__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 38%, transparent, rgba(3, 7, 11, .75) 75%),
    linear-gradient(180deg, rgba(3, 7, 11, .2), rgba(3, 7, 11, .85));
}
.bg__light {
  position: absolute; top: -30%; width: 60vw; height: 140%;
  background: radial-gradient(ellipse at center, rgba(47, 166, 214, .28), transparent 60%);
  mix-blend-mode: screen; filter: blur(30px);
}
.bg__light--l { left: -20vw; animation: sweepL 18s ease-in-out infinite alternate; }
.bg__light--r { right: -25vw; background: radial-gradient(ellipse at center, rgba(224, 10, 21, .28), transparent 60%); animation: sweepR 22s ease-in-out infinite alternate; }
.bg__grain {
  position: absolute; inset: 0; opacity: .1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.6'/></svg>");
}
@keyframes sweepL { from { transform: translateX(0) rotate(-8deg); } to { transform: translateX(14vw) rotate(4deg); } }
@keyframes sweepR { from { transform: translateX(0) rotate(6deg); } to { transform: translateX(-12vw) rotate(-6deg); } }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, opacity .25s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--red {
  background: linear-gradient(180deg, var(--red-hi), var(--red-deep));
  color: #fff; box-shadow: 0 8px 24px -6px var(--red-glow), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn--red:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -6px var(--red-glow), inset 0 1px 0 rgba(255,255,255,.2); }
.btn--silver {
  background: linear-gradient(180deg, var(--silver-hi), var(--silver-lo));
  color: #14181d; box-shadow: 0 8px 24px -8px rgba(200, 210, 220, .35), inset 0 1px 0 rgba(255,255,255,.6);
}
.btn--silver:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(200, 210, 220, .5), inset 0 1px 0 rgba(255,255,255,.6); }
.btn--tg { background: rgba(42,171,238,.12); color: var(--ink-1); border-color: rgba(42,171,238,.45); }
.btn--tg:hover { background: rgba(42,171,238,.24); transform: translateY(-2px); }
.ico-tg { flex: none; color: var(--tg); }

/* ---------- 상단바 ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 20px;
  padding: 10px var(--gutter);
  background: rgba(3, 7, 11, .55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top__brand { display: flex; align-items: center; gap: 10px; }
.top__brand img { width: 58px; height: auto; }
.top__name { font-weight: 900; font-size: 17px; letter-spacing: .06em; }
.top__nav { display: none; margin-left: auto; gap: 28px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.top__nav a { transition: color .2s; }
.top__nav a:hover { color: var(--ink-1); }
.top__actions { margin-left: auto; display: flex; gap: 8px; }
.top__actions .btn--tg { display: none; }
@media (min-width: 760px) { .top__nav { display: flex; } .top__actions { margin-left: 0; } .top__actions .btn--tg { display: inline-flex; } .top { padding: 12px 28px; } }

/* ---------- HERO ---------- */
.hero {
  position: relative; z-index: 1;
  padding: 48px var(--gutter) 72px;
  text-align: center;
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.hero__kicker {
  margin: 0 0 14px; font-family: var(--font-display); font-size: 13px; letter-spacing: .32em;
  color: var(--ink-3);
}
.hero__logo {
  width: min(360px, 78vw); margin: 0 auto 4px;
  opacity: 0; transform: translateY(18px);
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.65)) drop-shadow(0 0 34px rgba(224,10,21,.3));
  animation: rise .9s var(--ease) .15s forwards, logoFloat 6s ease-in-out 1.2s infinite alternate;
}
@keyframes logoFloat { from { transform: translateY(0); } to { transform: translateY(-8px); } }
.hero__title { margin: 0 0 30px; line-height: 1; }
.hero__title-en {
  display: block; font-family: var(--font-display);
  font-size: clamp(60px, 15vw, 132px); letter-spacing: .04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,.5);
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0));
  -webkit-background-clip: text; background-clip: text;
  margin-top: -8px;
}
.hero__title-ko {
  display: block; margin-top: 6px;
  font-size: clamp(20px, 4.4vw, 32px); font-weight: 900; letter-spacing: -.01em;
}

/* 도메인 카드 — 주소1 레드, 주소2 크롬/시안 */
.domains { display: grid; grid-template-columns: 1fr; gap: 14px; text-align: left; }
.domain {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 18px 20px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(224,10,21,.32), rgba(224,10,21,.08) 60%, rgba(14,28,40,.75));
  border: 1px solid rgba(245, 40, 50, .55);
  box-shadow: 0 18px 50px -20px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.domain::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.14) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}
.domain:hover { transform: translateY(-3px); border-color: rgba(255, 90, 100, .95); box-shadow: 0 26px 60px -20px var(--red-glow), inset 0 1px 0 rgba(255,255,255,.1); }
.domain:hover::before { transform: translateX(120%); }
.domain--alt {
  background: linear-gradient(135deg, rgba(47,166,214,.28), rgba(47,166,214,.07) 60%, rgba(14,28,40,.75));
  border-color: rgba(47, 166, 214, .55);
}
.domain--alt:hover { border-color: rgba(120, 205, 240, .95); box-shadow: 0 26px 60px -20px var(--cyan-glow), inset 0 1px 0 rgba(255,255,255,.1); }
.domain__tag {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--ink-2);
  padding: 5px 9px; border-radius: 6px; background: rgba(0,0,0,.35); border: 1px solid var(--line);
}
.domain__url {
  font-family: var(--font-display); font-size: clamp(26px, 7vw, 40px); letter-spacing: .03em; line-height: 1;
  white-space: nowrap;
  background: linear-gradient(180deg, var(--silver-hi) 35%, var(--silver-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.domain__url b { font-weight: inherit; color: var(--red-hi); -webkit-text-fill-color: var(--red-hi); }
.domain--alt .domain__url b { color: var(--cyan); -webkit-text-fill-color: var(--cyan); }
.domain__url em { font-style: normal; font-size: .6em; -webkit-text-fill-color: var(--ink-3); }
.domain__go { font-size: 14px; font-weight: 700; color: var(--ink-1); opacity: .85; transition: opacity .2s, transform .3s var(--ease); }
.domain:hover .domain__go { opacity: 1; transform: translateX(4px); }

/* 텔레그램 한 줄 */
.tg-line {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  padding: 10px 18px; border-radius: 999px; font-size: 14px; color: var(--ink-2);
  background: rgba(42,171,238,.08); border: 1px solid rgba(42,171,238,.3);
  transition: background .25s, transform .3s var(--ease);
}
.tg-line strong { color: var(--ink-1); font-weight: 700; }
.tg-line:hover { background: rgba(42,171,238,.18); transform: translateY(-2px); }

/* 배경 숫자 장식 */
.hero__num {
  position: absolute; right: -2vw; bottom: -6vw; z-index: 1;
  font-family: var(--font-display); font-size: clamp(140px, 30vw, 360px); line-height: 1;
  color: rgba(255,255,255,.035); letter-spacing: -.02em; user-select: none;
}
.hero__num span { color: rgba(224,10,21,.2); }

/* hero 페이지 로드 스태거 */
.reveal { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.hero__inner > .reveal:nth-child(1) { animation-delay: .05s; }
.hero__inner > .reveal:nth-child(3) { animation-delay: .28s; }
.hero__inner > .reveal:nth-child(4) { animation-delay: .4s; }
.hero__inner > .reveal:nth-child(5) { animation-delay: .52s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- 티커 ---------- */
.ticker {
  position: relative; z-index: 1; overflow: hidden;
  background: linear-gradient(180deg, var(--red-hi), var(--red-deep)); color: #fff;
  transform: rotate(-1.2deg) scale(1.03);
  border-top: 1px solid rgba(255,255,255,.3); border-bottom: 1px solid rgba(0,0,0,.4);
  box-shadow: 0 20px 50px -20px var(--red-glow);
}
/* 세트 2벌, 각 세트 최소 화면 너비 → 어떤 해상도에서도 빈틈 없이 순환 */
.ticker__track {
  display: flex; width: max-content;
  padding: 12px 0; font-family: var(--font-display); font-size: 18px; letter-spacing: .18em;
  animation: marquee 40s linear infinite;
}
.ticker__set { display: flex; align-items: center; justify-content: space-around; gap: 28px; flex: none; min-width: 100vw; padding-right: 28px; }
.ticker__set i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.7); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 게임 카드 ---------- */
.games { position: relative; z-index: 1; padding: 80px 0 90px; }
.cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.card {
  position: relative; padding: 26px 22px 24px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(14,28,40,.85), rgba(8,18,27,.9));
  border: 1px solid var(--line);
  overflow: hidden;
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), border-color .3s;
}
.card.in { opacity: 1; transform: none; }
.card:nth-child(2).in { transition-delay: .08s; }
.card:nth-child(3).in { transition-delay: .16s; }
.card:nth-child(4).in { transition-delay: .24s; }
.card::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--cyan));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.card:hover { border-color: var(--line-strong); }
.card:hover::after { transform: scaleX(1); }
.card__no { font-family: var(--font-display); font-size: 40px; line-height: 1; letter-spacing: .06em; color: rgba(255,255,255,.08); position: absolute; right: 14px; top: 12px; }
.card__title { margin: 0 0 8px; font-size: 22px; font-weight: 900; }
.card__desc { margin: 0; font-size: 14px; color: var(--ink-2); }

/* ---------- 푸터 ---------- */
.foot { position: relative; z-index: 1; padding: 32px 0 120px; border-top: 1px solid var(--line); background: rgba(3,7,11,.7); }
.foot__inner { display: grid; gap: 14px; justify-items: center; text-align: center; }
.foot__inner img { width: 64px; opacity: .85; }
.foot__copy { margin: 0; font-size: 12px; color: var(--ink-3); line-height: 1.7; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.foot__links a { transition: color .2s; }
.foot__links a:hover { color: var(--ink-1); }

/* ---------- 모바일 하단 고정 CTA ---------- */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(3,7,11,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.sticky .btn { min-height: 46px; padding: 0 10px; font-size: 14px; }

/* ---------- 태블릿 이상 ---------- */
@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .domains { grid-template-columns: 1fr 1fr; gap: 18px; }
  .domain { grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 10px; padding: 24px 24px 22px; }
  .domain__tag { justify-self: start; }
  .domain__url { font-size: clamp(30px, 4.2vw, 44px); }
  .foot__inner { grid-template-columns: auto 1fr auto; align-items: center; text-align: left; justify-items: start; }
  .foot__links { justify-self: end; }
}
@media (min-width: 900px) {
  :root { --gutter: 28px; }
  body { font-size: 16px; }
  .hero { padding: 72px var(--gutter) 110px; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .card { padding: 32px 26px 28px; }
  .games { padding: 110px 0 120px; }
  .foot { padding-bottom: 40px; }
  .sticky { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal, .card, .hero__logo { opacity: 1; transform: none; }
  .bg__video { display: none; }
}
