/* Minimal register-only landing — 2026 World Cup star poster background */
:root {
  --surface: rgba(255, 255, 255, 0.96);
  --surface-featured: rgba(255, 255, 255, 0.98);
  --line: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --muted: #475569;
  --head: #ffffff;
  --head-muted: rgba(255, 255, 255, 0.88);
  --brand: #1d4ed8;
  --brand-hover: #1e40af;
  --brand-soft: #dbeafe;
  --featured: #ca8a04;
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  --shadow-hover: 0 18px 44px rgba(0, 0, 0, 0.36);
  --r: 16px;
  --max: 560px;
  --page-pad-x: 16px;
  --page-pad-top: 20px;
  --entry-pad-y: 14px;
  --entry-pad-x: 16px;
  --logo-size: 50px;
  --entry-gap: 10px;
  --grad-hero: linear-gradient(135deg, #fff7ed 0%, #fde047 22%, #f59e0b 52%, #fef08a 78%, #ffffff 100%);
  --grad-entry: linear-gradient(135deg, #1e40af 0%, #2563eb 24%, #d97706 56%, #f59e0b 80%, #b45309 100%);
  --grad-entry-featured: linear-gradient(135deg, #92400e 0%, #d97706 28%, #fbbf24 55%, #f59e0b 78%, #b45309 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: auto;
  min-height: 100%;
  overflow-x: clip;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  height: auto;
  overflow: visible;
  touch-action: auto;
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  background: #0b1220;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.42) 42%, rgba(0, 0, 0, 0.78) 100%),
    url("../img/world-cup-bg.jpg") center 18% / cover no-repeat;
}

.ticker {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  contain: layout paint style;
  isolation: isolate;
  padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(90deg, #92400e 0%, #d97706 35%, #f59e0b 65%, #d97706 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.ticker__viewport {
  height: 38px;
  overflow: hidden;
  max-width: 100%;
}

.ticker__track {
  display: flex;
  width: max-content;
  max-width: none;
  height: 38px;
  align-items: center;
  animation: ticker-scroll 36s linear infinite;
}

.ticker__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.ticker__item {
  flex: 0 0 auto;
  padding: 0 2.5rem 0 0;
  white-space: nowrap;
  line-height: 38px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fffbeb;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

@keyframes ticker-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track {
    animation: none;
    width: 100%;
    justify-content: center;
  }

  .ticker__group[aria-hidden="true"] {
    display: none;
  }

  .ticker__item[aria-hidden="true"] {
    display: none;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(90% 55% at 50% 12%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.15) 55%, rgba(0, 0, 0, 0.45) 100%);
  z-index: -1;
}

.page {
  position: relative;
  z-index: 1;
  width: min(var(--max), 100%);
  max-width: 100%;
  margin: 0 auto;
  padding:
    var(--page-pad-top)
    max(var(--page-pad-x), env(safe-area-inset-right))
    max(32px, env(safe-area-inset-bottom))
    max(var(--page-pad-x), env(safe-area-inset-left));
}

.page__head {
  text-align: center;
  margin-bottom: 24px;
}

.page__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fde68a;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.page__title {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.5));
}

.page__sub {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: var(--head-muted);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.page__tip {
  margin: 10px 0 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(254, 243, 199, 0.92);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #92400e;
  font-size: clamp(0.62rem, 2.75vw, 0.88rem);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow-x: auto;
  text-align: center;
  text-shadow: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.page__tip::-webkit-scrollbar {
  display: none;
}

.entries {
  display: flex;
  flex-direction: column;
  gap: var(--entry-gap);
}

.entry {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 68px;
  padding: var(--entry-pad-y) var(--entry-pad-x);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: inherit;
  text-align: left;
  transition: box-shadow 0.16s ease, border-color 0.16s ease;
}

.entry:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(29, 78, 216, 0.28);
}

.entry__logo {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--logo-size);
  height: var(--logo-size);
  flex-shrink: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.entry__logo picture,
.entry__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.entry__logo--ayx picture,
.entry__logo--ayx img {
  transform: scale(1.22);
  transform-origin: center center;
}

.entry__name {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
  background: var(--grad-entry);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.entry--featured .entry__name {
  background: var(--grad-entry-featured);
  -webkit-background-clip: text;
  background-clip: text;
}

.entry__hint {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.entry__actions {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  align-self: center;
  flex-shrink: 0;
}

.entry__go,
.entry__alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 38px;
  border: none;
  border-radius: 10px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.entry__go:active,
.entry__alt:active {
  transform: scale(0.97);
}

.entry__go:focus-visible,
.entry__alt:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.entry__go {
  min-width: 66px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.32);
}

.entry__go:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.38);
}

.entry__alt {
  min-width: 68px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: #334155;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.entry__alt:hover {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  color: #1e293b;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.entry--featured {
  border-color: rgba(202, 138, 4, 0.42);
  background: linear-gradient(135deg, var(--surface-featured) 0%, #fffbeb 100%);
}

.entry--featured .entry__go {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.entry--featured .entry__go:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.42);
}

.entry--featured .entry__alt {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #92400e;
  border-color: #fcd34d;
}

.entry--featured .entry__alt:hover {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #78350f;
}

.entry__badge {
  position: absolute;
  top: -8px;
  left: 14px;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 767px) {
  :root {
    --page-pad-x: 12px;
    --page-pad-top: 10px;
    --entry-pad-y: 10px;
    --entry-pad-x: 12px;
    --logo-size: 48px;
    --entry-gap: 6px;
    --r: 14px;
  }

  body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    min-height: 100svh;
  }

  body::after {
    background-position: center 22%;
  }

  .ticker__viewport,
  .ticker__track {
    height: 34px;
  }

  .ticker__item {
    font-size: clamp(0.72rem, 3.4vw, 0.84rem);
    line-height: 34px;
    padding-right: 1.5rem;
  }

  .page {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: calc(100dvh - 34px - env(safe-area-inset-top, 0px));
    min-height: calc(100svh - 34px - env(safe-area-inset-top, 0px));
    padding-top: var(--page-pad-top);
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  }

  .page__head {
    flex-shrink: 0;
    margin-bottom: clamp(8px, 1.8vh, 14px);
  }

  .page__title {
    font-size: clamp(1.18rem, 5.2vw, 1.55rem);
    line-height: 1.22;
  }

  .page__sub {
    margin-top: 6px;
    font-size: clamp(0.8rem, 3.4vw, 0.9rem);
  }

  .page__tip {
    margin-top: 8px;
    padding: 7px 8px;
    font-size: clamp(0.58rem, 2.55vw, 0.8rem);
  }

  .entries {
    flex: 1 1 auto;
    display: grid;
    grid-template-rows: repeat(8, minmax(0, 1fr));
    gap: clamp(4px, 0.9vh, 8px);
    min-height: 0;
  }

  .entry {
    min-height: 0;
    height: 100%;
    gap: 2px 8px;
    padding: clamp(8px, 1.2vh, 12px) var(--entry-pad-x);
    align-content: center;
  }

  .entry__logo {
    width: clamp(44px, 12vw, 54px);
    height: clamp(44px, 12vw, 54px);
  }

  .entry__name {
    font-size: clamp(0.9rem, 3.8vw, 1rem);
  }

  .entry__hint {
    font-size: clamp(0.68rem, 3vw, 0.78rem);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .entry__actions {
    gap: clamp(4px, 1vw, 6px);
  }

  .entry__go {
    min-width: clamp(52px, 14vw, 64px);
    padding: clamp(7px, 1.2vh, 10px) clamp(12px, 3.6vw, 18px);
  }

  .entry__alt {
    min-width: clamp(58px, 16vw, 68px);
  }

  .entry__go,
  .entry__alt {
    min-height: clamp(32px, 5vh, 40px);
    font-size: clamp(0.72rem, 3.2vw, 0.84rem);
    border-radius: clamp(8px, 2vw, 10px);
  }

  .entry__alt {
    padding: clamp(7px, 1.2vh, 10px) clamp(8px, 2.8vw, 12px);
  }
}

@media (max-width: 359px) {
  :root {
    --page-pad-x: 10px;
    --entry-pad-x: 10px;
    --logo-size: 42px;
  }

  .entry__go {
    min-width: 50px;
    padding: 7px 12px;
  }

  .entry__alt {
    min-width: 54px;
    padding: 7px 6px;
    font-size: 0.68rem;
  }

  .entry__badge {
    left: 10px;
    font-size: 10px;
  }
}

@media (min-width: 480px) {
  .page {
    padding-top: 48px;
  }

  .page__head {
    margin-bottom: 28px;
  }

  .entries {
    gap: 12px;
  }

  .entry {
    padding: 16px 18px;
  }
}
