/* ============================================================
   HELIOS — 타이틀 화면 (공개 경로 `/`)
   앱 본체는 forward-auth 뒤(`/app/`)에 있고, 이 화면만 인증 없이 보인다.
   클래스는 전부 `tt-` / `tt__` 접두어. helios.css 는 건드리지 않는다.
   ============================================================ */

.tt-body { margin: 0; background: var(--bg-void); overflow: hidden; }

.tt {
  position: relative;
  height: 100vh; height: 100dvh;
  overflow: hidden;
  font-family: var(--font-ui);
  color: var(--text);
}

/* ---------- 배경 ---------- */
.tt__bg {
  position: absolute; inset: 0;
  opacity: .5;
  filter: saturate(.7);
}
.tt__bg svg { width: 100%; height: 100%; display: block; object-fit: cover; }

/* 배경을 눌러 글자가 읽히게. 좌측이 더 어둡다 — 타이틀이 왼쪽에 앉는다. */
.tt__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,7,11,.96) 0%, rgba(5,7,11,.84) 38%, rgba(5,7,11,.42) 72%, rgba(5,7,11,.66) 100%),
    radial-gradient(120% 90% at 18% 46%, rgba(245,195,59,.07), transparent 60%);
}

/* ---------- 상단 헤어라인 ---------- */
.tt__top {
  position: absolute; top: 0; left: 0; right: 0;
  height: 40px; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line-faint);
  background: linear-gradient(180deg, rgba(7,10,15,.9), transparent);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .24em;
  color: var(--text-dim);
}
.tt__tag { color: var(--solar); }
.tt__top-r { color: var(--text-dim); }

/* ---------- 오른쪽 큰 로고 ---------- */
.tt__logo {
  position: absolute;
  /* 오른쪽 끝 */
  right: clamp(28px, 7vw, 108px);
  top: 50%; transform: translateY(-50%);
  height: min(64vh, 38vw); width: auto;
  /* 배경 뒤에 있는 듯 — 왼쪽에서 오른쪽으로 옅게→진하게, 0 에서 시작하지 않는다 */
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,.6));
          mask-image: linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,.6));
  opacity: 0;
  animation: ttLogo 820ms var(--ease) 200ms forwards;
  pointer-events: none;
}
@keyframes ttLogo {
  from { opacity: 0; transform: translateY(-50%) scale(.94); }
  to   { opacity: .92; transform: translateY(-50%); }
}

/* ---------- 타이틀 블록 ---------- */
.tt__main {
  position: absolute;
  left: clamp(28px, 7vw, 108px);
  top: 50%; transform: translateY(-50%);
  width: min(460px, 52vw);
}


.tt__word {
  margin: 0;
  font-family: var(--font-tac);
  font-size: clamp(44px, 6.4vw, 78px);
  font-weight: 700;
  line-height: .96;
  color: var(--text-hi);
  letter-spacing: .5em;
  margin-right: -.5em;            /* 자간은 마지막 글자 뒤에도 붙는다. 왼쪽 정렬이 틀어지지
                                     않게 오른쪽에서 걷어낸다 — text-indent 로 밀면 마크·룰과 어긋난다 */
  opacity: 0;
  animation: ttWord 700ms var(--ease) 260ms forwards;
}
@keyframes ttWord {
  from { opacity: 0; letter-spacing: .86em; }
  to   { opacity: 1; letter-spacing: .5em; }
}

.tt__rule { height: 2px; margin: 16px 0 12px; background: var(--line-faint); overflow: hidden; }
.tt__rule i {
  display: block; height: 100%; width: 0; background: var(--solar);
  animation: ttRule 560ms var(--ease) 640ms forwards;
}
@keyframes ttRule { to { width: 100%; } }

.tt__sub {
  margin: 0;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .3em; color: var(--text);
  opacity: 0;
  animation: ttFade 420ms var(--ease) 760ms forwards;
}
@keyframes ttFade { to { opacity: 1; } }

/* ---------- 행동 영역 ---------- */
.tt__act {
  margin-top: 34px;
  display: flex; flex-direction: column; gap: 10px;
  opacity: 0;
  animation: ttFade 460ms var(--ease) 400ms forwards;
}

/* 로비 우측 메뉴와 같은 조형: 좌하단 45° 모따기 + 3방향 코너 브래킷 */
.tt__btn {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  width: 100%; height: 58px;
  padding: 0 20px;
  border: 0;
  background: var(--bg-raised);
  color: var(--text-hi);
  font-family: var(--font-tac); font-size: 19px; font-weight: 600; letter-spacing: .12em;
  text-align: left; text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.tt__btn:hover { background: var(--line); transform: translateX(2px); }
.tt__btn:active { transform: translateX(0); }

/* clip-path 가 outline 을 잘라내므로 포커스는 안쪽 링으로 표시한다 */
.tt__btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--plasma); }

/* 코너 브래킷 — 좌상·우상·우하 3곳. 좌하단은 모따기가 대신한다. */
.tt__btn::before,
.tt__btn::after {
  content: ''; position: absolute; pointer-events: none;
  width: 13px; height: 13px;
}
.tt__btn::before { top: 4px;    left: 4px;  border-top: 2px solid currentColor; border-left: 2px solid currentColor; opacity: .5; }
.tt__btn::after  { bottom: 4px; right: 4px; border-bottom: 2px solid currentColor; border-right: 2px solid currentColor; opacity: .5; }

