/* Ski Resort Tycoon (with sim3d.css, ski3d.css, tycoon-kit.css). Build bar + menu follow Waterpark Tycoon's layout. */
.sim-result[hidden] { display: none; }
.st-tools { top: 10px; bottom: auto; right: 10px; flex-wrap: wrap; justify-content: flex-end; max-width: 46%; }
.st-tools button, .st-cam button { min-width: 36px; }
.st-cam { top: auto; bottom: 150px; right: 10px; flex-direction: column; }
.sim-overlay:has(.wp-bar.is-shut) .st-cam { bottom: 10px; }
.wp-bar.is-shut ~ .wp-tip { bottom: 58px; }
.wp-menu { top: 56px; width: min(360px, calc(100% - 20px)); max-height: calc(100% - 200px); overflow: auto; }
.wp-menu .wp-info { margin: 2px 0 8px; font-size: 13px; }
.wp-menu .wp-warn { margin: 0 0 8px; padding: 6px 8px; border-radius: 10px; background: rgba(185, 28, 28, .35); border: 1px solid rgba(248, 113, 113, .6); font-size: 12.5px; }
.st-warn { color: #fca5a5; font-weight: 800; }
/* the build bar */
.wp-bar { position: absolute; left: 8px; right: 8px; bottom: 8px; background: rgba(8, 16, 28, .86); border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; padding: 6px; display: flex; flex-direction: column; gap: 5px; z-index: 2; }
.wp-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; align-items: center; }
.wp-tabs::-webkit-scrollbar { display: none; }
.wp-tabs__h { flex: 0 0 auto; font: 900 12.5px system-ui, sans-serif; color: #fde047; padding: 0 4px 0 2px; }
.wp-bar.is-shut { right: auto; max-width: calc(100% - 70px); }
.wp-bar.is-shut .wp-items { display: none; }
.wp-tabs button { flex: 0 0 auto; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #e2e8f0; border-radius: 999px; padding: 4px 11px; font: 800 12.5px system-ui, sans-serif; cursor: pointer; min-height: 30px; }
.wp-tabs button.is-on { background: #0ea5e9; border-color: #7dd3fc; color: #fff; }
.wp-items { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.wp-it { flex: 0 0 auto; width: 100px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 4px; border-radius: 11px; border: 2px solid rgba(255, 255, 255, .14); background: rgba(30, 58, 95, .7); color: #fff; cursor: pointer; font: inherit; }
.wp-it span { font-size: 22px; line-height: 1.1; min-height: 25px; display: flex; align-items: center; }
.wp-it b { font: 800 11px/1.15 system-ui, sans-serif; text-align: center; min-height: 26px; display: flex; align-items: center; }
.wp-it small { font: 800 11px system-ui, sans-serif; color: #86efac; text-align: center; }
.wp-it:hover { border-color: #7dd3fc; }
.wp-it.is-on { border-color: #fde047; background: rgba(202, 138, 4, .5); }
.wp-it.is-poor small { color: #fca5a5; }
.wp-it.is-locked { opacity: .5; } .wp-it.is-locked small { color: #fde047; }
.wp-it.is-built { background: rgba(21, 128, 61, .45); }
.wp-it:focus-visible, .wp-tabs button:focus-visible { outline: 3px solid #ffd54a; outline-offset: 1px; }
.wp-tip { position: absolute; left: 50%; bottom: 146px; transition: bottom .2s; transform: translateX(-50%); max-width: min(560px, calc(100% - 24px)); background: rgba(8, 16, 28, .82); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 5px 12px; font: 800 13px system-ui, sans-serif; text-align: center; pointer-events: none; color: #fff; }
.wp-tip[hidden] { display: none; }
/* run grade dots */
.st-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: 4px; box-shadow: 0 0 0 1.5px #fff; }
.wp-it .st-dot { width: 18px; height: 18px; margin: 0; }
.st-green { background: #16a34a; } .st-blue { background: #2563eb; border-radius: 2px; } .st-red { background: #dc2626; border-radius: 2px; } .st-black { background: #0f172a; border-radius: 1px; transform: rotate(45deg) scale(.82); }
/* side panel */
.wp-price { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.wp-price span { flex: 1; } .wp-price b { min-width: 46px; text-align: center; font-size: 15px; }
.wp-price button { min-width: 32px; min-height: 30px; padding: 2px 8px; font-weight: 900; }
.tk-side .tk-item { padding: 2px 0; font-size: 13px; }
.st-bad { color: #fca5a5; }
.sim-overlay .sim-result { z-index: 8; }
.sim-overlay.is-over .wp-bar, .sim-overlay.is-over .wp-tip, .sim-overlay.is-over .st-cam, .sim-overlay.is-over .tk-label, .sim-overlay.is-over .wp-menu { display: none; }
.st-res { max-width: 440px; max-height: calc(100% - 16px); overflow-y: auto; padding: 12px 18px; } .st-res h3 { font-size: 19px; } .st-res .tk-report { font-size: 13px; margin: 4px 0; } .st-res .tk-report td { padding: 2px 4px; } .st-voices { text-align: left; margin: 4px auto 6px; padding-left: 18px; font-size: 13px; max-width: 360px; } .st-voices li { margin: 2px 0; } .st-voices small { opacity: .65; }
.st-fc { font-weight: 800; color: #7dd3fc; margin: 4px 0; }
.st-lift { z-index: 1; }
/* skiing a run yourself: hide the manager UI */
.sim-overlay.is-riding .wp-bar, .sim-overlay.is-riding .wp-tip, .sim-overlay.is-riding .tk-hud, .sim-overlay.is-riding .tk-label, .sim-overlay.is-riding .st-cam, .sim-overlay.is-riding .wp-menu, .sim-overlay.is-riding .tk-float { display: none; }
.wp-ride { position: absolute; right: 14px; bottom: 84px; background: rgba(8, 16, 28, .75); border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; padding: 6px 14px; text-align: center; pointer-events: none; }
.wp-ride b { display: block; font: 900 30px/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.wp-ride small { font: 800 10px system-ui, sans-serif; letter-spacing: .1em; opacity: .75; }
@container (max-width: 560px) {
  .tk-hud { max-width: calc(100% - 16px); top: 6px; left: 6px; gap: 4px; }
  .tk-hud > div { font-size: 12px; padding: 3px 7px; }
  .st-tools { top: 40px; right: 6px; left: auto; max-width: none; gap: 3px; }
  .st-cam { top: auto; bottom: 124px; right: 6px; left: auto; flex-direction: column; gap: 3px; }
  .st-cam button, .st-tools button { min-width: 30px; min-height: 30px; padding: 3px 5px; font-size: 13px; width: auto; }
  .wp-menu { top: 78px; bottom: auto; max-height: calc(100% - 200px); }
  .wp-bar { left: 4px; right: 4px; bottom: 4px; padding: 4px; gap: 4px; }
  .wp-tabs button { padding: 3px 8px; font-size: 11.5px; min-height: 28px; }
  .wp-it { width: 80px; padding: 3px; } .wp-it span { font-size: 18px; } .wp-it b { font-size: 10px; min-height: 24px; } .wp-it small { font-size: 10px; }
  .wp-tip { bottom: 124px; font-size: 11px; padding: 4px 8px; max-width: calc(100% - 70px); }
  .wp-ride { bottom: 80px; } .wp-ride b { font-size: 22px; }
}
