/* =========================================================
   UTAH 랜딩 — 테마 토큰
   원본 사이트(utt-100/200.com) 톤: 진청 그런지 배경 + 빨간 U 로고
   + 올리브(로그인) / 앰버(가입) 버튼 → 그대로 계승
   ========================================================= */
:root {
  --bg-0: #05080d;          /* 최심부 */
  --bg-1: #0b1420;          /* 섹션 바닥 */
  --bg-2: #122033;          /* 카드/패널 */
  --line: rgba(160, 190, 230, .14);
  --line-strong: rgba(160, 190, 230, .32);

  --ink-1: #f4f6fa;
  --ink-2: #c7d0de;         /* 밝게 유지 — 가독성 */
  --ink-3: #8c9bb3;

  --red: #c41230;           /* 로고 크림슨 */
  --red-deep: #8e0c22;
  --red-glow: rgba(196, 18, 48, .45);
  --olive: #628d00;         /* 원본 로그인 버튼 */
  --amber: #b06a1a;         /* 원본 가입 버튼 */
  --steel: #4d7fc0;         /* 배경 조명 하이라이트 */
  --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); }

/* ---------- 배경 ---------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg__img {
  position: absolute; inset: -10%;
  background: url('bg.jpg') center / cover no-repeat;
  filter: saturate(.85) brightness(.8);
  animation: bgDrift 30s ease-in-out infinite alternate;
}
.bg__light {
  position: absolute; top: -30%; width: 60vw; height: 140%;
  background: radial-gradient(ellipse at center, rgba(77, 127, 192, .35), 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(196, 18, 48, .22), transparent 60%); animation: sweepR 22s ease-in-out infinite alternate; }
.bg__grain {
  position: absolute; inset: 0; opacity: .12;
  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 bgDrift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.06) translate(-1.5%, 1%); } }
@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--block { width: 100%; }
.btn--red {
  background: linear-gradient(180deg, #d61a3a, var(--red-deep));
  color: #fff; box-shadow: 0 8px 24px -6px var(--red-glow), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn--red:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -6px var(--red-glow), inset 0 1px 0 rgba(255,255,255,.18); }
.btn--ghost { background: rgba(255,255,255,.04); color: var(--ink-1); border-color: var(--line-strong); }
.btn--ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.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(5, 8, 13, .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: 56px; 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: 56px 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 18px; font-family: var(--font-display); font-size: 13px; letter-spacing: .32em;
  color: var(--ink-3);
}
.hero__logo {
  width: min(320px, 70vw); margin: 0 auto 6px;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.6)) drop-shadow(0 0 30px rgba(196,18,48,.25));
}
.hero__title { margin: 0 0 30px; line-height: 1; }
.hero__title-en {
  display: block; font-family: var(--font-display);
  font-size: clamp(72px, 18vw, 150px); letter-spacing: .04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,.55);
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0));
  -webkit-background-clip: text; background-clip: text;
  margin-top: -14px;
}
.hero__title-ko {
  display: block; margin-top: 6px;
  font-size: clamp(20px, 4.4vw, 32px); font-weight: 900; letter-spacing: -.01em;
}

/* 도메인 카드 */
.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(196,18,48,.28), rgba(196,18,48,.08) 60%, rgba(18,32,51,.7));
  border: 1px solid rgba(214, 26, 58, .5);
  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, 110, .9); box-shadow: 0 26px 60px -20px rgba(196,18,48,.55), inset 0 1px 0 rgba(255,255,255,.1); }
.domain:hover::before { transform: translateX(120%); }
.domain--alt {
  background: linear-gradient(135deg, rgba(77,127,192,.28), rgba(77,127,192,.08) 60%, rgba(18,32,51,.7));
  border-color: rgba(77, 127, 192, .55);
}
.domain--alt:hover { border-color: rgba(130, 175, 235, .9); box-shadow: 0 26px 60px -20px rgba(77,127,192,.55), 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;
  color: #fff; white-space: nowrap;
}
.domain__url em { font-style: normal; color: var(--ink-3); font-size: .6em; }
.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(196,18,48,.18); }

/* 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(2) { animation-delay: .15s; }
.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: var(--red); color: #fff;
  transform: rotate(-1.2deg) scale(1.03);
  border-top: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(0,0,0,.4);
  box-shadow: 0 20px 50px -20px rgba(196,18,48,.7);
}
/* 세트 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(18,32,51,.85), rgba(11,20,32,.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), transparent);
  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(5,8,13,.6); }
.foot__inner { display: grid; gap: 14px; justify-items: center; text-align: center; }
.foot__inner img { width: 56px; opacity: .8; }
.foot__copy { margin: 0; font-size: 12px; color: var(--ink-3); line-height: 1.7; }
.foot__links { display: flex; 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(5,8,13,.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: 84px 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 { opacity: 1; transform: none; }
}
