:root {
  --bg-deep: #151414;
  --bg-soft: #1f1d21;
  --accent: #ffb45c;
  --accent-2: #ff7a90;
  --text-main: #f6f3f0;
  --text-muted: rgba(246, 243, 240, 0.72);
  --card-bg: rgba(33, 30, 36, 0.82);
  --card-border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans SC", "Chivo", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #262026 0%, var(--bg-deep) 45%),
    radial-gradient(circle at 10% 20%, rgba(255, 180, 92, 0.18), transparent 55%),
    radial-gradient(circle at 85% 10%, rgba(255, 122, 144, 0.2), transparent 50%);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

.page {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 72px 0 56px;
  display: flex;
  flex-direction: column;
  gap: 64px;
  position: relative;
  z-index: 1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
  animation: float 12s ease-in-out infinite;
}

.orb-1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 184, 92, 0.8), transparent 70%);
  top: -140px;
  left: -120px;
}

.orb-2 {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 122, 144, 0.7), transparent 70%);
  top: 220px;
  right: -100px;
  animation-delay: -4s;
}

.orb-3 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(98, 197, 255, 0.6), transparent 70%);
  bottom: -40px;
  left: 30%;
  animation-delay: -7s;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  max-width: 720px;
  animation: rise 0.8s ease forwards;
}

.kicker {
  font-family: "Chivo", "Noto Sans SC", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.9rem;
  color: var(--accent);
}

.hero h1 {
  font-family: "Chivo", "Noto Sans SC", sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  line-height: 1.1;
  background: linear-gradient(120deg, #ffe0a1 0%, #ffb1c2 60%, #9de1ff 100%);
  -webkit-background-clip: text;
  color: transparent;
}

.intro {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.primary {
  font-family: "Chivo", "Noto Sans SC", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  color: #1c1614;
  background: linear-gradient(120deg, #ffca7d, #ff8aa4);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 30px rgba(255, 160, 120, 0.25);
}

.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(255, 160, 120, 0.35);
}

.primary:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.ghost {
  font-family: "Chivo", "Noto Sans SC", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease,
    background 0.2s ease;
}

.ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.35);
}

.hint {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.gallery-section {
  background: var(--card-bg);
  border-radius: 28px;
  padding: 32px;
  border: 1px solid var(--card-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-family: "Chivo", "Noto Sans SC", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.section-head p {
  color: var(--text-muted);
}

.status {
  font-size: 0.95rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
}

.status[data-tone="loading"] {
  color: #ffd089;
}

.status[data-tone="ready"] {
  color: #9de1ff;
}

.status[data-tone="error"] {
  color: #ff9ba5;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
}

.game-frame {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  aspect-ratio: 16 / 9;
  min-height: 420px;
}

.game-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: rise 0.6s ease forwards;
  opacity: 0;
  transform: translateY(12px);
  animation-delay: var(--delay, 0ms);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  display: block;
  filter: saturate(1.05);
}

.card figcaption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 6px 10px;
  font-size: 0.8rem;
  border-radius: 999px;
  background: rgba(16, 15, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.skeleton {
  min-height: 220px;
  background: rgba(255, 255, 255, 0.05);
}

.shimmer {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
  animation: shimmer 1.4s ease-in-out infinite;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(50%);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(18px);
  }
}

@media (max-width: 900px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-section {
    padding: 24px;
  }
}

@media (max-width: 600px) {
  .page {
    padding: 56px 0 40px;
  }

  .hero {
    text-align: left;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .game-frame {
    aspect-ratio: 4 / 3;
    min-height: 320px;
  }

  .footer {
    flex-direction: column;
  }
}
