/* Scratch 在线 — 首页 */
:root {
  --ink: #10203a;
  --muted: #8c97a9;
  --orange: #ffab19;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: var(--ink);
  background: #f7f9fc;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(76, 151, 255, .18), transparent 62%),
    radial-gradient(760px 460px at 100% 100%, rgba(153, 102, 255, .14), transparent 62%),
    radial-gradient(760px 460px at 0% 100%, rgba(255, 171, 25, .12), transparent 60%),
    #f9fbfe;
}

/* 中心的柔光，衬托 logo */
.glow {
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 151, 255, .16), rgba(76, 151, 255, 0) 66%);
  filter: blur(6px);
  pointer-events: none;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.logo {
  width: 92px;
  height: 92px;
  filter: drop-shadow(0 18px 28px rgba(59, 125, 219, .28));
  animation: bob 6s ease-in-out infinite;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 6.4vw, 62px);
  font-weight: 900;
  letter-spacing: -.8px;
  line-height: 1.1;
}

.start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 208px;
  padding: 19px 44px;
  border-radius: 999px;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, #ffb43d, var(--orange));
  box-shadow: 0 7px 0 #d98200, 0 18px 30px rgba(255, 171, 25, .34);
  transition: transform .15s ease, box-shadow .15s ease;
}

.start:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 0 #d98200, 0 22px 34px rgba(255, 171, 25, .38);
}

.start:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #d98200, 0 10px 18px rgba(255, 171, 25, .3);
}

.start:focus-visible {
  outline: 3px solid #3373cc;
  outline-offset: 4px;
}

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

@media (prefers-reduced-motion: reduce) {
  .logo { animation: none; }
  .start { transition: none; }
}

@media (max-width: 480px) {
  .logo { width: 76px; height: 76px; }
  .start { min-width: 180px; padding: 17px 36px; font-size: 17.5px; }
}
