:root {
  color-scheme: dark;
  --bg: #030608;
  --panel: #071014;
  --panel-2: #0a1519;
  --line: rgba(164, 184, 188, 0.18);
  --muted: #8d999c;
  --text: #eef4f3;
  --soft: #cad4d3;
  --amber: #f6ad13;
  --amber-2: #ffcb33;
  --green: #29d16f;
  --danger: #ff5d4f;
  --shadow: rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 20% 0%, rgba(246, 173, 19, 0.08), transparent 32rem),
    radial-gradient(circle at 90% 8%, rgba(61, 126, 139, 0.08), transparent 34rem),
    linear-gradient(180deg, #020304 0%, #061013 52%, #020405 100%);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 72%);
  z-index: -1;
}

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

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

img {
  display: block;
  max-width: 100%;
}

svg {
  width: 1.05em;
  height: 1.05em;
}

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

.page-hidden {
  display: none !important;
}

.reference-home,
.page {
  min-height: 100vh;
  padding: 14px;
}

.home-layout,
.page-shell {
  width: min(1840px, calc(100vw - 28px));
  min-height: calc(100vh - 28px);
  margin: 0 auto;
}

.home-layout {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 16px;
}

.side-panel,
.topbar,
.hero-panel,
.section-panel,
.filter-panel,
.list-panel,
.info-panel,
.description-panel,
.activity-panel,
.forum-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 120px),
    rgba(6, 13, 16, 0.88);
  box-shadow: 0 18px 50px var(--shadow);
}

.side-panel {
  position: sticky;
  top: 14px;
  height: calc(100vh - 28px);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-radius: 10px;
}

.brand {
  flex: 0 0 auto;
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  font-style: italic;
}

.brand b {
  color: var(--amber);
}

.brand-mark {
  width: 30px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  color: #061014;
  background: linear-gradient(135deg, var(--amber), #ffca30);
  clip-path: polygon(13% 8%, 100% 8%, 84% 36%, 45% 36%, 92% 92%, 2% 92%, 18% 65%, 58% 65%);
  font-size: 0;
}

.side-brand {
  padding: 4px 8px 16px;
  border-bottom: 1px solid var(--line);
}

.side-panel nav,
.side-group,
.side-footer {
  display: grid;
  gap: 6px;
}

.side-panel a:not(.brand) {
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  color: var(--soft);
}

.side-panel a.active,
.side-panel a:hover {
  background: linear-gradient(90deg, rgba(246, 173, 19, 0.22), rgba(246, 173, 19, 0.035));
  color: #fff;
}

.side-panel a.active {
  border-left: 3px solid var(--amber);
}

.side-action {
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--soft);
  cursor: pointer;
  text-align: left;
}

.side-action:hover,
.side-action.primary {
  border-color: rgba(246, 173, 19, 0.55);
  background: linear-gradient(90deg, rgba(246, 173, 19, 0.22), rgba(246, 173, 19, 0.035));
  color: #fff;
}

.side-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.side-account-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.side-account-card strong,
.side-account-card small {
  display: block;
}

.side-account-card small {
  color: var(--soft);
}

.side-group {
  margin-top: auto;
}

.side-group p {
  margin: 0 0 7px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.side-footer {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.home-main,
.page-shell {
  display: grid;
  grid-template-rows: auto auto minmax(0, auto);
  gap: 16px;
}

.topbar {
  min-height: 58px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.3vw, 18px);
  border-radius: 10px;
}

.topbar.compact {
  width: 100%;
}

.topnav {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(8px, 1vw, 18px);
  color: #cbd4d2;
  font-size: clamp(0.72rem, 0.82vw, 0.82rem);
  font-weight: 800;
  text-transform: uppercase;
  overflow: visible;
}

.topnav a {
  position: relative;
  padding: 20px 0;
  white-space: nowrap;
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-menu-toggle {
  width: 18px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: currentColor;
  cursor: pointer;
}

.nav-menu-toggle svg {
  width: 0.92em;
  height: 0.92em;
  transition: transform 160ms ease;
}

.nav-item.open .nav-menu-toggle svg,
.nav-item:hover .nav-menu-toggle svg,
.nav-item:focus-within .nav-menu-toggle svg {
  transform: rotate(180deg);
}

.topnav a.active,
.topnav a:hover {
  color: #fff;
}

.topnav a.active::after,
.topnav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 2px;
  background: var(--amber);
}

.nav-menu {
  position: absolute;
  top: calc(100% - 6px);
  left: 50%;
  z-index: 70;
  width: 238px;
  padding: 8px;
  border: 1px solid rgba(246, 173, 19, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 90px),
    rgba(4, 9, 11, 0.98);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.62);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  visibility: hidden;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.nav-item.open .nav-menu,
.nav-item:hover .nav-menu,
.nav-item:focus-within .nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
}

.topnav .nav-menu a {
  min-height: 38px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--soft);
  text-transform: none;
  font-size: 0.84rem;
  font-weight: 750;
}

.topnav .nav-menu a::after {
  display: none;
}

.topnav .nav-menu a:hover,
.topnav .nav-menu a.active {
  background: rgba(246, 173, 19, 0.11);
  color: #fff;
}

