:root {
  --accent-orange: #d55e0f;
  --accent-green: #71ab23;
  --accent-blue: #0689e4;
  --bg-top: #d6f3ff;
  --bg-bottom: #f7ffe0;
  --text-main: #12324a;
  --card-bg: rgba(255, 255, 255, 0.78);
  --card-border: rgba(6, 137, 228, 0.28);
  --shadow-soft: 0 10px 24px rgba(6, 137, 228, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Frutiger", "Frutiger Linotype", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-main);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

.leaf-particle {
  position: fixed;
  left: -200px;
  top: -200px;
  display: block;
  width: 12px;
  height: 16px;
  border-radius: 70% 10% 70% 10%;
  background: radial-gradient(circle at 26% 24%, #b9f6bf 0%, #7fd488 50%, #4ba85d 100%);
  box-shadow: 0 0 10px rgba(113, 171, 35, 0.42);
  pointer-events: none;
  z-index: 60;
  will-change: transform;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid rgba(113, 171, 35, 0.25);
}

.brand-wrap {
  min-width: 0;
}

.site-title {
  margin: 0;
  font-family: "Orbitron", "Chewy", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  letter-spacing: 0.04em;
  color: var(--accent-blue);
  text-shadow: 0 2px 12px rgba(6, 137, 228, 0.35);
}

.site-subtitle {
  margin: 0.2rem 0 0;
  color: var(--accent-orange);
  font-family: "Chewy", "Orbitron", sans-serif;
  font-size: 1rem;
}

.site-nav {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-main);
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.5);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent-green);
  background: rgba(113, 171, 35, 0.18);
}

.site-nav a.active {
  border-color: var(--accent-blue);
  background: rgba(6, 137, 228, 0.16);
  font-weight: 700;
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 2px solid var(--accent-blue);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  height: 3px;
  margin: 5px 0;
  border-radius: 99px;
  background: var(--accent-blue);
}

main {
  width: min(1100px, 92vw);
  margin: 1.2rem auto 2rem;
  display: grid;
  gap: 1rem;
}

.card {
  border: 2px solid var(--card-border);
  border-radius: 18px;
  padding: clamp(1rem, 2.2vw, 1.35rem);
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 80% 0%, rgba(6, 137, 228, 0.2), transparent 56%);
}

.encourage {
  color: var(--accent-green);
  font-weight: 700;
}

.cta {
  display: inline-block;
  margin-top: 0.6rem;
  text-decoration: none;
  border: 2px solid var(--accent-orange);
  color: #fff;
  background: linear-gradient(120deg, var(--accent-orange), #f2904e);
  border-radius: 14px;
  padding: 0.6rem 1rem;
  font-weight: 700;
  transition: transform 160ms ease;
}

.cta:hover,
.cta:focus-visible {
  transform: scale(1.03);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  border: 2px solid rgba(113, 171, 35, 0.34);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 18px rgba(113, 171, 35, 0.14);
  transition: transform 180ms ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
}

.gallery-button {
  border: 0;
  background: transparent;
  padding: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.gallery-button img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-meta {
  padding: 0.75rem;
}

.gallery-date {
  margin: 0.25rem 0 0;
  color: #25556f;
  font-size: 0.95rem;
}

.lightbox {
  width: min(90vw, 980px);
  border: 2px solid var(--accent-blue);
  border-radius: 16px;
  background: rgba(244, 253, 255, 0.96);
  box-shadow: 0 18px 42px rgba(6, 137, 228, 0.35);
  padding: 1rem;
}

.lightbox::backdrop {
  background: rgba(8, 35, 56, 0.68);
}

.lightbox img {
  max-height: 70vh;
  object-fit: contain;
  margin: 0 auto;
}

.lightbox-close {
  border: 0;
  background: var(--accent-orange);
  color: #fff;
  font-size: 1.3rem;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  float: right;
  cursor: pointer;
}

.lightbox-date {
  color: #2a5f7d;
}

.game-shell {
  min-height: 480px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 0.85rem;
}

.game-frame {
  width: 800px;
  height: 600px;
  border: 2px solid rgba(6, 137, 228, 0.35);
  border-radius: 12px;
  background: #d8efff;
}

.hidden {
  display: none;
}

.small-note {
  font-size: 0.95rem;
  color: #2f6282;
}

.site-footer {
  text-align: center;
  padding: 1rem 1rem 2rem;
  color: #254e68;
}

.floating {
  animation: floaty 3.8s ease-in-out infinite;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@media (max-width: 767px) {
  .hamburger {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    width: min(240px, 92vw);
    padding: 0.7rem;
    border: 2px solid rgba(6, 137, 228, 0.28);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-soft);
    transform-origin: top right;
    transform: scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 150ms ease, transform 150ms ease;
  }

  .site-nav.open {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .feature-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
