:root {
  --ticker-speed: 25s;
  --border-color: #eeeeee;
  --accent-red: #ff3d00;
  --success-green: #00c853;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body,
html {
  margin: 0;
  padding: 0;
  height: 100dvh;
  width: 100%;
  background-color: #ffffff;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  position: fixed;
}

.main-wrapper {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  width: 100%;
}

.content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

/* FIX: The Bull Art - No stretching, bigger size */
#bull-art {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(3px, 1.0dvh, 1.5vw);
  line-height: 1.0;
  margin: 0 0 10px 0;
  color: #000;
  white-space: pre;
  /* Prevents character stretching */
  text-align: center;
  pointer-events: none;
  display: block;
  max-width: 100vw;
  transform: translateZ(0);
}

.login-container {
  width: 100%;
  max-width: 340px;
  padding: 25px;
  border: 1px solid var(--border-color);
  background: #fff;
  text-align: center;
  z-index: 10;
}

h3 {
  font-weight: 600;
  letter-spacing: 4px;
  font-size: 11px;
  margin: 0 0 20px 0;
  color: #888;
}

input {
  width: 100%;
  padding: 12px 0;
  margin-bottom: 10px;
  border: none;
  border-bottom: 1px solid var(--border-color);
  outline: none;
  font-size: 16px;
  /* Prevents iOS zoom-on-focus */
  border-radius: 0;
}

button {
  background: #000;
  color: #fff;
  border: 1px solid #000;
  padding: 14px;
  width: 100%;
  letter-spacing: 3px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.ticker-wrap {
  width: 100%;
  background: #fff;
  border-top: 1px solid var(--border-color);
  height: 50px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom);
  box-sizing: content-box;
}

.ticker-move {
  display: flex;
  width: max-content;
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.ticker-ready {
  opacity: 1;
  animation: scroll-infinite var(--ticker-speed) linear infinite;
}

.ticker-item {
  padding: 0 40px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  white-space: nowrap;
}

.up {
  color: var(--success-green);
}

.down {
  color: var(--accent-red);
}

@keyframes scroll-infinite {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-33.3333%, 0, 0);
  }
}

#error-msg {
  font-size: 10px;
  color: var(--accent-red);
  height: 18px;
  font-weight: 600;
}

.error-hidden {
  opacity: 0;
  visibility: hidden;
}

.error-show {
  opacity: 1;
  visibility: visible;
}