/* Same look as dreamteamhub.ca (colours, header, pill buttons). */
:root {
  --bg: #f4f5f8;
  --surface: #ffffff;
  --text: #1c1e26;
  --muted: #5e6272;
  --accent: #4f5bd5;
  --green: #84cc16;
  --mannequin: #d6c3a5;
  --mannequin-joint: #b89f7a;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06);
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121319;
    --surface: #1c1e27;
    --text: #eceef4;
    --muted: #a2a6b6;
    --accent: #8b95ff;
    --mannequin: #c9b48f;
    --mannequin-joint: #a38b66;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

main {
  flex: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

a {
  color: var(--accent);
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  text-align: center;
  padding: 56px 16px 32px;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.tagline {
  margin: 8px 0 0;
  color: var(--muted);
}

.site-nav {
  position: absolute;
  top: 16px;
  left: 16px;
}

.pill-link {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow 0.2s ease;
}

.pill-link:hover {
  box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.5), var(--shadow);
}

.pill-link:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .site-header {
    padding-top: 72px;
  }
}

/* ---------- Profile ---------- */

.message {
  text-align: center;
  color: var(--muted);
}

.profile {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 1.4fr;
  gap: 24px;
  align-items: start;
}

.profile[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .profile {
    grid-template-columns: 1fr;
  }
}

.card {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

/* Mannequin with the Customize button beside it. */
.character {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
}

.mannequin {
  width: 140px;
  height: auto;
}

.mannequin__body {
  fill: var(--mannequin);
}

.mannequin__joints {
  fill: var(--mannequin-joint);
}

.mannequin__stand {
  fill: var(--muted);
}

.customize {
  margin-bottom: 8px;
}

.details {
  display: grid;
  gap: 24px;
}

.rename__pickers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.rename select {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--muted);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.rename[hidden] {
  display: none;
}

.button {
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.button--primary {
  background: var(--green);
  color: #1c1e26;
}

.button:disabled {
  opacity: 0.6;
  cursor: default;
}

.rename .button {
  width: 100%;
}

.status {
  min-height: 1.2em;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.muted {
  color: var(--muted);
}

#joined {
  margin: 0 0 8px;
}

.stats {
  width: 100%;
  border-collapse: collapse;
}

.stats th,
.stats td {
  padding: 8px 0;
  text-align: left;
}

.stats th {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.stats td {
  border-top: 1px solid var(--bg);
}

.stats .num {
  padding-left: 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.stats td.num {
  font-weight: 600;
}

#no-stats {
  margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  text-align: center;
  padding: 24px 16px;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer a {
  color: inherit;
}
