#angleShooter{
  --ink:#163047;
  --green:#2f9f59;
  --blue:#36aee2;
  --red:#ef5350;
  --line:#d9e7ef;

  max-width:900px;
  margin:20px auto;
  padding:14px;

  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;

  color:var(--ink);
}

#angleShooter *{
  box-sizing:border-box;
}

#angleShooter .as-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:10px;
}

#angleShooter .as-brand{
  font-weight:900;
  font-size:15px;
}

#angleShooter .as-stats{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}

#angleShooter .as-pill,
#angleShooter .as-sound{
  background:#ffffff;
  border:1px solid var(--line);
  border-radius:999px;
  padding:7px 11px;

  color:var(--ink);
  font-size:14px;
  font-weight:800;

  box-shadow:
    0 3px 10px
    rgba(20,50,70,.05);
}

#angleShooter .as-sound{
  cursor:pointer;
  background:#eef8fd;
}

#angleShooter .as-gamebox{
  position:relative;
  min-height:610px;
  overflow:hidden;

  background:
    radial-gradient(
      circle at 50% 90%,
      rgba(54,174,226,.10),
      transparent 38%
    ),
    linear-gradient(
      #fafdff,
      #f4fbff
    );

  border:2px solid #dceaf1;
  border-radius:22px;

  box-shadow:
    0 16px 40px
    rgba(30,80,110,.12);
}

#angleShooter .as-hud{
  position:relative;
  z-index:3;

  padding:18px 12px 4px;
  text-align:center;
}

#angleShooter .as-mission{
  display:inline-block;

  padding:11px 20px;

  background:#163047;
  color:#ffffff;

  border-radius:15px;

  font-size:
    clamp(18px,3vw,25px);

  font-weight:900;

  box-shadow:
    0 6px 15px
    rgba(22,48,71,.18);
}

#angleShooter #asTargetText{
  color:#ffe173;
  font-size:1.2em;
}

#angleShooter .as-help{
  margin-top:7px;

  color:#627787;
  font-size:13px;
  font-weight:700;
}

#angleShooter .as-stage{
  display:block;

  width:100%;
  height:410px;

  cursor:crosshair;
  touch-action:none;
  user-select:none;
}

#angleShooter #asHandle{
  cursor:grab;
}

#angleShooter .as-result{
  min-height:46px;

  padding:
    0 15px 12px;

  text-align:center;

  font-size:18px;
  font-weight:900;
}

#angleShooter .as-controls{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;

  gap:10px;

  padding:
    0 15px 18px;
}

#angleShooter .as-fire,
#angleShooter .as-next,
#angleShooter .as-start{
  border:0;
  border-radius:15px;

  padding:
    14px 28px;

  color:#ffffff;

  font-size:18px;
  font-weight:900;

  cursor:pointer;

  transition:
    transform .15s ease,
    filter .15s ease;
}

#angleShooter .as-fire{
  min-width:190px;

  background:
    linear-gradient(
      135deg,
      #ee5b46,
      #f28b3d
    );

  box-shadow:
    0 7px 18px
    rgba(220,80,45,.28);
}

#angleShooter .as-next{
  display:none;
  background:#36aee2;
}

#angleShooter .as-start{
  background:
    linear-gradient(
      135deg,
      #2f9f59,
      #45b66d
    );

  box-shadow:
    0 7px 16px
    rgba(47,159,89,.25);
}

#angleShooter .as-fire:hover,
#angleShooter .as-next:hover,
#angleShooter .as-start:hover{
  transform:
    translateY(-2px);

  filter:
    brightness(.98);
}

#angleShooter .as-fire:disabled{
  opacity:.45;
  cursor:not-allowed;
  transform:none;
}

#angleShooter .as-overlay{
  position:absolute;

  inset:0;

  z-index:50;

  display:flex;
  justify-content:center;
  align-items:center;

  padding:20px;

  background:
    rgba(245,251,255,.97);

  text-align:center;
}

#angleShooter .as-panel{
  width:
    min(100%,590px);

  padding:28px;

  background:#ffffff;

  border:
    1px solid var(--line);

  border-radius:22px;

  box-shadow:
    0 18px 50px
    rgba(25,65,90,.16);
}

#angleShooter .as-panel h2{
  margin:
    0 0 8px;

  color:#163047;

  font-size:
    clamp(30px,6vw,46px);
}

#angleShooter .as-panel p{
  color:#5d7180;
  line-height:1.55;
}

#angleShooter .as-big-icon{
  margin-bottom:6px;
  font-size:60px;
}

#angleShooter .as-rules{
  display:grid;

  grid-template-columns:
    repeat(3,1fr);

  gap:8px;

  margin:
    18px 0;
}

#angleShooter .as-rules div{
  display:flex;
  flex-direction:column;

  gap:4px;

  padding:12px 8px;

  background:#f5f9fb;

  border-radius:13px;

  font-size:14px;
  font-weight:800;
}

#angleShooter .as-rules span{
  color:#607383;
}

#angleShooter .as-flash{
  display:none;

  position:absolute;

  left:50%;
  top:48%;

  z-index:30;

  transform:
    translate(-50%,-50%);

  padding:
    16px 25px;

  background:#163047;
  color:#ffffff;

  border-radius:17px;

  font-size:27px;
  font-weight:900;

  pointer-events:none;
}

#angleShooter .as-flash.show{
  display:block;

  animation:
    asFlash .9s ease forwards;
}

@keyframes asFlash{

  0%{
    opacity:0;

    transform:
      translate(-50%,-50%)
      scale(.7);
  }

  30%{
    opacity:1;

    transform:
      translate(-50%,-50%)
      scale(1.08);
  }

  100%{
    opacity:0;

    transform:
      translate(-50%,-65%)
      scale(1);
  }

}

#angleShooter .as-footer{
  margin-top:9px;

  color:#6e7f8c;

  text-align:center;

  font-size:12px;
}


@media(max-width:620px){

  #angleShooter{
    padding:5px;
  }

  #angleShooter .as-gamebox{
    min-height:580px;
  }

  #angleShooter .as-stage{
    height:390px;
  }

  #angleShooter .as-rules{
    grid-template-columns:1fr;
  }

  #angleShooter .as-panel{
    padding:20px;
  }

  #angleShooter .as-pill,
  #angleShooter .as-sound{
    padding:6px 9px;
    font-size:12px;
  }

}