/* Ski Jumping 3D : page-specific styles (shared: sim3d.css, ski3d.css) */
.sj3-list { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.sj3-list h3 { grid-column: 1 / -1; margin: 0 0 4px; }
.sj3-list button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: inherit; cursor: pointer; font: inherit; }
.sj3-list button.is-on { border-color: #7dd3fc; background: rgba(14, 165, 233, .16); } .sj3-list button:disabled { opacity: .45; cursor: not-allowed; }
.sj3-list small { font-size: 11.5px; opacity: .8; } .sj3-list button:focus-visible { outline: 3px solid #ffd54a; outline-offset: 1px; }
.sj3-wind { position: absolute; right: 12px; top: 12px; background: rgba(10, 24, 44, .78); color: #e2e8f0; border-radius: 999px; padding: 4px 12px; font: 800 12px system-ui, sans-serif; white-space: nowrap; pointer-events: none; }
/* take-off timing bar */
.sj3-timing { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: min(360px, 70%); background: rgba(10, 24, 44, .8); border-radius: 12px; padding: 8px 10px 4px; opacity: 0; transition: opacity .2s; pointer-events: none; text-align: center; }
.sj3-timing.is-on { opacity: 1; }
.sj3-timing__bar { position: relative; height: 14px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.sj3-timing__bar i { position: absolute; top: 0; bottom: 0; } .sj3-timing__bar .y1 { left: 60%; width: 15%; background: rgba(250, 204, 21, .6); } .sj3-timing__bar .g { left: 75%; width: 6%; background: #22c55e; } .sj3-timing__bar .y2 { left: 81%; width: 15%; background: rgba(250, 204, 21, .6); }
.sj3-timing__bar b { position: absolute; top: -5px; bottom: -5px; width: 5px; margin-left: -2.5px; background: #fff; border-radius: 2px; box-shadow: 0 0 6px #fff; }
.sj3-timing span { font: 900 10px system-ui, sans-serif; color: #bbf7d0; letter-spacing: .1em; margin-left: 56%; }
/* balance box: up = lean forward, sideways = roll */
.sj3-bal { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); text-align: center; opacity: 0; transition: opacity .2s; pointer-events: none; }
.sj3-bal.is-on { opacity: 1; }
.sj3-bal__box { position: relative; width: 104px; height: 104px; border-radius: 14px; background: rgba(10, 24, 44, .75); border: 2px solid rgba(255, 255, 255, .25); margin: 0 auto; }
.sj3-bal__box .z { position: absolute; left: 38%; top: 38%; width: 24%; height: 24%; border-radius: 6px; background: rgba(34, 197, 94, .35); border: 2px solid #22c55e; }
.sj3-bal__box b { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #f87171; border: 2px solid #fff; box-shadow: 0 0 8px rgba(0, 0, 0, .5); }
.sj3-bal__box b.is-ok { background: #4ade80; }
.sj3-bal small { display: block; font: 800 10px system-ui, sans-serif; color: #e2e8f0; margin-top: 3px; text-shadow: 0 1px 3px #000; }
.sj3-touch .sim-tbtn[data-id="brake"] { visibility: hidden; }
.sj3-touch .sim-tbtn[data-id="tuck"], .sj3-touch .sim-tbtn[data-id="jump"] { font-size: 14px; font-weight: 900; }
/* results */
.sj3-big { font: 900 28px system-ui, sans-serif; margin: 2px 0; }
.sj3-pts { margin: 2px 0; } .sj3-pts b { color: #fde047; } .sj3-tot { font-size: 1.15em; }
.sj3-j i { font-style: normal; font-weight: 800; color: #fde047; margin: 0 2px; } .sj3-j i.is-drop { color: #94a3b8; text-decoration: line-through; font-weight: 600; }
.sj3-why { font-size: 13px; opacity: .85; margin: 4px 0; }
.sj3-medal { font: 900 20px system-ui, sans-serif; margin: 6px 0; }
.sj3-res { max-width: 540px; }
.sj3-tblw { max-height: 180px; overflow: auto; margin: 6px 0; }
.sj3-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.sj3-table th, .sj3-table td { padding: 3px 6px; border-bottom: 1px solid rgba(255, 255, 255, .1); white-space: nowrap; }
.sj3-table tr.is-me td { background: rgba(250, 204, 21, .18); font-weight: 800; }
.sj3-cc { font: 800 10px system-ui, sans-serif; font-style: normal; background: rgba(255, 255, 255, .14); border-radius: 4px; padding: 1px 4px; margin-right: 2px; }
.sim-has-touch .sj3-timing { bottom: 84px; }
@container (max-width: 560px) {
  .sj3-wind { top: 52px; right: 8px; font-size: 11px; } .sj3-bal { right: 8px; top: 44%; }
  .sj3-bal__box { width: 84px; height: 84px; }
  .sj3-big { font-size: 20px; } .sj3-table { font-size: 11.5px; } .sj3-res h3 { font-size: 15px; margin: 0; } .sj3-pts { font-size: 12.5px; } .sj3-why { display: none; } .sj3-tblw { max-height: 110px; } .sj3-medal { font-size: 16px; margin: 2px 0; }
}
