/* Adapter only: page geometry stays in art-director.css; site palettes are shared. */
body.tournament-page{
  --tour-ink:var(--paper);--tour-felt:var(--surface);--tour-text:var(--ink);
  --tour-muted:var(--muted);--tour-faint:var(--muted);--tour-gold:var(--accent-strong);
  --tour-paper-ink:var(--ink);--tour-paper-muted:var(--muted);
  --tour-rule:color-mix(in srgb,var(--ink) 13%,transparent);
  --tour-rule-strong:color-mix(in srgb,var(--ink) 28%,transparent);
  --tour-action-field:#e8cf91;
  color-scheme:inherit;
}
.tournament-page .masthead,.tournament-page .notation-card h2,.tournament-page .broadcast-when strong,.tournament-page .live-result{color:var(--tour-text)}
.tournament-page .cast-seed{background:var(--tour-text);color:var(--tour-ink)}
.tournament-page .section-heading,.tournament-page .site-footer{border-top-color:var(--tour-text)}
.tournament-page .skip{background:var(--accent);color:var(--on-accent)}
.tournament-page .learn-sheet .learn-blank{color:#e8cf91}
.tournament-page .notation-card{container-type:inline-size}
.tournament-page .notation-card h2{font-size:clamp(32px,18cqi,68px);overflow-wrap:anywhere}
.tournament-page .format-band{background:var(--surface-soft);box-shadow:0 0 0 100vmax var(--surface-soft)}
.tournament-page .format,.tournament-page .format h4{border-color:var(--tour-rule-strong)}
.tournament-page .format-control i{color:var(--accent-strong)}
.tournament-page .now-countdown,.tournament-page .learn,.tournament-page .ribbon-day.is-today::before{background:var(--tour-action-field)}
.tournament-page .stage-switch button[aria-pressed=true],.tournament-page .live-notation button[aria-pressed=true]{color:var(--accent-strong)}
.tournament-page .stage-switch button[aria-pressed=true]::before,.tournament-page .live-notation button[aria-pressed=true]{background:var(--accent-soft)}
.tournament-page .live-player::before{border-color:#5c655d}
.tournament-page .live-player.black-player::before{background:#17221b}
.tournament-page .btn.dark{color:#e8cf91}
.tournament-page .board-wrap{border-color:var(--tour-rule-strong)}
.header-tools{display:flex;align-items:center;gap:10px;flex-shrink:0}
.tournament-preferences{position:relative;font-family:var(--font);font-size:14px}
.tournament-preferences summary{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--tour-rule-strong);border-radius:12px;background:var(--tour-felt);color:var(--tour-text);cursor:pointer;list-style:none}
.tournament-preferences summary::-webkit-details-marker{display:none}
.tournament-preferences summary svg{width:20px;height:20px}
.tournament-preferences[open] summary{border-color:var(--tour-gold)}
.preferences-panel{position:absolute;right:0;top:calc(100% + 12px);z-index:35;display:grid;gap:13px;width:min(320px,calc(100vw - 32px));padding:20px;border:1px solid var(--tour-rule-strong);border-radius:18px;background:var(--tour-felt);color:var(--tour-text);box-shadow:0 18px 55px #0004;max-height:calc(100svh - 100px);overflow:auto}
.preferences-panel h2{font:800 18px/1.3 var(--font);text-transform:none;letter-spacing:0;text-wrap:initial}
.preferences-panel label{display:grid;gap:5px;font-weight:700}
.preferences-panel select{width:100%;max-width:none;min-width:0;font-family:var(--font)}
.preferences-panel .preference-check{display:flex;align-items:center;justify-content:space-between}
.preferences-panel input{accent-color:var(--tour-gold);width:18px;height:18px}
.preferences-panel p{font-size:12px;color:var(--tour-muted);line-height:1.5}
.tournament-page .hero-links .btn{white-space:normal;text-align:center}
.tournament-page .hero-links>.text-link{flex-shrink:0}
.tournament-page .now{min-width:0}
.tournament-page .now-items,.tournament-page .now-item{min-width:0}
.tournament-page .now-item .label{white-space:normal}
.tournament-page .now-day strong{white-space:normal}
.tournament-page .now-countdown .label{white-space:normal;min-width:0}
.tournament-page .now-countdown strong{flex-shrink:0}
.tournament-page .now-zone{min-width:0}
.tournament-page .now-zone .timezone{max-width:220px;min-width:0}
.tournament-page .ribbon-stage h3{overflow-wrap:anywhere}
.tournament-page .format-head{flex-wrap:wrap;gap:6px 12px}
.tournament-page .format-head .label{margin-left:auto}
.tournament-page .stage-switch button small{white-space:normal}
.tournament-page .stage-switch button{min-width:0;grid-template-columns:minmax(0,1fr);overflow-wrap:anywhere}
html.fable-no-motion *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(max-width:760px){
  .header-tools{gap:8px}
  .header-analysis{width:44px;padding-inline:0}
  .header-analysis .button-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .preferences-panel{position:fixed;right:16px;top:76px}
  .tournament-page .now-zone .timezone{max-width:160px}
  .tournament-page .hero-links{gap:14px}
  .tournament-page .hero-links .btn{padding-inline:12px;font-size:14px}
  .tournament-page .stage-switch button{padding-inline:10px}
  .tournament-page .now-item .label{overflow-wrap:anywhere}
  .tournament-page .now-countdown{align-items:center}
}
