/* ==========================================================================
   BASE STYLES & VARIABLES
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'poppins';
  src: url('./game/fonts/poppins_bold.ttf') format('truetype');
}


:root {
  --primary: #2869fe;
  --purple: #0f063d;
  --card-background: #271f52;
  --button-background: #BF230A;
  --primary-light: #ecfdf5;
  --primary-dark: #5387fe;
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --neutral-50: #f9fafb;
  --neutral-100: #f3f4f6;
  --neutral-200: #e5e7eb;
  --neutral-300: #d1d5db;
  --neutral-600: #fff;
  --neutral-700: #000;
  --neutral-900: #111827;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 10px 13px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-lg: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--neutral-900);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: #1e3a8a; /* blue (adjust to match your image) */
  background: url('photo/background.png') center/cover no-repeat;
}

/* arial rounded bold mt -logo, instant rewards, play  , anti pasto play*/
body.modal-open {
  overflow: hidden;
}

/* ==========================================================================
   PAGE LAYOUT
   ========================================================================== */

.page {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  padding: 20px;
}

.page.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

/* ==========================================================================
   HOME PAGE (FORMS)
   ========================================================================== */

.form-container,
#successPage .container {
  font-family: 'poppins';
  background: white;
  border-radius: var(--radius-lg);
  padding: 30px;
  animation: slideUp 0.6s ease-out;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.form-header {
  text-align: center;
  margin-bottom: 30px;
}

.form-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--neutral-900);
}

.form-header p {
  font-size: 16px;
  color: rgba(18, 25, 39, 0.6);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--neutral-900);
}

.form-label .required {
  color: #ef4444;
}

.input-wrapper {
  position: relative;
  display: flex;
  /* align-items: center; */
  flex-direction: column;
  /* flex-wrap: wrap; */
}

.input-icon {
  position: absolute;
  left: 15px;
  color: #d1d5db;
  font-size: 20px;
  pointer-events: none;
}

.input-icon i {
  color: rgba(49, 57, 79, 0.6);
  padding: 12px 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
  width: 100%;
  padding: 14px 20px 14px 45px;
  border-radius: 16px;
  font-size: 16px;
  border: 1px solid rgba(18, 25, 39, 0.12);
  color: #121927;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: rgba(18, 25, 39, 0.5);
}

.form-input.error {
  border-color: #ef4444;
}

.form-error {
  font-size: 12px;
  width: 100%;
  color: #ef4444;
  margin-top: 4px;
  transform: translateY(-4px);
  transition: 0.2s ease;
  /* display: none; */
}

.form-error.show {
  display: block;
  transform: translateY(0);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.tf-switch-check {
  position: relative;
  width: 17px;
  height: 14px;
  -webkit-appearance: none;
  appearance: none;
  background-color: rgba(18, 25, 39, 0.2);
  border-radius: 4px;
  transition: 0.2s;
  margin-right: 0;

  &::before {
    content: "";
    border-radius: 2px;
    width: 7px;
    height: 7px;
    position: absolute;
    top: 3px;
    left: 3px;
    background: #fff;
    transition: 0.2s;
  }

  &:checked {
    background: #2869fe;

    &::before {
      left: 6px;
    }
  }

  &.lg {
    width: 40px;
    height: 30px;

    &::before {
      width: 20px;
      height: 20px;
      left: 10px;
    }

    &:checked {
      &::before {
        left: 10px;
      }
    }
  }
}

.checkbox-input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
}

.checkbox-label {
  font-size: 16px;
  color: #000;
  cursor: pointer;
  flex: 1;
}

.checkbox-label a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

.btn {
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================================
   MODAL DIALOGS
   ========================================================================== */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: 30px;
  max-height: 80vh;
  overflow-y: auto;
  max-width: 500px;
  width: 100%;
  animation: slideUp 0.3s ease-out;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h2 {
  font-size: 24px;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--neutral-600);
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--neutral-900);
}

.modal-body {
  font-size: 14px;
  line-height: 1.8;
  color: var(--neutral-700);
  margin-bottom: 24px;
}

