/* ── Layout shells ── */
.steam-card {
  text-align: center;
  padding: 40px 20px;
  background: rgba(0,0,0,0.35);
  border-radius: 16px;
  max-width: 600px;
  margin: 30px auto;
  border: 1px solid #333;
  transition: 0.4s ease;
}
.iw4x-card {
  text-align: center;
  padding: 32px 20px;
  background: rgba(0,0,0,0.35);
  border-radius: 16px;
  max-width: 600px;
  margin: 30px auto;
  border: 1px solid #333;
  box-shadow: 0 0 24px rgba(0,212,255,0.08);
}
.loading {
  text-align: center;
  padding: 60px;
  color: #aaa;
  font-size: 1.4rem;
}
.iw4x-loading {
  padding-top: 30px;
  padding-bottom: 30px;
}

/* ── Steam profile ── */
.steam-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid var(--space0);
  box-shadow: 0 0 30px rgba(0,212,255,0.4);
}
.steam-name {
  margin: 20px 0 8px;
  font-size: 2.2rem;
  color: var(--space0);
}
.steam-stats {
  margin: 25px 0;
  font-size: 1.3rem;
  line-height: 1.8;
}
.steam-level {
  font-size: 3rem;
  font-weight: bold;
  color: var(--space1);
  text-shadow: 0 0 20px var(--space2);
}
.steam-section {
  margin-top: 30px;
}
.steam-section h3 {
  margin: 0 0 15px;
  color: var(--space0);
}

/* ── Game cards ── */
.game-card {
  transition: 0.4s ease;
  text-align: center;
  background-size: cover;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid #333;
  margin-bottom: 16px;
}
.game-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0,212,255,0.4);
  border-color: var(--space1);
}
.game-card-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,212,255,0.4);
}
.game-card-name {
  margin: 15px 0 6px;
  font-weight: bold;
  font-size: 1.2rem;
  color: #fff;
  text-shadow: 0 0 20px var(--space2);
}
.game-card-meta {
  color: var(--space0);
  font-size: 1.1rem;
  margin: 5px 0;
}
.game-card-hours {
  color: var(--space0);
  font-size: 1.6rem;
  font-weight: bold;
  margin: 0;
}
.game-card-wrap {
  margin: 20px;
}

/* ── Now Playing hero ── */
.now-playing-card {
  text-align: center;
  padding: 40px 20px;
  background: rgba(0,0,0,0.5);
  border-radius: 16px;
  max-width: 600px;
  margin: 30px auto;
  border: 1px solid #333;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.now-playing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  border-radius: 16px;
}
.now-playing-inner {
  position: relative;
  z-index: 1;
}
.now-playing-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 12px;
  animation: pulse-pill 2s infinite;
}
.now-playing-pill.ingame {
  background: rgba(0,212,255,0.2);
  border: 1px solid rgba(0,212,255,0.5);
  color: var(--space0);
}
.now-playing-pill.recent {
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.25);
  color: #aaa;
  animation: none;
}
@keyframes pulse-pill {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.now-playing-title {
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 20px var(--space2);
  margin: 0 0 8px;
}
.now-playing-sub {
  color: var(--space0);
  font-size: 1.1rem;
}

/* ── Profile stats strip ── */
.profile-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto 30px;
}
.profile-strip-stat {
  background: rgba(0,212,255,0.08);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 14px 20px;
  text-align: center;
  min-width: 110px;
}
.profile-strip-value {
  color: var(--space1);
  font-size: 1.6rem;
  font-weight: bold;
  text-shadow: 0 0 16px var(--space2);
}
.profile-strip-label {
  color: #aaa;
  font-size: 0.85rem;
  margin-top: 4px;
}

/* ── Hall of Fame grid ── */
.hof-section {
  max-width: 600px;
  margin: 30px auto;
}
.hof-section h2 {
  color: var(--space0);
  margin: 0 0 16px;
  text-align: center;
}
.hof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
@media (max-width: 480px) {
  .hof-grid { grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)); }
}
.hof-tile {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #333;
  cursor: default;
  transition: 0.3s ease;
}
.hof-tile:hover {
  border-color: var(--space1);
  box-shadow: 0 8px 24px rgba(0,212,255,0.3);
  transform: translateY(-4px);
}
.hof-tile img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}
.hof-tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
  opacity: 0;
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8px;
  text-align: center;
}
.hof-tile:hover .hof-tile-overlay {
  opacity: 1;
}
.hof-tile-rating {
  color: var(--space1);
  font-size: 1.1rem;
  font-weight: bold;
}
.hof-tile-blurb {
  color: #ddd;
  font-size: 0.75rem;
  margin-top: 4px;
  line-height: 1.3;
}
.hof-tile-placeholder {
  width: 100%;
  aspect-ratio: 8 / 16;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,212,255,0.07);
  color: #aaa;
  font-size: 0.75rem;
  text-align: center;
  padding: 6px;
  box-sizing: border-box;
}
.hof-tile-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.75);
  border: 1px solid var(--space1);
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--space1);
  font-size: 0.75rem;
  font-weight: bold;
}

