* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1a1a1a 0, #000 55%, #050308 100%);
  color: #d4ffd4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
}

.frame {
  width: 100%;
  max-width: 1000px;
  border-radius: 10px;
  border: 2px solid #e50914;
  box-shadow: 0 0 40px rgba(229, 9, 20, 0.8);
  background: radial-gradient(circle at top left, #1a1020, #050308 60%);
  padding: 16px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e50914;
  padding-bottom: 8px;
  margin-bottom: 12px;
  font-family: "Courier New", monospace;
  letter-spacing: 0.08em;
  gap: 12px;
}

.header-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  color: #ff4b5c;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-status {
  font-size: 0.8rem;
  color: #9df89d;
}

.agent-avatar-btn {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid #3cff3c;
  background: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(60, 255, 60, 0.35);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.agent-avatar-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(60, 255, 60, 0.5);
}

.back-btn {
  border: 1px solid #9df89d;
  background: transparent;
  color: #9df89d;
  padding: 8px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.1s;
}

.back-btn:hover {
  background: rgba(157, 248, 157, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(157, 248, 157, 0.35);
}

.back-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.back-btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.landing-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, rgba(229, 9, 20, 0.2), rgba(0, 0, 0, 0.92));
  backdrop-filter: blur(2px);
  z-index: 1500;
}

.landing-panel {
  max-width: 640px;
  width: 90%;
  padding: 28px;
  border: 2px solid #e50914;
  border-radius: 12px;
  background: radial-gradient(circle at top left, #1a0b15, #050308 70%);
  box-shadow: 0 0 40px rgba(229, 9, 20, 0.6), inset 0 0 12px rgba(229, 9, 20, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.landing-agent-image {
  width: 200px;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(229, 9, 20, 0.5);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.4);
  background: transparent;
  margin-bottom: 8px;
}

.landing-label {
  font-family: "Courier New", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff4b5c;
  margin-bottom: 10px;
}

.landing-title {
  margin: 0 0 12px;
  font-size: 2rem;
  color: #000;
  font-family: "Cinzel", "Times New Roman", serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow:
    -1px 0 #5f070c,
    1px 0 #5f070c,
    0 -1px #5f070c,
    0 1px #5f070c,
    0 0 18px rgba(250, 0, 13, 0.6);
}

.landing-desc {
  margin: 0 0 18px;
  color: #c8d6c8;
  font-size: 1rem;
  line-height: 1.5;
}

.landing-btn {
  border: 1px solid #3cff3c;
  background: linear-gradient(120deg, rgba(60, 255, 60, 0.2), rgba(229, 9, 20, 0.2));
  color: #d4ffd4;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Courier New", monospace;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.landing-btn:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 0 16px rgba(60, 255, 60, 0.4);
  background: linear-gradient(120deg, rgba(60, 255, 60, 0.3), rgba(229, 9, 20, 0.3));
}

.landing-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.agent-avatar-btn img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
  background: #111;
}

.terminal {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 8px;
  padding: 12px;
  font-family: "Courier New", monospace;
  color: #b7ffb7;
  max-height: 70vh;
  overflow-y: auto;
}

.agent-name {
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #d4ffd4;
  margin-bottom: 4px;
}

.agent-tag {
  font-size: 0.7rem;
  color: #9df89d;
  margin-bottom: 4px;
}

.agent-qualities {
  margin-bottom: 2px;
}

.agent-qualities span {
  display: inline-block;
  border-radius: 10px;
  border: 1px solid rgba(157, 248, 157, 0.4);
  padding: 1px 6px;
  margin-right: 4px;
  margin-bottom: 3px;
  font-size: 0.7rem;
}

.agent-item {
  font-size: 0.7rem;
  color: #ffd4d4;
}

.endings-progress {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(157, 248, 157, 0.3);
}

.endings-progress__title {
  font-size: 0.75rem;
  color: #9df89d;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  font-family: "Courier New", monospace;
}

.endings-progress__bar {
  width: 100%;
  height: 16px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(157, 248, 157, 0.4);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  margin-bottom: 6px;
}

.endings-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, #3cff3c, #9df89d);
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(60, 255, 60, 0.6);
  position: relative;
}

.endings-progress__fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.endings-progress__text {
  font-size: 0.7rem;
  color: #d4ffd4;
  text-align: center;
}

.agent-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.agent-modal.is-open {
  display: flex;
}

.agent-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
}

.agent-modal__content {
  position: relative;
  background: #0b0f0b;
  border: 1px solid rgba(157, 248, 157, 0.4);
  box-shadow: 0 0 30px rgba(60, 255, 60, 0.3);
  border-radius: 10px;
  padding: 16px;
  width: min(420px, 90vw);
  z-index: 1;
}

.agent-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: transparent;
  color: #9df89d;
  font-size: 1.2rem;
  cursor: pointer;
}

.agent-modal__header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.agent-modal__avatar {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #3cff3c;
  background: #111;
  box-shadow: 0 0 10px rgba(60, 255, 60, 0.35);
}

