/* =========================
   GLOBAL
========================= */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: radial-gradient(circle at top, #111 0%, #000 70%);
  color: #fff;
  text-align: center;
}

/* =========================
   HERO
========================= */
.hero {
  padding: 20px 15px 12px;
  background: linear-gradient(180deg,#003cff,#000);
  border-bottom: 2px solid #ff4500;
}

h1 {
  color: #ffa500;
  font-size: 20px;
  margin: 0;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255,165,0,.3);
}

.subtitle {
  font-size: 13px;
  color: #ddd;
  margin-top: 6px;
}

/* =========================
   SPIN CONTAINER
========================= */
.spin-container {
  max-width: 360px;
  margin: auto;
  padding: 20px 16px;
}

/* =========================
   WHEEL
========================= */
.wheel-wrapper {
  position: relative;
  margin: 25px auto;
  padding: 10px;
}

canvas {
  border-radius: 50%;
  border: 5px solid transparent;
  background:
    linear-gradient(#111,#111) padding-box,
    linear-gradient(180deg,#003cff,#ff4500,#ff0000) border-box;
  animation: pulseBorder 3s infinite ease-in-out;
}

/* Glow anim */
@keyframes pulseBorder {
  0%   { box-shadow: 0 0 10px rgba(255,69,0,.3); }
  50%  { box-shadow: 0 0 18px rgba(0,60,255,.5); }
  100% { box-shadow: 0 0 10px rgba(255,69,0,.3); }
}

/* =========================
   POINTER
========================= */
.pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: #ff0000;
  text-shadow: 0 0 10px rgba(255,0,0,.7);
  animation: bounce 1.2s infinite;
}

@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(4px); }
}

/* =========================
   SPIN BUTTON
========================= */
button {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: bold;
  background: linear-gradient(180deg,#ff4500,#ff0000);
  border: none;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  letter-spacing: 1px;
  transition: transform .2s ease, background .3s ease;
}

button:hover {
  background: linear-gradient(180deg,#ff6600,#ff0000);
  transform: translateY(-1px);
}

button:active {
  transform: scale(0.96);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =========================
   RESULT
========================= */
#result {
  margin-top: 18px;
  font-size: 14px;
  padding: 10px;
  border-radius: 8px;
  background: linear-gradient(180deg,#111,#000);
  border: 1px solid #222;
  animation: fadeIn .5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================
   ARTICLE
========================= */
.article-box {
  max-width: 360px;
  margin: 20px auto 90px;
  padding: 0 16px;
}

.article-image {
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid #ff4500;
  margin-bottom: 15px;
}

.article-image img {
  width: 100%;
  display: block;
}

.article-box article {
  background: linear-gradient(180deg,#111,#000);
  padding: 16px;
  border-radius: 12px;
  border-left: 4px solid #ff0000;
}

.article-box h2 {
  text-align: center;
  color: #ffa500;
  font-size: 17px;
  margin: 0 0 10px;
}

.article-box p {
  font-size: 14px;
  line-height: 1.7;
  color: #ddd;
  text-align: justify;
  margin-bottom: 10px;
}

/* =========================
   CTA BUTTON
========================= */
.cta-group {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.cta-btn {
  flex: 1;
  text-align: center;
  padding: 13px 10px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  letter-spacing: 1px;
  transition: transform .2s ease, background .3s ease;
}

.cta-btn.daftar {
  background: linear-gradient(180deg,#ff4500,#ff0000);
}

.cta-btn.chat {
  background: linear-gradient(180deg,#003cff,#0066ff);
}

.cta-btn:hover {
  transform: translateY(-1px);
}

.cta-btn:active {
  transform: scale(0.95);
}

/* =========================
   FOOTER
========================= */
.footer {
  text-align: center;
  font-size: 13px;
  padding: 15px;
  color: #aaa;
  border-top: 1px solid #222;
  background: #000;
}

/* =========================
   BOTTOM MENU
========================= */
.bottom-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #000;
  display: flex;
  border-top: 2px solid #ff4500;
  z-index: 999;
}

.bottom-menu a {
  flex: 1;
  text-align: center;
  padding: 11px 5px;
  text-decoration: none;
  color: #ccc;
  font-size: 13px;
  font-weight: bold;
  transition: background .3s ease, color .3s ease;
}

.bottom-menu a span {
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

.bottom-menu a:hover {
  background: linear-gradient(180deg,#003cff,#ff4500);
  color: #fff;
}

.bottom-menu a.active {
  background: linear-gradient(180deg,#ff4500,#ff0000);
  color: #fff;
}

.bottom-menu .icon {
  font-size: 18px;
}
