:root,
[data-theme="light"] {
  color-scheme: light;
  --orange: #ff8a1f;
  --orange-deep: #ff6a00;
  --yellow: #ffd24a;
  --green: #b8ff57;
  --green-bright: #9dff57;
  --green-deep: #5bd425;
  --white: #ffffff;
  --surface: #ffffff;
  --surface-elevated: #fff8ed;
  --surface-muted: rgba(255, 255, 255, 0.75);
  --surface-header: rgba(255, 244, 228, 0.92);
  --tab-active-bg: rgba(255, 138, 31, 0.16);
  --tab-active-fg: #c44f00;
  --surface-footer: rgba(255, 255, 255, 0.7);
  --surface-input: #ffffff;
  --ink: #14210f;
  --ink-soft: #3d4f38;
  --border: rgba(255, 138, 31, 0.12);
  --border-strong: rgba(255, 138, 31, 0.22);
  --page-bg:
    radial-gradient(circle at 0% 0%, rgba(255, 210, 74, 0.35), transparent 40%),
    radial-gradient(circle at 100% 10%, rgba(184, 255, 87, 0.35), transparent 45%),
    linear-gradient(180deg, #fffdf8 0%, #fff6e8 55%, #f3ffe8 100%);
  --card-shadow: 0 12px 30px rgba(20, 33, 15, 0.08);
  --shadow: 0 18px 45px rgba(255, 126, 20, 0.18);
  --surface-hover: rgba(20, 33, 15, 0.06);
  --status-green-fg: var(--green-deep);
  --status-green-bg: rgba(93, 212, 37, 0.18);
  --radius: 20px;
  --radius-sm: 12px;
  --toast-bg: #14210f;
  --toast-fg: #ffffff;
  --btn-primary-shadow: rgba(255, 106, 0, 0.35);
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
}

[data-theme="dark"] {
  color-scheme: dark;
  --orange: #8eee3a;
  --orange-deep: #52c41a;
  --yellow: #d8ff6e;
  --green: #b8ff57;
  --green-bright: #ccff70;
  --green-deep: #6ee039;
  --white: #f2ffe8;
  --surface: #121a10;
  --surface-elevated: #1a2614;
  --surface-muted: rgba(18, 26, 16, 0.9);
  --surface-header: rgba(14, 22, 12, 0.94);
  --surface-footer: rgba(12, 18, 10, 0.95);
  --surface-input: #0f160d;
  --ink: #e6f5dc;
  --ink-soft: #9cba8f;
  --border: rgba(140, 230, 80, 0.22);
  --border-strong: rgba(140, 230, 80, 0.4);
  --tab-active-bg: rgba(110, 224, 57, 0.26);
  --tab-active-fg: #e8ffd0;
  --page-bg:
    radial-gradient(circle at 0% 0%, rgba(82, 196, 26, 0.3), transparent 44%),
    radial-gradient(circle at 100% 0%, rgba(184, 255, 87, 0.18), transparent 42%),
    linear-gradient(180deg, #0a1208 0%, #101a0c 50%, #0b1009 100%);
  --card-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow: 0 18px 45px rgba(20, 60, 10, 0.42);
  --surface-hover: rgba(184, 255, 87, 0.08);
  --status-green-fg: #d8ffae;
  --status-green-bg: rgba(110, 224, 57, 0.26);
  --pill-orange-fg: #c8ff9e;
  --toast-bg: #e8ffd8;
  --toast-fg: #121a10;
  --btn-primary-shadow: rgba(82, 196, 26, 0.4);
}

[data-theme="dark"] .site-header {
  box-shadow: 0 1px 0 rgba(140, 230, 80, 0.38);
}

[data-theme="red"] {
  color-scheme: dark;
  --orange: #ff7b7b;
  --orange-deep: #e64545;
  --yellow: #ffb86c;
  --green: #ff9e9e;
  --green-bright: #ffb4b4;
  --green-deep: #ff6b6b;
  --white: #fff5f5;
  --surface: #2b1418;
  --surface-elevated: #3a1c22;
  --surface-muted: rgba(43, 20, 24, 0.9);
  --surface-header: rgba(48, 18, 24, 0.94);
  --tab-active-bg: rgba(230, 69, 69, 0.22);
  --tab-active-fg: #ffd4d4;
  --surface-footer: rgba(35, 14, 18, 0.94);
  --surface-input: #1f1014;
  --ink: #fff0f0;
  --ink-soft: #c9a0a0;
  --border: rgba(255, 120, 120, 0.2);
  --border-strong: rgba(255, 120, 120, 0.38);
  --page-bg:
    radial-gradient(circle at 0% 0%, rgba(230, 69, 69, 0.28), transparent 42%),
    radial-gradient(circle at 100% 0%, rgba(255, 90, 90, 0.18), transparent 40%),
    linear-gradient(180deg, #1a0c10 0%, #240f14 48%, #18080c 100%);
  --card-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow: 0 18px 45px rgba(80, 0, 0, 0.45);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --status-green-fg: #ffc9c9;
  --status-green-bg: rgba(255, 107, 107, 0.22);
  --pill-orange-fg: #ffb4b4;
  --toast-bg: #ffe8e8;
  --toast-fg: #2b1418;
  --btn-primary-shadow: rgba(230, 69, 69, 0.38);
}

[data-theme="red"] .site-header {
  box-shadow: 0 1px 0 rgba(255, 100, 100, 0.35);
}

[data-theme="violet"] {
  color-scheme: dark;
  --orange: #9aa8ff;
  --orange-deep: #7c6cf0;
  --yellow: #c4b5fd;
  --green: #a5b4fc;
  --green-bright: #b8c5ff;
  --green-deep: #8b7cf8;
  --white: #f3f0ff;
  --surface: #16132e;
  --surface-elevated: #211d42;
  --surface-muted: rgba(22, 19, 46, 0.92);
  --surface-header: rgba(24, 20, 52, 0.94);
  --tab-active-bg: rgba(139, 124, 248, 0.26);
  --tab-active-fg: #e4deff;
  --surface-footer: rgba(18, 15, 40, 0.95);
  --surface-input: #141028;
  --ink: #f0ecff;
  --ink-soft: #b3a8d9;
  --border: rgba(167, 139, 250, 0.22);
  --border-strong: rgba(167, 139, 250, 0.4);
  --page-bg:
    radial-gradient(circle at 0% 0%, rgba(124, 108, 240, 0.32), transparent 44%),
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.2), transparent 42%),
    linear-gradient(180deg, #0e0c1f 0%, #181332 50%, #100e24 100%);
  --card-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow: 0 18px 45px rgba(40, 20, 120, 0.42);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --status-green-fg: #ddd6fe;
  --status-green-bg: rgba(139, 124, 248, 0.24);
  --pill-orange-fg: #c4b5fd;
  --toast-bg: #ebe6ff;
  --toast-fg: #16132e;
  --btn-primary-shadow: rgba(124, 108, 240, 0.4);
}

[data-theme="violet"] .site-header {
  box-shadow: 0 1px 0 rgba(139, 124, 248, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page-bg);
  transition: background 0.25s ease, color 0.2s ease;
}

.page-load-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  height: 3px;
  width: 28%;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, var(--orange), var(--green));
  box-shadow: 0 0 12px color-mix(in srgb, var(--orange) 45%, transparent);
  pointer-events: none;
  opacity: 0.95;
}

