:root {
  --bg: #05030f;
  --bg2: #180822;
  --card: rgba(10, 7, 24, 0.96);
  --accent1: #ff7bbf;
  --accent2: #7b8dff;
  --accent3: #9df1ff;
  --text: #f9f5ff;
  --muted: #c3bbeb;
  --radius-xl: 26px;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.85);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 0% 0%, #ff7bbf20, transparent 55%),
    radial-gradient(circle at 100% 100%, #7b8dff25, transparent 55%),
    linear-gradient(145deg, var(--bg), var(--bg2));
}

/* Center the whole layout vertically & horizontally-ish */
.shell {
  min-height: 100vh;
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;  /* vertical centering */
  gap: 1.5rem;
}

/* Heading strip */
.site-header {
  text-align: center;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  letter-spacing: 0.1em;
  text-transform: lowercase;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.7);
}

.tagline {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Main card with canvas */
.card {
  background: radial-gradient(circle at top left,
              rgba(255, 123, 191, 0.18),
              transparent 55%)
          ,
          radial-gradient(circle at bottom right,
              rgba(123, 141, 255, 0.2),
              transparent 55%),
          var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.8rem 1.2rem;
  width: 100%;
  max-width: 720px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* subtle border glow */
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #ff7bbf, #7b8dff, #9df1ff)
              border-box;
  opacity: 0.15;
  pointer-events: none;
}

/* Canvas area */
#toyCanvas {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 3 / 2;  /* keeps it nicely proportioned */
  border-radius: 22px;
  background: radial-gradient(circle at top, #291c44, #050307 75%);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Caption under canvas */
.caption {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* Footer text */
.footer {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  opacity: 0.8;
}

/* tiny pulse on the 💦 emoji if you want */
.caption::after {
  content: " 💦";
  animation: drip 1.6s ease-in-out infinite;
}

@keyframes drip {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(2px); opacity: 0.7; }
}

/* Small screens */
@media (max-width: 640px) {
  .shell {
    padding: 1.8rem 1rem;
  }

  .card {
    padding: 1.3rem 1.2rem 1rem;
  }

  .site-header h1 {
    font-size: 2.2rem;
  }
}
