/* Public, cached startup artwork. No images, remote fonts, sound or gameplay data. */
.launch-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #082d26;
  color: #fff9e9;
  font-family: system-ui, sans-serif;
  padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom);
  box-sizing: border-box;
}
.launch-splash::before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid #e7c57b26;
  border-radius: 28px;
  pointer-events: none;
}
.splash-ambient {
  position: absolute;
  inset: -30%;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 43%, #45896766, transparent 40%),
    radial-gradient(ellipse at 75% 80%, #b8913930, transparent 35%),
    repeating-linear-gradient(115deg, transparent 0 44px, #ffffff02 45px 46px);
}
.splash-content {
  text-align: center;
  width: min(100%, 560px);
  padding: 24px 0;
}
.splash-house {
  color: #e4c887;
  letter-spacing: 0.36em;
  font-size: 10px;
  font-weight: 600;
  margin: 0 0 20px;
}
.splash-scene {
  position: relative;
  height: clamp(210px, 34svh, 320px);
  perspective: 900px;
}
.splash-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(95%, 440px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #f1d49640;
  box-shadow:
    0 0 70px #9fe6b31a,
    inset 0 0 50px #a6e9ae0a;
  transform: translate(-50%, -42%) rotateX(70deg) rotateZ(-18deg);
}
.splash-orbit::after {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px dashed #f1d49633;
  border-radius: 50%;
}
.splash-card {
  --x: -92px;
  --y: 2px;
  --tilt: -29deg;
  --delay: 0ms;
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(76px, 22vw, 112px);
  aspect-ratio: 0.7;
  transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--tilt));
  animation: splash-deal 1100ms cubic-bezier(0.16, 1, 0.3, 1) var(--delay) both;
}
.splash-card-2 {
  --x: -33px;
  --y: -22px;
  --tilt: -10deg;
  --delay: 110ms;
}
.splash-card-3 {
  --x: 33px;
  --y: -22px;
  --tilt: 10deg;
  --delay: 220ms;
  z-index: 2;
}
.splash-card-4 {
  --x: 92px;
  --y: 2px;
  --tilt: 29deg;
  --delay: 330ms;
}
.splash-card-face {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(145deg, #fffef6, #f0e8d6);
  color: #173e33;
  border: 1px solid #fff5d6;
  box-shadow:
    0 18px 28px #00130e66,
    0 1px 0 #ffffff inset;
  animation: splash-float 3500ms ease-in-out calc(var(--delay) + 1100ms) infinite alternate;
}
.splash-card-face::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, #fff9 45%, transparent 70%);
  transform: translateX(-150%);
  animation: splash-sheen 1100ms ease-out calc(var(--delay) + 700ms) both;
}
.splash-card-red .splash-card-face {
  color: #b33f46;
}
.splash-corner {
  position: absolute;
  top: 8px;
  left: 8px;
  font:
    600 18px/1 Georgia,
    serif;
}
.splash-corner-bottom {
  inset: auto 8px 8px auto;
  transform: rotate(180deg);
}
.splash-suit {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font:
    56px Georgia,
    serif;
}
.splash-title {
  font:
    normal clamp(46px, 11vw, 68px)/1.05 Georgia,
    serif;
  letter-spacing: -0.045em;
  margin: 0 0 14px;
  color: #fff9e9;
  text-shadow: 0 8px 30px #00130e44;
}
.splash-title > span {
  color: #e4c887;
}
.splash-tagline {
  color: #e0eade;
  font-size: 14px;
  margin: 0 0 18px;
  letter-spacing: 0.035em;
}
.splash-status {
  font-size: 11px;
  color: #b6c9b8;
  min-height: 16px;
}
.splash-enter {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  min-height: 44px;
  padding: 10px 24px;
  border: 1px solid #f5dd9b85;
  border-radius: 999px;
  color: #fff4d6;
  background: #fff8d509;
  font:
    600 12px system-ui,
    sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}
