/* Shared Redline interface foundations. Cosmetic artwork has its own palette. */
:root {
  color-scheme: dark;
  --bg: #0d0f13;
  --surface: #15181e;
  --raised: #20242c;
  --text: #eceef2;
  --muted: #a9afbb;
  --line: #303640;
  --accent: #ef626b;
  --action: #b72f3f;
  --selected: #301b23;
  --paper: var(--text);
  --rule: var(--line);
  --red: var(--accent);
  --war-ivory: var(--text);
  --war-dim: var(--muted);
  --war-rule: var(--line);
  --war-red: var(--accent);
  --war-surface: var(--surface);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: #ef626b33;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.5 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-variant-numeric: tabular-nums;
}
h1,
h2,
h3,
h4 {
  color: var(--text);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
h1 {
  font-size: 26px;
  font-weight: 700;
}
h2 {
  font-size: 19px;
  font-weight: 650;
}
h3 {
  font-size: 15px;
  font-weight: 650;
}
p {
  line-height: 1.6;
}
small {
  font-size: 12px;
  color: var(--muted);
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
input,
select,
textarea,
.button {
  border-radius: 2px;
}
button,
.button {
  min-height: 36px;
  padding: 7px 12px;
  background: var(--raised);
  border: 1px solid transparent;
  color: var(--text);
  cursor: pointer;
  line-height: 1.4;
  transition: background-color 100ms ease;
}
button:hover:not(:disabled),
.button:hover {
  background: #2b303a;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button.primary,
.button.primary,
button.claim-ready,
button[data-npc-battle],
button[data-battle] {
  background: var(--action);
  color: #fff;
  border-color: transparent;
}
button.primary:hover:not(:disabled),
button.claim-ready:hover:not(:disabled),
button[data-npc-battle]:hover:not(:disabled) {
  background: #cc3a4b;
}
input,
select,
textarea {
  min-height: 38px;
  padding: 7px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  max-width: 100%;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
input[type="range"] {
  padding: 0;
  border: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  background: var(--line);
  border: 0;
  border-radius: 0;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
}
input[type="range"]::-moz-range-track {
  height: 3px;
  background: var(--line);
  border: 0;
}
input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
}
.policy-document .policy-cover,
.policy-document .policy-sheet {
  border: 0;
  background: transparent;
}
.policy-document .policy-cover {
  padding: 8px 0;
}
.policy-document .policy-cover h1 {
  font-size: 30px;
}
.policy-document .policy-cover-mark,
.policy-document .policy-section-number {
  display: none;
}
.policy-document .policy-sheet {
  padding-top: 0;
}
.policy-document .policy-sheet section {
  border: 0;
  padding: 18px 0;
}
.policy-document .policy-sheet :is(p, li) {
  font-size: 14px;
  line-height: 1.75;
}
.policy-document .policy-sheet h2 {
  font-size: 20px;
}
.policy-document .policy-contents nav a {
  border: 0;
  grid-template-columns: 1fr;
  padding: 7px 0;
}
.policy-document .policy-contents nav a > span {
  display: none;
}
.policy-document .policy-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.policy-document .policy-brand {
  font-weight: 800;
  font-size: 23px;
}
.policy-document .policy-brand > b {
  font-weight: 800;
}
.policy-document .policy-return {
  border: 0;
  background: var(--raised);
  color: var(--text);
}
.policy-document .policy-footer {
  border-top: 1px solid var(--line);
}
.policy-document .policy-footer :is(b, a, span) {
  font-size: 12px;
}
.policy-document .checkout-sheet {
  border: 0;
  background: transparent;
}
.policy-document .checkout-sheet h2 {
  border: 0;
}
.policy-document .checkout-sheet section {
  border: 0;
  padding: 16px 0;
}
.policy-document #support-submit,
.policy-document #feedback-submit {
  background: var(--action);
  border: 0;
  color: white;
}
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}
textarea {
  resize: vertical;
}
:is(button, a, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
[aria-busy="true"] {
  cursor: progress;
}
[hidden] {
  display: none !important;
}
progress {
  accent-color: var(--accent);
  height: 4px;
  border: 0;
}
progress::-webkit-progress-bar {
  background: var(--line);
}
progress::-webkit-progress-value {
  background: var(--accent);
}
progress::-moz-progress-bar {
  background: var(--accent);
}
.muted,
.muted-note,
.account-hint {
  color: var(--muted);
}
@media (pointer: coarse) {
  button,
  .button,
  input:not([type="checkbox"]):not([type="radio"]),
  select {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  button,
  input,
  select,
  textarea {
    transition: none !important;
  }
}
