:root {
  --rota-blue: #22a7ff;
  --rota-dark: #050b16;
  --rota-card: rgba(44, 53, 79, 0.92);
  --rota-pill: rgba(20, 25, 38, 0.85);
  --rota-text: #ffffff;
  --rota-muted: rgba(255, 255, 255, 0.82);
}

.rota-facil-vote-app {
  --rota-bg-url: none;
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  min-height: 680px;
  color: var(--rota-text);
  font-family: Arial, Helvetica, sans-serif;
  background: #020816;
}

.rota-facil-vote-bg,
.rota-facil-vote-overlay {
  position: absolute;
  inset: 0;
}

.rota-facil-vote-bg {
  background-image: var(--rota-bg-url);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

.rota-facil-vote-overlay {
  background:
    radial-gradient(circle at top left, rgba(20, 72, 182, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(3, 7, 16, 0.14), rgba(3, 7, 16, 0.24));
}

.rota-facil-vote-shell {
  position: relative;
  z-index: 2;
  min-height: 680px;
  padding: 24px 24px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.rota-facil-vote-screen {
  width: 100%;
  max-width: 480px;
  margin-top: 8px;
}

.rota-facil-header {
  text-align: center;
}

.rota-facil-logo {
  display: block;
  margin: 0 auto 12px;
  width: min(100%, 210px);
  height: auto;
}

.rota-facil-logo-result {
  margin: 0 auto 14px;
  width: min(100%, 150px);
}

.rota-facil-title {
  margin: 0 0 6px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.02;
  color: var(--rota-blue);
  font-weight: 700;
}

.rota-facil-subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  color: var(--rota-muted);
}

.rota-facil-pill {
  margin: 14px auto 0;
  width: fit-content;
  max-width: 100%;
  background: var(--rota-pill);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
}

.rota-facil-company-list {
  margin-top: 16px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 8px;
}

.rota-facil-company-list::-webkit-scrollbar {
  width: 8px;
}

.rota-facil-company-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
}

.rota-facil-company-list::-webkit-scrollbar-thumb {
  background: var(--rota-blue);
  border-radius: 999px;
}

.rota-facil-company {
  width: 100%;
  border: 2px solid transparent;
  outline: none;
  background: var(--rota-card);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  text-align: left;
}

.rota-facil-company:hover,
.rota-facil-company:focus {
  border-color: rgba(34, 167, 255, 0.65);
  transform: translateY(-1px);
}

.rota-facil-company.is-selected {
  border-color: var(--rota-blue);
  background: rgba(54, 65, 96, 0.96);
}

.rota-facil-company-name {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 500;
}

.rota-facil-company-logo,
.rota-facil-result-logo {
  width: 60px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(5, 8, 20, 0.88);
  padding: 6px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.rota-facil-company-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8ed3ff;
  font-weight: 700;
  font-size: 18px;
}

.rota-facil-button {
  width: 100%;
  margin-top: 12px;
  border: 0;
  outline: none;
  padding: 13px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, #33b3ff 0%, #1593eb 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.rota-facil-button:hover:not(:disabled),
.rota-facil-button:focus:not(:disabled) {
  transform: translateY(-1px);
}

.rota-facil-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.rota-facil-message {
  min-height: 18px;
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  color: #d8e6f2;
}

.rota-facil-message.is-error {
  color: #ff9f9f;
}

.rota-facil-result-layout {
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 10px;
}

.rota-facil-result-copy {
  text-align: center;
  margin-bottom: 16px;
}

.rota-facil-result-panel {
  width: 100%;
  max-width: 420px;
}

.rota-facil-partials-label {
  font-size: 16px;
  color: #fff;
  margin-bottom: 10px;
  text-align: left;
}

.rota-facil-result-item {
  background: rgba(72, 82, 118, 0.9);
  border-radius: 12px;
  padding: 8px 10px 8px;
  margin-bottom: 8px;
}

.rota-facil-result-item:first-child {
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(88, 100, 140, 0.95);
}

.rota-facil-result-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.rota-facil-result-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.rota-facil-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(34, 167, 255, 0.18);
  color: #8ed3ff;
  font-weight: 700;
  font-size: 12px;
}

.rota-facil-result-name {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rota-facil-result-percent {
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.rota-facil-result-bar {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(11, 15, 31, 0.65);
  overflow: hidden;
}

.rota-facil-result-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.82) 0%, rgba(230,235,245,0.95) 100%);
  transition: width 0.45s ease;
}

.rota-facil-result-meta {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.rota-facil-hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .rota-facil-vote-app {
    border-radius: 18px;
    min-height: 620px;
  }

  .rota-facil-vote-shell {
    min-height: 620px;
    padding: 18px 14px 22px;
  }

  .rota-facil-vote-screen {
    max-width: 100%;
    margin-top: 0;
  }

  .rota-facil-logo {
    width: min(100%, 180px);
    margin-bottom: 10px;
  }

  .rota-facil-title {
    font-size: 28px;
  }

  .rota-facil-company-list {
    max-height: 330px;
  }

  .rota-facil-company-name {
    font-size: 15px;
  }

  .rota-facil-company-logo,
  .rota-facil-result-logo {
    width: 54px;
    height: 38px;
  }
}
