:root {
  --cream: #f4efe7;
  --muted: rgba(244, 239, 231, 0.68);
  --line: rgba(244, 239, 231, 0.16);
  --panel: rgba(13, 13, 12, 0.58);
  --pink: #e72a92;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-soft: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  background: #050505;
  color: var(--cream);
  font-family: "Neue Haas Grotesk Display Pro", "Helvetica Neue", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100svh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.bg {
  position: fixed;
  inset: -8%;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.24), transparent 34%),
    radial-gradient(circle at 74% 32%, rgba(231,42,146,.24), transparent 36%),
    radial-gradient(circle at 70% 70%, rgba(160,96,70,.38), transparent 42%),
    radial-gradient(circle at 42% 82%, rgba(70,120,105,.34), transparent 44%),
    #080808;
  opacity: .92;
  transform: scale(1.02);
  transition: opacity 900ms ease, transform 1200ms var(--ease-soft);
}

.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  filter: blur(62px) saturate(1.62) brightness(1.22);
  opacity: .62;
  transform: scale(1.12);
  transition: opacity 900ms ease, filter 1200ms ease, transform 1400ms var(--ease-soft);
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,8,8,.26), rgba(8,8,8,.03), rgba(8,8,8,.24)),
    radial-gradient(circle at center, transparent 0, rgba(0,0,0,.34) 76%);
}

body.is-starting .bg,
body.broadcast-mode .bg {
  opacity: 1;
  transform: scale(1);
}

body.is-starting .bg::before,
body.broadcast-mode .bg::before {
  opacity: .74;
  filter: blur(56px) saturate(1.72) brightness(1.28);
  transform: scale(1.08);
}

.year-aura {
  position: fixed;
  z-index: 3;
  left: clamp(16px, 2.2vw, 44px);
  top: clamp(14px, 3.1vh, 38px);
  pointer-events: none;
  user-select: none;
  width: max-content;
  text-align: left;
  font-size: clamp(86px, 8.8vw, 172px);
  line-height: .78;
  letter-spacing: -.07em;
  font-weight: 100;
  color: rgba(244,239,231,.22);
  opacity: 0;
  transform: translate3d(-10px, 8px, 0) scale(.985);
  transition: opacity 900ms ease, transform 1100ms var(--ease-soft), color 900ms ease;
  white-space: nowrap;
  -webkit-text-stroke: 0 transparent;
}

.year-aura.is-visible {
  opacity: .50;
  transform: translate3d(0, 0, 0) scale(1);
}

.shell {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
}

.player {
  position: relative;
  width: min(92vw, 1320px);
  min-height: min(76svh, 760px);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(34px) saturate(1.22);
  border-radius: clamp(28px, 4vw, 52px);
  box-shadow: 0 40px 140px rgba(0,0,0,.46);
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(24px, 4vw, 48px);
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  transition:
    min-height 900ms var(--ease-soft),
    background 900ms ease,
    border-color 900ms ease,
    box-shadow 900ms ease,
    transform 900ms var(--ease-soft);
}

.player::before,
.player::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
}

.player::before {
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(244,239,231,.11), transparent 28%, rgba(244,239,231,.035) 68%, transparent),
    radial-gradient(circle at 12% 10%, rgba(244,239,231,.13), transparent 30%);
  opacity: .74;
}

.player::after {
  inset: 1px;
  z-index: -1;
  border: 1px solid rgba(244,239,231,.05);
}

body.is-starting .player,
body.broadcast-mode .player {
  background: rgba(13, 13, 12, .64);
  border-color: rgba(244,239,231,.19);
  box-shadow: 0 48px 160px rgba(0,0,0,.54);
}

.status {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: clamp(12px, 1.05vw, 17px);
  letter-spacing: .38em;
  font-weight: 300;
  color: rgba(244,239,231,.86);
  text-transform: uppercase;
  transition: opacity 620ms ease, transform 620ms var(--ease-out);
}

.dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--cream);
  box-shadow: 0 0 22px rgba(244,239,231,.78);
  flex: 0 0 auto;
}

body.broadcast-mode .dot {
  animation: signalPulse 2.6s ease-in-out infinite;
}

.grid {
  display: grid;
  grid-template-columns: minmax(360px, 560px) minmax(390px, 1fr);
  align-items: center;
  gap: clamp(42px, 6.5vw, 92px);
  transition: gap 900ms var(--ease-soft), grid-template-columns 900ms var(--ease-soft);
}

