/* The hub: the year's two stories as tiles. Screen is a cinema marquee, Music a record. */

body.hub {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(90% 60% at 10% 0%, rgba(255, 46, 136, 0.22), transparent 60%),
    radial-gradient(80% 60% at 100% 100%, rgba(255, 176, 32, 0.16), transparent 60%),
    #07050c;
}

.hub-main {
  max-width: 980px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 9vh) 6vw calc(env(safe-area-inset-bottom) + 6vh);
}

.hub-kicker {
  margin: 0;
  color: #ff5fa2;
  font: 750 clamp(14px, 1.6vw, 18px) / 1 var(--body);
  letter-spacing: 0.2em;
}

.hub-title {
  margin: 0.1em 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(72px, 16vw, 190px);
  line-height: 0.86;
  letter-spacing: -0.05em;
  animation: hub-rise 0.9s var(--ease-out) both;
}

.hub-sub {
  margin: 0.6em 0 0;
  font: 500 clamp(18px, 2.4vw, 26px) / 1.3 var(--body);
  opacity: 0.85;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 22px;
  margin-top: 7vh;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 360px;
  padding: 28px;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
  animation: hub-rise 0.9s var(--ease-out) both 0.15s;
}

.tile + .tile {
  animation-delay: 0.28s;
}

.tile:hover,
.tile:focus-visible {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.tile-kicker {
  font: 750 13px/1 var(--body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

.tile-title {
  font-weight: 850;
  font-size: clamp(44px, 6vw, 64px);
  line-height: 0.9;
}

.tile-go {
  align-self: flex-start;
  margin-top: 10px;
  padding: 11px 20px;
  border-radius: 999px;
  background: #fff;
  color: #0b0a0f;
  font: 750 15px/1 var(--body);
}

/* Screen: letterboxed, with a row of marquee bulbs */

.tile-screen {
  background:
    radial-gradient(70% 55% at 50% 110%, rgba(255, 176, 32, 0.55), transparent 70%),
    linear-gradient(160deg, #3a0d1c, #120612 70%);
}

.tile-screen::before,
.tile-screen::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  z-index: -1;
}

.tile-screen::before {
  top: 0;
  height: 54px;
  background:
    radial-gradient(circle, #fff3c4 0 2px, rgba(255, 196, 80, 0.6) 3.5px, transparent 6px) 6px 50% / 22px 22px repeat-x,
    #000;
  animation: bulbs 1.1s steps(1) infinite;
}

.tile-screen::after {
  bottom: 0;
  height: 14px;
  background: #000;
}

.tile-screen .tile-title {
  font-family: 'Big Shoulders', var(--display);
  font-weight: 900;
  font-size: clamp(54px, 7.5vw, 80px);
  text-transform: uppercase;
  letter-spacing: 0;
}

/* Music: neon, with a record turning in the corner */

.tile-music {
  background:
    radial-gradient(60% 50% at 20% 20%, rgba(0, 229, 255, 0.45), transparent 70%),
    radial-gradient(70% 60% at 90% 80%, rgba(255, 46, 136, 0.55), transparent 70%),
    #120a24;
}

.tile-music::before {
  content: '';
  position: absolute;
  top: -70px;
  right: -70px;
  z-index: -1;
  width: 260px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, #ff2e88 0 15%, #111 16% 18%, transparent 19%),
    repeating-radial-gradient(circle, #0d0d0f 0 2px, #26242c 2px 4px);
  box-shadow: 0 0 60px rgba(255, 46, 136, 0.35);
  animation: spin 6s linear infinite;
}

.tile-music .tile-title {
  font-family: var(--display);
  font-stretch: 75%;
  letter-spacing: -0.03em;
}

/* Signing in, who's signed in, and "Who's watching?" */

.account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  min-height: 48px;
  margin-top: 4.5vh;
  animation: hub-rise 0.9s var(--ease-out) both 0.1s;
}

.account-line {
  margin: 0;
  font: 500 17px/1.4 var(--body);
}

.signin,
.signout,
.profile,
.note-go {
  border: 0;
  border-radius: 999px;
  font: 750 15px/1 var(--body);
  cursor: pointer;
  text-decoration: none;
}

.signin {
  padding: 14px 24px;
  background: #ffb020;
  color: #120612;
}

.signin:hover,
.signin:focus-visible {
  background: #ffc75a;
}

.signin:disabled,
.profile:disabled {
  cursor: progress;
  opacity: 0.7;
}

.signout {
  padding: 4px 2px;
  background: none;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profiles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex-basis: 100%;
}

.profiles-label {
  margin-right: 6px;
  font: 750 13px/1 var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4);
}

.profile[aria-pressed='true'] {
  background: #fff;
  color: #0b0a0f;
  cursor: default;
}

.signin-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0;
  padding: 14px 18px;
  border-radius: 14px;
  background: #2a1430;
  font: 500 16px/1.4 var(--body);
}

.signin-note[hidden] {
  display: none;
}

.note-go {
  padding: 10px 16px;
  background: #fff;
  color: #0b0a0f;
}

.tile-status {
  font: 600 15px/1.35 var(--body);
}

.hub-note {
  margin: 5vh 0 0;
  font: 500 14px/1.5 var(--body);
  opacity: 0.6;
}

@keyframes hub-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes bulbs {
  50% {
    background-position: 17px 50%, 0 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
