.battle-console {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(90, 210, 255, .2);
  text-align: left;
}

#order-panel.skill-ready {
  padding: 14px;
}

#order-panel.skill-ready #order-progress {
  display: none;
}

#order-panel.skill-ready .battle-console {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.shell.skill-ready {
  padding-top: max(12px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.shell.skill-ready .brand {
  gap: 10px;
  margin: 0 4px 10px;
}

.shell.skill-ready .brand-mark {
  width: 40px;
  height: 40px;
  font-size: 20px;
}

.shell.skill-ready .brand h1 {
  font-size: 18px;
}

.consent input:disabled {
  opacity: 1;
  cursor: not-allowed;
}

.console-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.console-heading h3 {
  margin: 2px 0 0;
  font-size: 17px;
}

.battle-target {
  margin: 0 0 8px;
  color: #a9bdd2;
  font-size: 11px;
  line-height: 1.4;
}

.skill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.skill-button {
  --skill-color: 70, 212, 255;
  --skill-art: none;
  position: relative;
  display: block;
  min-height: 0;
  aspect-ratio: 2 / 3;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  color: #fff;
  font: inherit;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform .16s, filter .16s, opacity .16s;
}

.skill-button:active:not(:disabled) { transform: scale(.96); }
.skill-button:hover:not(:disabled) {
  filter: brightness(1.12) saturate(1.08);
}
.skill-button.meteor {
  --skill-color: 255, 133, 53;
  --skill-art: url('/assets/skill-meteor-card.png');
}
.skill-button.laser {
  --skill-color: 70, 212, 255;
  --skill-art: url('/assets/skill-laser-card.png');
}
.skill-button:disabled { opacity: .5; cursor: not-allowed; filter: saturate(.45); }
.skill-button.used { opacity: .38; filter: grayscale(.4) saturate(.45); }
.skill-button.payable {
  opacity: 1;
  filter: none;
}
.skill-button.payable b { color: #7ce8ff; }
.skill-button.payable small { color: #d9bd78; }
.skill-button.payable:disabled { opacity: .42; }
.skill-label-top {
  position: absolute;
  z-index: 2;
  top: 12%;
  left: 8%;
  display: flex;
  width: 84%;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 4px 6px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: .04em;
  text-shadow: 0 2px 4px #000, 0 0 12px rgba(var(--skill-color), .75);
}
.skill-art {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  background-color: transparent;
  background-image: var(--skill-art);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}
.skill-button.meteor .skill-art {
  background-size: 113% 103%;
}
.skill-label-bottom {
  position: absolute;
  z-index: 2;
  right: 8%;
  bottom: 9%;
  left: 8%;
  display: flex;
  min-height: 64px;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 5px;
  width: auto;
}
.skill-button small {
  display: block;
  min-height: 27px;
  color: #bfcee0;
  font-size: 10px;
  line-height: 1.35;
  text-shadow: 0 1px 4px #000;
}
.skill-action {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 6px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(var(--skill-color), .08), rgba(var(--skill-color), .25), rgba(var(--skill-color), .08));
  color: rgba(var(--skill-color), 1);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-shadow: 0 0 8px rgba(var(--skill-color), .65);
}
.skill-button:disabled .skill-action { background: rgba(255,255,255,.06); color: #8090a3; }
.skill-button.payable .skill-action { color: #ffd375; }
.skill-button.cooling { opacity: .72; filter: saturate(.7); }
.skill-button.cooling .skill-action { color: #ffd375; }
.skill-warning { margin: 8px 0 3px; color: #eabf79; font-size: 10px; line-height: 1.4; }
.skill-status { margin: 8px 0 0; color: #69dcff; font-size: 11px; line-height: 1.4; }
.skill-status.used { color: #73edbd; }
.skill-status.expired { color: #899aad; }
.danmaku-form {
  margin: 12px 0 0;
  padding: 10px 10px 8px;
  border: 1px solid rgba(90, 210, 255, .18);
  border-radius: 10px;
  background: rgba(18, 42, 72, .42);
}
.danmaku-form .field-label { margin-bottom: 6px; }
.danmaku-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.danmaku-row .text-input {
  flex: 1;
  margin: 0;
  min-width: 0;
}
.danmaku-send {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #4ad6ff, #1a8cff);
  color: #041018;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.danmaku-send:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.danmaku-status {
  margin: 6px 0 0;
  color: #9ec9e4;
  font-size: 10px;
  line-height: 1.4;
}
.pulse.offline { background: #71859c; box-shadow: none; animation: none; }

@media (max-width: 380px) {
  .console-heading { align-items: flex-end; }
  .skill-label-top { top: 11%; min-height: 32px; font-size: 14px; }
  .skill-label-bottom { right: 7%; bottom: 8%; left: 7%; }
}

@media (max-height: 720px) {
  #order-panel.skill-ready .console-heading { margin-bottom: 2px; }
  #order-panel.skill-ready .battle-target { margin-bottom: 6px; }
  #order-panel.skill-ready .skill-warning { margin: 6px 0 2px; }
  #order-panel.skill-ready .danmaku-form { margin-top: 8px; padding: 8px 8px 6px; }
}
