/* V51.5 — final cabinet polish. Local refinements only; no change to approved
   title, garage, podium scenery or kart art. */
#app #menu #update-ready[hidden]{display:none!important}
#app #menu #update-ready{
  position:absolute;z-index:9;right: max(12px,env(safe-area-inset-right));
  bottom:max(12px,env(safe-area-inset-bottom));font-size:var(--type-button);
  min-height:34px;padding:.55em 1em;color:#ffe693;border-color:#ffe693;
  box-shadow:0 3px #081b36;text-align:center;max-width:45%;white-space:normal;
}
#app #career.active .career-content {scrollbar-width:thin;scrollbar-color:#90b7dc #0c2344;}
#app #career.active .career-content[data-view=records] .career-table tr:nth-child(even) td{background:#183d67}
#app #career.active .career-content .career-table tr.you td{background:#66501f;color:#fff0bc}
#app #career.active .career-content .career-card p,#app #career.active .career-content .arcade-event p{color:#edf3fa;line-height:1.3!important}
#app #career.active .career-content .career-cup .career-line p{color:#edf3fa;line-height:1.3!important}
#app #options.active .settings-panel .pit-card-actions small{color:#eef4fc;line-height:1.35!important}
#app #ranking .rank-card .rank-time{display:grid;justify-items:end;gap:2px;line-height:1.05}
#app #ranking .rank-card.my-rank{outline-offset:-2px;box-shadow:inset 0 0 0 1px #ffdf64,0 2px #08172b}
#app #ranking .rank-card.my-rank .rank-name small{color:#fff0ac;font-weight:900!important}
#app #ranking .rank-card .rank-gap{color:#c5d9ec;font-variant-numeric:tabular-nums}
#app #replay .replay-timeline{display:flex;align-items:center;gap:6px;min-width:0;line-height:1}
#app #replay .replay-timeline small{white-space:nowrap;color:#d6e7f7;font-size:clamp(8px,2dvh,12px)}
#app #replay .replay-timeline progress{appearance:none;-webkit-appearance:none;flex:1;min-width:20px;width:100%;height:5px;border:0;border-radius:2px;background:#3c5676;overflow:hidden}
#app #replay .replay-timeline progress::-webkit-progress-bar{background:#3c5676}
#app #replay .replay-timeline progress::-webkit-progress-value{background:#ffdd61}
#app #replay .replay-timeline progress::-moz-progress-bar{background:#ffdd61}
/* Keep reading copy genuinely legible on phone landscape. The scrollable
   career pane can grow vertically rather than compressing text. */
@media(orientation:landscape) and (min-width:650px) and (max-height:460px){
  #app #career.active .career-panel .career-content :is(.career-card p,.arcade-event p,.career-cup .career-line p){font-size:clamp(10px,2.75dvh,12px)!important;line-height:1.3!important}
  #app #career.active .career-panel .career-content :is(.career-label,.event-footer small,.cup-stages small,.cup-stages span){font-size:clamp(9px,2.45dvh,11px)!important;line-height:1.2!important}
  #app #options.active .settings-panel .pit-card-actions :is(small,#difficulty-note){font-size:clamp(10px,2.8dvh,12px)!important;line-height:1.3!important}
  #app #options.active .settings-panel .settings-group.pit-card{grid-template-rows:auto clamp(30px,19dvh,86px) minmax(0,1fr)!important}
}
@media(orientation:landscape) and (max-width:649px){
  #app #career.active .career-panel .career-content :is(.career-card p,.arcade-event p,.career-cup .career-line p){font-size:10px!important;line-height:1.25!important}
  #app #options.active .settings-panel .pit-card-actions :is(small,#difficulty-note){font-size:9px!important;line-height:1.25!important}
}
@media(prefers-reduced-motion:no-preference){
  #app :is(#mode,#select,#tracks,#career,#options).active :is(.mode-frame,.garage-frame,.circuit-frame,.career-panel,.settings-panel){animation:snk-polish-arrive .18s cubic-bezier(.2,.8,.2,1) both}
  @keyframes snk-polish-arrive{from{opacity:.88;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
}
