/* drone-attack.css — the attack mode's video display (on-screen display, noise, cards).
   Instrument text is left-to-right in both languages; messages follow the text direction. */
.da-osd {
  position: fixed; inset: 0; pointer-events: none; overflow: hidden; direction: ltr;
  font: 600 15px var(--f-data); color: #f4f6f0;
  text-shadow: 0 0 2px #000, 0 1px 2px #000, 1px 0 2px #000;
}
.da-osd b { font-weight: 600; font-variant-numeric: tabular-nums; }
.da-osd small { font-size: 10px; opacity: 0.8; margin-inline-start: 3px; }

/* video noise layers */
.da-snow { position: absolute; inset: 0; width: 100%; height: 100%; display: none; mix-blend-mode: screen; }
.da-snow.digital { image-rendering: pixelated; mix-blend-mode: normal; }
.da-roll { position: absolute; left: 0; right: 0; top: 0; height: 22vh; display: none; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.85) 30%, rgba(0,0,0,0.85) 70%, rgba(255,255,255,0.18) 85%, rgba(0,0,0,0)); }
.da-frame { position: absolute; inset: 0; box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.55); }
.da-osd.nosig .da-frame { background: rgba(12, 14, 16, 0.55); }
.da-osd.observer .da-frame { box-shadow: inset 0 0 0 3px rgba(242, 179, 61, 0.55), inset 0 0 60px rgba(0, 0, 0, 0.5); }

