/* WW2 Tank Battles 3D (shared: sim3d.css + car-kit.css + tank-games/_shared/tank3d.css) */
.w2-note { font-size: 14px; opacity: .88; margin: 10px 0 12px; }
.w2-musbtn { margin: 10px 0 0 8px; }
.w2-museum p { opacity: .85; }
.w2-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 12px 0 16px; }
.w2-card { border-radius: 12px; padding: 10px 12px; background: linear-gradient(160deg, rgba(250,204,21,.12), rgba(255,255,255,.03)); border: 1px solid rgba(250,204,21,.35); }
.w2-card b { font-size: 16px; } .w2-card small { margin-left: 8px; opacity: .7; }
.w2-card p { font-size: 13px; margin: 6px 0 0; line-height: 1.45; }
.w2-card.is-locked { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.1); opacity: .6; }
.w2-hud { position: absolute; inset: 0; pointer-events: none; font: 700 13px system-ui, sans-serif; color: #fff; }
.w2-obj { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); text-align: center; background: rgba(28,22,10,.68); border: 1px solid rgba(250,204,21,.3); border-radius: 12px; padding: 4px 14px; line-height: 1.2; }
.w2-main { display: block; font-size: 18px; font-weight: 900; white-space: nowrap; }
.w2-sub { font-size: 11px; opacity: .85; white-space: nowrap; }
.w2-me { position: absolute; left: 10px; top: 10px; width: 210px; background: rgba(28,22,10,.62); border: 1px solid rgba(250,204,21,.25); border-radius: 10px; padding: 6px; }
.w2-bar { position: relative; height: 16px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; }
.w2-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: #4ade80; }
.w2-bar span { position: absolute; inset: 0; text-align: center; line-height: 16px; font-size: 11px; text-shadow: 0 1px 2px #000; white-space: nowrap; }
.w2-gun { font-size: 11px; opacity: .9; margin-top: 4px; }
.sim-stage canvas.w2-map { position: absolute; inset: 10px 10px auto auto; width: 120px; height: 120px; border-radius: 8px; border: 2px solid rgba(250,204,21,.45); }
.w2-pop { position: absolute; left: 50%; top: 64%; transform: translate(-50%, 0); font: 900 19px system-ui, sans-serif; text-shadow: 0 2px 6px rgba(0,0,0,.7); opacity: 0; white-space: nowrap; }
.w2-pop.is-on { animation: w2-pop 1.4s ease-out; }
@keyframes w2-pop { 0% { opacity: 0; transform: translate(-50%, 10px); } 15% { opacity: 1; transform: translate(-50%, 0); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -16px); } }
.w2-hurt { position: absolute; inset: 0; opacity: 0; box-shadow: inset 0 0 70px 24px rgba(239,68,68,.9); }
.sim-result__card.w2-res { max-height: 94%; overflow: auto; max-width: 560px; }
.w2-res .sim-result__btns { margin: 6px 0 4px; }
.w2-fact { text-align: left; margin: 8px 0; padding: 8px 12px; border-radius: 10px; background: rgba(250,204,21,.08); border-left: 3px solid #facc15; }
.w2-fact p { margin: 4px 0 0; font-size: 13px; line-height: 1.45; }
.w2-fact--mus { background: rgba(134,239,172,.08); border-left-color: #86efac; }
.w2 .sim-has-touch .sim-toolbar { top: 140px; bottom: auto; }
@container (max-width: 480px) {
  .w2-obj { top: 70px; left: 8px; transform: none; padding: 3px 10px; text-align: left; }
  .w2-main { font-size: 15px; }
  .w2-me { left: 8px; top: 8px; width: 180px; padding: 4px; }
  .sim-stage canvas.w2-map { width: 88px; height: 88px; inset: 8px 8px auto auto; }
  .w2 .sim-toolbar, .w2 .sim-has-touch .sim-toolbar { top: 118px; left: 8px; right: auto; }
  .w2-fact p { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .w2-pop.is-on { animation: none; opacity: 1; } }
