.tyk-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.tyk-canvas-box {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  background: #0b1220;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(140, 180, 230, 0.18);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 60px rgba(60, 110, 180, 0.12);
}

.tyk-canvas-box::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 80px rgba(10, 20, 40, 0.25);
}

.tyk-ammo button.active {
  border-color: #5b8def;
  background: rgba(91, 141, 239, 0.22);
  box-shadow: 0 0 0 1px rgba(91, 141, 239, 0.25);
}

.tyk-ammo button[data-custom="1"] {
  border-style: dashed;
}

.tyk-canvas-box canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
}

.tyk-hud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.tyk-hud strong {
  color: var(--accent, #5b8def);
}

.tyk-controls {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .tyk-controls {
    grid-template-columns: 1fr 1fr;
  }
}

.tyk-controls label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.tyk-controls input[type="range"] {
  width: 100%;
}

.tyk-ammo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tyk-ammo button {
  font-size: 0.78rem;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
}

.tyk-ammo button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.tyk-scoreboard {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
}

.tyk-scoreboard li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.tyk-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  display: inline-block;
}

.tyk-local-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.tyk-local-tags span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
}

.tyk-local-tags button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.tyk-status {
  min-height: 1.4em;
  text-align: center;
}

.tyk-status.ok {
  color: #4caf82;
}

.tyk-status.err {
  color: #e85a7a;
}

.tyk-ammo-desc {
  font-size: 0.85rem;
  opacity: 0.85;
  margin: 0;
}