/* centre: crosshair, horizon */
.da-cross { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px; }
.da-cross::before, .da-cross::after { content: ""; position: absolute; background: #f4f6f0; box-shadow: 0 0 2px #000; }
.da-cross::before { left: 0; right: 0; top: 12px; height: 2px; clip-path: polygon(0 0, 38% 0, 38% 100%, 62% 100%, 62% 0, 100% 0, 100% 100%, 0 100%); }
.da-cross::after { top: 0; bottom: 0; left: 12px; width: 2px; clip-path: polygon(0 0, 100% 0, 100% 38%, 0 38%, 0 62%, 100% 62%, 100% 100%, 0 100%); }
.da-osd.bomber .da-cross { width: 44px; height: 44px; margin: -22px; border: 2px solid rgba(244, 246, 240, 0.85); border-radius: 50%; }
.da-osd.bomber .da-cross::before { top: 19px; }
.da-osd.bomber .da-cross::after { left: 19px; }
.da-hz { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.da-hz i { position: absolute; top: -1px; height: 2px; width: 70px; right: 46px; background: rgba(244, 246, 240, 0.85); box-shadow: 0 0 2px #000; }
.da-hz i.r { right: auto; left: 46px; }

/* markers */
.da-mk { position: absolute; left: 0; top: 0; width: 0; height: 0; display: none; }
.da-mk i { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border: 2px solid #f4f6f0; box-shadow: 0 0 2px #000; }
.da-mk span { position: absolute; left: 14px; top: -8px; font-size: 12px; white-space: nowrap; }
.da-obj i { transform: rotate(45deg); border-color: var(--amber); }
.da-obj span { color: var(--amber); }
.da-obj.done i { border-color: #8f9a88; }
.da-obj.edge i { background: rgba(242, 179, 61, 0.35); }
.da-home i { border-radius: 50%; width: 14px; height: 14px; left: -7px; top: -7px; border-color: #9fd3ff; }
.da-home span { color: #9fd3ff; }
.da-fpm i { border-radius: 50%; width: 12px; height: 12px; left: -6px; top: -6px; }
.da-fpm span { display: none; }
.da-imp i { width: 26px; height: 26px; left: -13px; top: -13px; border-radius: 50%; border-color: #ff8a5c; border-style: dashed; }
.da-imp span { color: #ff8a5c; left: 18px; }
.da-jamk i { border: none; width: 0; height: 0; }
.da-jamk span { left: -30px; top: 16px; color: var(--alert); font-size: 11px; }

/* corners and columns (instruments only while flying) */
.da-osd:not(.inst) :is(.da-tl, .da-tr, .da-tc, .da-ml, .da-mr, .da-hz, .da-cross) { display: none; }
.da-tl, .da-tr, .da-tc, .da-bc { position: absolute; display: grid; gap: 1px; line-height: 1.25; }
.da-tl { left: calc(var(--gutter-l) + 4px); top: calc(10px + var(--safe-t)); }
.da-tr { right: calc(var(--gutter-r) + 4px); top: calc(10px + var(--safe-t)); justify-items: end; }
.da-tc { left: 50%; transform: translateX(-50%); top: calc(10px + var(--safe-t)); justify-items: center; }
.da-bc { left: 50%; transform: translateX(-50%); bottom: calc(10px + var(--safe-b)); justify-items: center; grid-auto-flow: column; gap: 14px; font: 600 13px var(--f-body); }
.da-ml, .da-mr { position: absolute; top: 50%; transform: translateY(-50%); font-size: 17px; }
.da-ml { left: calc(var(--gutter-l) + 4px); }
.da-mr { right: calc(var(--gutter-r) + 4px); }
body:has(.dk-root) .da-mr { right: calc(var(--gutter-r) + clamp(56px, 15vmin, 68px) * 1.3 + 10px); }
body:has(.dk-root) .da-tr { right: calc(var(--gutter-r) + clamp(56px, 15vmin, 68px) * 1.3 + 10px); }
.da-volt { font-size: 18px; }
.da-volt.low, .da-pct.low { color: var(--alert); animation: daBlink 0.6s steps(2) infinite; }
.da-bars { font-size: 16px; letter-spacing: -1px; }
.da-bars.low, .da-lq.low { color: var(--alert); }
.da-lq { font-family: var(--f-body); }
.da-mode { font: 600 12px var(--f-body); opacity: 0.85; }
.da-warn { font: 700 14px var(--f-body); color: var(--alert); unicode-bidi: plaintext; }
.da-warn:not(:empty) { animation: daBlink 0.7s steps(2) infinite; }
.da-tgt { color: var(--amber); }
.da-extra:empty { display: none; }
@keyframes daBlink { 50% { opacity: 0.25; } }

/* message log and big centre message */
.da-log { position: absolute; left: 50%; transform: translateX(-50%); top: calc(54px + var(--safe-t)); display: grid; justify-items: center; gap: 2px; font: 600 13px var(--f-body); letter-spacing: normal; direction: rtl; }
html[dir="ltr"] .da-log { direction: ltr; }
.da-log div { unicode-bidi: plaintext; padding: 0 6px; background: rgba(0, 0, 0, 0.32); }
.da-log .good { color: #b6e39c; }
.da-log .bad { color: #ff9d86; }
.da-log .alert { color: var(--amber); }
.da-big { position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%); font: 700 26px var(--f-display); letter-spacing: normal; text-align: center; unicode-bidi: plaintext; white-space: nowrap; }
.da-big.bad { color: #ff9d86; }
.da-big.good { color: #b6e39c; }
.da-big.warn { color: var(--amber); animation: daBlink 0.8s steps(2) infinite; }

/* card (ready / result) */
.da-card {
  position: absolute; left: 50%; top: calc(46px + var(--safe-t)); transform: translateX(-50%);
  min-width: min(340px, 80vw); max-width: min(460px, 86vw); padding: 10px 16px 12px;
  background: rgba(10, 13, 11, 0.72); border: 1px solid rgba(244, 246, 240, 0.35); border-radius: 3px;
  font: 500 14px var(--f-body); letter-spacing: normal; text-shadow: none; direction: rtl;
}
html[dir="ltr"] .da-card { direction: ltr; }
.da-card h3 { margin: 0 0 6px; font: 700 17px var(--f-display); color: var(--amber); }
.da-card p { margin: 0; display: flex; justify-content: space-between; gap: 18px; line-height: 1.6; }
.da-card p span { opacity: 0.8; }
.da-card p b { font-family: var(--f-data); unicode-bidi: plaintext; }
.da-card p.done b { color: #b6e39c; }
.da-card p.left b { color: var(--amber); }
.da-card em { display: block; margin-top: 8px; font-style: normal; font-weight: 600; color: #f4f6f0; }
.da-card.result h3 { color: #f4f6f0; }

@media (max-height: 430px) {
  .da-osd { font-size: 13px; }
  .da-volt { font-size: 15px; }
  .da-ml, .da-mr { font-size: 15px; }
  .da-card { top: calc(36px + var(--safe-t)); padding: 6px 12px 8px; font-size: 12.5px; min-width: min(300px, 70vw); }
  .da-card h3 { font-size: 15px; margin-bottom: 2px; }
  .da-card p { line-height: 1.45; }
  .da-big { font-size: 20px; }
  .da-log { top: calc(42px + var(--safe-t)); font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .da-volt.low, .da-pct.low, .da-warn:not(:empty), .da-big.warn { animation: none; }
}
