/* Randomized menu layout */
body {
  position: relative;
}

.header {
  padding-top: 2.5rem;
}

.back-link {
  position: fixed;
  left: 1.5rem;
  top: 1.5rem;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: #8b8a87;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  z-index: 10;
}

.back-link:hover {
  color: #f4c23b;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(244, 194, 59, 0.3);
}

.randomized-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 420px;
  padding: 0 1rem 2rem;
}

.quick-start-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  color: #e8e6e3;
  background: linear-gradient(135deg, rgba(122, 184, 122, 0.2) 0%, rgba(91, 155, 213, 0.2) 100%);
  border: 1px solid rgba(122, 184, 122, 0.4);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.quick-start-btn:hover {
  background: linear-gradient(135deg, rgba(122, 184, 122, 0.3) 0%, rgba(91, 155, 213, 0.3) 100%);
  border-color: rgba(122, 184, 122, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(122, 184, 122, 0.15);
}

.quick-start-btn .icon {
  font-size: 1.5rem;
  opacity: 0.95;
}

.query-builder {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
}

.query-builder-title {
  font-size: 1rem;
  font-weight: 600;
  color: #8b8a87;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.query-options {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.query-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.query-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #c4c2bf;
}

.query-select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: #e8e6e3;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b8a87' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.query-select:hover {
  border-color: rgba(244, 194, 59, 0.3);
  background-color: rgba(255, 255, 255, 0.08);
}

.query-select:focus {
  outline: none;
  border-color: rgba(244, 194, 59, 0.5);
}

.query-select option {
  background: #1a1a25;
  color: #e8e6e3;
}

.start-btn {
  width: 100%;
  padding: 1rem 1.5rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f0f12;
  background: linear-gradient(135deg, #f4c23b 0%, #e8a838 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.start-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(244, 194, 59, 0.4);
}

.start-btn:active {
  transform: translateY(0);
}

/* Responsive: tablet and below */
@media (max-width: 768px) {
  .randomized-main {
    padding: 0 1rem 2rem;
  }

  .header {
    padding-top: 3rem;
  }

  .back-link {
    left: 0.75rem;
    top: 0.75rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }
}

/* Responsive: small mobile */
@media (max-width: 480px) {
  .randomized-main {
    padding: 0 0.75rem 1.5rem;
  }

  .query-builder {
    padding: 1.25rem;
  }

  .quick-start-btn {
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
  }
}
