/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lilita+One&family=Montserrat:ital,wght@0,300;0,400;0,600;0,700;0,900;1,900&family=Inter:wght@400;500;600;700&display=swap');

/* Import Komika Axis Font */
@font-face {
  font-family: 'Komika Axis';
  font-style: normal;
  font-weight: 400;
  src: local('Komika Axis'), url('https://fonts.cdnfonts.com/s/251/KOMIKAX_.woff') format('woff');
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #0b071e;
  font-family: 'Inter', sans-serif;
  color: #ffffff;
  user-select: none;
  -webkit-user-select: none;
}

/* Fullscreen Viewport Wrapper */
.game-viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #0b071e;
  background-image: url('../images/background_1920.avif');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Virtual Viewport Container (16:9) */
.scene-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1920px;
  height: 1080px;
  transform-origin: center center;
  transform: translate(-50%, -50%) scale(1);
  overflow: hidden;
  opacity: 0;
  animation: scene-fadein 0.8s ease-out forwards;
}

@keyframes scene-fadein {
  to { opacity: 1; }
}

/* Background/Foreground Layer Images */
.layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  pointer-events: none;
}

.z-1 { z-index: 1; }  /* Main Background */
.z-2 { z-index: 2; }  /* Back Left Sparks */
.z-3 { z-index: 3; }  /* Back Right Sparks */
.z-4 { z-index: 4; }  /* Back Center cash (behind wheel) */
/* z-5: Wheel Container */
.z-7 { z-index: 7; }  /* MrBeast */
.z-8 { z-index: 8; }  /* Front Left cash */
.z-9 { z-index: 9; }  /* Front Right cash + logo */
.z-10 { z-index: 10; } /* Flying money */

/* Top Header Bar UI */
.header-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 110px;
  padding: 34px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

/* 1win Signature Logo */
.logo {
  cursor: pointer;
  text-decoration: none;
  display: block;
  width: 118px;
  height: auto;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* Language Selector */
.lang-selector {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-selector:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.flag-icon {
  width: 20px;
  height: 14px;
  background-size: cover;
  border-radius: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-account {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.header-account span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 600;
}

.header-account a {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.header-go-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: #0b071e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  line-height: 0.8;
  font-weight: 900;
  text-decoration: none;
  padding-bottom: 4px;
}

/* Main Promotions Title */
.main-title {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: 'Komika Axis', sans-serif;
  font-size: clamp(20px, 3.2vw, 52px);
  font-weight: 700;
  font-style: normal;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 4px 0 #1c0e35, 0 8px 0 #000, 0 0 20px rgba(0,195,255,0.4);
  letter-spacing: 2px;
  z-index: 100;
  width: 100%;
  max-width: 980px;
  pointer-events: none;
  text-transform: uppercase;
}

/* Wheel Container positioning inside scene */
.wheel-container {
  position: absolute;
  left: 1000px;
  top: 650px;
  width: 690px;
  height: 690px;
  transform: translate(-50%, -50%);
  z-index: 5;
}

/* Glowing Rotating Lightning behind wheel */
.lightning-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 880px;
  height: 860px;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: rotate-lightning 30s linear infinite;
  opacity: 0.5;
}

@keyframes rotate-lightning {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Spin pointer indicator */
.wheel-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 84px;
  background: linear-gradient(180deg, #ffffff 0%, #5fedff 30%, #00b0e6 100%);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  z-index: 10;
  filter: drop-shadow(0px 6px 8px rgba(0, 0, 0, 0.6));
  transform-origin: top center;
  transition: transform 0.1s ease;
}

.wheel-pointer.wobbling {
  animation: pointer-wobble 0.15s infinite alternate;
}

@keyframes pointer-wobble {
  0% { transform: translateX(-50%) rotate(-8deg); }
  100% { transform: translateX(-50%) rotate(8deg); }
}

/* Static Wheel Rim */
.wheel-rim {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 28px solid #ff60bd;
  box-shadow:
    0 0 34px rgba(255, 63, 177, 0.85),
    0 0 72px rgba(255, 63, 177, 0.55),
    inset 0 0 28px rgba(255, 255, 255, 0.22),
    inset 0 0 42px rgba(0, 211, 255, 0.28);
  background: transparent;
  z-index: 4;
  pointer-events: none;
}

/* Bulbs on rim — hidden to match reference */
.bulb {
  display: none;
}

/* Spinning Wheel Inner Core */
.wheel-inner {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  z-index: 2;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.6);
  transition: transform 6s cubic-bezier(0.12, 0.8, 0.15, 1);
  box-shadow:
    inset 0 0 20px rgba(255,255,255,0.22),
    inset 0 0 34px rgba(0,0,0,0.18);
  cursor: pointer;
}

/* Center Cap containing MrBeast logo */
.wheel-center-cap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36%;
  height: 36%;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  z-index: 8;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease;
}

.wheel-center-cap:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.center-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
  animation: logo-pulse 2.5s infinite ease-in-out;
}

