html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: #1b1b22;
  color: #eae6df;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ============ Hero ============ */
.hero-section {
  min-height: 88vh;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255, 193, 7, 0.15), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(111, 66, 193, 0.25), transparent 50%),
    linear-gradient(135deg, #2b1a3f 0%, #1b1b22 55%, #101014 100%);
  position: relative;
}

.hero-title {
  letter-spacing: 0.02em;
  text-shadow: 0 4px 30px rgba(255, 193, 7, 0.35);
}

.hero-tagline {
  color: #ffc107;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-description {
  max-width: 720px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #cfc9c0;
}

/* ============ Hero tooltip ============ */
.tooltip-trigger {
  position: relative;
  cursor: help;
  border-bottom: 1px dashed #ffc107;
  color: #ffc107;
  font-weight: 600;
}

.tooltip-trigger::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  background: #26262f;
  border: 1px solid #ffc107;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
  color: #eae6df;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  transform: translateX(-50%) translateY(4px);
  z-index: 10;
  pointer-events: none;
}

.tooltip-trigger::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 0.4rem);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #ffc107;
  border-bottom: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 11;
}

.tooltip-trigger:hover::after,
.tooltip-trigger:hover::before {
  opacity: 1;
  visibility: visible;
}

.tooltip-trigger:hover::after {
  transform: translateX(-50%) translateY(0);
}

/* ============ Stats strip ============ */
.stats-strip {
  background: #ffc107;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: #1b1b22;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #3d3516;
  letter-spacing: 0.02em;
}

/* ============ Section scaffolding ============ */
.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffc107;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #b9b2a8;
}

/* ============ 2026 Event details ============ */
.event-details-section {
  background: #1b1b22;
}

