/* Commercial Valorant / ZZZ Street-Tech Roster, Recruit & Wordbook UI */
.hub-card {
  min-width: 0;
  padding: clamp(16px, 2.5vw, 28px);
  border-top: 3px solid var(--m6-lime, #c8ff00);
  background: linear-gradient(160deg, rgba(16, 22, 34, 0.96), rgba(10, 14, 24, 0.98));
  border-radius: 16px;
  overflow-wrap: anywhere;
}

.hub-card h1 {
  margin: 0.12em 0 0.45em;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.hub-card :is(select, input) {
  max-width: 100%;
}

/* 2-Column Tactical Garage Layout (Left: 2x5 Agent Cards, Right: Showcase Stage) */
#agents .roster-grid {
  display: grid;
  grid-template-columns: minmax(290px, 360px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

#agent-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#agent-list button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1.5px solid rgba(140, 168, 208, 0.22);
  background: linear-gradient(180deg, rgba(26, 34, 52, 0.92), rgba(15, 20, 32, 0.96));
  color: #dbe7f8;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

#agent-list button:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 255, 0, 0.65);
}

#agent-list button[aria-pressed="true"] {
  border-color: #c8ff00;
  background: linear-gradient(180deg, rgba(44, 60, 20, 0.92), rgba(18, 28, 16, 0.98));
  color: #f4ff9e;
  box-shadow: 0 0 18px rgba(200, 255, 0, 0.28), inset 0 0 12px rgba(200, 255, 0, 0.12);
}

#agent-list canvas,
#agent-list .roster-thumb {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.55));
}

#agents .roster-grid > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  border: 1.5px solid rgba(140, 168, 208, 0.2);
  background:
    radial-gradient(circle at 50% 42%, rgba(56, 229, 255, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(20, 28, 44, 0.9), rgba(11, 16, 26, 0.96));
}

.garage-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 360px;
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 82%, rgba(200, 255, 0, 0.16), transparent 65%);
  overflow: hidden;
}

#garage-portrait {
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.65));
  transition: transform 0.2s ease;
}

#garage {
  display: none;
}

#agent-title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: #f4f8ff;
}

#agent-details {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #a9bdd8;
}

#agents .abilities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

#agents .abilities button {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1.5px solid rgba(154, 184, 224, 0.35);
  background: rgba(24, 34, 52, 0.92);
  color: #e6f0ff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

#agents #equip {
  border-color: #c8ff00;
  background: #c8ff00;
  color: #10141c;
}

#agents #equip:disabled {
  background: rgba(200, 255, 0, 0.18);
  color: #cbe088;
  border-color: rgba(200, 255, 0, 0.35);
}

#agents #recruit-open {
  border-color: rgba(255, 213, 79, 0.72);
  background: linear-gradient(135deg, rgba(72, 50, 12, 0.92), rgba(38, 24, 8, 0.96));
  color: #ffe87a;
}

/* Wordbook (#screen-words) Clean Card Grid */
.growth-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.growth-stats strong {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 213, 79, 0.25);
  background: rgba(22, 30, 46, 0.9);
  color: var(--gold, #ffe66b);
  font-size: 13px;
}

#growth-words {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
  margin-top: 12px;
}

#growth-words button {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(140, 168, 208, 0.22);
  background: rgba(20, 28, 44, 0.9);
  color: #e4eefc;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
  cursor: pointer;
}

#growth-words button:hover {
  border-color: #c8ff00;
}

/* Recruit Screen (.m6-recruit) */
#recruit-poster { display: none; }
:is(#recruit-garage) { display: block; width: 100%; aspect-ratio: 16 / 9; }

.m6-recruit {
  position: relative;
  background: linear-gradient(116deg, #0f1014 13%, #e12b87 13% 57%, #7b114d 57% 62%, #15151a 62%);
  min-height: calc(100svh - 90px);
  overflow: hidden;
  padding-top: 14px;
}

.m6-recruit .recruit-panel h2 { display: none; }
.m6-recruit > h1 {
  margin: 0;
  font-family: var(--m6-font);
  font-weight: 900;
  letter-spacing: 0.03em;
  font-size: clamp(32px, 5vw, 56px);
}
.m6-recruit #recruit-back { position: absolute; top: 14px; right: 14px; z-index: 2; border-radius: 10px; }
.m6-recruit #recruit-poster { display: block; min-height: clamp(300px, 49vh, 540px); position: relative; }
.m6-recruit #recruit-poster:has(img[hidden]) { position: absolute; inset: 0 0 auto; min-height: 245px; pointer-events: none; }
.m6-recruit #recruit-garage:not(.m6-recruit-fallback) { display: none; }
.m6-recruit .roster-grid { display: flex; flex-direction: column-reverse; }
.m6-recruit #recruit-list {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 8px 4px 12px;
  scrollbar-color: #464a58 #15161c;
  scrollbar-width: thin;
}
.m6-recruit #recruit-list button {
  flex: 0 0 116px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(24, 26, 33, 0.92);
  border: 2px solid #3c404e;
  color: #f2f4f8;
  font-family: var(--m6-font);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.m6-recruit #recruit-list button[aria-pressed="true"] {
  border-color: var(--m6-lime);
  background: rgba(34, 38, 48, 0.98);
  box-shadow: 0 0 14px rgba(200, 255, 0, 0.25);
}
.m6-recruit #recruit-list canvas,
.m6-recruit #recruit-list .roster-thumb {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.55));
}
.m6-recruit .recruit-panel {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 14px;
  margin-top: 10px;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: rgba(11, 15, 24, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--m6-font);
  color: #edf4ff;
}
.m6-recruit .recruit-panel p {
  margin: 0;
  width: 100%;
  text-align: right;
  font-size: 13px;
  color: #cfe0f5;
}
.m6-recruit .recruit-panel p strong {
  color: #ffe87a;
  font-size: 15px;
}
.m6-recruit #recruit {
  background: rgba(20, 26, 38, 0.96);
  color: #e6ff70;
  border: 2px solid var(--m6-lime, #c8ff00);
  border-radius: 999px;
  padding: 10px 26px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(200, 255, 0, 0.22);
}
.m6-recruit #recruit:hover:not(:disabled) {
  background: rgba(38, 52, 22, 0.98);
}
.m6-recruit #recruit-ten {
  background: var(--m6-lime, #c8ff00);
  color: #10141c;
  border: 2px solid var(--m6-lime, #c8ff00);
  border-radius: 999px;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(200, 255, 0, 0.35);
}
.m6-recruit :is(#recruit, #recruit-ten):disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 820px) {
  #agents .roster-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  #agent-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  #agent-list button {
    flex: 0 0 108px;
  }
}
