@font-face {
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/fonts/material-symbols-outlined.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #f1efe8;
  background: #0c1117;
  --page: #0c1117;
  --surface: #151c24;
  --surface-raised: #202934;
  --surface-quiet: #10161d;
  --line: #49515a;
  --line-soft: #303943;
  --text: #f1efe8;
  --muted: #b4bac3;
  --gold: #e7c66c;
  --gold-strong: #f4d878;
  --red: #d9584f;
  --green: #5bb98c;
  --blue: #69a7d8;
  --cream: #fff1ce;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.material-symbols-outlined {
  width: 1em;
  max-width: 1em;
  flex: 0 0 auto;
  display: inline-block;
  direction: ltr;
  font-family: "Material Symbols Outlined";
  font-size: 22px;
  font-style: normal;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-weight: normal;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  overflow: hidden;
  white-space: nowrap;
  word-wrap: normal;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  height: 64px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(16, 22, 29, 0.96);
  backdrop-filter: blur(12px);
}

.site-header-inner {
  width: min(1240px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-family: Georgia, "Songti SC", serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.site-brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #786b4d;
  border-radius: 4px;
  background: #2a251a;
  color: var(--gold-strong);
}

.site-brand-mark .material-symbols-outlined {
  font-size: 18px;
}

.site-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.site-nav .nav-vip {
  border-color: #786b4d;
  background: #2a251a;
  color: var(--gold-strong);
}

.page-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.product-heading {
  min-height: 230px;
  padding: 48px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 44px;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
}

.product-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.product-heading h1 {
  margin: 0;
  color: var(--cream);
  font-family: Georgia, "Songti SC", serif;
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: 0;
}

.product-heading p {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.product-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-button,
.secondary-button,
.text-button {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  border: 1px solid var(--gold-strong);
  background: var(--gold-strong);
  color: #241e10;
}

.primary-button:hover {
  border-color: #ffeaa5;
  background: #ffeaa5;
}

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

.secondary-button:hover {
  border-color: #737d88;
  background: var(--surface-raised);
}

.text-button {
  padding-inline: 4px;
  border: 0;
  background: transparent;
  color: var(--gold);
}

.codex-emblem {
  width: 170px;
  height: 170px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 48px);
  grid-template-rows: repeat(3, 48px);
  gap: 8px;
  transform: rotate(6deg);
}

.codex-emblem img {
  width: 48px;
  height: 48px;
  border: 1px solid #786b4d;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.codex-emblem img:nth-child(2),
.codex-emblem img:nth-child(4),
.codex-emblem img:nth-child(6),
.codex-emblem img:nth-child(8) {
  transform: translateY(8px);
}

.codex-overview {
  padding: 22px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-soft);
}

.codex-stat {
  min-width: 0;
  padding: 0 22px;
  border-right: 1px solid var(--line-soft);
}

.codex-stat:first-child {
  padding-left: 0;
}

.codex-stat:last-child {
  border-right: 0;
}

.codex-stat strong,
.order-total strong {
  display: block;
  color: var(--cream);
  font-family: Consolas, "Microsoft YaHei", sans-serif;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: 0;
}

.codex-stat span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.codex-toolbar {
  padding: 28px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.search-field {
  width: min(420px, 100%);
  height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-quiet);
  color: var(--muted);
}

.search-field input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.search-field input::placeholder {
  color: #7f8791;
}

.tier-filter {
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.tier-filter button {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--surface-quiet);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.tier-filter button:last-child {
  border-right: 0;
}

.tier-filter button:hover,
.tier-filter button[aria-pressed="true"] {
  background: var(--surface-raised);
  color: var(--cream);
}

.result-line {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.rune-grid {
  padding-bottom: 52px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.rune-card {
  min-width: 0;
  min-height: 238px;
  position: relative;
  padding: 15px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-top-width: 3px;
  border-radius: 4px;
  background: var(--surface);
  overflow: hidden;
}

.rune-card[data-tier="1"] {
  border-top-color: var(--green);
}

.rune-card[data-tier="2"] {
  border-top-color: var(--blue);
}

.rune-card[data-tier="3"] {
  border-top-color: var(--gold);
}

.rune-card-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
}

.rune-icon {
  width: 58px;
  height: 58px;
  border: 1px solid #5e6670;
  border-radius: 4px;
  background: var(--surface-quiet);
  object-fit: cover;
}

.rune-title {
  min-width: 0;
}

.rune-title h2 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.rune-title span,
.rune-number {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 11px;
}

.rune-number {
  align-self: start;
  margin-top: 0;
}

.rune-description {
  margin: 15px 0 0;
  color: #cbd0d7;
  font-size: 13px;
  line-height: 1.7;
}

.rune-lock-preview {
  min-height: 88px;
  margin-top: 17px;
  display: grid;
  align-content: start;
  gap: 9px;
}

.redacted-line {
  height: 8px;
  border-radius: 2px;
  background: #303943;
}

.redacted-line:nth-child(2) {
  width: 83%;
}

.redacted-line:nth-child(3) {
  width: 58%;
}

.rune-card-footer {
  min-height: 30px;
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12px;
}

.rune-card.locked {
  cursor: pointer;
}

.rune-card.locked:hover {
  border-color: #7a6941;
  border-top-color: var(--gold);
}

.lock-label,
.preview-label,
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
}

.lock-label {
  color: var(--gold);
}

.preview-label {
  color: var(--green);
}

.lock-label .material-symbols-outlined,
.preview-label .material-symbols-outlined {
  font-size: 16px;
}

.empty-state {
  min-height: 250px;
  margin-bottom: 52px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}

.empty-state[hidden],
.rune-grid[hidden] {
  display: none;
}

.modal {
  width: min(460px, calc(100% - 32px));
  padding: 0;
  border: 1px solid #786b4d;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
}

.modal-inner {
  padding: 24px;
}

.modal-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #786b4d;
  border-radius: 4px;
  background: #2a251a;
  color: var(--gold-strong);
}

.modal h2 {
  margin: 18px 0 8px;
  color: var(--cream);
  font-family: Georgia, "Songti SC", serif;
  font-size: 24px;
  letter-spacing: 0;
}

.modal p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.modal-actions {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.checkout-heading {
  min-height: 170px;
  padding: 38px 0 28px;
  border-bottom: 1px solid var(--line-soft);
}

.checkout-heading h1 {
  margin: 7px 0 9px;
  color: var(--cream);
  font-family: Georgia, "Songti SC", serif;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: 0;
}

.checkout-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.checkout-layout {
  padding: 34px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 470px);
  gap: 48px;
  align-items: start;
}

.checkout-section + .checkout-section {
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
}

.section-label {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.benefit-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  list-style: none;
}

.benefit-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.benefit-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--gold);
}

