:root {
  --ink: #1a2a32;
  --muted: #5a6d76;
  --paper: #f3f8f6;
  --accent: #0f8f7b;
  --accent-deep: #0b6b5c;
  --sun: #f0b429;
  --sky: #7ec8e3;
  --bloom: #ff8a65;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--paper);
  line-height: 1.55;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 85% 10%, rgba(240, 180, 41, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 45% at 5% 20%, rgba(126, 200, 227, 0.35), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(15, 143, 123, 0.12), transparent 60%),
    linear-gradient(165deg, #e8f4f1 0%, #f7faf8 45%, #eef6fb 100%);
}

.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark img {
  border-radius: 10px;
}

.lang {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.2rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(26, 42, 50, 0.08);
  border-radius: 10px;
}

.lang button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
}

.lang button.is-active {
  background: #fff;
  color: var(--ink);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.hero {
  min-height: calc(100svh - 5.5rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  padding-bottom: 2rem;
}

.brand {
  margin: 0 0 0.75rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--accent-deep);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lede {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cta:hover {
  transform: translateY(-1px);
}

.cta.primary {
  background: var(--accent);
  color: #fff;
}

.cta.primary:hover {
  background: var(--accent-deep);
}

.cta.secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border: 1px solid rgba(26, 42, 50, 0.1);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
}

.hero-icon {
  width: min(58vw, 280px);
  height: auto;
  border-radius: 28%;
  box-shadow: 0 18px 40px rgba(11, 107, 92, 0.18);
  animation: float 5.5s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(15, 143, 123, 0.28);
  animation: spin 28s linear infinite;
}

.o1 {
  width: 72%;
  aspect-ratio: 1;
  border-color: rgba(240, 180, 41, 0.45);
}

.o2 {
  width: 90%;
  aspect-ratio: 1;
  animation-duration: 40s;
  animation-direction: reverse;
  border-color: rgba(126, 200, 227, 0.55);
}

.o3 {
  width: 40%;
  aspect-ratio: 1;
  top: 12%;
  right: 8%;
  background: radial-gradient(circle at 30% 30%, var(--sun), transparent 65%);
  border: 0;
  opacity: 0.55;
  animation: pulse 4s ease-in-out infinite;
}

.games {
  padding: 1rem 0 2rem;
}

.games h2,
.doc h1 {
  margin: 0 0 0.5rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.section-lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 36rem;
}

.game-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(26, 42, 50, 0.1);
}

.game-list li {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 1rem 1.15rem 0;
  border-bottom: 1px solid rgba(26, 42, 50, 0.1);
}

.game-list li:nth-child(even) {
  padding-left: 1.25rem;
  border-left: 1px solid rgba(26, 42, 50, 0.08);
}

.game-list strong {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.game-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  border-top: 1px solid rgba(26, 42, 50, 0.08);
}

.foot p {
  margin: 0.2rem 0;
}

.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.doc-page main.doc {
  padding-top: 1rem;
  padding-bottom: 3rem;
  max-width: 720px;
}

.doc h2 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.15rem;
}

.doc-body p {
  margin: 0.65rem 0;
  color: var(--muted);
}

.text-link {
  color: var(--accent-deep);
  font-weight: 600;
}

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.06); }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1rem;
  }

  .hero-visual {
    order: -1;
    min-height: 220px;
  }

  .hero-icon {
    width: min(46vw, 180px);
  }

  .game-list {
    grid-template-columns: 1fr;
  }

  .game-list li:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-icon,
  .orbit,
  .o3 {
    animation: none;
  }
}
