:root {
  --bm-ink: #171436;
  --bm-muted: #5a6386;
  --bm-panel: #ffffff;
  --bm-line: rgba(43, 52, 101, 0.15);
  --bm-violet: #6c46d9;
  --bm-plum: #2f235c;
  --bm-blue: #10aee8;
  --bm-cyan: #5ee5f0;
  --bm-pink: #ff5ca8;
  --bm-red: #ff405e;
  --bm-green: #40d77c;
  --bm-gold: #ffd34e;
  --bm-shadow: 0 24px 60px rgba(33, 24, 82, 0.18);
}

html {
  scroll-behavior: smooth;
}

.bubble-home {
  margin: 0;
  overflow-x: hidden;
  background: #eefaff;
  color: var(--bm-ink);
  font-family: var(--font-body, "Trebuchet MS", "Segoe UI", Arial, sans-serif);
}

.bubble-home .container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.bm-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #241947;
}

.bm-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bm-hero__slides {
  position: absolute;
  inset: 0;
}

.bm-hero__slide {
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 0.75s ease, transform 5.6s ease;
}

.bm-hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.bm-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 14, 47, 0.82) 0%, rgba(22, 18, 56, 0.56) 42%, rgba(17, 16, 44, 0.1) 100%),
    linear-gradient(180deg, rgba(10, 8, 28, 0.12), rgba(10, 8, 28, 0.42));
}

.bm-hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 150px 0 110px;
  color: #ffffff;
}

.bm-kicker,
.bm-eyebrow {
  margin: 0 0 14px;
  color: var(--bm-gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.bm-hero h1 {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-display, inherit);
  font-size: clamp(56px, 8vw, 112px);
  font-weight: 900;
  line-height: 0.95;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.26);
}

.bm-hero__lead {
  margin: 20px 0 0;
  color: #9df5ff;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.1;
}

.bm-hero__copy,
.bm-copy {
  max-width: 680px;
  color: var(--bm-muted);
  font-size: 17px;
  line-height: 1.72;
}

.bm-hero__copy {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
}

.bm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.bm-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 2px solid transparent;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.bm-button--primary {
  border-color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(135deg, var(--bm-red), var(--bm-pink));
  box-shadow: 0 8px 0 #ad2444, 0 18px 30px rgba(255, 64, 94, 0.26);
}

.bm-button--ghost {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.bm-button:hover,
.bm-button:focus-visible {
  color: #ffffff;
  transform: translateY(3px);
}

.bm-button--primary:hover,
.bm-button--primary:focus-visible {
  box-shadow: 0 4px 0 #ad2444, 0 12px 20px rgba(255, 64, 94, 0.22);
}

.bm-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.bm-hero__stats span {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(13, 17, 48, 0.36);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.bm-hero__stats strong {
  color: var(--bm-cyan);
}

.bm-hero__controls {
  position: absolute;
  right: clamp(18px, 4vw, 60px);
  bottom: clamp(18px, 4vw, 48px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(12, 10, 36, 0.42);
  backdrop-filter: blur(12px);
}

.bm-hero__nav,
.bm-hero__dot {
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  cursor: pointer;
}

.bm-hero__nav {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  transition: background 0.2s ease, color 0.2s ease;
}

.bm-hero__nav:hover,
.bm-hero__nav:focus-visible {
  background: #ffffff;
  color: var(--bm-plum);
  outline: none;
}

.bm-hero__dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bm-hero__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  font-size: 0;
  transition: width 0.2s ease, background 0.2s ease;
}

.bm-hero__dot.is-active {
  width: 24px;
  background: var(--bm-gold);
}

.bm-loop,
.bm-gameplay,
.bm-levels,
.bm-features,
.bm-gallery {
  padding: 86px 0;
}

.bm-loop {
  background: linear-gradient(180deg, #f6fdff, #eefaff);
}

.bm-loop__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bm-step {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--bm-line);
  border-radius: 8px;
  background: var(--bm-panel);
  box-shadow: 0 12px 32px rgba(38, 80, 130, 0.1);
}

.bm-step span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e9fbff;
  color: var(--bm-blue);
  font-weight: 900;
}

.bm-step h2 {
  margin: 22px 0 10px;
  color: var(--bm-ink);
  font-size: 28px;
  line-height: 1.15;
}

.bm-step p,
.bm-power-grid p,
.bm-final p {
  margin: 0;
  color: var(--bm-muted);
  font-size: 16px;
  line-height: 1.65;
}

.bm-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 54px;
  align-items: center;
}

.bm-split__copy h2,
.bm-section-head h2,
.bm-powerups h2,
.bm-final h2 {
  margin: 0;
  color: var(--bm-ink);
  font-family: var(--font-display, inherit);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.05;
}

.bm-tag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.bm-tag-grid span {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #cfedf5;
  border-radius: 8px;
  background: #ffffff;
  color: #263260;
  font-weight: 900;
}

.bm-tag-grid i {
  color: var(--bm-pink);
}

.bm-phone-frame {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  background: linear-gradient(160deg, #ffffff, #dffaff);
  box-shadow: var(--bm-shadow);
}

.bm-phone-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1080 / 2408;
  object-fit: cover;
  border-radius: 20px;
}

.bm-powerups {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
  background: #241947;
}

.bm-powerups__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bm-powerups__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 11, 45, 0.88), rgba(32, 22, 68, 0.62) 48%, rgba(20, 13, 48, 0.18));
}

.bm-powerups__content {
  position: relative;
  z-index: 1;
  padding: 92px 0;
  color: #ffffff;
}

