:root {
  color-scheme: light;
  --bg: #f2efe8;
  --panel: rgba(255, 255, 255, 0.92);
  --line: #d8d2c8;
  --text: #1f1a16;
  --muted: #6e6257;
  --accent: #0b5fff;
  --accent-strong: #0847bf;
  --warning: #8c4a00;
  --error-bg: #ffe5e5;
  --error-text: #8f1d1d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, #fff8df 0, transparent 32%),
    linear-gradient(135deg, #f3eee2 0%, #e8f0fb 100%);
  min-height: 100vh;
}

.shell {
  width: min(980px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(48, 38, 27, 0.08);
  overflow: hidden;
}

.hero,
.card,
.actions {
  padding: 24px;
}

.hero {
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--muted);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.05;
  margin-bottom: 12px;
}

h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

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

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.button:hover {
  background: var(--accent-strong);
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.card + .card {
  border-top: 1px solid var(--line);
}

.profile {
  display: flex;
  gap: 16px;
  align-items: center;
}

.avatar,
.placeholder {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #ddd6cb;
  object-fit: cover;
}

.games {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}

.game {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.game img,
.game .placeholder {
  width: 48px;
  height: 48px;
}

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

.alert {
  margin: 24px;
  padding: 14px 16px;
  border-radius: 8px;
}

.alert.error {
  background: var(--error-bg);
  color: var(--error-text);
}

@media (max-width: 640px) {
  .shell {
    width: calc(100vw - 20px);
    padding-top: 10px;
  }

  .hero,
  .card,
  .actions {
    padding: 18px;
  }
}