.modal-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 8px;
  color: var(--neutral-900);
}

.modal-body ul {
  margin-left: 20px;
  margin-bottom: 12px;
}

.modal-body li {
  margin-bottom: 6px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-secondary {
  background: var(--neutral-100);
  color: var(--neutral-900);
  border: 1px solid var(--neutral-200);
  width: auto;
  flex: 1;
}

.btn-secondary i {
  font-size: 1.5rem
}

.btn-secondary:hover {
  background: var(--neutral-200);
  transform: translateY(-2px);
}

/* ==========================================================================
   GAME PAGE
   ========================================================================== */
#gamePage {
  position: relative;
}



#gamePage.active {
  padding: 0;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#game-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#game-container canvas {
  margin: 0 !important;
  background: transparent !important;
  /* border: 2px solid red; */
}

/* ==========================================================================
   SUCCESS PAGE
   ========================================================================== */

.success-header {
  text-align: center;
  margin-bottom: 20px;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border: 3px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 32px;
  color: var(--primary);
  /* animation */
  transform: scale(0);
  animation: popIn 0.4s ease forwards;
}

@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  70% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(1);
  }
}

.prize-card {
  background: linear-gradient(135deg, #01192a 0%, #012a46 100%);
  border-radius: var(--radius-lg);
  padding: 20px 10px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-lg);
  color: white;
}

.prize-emoji {
  font-size: 48px;
  margin-bottom: 16px;
}

.prize-name {
  font-size: 36px;
  font-weight: 800;
}

.details-card {
  background: #f3f3f3;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--neutral-100);
}

.detail-value {
  font-weight: 600;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.share-instruction {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff8d6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

#successPage .container {
  background: transparent;
  padding: 0;
  max-width: 760px;
}

.gift-poster {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border-radius: 30px;
  padding: 0;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 220, 120, 0.25), transparent 18%),
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #8b0f92 0%, #4d0b6b 44%, #22002d 100%);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.gift-poster::before,
.gift-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gift-poster::before {
  background:
    radial-gradient(circle at 18% 48%, rgba(255, 214, 102, 0.85) 0 1px, transparent 2px),
    radial-gradient(circle at 28% 40%, rgba(255, 214, 102, 0.65) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 32%, rgba(255, 214, 102, 0.85) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 70%, rgba(255, 214, 102, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 61% 16%, rgba(255, 214, 102, 0.6) 0 1px, transparent 2px);
  opacity: 0.75;
}

.gift-poster::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.04));
  mix-blend-mode: screen;
}

.gift-poster__frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  height: 100%;
  padding: 26px;
  box-sizing: border-box;
  text-align: center;
}

.gift-poster__top {
  padding-top: 10px;
}

.gift-poster__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(45, 0, 57, 0.45);
  border: 1px solid rgba(255, 214, 102, 0.35);
  color: #fff4c7;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(255, 200, 64, 0.2);
}

.gift-poster__title {
  margin-top: 10px;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1;
  letter-spacing: 0.05em;
  color: #ffe88a;
  text-transform: uppercase;
  word-break: break-word;
  text-shadow:
    0 0 10px rgba(255, 210, 100, 0.75),
    0 0 28px rgba(255, 160, 0, 0.35);
}

.gift-poster__number {
  margin-top: 4px;
  font-size: clamp(16px, 3vw, 22px);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 244, 211, 0.9);
}

