/* gfx.css — WCAT StatStream Graphics Control */

body.gfx-body {
  font-family: "Open Sans", sans-serif;
  background-color: #f1f1f1;
  margin: 0;
}

/* ---------- Lock screen ---------- */

#lockScreen {
  position: fixed;
  inset: 0;
  background: rgb(35, 39, 42);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.gfx-lock-card {
  background: white;
  border-radius: 20px;
  padding: 40px 44px;
  width: 340px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.gfx-lock-card img {
  width: 90px;
  margin-bottom: 16px;
}

.gfx-lock-card h1 {
  font-size: 20px;
  margin: 0 0 4px;
  color: #222;
}

.gfx-lock-card p {
  font-size: 13px;
  color: #777;
  margin: 0 0 24px;
}

.gfx-lock-card input {
  width: 75%;
  height: 48px;
  border-radius: 10px;
  border: 1px solid #d0d5db;
  padding: 0 16px;
  font-size: 16px;
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.gfx-lock-card button {
  width: 75%;
  height: 48px;
  border-radius: 10px;
  border: none;
  background: #39b54a;
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.gfx-lock-card button:hover {
  background: #005f43;
}

#gfxPasswordError {
  display: none;
  color: #ef4444;
  font-size: 13px;
  margin-top: 10px;
}

/* ---------- Main app ---------- */

#gfxApp {
  display: none;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.gfx-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.gfx-header img {
  width: 48px;
}

.gfx-header h1 {
  font-size: 24px;
  font-weight: 800;
  color: #222;
  margin: 0;
}

.gfx-header .typewriterfont {
  margin-left: auto;
  font-family: "Courier Prime", monospace;
  font-size: 13px;
  color: #666;
}

#gfxNoGame {
  background: white;
  border-radius: 18px;
  border: 1px solid #d9dde1;
  padding: 40px;
  text-align: center;
  color: #666;
}

#gfxBuilder {
  display: none;
}

.gfx-game-label {
  font-family: "Courier Prime", monospace;
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.gfx-card {
  background: white;
  border: 3px solid #39b54a;
  border-radius: 20px;
  padding: 28px 32px;
}

.gfx-card + .gfx-card {
  margin-top: 28px;
}

.gfx-field-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #6b7280;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.gfx-stat-row {
  margin-bottom: 24px;
}

.gfx-stat-row select {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  border: 1px solid #d0d5db;
  padding: 0 16px;
  font-size: 15px;
  background: white;
}

.gfx-slots {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: start;
}

.gfx-slot select {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  border: 1px solid #d0d5db;
  padding: 0 14px;
  font-size: 14px;
  background: white;
  margin-bottom: 14px;
}

.gfx-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #005f43;
  font-size: 18px;
  padding-top: 12px;
}

.gfx-preview {
  border: 1px dashed #d9dde1;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  min-height: 64px;
}

.gfx-preview-name {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.gfx-preview-team {
  font-size: 11px;
  color: #999;
  font-style: italic;
}

.gfx-preview-value {
  font-size: 28px;
  font-weight: 800;
  color: #005f43;
  font-family: "Courier Prime", monospace;
}

.gfx-preview-empty {
  color: #bbb;
  font-size: 20px;
}

.gfx-stat-preview-label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #6b7280;
  margin: 18px 0;
}

.gfx-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.gfx-btn {
  flex: 1;
  height: 52px;
  border-radius: 10px;
  border: 1px solid #d0d5db;
  background: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.gfx-btn-push {
  background: #39b54a;
  border-color: #39b54a;
  color: white;
}

.gfx-btn-push:hover {
  background: #005f43;
  border-color: #005f43;
}

.gfx-btn-clear:hover {
  background: #fdeaea;
  border-color: #ef4444;
  color: #ef4444;
}

#gfxPushStatus,
#gfxSpotlightPushStatus,
#gfxBigComparePushStatus,
#gfxDrivePushStatus {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  color: #005f43;
  opacity: 0;
  transition: opacity 0.3s;
}

/* ============ PLAYER SPOTLIGHT ============ */

.gfx-spotlight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.gfx-spotlight-header h2 {
  font-size: 18px;
  margin: 0;
}

.gfx-team-toggle {
  display: flex;
  gap: 8px;
}

.gfx-toggle-btn {
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid #d0d5db;
  background: white;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.gfx-toggle-btn-active {
  background: #005f43;
  color: white;
  border-color: #005f43;
}

.gfx-toggle-btn:hover {
  background: #39b54a;
  color: white;
  border-color: #39b54a;
}

.gfx-player-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.gfx-player-btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #d0d5db;
  background: white;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.gfx-player-btn:hover {
  background: #39b54a;
  color: white;
  border-color: #39b54a;
}

.gfx-player-buttons-empty {
  color: #bbb;
  font-size: 13px;
  margin-top: 10px;
}

.gfx-spotlight-divider {
  height: 1px;
  background: #d9dde1;
  margin: 24px 0;
}

.gfx-spotlight-queue {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  min-height: 30px;
}

.gfx-spotlight-queue-empty {
  color: #bbb;
  font-size: 13px;
}

.gfx-queue-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 12px;
  border-radius: 20px;
  border: 1px solid #d0d5db;
  background: white;
  font-size: 13px;
  font-weight: 600;
}

.gfx-queue-chip.active {
  background: #eafaf0;
  border-color: #39b54a;
  color: #005f43;
}

.gfx-queue-chip-remove {
  border: none;
  background: none;
  color: #999;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}

.gfx-queue-chip-remove:hover {
  color: #ef4444;
}

.gfx-spotlight-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.gfx-spotlight-nav .gfx-btn {
  flex: 0 0 auto;
  padding: 0 20px;
}

.gfx-spotlight-current {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: #444;
}

.gfx-spotlight-editor {
  margin-top: 24px;
  border-top: 1px dashed #d9dde1;
  padding-top: 20px;
}

.gfx-spotlight-preview-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.gfx-spotlight-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
  border: 2px solid #d9dde1;
}

.gfx-spotlight-name {
  font-size: 18px;
  font-weight: 800;
  color: #005f43;
}

.gfx-spotlight-meta {
  font-size: 13px;
  color: #777;
}

.gfx-spotlight-stats {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.gfx-spotlight-stat-slot {
  flex: 1;
  min-width: 150px;
}

.gfx-spotlight-stat-slot select {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #d0d5db;
  margin-top: 4px;
  font-size: 13px;
}

.gfx-spotlight-custom-input {
  width: 100%;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #d0d5db;
  margin-top: 6px;
  padding: 0 10px;
  font-size: 13px;
  box-sizing: border-box;
}

.gfx-spotlight-stat-value {
  font-family: "Courier Prime", monospace;
  font-weight: 800;
  font-size: 20px;
  color: #005f43;
  margin-top: 6px;
}

.gfx-bigcompare-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.gfx-bigcompare-slot {
  flex: 1;
  min-width: 160px;
}

.gfx-bigcompare-slot select {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #d0d5db;
  font-size: 13px;
}

.gfx-bigcompare-values {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: "Courier Prime", monospace;
  font-weight: 800;
  font-size: 16px;
  color: #005f43;
}

.gfx-drive-btn.active {
  background: #005f43;
  color: white;
  border-color: #005f43;
}
