* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --wheel-size: min(500px, calc(100vw - 56px));
  --hub-size: clamp(72px, calc(var(--wheel-size) * 0.236), 118px);
  --page-pad: 12px;
}
html, body {
  height: 100%;
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: arial;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  transition: .5s;
  min-height: 100vh;
}

audio {
  display: none;
}


/* Wheel assembly — 3D Ramen 68 look */
.wheel-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 12px auto 20px;
  padding: 28px 8px 40px;
  overflow: hidden;
  perspective: 900px;
}

.container2 {
  position: relative;
  z-index: 1;
  width: var(--wheel-size);
  height: var(--wheel-size);
  max-width: 100%;
  margin: 0 auto;
  line-height: 0;
  overflow: visible;
  border-radius: 50%;
  transform-style: preserve-3d;
  transform: rotateX(6deg);
  animation: wheel-float 4.5s ease-in-out infinite;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.55),
    0 0 0 2px #f5d76e,
    0 0 0 6px #8b1538,
    0 0 0 9px #e8b923,
    0 0 40px rgba(232, 185, 35, 0.4);
}

.container2.is-spinning {
  animation: wheel-spin-glow 0.6s ease-in-out infinite alternate;
  transform: rotateX(4deg) scale(1.01);
}

.wheel-depth {
  position: absolute;
  inset: -3%;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 100%, rgba(0, 0, 0, 0.55) 0%, transparent 55%),
    radial-gradient(circle at 30% 20%, rgba(255, 233, 168, 0.2), transparent 45%);
  box-shadow:
    inset 0 -18px 30px rgba(0, 0, 0, 0.45),
    0 40px 60px rgba(0, 0, 0, 0.5);
  animation: depth-pulse 3.2s ease-in-out infinite;
}

.wheel-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.08) 22%,
    transparent 40%,
    transparent 60%,
    rgba(255, 233, 168, 0.12) 100%
  );
}

.wheel-shine::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 45%;
  height: 180%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: rotate(25deg);
  animation: shine-sweep 4.8s ease-in-out infinite;
}

/* Gold + crimson 3D pointer */
.wheel-pointer {
  position: absolute;
  top: -3%;
  left: 50%;
  z-index: 5;
  width: clamp(28px, calc(var(--wheel-size) * 0.088), 44px);
  height: clamp(34px, calc(var(--wheel-size) * 0.104), 52px);
  transform: translateX(-50%);
  pointer-events: none;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.55));
  animation: pointer-bounce 1.4s ease-in-out infinite;
}

.wheel-pointer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 72%;
  height: 62%;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(145deg, #fff3bf 0%, #e8b923 32%, #c41e3a 72%, #5c0a18 100%);
  border: 2px solid #fff8e7;
  box-sizing: border-box;
  transform: translateX(-50%) rotate(-45deg);
  box-shadow:
    inset 2px 2px 4px rgba(255, 255, 255, 0.45),
    inset -2px -2px 4px rgba(0, 0, 0, 0.35);
}

.wheel-pointer::after {
  content: "";
  position: absolute;
  top: 22%;
  left: 50%;
  width: 25%;
  height: 21%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #ffe9a8 40%, #c41e3a 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

#canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  border-radius: 50%;
  font-weight: bold;
  word-wrap: break-word;
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.35),
    inset 0 12px 24px rgba(255, 255, 255, 0.12);
}

@keyframes wheel-float {
  0%, 100% { transform: rotateX(6deg) translateY(0); }
  50% { transform: rotateX(6deg) translateY(-6px); }
}

@keyframes wheel-spin-glow {
  from {
    box-shadow:
      0 28px 50px rgba(0, 0, 0, 0.65),
      0 0 0 3px #ffe9a8,
      0 0 0 8px #c41e3a,
      0 0 0 12px #f0c14b,
      0 0 70px rgba(255, 210, 80, 0.75);
  }
  to {
    box-shadow:
      0 28px 50px rgba(0, 0, 0, 0.65),
      0 0 0 3px #f5d76e,
      0 0 0 8px #8b1538,
      0 0 0 12px #e8b923,
      0 0 90px rgba(232, 185, 35, 0.95);
  }
}

@keyframes depth-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

@keyframes shine-sweep {
  0% { left: -70%; opacity: 0; }
  15% { opacity: 1; }
  45% { left: 120%; opacity: 0.6; }
  100% { left: 120%; opacity: 0; }
}

@keyframes pointer-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .container2,
  .wheel-depth,
  .wheel-shine::after,
  .wheel-pointer,
  .spin {
    animation: none !important;
  }
}

.overlay {
  position: absolute;
  top: 40%;
  left: 39%;

  opacity: 0.8;
}



.clickable {
  cursor: pointer;
}

/* Other misc styles */
.margin_bottom {
  margin-bottom: 5px;
}

