*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── Accessibility helpers ──────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 99999;
  background: #16973A;
  color: #fec910;
  padding: 10px 20px;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid #fec910;
  outline-offset: 3px;
}

body {
  font-family: "fertigo-pro", sans-serif;
  font-size: 28px;
  line-height: 1.3;
}

/* ─── Animations ─────────────────────────────── */

@keyframes float-a {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

@keyframes float-b {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-9px); }
}

@keyframes sway-a {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  40%       { transform: translateY(-11px) rotate(2deg); }
  70%       { transform: translateY(6px) rotate(-1.5deg); }
}

@keyframes sway-b {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  35%       { transform: translateY(-8px) rotate(-2deg); }
  65%       { transform: translateY(5px) rotate(1deg); }
}

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

@keyframes drift {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  30%       { transform: translateY(-12px) translateX(5px); }
  70%       { transform: translateY(7px) translateX(-4px); }
}

@keyframes float-center {
  0%, 100% { transform: translateY(-50%); }
  50%       { transform: translateY(calc(-50% - 10px)); }
}

@keyframes slide-from-left {
  from { transform: translateX(-140px); opacity: 0; }
  to   { transform: translateX(0);      opacity: 1; }
}

@keyframes slide-from-right {
  from { transform: translateX(140px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

@keyframes slide-from-left-center {
  from { transform: translateX(-140px) translateY(-50%) rotate(-10deg) skewX(-10deg); opacity: 0; }
  to   { transform: translateX(0)      translateY(-50%) rotate(-10deg) skewX(-10deg); opacity: 1; }
}

@keyframes slide-from-right-center {
  from { transform: translateX(140px) translateY(-50%) rotate(-10deg) skewX(-10deg); opacity: 0; }
  to   { transform: translateX(0)     translateY(-50%) rotate(-10deg) skewX(-10deg); opacity: 1; }
}

@keyframes slide-from-left-center-straight {
  from { transform: translateX(-140px) translateY(-50%); opacity: 0; }
  to   { transform: translateX(0) translateY(-50%); opacity: 1; }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes img-shake {
  0%,  100% { transform: scale(1)    rotate(0deg)    translateX(0); }
  3%         { transform: scale(1.06) rotate(0deg)    translateX(0); }
  4%         { transform: scale(1.06) rotate(-2.5deg) translateX(-6px); }
  5%         { transform: scale(1.06) rotate(2.5deg)  translateX(6px); }
  6%         { transform: scale(1.06) rotate(-2deg)   translateX(-5px); }
  7%         { transform: scale(1.06) rotate(2deg)    translateX(5px); }
  8%         { transform: scale(1.06) rotate(-1deg)   translateX(-3px); }
  9%         { transform: scale(1.06) rotate(0deg)    translateX(0); }
  13%        { transform: scale(1)    rotate(0deg)    translateX(0); }
}

@keyframes hero-pulse {
  0%    { transform: scale(1)    rotate(0deg)    translateX(0px); }
  8%    { transform: scale(1.09) rotate(0deg)    translateX(0px); }
  10%   { transform: scale(1.09) rotate(-2.5deg) translateX(-7px); }
  12%   { transform: scale(1.09) rotate(2.5deg)  translateX(7px); }
  14%   { transform: scale(1.09) rotate(-2deg)   translateX(-6px); }
  16%   { transform: scale(1.09) rotate(2deg)    translateX(6px); }
  18%   { transform: scale(1.09) rotate(-1deg)   translateX(-3px); }
  20%   { transform: scale(1.09) rotate(0deg)    translateX(0px); }
  36%   { transform: scale(1.09) rotate(0deg)    translateX(0px); }
  38%   { transform: scale(1.09) rotate(-2.5deg) translateX(-7px); }
  40%   { transform: scale(1.09) rotate(2.5deg)  translateX(7px); }
  42%   { transform: scale(1.09) rotate(-2deg)   translateX(-5px); }
  44%   { transform: scale(1.09) rotate(1.5deg)  translateX(4px); }
  46%   { transform: scale(1.09) rotate(0deg)    translateX(0px); }
  58%   { transform: scale(1)    rotate(0deg)    translateX(0px); }
  100%  { transform: scale(1)    rotate(0deg)    translateX(0px); }
}

/* ─── Split hero ─────────────────────────────── */

.split-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  cursor: col-resize;
}

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

.split-hero .header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-btn {
  display: none;
}

.header-yellow {
  clip-path: inset(0 50% 0 0);
}

.split-divider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  pointer-events: none;
  overflow: visible;
}

.split-line {
  stroke: #fff;
  stroke-width: 3;
  fill: none;
}


/* ─── Header ─────────────────────────────────── */

.header {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.header-yellow {
  background: radial-gradient(ellipse at center, #f89118 0%, #fec910 60%, #ffe033 100%);
  color: #16973A;
}

.header-green {
  background: radial-gradient(ellipse at center, #28c957 0%, #16973A 45%, #0d6b28 100%);
  color: #fec910;
}

.header-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65%;
  max-width: 1200px;
  pointer-events: none;
}

.header-copy {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(-10deg) skewX(-10deg);
  width: 18%;
  text-align: center;
  line-height: 1.28;
  opacity: 0;
  font-family: "Arima", sans-serif;
  text-transform: uppercase;
}

.copy-main {
  display: block;
  font-size: 64px;
  font-weight: 700;
}

.copy-sub {
  display: block;
  font-size: 38px;
  font-weight: 400;
}

.header-yellow .header-copy { animation: slide-from-left-center  0.8s ease-out 0.4s forwards; }
.header-green  .header-copy { animation: slide-from-right-center 0.8s ease-out 0.4s forwards; }

.header-yellow .header-copy {
  left: calc(50% + 22.5%);
}

.header-green .header-copy {
  right: calc(50% + 22%);
}

.hero-side-images {
  position: absolute;
  right: calc(50% + 20%);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 14%;
  opacity: 0;
  animation: slide-from-left-center-straight 0.8s ease-out 0.3s forwards;
}

.hero-side-images img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-side-images img:nth-child(1) { animation: float-a 5s ease-in-out infinite; }
.hero-side-images img:nth-child(2) { animation: float-b 6s ease-in-out infinite 0.8s; }
.hero-side-images img:nth-child(3) { animation: float-a 7s ease-in-out infinite 1.6s; }
.hero-side-images img:nth-child(4) { animation: float-b 6s ease-in-out infinite 0.8s; }

/* ─── Green header deco images ───────────────── */

.green-deco {
  position: absolute;
  width: 23%;
  height: auto;
  display: block;
}

.green-deco--tl { top: -100px;    left: 0;  opacity: 0; animation: slide-from-left 0.7s ease-out 0.1s forwards, sway-a 6s ease-in-out 0.8s infinite; }
.green-deco--ml { top: 50%;  left: -18%; transform: translateY(-50%); opacity: 0; animation: slide-from-left-center 0.7s ease-out 0.3s forwards, float-center 5.5s ease-in-out 1s infinite; }
.green-deco--bl { bottom: 0; left: 0;  opacity: 0; animation: slide-from-left 0.7s ease-out 0.5s forwards, sway-b 8s ease-in-out 1.2s infinite; }
.green-deco--tr { top: 0;    right: 0; opacity: 0; animation: slide-from-right 0.7s ease-out 0.1s forwards, sway-b 7s ease-in-out 0.8s infinite; }
.green-deco--mr { top: 50%;  right: 0; transform: translateY(-50%); width: 17%; opacity: 0; animation: slide-from-right-center 0.7s ease-out 0.3s forwards, float-center 6.5s ease-in-out 1s infinite; }
.green-deco--br { bottom: 0; right: 0; opacity: 0; animation: slide-from-right 0.7s ease-out 0.5s forwards, sway-a 9s ease-in-out 1.2s infinite; }

/* ─── Yellow header corner ───────────────────── */

.header-corner-wrap {
  position: absolute;
  top: 0;
  right: -5%;
  height: 42dvh;
  width: 35vw;
  overflow: hidden;
  opacity: 0;
  animation: slide-from-right 0.9s ease-out 0.2s forwards;
}

.header-corner-img {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: auto;
  display: block;
  animation: sway-b 8s ease-in-out infinite 1s;
}


.hero-image {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  pointer-events: auto;
  animation: hero-pulse 8s ease-in-out infinite;
}

/* ─── Sections ───────────────────────────────── */

.section-one,
.section-two,
.section-three {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}

.section-one   { align-items: stretch; }
.section-two   { }
.section-three { flex-direction: column; }
.section-three .section-block { overflow: visible; }

.section-three-panels {
  display: flex;
  width: 100%;
}

.section-three .text {
  text-align: center;
  font-size: 100px;
  font-weight: bold;
  line-height: 1;
  padding: 48px 40px;
  overflow: visible;
}

.section-three .text .text-inner {
  display: inline-block;
  position: relative;
  transform: rotate(-5deg);
  overflow: visible;
}

.section-three .text .star {
  position: absolute;
  display: inline-block;
  color: inherit;
  pointer-events: none;
}

.section-three .text .star svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Rozmiary i pozycje — skupione po bokach napisu */
.section-three .text .s1 { width:0.38em; height:0.24em; top:  -0.25em; right: -0.1em;  }
.section-three .text .s2 { width:0.18em; height:0.18em; top:   0.25em; right: -0.35em; }
.section-three .text .s3 { width:0.22em; height:0.22em; bottom:-0.2em;  right: -0.05em; }
.section-three .text .s4 { width:0.15em; height:0.15em; top:  -0.2em;  left:  -0.1em;  }
.section-three .text .s5 { width:0.24em; height:0.24em; top:   0.2em;  left:  -0.4em;  }
.section-three .text .s6 { width:0.34em; height:0.22em; bottom:-0.18em; left: -0.05em; }
.section-three .text .s7 { width:0.18em; height:0.18em; top:  -0.3em;  left:   0.3em;  }

/* Animacje — wolniejsze */
.section-three .text .s1 { animation: star-blink   2.2s ease-in-out infinite 0.0s; }
.section-three .text .s2 { animation: star-twinkle  1.4s ease-in-out infinite 0.5s; }
.section-three .text .s3 { animation: star-float   2.6s ease-in-out infinite 0.9s; }
.section-three .text .s4 { animation: star-twinkle  1.8s ease-in-out infinite 0.3s; }
.section-three .text .s5 { animation: star-blink   2.4s ease-in-out infinite 0.7s; }
.section-three .text .s6 { animation: star-float   2.0s ease-in-out infinite 1.2s; }
.section-three .text .s7 { animation: star-twinkle  1.6s ease-in-out infinite 0.2s; }

@keyframes star-blink {
  0%, 100% { opacity: 1;   transform: scale(1)    rotate(0deg);  }
  50%       { opacity: 0.15; transform: scale(0.45) rotate(40deg); }
}

@keyframes star-twinkle {
  0%, 100% { opacity: 1;   transform: scale(1);    }
  40%       { opacity: 0.05; transform: scale(0.3); }
  60%       { opacity: 0.7;  transform: scale(0.8); }
}

@keyframes star-float {
  0%, 100% { opacity: 1;   transform: translateY(0)    scale(1);    }
  50%       { opacity: 0.2; transform: translateY(-6px) scale(0.5); }
}

.section-tabs { display: none; }

.section-one .section-block:first-child {
  overflow: visible;
}

.section-one .section-block:first-child .text {
  padding: 80px 48px 12px;
}

.section-one .section-block:first-child .block-image {
  max-width: 580px;
  margin-left: -12%;
  margin-top: auto;
}

.section-one .section-block:last-child .text {
  padding: 32px 48px 12px;
}

.section-block:nth-child(odd)  {
  background: #16973A;
  color: #fec910;
}

.section-block:nth-child(even) {
  background: #fec910;
  color: #16973A;
}

/* Gradient na dole sekcji (section-one i section-three) */
.section-one .section-block:nth-child(odd) {
  background:
    linear-gradient(to bottom, #0d6b28 0%, transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(40,201,87,0.55) 0%, transparent 70%),
    #16973A;
}

.section-one .section-block:nth-child(even) {
  background:
    linear-gradient(to bottom, #ffe033 0%, transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(255,228,51,0.55) 0%, transparent 70%),
    #fec910;
}

.section-three .section-block:nth-child(odd) {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(40,201,87,0.55) 0%, transparent 70%),
    #16973A;
}

.section-three .section-block:nth-child(even) {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255,228,51,0.55) 0%, transparent 70%),
    #fec910;
}

/* Gradient na górze sekcji (section-two) */
.section-two .section-block:nth-child(odd) {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(40,201,87,0.55) 0%, transparent 70%),
    #16973A;
}

.section-two .section-block:nth-child(even) {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,228,51,0.55) 0%, transparent 70%),
    #fec910;
}

