* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background: #0a0a1a;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.8) 0%, #000000 100%);
  color: #fefefe;
  min-height: 100vh;
  padding-top: 48px; /* Space for fixed banner */
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 60% 70%, rgba(167, 139, 250, 0.4), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(96, 165, 250, 0.3), transparent),
    radial-gradient(2px 2px at 40% 80%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1.5px 1.5px at 90% 60%, rgba(147, 51, 234, 0.3), transparent);
  background-size: 200% 200%;
  background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%, 50% 50%;
  pointer-events: none;
  z-index: 0;
}

/* Permanent Disclaimer Banner */
.disclaimer-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  text-align: center;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid #b45309;
}

@media (max-width: 768px) {
  .disclaimer-banner {
    font-size: 11px;
    padding: 10px 16px;
  }
  
  body {
    padding-top: 44px;
  }
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 72px;
  position: relative;
  z-index: 1;
}

.header {
  margin-bottom: 16px;
  text-align: center;
}

.logo {
  max-width: 400px;
  width: 100%;
  height: auto;
  margin: 0 auto 16px;
  display: block;
  position: relative;
  z-index: 1;
  border: none;
  outline: none;
  background: transparent;
  mix-blend-mode: normal;
}

@media (max-width: 768px) {
  .logo {
    max-width: 300px;
  }
}

.header p {
  color: #94a3b8;
  font-family: 'Orbitron', 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shake-counter {
  font-size: 14px;
  color: #fbbf24;
  margin-top: 24px;
  font-weight: 500;
  font-family: 'Orbitron', 'Trebuchet MS', 'Segoe UI', sans-serif;
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ball-stage {
  display: grid;
  place-items: center;
  margin: 16px 0 40px;
}

.ball {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #404040 0%, #1a1a1a 40%, #000000 85%);
  box-shadow: inset -10px -10px 30px rgba(255, 255, 255, 0.1),
    inset 10px 10px 40px rgba(0, 0, 0, 0.8),
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(59, 130, 246, 0.12);
  border: 4px solid #111827;
}

.ball-gloss {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 35%;
  height: 25%;
  border-radius: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  filter: blur(2px);
  transform: rotate(-45deg);
}

.ball-window {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.ball-window-inner {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: #1e1b4b;
  border: 12px solid #0b1120;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 20px #000000, 0 0 30px rgba(59, 130, 246, 0.25);
  padding: 10px;
  position: relative;
  overflow: hidden;
}

.ball-liquid {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 40% 30%, rgba(59, 130, 246, 0.8), rgba(30, 64, 175, 0.5));
  animation: pulse 2s ease-in-out infinite;
}

.ball-triangle {
  position: relative;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  z-index: 2;
  filter: drop-shadow(0 0 16px rgba(59, 130, 246, 0.65));
}

.ball-triangle-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ball-answer-text {
  position: relative;
  z-index: 2;
  width: 100px;
  text-align: center;
  color: #e0f2fe;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: pre-line;
  text-shadow: 0 0 6px rgba(14, 165, 233, 0.4);
}

.ball-idle {
  position: relative;
  z-index: 2;
  font-size: 12px;
  letter-spacing: 0.4em;
  color: rgba(96, 165, 250, 0.7);
  text-transform: uppercase;
}

.ball-shake-btn {
  position: absolute;
  inset: 28px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.82);
  color: #fefefe;
  font-family: 'Orbitron', 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 3;
  box-shadow: inset 0 0 14px rgba(59, 130, 246, 0.25),
    0 0 18px rgba(59, 130, 246, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ball-shake-btn:hover {
  transform: scale(1.02);
  box-shadow: inset 0 0 18px rgba(59, 130, 246, 0.35),
    0 0 24px rgba(59, 130, 246, 0.55);
}

.ball-shake-btn:active {
  transform: scale(0.98);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.75;
  }
}

.hidden {
  display: none;
}

.shake {
  animation: shake 0.7s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
  10%,
  90% {
    transform: translate3d(-1px, 0, 0) rotate(-1deg);
  }
  20%,
  80% {
    transform: translate3d(2px, 0, 0) rotate(2deg);
  }
  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0) rotate(-3deg);
  }
  40%,
  60% {
    transform: translate3d(4px, 0, 0) rotate(3deg);
  }
}

.chooser {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 32px;
  align-items: center;
}

.toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.toggle-label {
  font-family: 'Orbitron', 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cbd5f5;
}

