/* ==========================================================================
   Hero Display & Organic Floating Cast
   ========================================================================== */

.hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 380px);
}

.hero-display {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
}

.hero-display .hero-card {
  position: relative;
  z-index: 2;
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: var(--surface);
  backdrop-filter: blur(20px);
}

.hero-display .hero-card strong {
  display: block;
  margin: 28px 0 12px;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  letter-spacing: -0.07em;
}

.hero-floating-cast {
  position: absolute;
  inset: -20px -24px;
  pointer-events: none;
  z-index: 3;
}

.cast-orb {
  position: absolute;
  pointer-events: auto;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(14px);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.5),
    0 0 20px var(--accent-soft);
  transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 280ms ease;
  user-select: none;
  cursor: pointer;
}

.cast-orb:hover {
  transform: scale(1.18) !important;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.65),
    0 0 28px var(--accent-color);
  z-index: 10;
}

.cast-orb img {
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

/* Organic floating positions & ambient float animations */
.orb-lara {
  top: -16px;
  right: -12px;
  animation: float-orb-1 5.2s ease-in-out infinite alternate;
}

.orb-maja {
  top: -20px;
  left: 24px;
  animation: float-orb-2 6.4s ease-in-out infinite alternate;
}

.orb-bedboj {
  bottom: -14px;
  left: -12px;
  animation: float-orb-3 5.8s ease-in-out infinite alternate;
}

.orb-delfin {
  bottom: -18px;
  right: 24px;
  animation: float-orb-4 6.8s ease-in-out infinite alternate;
}

@keyframes float-orb-1 {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-5px, 7px) rotate(4deg); }
}

@keyframes float-orb-2 {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(6px, 6px) rotate(-3deg); }
}

@keyframes float-orb-3 {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(6px, -5px) rotate(3deg); }
}

@keyframes float-orb-4 {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-5px, -6px) rotate(-4deg); }
}

/* ==========================================================================
   Section Stats (Live Ticker)
   ========================================================================== */

.section-stats {
  margin: -16px auto 48px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  padding: 18px 22px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
  transition: border-color 200ms ease, transform 200ms ease;
}

.stat-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.stat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.stat-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.stat-value {
  display: block;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  color: #f9fafb;
}

.stat-hint {
  display: block;
  font-size: 0.74rem;
  color: #6b7280;
  margin-top: 4px;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  margin-right: 4px;
  vertical-align: middle;
  animation: pulse-dot 2s infinite ease-in-out;
}

/* ==========================================================================
   Carousel & Game Cards
   ========================================================================== */

.section-carousel {
  padding-bottom: 84px;
}

.carousel-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.carousel-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.055em;
}

.carousel-arrows {
  display: flex;
  gap: 10px;
}

.carousel-arrows button {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.045);
  font: inherit;
  font-size: 1.25rem;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.carousel-arrows button:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background: var(--accent-faint);
  transform: translateY(-1px);
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 34px;
  outline: none;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}

.carousel-viewport:focus-visible {
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.carousel-viewport.is-dragging {
  cursor: grabbing;
}

.carousel-track {
  display: grid;
  grid-auto-columns: min(82vw, 560px);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scrollbar-width: none;
}

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

.section-slide {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: 30px;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  backdrop-filter: blur(14px);
}

.slide-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.slide-eyebrow {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-color);
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d1d5db;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.slide-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex: 1;
}

.slide-info {
  flex: 1;
  min-width: 0;
}

.slide-info h3 {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  letter-spacing: -0.05em;
  color: #f9fafb;
}

.slide-info p {
  margin: 0;
  color: #9ca3af;
  font-size: 0.94rem;
  line-height: 1.6;
  max-width: 38ch;
}

.slide-visual {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Specific visuals */
.visual-slots {
  display: flex;
  gap: 4px;
  font-size: 1.25rem;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.visual-roulette img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(32, 215, 183, 0.28));
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.section-slide:hover .visual-roulette img {
  transform: rotate(45deg);
}

.visual-plinko {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.visual-plinko .plinko-pins {
  display: flex;
  gap: 8px;
}

.visual-plinko .plinko-pins i {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 6px var(--accent-color);
}

.visual-plinko img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.visual-walenie {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-walenie img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.visual-walenie .hammer-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 1.1rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  transform: rotate(-15deg);
}

.visual-gniotki {
  display: flex;
  align-items: center;
  gap: 4px;
}

.visual-gniotki .bao-icon {
  font-size: 1.6rem;
}

.visual-gniotki img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.visual-piekielnik {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.visual-piekielnik .piekielnik-ruler {
  font-size: 1.45rem;
}

.visual-piekielnik .piekielnik-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 1px 6px;
  border-radius: 6px;
}

.visual-swietlik {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

.visual-swietlik .swietlik-orb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow:
    0 0 14px #38bdf8,
    0 0 28px rgba(56, 189, 248, 0.5);
  animation: pulse-swietlik 2.4s ease-in-out infinite;
}

@keyframes pulse-swietlik {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.3); opacity: 1; filter: brightness(1.2); }
}

.slide-footer {
  margin-top: 14px;
}

.slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-color);
  font-weight: 750;
  font-size: 0.92rem;
  transition: gap 180ms ease, color 180ms ease;
}

.slide-cta .arrow {
  transition: transform 180ms ease;
}

.section-slide:hover .slide-cta .arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   Carousel Active States
   ========================================================================== */

.section-carousel.carousel-ready .carousel-viewport {
  min-height: 374px;
}