.benefit-icon .material-symbols-outlined {
  font-size: 18px;
}

.benefit-list strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.benefit-list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.plan-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.plan-option {
  min-height: 116px;
  padding: 14px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-quiet);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.plan-option:hover,
.plan-option[aria-pressed="true"] {
  border-color: var(--gold);
  background: #242117;
}

.plan-option strong {
  display: block;
  font-size: 15px;
}

.plan-option .plan-price {
  display: block;
  margin-top: 16px;
  color: var(--gold-strong);
  font-family: Consolas, sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.plan-option small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.plan-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  padding: 3px 6px;
  border-radius: 0 3px 0 3px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.checkout-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.24);
}

.checkout-panel-header {
  padding-bottom: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.checkout-panel-header h2 {
  margin: 0;
  color: var(--cream);
  font-size: 18px;
  letter-spacing: 0;
}

.checkout-domain {
  margin: 5px 0 0;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 11px;
}

.checkout-domain .material-symbols-outlined {
  color: var(--green);
  font-size: 14px;
}

.status-chip {
  padding: 5px 7px;
  border: 1px solid #7a6941;
  border-radius: 4px;
  background: #2a251a;
  color: var(--gold-strong);
  white-space: nowrap;
}

.order-lines {
  padding: 18px 0;
  display: grid;
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.order-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.order-line strong {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

.account-field {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}

.account-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.account-field input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: 0;
  background: var(--surface-quiet);
  color: var(--text);
  font-family: Consolas, monospace;
  font-size: 14px;
}

.account-field input:focus {
  border-color: var(--gold);
}

.account-field input[aria-invalid="true"] {
  border-color: var(--red);
}

.field-message {
  min-height: 18px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.field-message.error {
  color: #ff9c94;
}

.checkout-account {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.checkout-account-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.checkout-account-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-quiet);
  color: var(--gold);
}

.checkout-account-copy {
  min-width: 0;
}

.checkout-account-copy span,
.checkout-account-copy strong {
  display: block;
}

.checkout-account-copy span {
  color: var(--muted);
  font-size: 11px;
}

.checkout-account-copy strong {
  margin-top: 3px;
  color: var(--text);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.checkout-account .text-button {
  flex: 0 0 auto;
  min-height: 36px;
  font-size: 12px;
}

.account-layout {
  min-height: 520px;
  padding: 42px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  gap: 72px;
  align-items: start;
}

.account-benefits {
  padding-top: 8px;
}

.account-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.24);
}

.account-panel[hidden] {
  display: none;
}

.account-loading {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.account-loading .material-symbols-outlined {
  color: var(--gold);
  animation: account-spin 1.2s linear infinite;
}

.account-loading.error {
  color: #ff9c94;
}

.account-loading.error .material-symbols-outlined {
  color: #ff9c94;
  animation: none;
}

@keyframes account-spin {
  to { transform: rotate(360deg); }
}

.auth-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.auth-mode button {
  min-height: 40px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--surface-quiet);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.auth-mode button:last-child {
  border-right: 0;
}

.auth-mode button[aria-selected="true"] {
  background: var(--surface-raised);
  color: var(--cream);
}

.auth-form {
  margin-top: 22px;
}

.auth-form[hidden] {
  display: none;
}

.auth-form-heading {
  margin-bottom: 20px;
}

.auth-form-heading h2 {
  margin: 0;
  color: var(--cream);
  font-size: 19px;
  letter-spacing: 0;
}

.auth-form-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.auth-form > label {
  display: block;
  margin: 14px 0 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.auth-form > input,
.password-field input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: 0;
  background: var(--surface-quiet);
  color: var(--text);
  font-size: 14px;
}

.auth-form > input:focus,
.password-field input:focus {
  border-color: var(--gold);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 46px;
}

.password-toggle {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 2px;
  right: 2px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.password-toggle:hover {
  background: var(--surface-raised);
  color: var(--text);
}

.password-toggle .material-symbols-outlined {
  font-size: 19px;
}

.auth-submit {
  width: 100%;
  margin-top: 22px;
  border-radius: 4px;
}

.auth-submit:disabled,
.profile-actions button:disabled {
  cursor: wait;
  opacity: 0.64;
}

.auth-message {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.auth-message.error {
  color: #ff9c94;
}

.profile-heading {
  padding-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--line-soft);
}

.profile-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid #786b4d;
  border-radius: 4px;
  background: #2a251a;
  color: var(--gold-strong);
}

.profile-heading p,
.profile-heading h2 {
  margin: 0;
}

.profile-heading p {
  color: var(--muted);
  font-size: 11px;
}

.profile-heading h2 {
  margin-top: 4px;
  color: var(--cream);
  font-size: 20px;
  overflow-wrap: anywhere;
}

.profile-details {
  margin: 0;
  padding: 18px 0;
  display: grid;
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.profile-details div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.profile-details dt,
.profile-details dd {
  margin: 0;
  font-size: 13px;
}

.profile-details dt {
  color: var(--muted);
}

.profile-details dd {
  color: var(--text);
  text-align: right;
}

.profile-details dd.active {
  color: var(--green);
  font-weight: 700;
}

.profile-actions {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-actions .text-button {
  margin-left: auto;
}

.payment-methods {
  padding: 18px 0;
}

.payment-method {
  min-height: 54px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  background: #142331;
}

.payment-method-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.alipay-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #1677ff;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.payment-method strong {
  display: block;
  font-size: 14px;
}

.payment-method small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.payment-method .material-symbols-outlined {
  color: var(--blue);
}

.order-total {
  padding: 16px 0 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line-soft);
}

.order-total span {
  color: var(--muted);
  font-size: 13px;
}

.order-total strong {
  color: var(--gold-strong);
  font-size: 30px;
}

.checkout-submit {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--gold-strong);
  border-radius: 4px;
  background: var(--gold-strong);
  color: #241e10;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.checkout-submit:hover {
  background: #ffeaa5;
}

.checkout-submit:disabled {
  border-color: #4d535b;
  background: #303943;
  color: #9da4ad;
  cursor: not-allowed;
}

.checkout-submit[aria-busy="true"] {
  cursor: wait;
}

.checkout-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.checkout-note.error {
  color: #ff9c94;
}

.checkout-note.ready {
  color: var(--green);
}

.modal-icon.success {
  border-color: #3d8062;
  background: #142a22;
  color: #79d4a7;
}

.modal-icon.error {
  border-color: #8f4540;
  background: #321a19;
  color: #ff9c94;
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--surface-quiet);
}

