/* ===========================
   RESET & BASE
   =========================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f5f5f5;
  color: #000;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  font: inherit;
  background: none;
}

ul {
  list-style: none;
}

/* Accessibility utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===========================
   HEADER
   =========================== */

.header {
  background: #fff;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 10px 0;
}

.header__logo {
  width: 123px;
  height: 60px;
}

.header__list {
  display: flex;
  gap: 74px;
}

.header__link {
  font-size: 18px;
  font-weight: 500;
  line-height: 27px;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.header__link:hover {
  opacity: 0.7;
}

/* ===========================
   HERO
   =========================== */

.hero {
  position: relative;
  background: url(../images/hero-bg.png) no-repeat center / cover;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  min-height: 980px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 660px;
  text-align: center;
  margin-bottom: 25px;
}

.hero__title {
  font-size: 39px;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  margin-bottom: 15px;
}

.hero__subtitle {
  font-size: 18px;
  font-weight: 500;
  line-height: 25px;
  color: #fff;
}

/* Shared button base */
.hero__button,
.spin__button,
.popup__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 80px;
  background: #d83b3b;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 27px;
  text-transform: uppercase;
  border-radius: 100px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transition: background 0.2s;
}

.hero__button:hover,
.spin__button:hover,
.popup__submit:hover {
  background: #c03232;
}

.hero__button {
  margin-top: 60px;
}

.hero__bubble {
  max-width: 413px;
  align-self: center;
  margin-top: 22px;
  padding: 44px 20px 20px;
  background: url(../images/hero-bubble-bg.svg) no-repeat center / cover;
}

.hero__bubble-text {
  font-family: 'Poor Story', cursive;
  font-size: 22px;
  font-weight: 400;
  line-height: 25px;
  color: #fff;
}

.hero__decor {
  position: absolute;
  z-index: 3;
}

.hero__decor--top {
  top: 214px;
  right: 0;
  width: 231px;
  height: 235px;
}

.hero__decor--bottom {
  top: 449px;
  right: 163px;
  width: 182px;
  height: 159px;
}

/* Hero inline description (visible only on mobile) */
.hero__description {
  display: none;
}

/* Desktop: hide mobile-only elements */
.spin__sidebar-ava {
  display: none;
}

.spin__bubble-bg {
  display: none;
}

/* ===========================
   DESCRIPTION
   =========================== */

.description {
  position: relative;
  z-index: 3;
  margin-top: -70px;
  margin-bottom: -65px;
}

.description__inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}

.description__text {
  padding: 30px 110px;
  font-size: 18px;
  font-weight: 500;
  line-height: 25px;
  color: #fff;
  text-align: center;
  border-radius: 20px;
  box-shadow:
    0 6px 12px 0 rgba(0, 0, 0, 0.1),
    0 23px 23px 0 rgba(0, 0, 0, 0.09),
    0 51px 31px 0 rgba(0, 0, 0, 0.05),
    0 91px 36px 0 rgba(0, 0, 0, 0.01),
    0 142px 40px 0 rgba(0, 0, 0, 0);
  background: radial-gradient(151.94% 50% at 50% 50%, #7c8e48 0%, #60732d 100%);
}

.description__decor {
  position: absolute;
  top: 50%;
  right: -75px;
  transform: translateY(-50%);
  width: 166px;
  height: 140px;
}

/* ===========================
   HOUSES
   =========================== */

.houses {
  padding: 180px 0 175px;
  background: url(../images/houses-bg.png) no-repeat center / cover;
}

.houses__inner {
  max-width: 1160px;
  margin: 0 auto;
}

.houses__title,
.prizes__title {
  font-size: 39px;
  font-weight: 700;
  line-height: 58.5px;
  text-align: center;
  margin-bottom: 70px;
}

.houses__title {
  color: #fff;
}

.houses__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.houses__image {
  width: 100%;
}

/* ===========================
   PRIZES
   =========================== */

.prizes {
  padding: 120px 0 130px;
  background: url(../images/prizes-bg.png) no-repeat center / cover;
}

.prizes__inner {
  max-width: 1160px;
  margin: 0 auto;
}

.prizes__title {
  color: #000;
  margin-bottom: 60px;
}

.prizes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 20px;
}