.section-block {
  width: 50%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.text {
  padding: 48px 48px;
  line-height: 1.6;
}

.sklad-heading {
  font-family: "Arima", sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  line-height: 1.1;
  padding: 48px 48px 16px;
  transform: rotate(-4deg) skewX(-8deg);
  display: block;
  text-align: center;
}

.block-image {
  width: 100%;
  max-width: 850px;
  display: block;
  object-fit: cover;
  animation: drift 8s ease-in-out infinite;
}


.section-one .section-block:first-child .block-image { animation: drift 7s ease-in-out infinite; }
.section-one .section-block:last-child .block-image  { animation: drift 9s ease-in-out 1s infinite; }

.image-grid .slider-track .block-image:nth-child(1) { animation: img-shake 12s ease-in-out 0s infinite; }
.image-grid .slider-track .block-image:nth-child(2) { animation: img-shake 15s ease-in-out 3s infinite; }
.image-grid .slider-track .block-image:nth-child(3) { animation: img-shake 13s ease-in-out 7s infinite; }
.image-grid .slider-track .block-image:nth-child(4) { animation: img-shake 17s ease-in-out 2s infinite; }

.dice-grid .slider-track .block-image:nth-child(1) { animation: img-shake 16s ease-in-out 1s infinite; }
.dice-grid .slider-track .block-image:nth-child(2) { animation: img-shake 13s ease-in-out 5s infinite; }
.dice-grid .slider-track .block-image:nth-child(3) { animation: img-shake 18s ease-in-out 0.5s infinite; }
.dice-grid .slider-track .block-image:nth-child(4) { animation: img-shake 14s ease-in-out 8s infinite; }
.dice-grid .slider-track .block-image:nth-child(5) { animation: img-shake 16s ease-in-out 4s infinite; }

.section-one .section-block:last-child .block-image {
  margin-left: auto;
  max-width: 600px;
  rotate: 24deg;
  margin-top: 64px;
}

/* ─── Image grid (2x2) ───────────────────────── */

.image-grid {
  position: relative;
  max-width: 900px;
  width: 100%;
  padding: 0 40px;
  margin: 80px auto 40px;
}

.image-grid .slider-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  padding: 24px;
}

