/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --unbounded: 'Unbounded';
  --background-button-primary-default: #fe8100;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  background: #000;
}

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

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

/* ============================================================
   LANDING
   ============================================================ */
.landing {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;

  min-height: 100vh;

  padding-top: 20px;

  background-size: cover;

  font-weight: 500;
  font-style: normal;
  font-family: var(--unbounded), sans-serif;

  color: #fff;
}

@media (min-width: 768px) {
  .landing {
    padding-top: 50px;
  }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  margin-bottom: 24px;

  text-align: center;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hispinLogo {
  width: 117px;
  height: 42px;
  margin-bottom: 10px;
}

.subOffer {
  padding: 10px 24px;
  border-radius: 10px;

  background: linear-gradient(
    90deg,
    #8a1008 0%,
    #e53c3c 48.56%,
    #b72622 61.78%,
    #8a1008 75%,
    #ae1605 100%
  );
  box-shadow: 10px 4px 14px #00000073;

  font-weight: 900;
  font-style: normal;
  font-size: 20px;
  line-height: normal;
  text-transform: uppercase;
}

@media (min-width: 1440px) {
  .subOffer {
    padding: 16px 40px;
    font-size: 24px;
  }
}

.offer {
  margin: 12px 0 18px;

  font-weight: 900;
  font-size: 36px;
}

@media (min-width: 1440px) {
  .offer {
    font-size: 60px;
  }
}

/* ============================================================
   JOKER BG IMAGE
   ============================================================ */
.jokerBG {
  position: relative;
  z-index: 55;
  object-fit: cover;

  width: 205px;
  height: 181px;
  margin-top: -30px;
  margin-bottom: -20px;
  object-position: 90%;
}

@media (min-width: 768px) {
  .jokerBG {
    position: absolute;
    top: 120px;
    left: 0;

    width: 237px;
    height: 209px;
    margin-top: 0;
    margin-bottom: 0;
  }
}

@media (min-width: 1440px) {
  .jokerBG {
    top: unset;
    bottom: 0;
    left: 0;

    width: 370px;
    height: 283px;
  }
}

/* ============================================================
   SLOT WRAPPER
   ============================================================ */
.slotWrapper {
  position: relative;

  width: 697px;
  height: 327px;
  margin-bottom: 1rem;

  background-size: cover;
}

@media (max-width: 768px) {
  .slotWrapper {
    width: 351px;
    height: 191px;

    background-size: 100% 100%;
    background-repeat: no-repeat;
  }
}

@media (min-width: 1440px) {
  .slotWrapper {
    width: 895px;
    height: 420px;
    margin-bottom: 2rem;
  }
}

.slotWrapperHeader {
  position: absolute;
  top: 13px;
  left: 50%;
  z-index: 10;

  font-weight: 800;
  font-style: normal;
  font-size: 14px;
  line-height: normal;
  text-align: center;
  text-transform: uppercase;

  transform: translate(-50%);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .slotWrapperHeader {
    top: 18px;
    font-size: 18px;
  }
}

@media (min-width: 1440px) {
  .slotWrapperHeader {
    top: 22px;
    font-size: 24px;
  }
}

/* ============================================================
   REELS
   ============================================================ */
.reelsContainer {
  display: flex;
  gap: 15px;
  overflow: hidden;

  width: 314px;
  height: 137px;
  margin: 38px 0 0 17px;
  padding: 0;
}

@media (min-width: 768px) {
  .reelsContainer {
    gap: 37px;

    width: 600px;
    height: 242px;
    margin: 60px 0 0 60px;
  }
}

@media (min-width: 1440px) {
  .reelsContainer {
    gap: 48px;

    width: 770px;
    height: 310px;
    margin: 76px 0 0 67px;
  }
}

.reelWrapper {
  position: relative;
  flex: 1;
  overflow: hidden;

  height: 100%;
  border-radius: 8px;
}

.slotItem {
  display: flex;
  flex-direction: column;

  transform: translateY(0);
  will-change: transform;
}

.slotImg {
  line-height: 0;
  flex-shrink: 0;
  height: 140px;
}

@media (min-width: 768px) {
  .slotImg {
    height: 242px;
  }
}

@media (min-width: 1440px) {
  .slotImg {
    height: 310px;
  }
}

.slotImg img {
  height: 100%;
  width: 100%;
  object-fit: fill;
  display: block;
}

/* ============================================================
   SPIN BUTTON
   ============================================================ */
.spinButton {
  padding: 14px 40px;
  border: 1px solid #4beb9e;
  border-radius: 15px;

  background: linear-gradient(
    95deg,
    #00c968 -5.58%,
    #00e775 40.15%,
    #00c968 91.71%
  );
  box-shadow: 0 0 20px #51ffab;

  font-family: var(--unbounded), sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #000;

  cursor: pointer;

  transition: all 0.3s ease;
}

.spinButton:hover:not(:disabled) {
  background: linear-gradient(0deg, #0003, #0003),
    linear-gradient(95deg, #00c968 -5.58%, #00e775 40.15%, #00c968 91.71%);
  box-shadow: 0 6px 20px rgba(0, 255, 153, 0.4);

  transform: translateY(-2px);
}

.spinButton:active:not(:disabled) {
  transform: translateY(0);
}

.spinButton:disabled {
  box-shadow: 0 2px 8px rgba(0, 255, 153, 0.2);
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   WIDGETS CONTAINER (login + lang selector)
   ============================================================ */
.widgetsContainer {
  position: absolute;
  top: 40px;
  right: 40px;
  left: 40px;
  z-index: 5;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .widgetsContainer {
    position: static;
    flex-direction: column;
    justify-content: center;

    padding-top: 220px;
    padding-bottom: 40px;
  }

  .languageContainer {
    position: absolute;
    bottom: 92px;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ============================================================
   REDIRECT / LOGIN BUTTON
   ============================================================ */
.redirectContainer {
  overflow: hidden;

  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(28px);
}

@media (max-width: 768px) {
  .redirectContainer {
    backdrop-filter: blur(6px);
    margin-inline: auto;
  }
}

.redirectButton {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--unbounded), sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .redirectButton {
    padding: 8px 6px;
    font-size: 13px;
  }
}

.redirectButton:hover {
  opacity: 0.85;
}

.redirectArrow {
  flex-shrink: 0;
  color: #00e775;
}

/* ============================================================
   LANGUAGE SELECTOR
   ============================================================ */
.langSelectorWrapper {
  position: relative;
  flex-shrink: 0;
}

.langSelectorBtn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(18px);
  color: #fff;
  font-family: var(--unbounded), sans-serif;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
}

.langChevron {
  font-size: 13px;
  line-height: 1;
  display: inline-block;
  transform: rotate(90deg);
  opacity: 0.7;
}

.langDropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  display: flex;
  flex-direction: column;
  background: #12102a;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
  min-width: 130px;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.langOption {
  padding: 9px 14px;
  font-family: var(--unbounded), sans-serif;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.langOption:hover {
  background: rgba(255, 255, 255, 0.1);
}

.langOption_active {
  background: rgba(0, 201, 104, 0.18);
  color: #00e775;
}

/* ============================================================
   MODAL OVERLAY
   ============================================================ */
.modalOverlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: linear-gradient(0deg, rgba(0,0,0,0.8), rgba(0,0,0,0.8));

  animation: fadeIn 0.3s ease-out;
  backdrop-filter: blur(1px);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  position: relative;

  width: 400px;
  max-width: calc(100% - 20px);
  padding: 30px;
  border: 1px solid #00c968;
  border-radius: 20px;

  background: linear-gradient(196deg, rgba(138, 5, 221, 0.1) -6.49%, #000 56.64%), #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(76, 175, 80, 0.3);

  animation: modalSlideIn 0.4s ease-out;

  color: #fff;
  font-family: var(--unbounded), sans-serif;
  font-weight: 500;
}

@media (min-width: 768px) {
  .modal {
    padding: 55px 52px;
  }
}

.modal_second {
  width: 450px;
  padding: 34px 16px;
}

@media (min-width: 768px) {
  .modal_second {
    padding: 30px 30px 35px;
  }
}

/* ============================================================
   REGISTRATION MODAL
   ============================================================ */
.modal_reg {
  width: 460px;
  padding: 36px 28px 28px;
}

@media (min-width: 768px) {
  .modal_reg {
    padding: 44px 36px 36px;
  }
}

/* Decoration overrides for reg modal */
.regRuby {
  right: -55px;
  bottom: unset;
  top: -60px;
  width: 130px;
  height: 130px;
  transform: rotate(20deg);
}

.regLeaf {
  top: unset;
  left: unset;
  right: unset;
  bottom: -40px;
  left: -30px;
  width: 90px;
  height: 90px;
}

/* Bonus grid inside reg modal — slightly compact */
.regBonusGrid {
  margin-bottom: 14px;
}

.regBonusGrid .winningItem {
  height: 90px;
}

/* Promo text */
.regPromoText {
  font-family: var(--unbounded), sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 18px;
  padding: 0 4px;
}

@media (min-width: 768px) {
  .regPromoText {
    font-size: 12px;
  }
}

/* Divider between offer and form */
.regPromoText::before {
  content: '';
  display: block;
  width: 60%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 auto 16px;
}

/* Form fields */
.reg-fg {
  position: relative;
  margin-bottom: 10px;
}

.regInput {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-family: var(--unbounded), sans-serif;
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}

.regInput::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.regInput:focus {
  border-color: #00c968;
  background: rgba(0, 201, 104, 0.05);
}

.reg-input-err {
  border-color: #ef5350 !important;
}

.reg-field-error {
  color: #ef5350;
  font-size: 10px;
  margin-top: 3px;
  font-family: var(--unbounded), sans-serif;
}

.reg-pw-wrap {
  position: relative;
}

.regPwToggle {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.regPwToggle:hover {
  color: rgba(255, 255, 255, 0.8);
}

.regGlobalError {
  background: rgba(239, 83, 80, 0.1);
  border: 1px solid rgba(239, 83, 80, 0.35);
  border-radius: 8px;
  padding: 9px 12px;
  color: #ef5350;
  font-family: var(--unbounded), sans-serif;
  font-size: 11px;
  margin-bottom: 10px;
  text-align: center;
}

/* Submit button */
.regSubmitBtn {
  margin-top: 14px;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* intl-tel-input overrides */
.modal_reg .iti {
  width: 100%;
}

.modal_reg .iti__flag-container {
  display: none !important;
}

/* ============================================================
   MODAL DECORATIONS
   ============================================================ */
.ruby {
  position: absolute;
  right: -60px;
  bottom: -70px;
  z-index: 1;

  width: 140px;
  height: 140px;

  object-fit: contain;
  background-size: 100% 100%;
  background-repeat: no-repeat;

  transform: rotate(-24.963deg);
  pointer-events: none;
}

@media (min-width: 768px) {
  .ruby {
    right: -77px;
    bottom: -100px;

    width: 202px;
    height: 202px;
  }
}

.modal_second .ruby {
  top: -66px;
  right: unset;
  bottom: unset;
  left: -41px;

  width: 148px;
  height: 148px;
  transform: none;
}

@media (min-width: 768px) {
  .modal_second .ruby {
    top: -79px;
    left: -93px;

    width: 202px;
    height: 202px;
  }
}

.leaf {
  position: absolute;
  top: -45px;
  left: -30px;
  z-index: 1;

  width: 70px;
  height: 70px;

  object-fit: contain;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

@media (min-width: 768px) {
  .leaf {
    top: -78px;
    left: -75px;

    width: 152px;
    height: 152px;
  }
}

.modal_second .leaf {
  top: -50px;
  right: -15px;
  left: unset;

  width: 100px;
  height: 100px;
}

@media (min-width: 768px) {
  .modal_second .leaf {
    top: -51px;
    right: -50px;

    width: 117px;
    height: 118px;
  }
}

/* ============================================================
   MODAL CONTENT
   ============================================================ */
.modalContent {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* ============================================================
   FIRST MODAL
   ============================================================ */
.bonusHeader {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;

  margin-bottom: 10px;
}

.cloverIcon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
}

.modalTitle {
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: #fff;
}

@media (min-width: 1440px) {
  .modalTitle {
    font-size: 19px;
  }
}

.bonusBox {
  margin: 0 auto;
}

.bonusText {
  background: linear-gradient(180deg, #00c968 30.68%, #fff 80.68%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  font-weight: 800;
  font-size: 50px;
  line-height: 1;
}

@media (min-width: 1440px) {
  .bonusText {
    font-size: 72px;
  }
}

/* ============================================================
   PLAY / CLAIM BUTTON
   ============================================================ */
.playButton {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;

  width: 100%;
  height: 50px;
  margin-top: 10px;
  border: 1px solid #4beb9e;
  border-radius: 15px;

  background: linear-gradient(
    95deg,
    #00c968 -5.58%,
    #00e775 40.15%,
    #00c968 91.71%
  );
  box-shadow: 0 0 20px #51ffab;

  font-family: var(--unbounded), sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #000;

  cursor: pointer;

  transition: 0.3s;
  transition-property: background-color;
}

@media (min-width: 1440px) {
  .playButton {
    height: 62px;
    margin-top: 25px;

    font-weight: 700;
    font-size: 26px;
  }
}

.playButton:hover {
  background: linear-gradient(0deg, #0003, #0003),
    linear-gradient(95deg, #00c968 -5.58%, #00e775 40.15%, #00c968 91.71%);
}

/* ============================================================
   SECOND MODAL
   ============================================================ */
.congratsText {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
}

.youWonText {
  margin: 10px 0 20px;

  font-weight: 900;
  font-style: normal;
  font-size: 31px;
  line-height: normal;
  text-transform: uppercase;
}

@media (min-width: 1440px) {
  .youWonText {
    font-size: 41px;
  }
}

.winningsGrid {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.winningItem {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  justify-content: center;

  height: 120px;
  margin: 0;
  border: 1px solid #1eff92;
  border-radius: 20px;

  background: #010100;
  box-shadow: 0 0 46px rgba(0, 255, 102, 0.25);
}

@media (min-width: 1440px) {
  .winningItem {
    height: 101px;
  }
}

.winningItem_FS {
  border: 1px solid var(--background-button-primary-default);
  box-shadow: 0 0 46px rgba(254, 129, 0, 0.25);
}

.winningItem_FS .winningBadge {
  background-color: var(--background-button-primary-default);
}

.winningBadge {
  position: absolute;
  top: -1px;
  left: -1px;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 35px;
  height: 35px;
  border-radius: 20px 0 15px;

  background-color: #00c968;
}

.winningBadge img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.winningValue {
  font-weight: 800;
  font-size: 24px;
}

@media (min-width: 1440px) {
  .winningValue {
    font-size: 31px;
  }
}

.winningLabel {
  font-size: 12px;
  color: #fff;
  text-align: center;
  opacity: 0.7;
}

@media (min-width: 1440px) {
  .winningLabel {
    font-size: 16px;
  }
}

/* ============================================================
   LOADER OVERLAY
   ============================================================ */
.loaderOverlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  z-index: 1100;
}

.loaderLogo {
  width: 160px;
  height: auto;
  animation: logoReveal 1.4s ease forwards;
}

@media (min-width: 768px) {
  .loaderLogo {
    width: 220px;
  }
}

@media (min-width: 1440px) {
  .loaderLogo {
    width: 300px;
  }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes logoReveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