@keyframes logo-pulse {
  0% {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(95, 237, 255, 0.8)) drop-shadow(0 0 5px rgba(255, 0, 127, 0.5));
    transform: scale(1.03);
  }
  100% {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
  }
}

/* Tries text overlay — blends onto the paper in MrBeast's pocket */
.tries-badge {
  position: absolute;
  left: 418px;
  top: 770px;
  width: 200px;
  height: 70px;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: rotate(-22deg);
  transform-origin: center center;
  box-shadow: none;
  z-index: 15;
  cursor: pointer;
  transition: transform 0.2s ease;
  padding: 0;
}

.tries-badge:hover {
  transform: rotate(-22deg) scale(1.05);
}

.tries-badge:active {
  transform: rotate(-22deg) scale(0.98);
}

.tries-text-1 {
  font-family: 'Komika Axis', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #111111;
  letter-spacing: 1.5px;
  line-height: 1;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.tries-text-2 {
  font-family: 'Komika Axis', sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: #ff0080;
  line-height: 1;
}

/* Win Sticker Badges (Rounded rectangles like reference) */
.win-sticker {
  position: absolute;
  z-index: 6;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  font-family: 'Lilita One', sans-serif;
  text-align: center;
  box-sizing: border-box;
  border-radius: 18px;
  padding: 14px 28px;
  filter: drop-shadow(0px 6px 15px rgba(0,0,0,0.4));
}

.win-sticker.left {
  left: 460px;
  top: 320px;
  width: 280px;
  height: 120px;
  background: linear-gradient(135deg, #9b59f0 0%, #7a2dcc 50%, #6820b0 100%);
  transform: scale(0.5) rotate(-8deg);
  box-shadow: 0 6px 20px rgba(122, 45, 204, 0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}

.win-sticker.right {
  left: 1270px;
  top: 330px;
  width: 250px;
  height: 110px;
  background: linear-gradient(135deg, #ff5eaa 0%, #ff007f 50%, #e0006e 100%);
  transform: scale(0.5) rotate(6deg);
  box-shadow: 0 6px 20px rgba(255, 0, 127, 0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}

.win-sticker.active {
  opacity: 1;
}

.win-sticker.left.active {
  animation: floatLeftSticker 3s ease-in-out infinite;
}

.win-sticker.right.active {
  animation: floatRightSticker 3s ease-in-out infinite;
}

@keyframes floatLeftSticker {
  0% { transform: scale(1) rotate(-8deg) translateY(0); }
  50% { transform: scale(1.03) rotate(-7deg) translateY(-6px); }
  100% { transform: scale(1) rotate(-8deg) translateY(0); }
}

@keyframes floatRightSticker {
  0% { transform: scale(1) rotate(6deg) translateY(0); }
  50% { transform: scale(1.03) rotate(7deg) translateY(-6px); }
  100% { transform: scale(1) rotate(6deg) translateY(0); }
}

.sticker-sub {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  margin-bottom: 2px;
  line-height: 1;
}

.sticker-main {
  font-size: 52px;
  font-weight: 400;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1;
  letter-spacing: 1px;
}

.wheel-side-brand-svg {
  position: absolute;
  left: 1000px;
  top: 650px;
  width: 690px;
  height: 690px;
  transform: translate(-50%, -50%);
  z-index: 12;
  overflow: visible;
  pointer-events: none;
  transform-origin: 50% 50%;
}

.wheel-side-brand-text {
  font-family: 'Komika Axis', sans-serif;
  font-size: 76px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0;
  fill: #ffffff;
  stroke: #0dcfff;
  stroke-width: 8px;
  paint-order: stroke fill;
  filter: drop-shadow(0 0 16px rgba(0, 211, 255, 0.45)) drop-shadow(3px 3px 0 rgba(0, 83, 142, 0.72));
}

/* Footer redirects scaling inside 16:9 scene-container */
.footer-center {
  position: absolute;
  left: 1027px;
  top: 920px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 100;
  pointer-events: auto;
}

.footer-msg-1 {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin-bottom: 2px;
}

.footer-msg-2 {
  font-family: 'Lilita One', sans-serif;
  font-size: 24px;
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  transition: color 0.2s ease;
}

.footer-msg-2:hover {
  color: #00d3ff;
}

.footer-copyright {
  position: absolute;
  left: 1027px;
  top: 990px;
  transform: translateX(-50%);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  z-index: 100;
  text-align: center;
}

/* Modals Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 5, 21, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* White Clean Modal Card Design */
.popup-content {
  background: #ffffff;
  border-radius: 32px;
  width: 92%;
  max-width: 540px;
  padding: 55px 24px 24px 24px;
  text-align: center;
  position: relative;
  overflow: visible;
  color: #000000;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  transform: scale(0.65);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.25);
}

/* Popup close button */
.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #000000;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 220;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 6px 18px rgba(11,7,30,0.12);
}

.popup-close:hover { transform: scale(1.06); box-shadow: 0 8px 22px rgba(11,7,30,0.14); }

.popup-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.popup-overlay.active .popup-content {
  transform: scale(1);
}

/* Cash pile sticking out from the top center */
.modal-cash-pile {
  position: absolute;
  top: -96px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 118px;
  background-image: url('../images/modal_cash.avif');
  background-size: contain;
  background-position: center bottom;
  background-repeat: no-repeat;
  z-index: 210;
  filter: drop-shadow(0px 10px 16px rgba(0,0,0,0.35));
}

/* YOU WON title */
.popup-title {
  font-family: 'Lilita One', sans-serif;
  font-size: 46px;
  color: #121212;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  line-height: 1;
  margin-bottom: 14px;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  mix-blend-mode: normal;
}

.popup-content--win {
  padding-top: 60px;
  padding-bottom: 28px;
}

.win-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 18px;
  width: 100%;
  padding: 0 8px;
}

.win-card-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: -12px;
  position: relative;
}

.won-badges-container {
  display: none;
}

.badge-panther {
  width: 96px;
  height: 96px;
  object-fit: contain;
  opacity: 1;
  filter: drop-shadow(0 10px 26px rgba(0,0,0,0.22));
}

.badge-panther.left {
  margin-right: -14px;
  transform: translateY(8px) rotate(-12deg);
}

.badge-panther.right {
  margin-left: -14px;
  transform: translateY(8px) scaleX(-1) rotate(12deg);
}

.won-ticket {
  width: 200px;
  height: 125px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  font-family: 'Lilita One', sans-serif;
  text-align: center;
  box-sizing: border-box;
}

.won-ticket.purple {
  background-image: url('../images/bonus_1.avif');
  transform: rotate(-5deg);
  padding-bottom: 22px; /* Center text */
}

.won-ticket.pink {
  background-image: url('../images/bonus_2.avif');
  transform: rotate(5deg);
  padding-bottom: 14px; /* Center text */
}

.ticket-sub {
  font-size: 10px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
  -webkit-text-stroke: 1px #0b071e;
  text-shadow: 0 2px 0 #0b071e, 0 0 8px rgba(255, 255, 255, 0.3);
  transform: skewX(-10deg);
  margin-bottom: 2px;
}

.ticket-main {
  font-size: 32px;
  font-weight: 900;
  font-style: italic;
  color: #ffffff;
  -webkit-text-stroke: 1.8px #0b071e;
  text-shadow: 
    0 2px 0 #0b071e, 
    0 4px 0 #0b071e, 
    0 5px 8px rgba(0, 0, 0, 0.8);
  transform: skewX(-10deg) scale(1.03);
  line-height: 0.9;
}

.won-ticket.pink .ticket-main {
  font-size: 35px; /* Correctly match size for pink main badge */
}

/* Custom phone selector */
.custom-phone-wrapper {
  display: flex;
  background: #eef0f2;
  border-radius: 12px;
  padding: 4px;
  align-items: center;
  position: relative;
}

.flag-select-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  font-weight: bold;
  font-size: 14px;
  color: #000000;
  user-select: none;
}

.flag-select-btn img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 1px;
}