.event-detail-card {
  background: #26262f;
  border: 1px solid #383842;
  border-radius: 0.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.event-detail-card:hover {
  transform: translateY(-4px);
  border-color: #ffc107;
}

.event-detail-icon {
  font-size: 2.5rem;
  color: #ffc107;
  display: block;
  margin-bottom: 0.75rem;
}

.event-detail-label {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffc107;
  margin-bottom: 0.5rem;
}

.event-detail-value {
  white-space: pre-line;
  color: #eae6df;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ============ History timeline ============ */
.history-section {
  background: #1b1b22;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, #ffc107, #6f42c1);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1rem 2.5rem 2rem 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding: 1rem 0 2rem 2.5rem;
}

.timeline-marker {
  position: absolute;
  top: 1.5rem;
  right: -1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #ffc107;
  color: #1b1b22;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 0 0 5px rgba(255, 193, 7, 0.2);
  z-index: 1;
}

.timeline-item:nth-child(even) .timeline-marker {
  right: auto;
  left: -1.5rem;
}

.timeline-content {
  background: #26262f;
  border: 1px solid #383842;
  border-radius: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.timeline-year {
  display: inline-block;
  background: #ffc107;
  color: #1b1b22;
  font-weight: 800;
  padding: 0.2rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
}

.timeline-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.timeline-description {
  color: #b9b2a8;
  line-height: 1.65;
}

/* ============ Highlights ============ */
.highlights-section {
  background: #141419;
}

.highlight-card {
  background: #26262f;
  border: 1px solid #383842;
  border-radius: 0.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.highlight-card:hover {
  transform: translateY(-4px);
  border-color: #ffc107;
}

.highlight-icon {
  font-size: 1.6rem;
  color: #ffc107;
  flex-shrink: 0;
}

.highlight-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: #eae6df;
}

/* ============ CTA ============ */
.cta-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 193, 7, 0.2), transparent 60%),
    linear-gradient(135deg, #2b1a3f 0%, #1b1b22 100%);
}

.cta-title {
  font-size: 2rem;
  font-weight: 800;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: #cfc9c0;
}

/* ============ Footer ============ */
.footer {
  background: #101014;
  color: #8f8a82;
  border-top-color: #2a2a33;
}

.footer a {
  color: #ffc107;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ============ Responsive timeline ============ */
@media (max-width: 767.98px) {
  .timeline::before {
    left: 1.25rem;
    transform: none;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    left: 0;
    padding: 0.75rem 0 2rem 3.75rem;
  }

  .timeline-marker,
  .timeline-item:nth-child(even) .timeline-marker {
    right: auto;
    left: 0;
  }
}

/* ============ Game submission ============ */
.submission-section,
.account-section {
  background: #141419;
}

.submission-card,
.account-card {
  background: #26262f;
  border: 1px solid #383842;
  border-radius: 0.75rem;
}

.submission-card .form-label,
.account-card .form-label {
  color: #eae6df;
  font-weight: 600;
}

.submission-card .form-control,
.submission-card .form-check-input,
.account-card .form-control {
  background-color: #1b1b22;
  border-color: #383842;
  color: #eae6df;
}

.submission-card .form-control::placeholder,
.account-card .form-control::placeholder {
  color: #6f6a63;
}

.submission-card .form-control:focus,
.account-card .form-control:focus {
  background-color: #1b1b22;
  color: #eae6df;
  border-color: #ffc107;
  box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

.submission-card .form-check-input:checked {
  background-color: #ffc107;
  border-color: #ffc107;
}

.submission-card .input-group-text {
  background-color: #383842;
  border-color: #383842;
  color: #b9b2a8;
}

.submission-icon {
  font-size: 3.5rem;
  color: #ffc107;
  display: block;
  margin-bottom: 0.75rem;
}

.account-denied-icon {
  font-size: 3.5rem;
  color: #ffc107;
  display: block;
  margin-bottom: 0.75rem;
}

.account-card a {
  color: #ffc107;
}

.submission-details dt {
  color: #b9b2a8;
  font-weight: 600;
}

.submission-details dd {
  color: #eae6df;
}

/* ============ Game library ============ */
.game-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffc107;
}

.game-meta {
  color: #b9b2a8;
  font-size: 0.9rem;
}

.game-meta .bi {
  color: #ffc107;
}

.game-description {
  color: #eae6df;
}

.vote-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.9rem;
  color: #b9b2a8;
}

.vote-summary .bi {
  color: #ffc107;
}

.vote-form {
  border-top: 1px solid #383842;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

.vote-question {
  color: #eae6df;
  font-weight: 600;
}

/* Same brightening as the interest pills: labels are bright + semibold, and the
   label text turns amber while its checkbox is checked. */
.vote-form .form-check-label {
  color: #eae6df;
  font-weight: 600;
}

.vote-form .form-check-input:checked + .form-check-label {
  color: #ffc107;
}

.vote-form .form-check-input {
  background-color: #1b1b22;
  border-color: #383842;
}

.vote-form .form-check-input:checked {
  background-color: #ffc107;
  border-color: #ffc107;
}

.vote-saved {
  color: #b9b2a8;
  font-size: 0.9rem;
}

/* Interest level picker: the radio is visually hidden but stays keyboard-focusable;
   the adjacent label pill shows the number + word label and lights up when checked. */
.vote-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.vote-level {
  position: relative;
}

.vote-level-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.vote-level-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  border: 1px solid #4a4a56;
  border-radius: 0.5rem;
  padding: 0.35rem 0.6rem;
  min-width: 76px;
  cursor: pointer;
  color: #eae6df;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  user-select: none;
}

.vote-level-label:hover {
  border-color: #ffc107;
}

.vote-level-number {
  font-weight: 800;
  font-size: 1.05rem;
  color: #eae6df;
}

.vote-level-input:checked + .vote-level-label {
  border-color: #ffc107;
  background-color: rgba(255, 193, 7, 0.12);
  color: #ffc107;
}

.vote-level-input:checked + .vote-level-label .vote-level-number {
  color: #ffc107;
}

.vote-level-input:focus-visible + .vote-level-label {
  box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}