.art-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(244,239,231,.14);
  border-radius: clamp(24px, 3vw, 36px);
  overflow: hidden;
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), 0 26px 80px rgba(0,0,0,.28);
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: none;
  transition:
    opacity 700ms ease,
    transform 900ms var(--ease-soft),
    filter 700ms ease,
    box-shadow 900ms ease,
    border-color 900ms ease;
}

.art-wrap.is-loading {
  filter: saturate(.92) brightness(.92);
  transform: scale(.992);
}

.art-wrap.is-empty {
  opacity: .18;
  background: linear-gradient(135deg, rgba(244,239,231,.10), rgba(231,42,146,.08), rgba(0,0,0,.12));
}

.art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: rgba(0,0,0,.14);
  opacity: 1;
  transition: opacity 620ms ease, transform 900ms var(--ease-soft);
}

.art-wrap.is-loading .art {
  opacity: .28;
  transform: scale(1.01);
}

.meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 700ms ease, transform 900ms var(--ease-soft);
}

.brand {
  font-size: clamp(12px, 1.05vw, 17px);
  letter-spacing: .38em;
  font-weight: 300;
  color: rgba(244,239,231,.84);
  margin-bottom: clamp(22px, 3.5vw, 40px);
  text-transform: uppercase;
}

h1 {
  font-weight: 720;
  line-height: .94;
  letter-spacing: -.066em;
  margin: 0;
  max-width: 12ch;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
}

.title-short { font-size: clamp(62px, 7vw, 110px); }
.title-medium { font-size: clamp(54px, 6vw, 92px); }
.title-long { font-size: clamp(44px, 4.9vw, 74px); max-width: 15ch; }
.title-xlong { font-size: clamp(36px, 4.1vw, 60px); max-width: 17ch; letter-spacing: -.055em; }

.feature {
  margin-top: 14px;
  font-size: clamp(20px, 2.15vw, 34px);
  line-height: 1.08;
  letter-spacing: -.03em;
  color: rgba(244,239,231,.80);
  min-height: 0;
}

.feature:empty { display: none; }

.details {
  margin-top: clamp(20px, 2.6vw, 34px);
  font-size: clamp(19px, 1.6vw, 26px);
  line-height: 1.32;
  white-space: pre-line;
  font-weight: 300;
  color: var(--muted);
  max-width: 36rem;
}

.enter {
  position: relative;
  margin-top: clamp(30px, 3.8vw, 52px);
  width: min(100%, 520px);
  appearance: none;
  border: 1px solid rgba(244,239,231,.18);
  border-radius: 999px;
  padding: 22px 26px;
  font-size: clamp(18px, 1.45vw, 24px);
  color: #171513;
  background: rgba(244,239,231,.92);
  cursor: pointer;
  overflow: hidden;
  transform: translateZ(0);
  box-shadow: 0 18px 48px rgba(0,0,0,.24);
  transition:
    transform 260ms var(--ease-out),
    opacity 260ms ease,
    background 260ms ease,
    color 260ms ease,
    border-color 260ms ease,
    box-shadow 460ms ease;
}

.enter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.54) 42%, transparent 62%);
  transform: translateX(-125%);
  transition: transform 900ms var(--ease-soft);
}

.enter:hover {
  transform: translateY(-1px);
  background: rgba(244,239,231,.98);
  box-shadow: 0 22px 60px rgba(0,0,0,.30);
}

.enter:hover::before,
.enter.loading::before {
  transform: translateX(125%);
}

.enter:focus-visible {
  outline: 2px solid rgba(244,239,231,.72);
  outline-offset: 5px;
}

.enter.loading {
  pointer-events: none;
}

.enter.active {
  opacity: .88;
  cursor: default;
  pointer-events: none;
  color: rgba(244,239,231,.86);
  background: rgba(244,239,231,.08);
  border-color: rgba(244,239,231,.18);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), 0 16px 52px rgba(0,0,0,.22);
}

.note {
  margin: 24px 0 0;
  color: rgba(244,239,231,.56);
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.35;
  font-weight: 300;
  transition: opacity 600ms ease, transform 760ms var(--ease-soft);
}

body.welcome-mode .player { min-height: min(68svh, 660px); }
body.welcome-mode .grid { grid-template-columns: minmax(280px, 420px) minmax(390px, 640px); }
body.welcome-mode .art-wrap.is-empty { display: none; }
body.welcome-mode h1 { max-width: 10ch; font-weight: 800; }
body.welcome-mode .details { font-size: clamp(22px, 2vw, 32px); max-width: 28rem; line-height: 1.38; }
body.welcome-mode .year-aura { opacity: 0; }
body.broadcast-mode .note { opacity: .42; transform: translateY(4px); }