.bm-powerups h2 {
  max-width: 760px;
  color: #ffffff;
}

.bm-copy--light {
  color: rgba(255, 255, 255, 0.88);
}

.bm-power-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 860px;
  margin-top: 34px;
}

.bm-power-grid article {
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.bm-power-grid i {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bm-gold);
  color: #432708;
  font-size: 22px;
}

.bm-power-grid h3 {
  margin: 18px 0 8px;
  color: #ffffff;
  font-size: 22px;
}

.bm-power-grid p {
  color: rgba(255, 255, 255, 0.82);
}

.bm-levels {
  background: #ffffff;
}

.bm-levels__inner {
  display: grid;
  gap: 34px;
}

.bm-section-head {
  max-width: 760px;
}

.bm-section-head--center {
  margin: 0 auto 32px;
  text-align: center;
}

.bm-levels__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.bm-level-card {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #1e183e;
  box-shadow: 0 18px 44px rgba(35, 42, 98, 0.16);
}

.bm-level-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1376 / 768;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.bm-level-card:hover img {
  transform: scale(1.03);
}

.bm-features {
  background:
    linear-gradient(135deg, rgba(94, 229, 240, 0.24), rgba(255, 211, 78, 0.18)),
    #f6fdff;
}

.bm-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 940px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.bm-feature-list li {
  display: flex;
  min-height: 70px;
  align-items: center;
  gap: 13px;
  padding: 17px 18px;
  border: 1px solid var(--bm-line);
  border-radius: 8px;
  background: #ffffff;
  color: #263260;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.bm-feature-list i {
  color: var(--bm-green);
}

.bm-gallery {
  background: #ffffff;
}

.bm-gallery__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.bm-gallery__heading h2 {
  max-width: 760px;
  margin: 0;
  color: var(--bm-ink);
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.1;
}

.games-carousel__controls {
  display: flex;
  gap: 10px;
}

.bm-gallery__button {
  width: 44px;
  height: 44px;
  border: 1px solid #cde5ef;
  border-radius: 50%;
  background: #ffffff;
  color: var(--bm-plum);
  cursor: pointer;
}

.bm-gallery__button:disabled {
  opacity: 0.35;
  cursor: default;
}

.bm-games-carousel {
  overflow: hidden;
}

.games-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 0 18px;
}

.games-track::-webkit-scrollbar {
  display: none;
}

.game-slide {
  flex: 0 0 auto;
  width: min(76vw, 760px);
  height: 430px;
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: 8px;
  background: #20183f;
  box-shadow: 0 18px 44px rgba(29, 34, 88, 0.16);
}

.game-slide.is-portrait {
  width: min(62vw, 250px);
}

.game-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.games-track.is-dragging {
  cursor: grabbing;
}

.bm-final {
  padding: 86px 0;
  background: linear-gradient(135deg, #281b58, #0aa6ce);
  color: #ffffff;
}

.bm-final__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
}

.bm-final h2 {
  color: #ffffff;
}

.bm-final p {
  max-width: 690px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.86);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .bm-loop__grid,
  .bm-power-grid,
  .bm-feature-list,
  .bm-levels__gallery {
    grid-template-columns: 1fr;
  }

  .bm-split {
    grid-template-columns: 1fr;
  }

  .bm-phone-frame {
    max-width: 360px;
    margin: 0 auto;
  }

  .bm-final__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .bubble-home .container {
    width: min(100% - 28px, 1180px);
  }

  .bm-hero {
    min-height: 86vh;
  }

  .bm-hero__shade {
    background: linear-gradient(180deg, rgba(15, 14, 47, 0.72), rgba(15, 14, 47, 0.82));
  }

  .bm-hero__content {
    padding: 122px 0 72px;
  }

  .bm-hero h1 {
    font-size: 52px;
  }

  .bm-hero__lead {
    font-size: 25px;
  }

  .bm-hero__actions,
  .bm-hero__stats {
    align-items: stretch;
    flex-direction: column;
  }

  .bm-hero__controls {
    right: 14px;
    bottom: 14px;
    left: 14px;
    justify-content: space-between;
    gap: 8px;
  }

  .bm-hero__nav {
    width: 34px;
    height: 34px;
  }

  .bm-button {
    width: 100%;
  }

  .bm-loop,
  .bm-gameplay,
  .bm-levels,
  .bm-features,
  .bm-gallery,
  .bm-final {
    padding: 62px 0;
  }

  .bm-step {
    min-height: 0;
  }

  .bm-tag-grid {
    grid-template-columns: 1fr;
  }

  .bm-powerups {
    min-height: 0;
  }

  .bm-powerups__shade {
    background: rgba(17, 12, 48, 0.82);
  }

  .bm-gallery__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-slide {
    width: min(84vw, 520px);
    height: 300px;
  }

  .game-slide.is-portrait {
    width: min(70vw, 170px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .bm-button,
  .bm-level-card img,
  .bm-hero__slide,
  .bm-hero__dot,
  .bm-hero__nav {
    transition: none;
  }
}

.bubble-home .games-carousel__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bubble-home .bm-gallery__button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #cde5ef;
  border-radius: 50%;
  background: #ffffff;
  color: var(--bm-plum);
  box-shadow: none;
}

.bubble-home .bm-gallery__button:hover:not(:disabled),
.bubble-home .bm-gallery__button:focus-visible {
  background: #e9fbff;
  color: var(--bm-blue);
  transform: translateY(0);
  box-shadow: none;
}

.bubble-home .bm-gallery__button:disabled {
  opacity: 0.35;
}