.gift-poster__claimed-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1a3a1a;
  background: linear-gradient(135deg, #78f59b 0%, #4ae06a 100%);
  box-shadow:
    0 0 16px rgba(74, 224, 106, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.gift-poster__claimed-tag i {
  font-size: 14px;
}

/* ---------- Gift showcase (inside poster) ---------- */

.gift-poster__showcase {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.gift-poster__showcase-frame {
  position: relative;
  width: min(68%, 340px);
  aspect-ratio: 1 / 1;
  border-radius: 24px;
 
  background: transparent;
  box-shadow: none;
}

.gift-poster__showcase-img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 24px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.gift-poster__showcase-img--bumper {
  transform: scale(1.3);
  transform-origin: center center;
}

.gift-poster__showcase-img[src]:not([src=""]) {
  display: block;
}

.gift-poster__showcase-img[src]:not([src=""]) + .gift-poster__showcase-placeholder {
  display: none;
}

.gift-poster__showcase-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: #fff0bb;
}

.gift-poster__showcase-placeholder i {
  font-size: clamp(38px, 6vw, 58px);
  color: #ffd76c;
  text-shadow: 0 0 18px rgba(255, 215, 108, 0.45);
}

.gift-poster__showcase-placeholder span {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.gift-poster__prize-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 235, 196, 0.92);
}

.gift-poster__footer-url {
  position: relative;
  z-index: 1;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: rgba(255, 235, 196, 0.92);
  opacity: 0.7;
  margin-bottom: 10px;
}

#successPage .actions {
  width: 100%;
  max-width: 760px;
  margin: 18px auto 0;
}

/* ==========================================================================
   WON GIFT IMAGE DISPLAY (below poster card)
   ========================================================================== */

.won-gift-display {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 18px auto 0;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(75, 10, 100, 0.35), rgba(20, 0, 30, 0.55));
  border: 1px dashed rgba(255, 214, 102, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.won-gift-display__img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
}

.won-gift-display__img[src]:not([src=""]) {
  display: block;
}

.won-gift-display__img[src]:not([src=""]) + .won-gift-display__placeholder {
  display: none;
}

.won-gift-display__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  height: 100%;
  color: rgba(255, 214, 102, 0.45);
}

.won-gift-display__placeholder i {
  font-size: 42px;
}

.won-gift-display__placeholder span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================================
   CONGRATULATION MODAL
   ========================================================================== */
#congratsModal .modal-content {
  text-align: center;
  max-height: none;
  background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

#congratsModal .prize-display {
  font-size: 64px;
  margin: 20px 0;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* ==========================================================================
   INTRO PAGE (LANDING)
   ========================================================================== */

.intro-page {
  position: relative;
  display: none;
  min-height: 100dvh;
  width: 100%;
  justify-content: center;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  color: #D1D3D4;
  overflow: hidden;
}

.intro-page.active {
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   GLOBAL ANIMATIONS
   ========================================================================== */

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   RESPONSIVE OVERRIDES & MEDIA QUERIES (CONSOLIDATED AT BOTTOM)
   ========================================================================== */

/* Tablet & Large Screens (max-width: 900px) */
@media (max-width: 900px) {
  #congratsModal .modal-content .modal-header {
    margin-bottom: 10px;
  }

  #congratsModal .modal-content .modal-body .prize-display {
    font-size: 64px;
    margin: 10px 0;
  }

  #congratsModal .modal-content .modal-body {
    margin-bottom: 10px;
  }
}

@media (max-width: 1000px) and (max-height: 400px) {
  .gifts-bottom {
    bottom: -24% !important;
  }
}


/* Mobile & Small Screens (Various) */
@media (max-width: 600px) {
  .cta-wrapper {
    margin-top: 21px;
  }

  .form-container {
    width: 90%;
    margin: 0 auto;
  }
}

@media (max-width: 500px) {
  #successPage {
    width: 90%;
    margin: 0 auto;
  }

  .success-header h1 {
    font-size: 18px;
  }

  .success-icon {
    width: 50px;
    height: 50px;
  }

  .prize-name {
    font-size: 30px;
  }

  .prize-emoji {
    margin-bottom: 0;
  }

  .page.active {
    padding: 0;
  }

  #successPage .container {
    /* border-radius: 0; */
    padding: 30px;
  }

  .details-card {
    margin-bottom: 0;
  }
}

