.aci-clearfix::before,
.aci-clearfix::after {
  content: '';
  display: table;
}

.aci-clearfix::after {
  clear: both;
}

.aci-sheet {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

@media (min-width: 1200px) {
  .aci-sheet {
    max-width: 1140px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .aci-sheet {
    max-width: 960px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .aci-sheet {
    max-width: 720px;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .aci-sheet {
    max-width: 540px;
  }
}

@media (max-width: 575px) {
  .aci-sheet {
    max-width: 100%;
  }
}

.aci-section {
  padding: 60px 0;
  position: relative;
}

.aci-hidden {
  display: none !important;
}

@media (max-width: 575px) {
  .aci-hidden-xs {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .aci-hidden-sm {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .aci-hidden-md {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .aci-hidden-lg {
    display: none !important;
  }
}

.aci-border-0 {
  border-width: 0 !important;
}

.aci-border-1 {
  border-width: 1px !important;
  border-style: solid;
}

.aci-border-2 {
  border-width: 2px !important;
  border-style: solid;
}

.aci-border-grey {
  border-color: #ddd;
}

.aci-border-grey-30 {
  border-color: #e0e6ec;
}

.aci-spacing-10 {
  margin: 10px;
}

.aci-spacing-15 {
  margin: 15px;
}

.aci-spacing-20 {
  margin: 20px;
}

.aci-align-center {
  text-align: center !important;
}

.aci-align-left {
  text-align: left !important;
}

.aci-align-right {
  text-align: right !important;
}

.aci-container-align-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.aci-white {
  background-color: #ffffff;
}

.aci-bg-white {
  background-color: #ffffff !important;
}

.aci-body {
  font-size: 1rem;
  line-height: 1.6;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  margin: 0;
  padding: 0;
}

/* :where keeps this as weak as a plain h1 selector, so the spacing of the new components (any class) wins. */
:where(.aci-body) h1,
:where(.aci-body) h2,
:where(.aci-body) h3,
:where(.aci-body) h4,
:where(.aci-body) h5,
:where(.aci-body) h6 {
  font-family: Montserrat, sans-serif;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.aci-divider {
  border-top: 1px solid var(--border, #e0e6ec);
  width: 100%;
  height: 0;
  margin: 1rem 0;
}

.aci-flag-link {
  color: #35506d;
  text-decoration: none;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
  display: inline-block;
}

.aci-flag-link:hover,
.aci-flag-link:focus {
  color: var(--hover, #de4640);
  text-decoration: none;
}

.aci-flag-link:active {
  color: var(--hover, #de4640);
}

.aci-svg-link,
.aci-svg-content {
  display: block;
  width: 100%;
  height: 100%;
}

.aci-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
}

.text-strong {
  font-weight: 600;
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

::placeholder {
  opacity: 0.70;
  font-weight: 400 !important;
  font-size: inherit !important;
}

::-webkit-input-placeholder {
  opacity: 0.70;
  font-weight: 400 !important;
  font-size: inherit !important;
}

:-ms-input-placeholder {
  opacity: 0.70;
  font-weight: 400 !important;
  font-size: inherit !important;
}

::-moz-placeholder {
  opacity: 0.70;
  font-weight: 400 !important;
  font-size: inherit !important;
}

select {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
}

select option {
  font-weight: 400 !important;
  font-size: inherit !important;
}

.brand-description a,
.model-description a,
.quiz-description a {
  color: #de4640;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

.brand-description a:hover,
.model-description a:hover,
.quiz-description a:hover {
  color: #b93832;
}

.brand-description,
.model-description,
.quiz-description {
  text-align: justify;
}

.contact-input,
.contact-textarea,
.model-input,
.model-textarea,
.model-select,
.search-input,
.search-select {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}

.model-stars,
.model-popularity-stars {
  display: none !important;
}

.leaderboard-player-name,
.leaderboard-score,
.lb-player,
.lb-score {
  font-weight: 600 !important;
}

.leaderboard-score,
.lb-score {
  font-family: 'Roboto Mono', 'Courier New', Courier, monospace !important;
}

.search-submit-btn:hover,
.search-clear-btn:hover {
  background-color: #de4640 !important;
  border-color: #de4640 !important;
  color: #fff !important;
}

.submit-success-home:hover,
.submit-success-another:hover {
  background-color: #de4640 !important;
  border-color: #de4640 !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.cover-locked {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #1a1a2e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #888;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.cover-locked:hover {
  background: #232342;
  color: #aaa;
}

.cover-locked span:first-child {
  display: inline-block;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.cover-locked:hover span:first-child {
  transform: scale(1.2);
}

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -0.125em;
}

/* Space an ad can fill without pushing the page down. A responsive slot comes back up to 280px tall on a phone. */
.ads-wrapper {
  min-height: 280px;
}

@media (min-width: 768px) {
  .ads-wrapper {
    min-height: 250px;
  }
}

.ads-wrapper:has(ins[data-ad-status="unfilled"]) {
  min-height: 0;
}

ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}

/* Local runs only (app.global-attributes.ad-placeholders): marks where an ad will sit. */
.ads-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: inherit;
  margin: 0;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* reCAPTCHA runs invisibly when a form is sent, so its holder takes no room. Google's floating badge is hidden:
   Google allows that when each form shows its notice line (fragments/components/recaptcha.html) instead. */
.g-recaptcha:empty {
  display: none;
}

.grecaptcha-badge {
  visibility: hidden;
}

.recaptcha-note {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: .75rem;
  line-height: 1.5;
}

.recaptcha-note a {
  color: inherit;
  text-decoration: underline;
}

/* A Send button while its form is checked and sent (window.busyButton in js/components/recaptcha.js) */
button[aria-busy="true"] {
  cursor: progress;
}

button[aria-busy="true"]::after {
  content: "";
  display: inline-block;
  width: .9em;
  height: .9em;
  margin-left: .5em;
  vertical-align: -.12em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: busy-spin .7s linear infinite;
}

@keyframes busy-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  button[aria-busy="true"]::after {
    animation-duration: 2s;
  }
}

/* width and height attributes reserve the space before a photo loads. :where keeps this weaker than any fixed height. */
:where(img[width][height]) {
  height: auto;
}