/* ── Currently Obsessed strip ── */
.obsessed-section {
  max-width: 600px;
  margin: 30px auto;
}
.obsessed-section h2 {
  color: var(--space0);
  margin: 0 0 16px;
  text-align: center;
}
.obsessed-card {
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.obsessed-thumb {
  width: 80px;
  flex-shrink: 0;
  border-radius: 6px;
}
.obsessed-body {}
.obsessed-title {
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  margin: 0 0 6px;
}
.obsessed-commentary {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* ── Recent activity (2-week) ── */
.activity-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.activity-bar-bg {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}
.activity-bar-fill {
  height: 100%;
  background: var(--space1);
  border-radius: 3px;
}
.activity-bar-label {
  color: #aaa;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* ── Achievement badge ── */
.ach-footer {
  margin-top: 8px;
  color: #aaa;
  font-size: 0.85rem;
}
.ach-rare {
  color: var(--space1);
  font-size: 0.8rem;
  margin-top: 2px;
}

/* ── IW4x card (unchanged classes) ── */
.iw4x-card h2 { margin: 0 0 8px; font-size: 2rem; color: var(--space0); }
.iw4x-subtitle { margin: 0 0 22px; color: #aaa; font-size: 1rem; }
.iw4x-status-pill {
  display: inline-block;
  margin: 8px 0 22px;
  padding: 7px 13px;
  border-radius: 999px;
  font-weight: bold;
  border: 1px solid rgba(0,212,255,0.35);
  background: rgba(0,212,255,0.12);
  color: var(--space0);
}
.iw4x-status-pill.offline {
  border-color: rgba(255,120,120,0.35);
  background: rgba(255,120,120,0.12);
  color: #ffb3b3;
}
.iw4x-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.iw4x-scoreboard {
  margin: 18px 0 20px;
  padding: 16px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,212,255,0.25);
  background: rgba(0,212,255,0.08);
}
.iw4x-score-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.iw4x-team-name { color: #ddd; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; }
.iw4x-team-score { color: var(--space1); font-size: 2rem; font-weight: bold; line-height: 1.1; text-shadow: 0 0 16px var(--space2); }
.iw4x-score-divider { color: #aaa; font-weight: bold; }
.iw4x-score-note { margin-top: 10px; color: #aaa; font-size: 0.95rem; }
.iw4x-lifetime { margin: 20px 0; padding-top: 4px; }
.iw4x-lifetime h3 { margin: 0 0 12px; color: var(--space0); font-size: 1.25rem; }
.iw4x-stat {
  background: rgba(0,212,255,0.1);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 14px 10px;
}
.iw4x-stat-value { color: var(--space1); font-size: 1.7rem; font-weight: bold; line-height: 1.1; text-shadow: 0 0 16px var(--space2); }
.iw4x-stat-label { color: #ddd; font-size: 0.9rem; margin-top: 6px; }
.iw4x-footer { margin: 18px 0 0; color: #aaa; font-size: 0.95rem; }

/* ── Recent Matches strip ── */
.matches-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin: 16px 0;
}
.match-card {
  flex: 0 0 auto;
  width: 120px;
  border: 1px solid #333;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  background: rgba(0,0,0,0.4);
}
.match-card-map {
  width: 100%;
  height: 60px;
  object-fit: cover;
  display: block;
}
.match-card-map-placeholder {
  width: 100%;
  height: 60px;
  background: rgba(0,212,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #666;
}
.match-card-body {
  padding: 6px 4px;
}
.match-card-name {
  font-size: 0.7rem;
  color: #ccc;
  margin: 0 0 4px;
}
.match-card-score {
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--space1);
}
.match-card-winner {
  font-size: 0.65rem;
  color: #aaa;
  margin-top: 2px;
}

/* ── Activity heatmap ── */
.heatmap-wrap {
  margin: 20px 0;
  overflow-x: auto;
}
.heatmap-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 10px);
  gap: 2px;
}
.heatmap-cell {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: rgba(0,212,255,0.08);
}
.heatmap-cell.h1 { background: rgba(0,212,255,0.2); }
.heatmap-cell.h2 { background: rgba(0,212,255,0.4); }
.heatmap-cell.h3 { background: rgba(0,212,255,0.65); }
.heatmap-cell.h4 { background: rgba(0,212,255,0.9); }
.heatmap-label {
  color: #aaa;
  font-size: 0.8rem;
  margin-top: 6px;
  text-align: right;
}