@media (max-width:500px) and (max-height:810px) and (orientation: portrait) {
  #successPage .container {
    padding: 5px;
  }

  #successPage {
    /* background: #fff; */
    width: 95%;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .form-container {
    padding: 20px;
  }

  .form-header h1 {
    font-size: 24px;
  }

  .modal-content {
    padding: 20px;
  }

  .modal-header h2 {
    font-size: 20px;
  }
}


/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 400px;
  width: calc(100% - 48px);
}

.toast {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
  pointer-events: all;
  animation: toastSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  position: relative;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
  touch-action: pan-y;
  user-select: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.toast.toast-removing {
  animation: toastSlideOut 0.35s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

.toast.toast-swipe-active {
  transition: none;
}

.toast.toast-removing-swipe {
  animation: toastSwipeOut 0.25s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

.toast-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.05);
}

.toast-icon svg {
  width: 28px;
  height: 28px;
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin: 0;
}

.toast-message {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
  margin: 2px 0 0;
}

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #9ca3af;
  font-size: 20px;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-close:hover {
  color: #4b5563;
  transform: scale(1.15);
}

.toast-close svg {
  width: 18px;
  height: 18px;
}

/* --- Progress bar for auto-dismiss --- */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 14px 14px;
  animation: toastProgress var(--toast-duration, 4s) linear forwards;
}

/* --- Variant: Neutral (grey) --- */
.toast--neutral {
  background: #f7f7f7;
  border-color: #e5e5e5;
}

.toast--neutral .toast-icon {
  background: #eeeeee;
}

.toast--neutral .toast-icon svg {
  color: #6b7280;
}

.toast--neutral .toast-progress {
  background: #9ca3af;
}

/* --- Variant: Neutral Blue --- */
.toast--neutral-blue {
  background: #eef4ff;
  border-color: #d4e2fc;
}

.toast--neutral-blue .toast-title {
  color: #1a1a1a;
}

.toast--neutral-blue .toast-message {
  color: #5b7aa5;
}

.toast--neutral-blue .toast-icon {
  background: #dce8fc;
}

.toast--neutral-blue .toast-icon svg {
  color: #5b8def;
}

.toast--neutral-blue .toast-close {
  color: #5b8def;
  background: #d4e2fc;
  border-radius: 6px;
  width: 30px;
  height: 30px;
}

.toast--neutral-blue .toast-close:hover {
  background: #bdd1f7;
  color: #3b6fd4;
}

.toast--neutral-blue .toast-progress {
  background: #5b8def;
}

/* --- Variant: Success (green) --- */
.toast--success {
  background: #f0fdf4;
  border-color: #d1f5dc;
}

.toast--success .toast-title {
  color: #1a1a1a;
}

.toast--success .toast-message {
  color: #5b9a6f;
}

.toast--success .toast-icon {
  background: #dcf5e5;
}

.toast--success .toast-icon svg {
  color: #22c55e;
}

.toast--success .toast-progress {
  background: #22c55e;
}

/* --- Variant: Warning (orange) --- */
.toast--warning {
  background: #fff8f0;
  border-color: #ffe8cc;
}

.toast--warning .toast-title {
  color: #1a1a1a;
}

.toast--warning .toast-message {
  color: #b08545;
}

.toast--warning .toast-icon {
  background: #fdecd0;
}

.toast--warning .toast-icon svg {
  color: #f59e0b;
}

.toast--warning .toast-progress {
  background: #f59e0b;
}

/* --- Variant: Error (red) --- */
.toast--error {
  background: #fef5f5;
  border-color: #fde2e2;
}

.toast--error .toast-title {
  color: #1a1a1a;
}

.toast--error .toast-message {
  color: #b05050;
}

.toast--error .toast-icon {
  background: #fde0e0;
}

.toast--error .toast-icon svg {
  color: #ef4444;
}

.toast--error .toast-progress {
  background: #ef4444;
}

/* --- Animations --- */
@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(80px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
    max-height: 200px;
    margin-bottom: 0;
  }

  to {
    opacity: 0;
    transform: translateX(80px) scale(0.95);
    max-height: 0;
    margin-bottom: -12px;
    padding-top: 0;
    padding-bottom: 0;
  }
}