.topnav .nav-menu svg {
  color: var(--amber);
}

.searchbar {
  flex: 0 1 330px;
  min-width: 220px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 5, 7, 0.62);
  color: var(--muted);
}

.searchbar input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.top-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-actions [data-open-search] {
  display: none;
}

.top-actions button,
.top-actions a,
.square-btn {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 15, 18, 0.76);
  color: #e6eded;
  cursor: pointer;
}

.top-actions button:hover,
.top-actions a:hover,
.square-btn:hover {
  border-color: rgba(246, 173, 19, 0.7);
  color: var(--amber);
}

.top-actions.auth-strip {
  align-items: center;
  justify-content: flex-end;
  min-width: 228px;
}

.top-actions.auth-strip .auth-link,
.top-actions.auth-strip .auth-cta,
.top-actions.auth-strip .account-chip,
.top-actions.auth-strip .logout-button {
  width: auto;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.top-actions.auth-strip .auth-cta {
  border-color: var(--amber);
  background: var(--amber);
  color: #120c02;
}

.top-actions.auth-strip .account-chip {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-actions.auth-strip .logout-button {
  color: var(--soft);
}

.auth-avatar {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 15, 18, 0.76);
  color: #fff;
}

.mobile-scrim {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  background: rgba(0, 0, 0, 0.62);
}

.mobile-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 111;
  width: min(360px, calc(100vw - 42px));
  padding: 18px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #081315, #030608);
  box-shadow: 22px 0 70px rgba(0, 0, 0, 0.72);
  transform: translateX(-104%);
  transition: transform 180ms ease;
}

.mobile-drawer-open {
  overflow: hidden;
}

.mobile-drawer-open .mobile-scrim {
  display: block;
}

.mobile-drawer-open .mobile-drawer {
  transform: translateX(0);
}

.mobile-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.mobile-nav,
.mobile-drawer-actions {
  display: grid;
  gap: 8px;
}

.mobile-nav a,
.mobile-drawer-actions button {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--soft);
}

.mobile-drawer-actions button {
  color: #fff;
  cursor: pointer;
}

.avatar-button,
.avatar {
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.72), transparent 8%),
    radial-gradient(circle at 50% 28%, #18262a 0 22%, transparent 23%),
    radial-gradient(circle at 50% 78%, #12191b 0 36%, transparent 37%),
    linear-gradient(135deg, #34464a, #10181b);
  border: 1px solid rgba(246, 173, 19, 0.5);
}

.hero-panel {
  min-height: 430px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(320px, 520px) 210px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(28px, 4vw, 64px);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(5, 9, 12, 0.98) 0%, rgba(5, 9, 12, 0.82) 30%, rgba(5, 9, 12, 0.28) 68%, rgba(5, 9, 12, 0.88) 100%),
    url("assets/sapperwire-page-home.png") center / cover no-repeat;
}

.hero-copy p,
.page-title-row p,
.detail-meta p,
.game-hero p,
.operation-hero p,
.platform-dialog-head p {
  margin: 0 0 10px;
  color: var(--amber);
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h1,
.page-title-row h2,
.detail-meta h2,
.game-hero h2,
.operation-hero h2,
.profile-hero h2 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.9;
  text-transform: uppercase;
  font-weight: 1000;
  font-style: italic;
}

.hero-copy span {
  width: min(460px, 100%);
  display: block;
  margin: 24px 0;
  color: var(--soft);
  font-size: 1.12rem;
  line-height: 1.5;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn,
.mini-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 20px;
  background: rgba(6, 13, 16, 0.8);
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.btn.primary,
.mini-btn {
  border-color: rgba(246, 173, 19, 0.8);
  background: linear-gradient(180deg, var(--amber-2), var(--amber));
  color: #120c02;
}

.btn.ghost {
  background: rgba(4, 8, 10, 0.52);
}

.btn.small {
  min-height: 36px;
  font-size: 0.78rem;
}

.mini-btn {
  min-width: 112px;
  min-height: 34px;
  padding: 0 13px;
  font-size: 0.76rem;
}

.mini-btn.green {
  border-color: rgba(41, 209, 111, 0.8);
  background: rgba(41, 209, 111, 0.12);
  color: var(--green);
}

.mini-btn.muted {
  background: rgba(255, 255, 255, 0.05);
  color: var(--soft);
}

.ghost-mini {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
}

.row-actions {
  display: grid;
  gap: 8px;
}

.reaction-active {
  border-color: rgba(246, 173, 19, 0.9);
  color: var(--amber);
  background: rgba(246, 173, 19, 0.15);
}

.empty-state {
  min-height: 110px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.025);
}

.empty-state.action-state {
  grid-column: 1 / -1;
  min-height: 128px;
  grid-template-columns: minmax(0, 1fr) auto;
  place-items: stretch;
  align-items: center;
  gap: 16px;
  padding: 18px;
  text-align: left;
}

.action-state strong,
.action-state small {
  display: block;
}

.action-state strong {
  color: #fff;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.action-state small {
  margin-top: 6px;
  color: var(--soft);
  line-height: 1.45;
}

.action-state .mini-btn {
  min-width: 154px;
  justify-content: center;
  text-align: center;
}

.stat-stack {
  display: grid;
  gap: 24px;
}

.stat-stack span,
.stats-bar span {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
}

.stat-stack svg {
  grid-row: span 2;
  color: var(--amber);
  width: 28px;
  height: 28px;
}

.stat-stack b,
.stats-bar b {
  font-size: 1.55rem;
}

.stat-stack small,
.stats-bar small {
  color: var(--soft);
}

.section-panel {
  padding: 16px;
  border-radius: 10px;
}

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

.section-panel.flat {
  box-shadow: none;
  background: transparent;
}

.section-head {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  text-transform: uppercase;
}

.section-head small {
  color: var(--muted);
}

.section-head a {
  margin-left: auto;
  color: var(--amber);
  font-weight: 900;
}

.card-row,
.operation-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.operation-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mod-card,
.operation-card,
.collection-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(3, 7, 9, 0.86);
}

