/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: #1e1e1e;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}
/* =========================
   CONTAINER
========================= */

.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

/* =========================
   HERO
========================= */
.hero {
  margin: 0;
  padding: 0;
  background: transparent;
}

.hero img {
  width: 100%;
  display: block;
}

.hero .container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.badge {
  display: inline-block;
  background: #9c0000;
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  margin-bottom: 25px;
  font-size: 14px;
}

.hero h1 {
  font-size: 56px;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-text {
  max-width: 700px;
  margin: auto;
  color: #cfcfcf;
  margin-bottom: 35px;
  font-size: 18px;
}

.btn-primary {
  display: inline-block;
  text-decoration: none;
  background: #dc2626;
  color: white;
  padding: 15px 35px;
  border-radius: 12px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #ef4444;
}

/* =========================
   COUNTDOWN
========================= */

.countdown-section {
  padding: 80px 0;
  text-align: center;
  background: #141414;
}

.countdown-section h2 {
  margin-bottom: 35px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.time-box {
  width: 120px;
  height: 120px;
  background: #1c1c1c;
  border: 1px solid #2d2d2d;
  border-radius: 16px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.time-box span {
  font-size: 36px;
  font-weight: bold;
  color: #ef4444;
}

.time-box small {
  color: #bdbdbd;
}

/* =========================
   SPIN SECTION
========================= */

.spin-section {
  padding: 80px 0;
  text-align: center;
}

.spin-section h2 {
  margin-bottom: 15px;
}

.section-text {
  color: #bdbdbd;
  margin-bottom: 40px;
}

/* =========================
   PRIZE BOARD
========================= */

.prize-board {
  max-width: 700px;
  margin: auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.prize-item,
.center-box {
  background: #000000;
  border: 1px solid #2c2c2c;

  border-radius: 18px;

  min-height: 150px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 12px;
}

.prize-item img {
  width: 85px;
  height: 85px;
  object-fit: contain;
}

.prize-name {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
}

.prize-item.active {
  border: 2px solid #f90a0a;
  background: #ff00006e;
}

/* =========================
   CENTER BUTTON
========================= */

.center-box {
  background: #121212;
}

#spinBtn {
  width: 100px;
  height: 100px;

  border: none;
  border-radius: 50%;

  background: #dc2626;
  color: white;

  cursor: pointer;

  font-weight: bold;
  font-size: 18px;

  transition: 0.3s;
}

#spinBtn:hover {
  background: #ef4444;
}

#spinBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spin-status {
  margin-top: 25px;
  color: #ef4444;
  font-weight: 600;
}

/* =========================
   MODAL
========================= */

.modal {
  display: none;

  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.85);

  justify-content: center;
  align-items: center;

  z-index: 9999;

  padding: 20px;
}

.modal-content {
  width: 100%;
  max-width: 500px;

  background: #181818;

  border-radius: 20px;

  padding: 30px;

  position: relative;

  text-align: center;
}

.close {
  position: absolute;

  top: 15px;
  right: 20px;

  font-size: 28px;

  cursor: pointer;
}

.prize-result {
  font-size: 24px;

  font-weight: bold;

  color: #ef4444;

  margin: 20px 0;
}

/* =========================
   FORM
========================= */

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
}

.form-group input {
  border: 1px solid #333;

  background: #111;

  color: white;

  border-radius: 10px;
}

.submit-btn {
  width: 100%;
}

/* =========================
   SUCCESS
========================= */

.success-screen {
  display: none;

  position: fixed;
  inset: 0;

  background: #0f0f0f;

  justify-content: center;
  align-items: center;

  text-align: center;

  z-index: 99999;
}

.success-card {
  max-width: 500px;
  padding: 30px;
}

.success-icon {
  font-size: 70px;
  margin-bottom: 20px;
}

.success-card p {
  color: #bdbdbd;
  margin: 15px 0 25px;
}

/* =========================
   FOOTER
========================= */

footer {
  padding: 30px 20px;

  text-align: center;

  border-top: 1px solid #222;

  color: #888;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 34px;
  }

  .hero-text {
    font-size: 16px;
  }

  .prize-board {
    gap: 10px;
  }

  .prize-item,
  .center-box {
    min-height: 120px;
  }

  .prize-item img {
    width: 55px;
    height: 55px;
  }

  .prize-name {
    font-size: 12px;
  }

  #spinBtn {
    width: 80px;
    height: 80px;
    font-size: 15px;
  }

  .time-box {
    width: 90px;
    height: 90px;
  }

  .time-box span {
    font-size: 28px;
  }
}
.claim-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.claim-logo {
  width: 120px;
  height: 120px;

  margin: 0 auto 25px;

  display: flex;
  justify-content: center;
  align-items: center;
}

.claim-logo img {
  width: 100%;
  height: 100%;

  object-fit: contain;
}
.company-name {
  color: #999;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 15px;
  text-align: center;
  font-weight: 600;
}
.hero-logo {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.hero img {
  width: 100%;
  display: block;
}

.event-name {
  color: #999;
  font-size: 1400px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 700;
}

.result-image {
  margin: 20px 0;
  text-align: center;
}

.result-image img {
  width: 180px;
  max-width: 100%;
  border-radius: 12px;
}

/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #111;
  color: #fff;
  font-family: Arial, sans-serif;
}

/* =========================
   HEADER
========================= */

.header {
  background: #1b1b1b;
  padding: 8px 15px;
  text-align: flex;
  border-bottom: 1px solid #2a2a2a;
  position: sticky;
  top: 0;
}

.header img {
  height: 45px;
}

