.shooter-active .brand-mark {
  background: linear-gradient(145deg, #0b1020, #1d2d4f);
}

.shooter-project-card {
  cursor: pointer;
}

.shooter-project-preview {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  padding: 18px;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(11, 16, 32, 0.98), rgba(25, 48, 74, 0.96)),
    #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.shooter-project-preview::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 30px 30px;
}

.shooter-project-preview span,
.shooter-project-preview b,
.shooter-project-preview i {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.shooter-project-preview span {
  top: 46%;
  left: 12%;
  width: 46px;
  height: 46px;
  background: #2d82ff;
  box-shadow: 0 0 0 8px rgba(45, 130, 255, 0.16);
}

.shooter-project-preview b {
  right: 14%;
  bottom: 24%;
  width: 46px;
  height: 46px;
  background: #ff6b4a;
  box-shadow: 0 0 0 8px rgba(255, 107, 74, 0.16);
}

.shooter-project-preview i {
  top: 48%;
  left: 26%;
  width: 54%;
  height: 5px;
  background: linear-gradient(90deg, #ffdb72, rgba(255, 219, 114, 0));
  transform: rotate(-12deg);
}

.shooter-project-preview strong {
  position: relative;
  z-index: 1;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.9;
}

.shooter-app-shell {
  padding-top: 14px;
}

.shooter-menu,
.shooter-lobby {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.62fr);
  gap: clamp(16px, 3vw, 26px);
  align-items: stretch;
}

.shooter-hero,
.shooter-panel,
.shooter-lock {
  background: var(--glass-strong);
  border: 1px solid rgba(17, 19, 24, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.shooter-hero {
  display: grid;
  align-content: end;
  gap: 18px;
  min-height: min(620px, calc(100dvh - 130px));
  padding: clamp(24px, 5vw, 56px);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(237, 246, 255, 0.72)),
    var(--paper-strong);
}

.shooter-hero h1,
.shooter-lock h1 {
  max-width: 9ch;
}

.shooter-controls-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.shooter-controls-preview span,
.control-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  min-width: 54px;
  padding: 0 12px;
  color: #ffffff;
  background: linear-gradient(180deg, #202838, #111827);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.14);
  font-weight: 900;
}

.shooter-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(18px, 2.8vw, 28px);
}

.shooter-form {
  display: grid;
  gap: 14px;
}

.shooter-form .field span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.shooter-toggle-row {
  display: flex;
  justify-content: flex-start;
}

.shooter-error {
  margin: 0;
  padding: 12px;
  color: #ad3048;
  background: rgba(217, 67, 95, 0.1);
  border: 1px solid rgba(217, 67, 95, 0.18);
  border-radius: var(--radius);
  font-weight: 750;
}

.shooter-room-browser {
  min-height: 260px;
}

.shooter-room-list {
  display: grid;
  gap: 10px;
}

.shooter-room-card,
.shooter-slot,
.shooter-code-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(17, 19, 24, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(24, 32, 48, 0.06);
}

.shooter-room-card strong,
.shooter-room-card span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shooter-room-card span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9rem;
}

.shooter-lobby-main {
  align-content: center;
}

.shooter-lobby-main h1 {
  max-width: 11ch;
}

.shooter-code-box {
  grid-template-columns: minmax(0, 1fr) auto;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(17, 24, 39, 0.98), rgba(22, 52, 71, 0.96)),
    #111827;
}

.shooter-code-box strong {
  overflow: hidden;
  color: #ffffff;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.92;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
}

.shooter-player-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.shooter-slot {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.shooter-slot.empty {
  opacity: 0.65;
}

.shooter-slot strong,
.shooter-slot small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shooter-slot small {
  color: var(--muted);
}

.shooter-slot b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: rgba(36, 120, 255, 0.1);
}

.shooter-instructions {
  align-content: center;
}

.control-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.control-grid b {
  color: var(--ink);
}

.shooter-game {
  display: grid;
  gap: 14px;
}

.shooter-game-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(17, 19, 24, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.shooter-game-head h2 {
  margin-top: 6px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
}

.shooter-scoreboard {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.shooter-scoreboard span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  background: rgba(17, 19, 24, 0.045);
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: 999px;
  font-weight: 850;
}

.shooter-scoreboard b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #ffffff;
  background: #111827;
  border-radius: 999px;
}

.shooter-stage {
  position: relative;
  min-height: min(760px, calc(100dvh - 180px));
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(17, 19, 24, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(17, 24, 39, 0.18);
}

#shooter-canvas {
  display: block;
  width: 100%;
  height: min(760px, calc(100dvh - 180px));
  min-height: 540px;
  cursor: none;
}

.shooter-hud {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 10px;
  pointer-events: none;
}

.shooter-hud > div {
  display: grid;
  min-width: 94px;
  gap: 2px;
  padding: 10px 12px;
  color: #ffffff;
  background: rgba(8, 12, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}

.shooter-hud small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.shooter-hud strong {
  font-size: 1.3rem;
  line-height: 1;
}

.shooter-result-overlay {
  position: absolute;
  inset: 50%;
  display: grid;
  width: min(440px, calc(100% - 32px));
  gap: 14px;
  padding: 22px;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 19, 24, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(18px);
}

.shooter-result-overlay .eyebrow {
  justify-self: center;
}

.shooter-result-overlay h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.95;
}

.shooter-lock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: calc(100dvh - 150px);
  padding: clamp(24px, 5vw, 54px);
}

.shooter-lock p {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.55;
}

.shooter-lock-keys {
  display: grid;
  grid-template-columns: repeat(3, 70px);
  gap: 8px;
}

.shooter-lock-keys span,
.shooter-lock-keys b {
  display: grid;
  height: 60px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(180deg, #202838, #111827);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.15);
}

.shooter-lock-keys span:first-child {
  grid-column: 2;
}

.shooter-lock-keys b {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .shooter-menu,
  .shooter-lobby,
  .shooter-lock {
    grid-template-columns: 1fr;
  }

  .shooter-hero,
  .shooter-lock {
    min-height: 0;
  }

  .shooter-player-slots {
    grid-template-columns: 1fr;
  }
}