/* ─── Dice grid (5 jak na kostce) ───────────── */

.dice-grid {
  position: relative;
  width: 100%;
  margin: 40px 0 80px;
}

.dice-grid .slider-track {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.dice-grid .slider-track .block-image:nth-child(1) { grid-column: 1; grid-row: 1; }
.dice-grid .slider-track .block-image:nth-child(2) { grid-column: 1; grid-row: 2; }
.dice-grid .slider-track .block-image:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.dice-grid .slider-track .block-image:nth-child(4) { grid-column: 3; grid-row: 1; }
.dice-grid .slider-track .block-image:nth-child(5) { grid-column: 3; grid-row: 2; }

/* ─── View toggle button ─────────────────────── */

.view-toggle-btn {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #16973A;
  color: #fec910;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.view-toggle-btn:hover {
  background: #fec910;
  color: #16973A;
}

/* ─── Hero slider mode (desktop toggle) ──────── */

body.hero-slider-mode .split-hero-track {
  display: flex;
  transition: transform 0.4s ease;
}

body.hero-slider-mode .split-hero .header {
  min-width: 100%;
  position: relative;
  clip-path: none !important;
}

body.hero-slider-mode .split-divider {
  display: none;
}

body.hero-slider-mode .hero-btn--prev,
body.hero-slider-mode .hero-btn--next {
  display: flex !important;
  align-items: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 300;
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  padding: 12px 16px;
  font-size: 18px;
  cursor: pointer;
}

body.hero-slider-mode .hero-btn--prev { left: 0; }
body.hero-slider-mode .hero-btn--next { right: 0; }

/* ─── Slider buttons ─────────────────────────── */

.slider-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }
.slider-btn:disabled { opacity: 0.3; cursor: default; }