/* =========================
   HERO
========================= */

.hero {
  text-align: center;
  background: #181818;
  margin: 0;
  padding: 0;
}

.hero img {
  width: 100%;
  display: block;
}

.event-name {
  padding: 10px 0;
  color: #d8c8a0;
  letter-spacing: 4px;
  font-size: 14px;
  font-weight: 600;
}

/* =========================
   SPIN SECTION
========================= */

.spin-section {
  padding: 10px 15px 30px;
}

.spin-section h2 {
  margin-bottom: 15px;
  font-size: 34px;
}

.section-text {
  color: #b8b8b8;
  margin-bottom: 35px;
}

/* =========================
   BOARD
========================= */

.prize-board {
  max-width: 700px;
  margin: auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* =========================
   HADIAH
========================= */

.prize-item {
  background: #191919;
  border: 1px solid #2d2d2d;
  border-radius: 16px;

  padding: 15px;

  transition: 0.2s;
}

.prize-item img {
  width: 100%;
  height: 100px;
  object-fit: contain;
}

.prize-name {
  margin-top: 10px;
  font-size: 13px;
  font-weight: bold;
}

/* ACTIVE SPIN */

.prize-item.active {
  border: 2px solid #ff4040;
  box-shadow: 0 0 15px rgba(255, 64, 64, 0.6);
}

/* =========================
   CENTER BUTTON
========================= */

.center-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

#spinBtn {
  width: 120px;
  height: 120px;

  border: none;
  border-radius: 50%;

  background: #ff2f2f;
  color: white;

  font-size: 24px;
  font-weight: bold;

  cursor: pointer;
}

#spinBtn:hover {
  background: #ff4545;
}

/* =========================
   STATUS
========================= */

.spin-status {
  margin-top: 20px;
  color: #ff5555;
}

/* =========================
   MODAL
========================= */

.modal {
  display: none;

  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.85);

  justify-content: center;
  align-items: center;

  z-index: 999;
}

.modal-content {
  width: 90%;
  max-width: 450px;

  background: #1b1b1b;

  padding: 25px;
  border-radius: 18px;

  text-align: center;

  position: relative;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;

  font-size: 30px;
  cursor: pointer;
}

/* =========================
   RESULT IMAGE
========================= */

.result-image img {
  width: 180px;
  height: auto;
  margin: 15px auto;
  display: block;
}

.prize-result {
  color: #ff4b4b;
  font-size: 24px;
  font-weight: bold;
  margin-top: 10px;
}

/* =========================
   CLAIM BUTTONS
========================= */

.claim-buttons {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}

.claim-buttons button {
  flex: 1;
}

/* =========================
   FORM
========================= */

.claim-logo {
  text-align: center;
  margin-bottom: 20px;
}

.claim-logo img {
  width: 90px;
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 12px 50px 12px 12px;
  border: 1px solid #444;
  border-radius: 8px;
  background: #2a2a2a;
  color: #fff;
}

.btn-primary {
  width: 100%;
  height: 50px;

  border: none;
  border-radius: 10px;

  background: #ff3030;
  color: white;

  font-size: 16px;
  font-weight: bold;

  cursor: pointer;
}

/* =========================
   SUCCESS
========================= */

.success-screen {
  display: none;

  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.9);

  justify-content: center;
  align-items: center;

  z-index: 1000;
}

.success-card {
  background: #1b1b1b;

  width: 90%;
  max-width: 400px;

  padding: 30px;
  border-radius: 20px;

  text-align: center;
}

.success-icon {
  font-size: 60px;
  margin-bottom: 15px;
}

/* =========================
   FOOTER
========================= */

footer {
  text-align: center;
  padding: 30px 15px;
  background: #181818;
  margin-top: 50px;
}

footer img {
  max-width: 200px;
  margin-bottom: 15px;
}

footer p {
  color: #888;
  font-size: 13px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  .prize-board {
    gap: 8px;
  }

  .prize-item img {
    height: 70px;
  }

  .prize-name {
    font-size: 11px;
  }

  #spinBtn {
    width: 90px;
    height: 90px;
    font-size: 18px;
  }
}

.winner-bar {
  width: 100%;
  overflow: hidden;
  background: #111;
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
  padding: 10px 0;
}

.winner-track {
  white-space: nowrap;
  color: #ffd700;
  font-size: 14px;
  font-weight: bold;
  animation: runningText 15s linear infinite;
}

@keyframes runningText {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(-100%);
  }
}

.login-overlay {
  position: fixed;
  inset: 0;
  background: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.login-box {
  width: 90%;
  max-width: 350px;
  background: #1b1b1b;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
}

.login-logo {
  width: 80px;
  margin: 0 auto 15px;
}

.login-box h2 {
  margin-bottom: 10px;
}

.login-box p {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 15px;
}

.login-box input {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  margin-bottom: 15px;
}

.login-box button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #ff4000;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.login-error {
  color: red;
  font-size: 13px;
  margin-top: 10px;
}

.claim-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.claim-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.claim-icon-btn img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  transition: 0.3s;
}

.claim-icon-btn img:hover {
  transform: scale(1.1);
}

.input-wrapper input {
  width: 100%;
  padding: 12px 50px 12px 12px;
  border: 1px solid #444;
  border-radius: 8px;
  background: #2a2a2a;
  color: #fff;
}
.input-wrapper input {
  width: 100%;
  padding: 12px 50px 12px 12px;
  border: 1px solid #444;
  border-radius: 8px;
  background: #2a2a2a;
  color: #fff;
}

.input-wrapper {
  position: relative;
}