.dropdown-arrow {
  font-size: 10px;
  color: #555;
}

.flag-dropdown-list {
  position: absolute;
  top: 105%;
  left: 0;
  width: 100%;
  max-height: 180px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  display: none;
}

.flag-dropdown-list.active {
  display: block;
}

.flag-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 14px;
  color: #000000;
  text-align: left;
}

.flag-item:hover {
  background: #f1f3f5;
}

.flag-item img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 1px;
}

.custom-phone-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  color: #000000;
}

/* Forms layout */
.reg-form,
.login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

#login-phone-section,
#login-email-section {
  width: 100%;
}

/* Other inputs */
.reg-form input[type="email"],
.reg-form input[type="password"],
.login-form input[type="email"],
.login-form input[type="password"] {
  width: 100%;
  background: #eef0f2;
  border: 1px solid transparent;
  padding: 14px 18px;
  border-radius: 12px;
  color: #000000;
  font-size: 15px;
  font-weight: 500;
  outline: none;
}

.reg-form input:focus,
.login-form input:focus {
  background: #eef0f2;
  border-color: #00d3ff;
}

/* Password eye container */
.password-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-toggle-icon {
  position: absolute;
  right: 18px;
  cursor: pointer;
  color: #666;
  font-size: 16px;
  user-select: none;
}

