:root {
  --bg: #020813;
  --bg-2: #071426;
  --panel: rgba(8, 21, 38, 0.92);
  --panel-2: rgba(16, 36, 58, 0.86);
  --paper: #f7fbff;
  --ink: #071426;
  --text: #f7fbff;
  --soft: #c8d8e8;
  --muted: #8298ad;
  --line: rgba(198, 228, 255, 0.22);
  --line-strong: rgba(198, 228, 255, 0.48);
  --ice: #bfe3ff;
  --gold: #e6c56e;
  --gold-2: #c99b4c;
  --red: #f28b82;
  --green: #75e4c1;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(61, 125, 188, 0.2), transparent 34%),
    linear-gradient(135deg, var(--bg), var(--bg-2) 58%, #0a233b);
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  line-height: 1.04;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.eyebrow {
  margin: 0;
  color: var(--ice);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.gold {
  color: var(--gold);
}

.primary-button,
.ghost-button,
.danger-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 950;
  border: 1px solid transparent;
}

.primary-button {
  color: var(--ink);
  background: linear-gradient(135deg, #eaf7ff, #90caff);
  border-color: rgba(255, 255, 255, 0.32);
}

.ghost-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.13);
}

.danger-button {
  color: var(--text);
  background: rgba(242, 139, 130, 0.14);
  border-color: rgba(242, 139, 130, 0.34);
}

.reward-pill,
.status-pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 950;
}

.reward-pill {
  color: var(--ink);
  background: var(--gold);
}

.status-pill {
  color: var(--ice);
  background: rgba(191, 227, 255, 0.12);
  border: 1px solid rgba(191, 227, 255, 0.22);
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--soft);
  font-weight: 850;
}

.form-message.error {
  color: var(--red);
}

.form-message.success {
  color: var(--green);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-heading h1 {
  margin: 8px 0 10px;
  font-size: 2.65rem;
}

.section-heading p:not(.eyebrow) {
  color: var(--soft);
  margin-bottom: 0;
}

.stat-card,
.content-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.stat-card {
  min-height: 126px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
}

.stat-card strong {
  font-size: 2rem;
  line-height: 1;
}

.stat-card span {
  color: var(--soft);
  font-weight: 850;
}

.xp-bar {
  height: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.xp-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--ice), var(--gold));
}
