/* Landing page — uses interfacex-core.css */

.home-panel {
  padding: clamp(1.25rem, 4vw, 2rem);
  --home-bg-tint: linear-gradient(
    180deg,
    rgba(4, 18, 28, 0.4),
    rgba(3, 12, 20, 0.58)
  );
  --home-bg-image: url("/InterfaceX26_Blue_Background.png");
  --home-bg-fallback: rgba(11, 61, 53, 0.96);
  --brand-steam-a: #1b2838;
  --brand-steam-b: #2a475e;
  --brand-twitch-a: #6441a5;
  --brand-twitch-b: #9146ff;
  --brand-youtube-a: #cc0000;
  --brand-youtube-b: #ff0000;
}

.ix-shell {
  position: relative;
  margin-bottom: 24px;
}

.skip-link:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 10000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  overflow: visible;
  clip: auto;
  white-space: normal;
  border-radius: var(--radius-md);
  background: var(--panel);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  outline: var(--ix-focus);
  outline-offset: 2px;
}

.ix-icons {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Header */

.home-header {
  margin: 0 0 1.75rem;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(116, 217, 225, 0.24);
  background:
    var(--home-bg-tint),
    var(--home-bg-image),
    var(--home-bg-fallback);
  background-size: cover;
  background-position: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(16, 46, 40, 0.24);
  min-width: 0;
  overflow-x: clip;
}

.home-eyebrow {
  margin: 0 0 1.35rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-family: var(--display);
  font-size: clamp(0.9rem, 5vw + 1.8vmin, 4.2rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  align-content: center;
  justify-content: center;
  column-gap: 0.08em;
  row-gap: 0.12em;
}

@supports (container-type: inline-size) {
  .home-header {
    container-type: inline-size;
  }

  .home-eyebrow {
    font-size: clamp(0.9rem, 6.5cqi + 0.85rem, 4.2rem);
  }
}

.logo-wordmark {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  isolation: isolate;
}

.logo-wordmark::before,
.logo-wordmark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #050d16;
  opacity: 0.92;
  pointer-events: none;
  z-index: 2;
}

.logo-wordmark::before {
  bottom: 5px;
}

.logo-wordmark::after {
  bottom: 10px;
}

.logo-iface {
  color: #9df0f6;
}

.logo-x {
  color: #8be8a0;
  font-size: 1.33em;
  line-height: 0;
}

.logo-num {
  color: #8be8a0;
  font-family: "Agdasima", var(--body);
  font-size: 0.7em;
  font-weight: 400;
  line-height: 1;
  display: inline-block;
  position: relative;
  top: -0.95em;
  margin-left: 0.02em;
}

.home-headline {
  margin: 0 0 0.7rem;
  font-family: var(--body);
  font-size: clamp(1.05rem, 2.8vw, 1.4rem);
  font-weight: 900;
  text-align: left;
  line-height: 1.35;
  color: #f4fbfb;
}

.home-headline-you {
  font-style: normal;
  color: #8be8a0;
}

.home-intro {
  margin: 0;
  max-width: 82ch;
  font-family: var(--body);
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 400;
  text-align: left;
  color: rgba(236, 249, 249, 0.92);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.home-highlight {
  font-weight: 700;
}

.home-highlight--accent {
  color: #ffd08a;
}

.home-highlight--teal {
  color: #9df0f6;
}

.home-highlight--tag {
  color: #8be8a0;
}

.home-footnote {
  margin: 0;
  max-width: none;
  width: 100%;
  font-family: var(--body);
  font-size: clamp(0.75rem, 1.6vw, 0.85rem);
  line-height: 1.45;
  color: rgba(214, 236, 238, 0.82);
}

.home-footnote-chip {
  padding: 0.02em 0.42em;
  font-size: 0.95em;
  vertical-align: baseline;
}

.home-footer-note {
  margin-top: 1.5rem;
  padding: clamp(0.8rem, 2vw, 1.15rem);
  border-radius: var(--radius-md);
  border: 1px solid rgba(116, 217, 225, 0.24);
  background:
    var(--home-bg-tint),
    var(--home-bg-image),
    var(--home-bg-fallback);
  background-size: cover;
  background-position: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 20px rgba(16, 46, 40, 0.2);
}

/* Trailer embed */

.home-trailer {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 16px 48px rgba(128, 96, 54, 0.16);
  background: #0a0a0a;
  margin-bottom: 1.75rem;
}

.home-trailer iframe {
  display: block;
  border: 0;
  width: 100%;
  height: 100%;
}

.home-trailer--hz {
  aspect-ratio: 16 / 9;
}

.home-trailer--vt {
  display: none;
  aspect-ratio: 9 / 16;
  max-width: 360px;
  margin-inline: auto;
}

@media (max-width: 640px) {
  .home-trailer--hz {
    display: none;
  }

  .home-trailer--vt {
    display: block;
  }
}

/* Timeline */

.home-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.home-timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 0;
  left: 11px;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(
    to bottom,
    rgba(134, 106, 69, 0.32) 0%,
    rgba(134, 106, 69, 0.22) 58%,
    rgba(134, 106, 69, 0.1) 82%,
    transparent 100%
  );
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.85rem;
  padding-bottom: 2rem;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.tl-item--active .tl-marker {
  background: var(--ix-accent-fill);
  box-shadow: 0 0 0 4px rgba(232, 128, 32, 0.18);
}

.tl-item--soon .tl-marker {
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.tl-item--steam .tl-marker {
  background: linear-gradient(
    145deg,
    var(--brand-steam-a),
    var(--brand-steam-b)
  );
  border-color: rgba(199, 213, 224, 0.22);
  box-shadow:
    0 2px 12px rgba(27, 40, 56, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Left: Twitch tones, right: YouTube tones (matches branded buttons) */
.tl-item--showcase .tl-marker {
  background: linear-gradient(
    to right,
    var(--brand-twitch-a) 0%,
    var(--brand-twitch-a) 50%,
    var(--brand-youtube-a) 50%,
    var(--brand-youtube-a) 100%
  );
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 3px 12px rgba(100, 65, 165, 0.28),
    0 3px 12px rgba(204, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tl-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.tl-date {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tl-item--active .tl-date {
  color: var(--accent);
}

.tl-title {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.tl-item--soon .tl-title {
  color: var(--muted-strong);
}

.tl-desc {
  margin: 0.1rem 0 0.35rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 48ch;
}

.tl-host-link {
  display: inline-block;
  padding: 0.08em 0.42em;
  border-radius: 999px;
  border: 1px solid rgba(116, 217, 225, 0.34);
  background: rgba(116, 217, 225, 0.12);
  color: var(--teal-strong);
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease;
}

.tl-host-link:hover {
  background: rgba(116, 217, 225, 0.2);
  border-color: rgba(116, 217, 225, 0.5);
  transform: translateY(-1px);
}

.tl-host-link:active {
  transform: translateY(0);
}

.tl-host-link:focus-visible {
  outline: var(--ix-focus);
  outline-offset: var(--ix-focus-offset);
}

.tl-item--active .button {
  margin-top: 0.2rem;
  align-self: flex-start;
}

/* Branded action buttons */

.tl-btn-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.tl-branded-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  margin: 0;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1;
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.tl-branded-btn:hover {
  transform: translateY(-2px);
}

.tl-branded-btn:active {
  transform: translateY(0);
}

.tl-branded-btn:disabled:hover,
.tl-branded-btn:disabled:active {
  transform: none;
}

.tl-branded-btn:focus-visible {
  outline: var(--ix-focus);
  outline-offset: var(--ix-focus-offset);
}

.tl-btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.tl-branded-btn--steam {
  background: linear-gradient(
    135deg,
    var(--brand-steam-a),
    var(--brand-steam-b)
  );
  color: #c7d5e0;
  border: 1px solid rgba(199, 213, 224, 0.15);
  box-shadow:
    0 4px 14px rgba(27, 40, 56, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tl-branded-btn--twitch {
  background: linear-gradient(
    135deg,
    var(--brand-twitch-a),
    var(--brand-twitch-b)
  );
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 4px 14px rgba(100, 65, 165, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tl-branded-btn--youtube {
  background: linear-gradient(
    135deg,
    var(--brand-youtube-a),
    var(--brand-youtube-b)
  );
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 4px 14px rgba(204, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tl-btn-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(2px);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  pointer-events: none;
  border-radius: inherit;
}

.tl-branded-btn:disabled {
  pointer-events: none;
  cursor: not-allowed;
}

/* Creator channel links */

.tl-creators {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.5rem;
}

.tl-creators-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tl-creator-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  align-items: center;
}

.tl-creator-chip {
  display: inline-grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.45rem;
  min-height: 30px;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(116, 217, 225, 0.24);
  border-radius: 999px;
  background: rgba(10, 34, 45, 0.24);
}

.tl-creator-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted-strong);
  line-height: 1;
}

.tl-creator-ch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  width: 24px;
  height: 24px;
  padding: 3px;
  box-sizing: border-box;
  border-radius: 999px;
  opacity: 0.8;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.tl-creator-ch:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.tl-creator-ch svg {
  width: 100%;
  height: 100%;
}

.tl-creator-ch--twitch {
  color: #9146ff;
}

.tl-creator-ch--youtube {
  color: #ff0000;
}

@media (min-width: 800px) {
  .tl-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
    column-gap: 1rem;
    row-gap: 0.3rem;
    align-items: start;
  }

  .tl-date,
  .tl-title,
  .tl-desc {
    grid-column: 1;
  }

  .tl-creators {
    grid-column: 1 / -1;
  }

  .tl-btn-wrap,
  .tl-item--active .button {
    grid-column: 2;
    justify-self: end;
    align-self: start;
    margin-top: 0;
  }

  .tl-btn-wrap {
    justify-content: flex-end;
    margin-left: 1rem;
  }
}

@media (max-width: 480px) {
  .tl-btn-wrap {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tl-branded-btn:hover,
  .tl-branded-btn:active,
  .tl-host-link:hover,
  .tl-host-link:active,
  .tl-creator-ch:hover {
    transform: none;
  }

  .tl-branded-btn,
  .tl-host-link,
  .tl-creator-ch {
    transition-duration: 0.01ms;
  }
}