/* Currency promocode row */
.currency-promocode-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.custom-select-wrapper {
  position: relative;
  background: #eef0f2;
  border-radius: 12px;
}

.custom-select-trigger {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #000000;
}

.custom-options {
  position: absolute;
  top: 105%;
  left: 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
  z-index: 999;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  display: none;
  max-height: 180px;
  overflow-y: auto;
}

.custom-select-wrapper.active .custom-options {
  display: block;
}

.custom-option {
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 14px;
  color: #000000;
  text-align: left;
}

.custom-option:hover {
  background: #f1f3f5;
}

.custom-option.selected {
  background: #eef0f2;
  font-weight: bold;
}

.add-promo-link {
  color: #007bff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.add-promo-link:hover {
  text-decoration: underline;
}

/* Promocode slider */
.promocode-wrapper {
  position: relative;
  display: none;
  align-items: center;
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.promocode-wrapper input {
  width: 100%;
  background: #eef0f2;
  border: 1.5px dashed #00d3ff;
  padding: 14px 18px;
  border-radius: 12px;
  color: #000000;
  font-size: 15px;
  font-weight: 500;
  outline: none;
}

.close-promo {
  position: absolute;
  right: 18px;
  cursor: pointer;
  color: #888;
  font-size: 20px;
  font-weight: bold;
}

/* Capsule Buttons style */
.cta-btn {
  color: #ffffff;
  font-family: 'Lilita One', sans-serif;
  font-size: 26px;
  font-style: italic;
  padding: 14px 30px;
  border-radius: 50px;
  border: none;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
}

.cta-btn:hover {
  transform: translateY(-2px);
}

.cta-btn:active {
  transform: translateY(1px);
}

.cta-btn.claim-bonus-btn {
  background: linear-gradient(180deg, #ff66b2 0%, #ff007f 100%);
  box-shadow: 0 6px 15px rgba(255, 0, 127, 0.3);
}

.cta-btn.claim-bonus-btn:hover {
  background: linear-gradient(180deg, #ff80bf 0%, #ff1a8c 100%);
  box-shadow: 0 8px 20px rgba(255, 0, 127, 0.4);
}

#popup-register .reg-form > *:not(.claim-bonus-btn):not(.form-error) {
  display: none;
}

/* Log in footer link */
.modal-login-link {
  font-size: 14px;
  color: #666;
  margin-top: 15px;
  text-align: center;
}

.modal-login-link a {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
}

.modal-login-link a:hover {
  text-decoration: underline;
}

.form-error {
  display: none;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-top: 10px;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Confetti overlay */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 250;
}

/* Won Ticket Card (Modal) */
.won-ticket-card {
  position: relative;
  width: 172px;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
}

.won-ticket-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.32));
}

.won-ticket-card .ticket-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  text-align: left;
  pointer-events: none;
  padding: 16px 12px 0;
}