.mod-card img,
.operation-card img,
.collection-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.05);
}

.mod-card::after,
.operation-card::after,
.collection-card::after,
.detail-hero::after,
.game-hero::after,
.operation-hero::after,
.profile-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 38%, rgba(2, 4, 5, 0.82) 100%);
}

.mod-card span,
.collection-card small {
  margin: 10px 12px 0;
  display: inline-block;
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--amber);
  color: #130d03;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mod-card strong,
.operation-card strong,
.collection-card strong {
  display: block;
  margin: 8px 12px 2px;
  color: #fff;
  font-size: 1rem;
}

.mod-card small,
.operation-card small,
.collection-card p,
.mod-card em,
.operation-card em,
.collection-card em {
  display: block;
  margin: 0 12px 10px;
  color: var(--soft);
  font-style: normal;
  font-size: 0.82rem;
}

.mod-card em,
.operation-card em,
.collection-card em {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aebcbc;
}

.scan-badge {
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 2px 12px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(246, 173, 19, 0.36);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--amber);
  background: rgba(246, 173, 19, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.scan-badge.clean {
  border-color: rgba(41, 209, 111, 0.42);
  color: var(--green);
  background: rgba(41, 209, 111, 0.08);
}

.scan-badge.blocked {
  border-color: rgba(255, 93, 79, 0.45);
  color: var(--danger);
  background: rgba(255, 93, 79, 0.08);
}

.scan-badge.needs-review,
.scan-badge.pending {
  border-color: rgba(246, 173, 19, 0.42);
  color: var(--amber);
  background: rgba(246, 173, 19, 0.08);
}

.mod-card > *,
.operation-card > *,
.collection-card > * {
  position: relative;
  z-index: 1;
}

.page-shell {
  padding: 0;
}

.page-title-row {
  min-height: 150px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(4, 8, 10, 0.9), rgba(4, 8, 10, 0.46)),
    url("assets/sapperwire-page-mods-browse.png") center / cover no-repeat;
}

#mods-page .page-title-row {
  background:
    linear-gradient(90deg, rgba(4, 8, 10, 0.92), rgba(4, 8, 10, 0.48)),
    url("assets/sapperwire-page-mods-browse.png") center / cover no-repeat;
}

#operations-page .page-title-row {
  background:
    linear-gradient(90deg, rgba(4, 8, 10, 0.92), rgba(4, 8, 10, 0.48)),
    url("assets/sapperwire-page-operations.png") center / cover no-repeat;
}

#collections-page .page-title-row {
  background:
    linear-gradient(90deg, rgba(4, 8, 10, 0.92), rgba(4, 8, 10, 0.48)),
    url("assets/sapperwire-page-collections.png") center / cover no-repeat;
}

.games-title {
  background:
    linear-gradient(90deg, rgba(4, 8, 10, 0.92), rgba(4, 8, 10, 0.42)),
    url("assets/sapperwire-page-game.png") center / cover no-repeat;
}

.page-title-row h2 {
  font-size: clamp(2.2rem, 4vw, 4.5rem);
}

.page-title-row p {
  max-width: 580px;
  color: var(--soft);
  font-weight: 500;
  text-transform: none;
}

.browse-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 16px;
}

.filter-panel {
  min-height: 560px;
  padding: 18px;
  border-radius: 9px;
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.filter-panel.filter-pulse {
  border-color: rgba(255, 181, 23, 0.62);
  box-shadow: 0 0 0 1px rgba(255, 181, 23, 0.35), 0 0 28px rgba(255, 181, 23, 0.18);
}

.filter-panel h3,
.info-panel h3,
.description-panel h3,
.activity-panel h3 {
  margin: 0 0 12px;
  color: var(--amber);
  text-transform: uppercase;
  font-size: 0.85rem;
}

.filter-panel a {
  min-height: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--soft);
  font-size: 0.86rem;
}

.filter-panel a.active,
.filter-panel a:hover {
  color: #fff;
}

.filter-panel h3:not(:first-child) {
  margin-top: 22px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-cloud span,
.result-row em span,
.operation-hero em span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--soft);
  font-size: 0.76rem;
}

.list-panel {
  padding: 14px;
  border-radius: 9px;
}

.sort-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--soft);
  border-bottom: 1px solid var(--line);
}

.sort-row button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--soft);
  cursor: pointer;
}