.prizes__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  /* padding: 30px 40px; */
  background: #11253d;
  border-radius: 30px;
  padding-bottom: 30px;
}

.prizes__card-image {
  width: 100%;
}

.prizes__card-text {
  font-size: 18px;
  font-weight: 500;
  line-height: 25px;
  color: #fff;
  text-align: center;
  padding-left: 21px;
  padding-right: 21px;
}

/* ===========================
   SPIN
   =========================== */

.spin {
  position: relative;
  padding: 78px 0 80px;
  overflow: hidden;
  background: url(../images/spin-bg.png) no-repeat center top;
  background-size: 100% auto;
}

.spin__inner {
  max-width: 1160px;
  margin: 0 auto;
}

.spin__title {
  font-size: 45px;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  text-align: center;
  margin-bottom: 60px;
}

.spin__layout {
  position: relative;
  margin-top: 228px;
}

.spin__sidebar {
  position: absolute;
  top: 0;
  width: 280px;
  z-index: 0;
}

.spin__sidebar--left {
  left: 0;
}

.spin__sidebar--right {
  right: 0;
}

.spin__sidebar-image {
  width: 100%;
}

.spin__center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 69%;
  margin: 0 auto -304px;
  transform: translateY(-304px);
}

.spin__bubble {
  position: absolute;
  top: -160px;
  left: 19%;
  transform: translateX(-50%);
  z-index: 5;
  max-width: 393px;
  padding: 12px 13px 42px 20px;
  background: url(../images/spin-bubble-bg.svg) no-repeat center / cover;
  transition: top 0.4s, left 0.4s, right 0.4s, transform 0.4s;
}

.spin__bubble--result {
  top: -45px;
  left: auto;
  right: 0;
  transform: scaleX(-1);
  padding: 21px 18px 52px 18px;
}

.spin__bubble--result .spin__bubble-text {
  transform: scaleX(-1);
}

.spin__bubble--warning {
  top: -14px;
  left: auto;
  right: 52px;
  transform: none;
  padding: 19px 18px 45px 18px;
  background: url(../images/spin-bubble-warning.svg) no-repeat center / cover;
}

.spin__bubble-text {
  font-size: 12px;
  font-weight: 300;
  line-height: 18px;
  color: #fff;
}

.spin__wheel {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 753 / 911;
  margin: 0 auto;
}

.spin__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: -111px;
  transform: translateY(-111px);
  position: relative;
  z-index: 10;
}

.spin__code-link {
  font-size: 15px;
  font-weight: 400;
  line-height: 25px;
  color: #fff;
  text-decoration: underline;
  transition: opacity 0.2s;
}

.spin__code-link:hover {
  opacity: 0.7;
}

.spin__choose-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  padding: 15px 30px;
  width: 213px;
  border: 2px solid #fff;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  transition: background 0.2s;
}

.spin__choose-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* ===========================
   FOOTER
   =========================== */

