/* Diver's Helmet (Abyss, Legendary; static/js/card_protector/abyss.js). Idle: the lamp breathes, a slow light crosses
   the face port and a small bubble now and then leaves the air valve. Bet (.cp-exhale, 1.65 s): the face port fills with
   cyan light and a luminous trail of bubbles streams from the valve and rises. Transform and opacity only.
   Reduce flashing: the lamp holds steady, the face port's light rises slowly to a third. Calm motion: the lit still
   (no bubbles, no sheen). Low graphics: no idle bubbles, half the trail. */
.cp-dive_helmet .cp-dh-lamp { animation: cpDhLamp 4.6s ease-in-out infinite; }
@keyframes cpDhLamp { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }
.cp-dive_helmet .cp-dh-halo { opacity: 0; }
.cp-dive_helmet.cp-exhale .cp-dh-halo { animation: cpDhHalo 1.6s ease-out both; }
@keyframes cpDhHalo { 0% { opacity: 0; } 25%, 50% { opacity: 1; } 100% { opacity: 0; } }
.cp-dive_helmet .cp-dh-face { opacity: .12; }
.cp-dive_helmet .cp-dh-sheen { animation: cpDhSheen 7s ease-in-out infinite; }
@keyframes cpDhSheen { 0%, 62% { transform: rotate(24deg) translateX(-26px); opacity: 0; }
  70% { opacity: .2; } 86% { opacity: .14; } 94%, 100% { transform: rotate(24deg) translateX(26px); opacity: 0; } }
.cp-dive_helmet .cp-dh-idle { opacity: 0; animation: cpDhIdle 6.4s ease-out infinite; }
.cp-dive_helmet .cp-dh-idle.b1 { animation-delay: -3.1s; }
@keyframes cpDhIdle { 0%, 70% { opacity: 0; transform: translate(0, 0) scale(.6); }
  74% { opacity: .85; } 100% { opacity: 0; transform: translate(6px, -38px) scale(1); } }
.cp-dive_helmet .cp-dh-out { opacity: 0; }
.cp-dive_helmet.cp-exhale .cp-dh-out { animation: cpDhOut 1.35s cubic-bezier(.25, .6, .35, 1) var(--dl) both; }
@keyframes cpDhOut { 0% { opacity: 0; transform: translate(0, 0) scale(.4); }
  12% { opacity: 1; } 70% { opacity: .8; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.1); } }
.cp-dive_helmet.cp-exhale .cp-dh-face { animation: cpDhFace 1.6s ease-out both; }
@keyframes cpDhFace { 0% { opacity: .12; } 20%, 58% { opacity: 1; } 100% { opacity: .12; } }

html.calm-flash .cp-dive_helmet .cp-dh-lamp { animation: none; opacity: .6; }
html.calm-flash .cp-dive_helmet.cp-exhale .cp-dh-halo { animation: none; }
html.calm-flash .cp-dive_helmet.cp-exhale .cp-dh-face { animation: cpDhFaceCalm 1.6s ease-in-out both; }
@keyframes cpDhFaceCalm { 0% { opacity: .12; } 45% { opacity: .34; } 100% { opacity: .12; } }
html.calm-motion .cp-dive_helmet :is(.cp-dh-lamp, .cp-dh-halo, .cp-dh-sheen, .cp-dh-idle, .cp-dh-out, .cp-dh-face) { animation: none; }
html.calm-motion .cp-dive_helmet :is(.cp-dh-sheen, .cp-dh-idle, .cp-dh-out) { display: none; }
html.gfx-low .cp-dive_helmet .cp-dh-idle,
html.gfx-low .cp-dive_helmet .cp-dh-out:is(.b1, .b3, .b5, .b7) { display: none; }