.section-carousel.carousel-ready .carousel-track {
  position: relative;
  display: block;
  height: 364px;
  overflow: visible;
  padding: 0;
}

.section-carousel.carousel-ready .section-slide {
  --drag-x: 0px;
  position: absolute;
  top: 8px;
  left: 50%;
  width: min(48vw, 560px);
  min-width: 430px;
  height: 334px;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, 18px, 0) scale(0.72);
  transform-origin: center;
  transition:
    transform 420ms cubic-bezier(.22, .75, .24, 1),
    opacity 300ms ease,
    border-color 300ms ease,
    box-shadow 300ms ease;
  will-change: transform, opacity;
}

.section-carousel.carousel-ready .section-slide.is-active {
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(calc(-50% + var(--drag-x)), 0, 0) scale(1) rotateY(0deg);
  border-color: rgba(34, 240, 208, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 58px var(--accent-soft),
    0 28px 80px rgba(0, 0, 0, 0.46);
}

.section-carousel.carousel-ready .section-slide.is-previous {
  z-index: 2;
  opacity: 0.5;
  pointer-events: auto;
  transform:
    translate3d(calc(-122% + var(--drag-x)), 10px, 0)
    scale(0.86)
    perspective(900px)
    rotateY(7deg);
}

.section-carousel.carousel-ready .section-slide.is-next {
  z-index: 2;
  opacity: 0.5;
  pointer-events: auto;
  transform:
    translate3d(calc(22% + var(--drag-x)), 10px, 0)
    scale(0.86)
    perspective(900px)
    rotateY(-7deg);
}

.section-carousel.carousel-ready .section-slide.is-far {
  z-index: 1;
  opacity: 0;
  transform: translate3d(-50%, 22px, 0) scale(0.68);
}

.section-carousel.is-dragging .section-slide {
  transition: none;
}

.carousel-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-pagination button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transition: width 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.carousel-pagination button[aria-current="true"] {
  width: 28px;
  background: var(--accent-color);
  box-shadow: 0 0 16px var(--accent-soft);
}

.carousel-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 720px) {
  .section-carousel {
    width: 100%;
    padding-bottom: 64px;
  }

  .carousel-heading {
    width: calc(100% - 28px);
    margin-inline: auto;
  }

  .carousel-arrows button {
    width: 42px;
    height: 42px;
  }

  .carousel-viewport {
    border-radius: 24px;
  }

  .section-carousel.carousel-ready .carousel-viewport {
    min-height: 338px;
  }

  .section-carousel.carousel-ready .carousel-track {
    height: 330px;
  }

  .section-carousel.carousel-ready .section-slide {
    top: 7px;
    width: 84vw;
    min-width: 0;
    height: 312px;
    padding: 22px;
    border-radius: 25px;
  }

  .section-carousel.carousel-ready .section-slide.is-previous {
    transform: translate3d(calc(-132% + var(--drag-x)), 12px, 0) scale(0.82) rotateY(5deg);
  }

  .section-carousel.carousel-ready .section-slide.is-next {
    transform: translate3d(calc(32% + var(--drag-x)), 12px, 0) scale(0.82) rotateY(-5deg);
  }

  .slide-info h3 {
    font-size: clamp(1.5rem, 6vw, 1.95rem);
  }

  .slide-info p {
    line-height: 1.5;
  }

  .slide-visual {
    width: 66px;
    height: 66px;
    border-radius: 16px;
  }

  .visual-roulette img {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .stat-card {
    padding: 14px 14px;
    border-radius: 18px;
  }

  .stat-value {
    font-size: 1.35rem;
  }

  .stat-hint {
    display: none;
  }

  .hero-floating-cast {
    inset: -12px -10px;
  }

  .orb-lara {
    top: -12px;
    right: -6px;
  }

  .orb-lara img {
    width: 46px !important;
    height: 46px !important;
  }

  .orb-maja {
    top: -16px;
    left: 16px;
  }

  .orb-maja img {
    width: 38px !important;
    height: 38px !important;
  }

  .orb-bedboj {
    bottom: -10px;
    left: -6px;
  }

  .orb-bedboj img {
    width: 44px !important;
    height: 44px !important;
  }

  .orb-delfin {
    bottom: -14px;
    right: 16px;
  }

  .orb-delfin img {
    width: 40px !important;
    height: 40px !important;
  }

  .carousel-heading {
    gap: 10px;
  }

  .carousel-heading h2 {
    font-size: 1.65rem;
    white-space: nowrap;
  }

  .carousel-arrows {
    gap: 6px;
  }

  .carousel-arrows button {
    width: 38px;
    height: 38px;
  }

  .section-carousel.carousel-ready .carousel-viewport {
    min-height: 350px;
  }

  .section-carousel.carousel-ready .carousel-track {
    height: 342px;
  }

  .section-carousel.carousel-ready .section-slide {
    height: 326px;
    padding: 18px 20px;
  }

  .slide-info h3 {
    font-size: 1.45rem;
  }

  .slide-info p {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .slide-visual {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 350px) {
  .carousel-heading {
    flex-wrap: wrap;
  }

  .carousel-arrows {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cast-orb {
    animation: none;
  }

  .section-carousel.carousel-ready .section-slide,
  .carousel-pagination button {
    transition-duration: 1ms;
  }

  .section-carousel.carousel-ready .section-slide.is-previous,
  .section-carousel.carousel-ready .section-slide.is-next {
    transform: translate3d(calc(-50% + var(--drag-x)), 0, 0) scale(0.94);
    opacity: 0;
    pointer-events: none;
  }
}
