/* ============================================
   RUNTIME COMPONENTS
   Extracted from JS createElement('style') blocks
   ============================================ */

/* --- js/consent/index.js --- */
#consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 15, 0.98);
  border-top: 1px solid rgba(153, 69, 255, 0.3);
  padding: 16px 24px;
  z-index: 10000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  animation: consentSlideUp 0.3s ease-out;
}
@keyframes consentSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.consent-text h3 {
  color: #fff;
  margin: 0 0 4px 0;
  font-size: 16px;
}
.consent-text p {
  color: #a0a0a0;
  margin: 0;
  font-size: 14px;
}
.consent-text a {
  color: #9945ff;
  text-decoration: none;
}
.consent-text a:hover {
  text-decoration: underline;
}
.consent-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.consent-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.consent-btn-primary {
  background: linear-gradient(135deg, #9945ff 0%, #14f195 100%);
  color: #fff;
}
.consent-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(153, 69, 255, 0.4);
}
.consent-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #a0a0a0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.consent-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
@media (max-width: 600px) {
  .consent-content {
    flex-direction: column;
    text-align: center;
  }
  .consent-actions {
    width: 100%;
    justify-content: center;
  }
}

/* --- js/achievement-toast.js --- */
.asdf-toast {
  position: fixed;
  top: 21px;
  right: 21px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 21px;
  background: rgba(13, 9, 6, 0.95);
  border: 1px solid rgba(234, 179, 8, 0.5);
  border-radius: 13px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 34px rgba(234, 179, 8, 0.15);
  font-family: 'JetBrains Mono', monospace;
  color: #faf8f5;
  pointer-events: none;
  transform: translateX(calc(100% + 34px));
  transition:
    transform 0.5s cubic-bezier(0.618, 0, 0.382, 1),
    opacity 0.5s cubic-bezier(0.618, 0, 0.382, 1);
  opacity: 0;
  will-change: transform, opacity;
}
.asdf-toast.visible {
  transform: translateX(0);
  opacity: 1;
}
.asdf-toast-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}
.asdf-toast-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.asdf-toast-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(234, 179, 8, 0.6);
}
.asdf-toast-label {
  font-size: 16px;
  font-weight: 600;
  color: #eab308;
}
.asdf-toast-sub {
  font-size: 11px;
  color: rgba(250, 248, 245, 0.55);
  font-family: 'Inter', sans-serif;
  margin-top: 2px;
}
.asdf-toast-progress {
  margin-top: 8px;
  height: 2px;
  background: rgba(234, 179, 8, 0.12);
  border-radius: 1px;
  overflow: hidden;
}
.asdf-toast-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #eab308, #f59e0b);
  transition: width 0.8s cubic-bezier(0.618, 0, 0.382, 1);
  width: 0%;
}
@media (prefers-reduced-motion: reduce) {
  .asdf-toast {
    transition: opacity 0.2s;
    transform: translateX(0);
  }
}

/* --- js/utils/sound-system.js --- */
.sound-settings {
  padding: 16px;
  background: var(--color-bg-surface, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--color-border-default, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
}
.sound-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sound-settings-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-primary, #ffffff);
}
.sound-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}
.sound-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.sound-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: 0.3s;
  border-radius: 24px;
}
.sound-toggle-slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}
.sound-toggle input:checked + .sound-toggle-slider {
  background-color: #22c55e;
}
.sound-toggle input:checked + .sound-toggle-slider:before {
  transform: translateX(24px);
}
.sound-settings-volume {
  margin-top: 12px;
  transition: opacity 0.3s ease;
}
.sound-settings-volume label {
  display: block;
  font-size: 13px;
  color: var(--color-text-secondary, rgba(255, 255, 255, 0.7));
  margin-bottom: 8px;
}
.sound-settings-volume input[type='range'] {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  -webkit-appearance: none;
}
.sound-settings-volume input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff4500;
  cursor: pointer;
}
.sound-settings-volume input[type='range']::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff4500;
  cursor: pointer;
  border: none;
}
#volumeValue {
  font-weight: 600;
  color: var(--color-fire, #ff4500);
}