.splash-enter:hover:not(:disabled) {
  background: #fff8d51f;
}
.splash-enter:focus-visible {
  outline: 3px solid #f5dd9b;
  outline-offset: 5px;
}
.splash-enter:disabled {
  opacity: 0.4;
  cursor: default;
}
.splash-signature {
  margin: 24px 0 0;
  font-size: 14px;
  letter-spacing: 12px;
  padding-left: 12px;
  color: #a5c3b0;
}
.splash-signature span {
  color: #d2ae77;
}
.splash-sparks i {
  position: absolute;
  left: 16%;
  top: 24%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f5d894;
  box-shadow: 0 0 14px #f9de8e;
  animation: splash-spark 2600ms ease-in-out infinite alternate;
}
.splash-sparks i:nth-child(2) {
  left: 80%;
  top: 20%;
  animation-delay: 400ms;
}
.splash-sparks i:nth-child(3) {
  left: 87%;
  top: 65%;
  animation-delay: 800ms;
  width: 3px;
  height: 3px;
}
.splash-sparks i:nth-child(4) {
  left: 8%;
  top: 72%;
  animation-delay: 600ms;
}
.splash-sparks i:nth-child(5) {
  left: 40%;
  top: 6%;
  animation-delay: 200ms;
  width: 2px;
  height: 2px;
}
.splash-sparks i:nth-child(6) {
  left: 60%;
  top: 90%;
  animation-delay: 1000ms;
  width: 2px;
  height: 2px;
}
.splash-loader {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px;
}
.splash-loader i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e4c887;
}
.launch-splash[data-leaving] {
  pointer-events: none;
  animation: splash-exit 480ms cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes splash-deal {
  from {
    opacity: 0;
    transform: translate(calc(-50% - 150px), calc(-50% + 240px)) rotate(-65deg) rotateY(65deg)
      scale(0.65);
  }
  60% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--tilt));
  }
}
@keyframes splash-float {
  to {
    transform: translateY(-6px);
  }
}
@keyframes splash-sheen {
  to {
    transform: translateX(150%);
  }
}
@keyframes splash-spark {
  from {
    opacity: 0.25;
    transform: translateY(5px);
  }
  to {
    opacity: 0.9;
    transform: translateY(-9px);
  }
}
@keyframes splash-exit {
  to {
    opacity: 0;
    transform: scale(1.035);
  }
}
:root[data-theme='dark'] .launch-splash {
  background: #071e1a;
}
@media (max-height: 560px) and (min-width: 600px) {
  .splash-content {
    display: grid;
    grid-template-columns: 240px 1fr;
    column-gap: 30px;
    align-items: center;
    max-width: 680px;
    width: 100%;
    padding: 16px;
  }
  .splash-scene {
    grid-column: 1;
    grid-row: 1/5;
    height: 220px;
  }
  .splash-house,
  .splash-title,
  #splash-controls,
  .splash-signature {
    grid-column: 2;
  }
  .splash-house {
    margin: 0 0 8px;
  }
  .splash-title {
    font-size: 45px;
  }
  .splash-tagline {
    margin-bottom: 10px;
  }
  .splash-signature {
    margin-top: 12px;
  }
  .splash-card {
    width: 80px;
  }
  .splash-card-1 {
    --x: -65px;
  }
  .splash-card-4 {
    --x: 65px;
  }
}
@media (max-height: 650px) and (max-width: 599px) {
  .splash-scene {
    height: 180px;
  }
  .splash-house {
    margin-bottom: 8px;
  }
  .splash-signature {
    margin-top: 14px;
  }
  .splash-content {
    padding: 12px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .launch-splash *,
  .launch-splash[data-leaving] {
    animation: none !important;
  }
  .splash-card-face::after {
    display: none;
  }
  .launch-splash[data-leaving] {
    opacity: 0;
    transition: opacity 100ms;
    transform: none;
  }
}

#splash-controls:has(.splash-tagline) > .splash-loader {
  display: none;
}
