:root {
  --bg: #222a34;
  --surface: #303a46;
  --ink: #dde2e8;
  --muted: #b2bac5;
  --sprite: #1a2a3a;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Roboto", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
}

.pattern-field {
  position: absolute;
  inset: -18vh -12vw;
  animation: drift 38s linear infinite alternate;
}

.spin-sprite {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(270px, 25vw, 430px);
  height: auto;
  opacity: var(--o);
  transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(var(--s));
  transform-origin: center;
  filter: brightness(0) saturate(100%) invert(24%) sepia(11%) saturate(1380%) hue-rotate(169deg) brightness(86%) contrast(88%);
  pointer-events: none;
  user-select: none;
}

@keyframes drift {
  from { transform: translate3d(-1.5vw, -1vh, 0); }
  to { transform: translate3d(2vw, 2vh, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .pattern-field { animation: none; }
}

.shell {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 72px;
  text-align: center;
}

.masthead {
  margin: 0 auto 24px;
}

.title-logo {
  display: block;
  width: min(790px, 91vw);
  max-height: 245px;
  object-fit: contain;
  margin: 0 auto;
  filter:
    drop-shadow(0 0 8px rgba(212, 226, 255, 0.18))
    drop-shadow(0 0 18px rgba(145, 172, 214, 0.10));
}

.game { margin-bottom: 28px; }

.embed-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: var(--surface);
}

.embed-placeholder span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}

.copy {
  width: min(620px, 100%);
  margin: 0 auto;
}

.copy p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.corner-logo {
  position: fixed;
  left: 22px;
  bottom: 18px;
  z-index: 2;
  display: block;
  width: clamp(74px, 8vw, 112px);
  height: auto;
  opacity: 0.78;
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, 960px);
    padding-top: 24px;
    padding-bottom: 86px;
  }

  .masthead { margin-bottom: 20px; }

  .title-logo {
    width: min(680px, 96vw);
    max-height: 180px;
  }

  .spin-sprite {
    width: clamp(210px, 54vw, 330px);
  }

  .corner-logo {
    left: 14px;
    bottom: 12px;
    width: 76px;
  }
}