.toggle {
  position: relative;
  width: 64px;
  height: 32px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: linear-gradient(135deg, #7f1d1d, #ef4444);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  height: 26px;
  width: 26px;
  left: 3px;
  top: 3px;
  background: #fefefe;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.toggle input:checked + .toggle-slider {
  background: linear-gradient(135deg, #14532d, #22c55e);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(32px);
}

.choice {
  padding: 18px 24px;
  border: none;
  border-radius: 14px;
  font-size: 18px;
  cursor: pointer;
  color: #fefefe;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.choice:active {
  transform: scale(0.98);
}

.choice.bear {
  background: linear-gradient(135deg, #5a2e2e, #a84b4b);
  box-shadow: 0 12px 20px rgba(168, 75, 75, 0.35);
}

.choice.bull {
  background: linear-gradient(135deg, #1d4d2a, #3fa34d);
  box-shadow: 0 12px 20px rgba(63, 163, 77, 0.35);
}

.result.hidden {
  display: none;
}

.card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.tagline {
  font-size: 16px;
  color: #fbd38d;
  margin-bottom: 12px;
}

h2 {
  margin: 0 0 8px;
  font-size: 40px;
}

.signal {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px;
}

.meta {
  margin: 6px 0;
  color: #d7d7f2;
}

/* Disclaimer Modal */
.disclaimer-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.disclaimer-modal.hidden {
  display: none;
}

.disclaimer-content {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid rgba(148, 163, 184, 0.3);
  border-radius: 20px;
  max-width: 700px;
  width: 100%;
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8),
              0 0 100px rgba(99, 102, 241, 0.1);
}

.disclaimer-title {
  font-size: 24px;
  font-weight: 700;
  color: #f87171;
  text-align: center;
  margin: 0 0 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.disclaimer-body {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
  margin-bottom: 32px;
  color: #cbd5e1;
  line-height: 1.7;
}

.disclaimer-body::-webkit-scrollbar {
  width: 8px;
}

.disclaimer-body::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.1);
  border-radius: 10px;
}

.disclaimer-body::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 10px;
}

.disclaimer-body h3 {
  font-size: 16px;
  color: #fbbf24;
  margin: 20px 0 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.disclaimer-body p {
  margin: 10px 0;
  font-size: 14px;
}

.disclaimer-footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.disclaimer-checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: #cbd5e1;
  transition: color 0.2s;
}

.disclaimer-checkbox-label:hover {
  color: #fff;
}

.disclaimer-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #3b82f6;
}

.disclaimer-accept-btn {
  padding: 16px 48px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.disclaimer-accept-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.disclaimer-accept-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: linear-gradient(135deg, #475569, #334155);
  box-shadow: none;
}

@media (max-width: 768px) {
  .disclaimer-content {
    padding: 24px;
  }
  
  .disclaimer-title {
    font-size: 18px;
  }
  
  .disclaimer-body {
    max-height: 300px;
    font-size: 13px;
  }
  
  .disclaimer-accept-btn {
    padding: 14px 32px;
    font-size: 14px;
  }
}

/* Site Footer */
.site-footer {
  margin-top: 80px;
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #3b82f6;
  text-decoration: underline;
}

.footer-divider {
  color: #475569;
  font-size: 12px;
}

.footer-copyright {
  font-size: 13px;
  color: #64748b;
}

/* Legal Pages */
.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px;
  background: radial-gradient(circle at top, #111827, #020617 55%, #000000);
  min-height: 100vh;
  color: #cbd5e1;
}

.legal-header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 2px solid rgba(148, 163, 184, 0.2);
}

.legal-header h1 {
  font-size: 36px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(120deg, #c7d2fe, #67e8f9, #fbcfe8);
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.legal-updated {
  font-size: 14px;
  color: #94a3b8;
  font-style: italic;
}

.legal-content {
  line-height: 1.8;
}

.legal-content section {
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 24px;
  color: #f0f9ff;
  margin-bottom: 16px;
  margin-top: 0;
  font-weight: 600;
}

.legal-content h3 {
  font-size: 18px;
  color: #e0f2fe;
  margin-bottom: 12px;
  margin-top: 24px;
  font-weight: 600;
}

.legal-content p {
  margin-bottom: 16px;
  font-size: 15px;
  color: #cbd5e1;
}

.legal-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
  color: #cbd5e1;
}

.legal-content strong {
  color: #f0f9ff;
  font-weight: 600;
}

.legal-content a {
  color: #60a5fa;
  text-decoration: underline;
  transition: color 0.2s;
}

.legal-content a:hover {
  color: #93c5fd;
}

.legal-footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: #60a5fa;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.2s;
}

.back-link:hover {
  color: #93c5fd;
  transform: translateX(-4px);
}

.legal-footer p {
  font-size: 13px;
  color: #64748b;
}

@media (max-width: 768px) {
  .legal-header h1 {
    font-size: 28px;
  }
  
  .legal-content h2 {
    font-size: 20px;
  }
  
  .legal-content h3 {
    font-size: 16px;
  }
  
  .legal-content p,
  .legal-content li {
    font-size: 14px;
  }
}
