﻿.tank-page {
  background: #101e2a;
  color: #edf3e8;
  min-height: 100vh;
  font-family: system-ui, sans-serif;
}
.tank-wrap {
  max-width: 1050px;
  margin: auto;
  padding: 28px 24px;
}
.tank-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.tank-heading h2 {
  font-size: clamp(24px, 4vw, 38px);
  margin: 7px 0 22px;
}
.tank-kicker {
  font-size: 11px;
  color: #e2bc72;
  letter-spacing: 3px;
  font-weight: 800;
}
.tank-heading #best {
  background: #253b43;
  border: 1px solid #48666b;
  border-radius: 30px;
  padding: 10px 18px;
  white-space: nowrap;
  color: #f2ce84;
  font-weight: 700;
}
.tank-controls {
  display: flex;
  gap: 9px;
  align-items: end;
  flex-wrap: wrap;
}
.tank-controls label {
  display: grid;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #b1c7c8;
}
.tank-controls input {
  min-height: 40px;
  width: 150px;
  padding: 9px;
  border: 1px solid #47646b;
  border-radius: 8px;
  background: #192c37;
  color: #fff;
  font: inherit;
}
.tank-controls #room-code {
  width: 100px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.tank-controls button {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid #48666b;
  background: #25434e;
  color: #eef7f1;
  border-radius: 8px;
  font-weight: 750;
  cursor: pointer;
}
.tank-controls button:disabled {
  opacity: 0.4;
  cursor: default;
}
.tank-controls #practice {
  background: #edbf6a;
  color: #182c34;
  border-color: #edbf6a;
}
.tank-controls #host {
  background: #3a807b;
  border-color: #589f99;
}
#tank-status {
  min-height: 24px;
  font-size: 13px;
  color: #aac7c9;
  line-height: 1.5;
  margin: 16px 0;
}
.arena-frame {
  position: relative;
  border: 1px solid #3a5a62;
  border-radius: 17px;
  overflow: hidden;
  box-shadow: 0 14px 45px #0005;
  background: #0b1824;
}
#arena {
  display: block;
  width: 100%;
  aspect-ratio: 8/5;
  outline: none;
  cursor: crosshair;
  touch-action: none;
}
.arena-score {
  position: absolute;
  left: 0;
  right: 0;
  top: 14px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  pointer-events: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}
.arena-score strong {
  font-size: 27px;
  margin-left: 10px;
}
.arena-score > span:nth-child(2) {
  font-size: 10px;
  color: #8aa5ac;
}
.gold {
  color: #f3ca78;
}
.blue {
  color: #8ce0e7;
}
#arena-banner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #0e2133e8;
  padding: 18px 30px;
  border: 1px solid #648283;
  border-radius: 12px;
  text-align: center;
  font-size: clamp(15px, 3vw, 26px);
  font-weight: 900;
  letter-spacing: 1px;
  pointer-events: none;
  max-width: 85%;
}
#arena-banner:empty {
  display: none;
}
.tank-help {
  color: #c0d1d0;
  font-size: 13px;
  line-height: 1.7;
}
.tank-help strong {
  color: #efd08c;
}
.tank-footnote {
  color: #819d9f;
  font-size: 12px;
  line-height: 1.7;
}
.touch-controls {
  display: none;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
}
.touch-controls button {
  touch-action: none;
  user-select: none;
  background: #294852;
  color: #e8f5ef;
  border: 1px solid #52747a;
  border-radius: 12px;
  font-size: 22px;
  min-width: 56px;
  min-height: 50px;
}
.dpad {
  display: grid;
  grid-template-columns: repeat(3, 56px);
  gap: 5px;
}
.dpad button:first-child {
  grid-column: 2;
}
.dpad button:nth-child(2) {
  grid-row: 2;
  grid-column: 1;
}
.dpad button:nth-child(3) {
  grid-row: 2;
  grid-column: 2;
}
.dpad button:nth-child(4) {
  grid-row: 2;
  grid-column: 3;
}
.touch-controls .touch-fire {
  background: #a97635;
  border-color: #ddb26c;
  padding: 0 30px;
  font-size: 17px;
  font-weight: 800;
}
@media (pointer: coarse), (max-width: 700px) {
  .touch-controls {
    display: flex;
  }
  .tank-wrap {
    padding: 20px 12px;
  }
  .tank-heading {
    align-items: start;
  }
  .tank-controls {
    gap: 7px;
  }
  .tank-controls button {
    flex: 1;
  }
  .tank-controls input {
    width: 140px;
  }
  .tank-heading #best {
    padding: 8px 11px;
    font-size: 12px;
  }
}
