:root {
  --splash-bg: radial-gradient(circle at 18% 8%, rgba(96, 124, 212, 0.18), transparent 34%),
    radial-gradient(circle at 86% 10%, rgba(231, 180, 101, 0.14), transparent 31%),
    linear-gradient(158deg, #04060d 0%, #090f1a 42%, #101a2d 100%);
  --splash-surface: rgba(10, 15, 27, 0.84);
  --splash-line: rgba(110, 132, 175, 0.34);
  --splash-text: #eef3fb;
  --splash-muted: #abb7cc;
  --splash-accent: #7f9dff;
  --splash-accent-deep: #5f79ea;
  --splash-gold: #e9c88c;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body.splash-page {
  margin: 0;
  color: var(--splash-text);
  font-family: "Manrope", "Roboto", "Segoe UI", sans-serif;
  background: var(--splash-bg);
  overflow: hidden;
}

body.splash-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 22% 22%, rgba(156, 192, 255, 0.07), transparent 20%),
    radial-gradient(circle at 66% 42%, rgba(239, 207, 148, 0.08), transparent 26%),
    radial-gradient(circle at 76% 74%, rgba(115, 149, 255, 0.08), transparent 24%);
  animation: ambienceShift 14s ease-in-out infinite alternate;
}

.splash-shell {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 1.15rem;
}

.splash-card {
  position: relative;
  width: min(1020px, 100%);
  border-radius: 34px;
  border: 1px solid var(--splash-line);
  background:
    radial-gradient(circle at 87% 6%, rgba(173, 207, 255, 0.14), transparent 29%),
    linear-gradient(180deg, rgba(14, 24, 41, 0.92), rgba(9, 14, 27, 0.9));
  box-shadow:
    0 34px 82px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(223, 234, 255, 0.15);
  padding: clamp(1rem, 2.8vw, 1.55rem);
  display: grid;
  gap: 1.05rem;
  overflow: hidden;
  animation: cardRise 980ms cubic-bezier(0.2, 0.96, 0.28, 1) both;
}

.splash-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(120deg, transparent 8%, rgba(255, 255, 255, 0.08) 42%, transparent 74%);
  opacity: 0;
  animation: sheenScan 4.8s ease-in-out 1;
}

.splash-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.splash-logo {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  box-shadow: 0 14px 26px rgba(2, 7, 18, 0.5);
}

.splash-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--splash-muted);
  font-weight: 700;
}

.splash-head h1 {
  margin: 0.12rem 0 0;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  line-height: 1.04;
}

.cabinet-wrap {
  display: grid;
  justify-items: center;
}

.cabinet {
  width: min(640px, 88vw);
  aspect-ratio: 16 / 9;
  position: relative;
  perspective: 1600px;
}

.cabinet::before {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: -8%;
  height: 14%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(80, 109, 201, 0.5), rgba(34, 52, 97, 0));
  filter: blur(16px);
}

.cabinet-glow {
  position: absolute;
  inset: 9% 16%;
  border-radius: 30px;
  background: radial-gradient(circle, rgba(129, 160, 255, 0.25), transparent 68%);
  filter: blur(9px);
  animation: glowPulse 3.3s ease-in-out infinite;
}

