/* v108 – Ship-animation preference, accessible on desktop, installable web app and phones. */
.game .scene-bottom > .ship-animation-toggle {
  pointer-events:auto;
  touch-action:manipulation;
  flex:0 0 auto;
  min-height:36px;
  min-width:134px;
  padding:7px 11px;
  border:1px solid #73c6e2;
  border-radius:9px;
  background:linear-gradient(105deg,rgba(8,38,62,.96),rgba(25,54,86,.96));
  color:#e4faff;
  font-size:clamp(11px,1.2vw,14px);
  font-weight:750;
  line-height:1.2;
  text-align:center;
  cursor:pointer;
  text-shadow:0 1px 1px #071729;
  box-shadow:0 1px 8px #030a1d7a;
}
.game .scene-bottom > .ship-animation-toggle[aria-pressed="false"] {
  background:rgba(18,35,54,.96);
  border-color:#8194ab;
  color:#e3ecfa;
}
.game .scene-bottom > .ship-animation-toggle:focus-visible,
#overlay .ship-animation-toggle:focus-visible {
  outline:3px solid #f2e28b;
  outline-offset:2px;
}
#overlay .ship-animation-settings {
  display:grid;
  gap:10px;
  border:1px solid #597d9c;
  border-radius:11px;
  background:linear-gradient(115deg,#11263d,#192948);
  padding:clamp(12px,2vw,18px);
  margin:12px 0;
}
#overlay .ship-animation-settings h3 {margin:0}
#overlay .ship-animation-settings .section-sub {
  margin:0;
  overflow-wrap:anywhere;
}
#overlay .ship-animation-settings .ship-animation-toggle {
  justify-self:start;
  min-height:44px;
  padding:8px 15px;
  border:1px solid #7bbde0;
  border-radius:9px;
  background:#1a4967;
  color:#edfaff;
  font-weight:750;
  cursor:pointer;
}
@media(max-width:540px) {
  .game .screen.empire-dashboard .scene-bottom {
    align-items:flex-end;
    justify-content:flex-start;
    flex-wrap:wrap;
    gap:5px;
  }
  .game .screen.empire-dashboard .scene-bottom > .ship-animation-toggle {
    min-width:0;
    min-height:40px;
    padding:6px 9px;
    font-size:12px;
  }
  /* The two status badges also appear in the planet controls; keep the
     ship-visibility control unobstructed on narrow phone displays. */
  .game .screen.empire-dashboard .scene-bottom > span {display:none}
  #overlay .ship-animation-settings .ship-animation-toggle {width:100%}
}
@media(max-width:350px) {
  .game .screen.empire-dashboard .scene-bottom > .ship-animation-toggle {
    font-size:11px;
    min-height:38px;
  }
}