.agent-modal__fullbody {
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 auto 12px;
  display: block;
  border-radius: 8px;
  object-fit: contain;
  border: 1px solid rgba(60, 255, 60, 0.5);
  background: #0b0f0b;
  box-shadow: 0 0 15px rgba(60, 255, 60, 0.25);
}

.agent-modal__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agent-modal__actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.agent-action-btn {
  flex: 1;
  min-width: 140px;
  border: 1px solid rgba(157, 248, 157, 0.4);
  background: rgba(0, 0, 0, 0.5);
  color: #d4ffd4;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.15s ease;
}

.agent-action-btn:hover {
  background: rgba(60, 255, 60, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(60, 255, 60, 0.3);
}

.agent-action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.agent-action-btn--reset {
  border-color: rgba(229, 9, 20, 0.5);
  color: #ffb3b9;
}

.agent-action-btn--reset:hover:not(:disabled) {
  background: rgba(229, 9, 20, 0.15);
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.4);
}

.agent-action-btn--switch:disabled {
  border-color: rgba(157, 248, 157, 0.2);
}

.agent-modal__message {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  line-height: 1.4;
  animation: fadeIn 0.3s ease;
}

.agent-modal__message--info {
  background: rgba(60, 255, 60, 0.1);
  border: 1px solid rgba(60, 255, 60, 0.4);
  color: #d4ffd4;
}

.agent-modal__message--warning {
  background: rgba(255, 200, 60, 0.1);
  border: 1px solid rgba(255, 200, 60, 0.4);
  color: #ffe4b3;
}

.agent-modal__message--error {
  background: rgba(229, 9, 20, 0.1);
  border: 1px solid rgba(229, 9, 20, 0.4);
  color: #ffb3b9;
}

.agent-modal__message--confirm {
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid rgba(229, 9, 20, 0.5);
  color: #ffb3b9;
}

.agent-modal__message-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.agent-modal__message-btn {
  flex: 1;
  border: 1px solid rgba(157, 248, 157, 0.4);
  background: rgba(0, 0, 0, 0.5);
  color: #d4ffd4;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  transition: all 0.15s ease;
}

.agent-modal__message-btn:hover {
  background: rgba(60, 255, 60, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 0 8px rgba(60, 255, 60, 0.3);
}

.agent-modal__message-btn--danger {
  border-color: rgba(229, 9, 20, 0.5);
  color: #ffb3b9;
}

.agent-modal__message-btn--danger:hover {
  background: rgba(229, 9, 20, 0.15);
  box-shadow: 0 0 8px rgba(229, 9, 20, 0.4);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.scene-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: flex-start;
}

.scene-image-wrapper {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(60, 255, 60, 0.35);
  background: radial-gradient(circle at top, #1a1a1a, #000);
  min-height: 140px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.scene-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-and-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scene-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(229, 9, 20, 0.35);
  border-radius: 6px;
  background: radial-gradient(circle at 10% 10%, rgba(229, 9, 20, 0.1), transparent 50%);
  box-shadow: inset 0 0 12px rgba(229, 9, 20, 0.25);
}

.scene-meta__row {
  display: flex;
  gap: 6px;
  align-items: baseline;
  font-family: "Courier New", monospace;
}

.scene-meta__label {
  color: #ff4b5c;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.scene-meta__value {
  color: #f6e6e6;
  font-size: 0.92rem;
  min-height: 1.2em;
  text-shadow: 0 0 6px rgba(229, 9, 20, 0.6);
}

.scene-meta__value::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 14px;
  margin-left: 3px;
  background: rgba(229, 9, 20, 0.8);
  box-shadow: 0 0 6px rgba(229, 9, 20, 0.6);
  animation: meta-caret 1s steps(2) infinite;
}

.scene-meta__value.is-static::after {
  display: none;
}

@keyframes meta-caret {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

.puzzle-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1500;
}

.puzzle-modal.is-open {
  display: flex;
}

.puzzle-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(3px);
}

.puzzle-modal__content {
  position: relative;
  z-index: 1;
  width: min(960px, 94vw);
  max-height: 90vh;
  overflow: hidden;
  background: radial-gradient(circle at 25% 15%, rgba(60, 255, 60, 0.08), #050308 75%);
  border: 2px solid rgba(157, 248, 157, 0.35);
  border-radius: 14px;
  box-shadow: 0 0 40px rgba(60, 255, 60, 0.3);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.puzzle-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.puzzle-modal__close {
  border: none;
  background: transparent;
  color: #9df89d;
  font-size: 1.4rem;
  cursor: pointer;
}

.puzzle-title {
  font-family: "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #3cff3c;
}

.puzzle-hint {
  color: #9df89d;
  font-size: 0.85rem;
}

.puzzle-description {
  color: #d4ffd4;
  font-size: 0.95rem;
}

.puzzle-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(157, 248, 157, 0.25);
  border-radius: 10px;
  padding: 12px;
  min-height: 200px;
  overflow: auto;
  position: relative;
}

.puzzle-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.puzzle-btn {
  border: 1px solid #3cff3c;
  background: transparent;
  color: #d4ffd4;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.1s;
}

.puzzle-btn:hover {
  background: rgba(60, 255, 60, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(60, 255, 60, 0.3);
}

.puzzle-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.puzzle-btn.ghost {
  border-color: #9df89d;
  color: #9df89d;
}

.puzzle-btn.success {
  border-color: #3cff3c;
  color: #3cff3c;
}

.puzzle-message {
  color: #ffb3b3;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.puzzle-token {
  border: 1px solid rgba(157, 248, 157, 0.4);
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #d4ffd4;
  cursor: pointer;
  user-select: none;
  transition: transform 0.08s ease, box-shadow 0.1s ease;
}

.puzzle-token:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(157, 248, 157, 0.35);
}

.puzzle-token.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.puzzle-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(60, 255, 60, 0.15);
  border: 1px solid rgba(60, 255, 60, 0.4);
  color: #d4ffd4;
  font-size: 0.8rem;
  margin-right: 6px;
}

