:root {
  --text-main: #f4f4f4;
  --text-soft: #b3b3b3;
  --panel: rgba(0, 0, 0, 0.45);
  --panel-border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  --radius-lg: 14px;
  --radius-md: 8px;
  --red-main: #9f0000;
  --red-hover: #bf0707;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text-main);
  font-family: "Comfortaa", sans-serif;
  background: #0d0d0d url("../assets/img/bg/background123.svg") center center / cover no-repeat fixed;
  padding: 0;
  overflow-x: hidden;
  position: relative;
}

.app {
  max-width: 1160px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 8px 20px 24px;
}

.wheel-card,
.panel-card,
.side-dock {
  background: var(--panel);
  backdrop-filter: blur(3px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.wheel-card {
  width: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin-top: 4px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.logo {
  max-width: 340px;
  width: min(340px, 72vw);
  height: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.the_wheel {
  width: min(560px, 100%);
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(26, 26, 26, 0.95) 0 66%, rgba(8, 8, 8, 0.96) 66% 100%),
    url("../assets/img/WHEELSWAKANDA.svg") center/contain no-repeat;
  border: 0;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.55);
  padding: 50px;
  overflow: visible;
}

.the_wheel::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(
    #ff43f8 0deg,
    #ff7c58 56deg,
    #fbe24f 120deg,
    #77e8ff 228deg,
    #b64dff 310deg,
    #ff43f8 360deg
  );
  z-index: 0;
}

.the_wheel::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(15, 15, 15, 0.9), rgba(4, 4, 4, 0.98));
  z-index: 1;
}

.container2 {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
}

#canvas {
  width: min(435px, 100%);
  height: auto;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
  animation: none;
}

.spin {
  position: absolute;
  display: grid;
  place-items: center;
}

#spin {
  width: 114px;
  height: 114px;
  border-radius: 50%;
  text-decoration: none;
  font-family: "Comfortaa", sans-serif;
  font-size: 3.2rem;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.88);
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 4px 14px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  user-select: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

#spin:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

#spin:active {
  transform: translateY(2px) scale(0.98);
}

#spin.is-disabled {
  cursor: not-allowed;
  filter: grayscale(0.35) brightness(0.8);
  opacity: 0.7;
}

#spin.is-disabled:hover,
#spin.is-disabled:active {
  transform: none;
}

.spin::before {
  content: "";
  position: absolute;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 184, 72, 0.42), rgba(175, 54, 0, 0.28) 55%, rgba(96, 0, 83, 0.34) 100%);
  pointer-events: none;
  z-index: -1;
}

.container2::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(180deg, #ff4ce8 0%, #9f3bff 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  z-index: 4;
}

.panel-card {
  width: min(100%, 860px);
  margin-top: 18px;
  margin-left: auto;
  margin-right: auto;
  padding: 18px 22px 24px;
  border-radius: 0 0 10px 10px;
  animation: none;
}

.side-dock {
  position: fixed;
  left: 8px;
  bottom: 22px;
  width: 168px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
  background: rgba(8, 10, 14, 0.58);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  margin: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  z-index: 30;
  transition: transform 0.32s ease, opacity 0.28s ease;
  transform: translateX(0);
}

.side-dock.is-collapsed {
  transform: translateX(calc(-100% - 18px));
}

.side-dock.is-collapsed .btn {
  opacity: 0;
  pointer-events: none;
}

.side-dock.is-collapsed .heading {
  opacity: 0;
}

.heading {
  display: flex;
  justify-content: center;
  margin: 0;
}

#close_nav,
#show_nav {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: #ebebeb;
  color: #840404;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#close_nav:hover,
#show_nav:hover {
  transform: translateY(-2px);
}

#show_nav {
  position: fixed;
  left: 0;
  bottom: 156px;
  width: 40px;
  height: 38px;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(180deg, #4f24da 0%, #2e0f85 100%);
  color: #fff;
  border: 0;
  z-index: 40;
  display: grid;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#show_nav.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.side-dock .btn {
  width: 100%;
  margin-top: 0;
}

.side-dock .btn + .btn {
  margin-top: 0;
}

.btn {
  width: 100%;
  border: 0;
  border-radius: var(--radius-md);
  padding: 13px 14px;
  margin-top: 12px;
  font-family: "Comfortaa", sans-serif;
  font-weight: 700;
  font-size: 1.03rem;
  line-height: 1;
  color: #fff;
  background: var(--red-main);
  text-align: center;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--red-hover);
}

.content {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.wheel-setting {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  width: min(360px, 100%);
  margin: 0 auto;
}

.kupon-check-wrap {
  border: 0;
  border-radius: var(--radius-md);
  padding: 16px 0 0;
  background: transparent;
}

#kupon {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(140, 0, 0, 0.55);
  background: rgba(0, 0, 0, 0.35);
  color: #f3f3f3;
  padding: 12px 14px;
  font-family: "Comfortaa", sans-serif;
  font-size: 1.05rem;
  outline: none;
  transition: border-color 0.2s ease;
}

#kupon::placeholder {
  color: #6f6f6f;
  opacity: 1;
}

#kupon:focus {
  border-color: #c60909;
}

.coupon-status {
  margin: 10px auto 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  width: max-content;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(9, 12, 18, 0.52);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  font-family: "Comfortaa", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.coupon-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #909090;
}

.coupon-status.is-hidden {
  display: none;
}

.kupon-check-wrap #btn_cek_kupon {
  margin-top: 6px;
}

.coupon-status.is-valid {
  color: #caffde;
  background: linear-gradient(180deg, rgba(10, 79, 54, 0.42), rgba(6, 49, 35, 0.45));
  border-color: rgba(88, 233, 151, 0.44);
}