.ticket-copy--purple {
  align-items: flex-start;
  padding-left: 16px;
  padding-top: 15px;
}

.ticket-copy--pink {
  align-items: flex-end;
  padding-right: 36px;
  padding-top: 16px;
  padding-left: 0;
}

.ticket-main-text {
  font-family: 'Lilita One', sans-serif;
  font-size: 46px;
  letter-spacing: -1.2px;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 4px 16px rgba(0,0,0,0.45);
  font-weight: 900;
}

.ticket-secondary-text {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.32);
  margin-top: 1px;
}

.won-ticket-card--purple {
  transform: rotate(-8deg) translateY(2px);
  z-index: 1;
  margin-right: -26px;
}

.won-ticket-card--pink {
  transform: rotate(6deg) translateY(-2px);
  z-index: 2;
  margin-left: -26px;
}

@media (max-width: 768px), (max-height: 500px) {
  .won-ticket-card {
    width: 136px;
    height: 88px;
  }

  .ticket-main-text {
    font-size: 28px;
  }
}

/* Login Tabs styling */
.login-tabs-container {
  display: flex;
  background: #eef0f2;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
}

.login-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #555555;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-tab-btn.active {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.forgot-password-row {
  text-align: right;
  margin-bottom: 18px;
  width: 100%;
}

.forgot-pass-link {
  color: #007bff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.forgot-pass-link:hover {
  text-decoration: underline;
}