/* --- js/utils/progressive-disclosure.js --- */
.disclosure-notification {
  font-family: 'Inter', sans-serif;
}
.disclosure-notification-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  color: var(--color-fire);
}
.disclosure-notification-name {
  font-weight: 600;
  margin-bottom: 4px;
}
.disclosure-notification-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.smart-tooltip {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.5;
}
.smart-tooltip-message {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
}
.smart-tooltip-close {
  width: 100%;
  padding: 6px 12px;
  background: var(--color-fire);
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
.smart-tooltip-close:hover {
  background: var(--color-fire-light);
}
.smart-tooltip-arrow {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--color-fire);
}

/* --- js/utils/contextual-animations.js --- */
@keyframes flame-burst {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}
@keyframes burn-particle {
  0% {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) translateX(calc(cos(var(--angle)) * var(--velocity)))
      translateY(calc(sin(var(--angle)) * var(--velocity) - 100px));
    opacity: 0;
  }
}
.burn-glow-active {
  box-shadow: 0 0 40px rgba(255, 69, 0, 0.8) !important;
  animation: ctx-burn-pulse 600ms ease-out !important;
}
@keyframes ctx-burn-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.5);
  }
}
@keyframes lock-close {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(-45deg);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 0;
  }
}
@keyframes lock-open {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(45deg);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 0;
  }
}
.k-score-up {
  animation: k-score-bump-up 500ms ease-out;
}
.k-score-down {
  animation: k-score-bump-down 500ms ease-out;
}
@keyframes k-score-bump-up {
  0%,
  100% {
    transform: scale(1);
    color: inherit;
  }
  50% {
    transform: scale(1.15);
    color: #22c55e;
  }
}
@keyframes k-score-bump-down {
  0%,
  100% {
    transform: scale(1);
    color: inherit;
  }
  50% {
    transform: scale(0.95);
    color: #ef4444;
  }
}
@keyframes delta-pop {
  0% {
    transform: translateY(0) scale(0);
    opacity: 0;
  }
  50% {
    transform: translateY(-10px) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translateY(-20px) scale(1);
    opacity: 0;
  }
}
@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}
@keyframes fade-out {
  to {
    opacity: 0;
  }
}

/* --- js/utils/achievements.js --- */
.achievement-gallery {
  padding: 24px;
}
.achievement-stats {
  text-align: center;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--color-bg-surface);
  border-radius: 16px;
}
.achievement-stats-count {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-fire);
  margin-bottom: 8px;
}
.achievement-stats-label {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}
.achievement-stats-progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}
.achievement-stats-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-fire), var(--color-fire-light));
  transition: width 600ms ease-out;
}
.achievement-section {
  margin-bottom: 32px;
}
.achievement-section h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 16px;
  opacity: 0.7;
}
.achievement-section-common h3 {
  color: #ffffff;
}
.achievement-section-rare h3 {
  color: #3b82f6;
}
.achievement-section-epic h3 {
  color: #9945ff;
}
.achievement-section-legendary h3 {
  color: #fbbf24;
}
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.achievement-card {
  padding: 20px;
  background: var(--color-bg-surface);
  border: 2px solid var(--color-border-default);
  border-radius: 12px;
  text-align: center;
  transition: all 300ms ease;
}
.achievement-card.unlocked {
  border-color: var(--color-fire);
}
.achievement-card.locked {
  opacity: 0.5;
  filter: grayscale(100%);
}
.achievement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.achievement-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.achievement-name {
  font-weight: 600;
  margin-bottom: 8px;
}
.achievement-desc {
  font-size: 13px;
  color: var(--color-text-tertiary);
  margin-bottom: 12px;
}
.achievement-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}
.achievement-progress-bar {
  height: 100%;
  background: var(--color-fire);
  transition: width 300ms ease;
}
.achievement-progress-text {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* --- js/build/renderer/animations.js --- */
@keyframes burnPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
@keyframes particleFloat {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(5px, 10px);
  }
}