.cabinet-frame {
  position: absolute;
  inset: 0;
  border-radius: 34px;
  border: 1px solid rgba(130, 157, 203, 0.56);
  background:
    linear-gradient(165deg, rgba(36, 51, 81, 0.55), rgba(14, 24, 40, 0.82)),
    radial-gradient(circle at 50% 8%, rgba(243, 205, 140, 0.16), transparent 30%);
  box-shadow:
    inset 0 1px 0 rgba(214, 228, 255, 0.26),
    0 30px 68px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.cabinet-interior {
  position: absolute;
  inset: 7% 6%;
  border-radius: 24px;
  border: 1px solid rgba(136, 164, 218, 0.28);
  background:
    radial-gradient(circle at 52% 0%, rgba(248, 206, 136, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(11, 19, 32, 0.96), rgba(8, 13, 24, 0.96));
  opacity: 0.34;
  transform: scale(0.97);
  filter: blur(1.8px);
  transition:
    opacity 820ms ease,
    transform 820ms ease,
    filter 820ms ease;
}

.shelf {
  position: absolute;
  left: 7%;
  right: 7%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(237, 196, 121, 0.46), transparent);
}

.shelf-top {
  top: 32%;
}

.shelf-mid {
  top: 62%;
}

.bottle {
  position: absolute;
  width: 8.7%;
  border-radius: 9px 9px 10px 10px;
  border: 1px solid rgba(181, 209, 255, 0.36);
  background: linear-gradient(180deg, rgba(230, 239, 255, 0.95), rgba(148, 178, 230, 0.56));
  box-shadow: 0 9px 16px rgba(3, 10, 22, 0.35);
  animation: bottleFloat 2.8s ease-in-out infinite;
}

.bottle::before {
  content: "";
  position: absolute;
  left: 28%;
  right: 28%;
  top: -13%;
  height: 12%;
  border-radius: 3px;
  background: rgba(237, 243, 255, 0.84);
}

.bottle-a {
  height: 36%;
  left: 16%;
  top: 44%;
}

.bottle-b {
  height: 30%;
  left: 34%;
  top: 28%;
  animation-delay: 200ms;
}

.bottle-c {
  height: 33%;
  left: 52%;
  top: 44%;
  animation-delay: 360ms;
}

.bottle-d {
  height: 29%;
  left: 69%;
  top: 30%;
  animation-delay: 520ms;
}

.cabinet-door {
  position: absolute;
  top: 4%;
  bottom: 4%;
  width: 48%;
  border-radius: 24px;
  border: 1px solid rgba(151, 176, 220, 0.45);
  background:
    linear-gradient(180deg, rgba(23, 34, 56, 0.95), rgba(12, 21, 35, 0.97)),
    radial-gradient(circle at 50% 0%, rgba(232, 198, 127, 0.14), transparent 22%);
  box-shadow: inset 0 1px 0 rgba(221, 232, 255, 0.16);
  transition: transform 1240ms cubic-bezier(0.17, 1, 0.28, 1);
}

.cabinet-door-left {
  left: 2.8%;
  transform-origin: left center;
}

.cabinet-door-right {
  right: 2.8%;
  transform-origin: right center;
}

.door-handle {
  position: absolute;
  top: 45%;
  width: 8px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffdca2, #c58f4d);
}

.cabinet-door-left .door-handle {
  right: 8%;
}

.cabinet-door-right .door-handle {
  left: 8%;
}

.spotlight-stage {
  position: relative;
  z-index: 2;
  border-radius: 20px;
  border: 1px solid rgba(120, 149, 203, 0.34);
  background: linear-gradient(180deg, rgba(13, 21, 36, 0.88), rgba(9, 15, 28, 0.86));
  padding: 0.7rem;
  overflow: hidden;
}

.spotlight-beam {
  position: absolute;
  top: -120%;
  bottom: -120%;
  width: 25%;
  left: -20%;
  background: linear-gradient(180deg, rgba(255, 237, 198, 0.12), rgba(161, 194, 255, 0.04));
  transform: skewX(-17deg);
  filter: blur(6px);
  animation: spotlightSweep 5.2s ease-in-out infinite;
}

.spotlight-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.58rem;
}

.spotlight-card {
  border-radius: 15px;
  border: 1px solid rgba(116, 144, 197, 0.32);
  background: linear-gradient(160deg, rgba(20, 31, 51, 0.76), rgba(12, 19, 33, 0.84));
  padding: 0.56rem 0.62rem;
  transition:
    border-color 260ms ease,
    transform 260ms ease,
    box-shadow 260ms ease,
    background-color 260ms ease;
}

.spotlight-card.is-active {
  border-color: rgba(227, 189, 118, 0.62);
  background: linear-gradient(160deg, rgba(35, 50, 79, 0.88), rgba(20, 30, 49, 0.92));
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(2, 8, 20, 0.35);
}

.spotlight-label {
  margin: 0;
  color: #9fb0cb;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.64rem;
  font-weight: 700;
}