.site-footer-inner {
  width: min(1240px, calc(100% - 48px));
  min-height: 104px;
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

@media (max-width: 980px) {
  .rune-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .checkout-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .checkout-panel {
    width: min(600px, 100%);
  }

  .account-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
    gap: 42px;
  }
}

@media (max-width: 760px) {
  .site-header-inner,
  .page-shell,
  .site-footer-inner {
    width: min(100% - 32px, 1240px);
  }

  .site-nav a {
    padding-inline: 9px;
  }

  .site-nav .nav-label-wide {
    display: none;
  }

  .product-heading {
    min-height: 0;
    padding: 34px 0 28px;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .product-heading h1 {
    font-size: 34px;
  }

  .codex-emblem {
    width: 100%;
    height: 76px;
    display: flex;
    gap: 8px;
    transform: none;
    overflow: hidden;
  }

  .codex-emblem img:nth-child(n) {
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
    transform: none;
  }

  .codex-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 18px;
  }

  .codex-stat {
    padding-inline: 14px;
  }

  .codex-stat:nth-child(2) {
    border-right: 0;
  }

  .codex-stat:nth-child(3) {
    padding-left: 0;
  }

  .codex-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-field {
    width: 100%;
  }

  .tier-filter {
    width: 100%;
  }

  .rune-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-layout {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .account-benefits {
    max-width: 620px;
  }

  .account-panel {
    width: min(520px, 100%);
  }

  .plan-option {
    min-height: 86px;
  }

  .plan-option .plan-price {
    margin-top: 9px;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 500px) {
  .site-header {
    height: 58px;
  }

  .site-brand {
    font-size: 0;
  }

  .site-brand-mark {
    width: 32px;
    height: 32px;
  }

  .site-nav {
    gap: 2px;
  }

  .site-nav a {
    height: 36px;
    padding-inline: 8px;
    font-size: 13px;
  }

  .site-nav a .material-symbols-outlined {
    font-size: 19px;
  }

  .site-nav .nav-account-label {
    display: none;
  }

  .product-heading h1,
  .checkout-heading h1 {
    font-size: 30px;
  }

  .product-heading p,
  .checkout-heading p {
    font-size: 14px;
  }

  .codex-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .codex-stat strong {
    font-size: 21px;
  }

  .tier-filter {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tier-filter button {
    min-width: 0;
    padding-inline: 5px;
    font-size: 12px;
  }

  .rune-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rune-card {
    min-height: 218px;
  }

  .checkout-layout {
    padding-top: 24px;
  }

  .checkout-panel {
    padding: 16px;
  }

  .checkout-panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .checkout-account {
    align-items: flex-start;
  }

  .profile-actions .text-button {
    width: 100%;
    margin-left: 0;
  }

  .modal-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .modal-actions a,
  .modal-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .account-loading .material-symbols-outlined {
    animation: none;
  }
}