.footer {
  background: #0d2036;
  margin-top: -10px;
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 50px 0;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__logo {
  width: 206px;
  height: 100px;
}

.footer__copyright {
  font-size: 18px;
  font-weight: 500;
  line-height: 25px;
  color: #fff;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__link {
  font-size: 22px;
  font-weight: 300;
  line-height: 33px;
  color: #fff;
  text-decoration: underline;
  transition: opacity 0.2s;
}

.footer__link:hover {
  opacity: 0.7;
}

/* ===========================
   POPUP
   =========================== */

.popup {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.popup.is-active {
  display: flex;
}

.popup__overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
}

.popup__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  width: 500px;
  padding: 20px 20px 30px;
  border-radius: 20px;
  box-shadow:
    4px 4px 20px 0 rgba(0, 0, 0, 0.15),
    4px 4px 70px 0 rgba(0, 0, 0, 0.2);
  background: radial-gradient(63.45% 60.59% at 50.1% 50.17%, #357da7 0%, #153f60 100%);
}

.popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.popup__close:hover {
  opacity: 1;
}

.popup__title {
  font-size: 39px;
  font-weight: 700;
  line-height: 58.5px;
  color: #fff;
  text-align: center;
}

.popup__images {
  display: flex;
  gap: 30px;
}

.popup__image {
  width: 160px;
  height: 160px;
  border-radius: 20px;
  object-fit: cover;
}

.popup__message {
  font-size: 18px;
  font-weight: 500;
  line-height: 25px;
  color: #fff;
  text-align: center;
}

.popup__note {
  font-size: 15px;
  font-weight: 300;
  line-height: 22.5px;
  color: #fff;
  text-align: center;
}

.popup__options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-self: stretch;
}

.popup__option {
  font-size: 15px;
  font-weight: 300;
  line-height: 25px;
  color: #fff;
}

.popup__option strong {
  font-weight: 600;
}

.popup__option-link {
  color: #fff;
  text-decoration: underline;
}

.popup__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding: 15px 80px;
  background: #fff;
  color: #000;
  font-size: 18px;
  font-weight: 500;
  line-height: 27px;
  text-transform: uppercase;
  border-radius: 100px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transition: background 0.2s;
}

.popup__button:hover {
  background: #e6e6e6;
}

.popup__link {
  font-size: 18px;
  font-weight: 500;
  line-height: 27px;
  color: #fff;
  text-decoration: underline;
  transition: opacity 0.2s;
}

.popup__link:hover {
  opacity: 0.7;
}

.popup__form {
  display: flex;
  align-self: stretch;
  gap: 10px;
}

.popup__input {
  flex: 1;
  min-width: 0;
  padding: 10px 25px;
  background: #f5f5f5;
  border: none;
  border-radius: 100px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 25px;
  color: #000;
}

.popup__input::placeholder {
  color: #929292;
}

.popup__submit {
  flex-shrink: 0;
  padding: 10px 40px;
  font-size: 18px;
  line-height: 25px;
  text-transform: none;
}

.popup__disclaimer {
  font-size: 12px;
  font-weight: 300;
  line-height: 18px;
  color: #fff;
  text-align: center;
}

.popup__disclaimer-link {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

/* ===========================
   PAGE CONTENT (for page.php, single.php, 404.php)
   =========================== */

.page-content {
  background: #f5f5f5;
}

.page-content__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 20px;
}

.page-content__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.4;
  color: #000;
  margin-bottom: 30px;
}

.page-content__meta {
  font-size: 14px;
  font-weight: 300;
  color: #666;
  margin-bottom: 30px;
}

.page-content__body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: #333;
}

.page-content__body p {
  margin-bottom: 1.5em;
}

.page-content__body a {
  color: #d83b3b;
  text-decoration: underline;
}

.page-content__body a:hover {
  color: #c03232;
}

/* ===========================
   BURGER MENU
   =========================== */

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.header__burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: #000;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.header__burger.is-active .header__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger.is-active .header__burger-line:nth-child(2) {
  opacity: 0;
}

.header__burger.is-active .header__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header__burger.is-active .header__burger-line {
  background: #fff;
}

.header__overlay {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background: rgba(13, 32, 54, 0.97);
  opacity: 0;
  transition: opacity 0.3s;
}

.header__overlay.is-active {
  display: flex;
  opacity: 1;
}

.header__overlay-logo {
  width: 160px;
  height: auto;
}

.header__overlay-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.header__overlay-link {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
  transition: opacity 0.2s;
}