.sort-row button:hover,
.sort-row button:focus-visible {
  color: #fff;
  border-color: rgba(255, 181, 23, 0.55);
}

.result-row {
  min-height: 116px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.result-row img {
  width: 220px;
  height: 92px;
  border-radius: 6px;
  object-fit: cover;
}

.result-row p,
.result-row h3,
.result-row small,
.result-row em {
  margin: 0;
}

.result-row p {
  color: var(--amber);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.result-row h3 {
  margin: 4px 0;
  color: #fff;
  font-size: 1.18rem;
}

.result-row small,
.result-row em {
  color: var(--soft);
}

.result-row em {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 9px;
  font-style: normal;
  font-size: 0.8rem;
}

.result-row.op {
  grid-template-columns: 118px minmax(0, 1fr) auto auto;
}

.result-row.op img {
  width: 118px;
  height: 76px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 9px;
  padding-top: 18px;
}

.pagination a,
.pagination span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--soft);
}

.pagination a.active {
  color: #120c02;
  background: var(--amber);
  border-color: var(--amber);
}

.detail-hero,
.game-hero,
.operation-hero,
.profile-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: grid;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(4, 8, 10, 0.9);
}

.detail-hero > img,
.game-hero > img,
.operation-hero > img,
.profile-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-meta,
.game-hero > div,
.operation-hero > div,
.profile-hero > div,
.profile-hero .avatar,
.operation-hero .button-row {
  position: relative;
  z-index: 1;
}

.detail-meta {
  max-width: 720px;
  padding: 38px;
}

.detail-meta h2 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  text-transform: none;
  font-style: normal;
}

.detail-meta small,
.detail-meta em {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--soft);
  font-style: normal;
}

.detail-meta b,
.profile-hero b {
  color: var(--amber);
}

.avatar.large {
  width: 118px;
  height: 118px;
  display: block;
  margin-bottom: 14px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
}

.description-panel,
.info-panel,
.activity-panel,
.forum-panel {
  padding: 18px;
  border-radius: 9px;
}

.description-panel {
  min-height: 280px;
}

.description-panel p,
.description-panel li,
.info-panel p,
.activity-panel p {
  color: var(--soft);
  line-height: 1.55;
}

.description-panel a,
.info-panel a {
  color: var(--amber);
  font-weight: 900;
}

.tabs {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  color: var(--soft);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 800;
}

.tabs a.active,
.tabs a:hover {
  color: #fff;
  border-bottom: 2px solid var(--amber);
  align-self: stretch;
  display: inline-flex;
  align-items: center;
}

.game-hero {
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: stretch;
}

.game-hero > div {
  align-self: end;
  padding: 42px;
}

.game-hero h2 span {
  font-size: 0.42em;
  font-style: normal;
}

.game-stats,
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.game-stats b,
.stats-bar span {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 7, 9, 0.56);
}

.game-stats small {
  display: block;
  color: var(--soft);
  font-weight: 500;
}

.game-hero aside {
  position: relative;
  z-index: 1;
  padding: 28px;
  background: rgba(3, 7, 9, 0.76);
  border-left: 1px solid var(--line);
}

.game-directory {
  align-items: start;
}

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

.game-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 180px),
    rgba(3, 7, 9, 0.84);
}

.game-card img {
  width: 100%;
  height: 128px;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.04);
}

.game-card > div {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.game-card p,
.game-card small,
.game-card dd {
  margin: 0;
  color: var(--soft);
}

.game-card p {
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.game-card h3 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
}

.game-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.game-card dl div {
  display: grid;
  gap: 2px;
}

.game-card dt {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.operation-hero {
  min-height: 260px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  padding: 36px;
}

.operation-hero h2 {
  font-size: clamp(2rem, 3.5vw, 4rem);
  font-style: normal;
}

.operation-hero em {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  font-style: normal;
}

.operation-hero .button-row {
  align-self: center;
}

.stats-bar {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(6, 13, 16, 0.88);
}

.stats-bar span {
  text-align: center;
  display: block;
}

.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 330px;
  gap: 16px;
}

.info-panel ul {
  padding-left: 18px;
  color: var(--soft);
}

.info-panel p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 9px;
}

.activity-panel p {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.activity-panel small {
  color: var(--muted);
}

.server-status-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.server-status-grid span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.server-status-grid small {
  color: var(--soft);
}

.server-status-grid em {
  width: max-content;
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--green);
  background: rgba(41, 209, 111, 0.09);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.collection-card {
  min-height: 350px;
}

.collection-card img {
  height: 230px;
}

.collection-card em {
  justify-content: space-between;
}

.profile-hero {
  min-height: 285px;
  grid-template-columns: auto minmax(0, 1fr) 280px;
  align-items: end;
  gap: 24px;
  padding: 36px;
}

.profile-avatar {
  width: 118px;
  height: 118px;
  display: block;
}

.profile-hero h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-style: normal;
}

.profile-hero p,
.profile-hero small {
  margin: 6px 0;
  color: var(--soft);
}

.level-box {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(2, 5, 7, 0.55);
}

.level-box span {
  display: block;
  height: 8px;
  margin: 14px 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.level-box i {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: var(--amber);
}

.profile-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 16px;
}

