:root {
  color-scheme: dark;
  --bg: #0b0f17;
  --panel: rgba(255, 255, 255, 0.06);
  --text: #e8eefc;
  --muted: rgba(232, 238, 252, 0.68);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --steam: #d40000;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background: radial-gradient(1200px 700px at 30% -10%, rgba(96, 165, 250, 0.25), transparent 55%),
    radial-gradient(900px 550px at 90% 10%, rgba(94, 234, 212, 0.18), transparent 55%),
    var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }

.page {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.page-title {
  margin-bottom: 14px;
  font-weight: 900;
  letter-spacing: 0.22em;
  color: rgba(232, 238, 252, 0.9);
  text-align: center;
  font-size: 50px;
  text-transform: uppercase;
}

.card {
  width: min(680px, 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-top: -500px;
}

.card-body {
  display: grid;
  grid-template-columns: auto auto;
  gap: 12px;
  padding: 14px;
  align-items: center;
}

.user {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  max-width: 340px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  flex: none;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-name { font-weight: 800; }
.user-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.steam-image-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.steam-image-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
}

.steam-image-btn img {
  height: 44px;
  width: auto;
  display: block;
}

.back-link {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
  color: var(--muted);
}

.back-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }

@media (max-width: 700px) {
  .card-body {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .actions {
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .steam-image-btn, .back-link { width: 100%; }
  .steam-image-btn img { width: 100%; height: auto; }
}