@keyframes toastSwipeOut {
  from {
    opacity: 1;
    max-height: 200px;
    margin-bottom: 0;
  }

  to {
    opacity: 0;
    transform: translateX(var(--toast-swipe-x, 120%)) scale(0.95);
    max-height: 0;
    margin-bottom: -12px;
    padding-top: 0;
    padding-bottom: 0;
  }
}

@keyframes toastProgress {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}

/* --- Mobile Responsive --- */
@media (max-width: 480px) {
  .toast-container {
    top: 16px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
  }

  .toast {
    padding: 14px 16px;
    gap: 12px;
  }

  .toast-title {
    font-size: 16px;
  }

  .toast-message {
    font-size: 12px;
  }
}


.homepageContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100dvh;
  height: 100vh;
  width: 100%;
}

.homepageContainer img {
  width: 100%;
  height: auto;
}

.homepageContainer .logo {
  width: 150px;
}

.homepageContainer .ribbon {
  width: 300px;
  margin: 15px 0;
}

.homepageContainer .gifts {
  width: 350px;
}

.homepageContainer .tap_anywhere {
  width: 200px;
  margin-top: 20px;
}

.emoji {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
}

.emoji img {
  width: 100%;
}

@media (min-width:576px) {
  .homepageContainer img {
    width: 60%;
    height: auto;
  }

  .homepageContainer div {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (min-width:768px) and (orientation: landscape) {
  .homepageContainer img {
    width: 73%;
    height: auto;
  }

  .emoji {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
  }

  .emoji img {
    width: 100%;
  }
}

@media (min-width:768px) and (orientation: portrait) {
  .homepageContainer img {
    width: 180%;
    height: auto;
  }

  .emoji {
    position: absolute;
    top: 0;
    right: 300px;
    width: 400px;
  }

  .emoji img {
    width: 175%;
  }
}

@media (min-width:992px) and (orientation: landscape) {
  .homepageContainer img {
    width: 150%;
    height: auto;
  }
}

@media (min-width:1020px) and (orientation: portrait) {
  .homepageContainer img {
    width: 243%;
    height: auto;
  }

  .emoji img {
    width: 200%;
  }

  .emoji {
    position: absolute;
    top: 0;
    right: 400px;
    width: 400px;
  }
}

@media (min-width:1020px) and (orientation: landscape) {
  .homepageContainer img {
    width: 140%;
    height: auto;
  }

  .emoji img {
    width: 200%;
  }

  .emoji {
    position: absolute;
    top: -50px;
    right: 400px;
    width: 400px;
  }
}

@media (min-width:1200px) and (orientation: landscape) {
  .homepageContainer img {
    width: 100%;
    height: auto;
  }

  .emoji img {
    width: 150%;
  }

  .emoji {
    position: absolute;
    top: 0px;
    right: 150px;
    width: 300px;
  }
}

/* ==========================================================================
   ORIENTATION LOCK OVERLAY
   ========================================================================== */

.orientation-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(10px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 20px;
}

.orientation-content {
  max-width: 400px;
  /* animation: fadeInRotate 0.8s ease-out; */
}

.rotate-icon {
  font-size: 80px;
  margin-bottom: 30px;
  color: var(--accent);
  animation: rotatePhone 2s ease-in-out infinite;
}

.orientation-overlay h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 32px;
  text-transform: uppercase;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.orientation-overlay p {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  opacity: 0.8;
  line-height: 1.5;
}

@keyframes rotatePhone {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(90deg);
  }

  50% {
    transform: rotate(90deg);
  }

  75% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@keyframes fadeInRotate {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Show only on mobile devices (max-width: 1000px) in landscape orientation */
@media screen and (max-width: 1000px) and (orientation: landscape) {
  #gamePage.active~#orientation-overlay {
    display: flex !important;
  }
}

/* Show on desktop devices */
@media screen and (min-width: 1024px) {
  #gamePage.active~#desktop-overlay {
    display: flex !important;
  }
}