.card-row.tight {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.forums-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 260px;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(3, 7, 9, 0.58), rgba(3, 7, 9, 0.9)),
    url("assets/sapperwire-page-forums.png") center / cover no-repeat;
}

.topic-row {
  min-height: 82px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.topic-row h3,
.topic-row p {
  margin: 0;
}

.topic-row h3 {
  color: #fff;
}

.topic-row p,
.topic-row em {
  color: var(--soft);
  font-style: normal;
}

.avatar.mini {
  width: 40px;
  height: 40px;
}

.platform-dialog {
  width: min(760px, calc(100vw - 24px));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  color: var(--text);
  background: linear-gradient(180deg, #0b1518, #05090b);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75);
}

.platform-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.platform-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
}

.platform-dialog-head {
  padding: 28px 32px 18px;
  border-bottom: 1px solid var(--line);
}

.platform-dialog-head h2 {
  margin: 0 0 8px;
  font-size: 2rem;
  text-transform: uppercase;
}

.platform-dialog-head p:last-child {
  color: var(--soft);
  text-transform: none;
  font-weight: 500;
}

.platform-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 32px 0;
}

.platform-tabs button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  cursor: pointer;
}

.platform-tabs button.active {
  color: #120c02;
  background: var(--amber);
  border-color: var(--amber);
}

.platform-tabs button.is-hidden {
  display: none;
}

.platform-form {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 24px 32px 32px;
}

.platform-form.active {
  display: grid;
}

.platform-form.start-panel {
  grid-template-columns: 1fr;
}

.start-role-grid {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.start-role-grid button {
  grid-column: auto;
  min-height: 126px;
  text-transform: none;
}

.upload-wizard.active {
  display: block;
}

.wizard-progress,
.wizard-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.wizard-progress button,
.wizard-controls button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  cursor: pointer;
}

.wizard-progress button.active,
.wizard-controls button[type="submit"] {
  color: #120c02;
  background: var(--amber);
  border-color: var(--amber);
}

.wizard-step {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.wizard-step.active {
  display: grid;
}

.wizard-controls {
  grid-template-columns: 1fr 1fr 1fr;
  margin: 16px 0 0;
}

.wizard-controls button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.scan-preview,
.wizard-review {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(246, 173, 19, 0.28);
  border-radius: 8px;
  background: rgba(246, 173, 19, 0.07);
  color: var(--soft);
}

.scan-preview {
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
}

.scan-preview.clean {
  border-color: rgba(41, 209, 111, 0.32);
  background: rgba(41, 209, 111, 0.07);
}

.wizard-review p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 8px;
}

.platform-form label {
  display: grid;
  gap: 7px;
  color: var(--soft);
  font-size: 0.86rem;
}

.platform-form input,
.platform-form select,
.platform-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
  background: rgba(2, 5, 7, 0.72);
  color: var(--text);
}

.platform-form textarea {
  min-height: 92px;
  resize: vertical;
}

.platform-form label:has(textarea),
.platform-form button,
.provider-row,
.profile-preview {
  grid-column: 1 / -1;
}

.profile-advanced {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.profile-advanced summary {
  cursor: pointer;
  color: var(--amber);
  font-weight: 900;
  text-transform: uppercase;
}

.profile-advanced label {
  margin-top: 12px;
}

.platform-form button,
.provider-row button {
  min-height: 42px;
  border: 1px solid rgba(246, 173, 19, 0.7);
  border-radius: 7px;
  background: rgba(246, 173, 19, 0.11);
  color: var(--amber);
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.platform-form .text-action {
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--soft);
  text-transform: none;
  font-weight: 800;
  text-align: left;
}

.platform-form .ghost-action {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.provider-row button.disabled,
.provider-row button:disabled {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  cursor: not-allowed;
}

.wizard-progress button,
.wizard-controls button {
  grid-column: auto;
}

.provider-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.profile-preview {
  min-height: 108px;
  display: flex;
  align-items: end;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.2)),
    url("assets/sapperwire-page-profile.png") center / cover no-repeat;
}

.profile-preview-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #111b1f;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid rgba(246, 173, 19, 0.7);
  color: var(--amber);
  font-weight: 900;
}

.profile-preview small {
  display: block;
  color: var(--soft);
}

.account-status {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(246, 173, 19, 0.28);
  border-radius: 8px;
  background: rgba(246, 173, 19, 0.07);
  color: var(--soft);
}

.account-status.verified {
  border-color: rgba(41, 209, 111, 0.32);
  background: rgba(41, 209, 111, 0.07);
}

.account-status strong {
  color: var(--text);
}

.admin-panel {
  align-items: start;
}

.admin-summary,
.admin-metrics,
.admin-screening,
.admin-list,
.admin-panel h3 {
  grid-column: 1 / -1;
}

