* {
  box-sizing: border-box;
}

/* Scroll snap: two full-height screens */
html,
body {
  height: 100%;
  scroll-snap-type: y mandatory;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111118;
  color: #ffffff;
}

/* Splash and main both snap to screen starts */
.splash,
.main-screen {
  scroll-snap-align: start;
}

/* ---------------------- */
/* Splash screen          */
/* ---------------------- */

.splash {
  height: 100vh;
  background: #000000; /* purple */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.splash-inner {
  width: 100%;
  max-width: 1200px;
  text-align: center;
}

.splash-logo {
  background: #446176; /* green */
  color: #ffffff;
  width: 70%;
  max-width: 800px;
  margin: 0 auto;
  height: 140px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.splash-hint {
  margin-top: 16px;
  opacity: 0.85;
  font-size: 0.9rem;
}

/* ---------------------- */
/* Main page              */
/* ---------------------- */

.main-screen {
  min-height: 100vh;
  background: #000000; /* blue */
  padding: 100px 20px 80px; /* soft-centred vertically */
  display: flex;
  justify-content: center;
}

.main-inner {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Carousel panel (orange frame) */

.carousel-panel {
  background: #000000; /* orange */
  padding: 20px;
  border-radius: 12px;
}

/* Inner carousel layout */

.carousel {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  height: 440px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.carousel-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #333;
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-nav:hover {
  background: #555;
}

.carousel-viewport {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slides */

.carousel-item {
  display: none;
  width: 90%;
  height: 90%;
  border-radius: 8px;
  background: #446176;
  color: #222;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
}

.carousel-item.active {
  display: flex;
}

/* --------------------------- */
/* Bottom row: menu + dialogue */
/* --------------------------- */

.battle-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}

/* Battle menu (pink box) */

.battle-menu {
  background: #446176; /* pink */
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.battle-menu button {
  border: none;
  padding: 8px 10px;
  border-radius: 4px;
  cursor: pointer;
  background: #ffffff;
  color: #222;
  text-align: left;
  font-size: 0.9rem;
}

.battle-menu button:hover {
  background: #ffe3f3;
}

/* Description box (grey) */

.description-box {
  background: #446176; /* grey */
  border-radius: 10px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
}

.description-text {
  margin: 0;
  color: #222;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ---------------------- */
/* Responsive tweaks      */
/* ---------------------- */

@media (max-width: 900px) {
  .splash-logo {
    width: 90%;
    height: 120px;
  }

  .main-screen {
    padding: 80px 16px 60px;
  }

  .carousel {
    height: 340px;
    padding: 16px;
  }

  .battle-row {
    grid-template-columns: 1fr;
  }

  .battle-menu {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .battle-menu button {
    flex: 1 1 45%;
  }
}
