/* Sailing Regatta 3D : page-specific styles (shared styles come from the hub kit) */
#game-root .sim-controls-help { margin-top: 14px; }
#game-root .ak-pick.is-locked { opacity: .55; }
/* easy / racing toggle on the setup screen */
.sr-modes { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.sr-modes .btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 14px; }
.sr-modes small { font-weight: 600; opacity: .8; }
.sr-modes__h { width: 100%; margin: 0 0 2px; font-size: 1.05rem; }
/* top centre: wind + race status */
.sr-hud { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; pointer-events: none; max-width: calc(100% - 330px); }
.sr-wind { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 62px; height: 62px; flex: none; border-radius: 50%; background: rgba(8, 16, 28, .78); border: 2px solid rgba(125, 211, 252, .6); }
.sr-wind__a { font-style: normal; font-size: 24px; line-height: 1; color: #7dd3fc; display: inline-block; transition: transform .2s; }
.sr-wind__k { font: 800 9.5px system-ui, sans-serif; color: #e0f2fe; margin-top: 2px; }
.sr-pos { background: rgba(8, 16, 28, .78); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 6px 11px; font: 800 13px system-ui, sans-serif; color: #fff; }
.sr-pos b { color: #fde047; }
/* bottom centre: trim gauge */
.sr-trim { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); width: 230px; background: rgba(8, 16, 28, .78); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 5px 10px 6px; text-align: center; pointer-events: none; color: #fff; }
.sr-trim__t, .sr-trim__s { display: block; font: 800 11px system-ui, sans-serif; }
.sr-trim__s { color: #86efac; margin-top: 3px; }
.sr-trim.is-bad .sr-trim__s { color: #fca5a5; }
.sr-trim__bar { position: relative; height: 10px; margin-top: 4px; border-radius: 5px; background: rgba(255, 255, 255, .15); }
.sr-trim__bar i { position: absolute; top: 0; bottom: 0; background: rgba(34, 197, 94, .55); border-radius: 5px; }
.sr-trim__bar b { position: absolute; top: -4px; width: 5px; height: 18px; margin-left: -2px; border-radius: 2px; background: #fff; box-shadow: 0 0 4px rgba(0, 0, 0, .6); }
.sr-touch .sim-tbtn[data-id="spin"] { order: 2; margin-left: auto; background: rgba(220, 38, 38, .7); }
.sr-touch .sim-tbtn[data-id="gas"], .sr-touch .sim-tbtn[data-id="brake"] { font-size: 12px; }
.sim-has-touch .sr-trim { bottom: 100px; }
.w3-board { top: 80px; }
@container (max-width: 720px) { .sr-hud { max-width: calc(100% - 120px); left: 12px; transform: none; top: 52px; } .w3-board { top: 128px; } }
@container (max-width: 480px) {
  .sr-hud { top: 92px; left: 8px; gap: 5px; max-width: calc(100% - 110px); }
  .sr-wind { width: 50px; height: 50px; } .sr-wind__a { font-size: 19px; } .sr-wind__k { font-size: 7.5px; white-space: nowrap; }
  .sr-pos { font-size: 11px; padding: 4px 8px; }
  .sr-trim { width: 180px; }
  .w3-board { display: none !important; }  /* your place is already in the status pill; the list covered the target arrow */
  .sim-has-touch .sr-trim { bottom: 92px; left: auto; right: 8px; transform: none; width: 150px; }
}