html:not([data-page-ready="true"]) .page-load-bar {
  animation: page-load-bar-slide 1.05s ease-in-out infinite alternate;
}

html[data-page-ready="true"] .page-load-bar {
  width: 100% !important;
  opacity: 0;
  transition:
    width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease 0.2s;
}

@keyframes page-load-bar-slide {
  from {
    transform: translateX(0);
    width: 22%;
  }
  to {
    transform: translateX(calc(100vw - 48%));
    width: 48%;
  }
}

html:not([data-page-ready="true"]) .site-header,
html:not([data-page-ready="true"]) main,
html:not([data-page-ready="true"]) .site-footer {
  opacity: 0;
  transform: translateY(8px);
}

html[data-page-ready="true"] .site-header {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.42s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-page-ready="true"] main {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.52s ease 0.08s,
    transform 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.08s;
}

html[data-page-ready="true"] .site-footer {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.42s ease 0.14s,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.14s;
}

@media (prefers-reduced-motion: reduce) {
  .page-load-bar,
  html[data-page-ready="true"] .site-header,
  html[data-page-ready="true"] main,
  html[data-page-ready="true"] .site-footer,
  .auth-slot #steamLogin,
  .auth-slot #steamUser {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  html:not([data-page-ready="true"]) .site-header,
  html:not([data-page-ready="true"]) main,
  html:not([data-page-ready="true"]) .site-footer {
    opacity: 1;
    transform: none;
  }
}