/* --- js/ui/toast.js (config resolved: animationDuration=300ms) --- */
.toast-container {
  position: fixed;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 400px;
  padding: 16px;
}
.toast-top-right {
  top: 0;
  right: 0;
}
.toast-top-left {
  top: 0;
  left: 0;
}
.toast-bottom-right {
  bottom: 0;
  right: 0;
}
.toast-bottom-left {
  bottom: 0;
  left: 0;
}
.toast-top-center {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.toast-bottom-center {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(17, 17, 17, 0.95);
  border-radius: 8px;
  border-left: 4px solid var(--toast-color, #3b82f6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  cursor: default;
  opacity: 0;
  transform: translateX(100%);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.toast-top-left .toast,
.toast-bottom-left .toast {
  transform: translateX(-100%);
}
.toast-top-center .toast,
.toast-bottom-center .toast {
  transform: translateY(-100%);
}
.toast.toast-visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}
.toast.toast-exit {
  opacity: 0;
  transform: scale(0.9);
}
.toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--toast-color, #3b82f6);
}
.toast-content {
  flex: 1;
  min-width: 0;
}
.toast-title {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  margin-bottom: 2px;
}
.toast-message {
  font-size: 13px;
  color: #a1a1aa;
  line-height: 1.4;
  word-break: break-word;
}
.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #71717a;
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.toast-close:hover {
  opacity: 1;
}
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--toast-color, #3b82f6);
  border-radius: 0 0 0 8px;
  opacity: 0.5;
  transition: width linear;
}
@media (max-width: 480px) {
  .toast-container {
    left: 8px;
    right: 8px;
    max-width: none;
    padding: 8px;
  }
  .toast-top-center,
  .toast-bottom-center {
    transform: none;
  }
}

/* --- js/ui/modal.js (config resolved: backdrop=200ms, animation=300ms, sizes hardcoded) --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 200ms ease-out;
}
.modal-backdrop.modal-visible {
  opacity: 1;
}
.modal-dialog {
  position: relative;
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.95) translateY(-20px);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-visible .modal-dialog {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.modal-sm .modal-dialog {
  width: 400px;
}
.modal-md .modal-dialog {
  width: 500px;
}
.modal-lg .modal-dialog {
  width: 700px;
}
.modal-xl .modal-dialog {
  width: 900px;
}
.modal-full .modal-dialog {
  width: 95vw;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #333;
}
.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}
.modal-close {
  background: none;
  border: none;
  color: #71717a;
  cursor: pointer;
  padding: 8px;
  margin: -8px;
  font-size: 24px;
  line-height: 1;
  border-radius: 4px;
  transition: all 0.2s;
}
.modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  color: #a1a1aa;
  line-height: 1.6;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #333;
  background: rgba(0, 0, 0, 0.2);
}
.modal-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.modal-btn-secondary {
  background: transparent;
  border-color: #333;
  color: #a1a1aa;
}
.modal-btn-secondary:hover {
  border-color: #555;
  color: #fff;
}
.modal-btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
}
.modal-btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.modal-btn-danger {
  background: #dc2626;
  color: #fff;
}
.modal-btn-danger:hover {
  background: #ef4444;
}
.modal-icon {
  text-align: center;
  font-size: 48px;
  margin-bottom: 16px;
}
.modal-confirm .modal-body {
  text-align: center;
  padding: 24px;
}
.modal-confirm .modal-title {
  margin-bottom: 8px;
}
.modal-confirm .modal-footer {
  justify-content: center;
}
@media (max-width: 480px) {
  .modal-backdrop {
    padding: 8px;
    align-items: flex-end;
  }
  .modal-dialog {
    width: 100% !important;
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
  }
}

/* --- js/dashboard/ui/onboarding.js --- */
.onboarding-overlay.visible {
  opacity: 1;
}
.onboarding-overlay.hiding {
  opacity: 0;
  pointer-events: none;
}
.onboarding-card.step-enter {
  animation: stepEnter 0.4s ease;
}
@keyframes stepEnter {
  0% {
    opacity: 0.5;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.onboarding-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}
.onboarding-dots .dot.active {
  width: 24px;
  border-radius: 4px;
  background: linear-gradient(90deg, #ff6644, #ff4422);
}