body.is-starting .enter {
  transform: scale(.985);
}

body.transitioning .art-wrap {
  animation: artSettle 900ms var(--ease-soft) both;
}

body.transitioning .meta {
  animation: metaSettle 920ms var(--ease-soft) both;
}

body.transitioning .brand { animation: lineSettle 760ms var(--ease-soft) both; animation-delay: 80ms; }
body.transitioning h1 { animation: titleSettle 900ms var(--ease-soft) both; animation-delay: 110ms; }
body.transitioning .feature { animation: lineSettle 840ms var(--ease-soft) both; animation-delay: 160ms; }
body.transitioning .details { animation: lineSettle 840ms var(--ease-soft) both; animation-delay: 210ms; }
body.transitioning .enter { animation: buttonSettle 840ms var(--ease-soft) both; animation-delay: 260ms; }
body.transitioning .status { animation: softFade 760ms var(--ease-soft) both; }

@keyframes artSettle {
  from { opacity: 0; transform: translate3d(-18px, 22px, 0) scale(.975); filter: blur(12px) saturate(.86); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0) saturate(1); }
}

@keyframes metaSettle {
  from { opacity: 0; transform: translate3d(18px, 18px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes titleSettle {
  from { opacity: 0; transform: translate3d(0, 20px, 0) scale(.985); filter: blur(10px); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}

@keyframes lineSettle {
  from { opacity: 0; transform: translate3d(0, 13px, 0); filter: blur(6px); }
  to { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }
}

@keyframes buttonSettle {
  from { opacity: 0; transform: translate3d(0, 12px, 0) scale(.985); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes softFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes signalPulse {
  0%, 100% { opacity: .72; box-shadow: 0 0 16px rgba(244,239,231,.58); }
  50% { opacity: 1; box-shadow: 0 0 30px rgba(244,239,231,.92); }
}

@media (max-width: 950px) {
  .shell { align-items: start; padding: 14px; }
  .player {
    width: 100%;
    min-height: calc(100svh - 28px);
    border-radius: 32px;
    padding: 24px;
    justify-content: flex-start;
    gap: 28px;
  }
  .grid,
  body.welcome-mode .grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  body.welcome-mode .art-wrap.is-empty { display: none; }
  .art-wrap { border-radius: 28px; max-width: 620px; }
  .title-short { font-size: clamp(50px, 14.5vw, 76px); }
  .title-medium { font-size: clamp(44px, 12.5vw, 70px); }
  .title-long { font-size: clamp(38px, 10vw, 58px); max-width: 13ch; }
  .title-xlong { font-size: clamp(32px, 8.4vw, 50px); max-width: 15ch; }
  .feature { font-size: clamp(20px, 6vw, 28px); }
  .brand { margin-bottom: 18px; }
  .details { font-size: clamp(18px, 5vw, 23px); }
  .enter { width: 100%; margin-top: 30px; padding: 19px 22px; }
  .year-aura {
    left: 4vw;
    top: 18px;
    font-size: clamp(82px, 28vw, 150px);
  }
  .year-aura.is-visible { opacity: .34; }
}

@media (max-width: 430px) {
  .player { padding: 20px; }
  .status,
  .brand { letter-spacing: .28em; }
  .note { font-size: 13px; }
  .year-aura { left: 4vw; top: 14px; font-size: 28vw; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

/* V10 fluidity pass */
.player,
.art-wrap,
.art,
.bg,
.bg::before,
.meta,
.enter,
.year-aura {
  will-change: transform, opacity, filter;
}

.art-wrap {
  position: relative;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.art {
  position: absolute;
  inset: 0;
  transform: translate3d(0, 0, 0) scale(1.0001);
  backface-visibility: hidden;
  transition:
    opacity 760ms cubic-bezier(.16, 1, .3, 1),
    transform 1200ms cubic-bezier(.16, 1, .3, 1),
    filter 900ms ease;
}

.art-next {
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  transform: translate3d(0, 0, 0) scale(1.012);
}

.art-next.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

body.welcome-mode .art-wrap {
  animation: welcomeFloat 7.5s ease-in-out infinite;
}

body.welcome-mode .art {
  object-fit: cover;
}

body.welcome-mode .art-wrap:not(.is-empty) {
  display: block;
  opacity: .96;
  border-color: rgba(244,239,231,.18);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.16), 0 30px 96px rgba(0,0,0,.34);
}

body.welcome-mode .bg::before {
  opacity: .54;
  filter: blur(68px) saturate(1.42) brightness(1.08);
  transform: scale(1.16);
}

body.transitioning .player {
  transform: translate3d(0, -2px, 0) scale(.998);
}

@keyframes welcomeFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -7px, 0) scale(1.006); }
}

@media (prefers-reduced-motion: reduce) {
  body.welcome-mode .art-wrap { animation: none; }
}

/* V10.1 welcome morph refinement */
body.welcome-mode .art-wrap {
  overflow: hidden;
  will-change: transform, opacity, filter;
}

body.welcome-mode .art {
  transition:
    opacity 1380ms cubic-bezier(.16, 1, .3, 1),
    transform 2100ms cubic-bezier(.16, 1, .3, 1),
    filter 1380ms ease;
  will-change: opacity, transform, filter;
}

body.welcome-mode .art-next {
  opacity: 0;
  filter: blur(18px) saturate(.92) brightness(.92);
  transform: translate3d(0, 0, 0) scale(1.045);
  mix-blend-mode: normal;
}

body.welcome-mode .art-next.is-visible {
  opacity: 1;
  filter: blur(0) saturate(1.04) brightness(1.02);
  transform: translate3d(0, 0, 0) scale(1.008);
}

body.welcome-mode .art-wrap.is-morphing .art:not(.art-next) {
  opacity: .68;
  filter: blur(10px) saturate(.96) brightness(.96);
  transform: translate3d(0, 0, 0) scale(1.025);
}

body.welcome-mode .art-wrap.is-loading {
  filter: none;
  transform: none;
}

body.welcome-mode .bg::before {
  transition:
    opacity 1450ms ease,
    filter 1700ms ease,
    transform 2200ms cubic-bezier(.16, 1, .3, 1),
    background-image 0ms linear;
}


/* V10.2 cryptic engagement signals */
.signal-link {
  position: fixed;
  z-index: 4;
  left: clamp(18px, 2.4vw, 48px);
  top: clamp(210px, 27vh, 330px);
  display: inline-block;
  color: rgba(244, 239, 231, .42);
  font-size: clamp(48px, 5.6vw, 104px);
  line-height: .9;
  letter-spacing: -.065em;
  font-weight: 100;
  text-decoration: none;
  text-transform: lowercase;
  opacity: 0;
  pointer-events: none;
  filter: blur(14px);
  transform: translate3d(-16px, 10px, 0) scale(.97);
  transition:
    opacity 1500ms ease,
    filter 1800ms ease,
    transform 1900ms cubic-bezier(.16, 1, .3, 1),
    color 700ms ease;
  user-select: none;
  will-change: opacity, filter, transform;
}

.signal-link.is-visible {
  opacity: .72;
  pointer-events: auto;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

.signal-link:hover,
.signal-link:focus-visible {
  color: rgba(244, 239, 231, .9);
}

.signal-link:focus-visible {
  outline: 1px solid rgba(244, 239, 231, .4);
  outline-offset: 10px;
}

body.welcome-mode .signal-link {
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 950px) {
  .signal-link {
    left: 5vw;
    top: auto;
    bottom: 6vh;
    font-size: clamp(46px, 14vw, 82px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .signal-link { transition-duration: 1ms !important; }
}


/* V10.4 quiet clipboard confirmation */
.copy-toast {
  position: fixed;
  z-index: 12;
  left: 50%;
  bottom: clamp(18px, 3vh, 34px);
  padding: 11px 16px 12px;
  border: 1px solid rgba(244, 239, 231, .12);
  border-radius: 999px;
  background: rgba(12, 12, 11, .66);
  backdrop-filter: blur(18px) saturate(1.16);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
  box-shadow: 0 14px 44px rgba(0, 0, 0, .26);
  color: rgba(244, 239, 231, .72);
  font-size: clamp(12px, .9vw, 14px);
  font-weight: 300;
  letter-spacing: .14em;
  text-transform: lowercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  filter: blur(8px);
  transform: translate3d(-50%, 10px, 0) scale(.98);
  transition:
    opacity 520ms ease,
    filter 650ms ease,
    transform 700ms cubic-bezier(.16, 1, .3, 1);
}

.copy-toast.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(-50%, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .copy-toast { transition-duration: 1ms !important; }
}