motion-noise {
  display: none;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: var(--surface-header);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .site-header {
  box-shadow: 0 1px 0 rgba(255, 180, 90, 0.35);
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
}

.header-right .nav {
  margin-left: 0;
  margin-right: 0.4rem;
  flex-shrink: 0;
}

.theme-bridge {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-right: 0.65rem;
}

.header-play {
  flex-shrink: 0;
}

.theme-toggle {
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.theme-swatch {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  display: block;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.theme-toggle--light .theme-swatch {
  background: linear-gradient(135deg, #ffd24a 0%, #ff8a1f 52%, #b8ff57 100%);
}

.theme-toggle--dark .theme-swatch {
  background: #b8ff57;
  box-shadow:
    0 0 0 2px #52c41a,
    0 0 0 3px rgba(0, 0, 0, 0.25);
}

.site-header .header-inner.wrap {
  width: 100%;
  max-width: none;
  padding-inline: 1rem;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 74px;
}

.brand-locale {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: auto;
  flex-shrink: 0;
  min-width: 0;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.locale-picker {
  position: relative;
  flex-shrink: 0;
}

.locale-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.locale-trigger:hover,
.locale-picker.is-open .locale-trigger {
  border-color: var(--border-strong);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.locale-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.locale-flag-img {
  display: block;
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.locale-option .locale-flag-img {
  width: 22px;
  height: 16px;
}

.locale-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.locale-menu[hidden] {
  display: none !important;
}

.locale-menu li {
  margin: 0;
}

.locale-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border: none;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  line-height: 0;
  cursor: pointer;
}

.locale-option:hover {
  background: var(--surface-hover);
}

.locale-option.is-current {
  background: var(--surface-hover);
  box-shadow: inset 0 0 0 2px var(--border-strong);
}

.btn-steam {
  color: #f5f9ff;
  background: linear-gradient(135deg, #1f2f44, #171a21);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.62rem 0.85rem;
  white-space: nowrap;
}

.btn-steam:hover {
  color: #fff;
}

.btn-steam[hidden],
.steam-user[hidden] {
  display: none !important;
}

.auth-slot {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 10.5rem;
  min-height: 2.35rem;
}

.auth-slot #steamLogin,
.auth-slot #steamUser {
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 0.38s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-auth-state="ready"] .auth-slot #steamLogin:not([hidden]),
html[data-auth-state="ready"] .auth-slot #steamUser:not([hidden]) {
  opacity: 1;
  transform: none;
}

html[data-auth-state="pending"] .auth-slot #steamLogin,
html[data-auth-state="pending"] .auth-slot #steamUser {
  display: none !important;
}

html[data-auth-state="cached"] .auth-slot #steamLogin {
  display: none !important;
}

html[data-auth-state="cached"] .auth-slot #steamUser {
  display: flex !important;
}

html[data-auth-state="pending"] .auth-slot::before,
html[data-auth-state="cached"] .auth-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--surface-hover);
  opacity: 0.55;
  animation: auth-slot-pulse 1.1s ease-in-out infinite;
  pointer-events: none;
  transition: opacity 0.32s ease;
}

html[data-auth-state="cached"] .auth-slot::before {
  opacity: 0.35;
}

html[data-auth-state="ready"] .auth-slot::before {
  opacity: 0;
  animation: none;
  visibility: hidden;
}

@keyframes auth-slot-pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.65;
  }
}

.steam-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 0;
  max-width: 26rem;
}

.steam-balance {
  flex-shrink: 0;
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1.2;
}

.steam-user-trigger {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: auto;
  flex: 1;
  min-width: 10.5rem;
  padding: 0.3rem 0.75rem 0.3rem 0.3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  min-width: 0;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.steam-user-trigger:hover,
.steam-user.is-open .steam-user-trigger {
  border-color: var(--border-strong);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.steam-user-trigger .steam-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: none;
  box-shadow: 0 0 0 1px var(--border);
}

.steam-name {
  font-weight: 800;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.steam-caret {
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg) translateY(-2px);
  margin-right: 0.15rem;
  transition: transform 0.15s ease;
}

.steam-user.is-open .steam-caret {
  transform: rotate(-135deg) translateY(2px);
}

.steam-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 10.5rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  z-index: 50;
}