/* ─── Video iframe ───────────────────────────── */

.video-wrapper {
  width: 95%;
  max-width: 800px;
  margin: 0 auto;
  border: 5px solid #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  overflow: hidden;
}

.video-frame {
  width: 100%;
  max-height: 490px;
  aspect-ratio: 16 / 9;
  display: block;
}

.video-controls {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 28px 20px 40px;
}

.vid-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #fff;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  color: #2e4b12;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.vid-btn:hover {
  background: #fec910;
  color: #1a3a0a;
}

/* ─── Game ───────────────────────────────────── */

#game-container {
  position: relative;
  width: 95%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  background-color: #ff9a9e;
  background-size: cover;
  background-position: center;
  border: 5px solid #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  overflow: hidden;
  cursor: default;
  transition: background 0.5s ease-in-out;
  margin: 0 auto;
}

#game-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, #5d4037, #3e2723);
  border-top: 4px solid #795548;
  z-index: 6;
}

#basket-wrapper {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 450px;
  height: 250px;
  z-index: 5;
  pointer-events: none;
}

#basket {
  width: 100%;
  height: 100%;
  background-image: url('https://static.ipresso.pl/files/NTL9xARMe9at2Z_fxBa5hvoqzHrJ7n5kMK737rG6-Hg./repository/NzYyNkUxUi9Eai9NeGMvUXpBU1NTZz09.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
}

