:root {
  --motion-fast: 140ms;
  --motion-base: 220ms;
  --motion-slow: 320ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-emphasized: cubic-bezier(0.18, 0.9, 0.32, 1);
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  height: 100%;
  overflow: hidden;
  font-family: "Inter", sans-serif;
  background-color: #09090b;
  color: #ededed;
  min-height: 100vh;
}

#app-shell {
  height: 100vh;
  overflow: hidden;
}

a,
button,
.panel,
.panel-hover,
.input-field,
.hazard-bar,
.js-countdown {
  transition-property: color, background-color, border-color, opacity, box-shadow, transform, filter;
  transition-duration: var(--motion-base);
  transition-timing-function: var(--ease-standard);
}

a,
button {
  transform: translateZ(0);
  backface-visibility: hidden;
}

button:active,
a:active {
  transform: scale(0.985);
}

button:disabled {
  cursor: not-allowed;
  filter: saturate(0.85);
}

.panel {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 0.5rem;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.panel-hover:hover {
  border-color: #3f3f46;
  background: #27272a;
  transform: translateY(-2px);
}

.input-field {
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 0.375rem;
}

.input-field:focus {
  border-color: #ffd700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
  outline: none;
}

.hazard-bar {
  height: 8px;
  width: 100%;
  background-image: repeating-linear-gradient(45deg, #09090b, #09090b 20px, #ffd700 20px, #ffd700 40px);
  opacity: 0.8;
}

.marquee {
  --marquee-duration: 16s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 4%,
    #000 96%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 4%,
    #000 96%,
    transparent 100%
  );
}

.marquee__inner {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee-scroll var(--marquee-duration) linear infinite;
  will-change: transform;
}

.marquee__item {
  flex: 0 0 auto;
  min-width: 100%;
  box-sizing: border-box;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(50%);
  }
  to {
    transform: translateX(-50%);
  }
}

#main-root {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transform-origin: top center;
  will-change: opacity, transform, filter;
  transition-property: opacity, transform, filter;
  transition-duration: var(--motion-base);
  transition-timing-function: var(--ease-emphasized);
}

#main-root.page-transition-out {
  opacity: 0;
  transform: translateY(10px) scale(0.995);
  filter: blur(4px);
}

#main-root.page-transition-in {
  opacity: 0;
  transform: translateY(-8px) scale(0.998);
  filter: blur(6px);
}

#main-root.page-transition-in.page-transition-in-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.info-request-panel {
  margin-bottom: 2rem;
}

.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.animate-in {
  animation-duration: var(--motion-base);
  animation-fill-mode: both;
  animation-timing-function: var(--ease-emphasized);
}

.fade-in {
  animation-name: fadeIn;
}

.slide-in-from-top-2 {
  animation-name: slideInFromTop2;
}

.slide-in-from-top-4 {
  animation-name: slideInFromTop4;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInFromTop2 {
  from {
    transform: translateY(-8px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slideInFromTop4 {
  from {
    transform: translateY(-16px);
  }
  to {
    transform: translateY(0);
  }
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #09090b;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ffd700;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .marquee__inner {
    animation: none;
    transform: translateX(0);
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
}