.spotlight-title {
  margin: 0.18rem 0 0;
  font-size: clamp(0.98rem, 1.8vw, 1.16rem);
  line-height: 1.15;
  min-height: 2.2em;
}

.spotlight-meta {
  margin: 0.2rem 0 0;
  color: #bcc8da;
  font-size: 0.74rem;
  line-height: 1.35;
  min-height: 2.1em;
}

.spotlight-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.spotlight-chip {
  border-radius: 999px;
  border: 1px solid rgba(140, 167, 211, 0.42);
  background: rgba(20, 32, 54, 0.72);
  color: #dce6f8;
  padding: 0.28rem 0.54rem;
  font-size: 0.74rem;
  font-weight: 650;
  animation: chipIn 280ms ease both;
}

.splash-actions {
  display: grid;
  justify-items: center;
  gap: 0.62rem;
}

.enter-btn {
  min-width: 194px;
  min-height: 50px;
  border-radius: 999px;
  border: 1px solid rgba(140, 168, 219, 0.56);
  background: linear-gradient(135deg, var(--splash-accent), var(--splash-accent-deep));
  color: #f5f9ff;
  font-size: 0.97rem;
  font-family: inherit;
  font-weight: 760;
  letter-spacing: 0.01em;
  box-shadow: 0 15px 28px rgba(39, 74, 166, 0.36);
  opacity: 0;
  transform: translateY(8px);
  cursor: pointer;
  transition:
    opacity 280ms ease,
    transform 280ms ease,
    filter 160ms ease,
    box-shadow 160ms ease;
}

.enter-btn:disabled {
  pointer-events: none;
}

.splash-card[data-state="ready"] .enter-btn {
  opacity: 1;
  transform: translateY(0);
}

.enter-btn:hover,
.enter-btn:focus-visible {
  filter: brightness(1.08);
  box-shadow: 0 18px 30px rgba(44, 84, 186, 0.44);
  outline: none;
}

.splash-status {
  margin: 0;
  color: var(--splash-muted);
  font-size: 0.88rem;
}

.splash-card[data-state="opening"] .cabinet-door-left {
  transform: rotateY(-108deg);
}

.splash-card[data-state="opening"] .cabinet-door-right {
  transform: rotateY(108deg);
}

.splash-card[data-state="opening"] .cabinet-interior {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.splash-card[data-state="opening"] .cabinet-glow {
  animation: none;
  opacity: 0.86;
}

.splash-card[data-state="opening"] {
  animation: cardToApp 1600ms cubic-bezier(0.2, 1, 0.24, 1) both;
}

@keyframes ambienceShift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(0, -8px, 0) scale(1.015);
  }
}

@keyframes cardRise {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sheenScan {
  0%,
  44% {
    opacity: 0;
    transform: translateX(-30%);
  }
  48% {
    opacity: 1;
  }
  70% {
    opacity: 1;
    transform: translateX(22%);
  }
  100% {
    opacity: 0;
    transform: translateX(44%);
  }
}

@keyframes cardToApp {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  68% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 0;
    transform: scale(1.19);
  }
}

@keyframes bottleFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.78;
  }
  50% {
    opacity: 1;
  }
}

@keyframes spotlightSweep {
  0%,
  14% {
    left: -30%;
    opacity: 0;
  }
  24% {
    opacity: 1;
  }
  52% {
    left: 38%;
    opacity: 0.9;
  }
  80% {
    left: 95%;
    opacity: 0;
  }
  100% {
    left: 95%;
    opacity: 0;
  }
}

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

@media (max-width: 860px) {
  .splash-card {
    border-radius: 24px;
  }

  .spotlight-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-title {
    min-height: 0;
  }

  .spotlight-meta {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .splash-shell {
    padding: 0.76rem;
  }

  .splash-card {
    gap: 0.86rem;
    padding: 0.84rem;
  }

  .splash-head h1 {
    font-size: clamp(1.25rem, 8vw, 1.85rem);
  }

  .splash-logo {
    width: 46px;
    height: 46px;
  }

  .cabinet {
    width: min(540px, 92vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition-duration: 1ms !important;
  }
}