.responsive-image {
  width: 320px;
  max-width: 500%;
  height: auto;
}
.wrapper {
  width: 100%;
  max-width: 100%;
  height: auto;
  overflow-x: hidden;
}
.wrapper .content {
  width: 100%;
  max-width: 640px;
  height: auto;
  padding: 14px var(--page-pad) 28px;
  margin: 0 auto;
}
.btn {
  font-size: 1.25rem;
  font-family: "Comfortaa", sans-serif;
  background: linear-gradient(145deg, #f0c14b 0%, #e8b923 35%, #c41e3a 100%);
  border: 2px solid rgba(255, 243, 191, 0.55);
  color: #fff8e7;
  font-weight: 700;
  width: 200px;
  max-width: 100%;
  height: 60px;
  border-radius: 12px;
  display: block;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  box-shadow:
    0 6px 18px rgba(196, 30, 58, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 10px 24px rgba(196, 30, 58, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.wheel-setting {
  width: 100%;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 4px;
}
.wheel-setting .btn {
  margin: 8px;
  flex: 1 1 140px;
  max-width: 200px;
}
.kupon-check-wrap {
  width: 100%;
  min-height: 220px;
  height: auto;
  background: rgba(1, 1, 1, 0.466);
  border-radius: 10px;
  padding: 28px 0 36px;
  box-sizing: border-box;
}
.kupon-check-wrap input,
.kupon-check-wrap .kupon-input {
  width: min(90%, 420px);
  height: 60px;
  margin: 0 auto;

  display: block;
  background: rgba(255, 255, 255, 0.866);
  border-radius: 8px;
  padding: 0px 15px;
  border: 1px solid rgba(255, 253, 253, 0.5);
  color: black;
  font-size: 1.4rem;
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
  touch-action: manipulation;
}
.kupon-check-wrap .btn {
  width: min(90%, 420px);
  margin: 25px auto 0;
}
.cta-auth {
  width: min(90%, 420px);
  margin: 16px auto 0;
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: stretch;
}
.cta-auth .btn-cta {
  flex: 1 1 0;
  width: auto;
  max-width: none;
  height: 52px;
  margin: 0;
  font-size: 1.1rem;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo {
  width: min(280px, 72vw);
  max-width: 340px;
  height: auto;
  display: block;
  margin: 8px auto 0;
}

/* Turunkan layout agar popup kemenangan tidak menutupi logo */
.main-stage {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 78px var(--page-pad) 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

@media only screen and (max-width: 600px) {
  :root {
    --wheel-size: min(360px, calc(100vw - 40px));
  }
  .main-stage {
    padding-top: 72px;
  }
  .container2 {
    transform: rotateX(3deg);
    box-shadow:
      0 14px 28px rgba(0, 0, 0, 0.5),
      0 0 0 2px #f5d76e,
      0 0 0 5px #8b1538,
      0 0 0 8px #e8b923,
      0 0 28px rgba(232, 185, 35, 0.35);
  }
  .wheel-wrap {
    padding: 22px 4px 28px;
    margin: 8px auto 12px;
  }
  .btn {
    font-size: 1.05rem;
    height: 52px;
  }
}
nav {
  width: 300px;
  height: auto;
  transition: 0.5s;
  position: fixed;
  z-index: 11;
  bottom: 94px;
  padding: 15px;
  margin-left: -400px; /* default: hide Cara Main / Klaim Hadiah */
}
nav > .heading {
  width: 100%;
  height: 50px;

  position: relative;
}
nav .heading > button {
  background: none;
  position: absolute;
  border: none;
  font-size: 3rem;
  width: 60px;
  height: 60px;
  right: 0;
  cursor: pointer;
  background: linear-gradient(145deg, #f0c14b 0%, #e8b923 35%, #c41e3a 100%);
  border: 2px solid rgba(255, 243, 191, 0.45);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.35);
}
nav .heading button > svg {
  width: 50px;
  height: 50px;
}
a.btn {
  margin-top: 25px;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
#show_nav {
  width: 50px;
  height: 50px;
  background: linear-gradient(145deg, #f0c14b 0%, #e8b923 35%, #c41e3a 100%);
  border: 2px solid rgba(255, 243, 191, 0.45);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: fixed;
  z-index: 11;
  bottom: 247px;
  transition: 0.5s;
  margin-left: 0; /* default: tampilkan tombol buka menu */
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.35);
}
#show_nav svg {
  width: 60px;
  height: 60px;
}
@media screen and (min-width: 768px) {
  .wrapper .content {
    width: 40%;
    max-width: 640px;
    height: auto;
    margin: auto;
  }
  nav {
    width: 300px;
    height: auto;
    position: fixed;
    z-index: 11;
    bottom: 94px;
    padding: 15px;
    margin-left: -400px;
  }
  .logo {
    width: min(280px, 17vw);
    max-width: 280px;
  }
  .kupon-check-wrap input {
    width: 70%;
    height: 60px;
    margin: 0 auto;

    display: block;
    background: rgba(255, 255, 255, 0.866);
    border-radius: 8px;
    padding: 0px 15px;
    border: 1px solid rgba(255, 253, 253, 0.5);
    color: black;
    font-size: 1.4rem;
  }
  .kupon-check-wrap .btn {
    width: 70%;
    margin: auto;
    margin-top: 25px;
  }
  .cta-auth {
    width: 70%;
  }
}

.spin {
  width: var(--hub-size);
  height: var(--hub-size);
  padding: 0;
  border: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  overflow: hidden;
  background: url("../img/ramen68-center.png") center / contain no-repeat;
  background-color: #1a0a05;
  cursor: pointer;
  z-index: 4;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.45),
    0 0 0 3px #f0c14b,
    0 0 0 6px rgba(196, 30, 58, 0.55),
    0 0 22px rgba(232, 185, 35, 0.55),
    inset 0 2px 6px rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: hub-pulse 2.4s ease-in-out infinite;
}

.spin:hover {
  transform: translate(-50%, -50%) scale(1.06);
  animation: none;
  box-shadow:
    0 12px 22px rgba(0, 0, 0, 0.5),
    0 0 0 3px #ffe9a8,
    0 0 0 7px rgba(196, 30, 58, 0.7),
    0 0 32px rgba(232, 185, 35, 0.85),
    inset 0 2px 6px rgba(255, 255, 255, 0.3);
}

.spin:focus-visible {
  outline: 2px solid #f5d76e;
  outline-offset: 4px;
}

.container2.is-spinning .spin {
  animation: hub-pulse 0.55s ease-in-out infinite;
}

@keyframes hub-pulse {
  0%, 100% {
    box-shadow:
      0 8px 16px rgba(0, 0, 0, 0.45),
      0 0 0 3px #f0c14b,
      0 0 0 6px rgba(196, 30, 58, 0.55),
      0 0 18px rgba(232, 185, 35, 0.45),
      inset 0 2px 6px rgba(255, 255, 255, 0.25);
  }
  50% {
    box-shadow:
      0 8px 16px rgba(0, 0, 0, 0.45),
      0 0 0 3px #ffe9a8,
      0 0 0 7px rgba(196, 30, 58, 0.75),
      0 0 30px rgba(255, 210, 80, 0.8),
      inset 0 2px 6px rgba(255, 255, 255, 0.3);
  }
}
@keyframes mymove {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}
.win{
  width: 100vw;
  height: 100vw;
 display: none;
  position: fixed;
  z-index: 111;
  background: url("../img/confetti.gif");
}
.logo-text{
  width: 40%;
  height: 60px;
 
  display: flex;
  align-items: center;
  justify-content: center;

}
h2.logo{
  width: 100%;
  margin-top: 25px;
  font-family: "Handjet", sans-serif;
   font-size: 3.5rem;
   text-align: center;
   color: beige;
   letter-spacing: 9px;
    text-transform: uppercase;
   color: #fff;
  
   text-shadow: 0 0 20px #fff8e7, 0 0 30px #e8b923, 0 0 40px #c41e3a,
     0 0 50px #e8b923, 0 0 60px #c41e3a;
}

/* SweetAlert2 — match Ramen 68 gold/crimson (override default purple) */
.swal2-popup {
  border-radius: 16px !important;
  border: 1px solid rgba(240, 193, 75, 0.45) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 24px rgba(232, 185, 35, 0.2) !important;
}

.swal2-title {
  color: #7a1f14 !important;
  font-family: "Comfortaa", sans-serif !important;
}

.swal2-html-container,
.swal2-html-container strong,
.swal2-html-container p {
  color: #3b140c !important;
  font-family: "Comfortaa", sans-serif !important;
}

.swal2-confirm,
.swal2-styled.swal2-confirm {
  background: linear-gradient(145deg, #f0c14b 0%, #e8b923 35%, #c41e3a 100%) !important;
  background-color: #c41e3a !important;
  border: 2px solid rgba(255, 243, 191, 0.45) !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 14px rgba(196, 30, 58, 0.35) !important;
  color: #fff8e7 !important;
  font-weight: 700 !important;
}

.swal2-confirm:hover,
.swal2-styled.swal2-confirm:hover {
  filter: brightness(1.06);
}

.swal2-cancel,
.swal2-styled.swal2-cancel {
  background: linear-gradient(145deg, #6b7280, #4b5563) !important;
  border-radius: 10px !important;
}

.swal2-icon.swal2-success {
  border-color: #e8b923 !important;
  color: #e8b923 !important;
}

.swal2-icon.swal2-success [class^="swal2-success-line"],
.swal2-icon.swal2-success .swal2-success-ring {
  background-color: #e8b923 !important;
  border-color: #e8b923 !important;
}

.swal2-icon.swal2-success .swal2-success-line-tip,
.swal2-icon.swal2-success .swal2-success-line-long {
  background-color: #c41e3a !important;
}

.swal2-icon.swal2-error {
  border-color: #c41e3a !important;
  color: #c41e3a !important;
}

.swal2-icon.swal2-error [class^="swal2-x-mark-line"] {
  background-color: #c41e3a !important;
}

.swal2-icon.swal2-info,
.swal2-icon.swal2-question {
  border-color: #e8b923 !important;
  color: #c41e3a !important;
}

.swal2-icon.swal2-warning {
  border-color: #f0c14b !important;
  color: #e8b923 !important;
}