.header__overlay-link:hover {
  opacity: 0.7;
}

/* ===========================
   CHARACTER POPUPS (spin sidebar on mobile)
   =========================== */

.popup--character .popup__content {
  background: radial-gradient(63.45% 60.59% at 50.1% 50.17%, #357da7 0%, #153f60 100%);
}

.popup__character-image {
  max-width: 200px;
  width: 100%;
  height: auto;
}

.popup__character-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #fff;
  text-align: center;
}

/* ===========================
   MEDIA: TABLET LARGE (max-width: 1200px)
   =========================== */

@media (max-width: 1200px) {

  .header__inner,
  .hero__inner,
  .description__inner,
  .houses__inner,
  .prizes__inner,
  .spin__inner,
  .footer__inner {
    max-width: 100%;
    padding-left: 40px;
    padding-right: 40px;
  }

  .header__list {
    gap: 30px;
  }

  .hero__content {
    max-width: 500px;
  }

  .hero__bubble {
    max-width: 350px;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__decor--top {
    width: 170px;
    height: auto;
  }

  .hero__decor--bottom {
    width: 130px;
    height: auto;
    right: 40px;
  }

  .description__inner {
    padding: 0 40px;
  }

  .description__text {
    padding: 30px 60px;
  }

  .houses__title,
  .prizes__title {
    font-size: 32px;
  }

  .houses__grid,
  .prizes__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spin__title {
    font-size: 36px;
  }

  .spin__sidebar {
    width: 200px;
  }

  .spin__wheel {
    max-width: 560px;
  }
}

/* ===========================
   MEDIA: TABLET (max-width: 1024px)
   =========================== */

@media (max-width: 1024px) {

  /* Sticky header */
  .header {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  /* Show burger, hide desktop nav */
  .header__burger {
    display: flex;
  }

  .header__nav {
    display: none;
  }

  .header__inner {
    padding: 8px 20px;
  }

  .header__logo {
    width: 100px;
    height: auto;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__title {
    font-size: 28px;
    line-height: 1.4;
  }

  .hero__inner {
    min-height: auto;
    padding: 80px 20px 60px;
  }

  .houses__grid,
  .prizes__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .spin__sidebar {
    width: 170px;
  }

  .spin__title {
    font-size: 32px;
  }

  .spin__wheel {
    max-width: 480px;
  }
}

/* ===========================
   MEDIA: TABLET SMALL (max-width: 992px)
   =========================== */

@media (max-width: 992px) {

  .hero__inner {
    flex-direction: column-reverse;
    gap: 30px;
    padding: 80px 20px 60px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .hero__button {
    padding: 12px 50px;
    font-size: 16px;
    margin-top: 40px;
  }

  .hero__bubble {
    max-width: 100%;
    align-self: stretch;
  }

  .hero__decor--top {
    width: 130px;
    top: 20px;
  }

  .hero__decor--bottom {
    width: 100px;
    height: auto;
    right: 20px;
  }

  .description__text {
    padding: 25px 40px;
    font-size: 16px;
  }

  .houses {
    padding: 100px 0 100px;
  }

  .prizes {
    padding: 80px 0 80px;
  }

  .spin__sidebar {
    width: 140px;
  }

  .spin__wheel {
    max-width: 420px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    padding: 30px 20px;
  }

  .footer__brand {
    align-items: center;
  }

  .footer__links {
    align-items: center;
  }
}

/* ===========================
   MEDIA: MOBILE LANDSCAPE (max-width: 768px)
   =========================== */

@media (max-width: 768px) {

  .header__inner {
    padding: 8px 15px;
  }

  /* ---------- HERO: mobile layout ---------- */

  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    background-image: url(../images/hero-bg-mobile.png);
  }

  .hero__bubble,
  .hero__decor--top {
    display: none;
  }

  .hero__decor--bottom {
    display: block;
    width: 150px;
    height: auto;
    top: 50%;
    bottom: auto;
    right: -17px;
    transform: translateY(120%);
  }

  .hero__inner {
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    justify-content: center;
    padding: 0 40px 180px;
    gap: 20px;
  }

  .hero__content {
    max-width: 400px;
  }

  .hero__title {
    font-size: 26px;
    line-height: 36px;
  }

  .hero__subtitle {
    font-size: 16px;
    line-height: 25px;
  }

  .hero__button {
    margin-top: 50px;
    padding: 15px 60px;
    font-size: 16px;
  }

  /* Description: hide standalone, show inside hero */
  .description {
    display: none;
  }

  .hero__description {
    display: block;
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 7;
    padding: 0 20px;
  }

  .hero__description-inner {
    position: relative;
  }

  .hero__description-text {
    font-size: 13px;
    font-weight: 500;
    line-height: 19px;
    color: #fff;
    text-align: center;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 6px 12px 0 rgba(0, 0, 0, 0.1);
    background: radial-gradient(151.94% 50% at 50% 50%, #7c8e48 0%, #60732d 100%);
  }

  .hero__description-decor {
    position: absolute;
    top: 50%;
    right: -50px;
    transform: translateY(-50%);
    width: 120px;
    height: auto;
  }

  .description__decor {
    display: none;
  }

  /* ---------- SPIN: mobile layout ---------- */

  .spin {
    padding: 60px 0 50px;
    background-image: url(../images/spin-bg-mobile.png);
    background-size: cover;
  }

  .spin::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url(../images/spin-bg-mobile.png) no-repeat center top;
    background-size: cover;
    filter: blur(2px);
    z-index: 0;
  }

  .spin__inner {
    position: relative;
    z-index: 1;
    padding: 0;
  }

  .spin__title {
    font-size: 28px;
    line-height: 42px;
    margin-bottom: 30px;
  }

  .spin__sidebar {
    display: none;
  }

  .spin__sidebar--left {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 125px;
    left: 40px;
    width: 85px;
    height: 85px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(180deg, #3ab2bf, #11253d);
    box-shadow: 0 6px 12px 0 rgba(0, 0, 0, 0.1);
    z-index: 7;
  }

  .spin__sidebar--left .spin__sidebar-image {
    display: none;
  }

  .spin__sidebar--left .spin__sidebar-ava {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .spin__layout {
    margin-top: 0;
    position: relative;
  }

  .spin__center {
    width: 100%;
    transform: none;
    margin: 0 auto;
    padding-top: 120px;
  }

  .spin__wheel {
    max-width: 100%;
  }

  .spin__actions {
    transform: none;
    margin-bottom: 0;
    margin-top: 20px;
  }

  .spin__bubble {
    position: absolute;
    top: 0;
    left: 165px;
    width: 280px;
    max-width: calc(100% - 130px);
    margin-top: 0;
    padding: 0;
    background: none;
    transform: none;
    z-index: 10;
  }

  .spin__bubble-bg {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .spin__bubble-text {
    position: relative;
    z-index: 1;
    padding: 10px 14px 35px 18px;
    font-size: 11px;
    line-height: 16px;
  }

  .spin__bubble--result {
    top: 0;
    left: 115px;
    right: auto;
    transform: none;
    padding: 0;
    background: none;
  }

  .spin__bubble--result .spin__bubble-text {
    transform: none;
  }

  .spin__bubble--warning {
    top: 0;
    left: 115px;
    right: auto;
    transform: none;
    padding: 0;
    background: none;
  }

  .spin__button {
    padding: 15px 50px;
    font-size: 16px;
  }

  .spin__code-link {
    font-size: 15px;
  }

  /* Footer: vertical */
  .footer__inner {
    gap: 25px;
    padding: 30px 15px;
  }

  .footer__link {
    font-size: 18px;
  }

  /* Popups: centered modal (not fullscreen) */
  .popup__content {
    width: calc(100% - 40px);
    max-width: 440px;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    border-radius: 20px;
    padding: 40px 20px 30px;
    gap: 20px;
  }

  .popup__title {
    font-size: 28px;
    line-height: 1.3;
  }

  .popup__form {
    flex-direction: column;
  }

  .popup__input {
    width: 100%;
  }

  .popup__submit {
    width: 100%;
    justify-content: center;
  }

  .popup__button {
    padding: 14px 40px;
  }

  .popup__images {
    gap: 15px;
  }

  .popup__image {
    width: 130px;
    height: 130px;
  }

  .popup--character .popup__content {
    gap: 30px;
  }

  .popup__character-image {
    max-width: 250px;
  }

  .popup__character-text {
    font-size: 15px;
  }
}

/* ===========================
   MEDIA: MOBILE LARGE (max-width: 576px)
   =========================== */

@media (max-width: 576px) {

  /* ---------- HERO ---------- */

  .hero__inner {
    padding: 0 36px 170px;
  }

  .hero__content {
    max-width: 350px;
  }

  .hero__title {
    font-size: 24px;
    line-height: 34px;
  }

  .hero__subtitle {
    font-size: 15px;
  }

  .hero__button {
    padding: 15px 50px;
    font-size: 15px;
    margin-top: 55px;
  }

  .hero__decor--bottom {
    width: 140px;
    transform: translateY(150%);
  }

  .hero__description {
    bottom: 15px;
    padding: 0 15px;
  }

  .hero__description-text {
    font-size: 12px;
    line-height: 18px;
    padding: 20px;
  }

  .hero__description-decor {
    width: 110px;
    right: -45px;
  }

  /* ---------- SPIN ---------- */

  .spin {
    padding: 50px 0 40px;
  }

  .spin__title {
    font-size: 26px;
    line-height: 39px;
    margin-bottom: 25px;
  }

  .spin__sidebar--left {
    width: 78px;
    height: 78px;
  }

  .spin__bubble {
    left: 138px;
    width: 260px;
    max-width: calc(100% - 120px);
  }

  .spin__center {
    padding-top: 160px;
  }

  .spin__wheel {
    max-width: 300px;
  }

  .spin__button {
    padding: 15px 45px;
    font-size: 15px;
  }

  .spin__code-link {
    font-size: 15px;
  }

  .houses__title,
  .prizes__title {
    font-size: 24px;
    margin-bottom: 25px;
  }

  /* Houses: horizontal scroll-snap */
  .houses__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 15px;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.4) rgba(255,255,255,0.1);
  }

  .houses__grid::-webkit-scrollbar {
    height: 4px;
  }

  .houses__grid::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
  }

  .houses__grid::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.4);
    border-radius: 4px;
  }

  .houses__card {
    flex-shrink: 0;
    width: 75vw;
    scroll-snap-align: start;
  }

  /* Swipe hint */
  .houses__inner,
  .prizes__inner {
    position: relative;
  }

  .houses__inner::after,
  .prizes__inner::after {
    content: '\1F448';
    position: absolute;
    bottom: 22px;
    right: 20px;
    font-size: 28px;
    opacity: 0;
    animation: swipeHint 2s ease-in-out 0.5s 2 forwards;
    pointer-events: none;
    z-index: 5;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  }

  /* Prizes: horizontal scroll-snap */
  .prizes__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 15px;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.4) rgba(255,255,255,0.1);
  }

  .prizes__grid::-webkit-scrollbar {
    height: 4px;
  }

  .prizes__grid::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
  }

  .prizes__grid::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.4);
    border-radius: 4px;
  }

  .prizes__card {
    flex-shrink: 0;
    width: 80vw;
    scroll-snap-align: start;
  }

  .prizes__card-text {
    font-size: 14px;
  }

  .spin__wheel {
    max-width: 100%;
  }

  .spin__title {
    font-size: 24px;
  }

  .footer__logo {
    width: 160px;
    height: auto;
  }

  .footer__copyright {
    font-size: 15px;
  }

  .footer__link {
    font-size: 17px;
  }

  .popup__title {
    font-size: 24px;
  }

  .popup__message {
    font-size: 15px;
  }

  .popup__note {
    font-size: 13px;
  }

  .popup__image {
    width: 110px;
    height: 110px;
  }

  .page-content__inner {
    padding: 50px 15px;
  }

  .page-content__title {
    font-size: 28px;
  }
}

