/* ── ACHIEVEMENTS PAGE ── */
.ach-content {
  flex: 1; padding: 28px 32px; max-width: 1100px;
  margin: 0 auto; width: 100%;
}
.ach-section-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text3); margin-bottom: 14px;
}
.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.ach-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 2px; padding: 16px;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px; text-align: center;
  transition: all 0.2s; position: relative;
}
.ach-card.earned {
  border-color: rgba(173, 98, 255, 0.28);
  background: linear-gradient(135deg, var(--bg2), #231633);
  cursor: pointer;
}
.ach-card.earned:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(173, 98, 255, 0.2);
  transform: translateY(-2px);
}
.ach-card.locked { opacity: 0.45; filter: grayscale(0.5); }
.ach-card.active-badge {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(173, 98, 255, 0.35);
}
.ach-icon { font-size: 32px; line-height: 1; }
.ach-name {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  font-weight: 500; color: var(--text); letter-spacing: 0.03em;
}
.ach-desc {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px;
  color: var(--text3); line-height: 1.5;
}
.ach-date {
  font-family: 'IBM Plex Mono', monospace; font-size: 9px;
  color: var(--accent); margin-top: 2px;
}
.ach-badge-label {
  position: absolute; top: 6px; right: 6px;
  font-size: 9px; font-family: 'IBM Plex Mono', monospace;
  background: var(--accent); color: #0e0c14;
  padding: 1px 5px; border-radius: 1px;
}
.ach-loading {
  color: var(--text3); font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; padding: 24px;
}

/* ── Achievement toast notifications ── */
#ach-toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 99999; display: flex;
  flex-direction: column; gap: 10px; pointer-events: none;
}
.ach-toast {
  background: var(--bg2); border: 1px solid var(--accent);
  border-left: 4px solid var(--accent); border-radius: 2px;
  padding: 12px 16px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 4px 24px #00000088; animation: toastIn 0.35s ease;
  min-width: 280px; max-width: 360px; pointer-events: all;
}
.ach-toast-icon { font-size: 28px; flex-shrink: 0; }
.ach-toast-body { flex: 1; }
.ach-toast-title {
  font-family: 'IBM Plex Mono', monospace; font-size: 9px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 3px;
}
.ach-toast-name {
  font-family: 'Playfair Display', serif; font-size: 15px;
  font-weight: 700; color: var(--text);
}
.ach-toast-desc {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px;
  color: var(--text2); margin-top: 2px;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

@media (max-width: 720px) {
  .ach-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  #ach-toast-container { bottom: 12px; right: 12px; left: 12px; }
  .ach-toast { min-width: 0; }
  .tv-match-toast { min-width: 0; }
}

/* ── Live TV Match Toast (Broadcast alert) ── */
.tv-match-toast {
  background: #171226;
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-left: 4px solid #ef4444;
  border-radius: 3px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.75), 0 0 16px rgba(239, 68, 68, 0.22);
  animation: toastIn 0.35s ease;
  min-width: 290px;
  max-width: 375px;
  pointer-events: all;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  user-select: none;
}
.tv-match-toast:hover {
  transform: translateY(-2px);
  border-color: #ef4444;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.85), 0 0 24px rgba(239, 68, 68, 0.4);
}
.tv-match-toast-icon {
  font-size: 26px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tv-match-toast-dot {
  position: absolute;
  top: -2px;
  right: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
  animation: tvDotPulse 1.4s infinite;
}
.tv-match-toast-body {
  flex: 1;
  min-width: 0;
}
.tv-match-toast-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f87171;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.tv-match-toast-name {
  font-family: 'Playfair Display', serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tv-match-toast-desc {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #94a3b8;
  margin-top: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tv-match-toast-cta {
  color: #c084fc;
  font-weight: 600;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tv-match-toast-close {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  padding: 3px 5px;
  line-height: 1;
  border-radius: 3px;
  margin-left: 2px;
}
.tv-match-toast-close:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.1);
}

@keyframes tvDotPulse {
  0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(239,68,68,0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 5px rgba(239,68,68,0); }
  100% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