.coupon-status.is-valid::before {
  background: #66e493;
  box-shadow: 0 0 9px rgba(102, 228, 147, 0.6);
}

.coupon-status.is-invalid {
  color: #ffd2d2;
  background: linear-gradient(180deg, rgba(110, 10, 10, 0.45), rgba(66, 5, 5, 0.45));
  border-color: rgba(255, 122, 122, 0.4);
}

.coupon-status.is-invalid::before {
  background: #ff8b8b;
  box-shadow: 0 0 9px rgba(255, 139, 139, 0.56);
}

.win {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.ingat123-welcome-popup {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55) !important;
  padding: 26px 22px 20px !important;
}

.ingat123-welcome-title {
  font-family: "Comfortaa", sans-serif !important;
  font-size: 2rem !important;
  line-height: 1.25 !important;
  color: #d7d1c9 !important;
  margin-bottom: 10px !important;
}

.ingat123-welcome-button {
  background: linear-gradient(180deg, #4c3bff, #2e1ea8) !important;
  border: 0 !important;
  border-radius: 6px !important;
  font-family: "Comfortaa", sans-serif !important;
  font-weight: 700 !important;
  padding: 10px 28px !important;
  box-shadow: 0 8px 18px rgba(23, 14, 86, 0.6) !important;
}

.ingat123-welcome-button:focus {
  box-shadow: 0 0 0 3px rgba(103, 89, 255, 0.35) !important;
}

.ingat123-help-popup {
  width: min(94vw, 560px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
  padding: 14px 18px 20px !important;
}

.ingat123-help-title {
  font-family: "Comfortaa", sans-serif !important;
  font-size: 2.2rem !important;
  line-height: 1.2 !important;
  color: #c8c1b8 !important;
  margin: 0 0 8px !important;
}

.ingat123-help-container {
  margin: 0 !important;
}

.ingat123-help-content {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.ingat123-help-content p {
  margin: 0;
  font-family: "Comfortaa", sans-serif;
  color: #bcb5ad;
  font-size: 1.02rem;
  line-height: 1.35;
  text-align: center;
  font-weight: 700;
}

.ingat123-help-button {
  background: linear-gradient(180deg, #4c3bff, #2e1ea8) !important;
  border: 0 !important;
  border-radius: 6px !important;
  font-family: "Comfortaa", sans-serif !important;
  font-weight: 700 !important;
  padding: 10px 28px !important;
  box-shadow: 0 8px 18px rgba(23, 14, 86, 0.6) !important;
}

.ingat123-help-close {
  color: #a8a8a8 !important;
  font-size: 2rem !important;
}

@keyframes neonPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 16px rgba(0, 212, 255, 0.24));
  }

  50% {
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.4));
  }
}

@keyframes floatIn {
  from {
    transform: translateY(22px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  body {
    padding: 12px;
    background-attachment: scroll;
  }

  .app {
    padding: 6px 0 18px;
  }

  .logo {
    width: min(290px, 78vw);
  }

  .the_wheel {
    width: min(520px, 100%);
    padding: 28px;
  }

  #canvas {
    width: min(400px, 100%);
  }

  #spin {
    width: 104px;
    height: 104px;
    font-size: 2.6rem;
  }

  .spin::before {
    width: 118px;
    height: 118px;
  }

  .panel-card {
    padding: 16px 14px;
    border-radius: 12px;
  }

  .side-dock {
    position: fixed;
    left: 14px;
    top: 78px;
    bottom: auto;
    width: 178px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 209, 122, 0.22);
    background: rgba(4, 7, 10, 0.88);
    backdrop-filter: blur(8px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    z-index: 90;
    transform: translateX(0);
  }

  .side-dock.is-collapsed {
    transform: translateX(calc(-100% - 24px));
    opacity: 0;
    pointer-events: none;
  }

  .side-dock.is-collapsed .btn,
  .side-dock.is-collapsed .heading {
    opacity: 0;
    pointer-events: none;
  }

  .heading {
    margin: 0;
    justify-content: center;
  }

  .side-dock .btn {
    font-size: 0.96rem;
    padding: 12px 10px;
    margin-top: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #b80b08 0%, #7b0505 100%);
  }

  .btn {
    font-size: 1rem;
    padding: 12px;
    margin-top: 0;
  }

  .content {
    width: 100%;
  }

  .wheel-setting {
    width: 100%;
    gap: 10px;
  }

  #kupon {
    font-size: 1rem;
  }

  #show_nav {
    left: 14px;
    top: 18px;
    bottom: auto;
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: linear-gradient(180deg, #6f4a00 0%, #271400 100%);
    color: #ffd776;
    border: 1px solid rgba(255, 202, 87, 0.28);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
    display: grid;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-4px);
  }

  #show_nav.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  #show_nav svg {
    width: 28px;
    height: 28px;
  }

  #close_nav {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(180deg, #6f4a00 0%, #271400 100%);
    color: #120900;
    border: 1px solid rgba(255, 202, 87, 0.3);
  }
}

@media (max-width: 640px) {
  .the_wheel {
    padding: 20px;
  }

  .side-dock {
    left: 10px;
    top: 70px;
    bottom: auto;
    width: 166px;
    padding: 10px;
  }

  .heading {
    justify-content: center;
  }

  #show_nav {
    left: 10px;
    top: 14px;
    width: 50px;
    height: 50px;
  }

  #close_nav {
    width: 48px;
    height: 48px;
  }

  .wheel-setting {
    grid-template-columns: 1fr;
  }

  .btn,
  #kupon {
    font-size: 0.95rem;
  }
}
