/* Shared accessibility, stable overflow boundaries and motion preferences. */
[hidden] { display: none !important; }
.site-header .brand img.header-brand-gif {
  object-fit: contain;
  display: block;
  animation: none;
  transform: none;
}
/* Keep logo pixels and captions in separate, bounded grid rows. */
.org-card { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 218px auto; justify-content: stretch; gap: 16px; min-width: 0; }
.org-card > .brand-motion { width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: hidden; }
.org-card .brand-motion > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.org-card .org-meta { min-width: 0; margin-top: 0; grid-template-columns: minmax(0, 1fr) 32px; align-self: end; }
.org-card .org-meta b, .org-card .org-meta small { overflow-wrap: anywhere; letter-spacing: 0; }
@media (max-width: 620px) {
  .org-showcase { width: 100%; }
  .org-card { grid-template-rows: 166px auto; }
}
/* Preserve the original landing motion explicitly requested by the owner. */
.hero::before {
  transform-origin: center center;
  animation: heroDrift 18s ease-in-out infinite alternate;
  will-change: transform;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
button:not(:disabled), a { touch-action: manipulation; }
:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
button:disabled { cursor: not-allowed; opacity: .55; }
.organization-experience .button:not(.primary),
.organization-page .button:not(.primary) { color: #f5f5f5; background-color: rgba(7,9,10,.85); border-color: var(--org-accent, #7cd59b); }
.organization-page th { color: #f5f5f5; }
.organization-experience h1 { overflow-wrap: anywhere; }
.fx-pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 24px 0; }
.news-pause { position: absolute; bottom: 12px; left: 12px; z-index: 5; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #80ba93; background: #08100c; color: #fff; cursor: pointer; }
.news-pause svg { width: 16px; height: 16px; }
.news-carousel:has(.news-pause) .news-slide { padding-inline-end: 60px; }
.fx-summary > div, .fx-top > div, .fx-workbench > section { min-width: 0; }
.fx-board td { overflow-wrap: anywhere; }
.fx-summary strong, .fx-player-name { overflow-wrap: anywhere; }
.account-label { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-form textarea, #admin-form textarea { direction: rtl; text-align: start; }
.admin-side a.admin-tab { display: block; text-decoration: none; }
.tournament-editor { grid-column: 1 / -1; width: 100%; }
.tournament-editor summary { cursor: pointer; padding: 12px 0; }
.tournament-editor .entity-edit { border-bottom: 1px solid #35453d; margin-bottom: 14px; padding: 12px 0; }
.fx-top-actions, .fx-admin-toolbar, .fx-form-actions { flex-wrap: wrap; }
.auth-modal { overflow-y: auto; overscroll-behavior: contain; padding: 18px; }
.auth-modal > section { margin: auto; max-width: 100%; }
.auth-modal [hidden] { display: none !important; }
.ranking-overview { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.ranking-results, .ranking-criteria { min-width: 0; }
.ranking-criteria { border-inline-start: 1px solid var(--line); padding-inline-start: 20px; }
.ranking-criteria h3 { font-size: 19px; margin-top: 0; }
.ranking-criteria p { font-size: 13px; line-height: 1.9; color: #cfdbd3; }
.ranking-criteria .data-table { min-width: 0; width: 100%; }
.ranking-criteria .data-table th, .ranking-criteria .data-table td { padding: 9px 6px; font-size: 12px; }
.fx-vice-select { display: grid; gap: 8px; padding: 16px; color: #edf8f0; }
.fx-vice-select select { width: 100%; min-width: 0; padding: 10px; background: #08110c; color: #edf8f0; border: 1px solid #609775; font: inherit; }
@media (max-width: 1050px) { .ranking-overview { grid-template-columns: minmax(0, 1fr); } .ranking-criteria { border-inline-start: 0; border-top: 1px solid var(--line); padding: 20px 0 0; } }
.auth-entry-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; margin: 0 0 20px; border: 1px solid #466c54; border-radius: 6px; background: #050c08; }
.auth-entry-tabs button { min-height: 46px; border: 0; border-radius: 3px; padding: 8px; background: transparent; color: #e0e9e3; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.auth-entry-tabs button[aria-pressed="true"] { color: #05110a; background: #76e99b; }
.auth-entry-tabs button:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.auth-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 16px; border: 1px solid #42634d; }
.auth-methods button { min-height: 42px; padding: 8px; border: 0; background: #0b1510; color: #edf8f0; font: inherit; font-size: 13px; }
.auth-methods button[aria-pressed="true"] { background: #a1efb5; color: #07130b; }
.auth-modal button:disabled { opacity: .55; cursor: not-allowed; }
.auth-modal input, .auth-modal select { min-width: 0; width: 100%; box-sizing: border-box; }
.auth-modal select { padding: 10px; background: #08110c; color: #f0fff5; border: 1px solid #609775; font: inherit; }
.auth-modal #auth-qr { display: block; width: 184px; height: 184px; max-width: 100%; margin: 12px auto; padding: 8px; background: white; object-fit: contain; animation: none; border: 0; }
#auth-mfa-box { display: grid; gap: 12px; margin-bottom: 16px; }
#auth-secret { font-family: monospace; font-size: 12px; }
#auth-code-form input { text-align: center; font-size: 22px; }
.auth-security { border-top: 1px solid #42634d; padding-top: 12px; color: #e8f8ed; font-size: 13px; }
.auth-security .button { width: 100%; white-space: normal; }
.auth-device { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; }
.auth-device span { overflow-wrap: anywhere; }
.auth-device button { flex-shrink: 0; padding: 8px; color: #ffc6be; border: 1px solid #91675f; background: transparent; font: inherit; }
#auth-recovery { margin-top: 16px; margin-bottom: 0; }
.auth-copy, .auth-status { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
  img[src*="titanium-spin."] { content: url("assets/titanium-spin-still.ad1b9a5759f2.webp"); }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero::before { animation: heroDrift 18s ease-in-out infinite alternate !important; }
}
@media (max-width: 620px) {
  .fx-top h1 { font-size: 23px; }
  .fx-lockup img { width: 44px; height: 54px; object-fit: contain; }
  .fx-summary strong { font-size: 24px; }
  .fx-summary .fx-deadline { font-size: 15px; }
  .fx-board { min-width: 0; }
  .fx-board th, .fx-board td { padding: 10px 7px; }
  .fx-pagination { gap: 12px; }
  .organization-hero h1 { font-size: 30px; }
}

/* Biographies are additive; organization backgrounds, logos and controls stay unchanged. */
.bio-copy { color: #edf1ef; font-size: 16px; line-height: 2; text-align: start; overflow-wrap: anywhere; }
.bio-copy p { margin: 0 0 16px; max-width: none; color: inherit; font-size: inherit; line-height: inherit; }
.bio-copy p:last-child { margin-bottom: 0; }
.bio-copy p[dir="ltr"] { text-align: left; font-weight: 700; }
.organization-bio { margin: 0 0 42px; padding: 0 0 30px; border-bottom: 1px solid var(--org-accent, #70ef91); }
.organization-bio h2 { margin: 0 0 20px; padding-inline-start: 14px; border-inline-start: 3px solid var(--org-accent, #70ef91); color: #fff; font-size: 24px; line-height: 1.5; }
.organization-bio .bio-copy, .titanium-about-copy { max-width: 900px; }
.org-intro-bio { padding: 24px; }
.titanium-about-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.titanium-about-layout > div { min-width: 0; }
.titanium-about-layout .section-heading h2 { font-size: 28px; line-height: 1.5; }
.titanium-history { border-inline-start: 1px solid var(--line, #31523d); padding-inline-start: 32px; }
@media (max-width: 760px) {
  .titanium-about-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .titanium-about-layout .section-heading h2 { font-size: 23px; }
  .titanium-history { border-inline-start: 0; border-top: 1px solid var(--line, #31523d); padding-inline-start: 0; padding-top: 28px; }
}
.organization-accounts { margin: 24px 0 38px; }
.organization-accounts h2 { color: #fff; font-size: 20px; line-height: 1.5; margin: 0 0 14px; }
.organization-account-links { display: flex; flex-wrap: wrap; gap: 12px; }
.organization-account-links > a, .organization-account-links > button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; min-width: 144px; max-width: 100%; padding: 10px 18px;
  border: 1px solid var(--org-accent, #70ef91); border-radius: 4px;
  background: #101413; color: #fff; font: inherit; font-size: 15px; font-weight: 700;
  text-decoration: none; transition: background .2s, transform .2s;
}
.organization-account-links svg { width: 18px; height: 18px; flex-shrink: 0; }
.organization-account-links > a:hover { background: #242a27; transform: translateY(-2px); }
.organization-account-links > a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.organization-account-links > button:disabled { color: #bac2bd; border-style: dashed; cursor: not-allowed; animation: none; }
@media (max-width: 620px) {
  .organization-account-links { gap: 8px; }
  .organization-account-links > a, .organization-account-links > button { flex: 1 1 130px; min-width: 0; }
}
.org-intro-bio h2 { font-size: 21px; line-height: 1.5; max-width: none; }
.org-intro-bio .bio-copy { font-size: 12px; line-height: 1.85; }
.org-intro-bio .bio-copy p { margin-bottom: 9px; }
.org-intro-bio .bio-copy p:last-child { margin-bottom: 0; }
@media (max-width: 980px) {
  .org-intro-bio .bio-copy { font-size: 15px; }
}
@media (max-width: 620px) {
  .bio-copy { font-size: 15px; }
  .organization-bio h2 { font-size: 21px; }
}
