/* Self-hosted type: Inter for text, Barlow Condensed for headlines (both SIL OFL). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('/assets/fonts/barlow-condensed-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('/assets/fonts/barlow-condensed-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('/assets/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('/assets/fonts/barlow-condensed-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font-text: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Segoe UI', sans-serif;
}
body { font-family: var(--font-text); }

/* Public pages read at a full 16px. The account, tracker and admin tools are dense
   working screens, so on desktop they keep a slightly more compact scale. */
@media (min-width: 1024px) {
  html:has(main:is(.ucp-shell, .dashboard-page, .admin-dev-blog-page)) { font-size: 87.5%; }
}
@media (min-width: 2200px) {
  html:has(main:is(.ucp-shell, .dashboard-page, .admin-dev-blog-page)) { font-size: 100%; }
}

/* Page and section headlines share the condensed display face. */
:is(
  .updates-title, .about-section__title, .li-section__title, .wl-section__title,
  .team-page__title, .streams-page__title, .rules-page__title, .controls-page__title,
  .dl-page__title, .credits-page__title, .legal-page__title, .dl-final__title,
  .path-panel__title, .marketing-path__title, .error-page__title
) {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
}
.updates-shell :is(.updates-title, .about-section__title, .li-section__title, .wl-section__title,
  .team-page__title, .streams-page__title, .rules-page__title, .controls-page__title,
  .dl-page__title, .credits-page__title, .legal-page__title) {
  font-size: clamp(2.25rem, 3.4vw, 3rem);
}
.updates-shell .home-aside .updates-title { font-size: 1.75rem; }

/* Buttons used by the masthead, hero and drawer. */
.btn-play,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8.8px;
  min-height: 41.6px;
  padding: 8.8px 18.4px;
  border-radius: 4px;
  font-family: var(--font-text);
  font-size: 15.2px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn-play {
  border: 1px solid #b11226;
  background: #b11226;
  color: #fff;
}
.btn-play:hover { border-color: #cf1a31; background: #cf1a31; color: #fff; text-decoration: none; }
.btn-ghost {
  border: 1px solid rgba(232, 237, 240, .28);
  background: rgba(17, 20, 22, .35);
  color: #fff;
}
.btn-ghost:hover { border-color: rgba(232, 237, 240, .6); color: #fff; text-decoration: none; }
.btn-ghost svg { width: 18.4px; height: 18.4px; flex-shrink: 0; }
.btn-play--lg, .btn-ghost--lg { min-height: 52px; padding-inline: 25.6px; font-size: 16px; }
:is(.btn-play, .btn-ghost):focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Error pages */
.updates-shell.error-page { width: min(100%, 88rem); padding-block: 2rem 6rem; }
.error-page__code { margin: 0; color: #d0283f; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: .08em; }
.error-page__title { margin: .5rem 0 0; font-size: clamp(2.25rem, 4vw, 3.25rem); }
.error-page__text { max-width: 36rem; margin: 1rem 0 0; color: #a8b0b6; font-size: 1.05rem; line-height: 1.7; }
.error-page__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---------------------------------------------------------------------------
   Form controls: one look for every input, select and textarea on the site.
   Older page styles set these with long selectors; the few properties that
   define the shape are marked important so the shared look always wins. */
:is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]), select, textarea) {
  border-color: #3b4247;
  border-radius: 6px;
  color: #eeeeef;
  font-family: var(--font-text);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
:is(input, select, textarea):hover:not(:disabled):not(:focus) { border-color: #566068; }
:is(input, select, textarea):focus { outline: none; border-color: #c4475c; box-shadow: 0 0 0 3px rgba(196, 71, 92, .22); }
::placeholder { color: #7d878e; opacity: 1; }
select:not([multiple]) {
  appearance: none !important;
  -webkit-appearance: none !important;
  padding-right: 42px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23a8b0b6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 12px 8px !important;
  font-size: .95rem;
  line-height: 1.4;
  cursor: pointer;
}
select:not([multiple]):focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23eeeeef' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") !important; }
select option { background: #191d20; color: #eeeeef; }
:is(input, select, textarea, button):disabled { cursor: not-allowed; opacity: .55; }
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #eeeeef;
  -webkit-box-shadow: 0 0 0 1000px #191d20 inset;
  caret-color: #eeeeef;
}
input[type=checkbox], input[type=radio], input[type=range], progress { accent-color: #c4253b; }
@media (max-width: 767px) {
  /* 16px keeps iOS from zooming into fields on focus. */
  :is(input, select, textarea) { font-size: 16px !important; }
}

/* ---------------------------------------------------------------------------
   Small details that make the site feel finished. */
::selection { background: rgba(196, 37, 59, .45); color: #fff; }
html { -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
:is(h1, h2, h3, .updates-title, .hero__title) { text-wrap: balance; }
:is(p, li, dd) { text-wrap: pretty; }
:is(a, button, summary, [role=button]):focus-visible { outline: 2px solid #e79aa5; outline-offset: 3px; border-radius: 3px; }
/* Buttons give a short press response. */
:is(.btn-play, .btn-ghost, .ucp-refresh, .ucp-form__btn, .tracker-submit, button[type=submit]):active:not(:disabled) { transform: translateY(1px); }
/* Numbers in stats and tables don't jitter when they update. */
:is(.hero__status, .team-page__stats, .ucp-character__stats, .home-aside, .pager) { font-variant-numeric: tabular-nums; }
/* Images ease in instead of popping. */
@media (prefers-reduced-motion: no-preference) {
  :is(.news-card__image, .li-tile__image, .team-card__avatar img) { animation: img-in .5s ease both; }
  .hero__video { animation: img-in 1.2s ease both; }
}
@keyframes img-in { from { opacity: 0; } to { opacity: 1; } }
.error-page__hint { max-width: 36rem; margin: 2rem 0 0; color: #7d878e; font-size: .9rem; line-height: 1.7; }
/* The footer lines up with the masthead on every page, compact app pages included. */
body .site-footer .site-footer__shell { width: min(100%, 1408px); max-width: 1408px; padding-inline: 16px; }
