@charset "UTF-8";

/* ==========================================================================
   CÁ'S HOUSE — LUCKY DRAW GAME STYLES
   UFO Flying Saucer & Sushi Conveyor Belt Game
   ========================================================================== */

.luckydraw-page {
  background: radial-gradient(circle at 50% 20%, #e8f5ff 0%, #fbfdfe 70%);
}

.game-main {
  padding: 40px 0 80px;
}

.game-header {
  margin-bottom: 40px;
}

.game-header h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 54px);
  margin: 10px 0 14px;
  color: var(--ink);
}

.game-header h1 em {
  font-style: normal;
  color: var(--pink-accent);
}

.game-subtitle {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Game Arena Container
   -------------------------------------------------------------------------- */
.game-arena {
  background: linear-gradient(180deg, #102e46 0%, #1b496e 60%, #296492 100%);
  border-radius: var(--radius-xl);
  padding: 30px 20px 40px;
  box-shadow: 0 20px 50px rgba(16, 46, 70, 0.3);
  position: relative;
  overflow: hidden;
  border: 4px solid #7cbbe9;
}

/* Sky Atmosphere Decor */
.sky-zone {
  position: relative;
  height: 260px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.cloud-decor {
  position: absolute;
  font-size: 40px;
  opacity: 0.35;
  pointer-events: none;
  animation: cloud-move 20s ease-in-out infinite alternate;
}

.cloud-left { top: 20px; left: 40px; }
.cloud-right { top: 50px; right: 40px; animation-delay: -10s; }

@keyframes cloud-move {
  0% { transform: translateX(0); }
  100% { transform: translateX(40px); }
}

.star-decor {
  position: absolute;
  font-size: 20px;
  pointer-events: none;
  animation: star-twinkle 2.5s ease-in-out infinite alternate;
}

.s1 { top: 30px; left: 15%; color: #ffd54f; }
.s2 { top: 70px; right: 18%; color: #f48fb1; font-size: 26px; }
.s3 { top: 120px; left: 22%; color: #81d4fa; }

@keyframes star-twinkle {
  0% { opacity: 0.3; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.2) rotate(15deg); }
}

/* --------------------------------------------------------------------------
   UFO Flying Saucer Vessel
   -------------------------------------------------------------------------- */
.ufo-container {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ufo-container.floating {
  animation: ufo-float 3.5s ease-in-out infinite alternate;
}

@keyframes ufo-float {
  0% { transform: translate(-50%, 0) rotate(0deg); }
  50% { transform: translate(-50%, -10px) rotate(-1.5deg); }
  100% { transform: translate(-50%, 4px) rotate(1.5deg); }
}

.ufo-body {
  position: relative;
  width: 170px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ufo-dome {
  width: 90px;
  height: 55px;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.9), rgba(186, 230, 253, 0.6));
  border-radius: 90px 90px 20px 20px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  display: grid;
  place-items: center;
  margin-bottom: -18px;
  z-index: 2;
  box-shadow: inset 0 4px 10px rgba(255, 255, 255, 0.8);
}

.ufo-pilot-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
  animation: pilot-bounce 2s ease-in-out infinite alternate;
}

@keyframes pilot-bounce {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-4px) scale(1.05); }
}

.ufo-ring {
  width: 170px;
  height: 42px;
  background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 50%, #94a3b8 100%);
  border-radius: 999px;
  border: 2px solid #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), inset 0 -4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 16px;
  z-index: 3;
}

.ufo-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 10px #facc15;
  animation: light-flash 1s infinite alternate;
}

.l1 { animation-delay: 0s; }
.l2 { animation-delay: 0.2s; background: #f48fb1; box-shadow: 0 0 10px #f48fb1; }
.l3 { animation-delay: 0.4s; background: #38bdf8; box-shadow: 0 0 10px #38bdf8; }
.l4 { animation-delay: 0.6s; background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.l5 { animation-delay: 0.8s; }

@keyframes light-flash {
  0% { opacity: 0.3; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.3); }
}

.ufo-hatch {
  width: 60px;
  height: 12px;
  background: #475569;
  border-radius: 0 0 20px 20px;
  margin-top: -2px;
  z-index: 1;
}

/* Tractor Beam Cone */
.tractor-beam {
  position: absolute;
  top: 82px;
  width: 140px;
  height: 0;
  background: linear-gradient(180deg, rgba(255, 235, 59, 0.85) 0%, rgba(255, 183, 203, 0.4) 60%, rgba(255, 255, 255, 0) 100%);
  clip-path: polygon(30% 0%, 70% 0%, 100% 100%, 0% 100%);
  opacity: 0;
  transition: height 0.5s ease, opacity 0.5s ease;
  pointer-events: none;
  z-index: 5;
}

.tractor-beam.active {
  height: 190px;
  opacity: 1;
  animation: beam-glow 0.4s ease-in-out infinite alternate;
}

@keyframes beam-glow {
  0% { filter: brightness(1) drop-shadow(0 0 15px rgba(255, 235, 59, 0.8)); }
  100% { filter: brightness(1.3) drop-shadow(0 0 25px rgba(255, 235, 59, 1)); }
}

/* --------------------------------------------------------------------------
   Conveyor Belt Sushi Zone
   -------------------------------------------------------------------------- */
.conveyor-zone {
  position: relative;
  margin-top: 10px;
}

.target-marker {
  text-align: center;
  margin: 0 auto 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid #ffeb3b;
  padding: 5px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  animation: marker-pulse 1.5s ease-in-out infinite alternate;
}

.marker-arrow {
  font-size: 14px;
}

.marker-text {
  font-family: var(--font-cute);
  font-size: 13px;
  font-weight: 700;
  color: #ffeb3b;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

@keyframes marker-pulse {
  0% { transform: translateY(0); opacity: 0.85; }
  100% { transform: translateY(4px); opacity: 1; filter: drop-shadow(0 0 8px rgba(255, 235, 59, 0.6)); }
}

.conveyor-track-wrapper {
  background: #0f172a;
  border-radius: var(--radius-lg);
  padding: 12px 0;
  border: 3px solid #38bdf8;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.conveyor-rail {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 8px;
  background: repeating-linear-gradient(90deg, #475569, #475569 20px, #1e293b 20px, #1e293b 40px);
  transform: translateY(-50%);
  z-index: 1;
}

.conveyor-belt {
  display: flex;
  gap: 30px;
  width: max-content;
  position: relative;
  z-index: 2;
  will-change: transform;
}

.conveyor-belt.running {
  animation: belt-slide 18s linear infinite;
}

@keyframes belt-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Individual Conveyor Plates */
.conveyor-plate {
  width: 100px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  transition: transform 0.3s;
}

.plate-base {
  width: 90px;
  height: 28px;
  background: radial-gradient(ellipse at 50% 40%, #ffffff 0%, #e2e8f0 70%, #cbd5e1 100%);
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
  position: absolute;
  bottom: 0;
  z-index: 1;
}

.plate-item-wrapper {
  position: relative;
  z-index: 3;
  transition: transform 0.7s ease, opacity 0.5s ease;
}

.plate-item-icon {
  font-size: 42px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.3));
}

.plate-item-name {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 800;
  color: #0284c7;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #7cbbe9;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  margin-top: 2px;
  margin-bottom: 3px;
  white-space: normal;
  text-align: center;
  line-height: 1.15;
  max-width: 82px;
  word-wrap: break-word;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 5;
}

/* Sucked Up Animation State */
.plate-item-wrapper.being-sucked {
  transform: translateY(-150px) scale(0.5);
  opacity: 0.2;
}

/* --------------------------------------------------------------------------
   Game Controls & Action Buttons
   -------------------------------------------------------------------------- */
.game-controls {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.button-suck {
  background: linear-gradient(135deg, #ff2a75 0%, #e91e63 50%, #c2185b 100%);
  color: #ffffff;
  font-family: var(--font-cute);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 13px 34px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 25px rgba(233, 30, 99, 0.45), 0 0 15px rgba(255, 128, 171, 0.3);
  border: 2px solid #ff80ab;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s, background 0.3s;
}

.button-suck .btn-text {
  font-family: var(--font-cute);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 18px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.button-suck:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 36px rgba(233, 30, 99, 0.6), 0 0 22px rgba(255, 128, 171, 0.5);
  background: linear-gradient(135deg, #ff4081 0%, #f50057 50%, #d81b60 100%);
}

.button-suck:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.game-stats {
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
}

.game-stats strong {
  color: #facc15;
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   Coupon Victory Modal Ticket
   -------------------------------------------------------------------------- */
.coupon-card-modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.coupon-header h2 {
  font-family: var(--font-display);
  color: #d81b60;
  font-size: 24px;
  margin: 8px 0;
}

.coupon-header p {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 20px;
}

/* Ticket Styling */
.ticket-wrapper {
  background: linear-gradient(135deg, #fff0f5 0%, #ffe4ec 100%);
  border: 2px dashed #f48fb1;
  border-radius: 16px;
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(244, 143, 177, 0.2);
}

.ticket-left {
  padding: 20px;
  flex: 1;
  text-align: center;
}

.ticket-discount {
  display: flex;
  flex-direction: column;
}

.discount-prefix {
  font-size: 11px;
  font-weight: 800;
  color: #ad1457;
  letter-spacing: 0.1em;
}

.ticket-discount strong {
  font-family: var(--font-cute);
  font-size: 38px;
  color: #d81b60;
  line-height: 1;
}

.ticket-tag {
  font-size: 10px;
  color: #ad1457;
  font-weight: 700;
}

.ticket-divider {
  width: 1px;
  height: 100px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dashed-line {
  border-left: 2px dashed #f48fb1;
  height: 100%;
}

.ticket-divider .notch {
  width: 20px;
  height: 20px;
  background: var(--white);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.ticket-divider .notch.top { top: -10px; }
.ticket-divider .notch.bottom { bottom: -10px; }

.ticket-right {
  padding: 20px;
  flex: 1.2;
  text-align: center;
}

.code-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
}

.code-box {
  background: var(--white);
  border: 1px solid #f48fb1;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-family: monospace;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin: 6px 0;
  letter-spacing: 0.05em;
}

.code-note {
  font-size: 11px;
  color: var(--ink-soft);
}

/* Claim Form */
.claim-form {
  text-align: left;
}

.claim-form label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  display: block;
  margin-bottom: 8px;
}

.phone-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.phone-input-row input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  outline: none;
  font-family: var(--font-sans);
  font-size: 14px;
}

.zalo-note {
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 10px;
}

/* Mobile Responsive Adjustments (Compact Layout to prevent button clipping) */
@media (max-width: 600px) {
  .game-main {
    padding: 10px 0 24px;
  }

  .game-header {
    margin-bottom: 12px;
  }

  .game-header .eyebrow-pill {
    padding: 4px 12px;
    font-size: 11px;
  }

  .game-header h1 {
    font-size: 20px;
    margin: 4px 0 6px;
    line-height: 1.25;
  }

  .game-subtitle {
    font-size: 12px;
    line-height: 1.35;
    max-width: 320px;
  }

  /* Compact game interface on mobile */
  .game-arena {
    padding: 12px 10px 16px;
    min-height: auto;
    border-radius: var(--radius-lg);
  }

  .sky-zone {
    height: 160px;
  }

  .ufo-container {
    top: 10px;
  }

  .ufo-body {
    width: 120px;
    height: 60px;
  }

  .ufo-dome {
    width: 64px;
    height: 38px;
    margin-bottom: -12px;
  }

  .ufo-pilot-img {
    width: 30px;
    height: 30px;
  }

  .ufo-ring {
    width: 120px;
    height: 30px;
    padding: 0 10px;
  }

  .ufo-light {
    width: 8px;
    height: 8px;
  }

  .ufo-hatch {
    width: 44px;
    height: 9px;
  }

  .tractor-beam {
    top: 56px;
    width: 110px;
  }

  .tractor-beam.active {
    height: 115px;
  }

  .cloud-decor {
    font-size: 24px;
  }

  .cloud-left { top: 6px; left: 8px; }
  .cloud-right { top: 20px; right: 8px; }

  .star-decor {
    font-size: 14px;
  }
  .s1 { top: 15px; left: 10%; }
  .s2 { top: 40px; right: 12%; font-size: 18px; }
  .s3 { top: 75px; left: 14%; }

  .conveyor-zone {
    margin-top: 4px;
  }

  .target-marker {
    margin-bottom: 6px;
    padding: 3px 14px;
    border-width: 1.5px;
  }

  .marker-text {
    font-family: var(--font-cute);
    font-size: 11px;
    letter-spacing: 0.05em;
  }

  .marker-arrow {
    font-size: 12px;
  }

  .conveyor-track-wrapper {
    padding: 6px 0;
    border-width: 2px;
  }

  /* Conveyor belt items visible on mobile */
  .conveyor-belt {
    gap: 8px;
  }

  .conveyor-plate {
    width: 56px;
    height: 60px;
  }

  .plate-base {
    width: 50px;
    height: 15px;
  }

  .plate-item-icon {
    font-size: 26px;
  }

  .plate-item-name {
    font-size: 8.5px;
    padding: 1px 3px;
    max-width: 52px;
    line-height: 1.1;
    white-space: normal;
    word-break: break-word;
  }

  .plate-item-wrapper.being-sucked {
    transform: translateY(-90px) scale(0.35);
    opacity: 0.2;
  }

  /* Compact button styling on mobile */
  .game-controls {
    margin-top: 10px;
    gap: 6px;
  }

  .button-suck {
    font-family: var(--font-cute);
    font-size: 15px;
    padding: 9px 24px;
    border-radius: var(--radius-pill);
    gap: 6px;
  }

  .button-suck .btn-text {
    font-family: var(--font-cute);
    font-size: 15px;
    letter-spacing: 0.04em;
  }

  .game-stats {
    font-size: 12px;
  }

  .game-stats strong {
    font-size: 14px;
  }

  /* Modal on mobile */
  .coupon-card-modal {
    padding: 20px 14px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius-lg);
  }

  .coupon-header h2 {
    font-size: 18px;
    margin: 4px 0;
  }

  .coupon-header p {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .ticket-wrapper {
    flex-direction: column;
    padding: 10px 12px;
    margin-bottom: 12px;
  }

  .ticket-left, .ticket-right {
    padding: 8px 4px;
  }

  .ticket-discount strong {
    font-size: 30px;
  }

  .code-box {
    font-size: 14px;
    padding: 5px 10px;
    margin: 4px 0;
  }

  .ticket-divider {
    display: none;
  }

  .claim-form label {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .phone-input-row {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
  }

  .phone-input-row input {
    padding: 9px 14px;
    font-size: 13px;
  }

  #save-phone-btn {
    padding: 9px 14px;
    font-size: 13px;
  }

  .zalo-note {
    font-size: 11px;
    margin-top: 6px;
  }
}