.tt__btn i {
  flex: none; width: 24px; height: 24px;
  display: grid; place-items: center;
}
.tt__btn i svg { width: 22px; height: 22px; }
.tt__btn b { font-weight: 600; }
.tt__btn u {
  margin-left: auto; text-decoration: none;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em;
  opacity: .62; font-weight: 400;
}

.tt__btn--solar { background: var(--solar); color: #14100a; height: 66px; font-size: 21px; }
.tt__btn--solar:hover { background: var(--solar-hi); }
.tt__btn--solar::before, .tt__btn--solar::after { opacity: .72; }

/* ---------- 초대 안내 패널 (버튼 자리를 갈아끼운다) ---------- */
.tt__note {
  border: 1px solid var(--line);
  border-left: 2px solid var(--solar);
  background: var(--glass);
  padding: 15px 17px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.tt__note h2 {
  margin: 0 0 7px;
  font-family: var(--font-tac); font-size: 16px; font-weight: 600;
  letter-spacing: .06em; color: var(--text-hi);
}
.tt__note p { margin: 0 0 6px; font-size: 13px; line-height: 1.66; color: var(--text); }
.tt__note p:last-of-type { margin-bottom: 13px; }
.tt__note em { font-style: normal; color: var(--solar); }
.tt__note button {
  border: 1px solid var(--line-bright); background: transparent; color: var(--text);
  font-family: var(--font-tac); font-size: 13px; letter-spacing: .1em; font-weight: 600;
  padding: 7px 15px; cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.tt__note button:hover { background: var(--bg-raised); color: var(--text-hi); }

/* ---------- 하단 띠 ---------- */
.tt__foot {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 34px; padding: 0 22px;
  display: flex; align-items: center;
  border-top: 1px solid var(--line-faint);
  background: linear-gradient(0deg, rgba(7,10,15,.9), transparent);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .22em;
  color: var(--text-dim);
}
.tt__legal {
  margin-left: auto; padding: 8px 0;
  font-family: var(--font-ui); font-size: 11px; letter-spacing: 0;
  color: var(--text-dim); text-decoration: none;
}
.tt__legal:hover { color: var(--solar); }

/* ---------- 폰 가로 (E16 — 세로 레이아웃은 만들지 않는다) ---------- */
@media (max-height: 500px) {
  .tt__top, .tt__foot { height: 30px; }
  .tt__main { left: clamp(20px, 5vw, 48px); width: min(400px, 56vw); }
  .tt__logo { height: min(62vh, 32vw); right: clamp(20px, 5vw, 48px); }
  .tt__word { font-size: clamp(34px, 7vw, 48px); }
  .tt__rule { margin: 11px 0 9px; }
  .tt__act { margin-top: 20px; gap: 8px; }
  .tt__btn { height: 46px; font-size: 16px; }
  .tt__btn--solar { height: 52px; font-size: 18px; }
  .tt__note { padding: 12px 14px; }
  .tt__note p { font-size: 12px; line-height: 1.55; }
  /* 안내(지원 · 마감)가 뜨면 버튼이 하단 띠 밑으로 밀렸다(아이폰 가로, 09-25) — 마크·부제를 걷고 넓게 펴고,
     그래도 넘치면 위아래 띠 사이에서 스크롤 */
  .tt__main { max-height: calc(100dvh - 72px); overflow: hidden auto; }
  .tt__main:has(.tt__note) { width: min(600px, calc(100vw - 2 * clamp(20px, 5vw, 48px))); }
  .tt__main:has(.tt__note) :is(.tt__sub, .tt__rule) { display: none; }
  .tt:has(.tt__note) .tt__logo { display: none; }
  .tt__main:has(.tt__note) .tt__word { font-size: 28px; }
  .tt__main:has(.tt__note) .tt__act { margin-top: 12px; }
}
/* 더 낮은 가로(주소창이 보이는 작은 폰) */
@media (max-height: 340px) {
  .tt__act { margin-top: 14px; }
  .tt__main:has(.tt__note) .tt__word { display: none; }
  .tt__note p { line-height: 1.45; margin-bottom: 4px; }
}

.tt__rotate { display: none; }
/* 세로 폰 — 앱은 가로 전용이지만 현관의 로그인 · 지원은 첫 화면에 그대로 둔다 */
@media (orientation: portrait) and (max-width: 820px) {
  .tt__logo { display: none; }
  .tt__main { left: 20px; right: 20px; width: auto; }
  .tt__word { font-size: clamp(34px, 11vw, 52px); }
  .tt__rotate {
    display: block;
    position: absolute; left: 0; right: 0; bottom: 44px;
    font-family: var(--font-tac); font-size: 13px; letter-spacing: .16em;
    color: var(--text-dim); text-align: center; padding: 0 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tt__word, .tt__sub, .tt__act { animation: none; opacity: 1; }
  .tt__logo { animation: none; opacity: .92; }
  .tt__word { letter-spacing: .5em; }
  .tt__rule i { animation: none; width: 100%; }
}
