:root {
  --bg-color: #0b0f19;
  --card-bg: rgba(18, 24, 38, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --color-natural: #10b981;
  --color-natural-glow: rgba(16, 185, 129, 0.35);
  --color-synthetic: #a855f7;
  --color-synthetic-glow: rgba(168, 85, 247, 0.45);
  --btn-gradient-natural: radial-gradient(circle at 30% 30%, #34d399, #059669 60%, #047857 100%);
  --btn-gradient-synthetic: radial-gradient(circle at 30% 30%, #c084fc, #7e22ce 60%, #581c87 100%);
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  user-select: none;
}

/* Ambient glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
  transition: all 0.5s ease;
}

.glow-top {
  top: -10%;
  left: 20%;
  width: 450px;
  height: 450px;
  background: var(--color-natural);
}

.glow-bottom {
  bottom: -15%;
  right: 15%;
  width: 500px;
  height: 500px;
  background: #0284c7;
}

body.synthetic-mode .glow-top {
  background: var(--color-synthetic);
  opacity: 0.4;
}

body.screenshot-mode .glow-top {
  background: #f59e0b;
  opacity: 0.6;
}

body.vomit-mode .glow-top {
  background: #84cc16;
  opacity: 0.55;
}

/* Camera screenshot flash overlay */
.screen-flash {
  position: fixed;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.05s ease-out;
}

.screen-flash.flash {
  animation: flash-fade 0.5s ease-out forwards;
}

@keyframes flash-fade {
  0% { opacity: 0.95; }
  100% { opacity: 0; }
}

/* Main Container */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

/* Header */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 7px;
  height: 7px;
  background-color: var(--color-natural);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-natural);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.title {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.title span {
  background: linear-gradient(135deg, #34d399, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
}

body.synthetic-mode .title span {
  background: linear-gradient(135deg, #c084fc, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  max-width: 320px;
}

/* Button Stage */
.button-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 320px;
}

/* Shockwave ripple */
.shockwave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 2px solid var(--color-natural);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.shockwave.animate {
  animation: shockwave-expand 0.75s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes shockwave-expand {
  0% {
    width: 220px;
    height: 220px;
    opacity: 0.9;
    border-width: 4px;
  }
  100% {
    width: 460px;
    height: 460px;
    opacity: 0;
    border-width: 1px;
  }
}

/* The Giant Button */
.rot-button {
  position: relative;
  z-index: 2;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: none;
  background: var(--btn-gradient-natural);
  cursor: pointer;
  outline: none;
  touch-action: manipulation;
  box-shadow: 
    0 16px 36px -8px var(--color-natural-glow),
    0 0 0 10px rgba(16, 185, 129, 0.12),
    0 0 0 20px rgba(16, 185, 129, 0.05),
    inset 0 4px 10px rgba(255, 255, 255, 0.4),
    inset 0 -8px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.12s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s ease, background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rot-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 22px 42px -6px var(--color-natural-glow),
    0 0 0 12px rgba(16, 185, 129, 0.18),
    0 0 0 24px rgba(16, 185, 129, 0.07),
    inset 0 4px 12px rgba(255, 255, 255, 0.5),
    inset 0 -8px 16px rgba(0, 0, 0, 0.4);
}

.rot-button:active, .rot-button.pressed {
  transform: translateY(6px) scale(0.96);
  box-shadow: 
    0 6px 18px -4px var(--color-natural-glow),
    0 0 0 6px rgba(16, 185, 129, 0.25),
    0 0 0 14px rgba(16, 185, 129, 0.08),
    inset 0 8px 16px rgba(0, 0, 0, 0.5);
}

/* Button in Synthetic Mode */
.rot-button.synthetic {
  background: var(--btn-gradient-synthetic);
  box-shadow: 
    0 16px 36px -8px var(--color-synthetic-glow),
    0 0 0 10px rgba(168, 85, 247, 0.15),
    0 0 0 20px rgba(168, 85, 247, 0.06),
    inset 0 4px 10px rgba(255, 255, 255, 0.4),
    inset 0 -8px 16px rgba(0, 0, 0, 0.5);
}

.rot-button.synthetic:active, .rot-button.synthetic.pressed {
  box-shadow: 
    0 6px 18px -4px var(--color-synthetic-glow),
    0 0 0 6px rgba(168, 85, 247, 0.3),
    0 0 0 14px rgba(168, 85, 247, 0.1),
    inset 0 8px 16px rgba(0, 0, 0, 0.5);
}

/* Button in Screenshot (1/1000) Mode */
.rot-button.screenshot {
  background: radial-gradient(circle at 30% 30%, #fde047, #f59e0b 60%, #b45309 100%);
  box-shadow: 
    0 16px 40px -6px rgba(245, 158, 11, 0.6),
    0 0 0 10px rgba(245, 158, 11, 0.2),
    0 0 0 22px rgba(245, 158, 11, 0.08),
    inset 0 4px 10px rgba(255, 255, 255, 0.6),
    inset 0 -8px 16px rgba(0, 0, 0, 0.5);
}

.rot-button.screenshot:active, .rot-button.screenshot.pressed {
  box-shadow: 
    0 6px 20px -4px rgba(245, 158, 11, 0.7),
    0 0 0 6px rgba(245, 158, 11, 0.35),
    0 0 0 14px rgba(245, 158, 11, 0.12),
    inset 0 8px 16px rgba(0, 0, 0, 0.5);
}

/* Button in Vomit (1/1000) Mode */
.rot-button.vomit {
  background: radial-gradient(circle at 30% 30%, #bef264, #65a30d 60%, #365314 100%);
  box-shadow: 
    0 16px 40px -6px rgba(132, 204, 22, 0.6),
    0 0 0 10px rgba(132, 204, 22, 0.2),
    0 0 0 22px rgba(132, 204, 22, 0.08),
    inset 0 4px 10px rgba(255, 255, 255, 0.5),
    inset 0 -8px 16px rgba(0, 0, 0, 0.6);
}

.rot-button.vomit:active, .rot-button.vomit.pressed {
  box-shadow: 
    0 6px 20px -4px rgba(132, 204, 22, 0.7),
    0 0 0 6px rgba(132, 204, 22, 0.35),
    0 0 0 14px rgba(132, 204, 22, 0.12),
    inset 0 8px 16px rgba(0, 0, 0, 0.6);
}

.button-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  pointer-events: none;
}

.button-icon {
  font-size: 3.2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: transform 0.15s ease;
}

.rot-button:active .button-icon, .rot-button.pressed .button-icon {
  transform: scale(1.15) rotate(-5deg);
}

.button-label {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Status Card */
.status-card {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  width: 100%;
  max-width: 380px;
  transition: all 0.25s ease;
  min-height: 64px;
}

.status-card.natural {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}

.status-card.synthetic {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.1);
}

.status-card.screenshot {
  border-color: rgba(245, 158, 11, 0.7);
  background: rgba(245, 158, 11, 0.15);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
}

.status-card.screenshot .status-title {
  color: #fbbf24;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.status-card.vomit {
  border-color: rgba(132, 204, 22, 0.7);
  background: rgba(132, 204, 22, 0.15);
  box-shadow: 0 0 30px rgba(132, 204, 22, 0.3);
}

.status-card.vomit .status-title {
  color: #a3e635;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(132, 204, 22, 0.5);
}

.status-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.status-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  overflow: hidden;
}

.status-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.status-card.natural .status-title {
  color: #34d399;
}

.status-card.synthetic .status-title {
  color: #c084fc;
}

.status-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Stats Section */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-main);
}

.stat-value.accent {
  color: #c084fc;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-color);
}

/* Footer */
.footer {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 8px;
}

/* Shake Animation */
@keyframes screen-shake {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3px, 2px); }
  40% { transform: translate(3px, -2px); }
  60% { transform: translate(-2px, -1px); }
  80% { transform: translate(2px, 1px); }
  100% { transform: translate(0, 0); }
}

.shake {
  animation: screen-shake 0.35s ease;
}

/* Responsive */
@media (max-width: 480px) {
  .title {
    font-size: 2.3rem;
  }
  .rot-button {
    width: 180px;
    height: 180px;
  }
  .button-icon {
    font-size: 2.8rem;
  }
  .button-label {
    font-size: 1.3rem;
  }
}