.candy {
  position: absolute;
  width: 100px;
  height: 100px;
  z-index: 7;
}

#score-panel {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.info-box {
  font-size: 20px;
  color: #fff;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  background: rgba(46, 75, 18, 0.7);
  padding: 8px 15px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
}

#game-over {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  z-index: 100;
  padding: 20px;
  box-sizing: border-box;
}

#game-over h1 { font-size: 48px; color: #ff4d4d; margin-bottom: 10px; }
#game-over p  { font-size: 22px; line-height: 1.4; max-width: 500px; }
#game-over a  { color: #76a93b; text-decoration: none; font-weight: bold; }

#restart-btn {
  margin-top: 25px;
  padding: 15px 30px;
  font-size: 20px;
  background: #fff;
  color: #1a1a2e;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}
#restart-btn:hover { background: #76a93b; color: white; }

#mobile-controls {
  display: flex;
  gap: 40px;
  margin-top: 25px;
  justify-content: center;
}

.ctrl-btn {
  width: 85px;
  height: 85px;
  background: #fff;
  border: none;
  border-radius: 50%;
  font-size: 40px;
  color: #2e4b12;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ctrl-btn:active { background: #eee; }

/* ─── Footer ─────────────────────────────────── */

.footer {
  width: 100%;
  background: #111;
  color: #aaa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px 28px;
  gap: 0;
}

.footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  margin-bottom: 24px;
}

.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Arima", sans-serif;
  text-transform: uppercase;
  transform: rotate(-6deg) skewX(-8deg);
  line-height: 1.1;
  color: #fff;
}

.footer-cta-label {
  font-size: 22px;
  font-weight: 400;
}

.footer-cta-heading {
  font-size: 48px;
  font-weight: 700;
}

.footer-arrow {
  width: 64px;
  height: 48px;
  color: #aaa;
  display: block;
  margin: 0 auto;
}

.footer-social {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
}

.footer-copy {
  font-size: 13px;
  color: #555;
}

.social-link {
  color: #aaa;
  transition: color 0.2s;
}

.social-link:hover {
  color: #fff;
}

/* ─── Large screens ─────────────────────────── */

