:root {
  --sky-1: #1782ad;
  --sky-2: #0f6d9f;
  --sea: #0b5f89;
  --night: #092238;
  --sand: #f6c571;
  --trunk: #6d3d26;
  --leaf-1: #20a04e;
  --leaf-2: #1ac070;
  --text: #ecf7ff;
  --muted: #b6d8ea;
  --accent: #31e3ad;
  --accent-2: #15c9ff;
  --card-bg: rgba(7, 34, 56, 0.74);
  --card-bg-strong: rgba(7, 34, 56, 0.86);
  --border: rgba(236, 247, 255, 0.2);
  --radius: 16px;
  --shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Exo 2", sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 28%, var(--sea) 62%, var(--night) 100%);
}

.wrapper {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.scene {
  position: fixed;
  pointer-events: none;
}

.scene-glow {
  top: -120px;
  left: 50%;
  width: 700px;
  height: 360px;
  transform: translateX(-50%);
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0));
}

.scene-sun {
  top: 48px;
  right: 10%;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffde8 0%, #ffd980 62%, #ffb74f 100%);
  box-shadow: 0 0 56px rgba(255, 214, 120, 0.75);
}

.scene-wave {
  left: 0;
  width: 100%;
  border-radius: 42% 42% 0 0;
  animation: floatWave 7s ease-in-out infinite;
}

.scene-wave-back {
  bottom: 0;
  height: 170px;
  background: linear-gradient(180deg, rgba(43, 172, 216, 0.46), rgba(8, 69, 102, 0.78));
}

.scene-wave-front {
  bottom: 26px;
  height: 130px;
  background: linear-gradient(180deg, rgba(93, 211, 237, 0.26), rgba(8, 69, 102, 0.2));
  animation-delay: 0.9s;
}

.scene-island {
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  width: 390px;
  height: 95px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 18%, #ffe0a0 0%, var(--sand) 62%, #d9a761 100%);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.palm {
  bottom: 165px;
  width: 12px;
  height: 116px;
  background: linear-gradient(180deg, #8a5637 0%, var(--trunk) 100%);
  border-radius: 10px;
  transform-origin: bottom center;
}

.palm::after {
  content: "";
  position: absolute;
  bottom: 17px;
  left: 1px;
  width: 4px;
  height: 62px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
}

.palm-left {
  left: calc(50% - 95px);
  transform: rotate(-18deg);
}

.palm-right {
  left: calc(50% + 70px);
  height: 98px;
  transform: rotate(13deg);
}

.leaf {
  position: absolute;
  top: -18px;
  left: -58px;
  width: 76px;
  height: 28px;
  border-radius: 60px 8px 60px 8px;
  transform-origin: right center;
  background: linear-gradient(90deg, var(--leaf-1) 0%, var(--leaf-2) 100%);
}

.leaf-a {
  transform: rotate(-33deg);
}

.leaf-b {
  transform: rotate(-4deg);
}

.leaf-c {
  transform: rotate(26deg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(8, 32, 50, 0.65);
  border-bottom: 1px solid rgba(236, 247, 255, 0.14);
}

.topbar-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.brand-logo {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: cover;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.main-nav a:hover {
  color: var(--text);
  border-color: var(--border);
  background: rgba(7, 34, 56, 0.35);
}

main {
  padding: 1.25rem 0 2.2rem;
}

.page-shell {
  padding-top: 1.2rem;
}

.hero {
  text-align: center;
  padding: 1.4rem 0 0.3rem;
}

.badge {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(7, 34, 56, 0.45);
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

h1 {
  margin: 0.9rem 0 0.6rem;
  font-size: clamp(2rem, 4.6vw, 3.45rem);
  line-height: 1.08;
}

.subtitle {
  margin: 0 auto 1.5rem;
  max-width: 690px;
  color: var(--muted);
  font-size: 1.08rem;
}

.server-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-bg-strong);
  box-shadow: var(--shadow);
}

.label {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.ip {
  margin: 0.15rem 0 0;
  font-size: 1.4rem;
  font-weight: 800;
}

.status-row {
  margin-top: 0.8rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: var(--muted);
}

.status-row p {
  margin: 0;
  padding: 0.35rem 0.62rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(7, 34, 56, 0.38);
  font-size: 0.9rem;
}

.section-block {
  margin-top: 1.2rem;
  scroll-margin-top: 90px;
}

.section-head h2 {
  margin: 0 0 0.35rem;
}

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

.card-grid,
.events-list,
.updates-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.updates-stack {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.card p {
  line-height: 1.46;
}

.feature {
  margin-top: 0.95rem;
  border-left: 4px solid var(--accent);
}

.event-highlight {
  margin-top: 0.95rem;
}

.event-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.countdown {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.count-item {
  padding: 0.6rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(12, 63, 90, 0.36);
  text-align: center;
}

.count-item span {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
}

.count-item small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.68rem;
}

.event-date {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.calendar-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 1rem;
}

.calendar-shell {
  margin: 0;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.calendar-toolbar h3 {
  margin: 0;
}

.calendar-weekdays {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}

.calendar-weekdays span {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
}

.calendar-grid {
  margin-top: 0.45rem;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}

.cal-day {
  min-height: 78px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(9, 46, 70, 0.38);
  color: var(--text);
  cursor: pointer;
  padding: 0.45rem;
  text-align: left;
}

.cal-day-num {
  font-weight: 800;
  font-size: 1rem;
}

.cal-day-count {
  margin-top: 0.25rem;
  display: inline-block;
  font-size: 0.72rem;
  color: #0c2f49;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  padding: 0.12rem 0.42rem;
  font-weight: 800;
}

.cal-day.is-outside {
  opacity: 0.35;
}

.cal-day.is-today {
  border-color: rgba(255, 209, 105, 0.8);
}

.cal-day.is-selected {
  border-color: rgba(49, 227, 173, 0.95);
  box-shadow: 0 0 0 1px rgba(49, 227, 173, 0.45) inset;
}

.selected-day-list {
  margin: 0.6rem 0 0;
  padding-left: 1.15rem;
}

.selected-day-list li {
  margin-bottom: 0.45rem;
}

.event-data-source {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.65rem 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn-primary {
  color: #072234;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
}

.btn-secondary {
  color: var(--text);
  background: linear-gradient(120deg, rgba(30, 170, 255, 0.3), rgba(66, 255, 198, 0.25));
  border-color: rgba(255, 255, 255, 0.16);
}

footer {
  padding: 0.9rem 0 2rem;
  text-align: center;
  color: var(--muted);
}

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

@media (max-width: 980px) {
  .topbar-inner {
    padding-block: 0.35rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .scene-sun {
    right: 6%;
    top: 34px;
  }

  .scene-island {
    width: 310px;
    height: 82px;
  }

  .palm-left {
    left: calc(50% - 78px);
  }

  .palm-right {
    left: calc(50% + 52px);
  }
}

@media (max-width: 780px) {
  .server-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-grid,
  .events-list,
  .updates-grid {
    grid-template-columns: 1fr;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .calendar-grid {
    gap: 0.3rem;
  }

  .cal-day {
    min-height: 64px;
    padding: 0.35rem;
  }
}