/* ===========================
   MEDIA: MOBILE (max-width: 480px)
   =========================== */

@media (max-width: 480px) {

  /* ---------- HERO ---------- */

  .hero__inner {
    padding: 0 36px 160px;
  }

  .hero__content {
    max-width: 317px;
  }

  .hero__title {
    font-size: 20px;
    line-height: 30px;
  }

  .hero__subtitle {
    font-size: 14px;
    line-height: 25px;
  }

  .hero__button {
    padding: 15px 40px;
    font-size: 14px;
    margin-top: 60px;
  }

  /* Decor ghost: fine-tune position */
  .hero__decor--bottom {
    width: 133px;
    height: 112px;
    transform: translateY(182%);
  }

  /* ---------- DESCRIPTION ---------- */

  .hero__description {
    bottom: 13px;
    padding: 0 15px;
  }

  .hero__description-text {
    font-size: 11px;
    line-height: 16.5px;
    padding: 20px;
  }

  .hero__description-decor {
    width: 100px;
    right: -40px;
  }

  /* ---------- HOUSES / PRIZES ---------- */

  .houses {
    padding: 50px 0 50px;
  }

  .houses__title,
  .prizes__title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .houses__card {
    width: 80vw;
  }

  .prizes__card {
    width: 85vw;
    padding: 15px;
    border-radius: 20px;
  }

  .prizes {
    padding: 50px 0 50px;
  }

  /* ---------- SPIN ---------- */

  .spin {
    padding: 40px 0 35px;
  }

  .spin__title {
    font-size: 25px;
    line-height: 37.5px;
    margin-bottom: 20px;
  }

  .spin__sidebar--left {
    width: 72px;
    height: 72px;
  }

  .spin__bubble {
    left: 100px;
    width: 100%;
    max-width: calc(100% - 115px);
  }

  .spin__bubble-text {
    font-size: 10px;
    line-height: 15px;
    padding: 8px 12px 30px 16px;
  }

  .spin__center {
    padding-top: 160px;
  }


  .spin__button {
    padding: 15px 40px;
    font-size: 14px;
  }

  .spin__code-link {
    font-size: 15px;
  }

  /* ---------- FOOTER ---------- */

  .footer__logo {
    width: 140px;
  }

  .footer__copyright {
    font-size: 14px;
  }

  .footer__link {
    font-size: 16px;
  }

  /* ---------- POPUPS ---------- */

  .popup__content {
    padding: 40px 15px 25px;
  }

  .popup__title {
    font-size: 22px;
  }

  .popup__image {
    width: 100px;
    height: 100px;
  }

  .popup__button {
    padding: 12px 30px;
    font-size: 15px;
  }

  .popup__character-image {
    max-width: 180px;
  }

  .page-content__title {
    font-size: 24px;
  }
}