@media (min-width: 1500px) {
  .section-one .text,
  .section-two .text,
  .section-three .text {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1650px) {
  .copy-main {
    font-size: 70px;
  }

  .copy-sub {
    font-size: 42px;
  }

  .section-one .section-block:first-child .block-image {
    max-width: 1000px;
    margin-left: -9%;
    padding-top: 56px;
  }
}

/* ─── Medium screens ─────────────────────────── */

@media (max-width: 1680px) {
  .header-green .header-copy {
    right: calc(50% + 23%);
  }

  .green-deco--ml {
    display: none;
  }
}

@media (max-width: 1520px) {
  .header-green .header-copy {
    right: calc(50% + 25.5%);
  }
}

@media (max-width: 1300px) {
  .copy-main {
    font-size: 46px;
  }

  .copy-sub {
    font-size: 28px;
  }
}

/* ─── Mobile ─────────────────────────────────── */

@media (max-width: 768px) {
  body {
    font-size: 20px;
  }

  .split-hero {
    height: auto;
    cursor: default;
    overflow: hidden;
  }

  .split-hero-track {
    display: flex;
    transition: transform 0.35s ease;
  }

  .split-hero .header {
    position: relative;
    height: auto;
    min-width: 100%;
    flex-shrink: 0;
  }

  .header-yellow {
    clip-path: none !important;
  }

  .split-divider {
    display: none;
  }

  .hero-btn {
    display: flex;
    align-items: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    padding: 12px 16px;
    font-size: 18px;
    cursor: pointer;
  }

  .hero-btn--prev { left: 0; }
  .hero-btn--next { right: 0; }

  .header {
    height: auto;
    padding: 40px 20px;
  }

  .header-content {
    margin-bottom: 32px;
  }

  .header-copy {
    position: static;
    transform: none;
    width: 100%;
    text-align: center;
    opacity: 1 !important;
    animation: none !important;
    margin-top: 24px;
  }

  .copy-main {
    font-size: 40px;
  }

  .copy-sub {
    font-size: 24px;
  }

  .header {
    flex-direction: column;
    justify-content: center;
    gap: 24px;
  }

  .header-content {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    pointer-events: auto;
  }

  .hero-side-images,
  .header-corner-wrap,
  .green-deco {
    display: none;
  }

  .section-block {
    width: 100%;
  }

  .footer {
    padding: 48px 20px 24px;
  }

  .footer-cta-heading {
    font-size: 36px;
  }

  .text {
    padding: 52px 28px;
    line-height: 1.75;
    text-align: left;
  }

  .section-one .section-block:first-child .text,
  .section-one .section-block:last-child .text,
  .section-two .section-block .text {
    padding: 52px 28px;
  }

  .footer-social {
    gap: 20px;
  }

  .slider-btn {
    display: flex;
    align-items: center;
  }

  .image-grid,
  .dice-grid {
    overflow: hidden;
    max-width: 100%;
    padding: 0;
    margin-top: 0;
  }

  .dice-grid {
    margin: 32px 0 0;
    padding-bottom: 0;
  }

  .image-grid .slider-track,
  .dice-grid .slider-track {
    display: flex;
    transition: transform 0.35s ease;
  }

  .image-grid .slider-track .block-image,
  .dice-grid .slider-track .block-image {
    min-width: 82%;
    max-width: 400px;
  }

  /* ─── Section-three tab switcher ── */

  .section-three {
    overflow: hidden;
  }

  .section-tabs {
    display: flex;
    width: 100%;
    background: #111;
  }

  .section-tab {
    flex: 1;
    padding: 16px 10px;
    font-size: 17px;
    font-weight: bold;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
  }

  .section-tab[data-tab="0"]       { background: #16973A; color: #fec910; border-bottom: 4px solid transparent; }
  .section-tab[data-tab="1"]       { background: #fec910; color: #16973A; border-bottom: 4px solid transparent; }
  .section-tab.active              { border-bottom-color: #fff; }
  .section-tab[data-tab="0"]:hover { background: #1db54a; }
  .section-tab[data-tab="1"]:hover { background: #ffe033; }

  .section-three .text { display: none; }

  .section-three-panels {
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .section-three-panels .section-block {
    min-width: 100%;
    flex-shrink: 0;
    padding: 20px 0 0;
    justify-content: flex-start;
    align-items: center;
  }

  .section-three-panels .section-block--video {
    justify-content: center;
    padding: 20px 0;
  }

  .section-block--video .video-controls {
    padding: 28px 20px;
  }

  #game-container {
    aspect-ratio: 9 / 16;
    max-width: 380px;
    width: 88%;
  }

  #basket-wrapper {
    width: min(270px, 75%);
    height: 140px;
  }

  .candy {
    width: 60px;
    height: 60px;
  }

  .info-box {
    font-size: 15px;
    padding: 6px 10px;
  }
}

/* ─── Reduced motion ─────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
