:root {
  --bg: #102c52;
  --bg-2: #5d7faa;
  --panel: rgba(22, 48, 84, 0.82);
  --panel-2: rgba(34, 67, 111, 0.78);
  --panel-soft: rgba(65, 98, 145, 0.62);
  --field: rgba(238, 248, 255, 0.18);
  --glass-light: rgba(243, 248, 255, 0.82);
  --glass-light-strong: rgba(248, 251, 255, 0.92);
  --glass-text: #10294d;
  --paper: #f7fbff;
  --ink: #071426;
  --text: #f7fbff;
  --soft: #d6e6f5;
  --muted: #9fb6c9;
  --line: rgba(222, 241, 255, 0.34);
  --line-strong: rgba(232, 245, 255, 0.64);
  --ice: #cceaff;
  --gold: #e6c56e;
  --gold-2: #c99b4c;
  --red: #f28b82;
  --green: #75e4c1;
  --shadow: 0 24px 76px rgba(8, 26, 52, 0.24);
  --inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

* {
  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 16% 3%, rgba(160, 209, 255, 0.34), transparent 32%),
    radial-gradient(circle at 84% 11%, rgba(230, 197, 110, 0.16), transparent 30%),
    radial-gradient(circle at 74% 90%, rgba(239, 247, 255, 0.22), transparent 38%),
    linear-gradient(135deg, #10284c, #476d9b 58%, #86a5cd);
  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, #ffe58b, #dba64d);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 10px 24px rgba(190, 139, 51, 0.2);
}

.ghost-button {
  color: var(--text);
  background: rgba(238, 248, 255, 0.14);
  border-color: rgba(222, 241, 255, 0.28);
}

.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(204, 234, 255, 0.14);
  border: 1px solid rgba(204, 234, 255, 0.28);
}

.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:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    var(--panel);
  box-shadow: var(--shadow), var(--inner-glow);
}

.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));
}