/* ===========================
   MEDIA: MOBILE SMALL (max-width: 375px)
   =========================== */

@media (max-width: 375px) {

  .header__inner {
    padding: 6px 10px;
  }

  .header__logo {
    width: 90px;
  }

  .hero__inner {
    padding: 0 30px 140px;
  }

  .hero__title {
    font-size: 18px;
    line-height: 28px;
  }

  .hero__subtitle {
    font-size: 13px;
  }

  .hero__button {
    padding: 12px 30px;
    font-size: 13px;
    margin-top: 45px;
  }

  .hero__decor--bottom {
    width: 110px;
    height: auto;
  }

  .hero__description-text {
    padding: 15px;
    font-size: 11px;
    line-height: 16px;
  }

  .houses__title,
  .prizes__title {
    font-size: 20px;
  }

  .houses__card {
    width: 85vw;
  }

  .prizes__card {
    width: 88vw;
  }

  .spin__title {
    font-size: 22px;
    line-height: 33px;
  }

  .spin__sidebar--left {
    width: 60px;
    height: 60px;
  }

  .spin__sidebar--left .spin__sidebar-image {
    width: 40px;
  }

  .spin__bubble {
    left: 85px;
    width: 220px;
    max-width: calc(100% - 95px);
  }


  .spin__button {
    padding: 10px 30px;
    font-size: 13px;
  }

  .spin__code-link {
    font-size: 13px;
  }

  .popup__content {
    padding: 35px 12px 20px;
    gap: 15px;
  }

  .popup__title {
    font-size: 20px;
  }

  .popup__message {
    font-size: 14px;
  }

  .popup__image {
    width: 90px;
    height: 90px;
  }

  .popup__character-image {
    max-width: 160px;
  }

  .popup__character-text {
    font-size: 14px;
  }

  .page-content__title {
    font-size: 22px;
  }

  .page-content__body {
    font-size: 14px;
  }
}

