/* ---- Start shooting + Shooting view ---- */
#shStartBtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 58px; margin: 0 0 12px; font-size: 1.2rem; font-weight: 800; border-radius: 14px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
#shStartBtn small { font-size: 0.78rem; font-weight: 600; }
.pkFlash { outline: 3px solid var(--warn); outline-offset: 3px; border-radius: 10px; transition: outline-color .3s; }
.slEmpty { padding: 12px; border: 1px dashed var(--border); border-radius: 10px; color: var(--text); font-size: 0.9rem; background: var(--panel); margin: 4px 0 8px; }
#shView { position: fixed; inset: 0; z-index: 31; background: var(--bg); color: var(--text); display: none; flex-direction: column; gap: 8px; padding: max(8px, env(safe-area-inset-top)) 12px max(8px, env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; overflow: hidden; }
#shView.show { display: flex; }
body.shOn { overflow: hidden; }
body.shOn #tabBar, body.shOn #shotBan { display: none !important; }
#shGun { max-width: 9rem; margin-top: 2px; font-size: 0.75rem; min-height: 32px; }
#shView button { margin: 0; }
.shTop { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.shTop #shExit { flex: 0 0 auto; }
.shTt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.shTt b { font-size: 1rem; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shTt small { font-size: 0.75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shRadBox { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; max-width: 62%; }
#shRadar { font-size: 0.75rem; color: var(--muted); text-align: right; line-height: 1.2; max-width: 9.5em; }
#shRadar.ok { color: var(--pos); } #shRadar.bad { color: var(--warn); }
#shConn { flex: 0 0 auto; }
.shMain { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.shL { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; }
.shR { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; min-height: 0; }
#shRec { flex: 0 0 auto; margin: 0; padding: 6px 8px; }
.shHero { display: flex; align-items: baseline; justify-content: center; gap: 10px; flex-wrap: wrap; background: var(--panel); border: 2px solid var(--accent); border-radius: 16px; padding: 4px 10px 6px; }
.shHero.dis { border-color: var(--border); }
#shV { font-size: clamp(64px, 23vw, 124px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: var(--text); }
.shHero.dis #shV { text-decoration: line-through; color: var(--muted); }
#shVu { font-size: 1rem; color: var(--muted); font-weight: 700; }
#shMeta { font-size: clamp(22px, 7vw, 34px); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
#shDev { color: var(--text); border-radius: 8px; padding: 0 .15em; }
#shMeta.wait { font-size: 1rem; font-weight: 600; color: var(--muted); white-space: normal; text-align: center; }
#shEndNote { font-size: 0.85rem; color: var(--warn); text-align: center; font-weight: 700; }
.shStats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.shStats div { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 3px 4px; text-align: center; min-width: 0; }
.shStats b { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shStats span { display: block; font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.shStats .w2 { grid-column: span 2; }
#shEs { font-size: 0.95rem; font-weight: 700; text-align: center; color: var(--text); }
#shEs small { font-weight: 500; color: var(--muted); }
#shDope { display: flex; gap: 6px; font-size: 0.82rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 4px 0; justify-content: space-between; flex-wrap: wrap; color: var(--muted); }
#shDope b { color: var(--text); font-variant-numeric: tabular-nums; }
#shList { flex: 1 1 auto; min-height: 60px; overflow-y: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.shRow { display: flex; align-items: center; gap: 8px; padding: 0 4px 0 10px; min-height: 44px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.shRow:last-child { border-bottom: 0; }
.shRow .n { color: var(--muted); font-size: 0.8rem; width: 2.4em; }
.shRow .v { font-weight: 800; font-size: 1.1rem; width: 3.2em; }
.shRow .dv { color: var(--muted); font-size: 0.85rem; width: 4.2em; }
.shRow .shTg { flex: 1 1 auto; min-width: 0; font-size: 0.75rem; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shRow button { width: 44px; min-width: 44px; height: 40px; min-height: 40px; padding: 0; font-size: 1.05rem; background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: 8px; }
.shRow.dis { opacity: 0.55; }
.shRow.dis .v { text-decoration: line-through; }
.shRow.new { background: var(--hover); }
.shEmpty { padding: 10px; color: var(--muted); font-size: 0.9rem; }
#shAddBox, #shTagBar, #shStrMenu { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--accent); border-radius: 12px; padding: 6px; flex: 0 0 auto; }
#shAddBox[hidden], #shTagBar[hidden], #shStrMenu[hidden] { display: none; }
#shVel { flex: 1 1 8em; min-width: 0; font-size: 1.5rem; font-weight: 800; text-align: center; min-height: 52px; }
#shAddBox button { width: auto; min-height: 52px; padding: 0 16px; }
#shTagBar .lbl2 { width: 100%; font-size: 0.75rem; color: var(--muted); margin: 0; }
#shTagBar button { width: auto; flex: 1 1 auto; padding: 0 10px; min-height: 44px; font-size: 0.9rem; background: var(--input); color: var(--text); border: 1px solid var(--border); }
#shTagBar button.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
#shNote { flex: 1 1 100%; min-height: 44px; }
.shBtns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; flex: 0 0 auto; }
.shBtns button { min-height: 58px; padding: 4px; font-size: 0.95rem; line-height: 1.15; border-radius: 12px; }
.shBtns button.ghost { background: var(--input); color: var(--text); border: 1px solid var(--border); }
.shBtns .bad { background: var(--danger-bg); color: var(--err); border: 1px solid var(--danger-b); }
.shBtns .w3 { grid-column: 1 / -1; min-height: 50px; }
.shBtns .w2 { grid-column: span 2; }
.shBtns button small { display: block; font-size: 0.7rem; font-weight: 600; }
.shBtns button.on { box-shadow: 0 0 0 2px var(--warn); }
#shView .shBtns button:active { transform: scale(0.97); }
@media (orientation: landscape) and (max-height: 600px) {
  #shView { max-width: none; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); gap: 6px; }
  .shMain { flex-direction: row; gap: 10px; }
  .shL { flex: 1 1 50%; min-width: 0; overflow-y: auto; }
  .shR { flex: 1 1 50%; min-width: 0; }
  #shV { font-size: clamp(48px, 19vh, 96px); }
  #shMeta { font-size: clamp(18px, 7vh, 30px); }
  .shStats b { font-size: 1rem; }
  .shBtns button { min-height: 44px; font-size: 0.85rem; }
  .shBtns .w3 { min-height: 44px; }
  #shList { min-height: 44px; }
}
/* wind dial gestures */
#dial { touch-action: pan-y; }
#dial.on { box-shadow: 0 0 0 3px var(--accent); border-radius: 50%; cursor: grabbing; }
#dial.locked { opacity: 0.5; cursor: not-allowed; }
#windSpeed, #windDir { cursor: text; }
#windLock[aria-pressed=true] { background: var(--warn-b); color: var(--text); border-color: var(--warn); }
#toast.act { width: max-content; }
body.shOn #toast { bottom: auto; top: max(6px, env(safe-area-inset-top)); }
@media (max-width: 479px) { .shRadBox:has(#shConn:not([hidden])) #shRadar { display: none; } }
/* shpolish: outlier colours, String ▾ menu, header, tighter list */
.dvW { color: var(--warn) !important; }
.dvB { color: var(--err) !important; }
html[data-theme=night] .dvW { box-shadow: inset 0 0 0 2px var(--warn); border-radius: 6px; }
html[data-theme=night] .dvB { background: var(--err); color: #000 !important; border-radius: 6px; }
.shRow .dv.dvW, .shRow .dv.dvB { font-weight: 800; padding: 0 .25em; width: auto; min-width: 3.7em; }
#shStrMenu .lbl2 { width: 100%; font-size: 0.75rem; color: var(--muted); margin: 0; }
#shStrMenu button { flex: 1 1 30%; min-width: 0; min-height: 52px; padding: 4px; font-size: 0.86rem; white-space: nowrap; line-height: 1.15; background: var(--input); color: var(--text); border: 1px solid var(--border); border-radius: 10px; }
#shStrMenu button small { display: block; font-size: 0.68rem; color: var(--muted); font-weight: 500; }
#shStrMenu button.on { box-shadow: 0 0 0 2px var(--warn); }
.shRow { min-height: 42px; }
.shRow button { height: 40px; min-height: 40px; }
@media (max-width: 479px) {
  #shFor { display: none; }
  .shTop { gap: 6px; }
  .shTt b { font-size: 1rem; white-space: normal; overflow: visible; text-overflow: clip; }
  #shExit, #shConn { padding: 0 9px; font-size: 0.86rem; }
}
@media (max-height: 800px) and (orientation: portrait) {
  #shView { gap: 6px; }
  .shMain, .shR { gap: 6px; }
  .shL { gap: 4px; }
  .shStats b { font-size: 1.05rem; }
  .shStats span { font-size: 0.62rem; }
  #shEs { font-size: 0.88rem; line-height: 1.25; }
  #shDope { font-size: 0.78rem; padding: 2px 0; }
  .shBtns button { min-height: 52px; }
  .shBtns .w2 { min-height: 52px; }
}
