:root {
  color-scheme: light;
  --bg: #fdfaf6;
  --panel: #ffffff;
  --card: #ffffff;
  --accent: #ff5a00;
  --accent-strong: #e24d00;
  --muted: #5f6b7a;
  --text: #0b1624;
  --border: #e1e6ef;
  --shadow: 0 10px 35px rgba(11, 22, 36, 0.08);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid #f3e6da;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  margin-bottom: 18px;
}

.actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.actions .action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: #ffffff;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
  box-shadow: 0 10px 24px rgba(255, 90, 0, 0.14);
  cursor: pointer;
}

.actions .action-button:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.brand img {
  height: 46px;
  width: auto;
  display: block;
}

.nav {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #2c2c2c;
}

.nav a {
  color: inherit;
  text-decoration: none;
  transition: color 120ms ease;
}

.nav a:hover {
  color: var(--accent);
}

.cta-outline {
  padding: 11px 22px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease, box-shadow 120ms ease;
  box-shadow: 0 10px 24px rgba(255, 90, 0, 0.14);
}

.cta-outline:hover {
  background: var(--accent);
  color: #ffffff;
}

.hero {
  background: linear-gradient(135deg, #fff4ec, #fffaf5);
  border: 1px solid #ffe1cf;
  border-radius: 16px;
  padding: 20px 20px 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
  margin-bottom: 24px;
}

.hero h1 {
  margin: 4px 0;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.01em;
}

.eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0;
}

.lede {
  margin: 0;
  color: var(--muted);
}

.displayname {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

.pill {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 90, 0, 0.1);
  color: var(--accent-strong);
  font-weight: 600;
  border: 1px solid rgba(255, 90, 0, 0.25);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  align-items: end;
}

.form.single {
  grid-template-columns: 1fr auto auto;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-weight: 600;
  color: #1c2b3a;
}

input {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fdfefe;
  color: var(--text);
}

button {
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  padding: 13px 16px;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  box-shadow: 0 10px 24px rgba(255, 90, 0, 0.25);
}

button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.button-secondary {
  background: #ffffff;
  color: var(--accent-strong);
  border: 2px solid rgba(255, 90, 0, 0.4);
  box-shadow: none;
}

.button-secondary:hover {
  background: rgba(255, 90, 0, 0.08);
}

.user-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 20px;
}

.hint {
  margin: 4px 0 0;
  color: var(--muted);
  grid-column: 1 / -1;
}

.hint.error {
  color: #c0392b;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100%;
}

.badge-image {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: linear-gradient(135deg, #f4f7fb, #e9eef5);
}

.card-body {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.badge-name {
  margin: 0;
}

.badge-desc {
  margin: 0;
  color: var(--muted);
}

.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px 12px;
  margin: 0;
}

dt {
  margin: 0;
  font-weight: 600;
  color: #2e3c4d;
}

dd {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 12px 12px 16px;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
  }

  .hero {
    padding: 16px;
  }

  .form {
    grid-template-columns: 1fr;
  }

  .form.single {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .actions,
  .cta-outline,
  button,
  .hint {
    display: none !important;
  }

  .page {
    padding: 0;
  }

  .panel,
  .card {
    box-shadow: none;
  }
}