:root {
  --banner-width: 250px;
  --banner-height: 250px;
  --edge-radius: 0;
  --inner-radius: 10px;
  --frame-stroke: rgba(216, 237, 255, 0.75);
  --soft-white: #f4f9ff;
  --blue-1: #1a4d96;
  --blue-2: #2a69ba;
  --blue-3: #81b4ef;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: var(--banner-width);
  height: var(--banner-height);
  background: #0f3870;
  font-family: Arial, Helvetica, sans-serif;
}

.banner {
  position: relative;
  width: var(--banner-width);
  height: var(--banner-height);
  overflow: hidden;
  border-radius: var(--edge-radius);
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  background-color: #2a5fa8;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  border: 0;
  box-shadow: 0 10px 24px rgba(8, 26, 58, 0.22);
}

.banner-inner {
  position: absolute;
  inset: 0;
  padding: 14px 16px 12px;
}

.composition-frame {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(236, 247, 255, 0.72);
  border-radius: 14px;
  pointer-events: none;
  z-index: 5;
}

.background-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 26% at 50% 24%, rgba(189, 221, 255, 0.2) 0%, rgba(189, 221, 255, 0) 100%),
    radial-gradient(64% 24% at 50% 56%, rgba(238, 247, 255, 0.1) 0%, rgba(238, 247, 255, 0) 100%);
}

/* --- Top row: title (left) + date (right) --- */

.top-row {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.title-block {
  position: relative;
  z-index: 6;
  flex: 1 1 auto;
  text-align: left;
  margin-top: 0;
}

.title-image {
  display: block;
  width: 100%;
  max-height: 44px;
  object-fit: contain;
  object-position: left center;
  margin: 0;
}

.title-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(3, 22, 54, 0.3);
}

.title-main {
  font-size: 36px;
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -1.5px;
}

.title-sub {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.05;
  font-weight: 600;
}

.date-block {
  position: relative;
  z-index: 8;
  flex: 0 0 auto;
  width: auto;
  min-height: auto;
  margin: 0;
  border-radius: 12px;
  border: 0;
  background: #005f9e;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px 6px;
  bottom: auto;
  left: auto;
  right: auto;
  animation: breathe 5.8s ease-in-out 2.4s infinite;
}

.date-image {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.date-text {
  color: #f8fcff;
  font-weight: 700;
  font-family: "Google Sans", "Product Sans", "Segoe UI", Arial, Helvetica, sans-serif;
  text-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.date-line-top {
  font-size: 28px;
  letter-spacing: 0.5px;
}

.date-line-bottom {
  font-size: 9px;
  letter-spacing: 0.3px;
}

/* --- Product carousel --- */

.product-card {
  position: relative;
  z-index: 8;
  width: 100%;
  height: 130px;
  margin-top: 10px;
  padding: 6px 8px 4px;
  border-radius: var(--inner-radius);
  background:
    linear-gradient(150deg, rgba(186, 218, 251, 0.34) 0%, rgba(142, 189, 243, 0.3) 55%, rgba(108, 162, 227, 0.35) 100%);
  border: 1px solid var(--frame-stroke);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -10px 20px rgba(32, 78, 141, 0.16);
  overflow: hidden;
}

.card-sheen {
  position: absolute;
  top: -35%;
  left: -48%;
  width: 65%;
  height: 165%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.38) 50%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transform: translateX(0) rotate(8deg);
  pointer-events: none;
}

.product-card.is-shimmering .card-sheen {
  animation: sheen 2.2s ease-out 1;
}

.carousel-track-wrap {
  position: relative;
  width: 100%;
  height: 102px;
  border-radius: 6px;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  object-fit: contain; max-width: 80%; max-height: 88%;
  opacity: 0;
  transform: translateY(6px) scale(0.965);
  filter: saturate(0.98);
  transition:
    opacity 650ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 650ms cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 650ms ease;
  will-change: transform, opacity;
  pointer-events: none;
}

.slide.is-first { width: 100%; height: 100%; }

.slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: saturate(1);
}

.dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 9;
}

.dot {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  margin: 0;
  padding: 0;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  min-width: 7px;
  min-height: 7px;
  line-height: 0;
  border-radius: 50%;
  border: 1px solid rgba(247, 251, 255, 0.94);
  background: rgba(255, 255, 255, 0.16);
  transition: transform 260ms ease, background-color 260ms ease, box-shadow 260ms ease;
}

.dot.is-active {
  background: #f8fcff;
  transform: scale(1);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.16);
}

/* --- Logo --- */

.brand-block {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 8;
  text-align: center;
}

.logo-image {
  max-width: 38%;
  max-height: 20px;
  object-fit: contain;
  filter: none;
}

/* --- Flowers --- */

.flower {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  opacity: 0.85;
  will-change: transform;
}

.flower-left {
  left: -46px;
  bottom: 50px;
  width: 132px;
  animation: floatLeft 7.3s ease-in-out infinite;
}

.flower-right {
  right: -63px;
  bottom: 14px;
  width: 151px;
  transform: scaleX(-1) rotate(6deg);
  animation: floatRight 8.1s ease-in-out infinite;
}

/* --- Utility / animation --- */

.click-layer {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: transparent;
  pointer-events: none;
}

.is-hidden {
  display: none !important;
}

.intro-up {
  opacity: 0;
  transform: translateY(8px);
  animation: introUp 820ms cubic-bezier(0.2, 0.85, 0.28, 1) forwards;
}

.intro-fade {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  animation: introCard 900ms cubic-bezier(0.2, 0.85, 0.28, 1) forwards;
  animation-delay: 140ms;
}

.title-block.intro-up {
  animation-delay: 50ms;
}

.date-block.intro-up {
  animation-delay: 330ms;
}

.brand-block.intro-up {
  animation-delay: 460ms;
}

@keyframes introUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introCard {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.018);
  }
}

@keyframes sheen {
  0% {
    opacity: 0;
    transform: translateX(0) rotate(8deg);
  }
  15% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: translateX(380px) rotate(8deg);
  }
}

@keyframes floatLeft {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(1px, -4px, 0) rotate(1.5deg);
  }
}

@keyframes floatRight {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scaleX(-1) rotate(8deg);
  }
  50% {
    transform: translate3d(-2px, -4px, 0) scaleX(-1) rotate(6.8deg);
  }
}
