.game-atlas { width: min(100%,86rem); margin: auto; padding: clamp(1.8rem,4vw,4rem) var(--gutter) clamp(3rem,6vw,6rem); color: var(--ink); }
.game-atlas [hidden] { display: none !important; }
.game-atlas :is(h1,h2,p) { margin: 0; }
.game-atlas :is(button,input) { font: inherit; color: inherit; }
.game-atlas button { cursor: pointer; border: 0; background: transparent; }
.game-atlas button:disabled { cursor: default; opacity: .48; }
.game-atlas :is(a,button,input,summary):focus-visible { outline: 3px solid #386800; outline-offset: 2px; }
.game-atlas a { color: inherit; text-underline-offset: .2em; }
.ga-mast,.ga-standings header,.ga-rail-head,.ga-graph-head,.ga-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.ga-mast { align-items: flex-end; flex-wrap: wrap; margin-bottom: clamp(1.2rem,2.3vw,2.25rem); }
.ga-mast h1 { font: 800 clamp(3.25rem,8vw,7.8rem)/.92 var(--font-display); letter-spacing: -.045em; }
.ga-mast h1 em { font: italic 400 1.04em/.92 Georgia,serif; letter-spacing: -.045em; }
.ga-modes { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.ga-modes button { padding: .6rem .8rem; min-height: 44px; font-weight: 700; margin-bottom: -1px; border-bottom: 3px solid transparent; }
.ga-modes button[aria-pressed=true] { border-color: var(--ink); }
.ga-desk { display: grid; grid-template-columns: minmax(0,1fr) minmax(17rem,26%); align-items: stretch; }
.ga-graph { background: #171916; color: #faf8ed; padding: clamp(1rem,2.2vw,2rem); display: flex; flex-direction: column; min-width: 0; }
.ga-graph-head { align-items: start; }
.ga-graph h2 { font: 500 .84rem/1.4 var(--font-mono); color: #e0e1d9; }
#chart-date { color: #faf8ed; margin-top: .2rem; font: 650 clamp(1.65rem,3.45vw,3.25rem)/1.08 var(--font-sans); letter-spacing: -.06em; }
.ga-periods { display: flex; flex: none; gap: 2px; }
.ga-periods button { color: #dddcd5; min-width: 40px; min-height: 40px; padding: 0 .4rem; font: 500 .82rem var(--font-mono); border-bottom: 2px solid transparent; }
.ga-periods button[aria-pressed=true] { color: var(--acid); border-color: var(--acid); }
.ga-graph :is(button,input):focus-visible { outline-color: var(--acid); }
.ga-plot { position: relative; margin-top: 1.2rem; flex: 1; min-height: 13rem; }
#rank-plot { display: block; position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; cursor: crosshair; touch-action: pan-y pinch-zoom; }
#rank-plot text { font: 11px var(--font-mono); fill: #c8ccc0; }
#plot-empty { position: absolute; top: 43%; left: 18%; max-width: 66%; padding: .65rem .9rem; text-align: center; background: #171916; font-size: .9rem; color: #e0e1d9; pointer-events: none; }
.ga-scrub { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: .7rem; padding-top: .3rem; }
.ga-scrub button { min-height: 42px; color: #eee; font-size: 1.1rem; }
.ga-scrub input { min-width: 0; width: 100%; min-height: 36px; accent-color: var(--acid); cursor: pointer; }
.ga-rail { min-width: 0; padding: clamp(1.05rem,1.9vw,1.8rem); background: #e9e5da; border: 1px solid var(--line); display: flex; flex-direction: column; gap: .85rem; }
.ga-rail-head h2 { font-size: 1.28rem; letter-spacing: -.04em; }
#pick-count,.ga-rank,.ga-mark,.ga-foot,.ga-standings thead,.ga-num,#draft-tools small { font: 400 .78rem/1.45 var(--font-mono); }
#pick-count { white-space: nowrap; }
.ga-picker { position: relative; }
.ga-picker:before { content: ''; position: absolute; pointer-events: none; width: 11px; height: 11px; left: 14px; top: 14px; border: 1.5px solid #51534e; border-radius: 50%; }
.ga-picker:after { content: ''; position: absolute; pointer-events: none; width: 7px; height: 1.5px; background: #51534e; transform: rotate(46deg); left: 23px; top: 25px; }
.ga-rail input { width: 100%; min-width: 0; height: 44px; padding: .55rem; border: 1px solid #88877d; border-radius: 0; background: #faf8f0; font-size: 1rem; }
#game-search { padding-left: 2.35rem; }
#search-results { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; max-height: min(21rem,45vh); overflow: auto; border: 1px solid #75766c; background: #faf8f0; box-shadow: 0 5px 14px #0002; }
#search-results :is(button,p) { display: block; width: 100%; padding: .58rem .7rem; text-align: left; font-size: .91rem; overflow-wrap: anywhere; min-height: 44px; }
#search-results button:hover,#search-results button:focus-visible { background: var(--paper-deep); }
#search-results small { display: block; color: #55564f; line-height: 1.3; }
.ga-pick { display: flex; gap: .5rem; align-items: center; padding: .48rem 0; border-bottom: 1px solid #c2beb2; }
.ga-mark { background: #242622; color: var(--series); padding: .1rem .35rem; font-weight: 700; min-width: 2.5rem; text-align: center; }
.ga-name { flex: 1; font-size: .94rem; font-weight: 650; line-height: 1.26; overflow-wrap: anywhere; }
.ga-pick button { flex: none; min-width: 26px; min-height: 32px; padding: 0 .16rem; font-size: 1rem; }
.ga-rail .ga-share,.ga-rail .ga-action,.ga-more { font-weight: 650; min-height: 44px; }
.ga-rail .ga-share { display: flex; justify-content: space-between; align-items: center; margin-top: auto; border-top: 1px solid #aca99c; padding: .65rem 0 0; text-align: left; }
.ga-share span { font-size: 1.25rem; }
#draft-tools { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .42rem; }
#draft-tools label,#draft-tools small { grid-column: 1 / -1; }
#draft-tools label { font-weight: 650; font-size: .86rem; }
.ga-rail .ga-action { background: var(--ink); color: var(--paper); padding: .5rem .65rem; font-size: .85rem; }
#atlas-status:not(:empty),#table-empty { margin-top: .75rem; font-size: .95rem; }
.ga-standings { margin-top: clamp(2.3rem,5vw,4.6rem); }
.ga-standings header { align-items: baseline; margin-bottom: 1rem; }
.ga-standings h2 { font: 700 clamp(1.65rem,3.2vw,3rem)/1.1 var(--font-sans); letter-spacing: -.055em; }
.ga-standings header a,.ga-foot { font-size: .83rem; }
.ga-standings table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
.ga-standings :is(th,td) { padding: .57rem .4rem; border-bottom: 1px solid var(--line); }
.ga-standings thead { border-top: 2px solid var(--ink); }
.ga-standings thead th { font-weight: 500; }
.ga-standings :is(th,td):first-child { width: 9%; min-width: 3rem; }
.ga-standings td { font: .94rem/1.4 var(--font-mono); }
.ga-standings th[scope=row] { font-size: clamp(.98rem,1.45vw,1.28rem); line-height: 1.22; overflow-wrap: anywhere; }
.ga-standings th[scope=row] a { text-decoration: none; }
.ga-standings th[scope=row] a:hover { text-decoration: underline; }
.ga-standings :is(th,td):nth-child(n+3) { text-align: right; }
.ga-standings .ga-add { font-size: 1.2rem; line-height: 1; min-width: 38px; min-height: 36px; border: 1px solid var(--line); }
.ga-standings td:has(.ga-add) { width: 3.5rem; padding-block: .15rem; }
.ga-standings .ga-more { margin-top: .55rem; text-decoration: underline; text-underline-offset: .18em; }
.ga-foot { border-top: 1px solid var(--ink); align-items: flex-start; padding-top: 1rem; margin-top: clamp(2.5rem,5vw,5rem); }
.ga-foot summary { cursor: pointer; }
.ga-foot p { max-width: 76ch; margin: .8rem 0 0; }
.ga-foot > a { text-align: right; }
.ga-sr { clip-path: inset(50%); width: 1px; height: 1px; position: absolute; overflow: hidden; white-space: nowrap; }
@media (min-width: 761px) { .ga-graph { min-height: clamp(24rem,34vw,34rem); } }
@media (max-width: 760px) {
  .ga-desk { grid-template-columns: minmax(0,1fr); }
  .ga-graph { min-height: 19rem; }
  .ga-rail { gap: .6rem; }
  #picks { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,12rem),1fr)); column-gap: 1rem; }
  .ga-foot { flex-wrap: wrap; }
}
@media (max-width: 430px) {
  .ga-mast { gap: .8rem; }
  .ga-modes button { padding-inline: .55rem; font-size: .9rem; }
  .ga-periods button { min-width: 32px; }
  .ga-graph-head { gap: .35rem; }
  .ga-graph h2 { font-size: .7rem; }
  .ga-graph { padding: .9rem; }
  .ga-pick button { min-width: 33px; min-height: 38px; }
  .ga-standings :is(th,td) { padding-inline: .18rem; }
  .ga-standings table td { font-size: .8rem; }
  .ga-standings header { gap: .5rem; }
}
#rank-note { grid-column: 1 / -1; }
#ranking-note { margin: -.25rem 0 1rem; max-width: 75ch; overflow-wrap: anywhere; }
#personal-legend { display: flex; flex-wrap: wrap; gap: .22rem .9rem; margin: .4rem 0; font: .75rem/1.4 var(--font-mono); }
#personal-legend span { overflow-wrap: anywhere; }
#personal-legend b { color: var(--series); }

.ga-pin { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .8rem; border-top: 1px solid #3c4039; color: #d6d9cb; font: .76rem/1.4 var(--font-mono); }
.ga-pin button { min-height: 42px; padding: .3rem 0; text-decoration: underline; text-underline-offset: .22em; color: #faf8ed; }
.ga-pin button[aria-pressed=true] { color: var(--acid); }
.ga-shift { white-space: nowrap; }

#edit-ranking { min-height: 44px; padding-inline: .4rem; text-decoration: underline; text-underline-offset: .2em; font-size: .85rem; }