.steam-menu[hidden] {
  display: none !important;
}

.steam-menu-item {
  display: block;
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.steam-menu-item:hover {
  background: var(--surface-hover);
}

.steam-menu-item--danger {
  color: #c62828;
}

[data-theme="dark"] .steam-menu-item--danger {
  color: #ff6b6b;
}

.tab-panel.profile,
.tab-panel.admin {
  width: 100%;
}

.admin-page {
  width: 100%;
  padding: 2.25rem 0 3.5rem;
}

.admin-page-inner {
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(9.5rem, 11.5rem) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 5.5rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.admin-sidebar-title {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  text-align: center;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-elevated);
}

.admin-nav-tab {
  border: none;
  border-radius: 12px;
  padding: 0.75rem 0.65rem;
  min-height: 2.75rem;
  font: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  color: var(--ink-soft);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-nav-tab:hover {
  color: var(--ink);
  background: var(--surface-hover);
}

.admin-nav-tab.is-active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.admin-content {
  min-width: 0;
}

.admin-section {
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.admin-section[hidden] {
  display: none !important;
}

.admin-section-title {
  margin: 0 0 1rem;
  font-family: Montserrat, sans-serif;
  font-size: 1.25rem;
}

.admin-section-lead {
  margin: -0.35rem 0 1rem;
  max-width: 52ch;
}

.admin-section-body {
  min-width: 0;
}

.admin-title {
  font-family: Montserrat, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.35rem;
}

.admin-hint {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.admin-stat {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}

.admin-stat dt {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.admin-stat dd {
  margin: 0.35rem 0 0;
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
}

.admin-stat--wide {
  grid-column: 1 / -1;
}

.admin-stat--wide dd {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.admin-user-result {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-user-summary p {
  margin: 0.35rem 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.admin-user-summary strong {
  color: var(--ink);
}

.admin-form--inline {
  margin-top: 0.25rem;
}

.admin-form--balance {
  align-items: flex-end;
}

.admin-balance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-btn-muted {
  background: var(--surface-elevated);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.admin-btn-muted:hover {
  background: var(--surface-hover);
}

.admin-subtitle {
  margin: 1.25rem 0 0.65rem;
  font-family: Montserrat, sans-serif;
  font-size: 1.02rem;
}

.admin-field--grow {
  flex: 1 1 14rem;
}

@media (max-width: 720px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .admin-nav-tab {
    flex: 0 0 auto;
    min-width: 4.25rem;
    min-height: 2.5rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
  }
}

.admin-block {
  margin-bottom: 2rem;
}

.admin-block-title {
  margin: 0 0 0.85rem;
  font-family: Montserrat, sans-serif;
  font-size: 1.15rem;
}

.admin-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.admin-field input {
  min-width: min(16rem, 100%);
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface-input);
  color: var(--ink);
  font: inherit;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th,
.admin-table td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  background: var(--surface-elevated);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table code {
  font-size: 0.8rem;
  word-break: break-all;
}

.profile-page {
  width: 100%;
  padding: 2.25rem 0 3.5rem;
  box-sizing: border-box;
}

.profile-page-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
  box-sizing: border-box;
}

.profile-title {
  font-family: Montserrat, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 1.5rem;
}

.profile-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1.25rem;
  width: 100%;
}

.profile-block {
  width: 100%;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-sizing: border-box;
}

.profile-block-title {
  margin: 0 0 1rem;
  font-family: Montserrat, sans-serif;
  font-size: 1.05rem;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.profile-head .steam-avatar,
.profile-head .discord-avatar {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.profile-meta strong {
  color: var(--ink);
  font-size: 1rem;
}

.profile-hint {
  margin: 0;
  color: var(--ink-soft);
}

.profile-purchases {
  margin-top: 1.25rem;
  width: 100%;
}

.profile-orders-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.profile-orders {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.profile-orders th,
.profile-orders td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.profile-orders th {
  font-weight: 800;
  color: var(--ink-soft);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.profile-orders tbody tr:last-child td {
  border-bottom: none;
}

.order-status {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.order-status--paid {
  background: var(--status-green-bg);
  color: var(--status-green-fg);
}

.order-status--pending {
  background: rgba(255, 138, 31, 0.15);
  color: var(--orange-deep);
}

@media (max-width: 720px) {
  .profile-orders thead {
    display: none;
  }

  .profile-orders tr {
    display: block;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
  }

  .profile-orders td {
    display: grid;
    grid-template-columns: minmax(5.5rem, 35%) 1fr;
    gap: 0.35rem 0.75rem;
    border-bottom: none;
    padding: 0.3rem 0;
  }

  .profile-orders td::before {
    content: attr(data-label);
    font-weight: 800;
    color: var(--ink-soft);
    font-size: 0.78rem;
  }
}

.profile-block .profile-hint {
  margin-top: 0.75rem;
}

.profile-discord-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-discord {
  color: #fff;
  background: linear-gradient(135deg, #7289da, #5865f2);
  box-shadow: 0 10px 24px rgba(88, 101, 242, 0.35);
}

.btn-discord:hover {
  color: #fff;
  transform: translateY(-1px);
}

.btn-discord-unlink {
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--border-strong);
  box-shadow: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
}

.btn-discord-unlink:hover {
  color: var(--ink);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.btn-discord-unlink:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.discord-linked {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.discord-linked .discord-avatar {
  flex-shrink: 0;
}

.discord-linked > div {
  flex: 1;
  min-width: 0;
}

.discord-profile-user {
  margin-bottom: 0.15rem;
}

.discord-roles-hint {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.discord-roles {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.3rem;
  margin-top: 0.45rem;
  max-width: 100%;
}

.discord-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  max-width: 100%;
  padding: 0.18rem 0.42rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
  border: none;
  flex-shrink: 0;
}

.discord-role-pill--colored {
  background: color-mix(in srgb, var(--role-color) 22%, transparent);
  color: var(--role-color);
}

.discord-role-pill--default {
  background: rgba(79, 84, 92, 0.22);
  color: #b5bac1;
}

[data-theme="light"] .discord-role-pill--default {
  background: rgba(79, 84, 92, 0.12);
  color: #5c6370;
}

.discord-role-pill__icon {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.discord-role-pill__emoji {
  font-size: 0.9rem;
  line-height: 1;
  flex-shrink: 0;
}

.discord-role-pill__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(88, 101, 242, 0.15);
  color: #5865f2;
}

[data-theme="dark"] .discord-badge {
  color: #aab1ff;
}

[data-theme="red"] .discord-badge {
  color: #ffabab;
}

[data-theme="violet"] .discord-badge {
  color: #c4b5fd;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 1.25rem;
}

.nav-tabs {
  gap: 0.15rem;
}

.tab {
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease;
}

.tab:hover {
  color: var(--orange-deep);
}

.tab.is-active {
  color: var(--tab-active-fg, var(--ink));
  background: var(--tab-active-bg, var(--surface-elevated));
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.tab-panel[hidden] {
  display: none !important;
}

.btn {
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-orange {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  box-shadow: 0 10px 24px var(--btn-primary-shadow);
}

.btn-green {
  color: var(--ink);
  background: linear-gradient(135deg, var(--green), var(--green-bright));
  box-shadow: 0 10px 24px rgba(93, 212, 37, 0.28);
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border: 2px solid rgba(184, 255, 87, 0.8);
}

.btn-lg {
  padding: 0.95rem 1.4rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.home-masthead {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.home-masthead-title {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: clamp(2.75rem, 10vw, 5rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.home-servers {
  margin: clamp(1.25rem, 3vw, 2rem) auto 0;
  max-width: 36rem;
}

.home-servers-total {
  margin: 0 0 0.75rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.home-servers-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.home-server-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-align: left;
}

.home-server-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.home-server-status {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--surface);
}

.home-server-status.is-online {
  background: #2ecc5a;
}

.home-server-status.is-offline {
  background: #e84b4b;
}

.home-server-row.is-offline {
  opacity: 0.85;
}

.home-server-name {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}

.home-server-count {
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
}

.home-server-connect {
  border: none;
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: lowercase;
  cursor: pointer;
  color: var(--ink);
  background: var(--surface-elevated);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.home-server-connect:hover {
  background: var(--surface-hover);
}

.home-features {
  padding: 0 0 3.5rem;
}

.home-features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.home-feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.home-feature-card h3 {
  margin: 0 0 0.5rem;
  font-family: Montserrat, sans-serif;
  font-size: 1.05rem;
}

.home-feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.steps article h3 {
  margin: 0.65rem 0 0.35rem;
  font-family: Montserrat, sans-serif;
  font-size: 1.05rem;
}

.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(184, 255, 87, 0.45);
  font-weight: 700;
  font-size: 0.85rem;
}

h1 {
  font-family: Montserrat, sans-serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.accent {
  background: linear-gradient(120deg, var(--orange-deep), var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.stats div {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
}

.stats dt {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.stats dd {
  margin: 0.35rem 0 0;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
}

.hero-card-inner {
  background: linear-gradient(160deg, var(--surface), var(--surface-elevated));
  border-radius: 28px;
  padding: 1.75rem;
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.pill {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.pill-orange {
  background: rgba(255, 138, 31, 0.18);
  color: var(--pill-orange-fg, var(--orange-deep));
}

.hero-card h2 {
  margin: 0.75rem 0 0.25rem;
  font-family: Montserrat, sans-serif;
}

.price-tag {
  margin: 0 0 1rem;
  font-family: Montserrat, sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
}

.price-tag span {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.hero-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.section-head h2,
.wiki h2 {
  font-family: Montserrat, sans-serif;
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.packages {
  padding: 2.5rem 0 3rem;
}

.catalog-block + .catalog-block {
  margin-top: 2.75rem;
}

.catalog-title {
  font-family: Montserrat, sans-serif;
  font-size: 1.65rem;
  margin: 0 0 1.1rem;
}

.package-period {
  margin: 0;
  font-weight: 700;
  color: var(--orange-deep);
}

.package-period--muted {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.package-price-hint {
  margin: -0.35rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.package-card--currency {
  max-width: 420px;
}

.currency-field {
  font-weight: 700;
  font-size: 0.9rem;
}

.currency-input {
  width: 100%;
  border-radius: 12px;
  border: 2px solid var(--border);
  padding: 0.65rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface-input);
}

.currency-input:focus {
  outline: none;
  border-color: var(--green-deep);
  box-shadow: 0 0 0 3px rgba(184, 255, 87, 0.35);
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}

.package-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.35rem;
  border: 2px solid transparent;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.package-card.featured {
  border-color: rgba(255, 106, 0, 0.45);
  background: linear-gradient(180deg, var(--surface), var(--surface-elevated));
}

.package-card h3 {
  margin: 0;
  font-family: Montserrat, sans-serif;
}

.package-price {
  font-family: Montserrat, sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
}

.package-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  flex: 1;
}

.package-card button {
  margin-top: auto;
}

.checkout {
  padding: 0 0 3rem;
}

.checkout-card {
  background: var(--surface);
  border-radius: 28px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-strong);
}

.checkout-card h2 {
  margin-top: 0;
  font-family: Montserrat, sans-serif;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  border-radius: 12px;
  border: 2px solid var(--border-strong);
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface-input);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--green-deep);
  box-shadow: 0 0 0 3px rgba(184, 255, 87, 0.35);
}

.hint {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
}

.hint a {
  color: var(--orange-deep);
}

.order-summary {
  display: block;
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(184, 255, 87, 0.22);
  border: 1px dashed rgba(93, 212, 37, 0.45);
}

.legal {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.how {
  padding: 0 0 3rem;
}

.home .how {
  padding-top: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.steps article {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--border);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 800;
  color: #14210f;
  background: linear-gradient(135deg, var(--yellow), var(--green));
}

[data-theme="dark"] .step-num {
  color: #0c160a;
}

.wiki {
  padding: 0;
}

.wiki-page {
  width: 100%;
  padding: 2.25rem 0 3.5rem;
}

.wiki-page-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}

.wiki-sidebar {
  position: sticky;
  top: 5.5rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.wiki-title {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  text-align: center;
}

.wiki-lead {
  margin: 0 0 1.35rem;
  color: var(--ink-soft);
  max-width: 65ch;
  line-height: 1.55;
}

.wiki-layout {
  display: grid;
  grid-template-columns: minmax(9.5rem, 11.5rem) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.wiki-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-elevated);
}

.wiki-nav-tab {
  border: none;
  border-radius: 12px;
  padding: 0.75rem 0.65rem;
  min-height: 2.75rem;
  font: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  color: var(--ink-soft);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.wiki-nav-tab:hover {
  color: var(--ink);
  background: var(--surface-hover);
}

.wiki-nav-tab.is-active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.wiki-content {
  min-width: 0;
}

.legal-locale-notice {
  margin: 0 0 1.25rem;
}

.wiki-notice {
  grid-column: 1 / -1;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-hover);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.wiki-section {
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.wiki-section[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .wiki-layout {
    grid-template-columns: 1fr;
  }

  .wiki-sidebar {
    position: static;
  }

  .wiki-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .wiki-nav-tab {
    flex: 0 0 auto;
    min-width: 4.25rem;
    min-height: 2.5rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
  }
}

.wiki-section h2 {
  margin: 0 0 0.85rem;
  font-family: Montserrat, sans-serif;
  font-size: 1.35rem;
}

.wiki-section p,
.wiki-section li {
  color: var(--ink-soft);
  line-height: 1.55;
}

.wiki-list {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.wiki-list li + li {
  margin-top: 0.55rem;
}

.wiki-subtitle:first-of-type {
  margin-top: 0.25rem;
}

.wiki-intro {
  margin-bottom: 0.85rem !important;
}

.wiki-connect code {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--ink);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.88rem;
}

.wiki-subtitle {
  margin: 1rem 0 0.65rem;
  font-family: Montserrat, sans-serif;
  font-size: 1.05rem;
  color: var(--ink);
}

.wiki-job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.75rem;
}

.wiki-job-card {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
}

.wiki-job-name {
  margin: 0;
  font-weight: 800;
  color: var(--ink);
}

.wiki-job-salary {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--orange-deep);
  font-weight: 700;
}

.wiki-job-note {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
}

.wiki-section details {
  background: var(--surface-elevated);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  margin-top: 0.55rem;
  border: 1px solid var(--border);
}

.wiki-section summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
}

.wiki-section details p {
  color: var(--ink-soft);
  margin: 0.5rem 0 0;
}

main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  width: 100%;
  border-top: 1px solid var(--border);
  padding: 0.45rem 0 0.55rem;
  background: var(--surface-footer);
}

.site-footer .wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.footer-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  width: 100%;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.footer-inner p {
  margin: 0;
}

.footer-discord a {
  color: var(--orange-deep);
  font-weight: 800;
  text-decoration: none;
}

.footer-discord a:hover {
  text-decoration: underline;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  background: var(--toast-bg);
  color: var(--toast-fg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--card-shadow);
  font-weight: 700;
  max-width: min(22rem, calc(100vw - 2rem));
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.legal-body .header-inner {
  justify-content: space-between;
}

.legal-page {
  padding: 1.75rem 0 3rem;
  flex: 1 0 auto;
}

.legal-doc {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem 2.25rem;
  box-shadow: var(--card-shadow);
}

.legal-doc h1 {
  margin: 0 0 0.65rem;
  font-family: Montserrat, sans-serif;
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 800;
}

.legal-lead {
  margin: 0 0 1.35rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.legal-lead a {
  color: var(--orange-deep);
  font-weight: 700;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  margin: 0 0 2rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  border: 1px dashed var(--border-strong);
}

.legal-toc a {
  color: var(--orange-deep);
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
}

.legal-toc a:hover {
  text-decoration: underline;
}

.legal-section {
  margin-bottom: 2rem;
  scroll-margin-top: 5.5rem;
}

.legal-section-id {
  display: block;
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--orange-deep);
  margin-bottom: 0.3rem;
}

.legal-section h2 {
  margin: 0 0 0.75rem;
  font-family: Montserrat, sans-serif;
  font-size: 1.28rem;
  font-weight: 800;
}

.legal-section p,
.legal-section li {
  line-height: 1.58;
  color: var(--ink-soft);
}

.legal-section ul {
  margin: 0.5rem 0;
  padding-left: 1.2rem;
}

.legal-section li + li {
  margin-top: 0.4rem;
}

.legal-section a {
  color: var(--orange-deep);
  font-weight: 700;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.85rem 0 1rem;
  font-size: 0.92rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--border);
  padding: 0.62rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--surface-elevated);
  font-weight: 800;
  width: 36%;
}

.legal-table thead th {
  width: auto;
}

.footer-buyers {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.85rem;
  max-width: min(100%, calc(100% - 12rem));
}


.footer-buyers a {
  color: var(--orange-deep);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.82rem;
}

.footer-buyers a:hover {
  text-decoration: underline;
}

.legal-back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--orange-deep);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
}

.legal-back:hover {
  text-decoration: underline;
}

.legal-links {
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.legal-links a {
  color: var(--orange-deep);
  font-weight: 800;
  text-decoration: none;
}

.legal-links a:hover {
  text-decoration: underline;
}

.legal-meta {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .legal-doc {
    padding: 1.25rem 1rem;
  }

  .legal-table th {
    width: auto;
  }
}

@media (max-width: 820px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 0.15rem;
  }

  .footer-buyers {
    position: static;
    transform: none;
    max-width: 100%;
    order: 1;
  }

  .footer-discord {
    order: 2;
  }
}

[data-theme="dark"] .btn-green,
[data-theme="red"] .btn-green,
[data-theme="violet"] .btn-green {
  color: #14210f;
}

[data-theme="dark"] .btn-orange {
  color: #0f1a0c;
}

[data-theme="red"] .btn-orange,
[data-theme="violet"] .btn-orange {
  color: #fff;
}

[data-theme="dark"] .order-summary {
  background: rgba(110, 224, 57, 0.14);
  border-color: rgba(140, 230, 80, 0.38);
  color: var(--ink);
}

[data-theme="red"] .order-summary {
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.35);
  color: var(--ink);
}

[data-theme="violet"] .order-summary {
  background: rgba(139, 124, 248, 0.14);
  border-color: rgba(167, 139, 250, 0.38);
  color: var(--ink);
}

[data-theme="dark"] .eyebrow {
  background: rgba(110, 224, 57, 0.24);
  color: var(--ink);
}

[data-theme="red"] .eyebrow {
  background: rgba(255, 107, 107, 0.22);
  color: var(--ink);
}

[data-theme="violet"] .eyebrow {
  background: rgba(139, 124, 248, 0.22);
  color: var(--ink);
}

[data-theme="dark"] .package-period {
  color: #b8ff9e;
}

[data-theme="red"] .package-period {
  color: #ffb06a;
}

[data-theme="violet"] .package-period {
  color: #c4b5fd;
}

[data-theme="dark"] .hint,
[data-theme="dark"] .hint a,
[data-theme="red"] .hint,
[data-theme="red"] .hint a,
[data-theme="violet"] .hint,
[data-theme="violet"] .hint a {
  color: var(--ink-soft);
}

[data-theme="dark"] .hint a,
[data-theme="red"] .hint a,
[data-theme="violet"] .hint a {
  color: var(--orange);
}

[data-theme="dark"] .legal-lead,
[data-theme="red"] .legal-lead,
[data-theme="violet"] .legal-lead {
  color: var(--ink-soft);
}

[data-theme="dark"] .steam-menu,
[data-theme="red"] .steam-menu,
[data-theme="violet"] .steam-menu,
[data-theme="dark"] .locale-menu,
[data-theme="red"] .locale-menu,
[data-theme="violet"] .locale-menu {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .package-card.featured {
  border-color: rgba(140, 230, 80, 0.52);
}

[data-theme="red"] .package-card.featured {
  border-color: rgba(255, 120, 120, 0.5);
}

[data-theme="violet"] .package-card.featured {
  border-color: rgba(167, 139, 250, 0.52);
}

@media (max-width: 1100px) {
  .home-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .btn-steam {
    font-size: 0.62rem;
    padding: 0.55rem 0.55rem;
  }

  .steam-user {
    max-width: min(26rem, 58vw);
  }

  .steam-balance {
    font-size: 0.74rem;
  }

  .steam-user-trigger {
    min-width: 9rem;
    padding-right: 0.55rem;
  }

  .steam-name {
    font-size: 0.78rem;
  }

  .hero-grid,
  .steps,
  .home-features-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}