.login-submit-btn {
  background: linear-gradient(180deg, #28a745 0%, #218838 100%);
  box-shadow: 0 6px 15px rgba(40, 167, 69, 0.3);
}

.login-submit-btn:hover {
  background: linear-gradient(180deg, #2dbc4e 0%, #259a40 100%);
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

/* Social sign in section */
.social-login-title {
  font-size: 13px;
  color: #777777;
  margin-top: 25px;
  margin-bottom: 12px;
  position: relative;
  font-weight: 500;
}

.social-login-title::before,
.social-login-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 25%;
  height: 1px;
  background-color: #e5e5e5;
}

.social-login-title::before {
  left: 0;
}

.social-login-title::after {
  right: 0;
}

.social-icons-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.social-icon-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: transparent;
  transition: transform 0.2s ease;
  border: none;
  cursor: pointer;
  padding: 0;
}

.social-icon-btn:hover {
  transform: translateY(-2px);
}

.social-icon-btn svg {
  width: 36px;
  height: 36px;
  display: block;
  color: #2c2c2c;
}

.social-icon-btn svg path:first-child {
  fill: #eaeaea;
  transition: fill 0.2s ease;
}

.social-icon-btn:hover svg path:first-child {
  fill: #e2e2e2;
}

.modal-register-link {
  font-size: 14px;
  color: #666;
  margin-top: 15px;
  text-align: center;
}

.modal-register-link a {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
}

.modal-register-link a:hover {
  text-decoration: underline;
}

/* Tablet & mobile responsive layout (desktop uses JS scale above 1024px) */
@media (max-width: 1024px) {
  html, body {
    overflow-y: auto !important;
    background: transparent !important;
  }
  
  .game-viewport {
    width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    overflow-y: auto !important;
    display: block !important;
    background-color: #0b071e !important;
    background-image: url('../images/background_1920.avif') !important;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
  }
  
  .scene-container {
    position: relative !important;
    width: 100% !important;
    height: calc(100vh - 60px) !important;
    min-height: 800px !important;
    transform: none !important;
    left: 0 !important;
    top: 0 !important;
    display: block !important;
    overflow: hidden !important;
    background: transparent !important;
  }
  
  .layer {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    object-fit: cover !important;
  }
  
  .layer.z-7 {
    object-position: 70% center !important;
  }
  
  .header-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 60px !important;
    padding: 15px 20px !important;
    background: rgba(11, 7, 30, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 150 !important;
  }
  
  .logo {
    font-size: 24px !important;
  }
  
  .lang-selector {
    padding: 6px 12px !important;
    font-size: 12px !important;
  }
  
  .main-title {
    position: absolute !important;
    top: 90px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-size: clamp(18px, 5.5vw, 32px) !important;
    width: 90% !important;
    max-width: 360px !important;
    z-index: 100 !important;
    line-height: 1.1 !important;
  }
  
  .wheel-container {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -38%) !important;
    width: 310px !important;
    height: 310px !important;
    z-index: 90 !important;
  }
  
  .wheel-container svg {
    width: 100% !important;
    height: 100% !important;
  }
  
  .lightning-circle {
    width: 410px !important;
    height: 395px !important;
  }
  
  .wheel-pointer {
    width: 42px !important;
    height: 55px !important;
    top: -12px !important;
  }
  
  /* Badges positioning on mobile (under the wheel) */
  .win-sticker.left {
    left: calc(50% - 150px) !important;
    top: 500px !important;
    width: 145px !important;
    height: 90px !important;
    transform: scale(0.5) rotate(-15deg) !important;
    opacity: 0 !important;
    padding-bottom: 14px !important;
    z-index: 100 !important;
  }
  
  .win-sticker.right {
    left: calc(50% + 5px) !important;
    top: 510px !important;
    width: 145px !important;
    height: 90px !important;
    transform: scale(0.5) rotate(15deg) !important;
    opacity: 0 !important;
    padding-bottom: 6px !important;
    z-index: 100 !important;
  }
  
  .win-sticker.left.active {
    transform: scale(1) rotate(-15deg) !important;
    opacity: 1 !important;
    animation: floatLeftStickerMobile 3s ease-in-out infinite !important;
  }
  
  .win-sticker.right.active {
    transform: scale(1) rotate(15deg) !important;
    opacity: 1 !important;
    animation: floatRightStickerMobile 3s ease-in-out infinite !important;
  }
  
  .sticker-sub {
    font-size: 8px !important;
    -webkit-text-stroke: 0.5px #0b071e !important;
    margin-bottom: 1px !important;
  }
  
  .sticker-main {
    font-size: 26px !important;
    -webkit-text-stroke: 1px #0b071e !important;
  }
  
  /* Tries Badge on Mobile */
  .tries-badge {
    position: absolute !important;
    left: 50% !important;
    top: 615px !important;
    transform: translateX(-50%) skewX(-10deg) !important;
    width: 170px !important;
    height: 44px !important;
    background: #ffffff !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
    z-index: 100 !important;
  }
  
  .tries-text-1 {
    font-size: 14px !important;
  }
  
  .tries-text-2 {
    font-size: 16px !important;
  }
  
  /* Footer elements on mobile */
  .footer-center {
    position: absolute !important;
    left: 50% !important;
    top: 685px !important;
    transform: translateX(-50%) !important;
    z-index: 100 !important;
    width: 100% !important;
    text-align: center !important;
  }
  
  .footer-msg-1 {
    font-size: 11px !important;
  }
  
  .footer-msg-2 {
    font-size: 18px !important;
  }
  
  .footer-copyright {
    position: absolute !important;
    left: 50% !important;
    top: 755px !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    font-size: 9px !important;
    z-index: 100 !important;
    text-align: center !important;
  }
  
  /* Popup Responsiveness */
  .popup-content {
    width: 92% !important;
    padding: 35px 15px 20px 15px !important;
    border-radius: 20px !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  
  .popup-title {
    font-size: 28px !important;
    margin-bottom: 12px !important;
  }
  
  .modal-cash-pile {
    width: 180px !important;
    height: 80px !important;
    top: -60px !important;
  }
  
  .won-badges-container {
    gap: 8px !important;
    margin-bottom: 15px !important;
  }
  
  .badge-panther {
    width: 45px !important;
    height: 45px !important;
  }
  
  .won-ticket {
    width: 110px !important;
    height: 70px !important;
  }
  
  .won-ticket.purple {
    padding-bottom: 14px !important;
  }
  
  .won-ticket.pink {
    padding-bottom: 8px !important;
  }
  
  .ticket-sub {
    font-size: 7px !important;
    -webkit-text-stroke: 0.5px #0b071e !important;
    margin-bottom: 1px !important;
  }
  
  .ticket-main {
    font-size: 22px !important;
    -webkit-text-stroke: 1.2px #0b071e !important;
  }
  
  .won-ticket.pink .ticket-main {
    font-size: 24px !important;
  }
  
  .reg-form input,
  .login-form input,
  .custom-phone-wrapper,
  .currency-promocode-row,
  .promocode-wrapper {
    margin-bottom: 10px !important;
  }
  
  .reg-form button[type="submit"],
  .login-form button[type="submit"] {
    padding: 12px !important;
    font-size: 16px !important;
  }
}

@keyframes floatLeftStickerMobile {
  0% { transform: scale(1) rotate(-15deg) translateY(0); }
  50% { transform: scale(1.03) rotate(-14deg) translateY(-5px); }
  100% { transform: scale(1) rotate(-15deg) translateY(0); }
}

@keyframes floatRightStickerMobile {
  0% { transform: scale(1) rotate(15deg) translateY(0); }
  50% { transform: scale(1.03) rotate(16deg) translateY(-5px); }
  100% { transform: scale(1) rotate(15deg) translateY(0); }
}

/* Tablet: larger wheel, fuller scene, better vertical balance */
@media (min-width: 601px) and (max-width: 1024px) {
  .game-viewport {
    min-height: 100dvh !important;
  }

  .scene-container {
    height: 100dvh !important;
    min-height: 920px !important;
  }

  .header-bar {
    height: 68px !important;
    padding: 18px 28px !important;
  }

  .logo {
    width: 130px !important;
  }

  .main-title {
    top: 82px !important;
    font-size: clamp(26px, 3.8vw, 44px) !important;
    max-width: 560px !important;
    letter-spacing: 1.5px !important;
  }

  .layer.z-7 {
    object-position: center 72% !important;
  }

  .layer.z-8,
  .layer.z-9 {
    object-position: center bottom !important;
  }

  .wheel-container {
    top: 47% !important;
    width: clamp(400px, 52vw, 520px) !important;
    height: clamp(400px, 52vw, 520px) !important;
    transform: translate(-50%, -50%) !important;
  }

  .lightning-circle {
    width: clamp(520px, 68vw, 660px) !important;
    height: clamp(500px, 66vw, 640px) !important;
  }

  .wheel-pointer {
    width: 54px !important;
    height: 70px !important;
    top: -14px !important;
  }

  .win-sticker.left {
    left: calc(50% - 195px) !important;
    top: 58% !important;
    width: 175px !important;
    height: 108px !important;
  }

  .win-sticker.right {
    left: calc(50% + 12px) !important;
    top: 59% !important;
    width: 165px !important;
    height: 100px !important;
  }

  .sticker-sub {
    font-size: 10px !important;
  }

  .sticker-main {
    font-size: 32px !important;
  }

  .tries-badge {
    top: 70% !important;
    width: 210px !important;
    height: 54px !important;
    transform: translateX(-50%) skewX(-8deg) !important;
    border-radius: 12px !important;
  }

  .tries-text-1 {
    font-size: 16px !important;
  }

  .tries-text-2 {
    font-size: 20px !important;
  }

  .footer-center {
    top: 78% !important;
  }

  .footer-msg-1 {
    font-size: 13px !important;
  }

  .footer-msg-2 {
    font-size: 22px !important;
  }

  .footer-copyright {
    top: 86% !important;
    font-size: 10px !important;
  }
}

/* Phone: keep original compact wheel size */
@media (max-width: 600px) {
  .wheel-container {
    top: 50% !important;
    width: 310px !important;
    height: 310px !important;
    transform: translate(-50%, -38%) !important;
  }

  .lightning-circle {
    width: 410px !important;
    height: 395px !important;
  }

  .wheel-pointer {
    width: 42px !important;
    height: 55px !important;
    top: -12px !important;
  }

  .win-sticker.left {
    left: calc(50% - 150px) !important;
    top: 500px !important;
    width: 145px !important;
    height: 90px !important;
  }

  .win-sticker.right {
    top: 510px !important;
    width: 145px !important;
    height: 90px !important;
  }

  .tries-badge {
    top: 615px !important;
    width: 170px !important;
    height: 44px !important;
  }

  .footer-center {
    top: 685px !important;
  }

  .footer-copyright {
    top: 755px !important;
  }
}

/* Desktop-only tries badge alignment on MrBeast pocket */
@media (min-width: 1025px) and (min-height: 601px) {
  .tries-badge {
    left: 368px !important;
    top: 828px !important;
    transform: rotate(-35deg) !important;
  }
  .tries-badge:hover {
    transform: scale(1.05) rotate(-35deg) !important;
  }
  .tries-badge:active {
    transform: scale(0.98) rotate(-35deg) !important;
  }
}