.admin-summary {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-summary small {
  color: var(--soft);
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.admin-metrics span,
.admin-screening span {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 7, 9, 0.62);
}

.admin-metrics b,
.admin-metrics small,
.admin-screening b,
.admin-screening small {
  display: block;
}

.admin-metrics small,
.admin-screening small {
  color: var(--soft);
}

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

.admin-screening span {
  display: grid;
  gap: 7px;
}

.admin-screening svg {
  color: var(--amber);
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-list small {
  display: block;
  margin-top: 3px;
  color: var(--soft);
}

.admin-flags {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.admin-list button,
.admin-list a {
  min-height: 34px;
  border: 1px solid rgba(246, 173, 19, 0.6);
  border-radius: 7px;
  padding: 0 12px;
  background: rgba(246, 173, 19, 0.1);
  color: var(--amber);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.compact-panel {
  min-height: 220px;
}

.section-head button {
  border: 0;
  background: transparent;
  color: var(--amber);
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.launch-strip {
  background:
    linear-gradient(135deg, rgba(246, 173, 19, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 120px),
    rgba(6, 13, 16, 0.9);
}

.launch-choice-grid,
.start-role-grid,
.launch-info-grid,
.public-checklist,
.launch-stats {
  display: grid;
  gap: 14px;
}

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

.launch-choice-grid button,
.start-role-grid button {
  min-height: 142px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 100px),
    rgba(2, 5, 7, 0.55);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.launch-choice-grid button:hover,
.start-role-grid button:hover {
  border-color: rgba(246, 173, 19, 0.72);
  background:
    linear-gradient(180deg, rgba(246, 173, 19, 0.13), transparent 110px),
    rgba(4, 8, 10, 0.76);
}

.launch-choice-grid svg,
.start-role-grid svg {
  color: var(--amber);
  width: 28px;
  height: 28px;
}

.launch-choice-grid strong,
.launch-choice-grid small,
.start-role-grid strong,
.start-role-grid small {
  display: block;
}

.launch-choice-grid strong,
.start-role-grid strong {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
}

.launch-choice-grid small,
.start-role-grid small {
  color: var(--soft);
  line-height: 1.45;
  text-transform: none;
  font-weight: 500;
}

.launch-page-shell {
  grid-template-rows: auto auto auto auto minmax(0, auto);
}

.launch-hero {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(28px, 5vw, 54px);
  background:
    linear-gradient(90deg, rgba(3, 7, 9, 0.92), rgba(3, 7, 9, 0.54)),
    linear-gradient(135deg, rgba(246, 173, 19, 0.12), transparent 42%),
    url("assets/sapperwire-page-home.png") center / cover no-repeat;
  box-shadow: 0 18px 50px var(--shadow);
}

.launch-hero p,
.launch-hero h2,
.launch-hero span {
  display: block;
  margin: 0;
}

.launch-hero p {
  color: var(--amber);
  font-weight: 900;
  text-transform: uppercase;
}

.launch-hero h2 {
  margin-top: 10px;
  max-width: 760px;
  color: #fff;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.launch-hero span {
  max-width: 720px;
  margin-top: 16px;
  color: var(--soft);
  font-size: 1.03rem;
  line-height: 1.55;
}

.launch-hero .button-row {
  margin-top: 24px;
}

.launch-stats {
  align-self: stretch;
  grid-template-columns: 1fr;
}

.launch-stats span,
.public-checklist article,
.launch-info-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 5, 7, 0.66);
}

.launch-stats span {
  display: grid;
  align-content: center;
  min-height: 78px;
  padding: 14px;
}

.launch-stats b {
  color: #fff;
  font-size: 1.45rem;
}

.launch-stats small {
  color: var(--soft);
}

.launch-choice-grid.large,
.launch-info-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.launch-info-grid article {
  padding: 18px;
}

.launch-info-grid h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
}

.launch-info-grid p {
  margin: 0;
  color: var(--soft);
  line-height: 1.6;
}

.public-checklist {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.public-checklist article {
  min-height: 164px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 16px;
}

.public-checklist svg {
  color: var(--green);
  width: 26px;
  height: 26px;
}

.public-checklist strong,
.public-checklist small,
.public-checklist em {
  display: block;
}

.public-checklist strong {
  color: #fff;
  text-transform: uppercase;
}

.public-checklist small {
  margin-top: 6px;
  color: var(--soft);
  line-height: 1.45;
}

.public-checklist em {
  width: max-content;
  border: 1px solid rgba(246, 173, 19, 0.36);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--amber);
  background: rgba(246, 173, 19, 0.09);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trust-list,
.roadmap-list,
.notification-list {
  display: grid;
  gap: 10px;
}

.trust-list a,
.trust-list button,
.notification-list article,
.roadmap-item {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(2, 5, 7, 0.48);
  color: var(--text);
  text-align: left;
}

.trust-list button {
  cursor: pointer;
}

.trust-list svg {
  color: var(--amber);
}

.trust-list b,
.trust-list small,
.trust-list em,
.roadmap-item p,
.roadmap-item h3,
.roadmap-item small,
.notification-list strong,
.notification-list p,
.notification-list small {
  display: block;
  margin: 0;
}

.trust-list small,
.roadmap-item small,
.notification-list p,
.notification-list small {
  color: var(--soft);
}

.trust-list em,
.roadmap-item em {
  color: var(--amber);
  font-style: normal;
  font-weight: 900;
}

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

.roadmap-item.in-progress {
  border-color: rgba(246, 173, 19, 0.45);
}

.roadmap-item.complete {
  border-color: rgba(41, 209, 111, 0.45);
}

.roadmap-item p {
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.roadmap-list.large,
.notification-list {
  grid-column: 1 / -1;
}

.notification-list article {
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

.notification-list article.read {
  opacity: 0.72;
}

.notification-list article.unread {
  border-color: rgba(246, 173, 19, 0.42);
}

.notification-list .mini-btn,
.roadmap-list .mini-btn,
.trust-list .mini-btn {
  grid-column: auto;
}

.platform-note {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.platform-note strong,
.platform-note small {
  display: block;
}

.platform-note small {
  margin-top: 4px;
  color: var(--soft);
}

.game-focus {
  min-height: 190px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px;
  background: rgba(2, 5, 7, 0.46);
}

.game-focus img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid var(--line);
}

.game-focus p,
.game-focus h2,
.game-focus small {
  margin: 0;
}

.game-focus p {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.game-focus h2 {
  margin: 6px 0;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  text-transform: uppercase;
}

.status-chips {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-chips span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.035);
}

.dependency-checker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
  border: 1px solid rgba(246, 173, 19, 0.28);
  border-radius: 8px;
  padding: 12px;
  background: rgba(246, 173, 19, 0.07);
}

.dependency-checker > div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dependency-checker svg {
  color: var(--amber);
}

.dependency-checker b,
.dependency-checker small {
  display: block;
}

.dependency-checker small {
  color: var(--soft);
}

.file-panel,
.install-panel,
.comments-panel,
.reviews-panel,
.activity-log {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.file-list,
.comment-list,
.dashboard-list,
.dashboard-feed {
  display: grid;
  gap: 10px;
}

.file-list article,
.comment-list article,
.dashboard-list article,
.dashboard-feed article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.file-list svg,
.dashboard-feed svg {
  color: var(--amber);
}

.file-list strong,
.file-list small,
.comment-list strong,
.comment-list p,
.comment-list small,
.dashboard-list strong,
.dashboard-list small,
.dashboard-feed strong,
.dashboard-feed small {
  display: block;
  margin: 0;
}

.file-list small,
.comment-list p,
.comment-list small,
.dashboard-list small,
.dashboard-feed small,
.dashboard-feed em {
  color: var(--soft);
}

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

.comment-list strong b {
  margin-left: 8px;
  color: var(--amber);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.install-panel ol {
  margin: 0 0 12px;
  padding-left: 22px;
  color: var(--soft);
}

.install-panel li {
  margin: 0 0 8px;
  line-height: 1.55;
}

.activity-log p {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 8px;
  color: var(--soft);
}

.review-form,
.comment-form {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.review-form label,
.comment-form label {
  display: grid;
  gap: 6px;
  color: var(--soft);
}

.review-form label:has(textarea),
.review-form button,
.comment-form label,
.comment-form button {
  grid-column: 1 / -1;
}

.review-form input,
.review-form select,
.review-form textarea,
.comment-form textarea,
.admin-roadmap-form input,
.admin-roadmap-form select,
.admin-roadmap-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 11px;
  background: rgba(2, 5, 7, 0.72);
  color: var(--text);
}

.review-form textarea,
.comment-form textarea,
.admin-roadmap-form textarea {
  min-height: 88px;
  resize: vertical;
}

.review-form button,
.comment-form button,
.admin-roadmap-form button {
  min-height: 40px;
  border: 1px solid rgba(246, 173, 19, 0.7);
  border-radius: 7px;
  background: rgba(246, 173, 19, 0.12);
  color: var(--amber);
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.review-list {
  display: grid;
  gap: 10px;
}

.review-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.review-list strong {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.review-list strong b {
  color: var(--amber);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.review-list em {
  color: var(--amber);
  font-style: normal;
  font-weight: 900;
}

.review-list p,
.review-list small {
  color: var(--soft);
}

.admin-roadmap-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 130px;
  gap: 10px;
}

.admin-roadmap-form textarea,
.admin-roadmap-form button,
.admin-roadmap {
  grid-column: 1 / -1;
}

.creator-dashboard {
  width: min(1100px, calc(100vw - 24px));
}

.creator-dashboard [data-dashboard-content] {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-metrics span,
.dashboard-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 7, 9, 0.62);
}

.dashboard-metrics span {
  padding: 12px;
}

.dashboard-metrics b,
.dashboard-metrics small {
  display: block;
}

.dashboard-metrics small {
  color: var(--soft);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-panel {
  padding: 14px;
}

.dashboard-list article {
  grid-template-columns: 74px minmax(0, 1fr) auto;
}

.dashboard-list img {
  width: 74px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
}

.launch-panel {
  width: min(1120px, calc(100vw - 24px));
}

.launch-panel [data-launch-readiness] {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
}

.launch-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, 120px);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(3, 7, 9, 0.66);
}

.launch-summary.blocked {
  border-color: rgba(255, 93, 79, 0.45);
}

.launch-summary.ready {
  border-color: rgba(41, 209, 111, 0.45);
}

.launch-summary strong,
.launch-summary small,
.launch-summary b {
  display: block;
}

.launch-summary small {
  color: var(--soft);
}

.launch-summary span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.launch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.launch-group,
.launch-actions {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(3, 7, 9, 0.62);
}

.launch-group h3,
.launch-actions h3 {
  margin: 0 0 10px;
  text-transform: uppercase;
}

.launch-group article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 10px 0;
}

.launch-group article:first-of-type {
  border-top: 0;
}

.launch-group article.configured svg {
  color: var(--green);
}

.launch-group article.missing svg {
  color: var(--danger);
}

.launch-group article.local-only svg {
  color: var(--amber);
}

.launch-group strong,
.launch-group small,
.launch-group em {
  display: block;
}

.launch-group small,
.launch-group em,
.launch-actions li {
  color: var(--soft);
}

.launch-group em {
  margin-top: 3px;
  font-style: normal;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.launch-actions {
  grid-column: 1 / -1;
}

.launch-actions ol {
  margin: 0;
  padding-left: 20px;
}

.launch-actions li {
  margin: 0 0 8px;
  line-height: 1.45;
}

.site-footer {
  min-height: 76px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 42px);
  color: var(--soft);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.site-footer span {
  text-align: right;
  font-size: 0.78rem;
}

.legal-shell {
  grid-template-rows: auto minmax(0, 1fr);
}

.legal-panel {
  min-height: calc(100vh - 102px);
  padding: clamp(26px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 220px),
    linear-gradient(135deg, rgba(246, 173, 19, 0.06), transparent 44%),
    rgba(5, 12, 15, 0.9);
  box-shadow: 0 18px 50px var(--shadow);
}

.legal-panel .eyebrow,
.legal-updated {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-panel h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.6rem, 5vw, 5.6rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.legal-updated {
  margin: 14px 0 32px;
  color: var(--muted);
  letter-spacing: 0;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.legal-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.032);
}

.legal-grid h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
}

.legal-grid p {
  margin: 0;
  color: var(--soft);
  line-height: 1.65;
}

@media (max-width: 980px) {
  .home-layout,
  .browse-layout,
  .detail-layout,
  .three-col,
  .forums-layout,
  .profile-grid,
  .insight-grid,
  .game-focus,
  .launch-hero {
    grid-template-columns: 1fr;
  }

  .side-panel {
    display: none;
  }

  .mobile-menu-button {
    display: inline-grid;
  }

  .topbar,
  .topbar.compact {
    flex-wrap: wrap;
    padding: 14px;
  }

  .topnav {
    flex: 1 1 100%;
    order: 3;
    justify-content: start;
    flex-wrap: wrap;
    overflow: visible;
    display: none;
  }

  .searchbar {
    flex: 1 1 260px;
  }

  .nav-menu {
    left: 0;
    transform: translate(0, 8px);
  }

  .nav-item.open .nav-menu,
  .nav-item:hover .nav-menu,
  .nav-item:focus-within .nav-menu {
    transform: translate(0, 0);
  }

  .hero-panel,
  .game-hero,
  .operation-hero,
  .profile-hero {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    min-height: auto;
  }

  .card-row,
  .operation-row,
  .collection-grid,
  .card-row.tight,
  .game-grid,
  .admin-metrics,
  .admin-screening,
  .dashboard-metrics,
  .dashboard-grid,
  .launch-grid,
  .launch-summary,
  .launch-choice-grid,
  .launch-choice-grid.large,
  .launch-info-grid,
  .public-checklist,
  .start-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-focus img {
    height: 220px;
  }
}

@media (max-width: 720px) {
  .reference-home,
  .page {
    padding: 8px;
  }

  .home-layout,
  .page-shell {
    width: calc(100vw - 16px);
  }

  .hero-panel,
  .page-title-row,
  .detail-meta,
  .game-hero > div,
  .operation-hero,
  .profile-hero {
    padding: 22px;
  }

  .hero-copy h1,
  .page-title-row h2,
  .detail-meta h2,
  .game-hero h2 {
    font-size: 2.6rem;
  }

  .card-row,
  .operation-row,
  .collection-grid,
  .game-stats,
  .stats-bar,
  .card-row.tight,
  .game-grid,
  .admin-metrics,
  .admin-screening,
  .review-form,
  .comment-form,
  .admin-roadmap-form,
  .dependency-checker,
  .notification-list article,
  .trust-list a,
  .trust-list button,
  .file-list article,
  .dashboard-metrics,
  .dashboard-grid,
  .dashboard-list article,
  .dashboard-feed article,
  .launch-grid,
  .launch-summary,
  .launch-choice-grid,
  .launch-choice-grid.large,
  .launch-info-grid,
  .public-checklist,
  .start-role-grid {
    grid-template-columns: 1fr;
  }

  .result-row,
  .result-row.op,
  .topic-row {
    grid-template-columns: 1fr;
  }

  .result-row img,
  .result-row.op img {
    width: 100%;
    height: 160px;
  }

  .platform-form,
  .provider-row,
  .wizard-step,
  .wizard-progress,
  .wizard-controls {
    grid-template-columns: 1fr;
  }

  .topbar,
  .topbar.compact {
    align-items: stretch;
  }

  .topnav,
  .searchbar,
  .top-actions {
    width: 100%;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .site-footer,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .site-footer,
  .site-footer span {
    text-align: left;
  }
}