/* ===========================
   MEDIA: MOBILE TINY (max-width: 320px)
   =========================== */

@media (max-width: 320px) {

  .header__logo {
    width: 80px;
  }

  .hero__inner {
    padding: 0 25px 130px;
  }

  .hero__title {
    font-size: 16px;
    line-height: 24px;
  }

  .hero__subtitle {
    font-size: 12px;
  }

  .hero__button {
    padding: 10px 25px;
    font-size: 12px;
    margin-top: 35px;
  }

  .hero__decor--bottom {
    width: 90px;
  }

  .hero__description-text {
    font-size: 10px;
    line-height: 15px;
    padding: 12px;
  }

  .houses__title,
  .prizes__title {
    font-size: 18px;
  }

  .houses__card {
    width: 88vw;
  }

  .prizes__card {
    width: 90vw;
  }

  .spin__title {
    font-size: 20px;
    line-height: 30px;
  }

  .spin__sidebar--left {
    width: 50px;
    height: 50px;
  }

  .spin__sidebar--left .spin__sidebar-image {
    width: 34px;
  }

  .spin__bubble {
    left: 75px;
    width: 190px;
    max-width: calc(100% - 85px);
  }

  .spin__wheel {
    max-width: 210px;
  }

  .spin__button {
    padding: 8px 25px;
    font-size: 12px;
  }

  .footer__logo {
    width: 120px;
  }

  .footer__copyright {
    font-size: 12px;
  }

  .footer__link {
    font-size: 14px;
  }

  .popup__title {
    font-size: 18px;
  }

  .popup__message {
    font-size: 13px;
  }

  .popup__image {
    width: 80px;
    height: 80px;
  }

  .popup__character-image {
    max-width: 140px;
  }

  .page-content__title {
    font-size: 20px;
  }
}

/* ===========================
   iOS / TOUCH FIXES
   =========================== */

@supports (-webkit-touch-callout: none) {
  /* Burger overlay: fill viewport on iOS Safari */
  .header__overlay.is-active {
    height: -webkit-fill-available;
  }

  body.no-scroll {
    position: fixed;
    width: 100%;
  }
}

.popup__input,
.popup__submit,
.hero__button,
.spin__button {
  -webkit-appearance: none;
}

/* Swipe hint animation */
@keyframes swipeHint {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  15% {
    opacity: 0.9;
  }
  50% {
    opacity: 0.9;
    transform: translateX(-50px);
  }
  85% {
    opacity: 0.9;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(0);
  }
}