.puzzle-jigsaw-grid {
  display: grid;
  gap: 4px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
}

.puzzle-jigsaw-tile {
  position: relative;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  cursor: pointer;
  border: 1px solid rgba(157, 248, 157, 0.35);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
  transition: transform 0.08s ease, box-shadow 0.1s ease;
}

.puzzle-jigsaw-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(157, 248, 157, 0.35);
}

.puzzle-jigsaw-tile.selected {
  outline: 2px solid #3cff3c;
}

.puzzle-pattern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.puzzle-pattern-btn {
  padding: 14px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #050308;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 70px;
  transition: transform 0.08s ease, box-shadow 0.12s ease, filter 0.1s ease;
}

.puzzle-pattern-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.puzzle-pattern-btn.is-active {
  filter: brightness(1.25);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.45);
  transform: scale(1.04);
}

.pattern-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
}

.pattern-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.story {
  font-size: 0.98rem;
  line-height: 1.5;
  margin-bottom: 4px;
}

.story > div {
  margin: 2px 0;
  white-space: pre-wrap;
}

.puzzle-trigger {
  display: none;
  margin: 8px 0 6px;
  padding: 10px;
  border: 1px dashed rgba(157, 248, 157, 0.35);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.puzzle-trigger__text {
  color: #9df89d;
  font-family: "Courier New", monospace;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.choice-btn {
  border: 1px solid #3cff3c;
  background: transparent;
  color: #d4ffd4;
  padding: 10px 12px;
  border-radius: 4px;
  text-align: left;
  font-family: "Courier New", monospace;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.1s;
}

.choice-btn:hover {
  background: rgba(60, 255, 60, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(60, 255, 60, 0.4);
}

.choice-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.choice-btn.ending {
  border-color: #e50914;
}

.footer {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  color: #888;
  gap: 8px;
  flex-wrap: wrap;
}

.reset-btn {
  border: 1px solid #e50914;
  background: transparent;
  color: #ffb3b9;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.1s;
}

.reset-btn:hover {
  background: rgba(229, 9, 20, 0.2);
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.7);
  transform: translateY(-1px);
}

@media (max-width: 800px) {
  .scene-layout {
    grid-template-columns: 1fr;
  }

  .scene-image-wrapper {
    min-height: 160px;
  }
}

@media (max-width: 600px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .header-actions {
    align-self: flex-end;
  }

  .terminal {
    max-height: none;
  }

  .landing-title {
    font-size: 1.6rem;
  }
}

.agent-selector-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.agent-selector-modal.is-open {
  display: flex;
}

.agent-selector-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.agent-selector-modal__content {
  position: relative;
  z-index: 1;
  background: radial-gradient(circle at 25% 15%, rgba(60, 255, 60, 0.08), #050308 75%);
  border: 2px solid rgba(157, 248, 157, 0.35);
  border-radius: 14px;
  box-shadow: 0 0 40px rgba(60, 255, 60, 0.3);
  padding: 20px;
  width: min(900px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
}

.agent-selector-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  color: #9df89d;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 1;
}

.agent-selector-modal__header {
  text-align: center;
  margin-bottom: 20px;
}

.agent-selector-title {
  font-family: "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #3cff3c;
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.agent-selector-subtitle {
  color: #9df89d;
  font-size: 0.85rem;
}

.agent-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.agent-card {
  border: 1px solid rgba(157, 248, 157, 0.3);
  border-radius: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.agent-card:hover {
  border-color: rgba(60, 255, 60, 0.6);
  background: rgba(60, 255, 60, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(60, 255, 60, 0.4);
}

.agent-card.is-current {
  border-color: #3cff3c;
  background: rgba(60, 255, 60, 0.15);
  box-shadow: 0 0 15px rgba(60, 255, 60, 0.5);
}

.agent-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(157, 248, 157, 0.4);
  background: #111;
}

.agent-card__name {
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: #d4ffd4;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.agent-card__tag {
  font-size: 0.7rem;
  color: #9df89d;
  line-height: 1.2;
}
