/* Photo-style chrome ? fluid layout that fits any screen */

body.in-game {
  --layout-page-bg: #050505;
  --layout-panel-bg: #080808;
  --layout-panel-border: #2e2e2e;
  --layout-heading: #d41818;
  --layout-accent: #d41010;
  --layout-button: #8e1212;
  --layout-button-hover: #a01616;
  --layout-text: #ddd4c8;
  --layout-muted: #8d8479;
  --layout-link: #c9a44c;
  --layout-ok: #4caf70;
  --layout-menu-text: #d6d0c6;
  --layout-menu-hover: #161010;
  --layout-menu-active: #8e1212;
  --layout-input-bg: #0a0a0a;
  --layout-playbar: #c8c0b6;
  --layout-bg-image: url("../img/page-bg.png");
}

body.in-game,
body.in-game .site {
  background-color: var(--layout-page-bg);
  background-image: var(--layout-bg-image);
  background-repeat: repeat;
  background-size: 262px 30px;
  color: var(--layout-text);
}

body.in-game {
  overflow-x: hidden;
}

.in-game .site {
  width: 100%;
  min-height: 100dvh;
}

.in-game .banner { display: none; }

.game-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(4px, 0.7vw, 10px) clamp(6px, 1vw, 14px) clamp(8px, 1vw, 14px);
  box-sizing: border-box;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.play-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(8px, 1vw, 12px);
  min-height: 22px;
  margin: 0 0 clamp(4px, 0.6vw, 8px);
  color: var(--layout-playbar, #c8c0b6);
  font-size: clamp(10px, 0.85vw, 11px);
}

.play-bar-links {
  display: inline-flex;
  align-items: center;
  gap: inherit;
}

.play-bar time {
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--layout-playbar, #d8d0c4);
}

.play-bar a {
  color: var(--layout-playbar, #d8d0c4);
  display: inline-flex;
  position: relative;
}

.play-bar a:hover { color: #fff; }

.play-bar .ico { width: 14px; height: 14px; }

.play-bar .bell i,
.play-bar .badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 12px;
  height: 12px;
  padding: 0 2px;
  border-radius: 50%;
  background: var(--layout-accent, #d41010);
  color: #fff;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  line-height: 12px;
  text-align: center;
}

.play {
  display: grid;
  grid-template-columns:
    minmax(7.25rem, 8.5%)
    minmax(0, 1fr)
    minmax(10.25rem, 11.5%);
  gap: clamp(6px, 0.85vw, 12px);
  align-items: start;
  width: 100%;
}

.rail, .stage { min-width: 0; width: 100%; }

/* ?? Chrome panel shell ?? */
.panel,
.left-rail .menu,
.card {
  position: relative;
  margin-bottom: 10px;
  background: var(--layout-panel-bg, #080808);
  border: 1px solid var(--layout-panel-border, #2e2e2e);
  box-shadow:
    inset 0 0 0 1px #121212,
    inset 0 1px 0 rgba(90, 90, 90, 0.35),
    inset 0 -1px 0 rgba(50, 50, 50, 0.4),
    inset 1px 0 0 rgba(70, 70, 70, 0.2),
    inset -1px 0 0 rgba(70, 70, 70, 0.2),
    0 0 0 1px #0a0a0a,
    0 2px 0 #101010;
}

.panel::after,
.left-rail .menu::after,
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background:
    linear-gradient(#4a4a4a, #4a4a4a) 0 0 / 8px 1px no-repeat,
    linear-gradient(#4a4a4a, #4a4a4a) 0 0 / 1px 8px no-repeat,
    linear-gradient(#4a4a4a, #4a4a4a) 100% 0 / 8px 1px no-repeat,
    linear-gradient(#4a4a4a, #4a4a4a) 100% 0 / 1px 8px no-repeat,
    linear-gradient(#4a4a4a, #4a4a4a) 0 100% / 8px 1px no-repeat,
    linear-gradient(#4a4a4a, #4a4a4a) 0 100% / 1px 8px no-repeat,
    linear-gradient(#4a4a4a, #4a4a4a) 100% 100% / 8px 1px no-repeat,
    linear-gradient(#4a4a4a, #4a4a4a) 100% 100% / 1px 8px no-repeat;
  opacity: 0.85;
}

.panel:last-child,
.stage .panel:last-child,
.left-rail .menu:last-child { margin-bottom: 0; }

.panel::before,
.left-rail .menu::before,
.card::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(70, 70, 70, 0.35);
  pointer-events: none;
  z-index: 1;
}

/* Section titles stay red; borders are dark */
.menu > h2,
.panel > h2,
.page-kicker,
.card > h2 {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 8px 10px 6px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--layout-panel-border, #2a2a2a);
  box-shadow: 0 1px 0 #121212;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--layout-heading, #d41818);
  text-shadow: none;
}

.panel > h2 .mark,
.menu > h2 .mark {
  display: inline-block;
  margin-right: 6px;
  width: 10px;
  height: 10px;
  vertical-align: -1px;
  background: var(--layout-accent, #d41818);
  clip-path: polygon(50% 0, 100% 35%, 82% 100%, 18% 100%, 0 35%);
}

.left-rail {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.left-rail .menu {
  margin-bottom: 8px;
}

.menu a,
.menu button {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.45em;
  width: 100%;
  min-width: 0;
  padding: 0.28em 0.65em;
  border: 0;
  border-top: 1px solid var(--layout-panel-border, #161616);
  background: transparent;
  color: var(--layout-menu-text, #d6d0c6);
  font: 500 11.5px var(--font);
  text-align: left;
  cursor: pointer;
}

.menu a:first-of-type,
.menu .menu-pairs + a,
.menu h2 + a {
  border-top: 0;
}

.menu a:hover,
.menu button:hover {
  background: var(--layout-menu-hover, #161010);
  color: #fff;
}

.menu a.on {
  background: var(--layout-menu-active, #8e1212);
  color: #fff;
}

.menu .ico,
.stat-list .ico,
.world-map .ico {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  color: var(--layout-menu-text, #e8e2d8);
}

.menu a.on .ico { color: #fff; }
.menu form { margin: 0; }

.menu a span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-pairs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--layout-panel-border, #161616);
}

.menu h2 + .menu-pairs {
  border-top: 0;
}

.menu-pairs a {
  border-top: 0;
  padding-right: 4px;
  min-height: 100%;
  box-sizing: border-box;
}

.menu-pairs a + a {
  border-left: 1px solid var(--layout-panel-border, #161616);
}

.menu-pairs-solo {
  grid-template-columns: 1fr;
}

.menu-pairs-solo a + a {
  border-left: 0;
}

/* ?? Statistics ?? */
.stats-hero { overflow: hidden; }

.stats-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, 32%);
  min-height: clamp(120px, 18vw, 160px);
}

.stats-grid dl {
  margin: 0;
  padding: clamp(8px, 1vw, 14px);
}

.stats-grid dl div {
  display: grid;
  grid-template-columns: minmax(6.5rem, 38%) 1fr;
  gap: 6px;
  margin: 5px 0;
  padding: 3px 0;
  border-bottom: 1px solid #181818;
  font-size: clamp(11px, 0.9vw, 13px);
}

.stats-grid dl div:last-child { border-bottom: 0; }

.stats-grid dt {
  color: #a8a098;
  font-weight: 400;
  text-transform: lowercase;
}

.stats-grid dd {
  margin: 0;
  color: #f0ebe3;
  font-weight: 500;
}

.stats-grid small {
  color: #7a7268;
  font-weight: 400;
}

.stats-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  padding: 14px 18px;
  border-left: 1px solid #222;
  background: url("../img/stats-still.png") center / cover no-repeat;
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: 0.08em;
  line-height: 1.05;
  text-transform: uppercase;
  color: #e8e2d6;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.95), 0 0 1px #000;
}

.stats-art.has-words span { display: none; }

.kills-panel { min-height: 0; }

.empty {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: clamp(10px, 1.2vw, 14px);
  color: var(--muted);
  font-size: clamp(12px, 0.95vw, 13px);
}

.kill-table {
  position: relative;
  z-index: 2;
  width: 100%;
  border-collapse: collapse;
}

.kill-table td {
  padding: 0.35em 0.85em;
  border-top: 1px solid #181414;
  color: #d8d0c4;
  font-size: clamp(11px, 0.9vw, 13px);
}

.kill-table td:last-child {
  text-align: right;
  color: #c8c0b4;
}

.kill-table tr:nth-child(odd) td { background: #0e0c0c; }
.kill-table tr:nth-child(even) td { background: #121010; }

.kill-calc-table th,
.kill-calc-table td {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.kill-calc-table td:nth-child(n+3) {
  text-align: right;
}

/* ?? Playerstats ?? */
.rail-mail-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid #5a1a1a;
  background:
    linear-gradient(180deg, #2a1212 0%, #160a0a 100%);
  color: #f0ebe3;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 180, 180, 0.08);
  animation: rail-mail-pulse 1.8s ease-in-out infinite;
}

.rail-mail-alert:hover {
  border-color: #8a2a2a;
  color: #fff;
}

.rail-mail-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #7a3030;
  border-radius: 4px;
  background:
    radial-gradient(circle at 30% 25%, #ff6b6b 0%, transparent 45%),
    linear-gradient(145deg, #c41e1e 0%, #6a1010 55%, #3a0808 100%);
  box-shadow: 0 0 10px rgba(196, 30, 30, 0.35);
}

.rail-mail-icon .ico {
  width: 18px;
  height: 18px;
  stroke: #ffe8e8;
  fill: none;
  stroke-width: 1.7;
}

.rail-mail-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rail-mail-text b {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffe0e0;
}

.rail-mail-text em {
  font-style: normal;
  font-size: 10px;
  color: #c4a8a8;
}

@keyframes rail-mail-pulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 180, 180, 0.08), 0 0 0 0 rgba(196, 30, 30, 0); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 180, 180, 0.12), 0 0 12px rgba(196, 30, 30, 0.35); }
}

.stat-list {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 2px 0 4px;
}

.stat-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 24px;
  padding: 4px 8px;
  border-top: 1px solid #181414;
  font-size: 11.5px;
  line-height: 1.2;
}

.stat-list div:first-child { border-top: 0; }

.stat-list dt {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  white-space: nowrap;
  color: #b8b0a6;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding-top: 0;
}

.stat-list dd {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 62%;
  text-align: right;
  color: #f0ebe3;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0;
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
}

.stat-list dd.health,
.stat-list dd.rank-prog {
  max-width: none;
  flex: 0 0 auto;
  overflow: visible;
  text-overflow: unset;
}

.health {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f0ebe3;
  font-variant-numeric: tabular-nums;
}

.bar {
  display: inline-block;
  flex: 0 0 58px;
  width: 58px;
  height: 7px;
  background: #1a0c0c;
  border: 1px solid #333;
}

.bar i {
  display: block;
  height: 100%;
  background: #d41010;
}

.rank-prog {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bar-rank {
  width: 58px;
  flex: 0 0 58px;
  background: #141414;
  border-color: #3a3a3a;
}

.bar-rank i {
  background: linear-gradient(90deg, #8a6a20, #c9a44c);
}

.rank-pct {
  color: #d0c8bc;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 500;
  min-width: 2.4em;
  text-align: right;
}

/* ?? Playerstats page ?? */
.pstats-hero {
  margin-bottom: clamp(8px, 1vw, 12px);
}

.pstats-tabs {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 clamp(10px, 1.2vw, 14px);
}

.pstats-tab-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.pstats-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.45em 0.8em;
  border: 1px solid #2e2e2e;
  background: #080808;
  color: #c8c0b6;
  font: 700 11px var(--font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow:
    inset 0 0 0 1px #121212,
    inset 0 1px 0 rgba(90, 90, 90, 0.25),
    0 1px 0 #101010;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.pstats-tab:hover {
  color: #efe8dc;
  border-color: #5a3030;
}

.pstats-tab.is-active {
  color: #fff4e8;
  border-color: #5a1818;
  background: #8e1212;
  box-shadow:
    inset 0 1px 0 rgba(255, 180, 180, 0.12),
    0 0 0 1px #0a0a0a;
}

.pstats-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pstats-card {
  position: relative;
  margin: 0;
  background: #080808;
  border: 1px solid #2e2e2e;
  box-shadow:
    inset 0 0 0 1px #121212,
    inset 0 1px 0 rgba(90, 90, 90, 0.35),
    inset 0 -1px 0 rgba(50, 50, 50, 0.4),
    inset 1px 0 0 rgba(70, 70, 70, 0.2),
    inset -1px 0 0 rgba(70, 70, 70, 0.2),
    0 0 0 1px #0a0a0a,
    0 2px 0 #101010;
  overflow: hidden;
  animation: pstats-in 0.4s ease both;
  animation-delay: var(--pstats-delay, 0ms);
}

.pstats-card::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(70, 70, 70, 0.35);
  pointer-events: none;
  z-index: 1;
}

.pstats-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background:
    linear-gradient(#4a4a4a, #4a4a4a) 0 0 / 8px 1px no-repeat,
    linear-gradient(#4a4a4a, #4a4a4a) 0 0 / 1px 8px no-repeat,
    linear-gradient(#4a4a4a, #4a4a4a) 100% 0 / 8px 1px no-repeat,
    linear-gradient(#4a4a4a, #4a4a4a) 100% 0 / 1px 8px no-repeat,
    linear-gradient(#4a4a4a, #4a4a4a) 0 100% / 8px 1px no-repeat,
    linear-gradient(#4a4a4a, #4a4a4a) 0 100% / 1px 8px no-repeat,
    linear-gradient(#4a4a4a, #4a4a4a) 100% 100% / 8px 1px no-repeat,
    linear-gradient(#4a4a4a, #4a4a4a) 100% 100% / 1px 8px no-repeat;
  opacity: 0.85;
}

@keyframes pstats-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pstats-card-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 10px 6px;
  border-bottom: 1px solid #2a2a2a;
  box-shadow: 0 1px 0 #121212;
  background: transparent;
}

.pstats-card-head h3 {
  margin: 0;
  color: #d41818;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pstats-card-icon {
  display: inline-flex;
  color: #d41818;
}

.pstats-card-icon .ico {
  width: 12px;
  height: 12px;
}

.pstats-rows {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 2px 0 4px;
}

.pstats-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding: 0.4em 0.75em;
  border-top: 1px solid #181414;
}

.pstats-row:first-child {
  border-top: 0;
}

.pstats-row dt {
  margin: 0;
  color: #c8c0b6;
  font-size: clamp(11px, 0.9vw, 12px);
  font-weight: 500;
}

.pstats-row dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: clamp(11px, 0.9vw, 12px);
  color: #f2ece4;
}

.pstats-val.is-money {
  color: #f2ece4;
}

.pstats-val.is-gain {
  color: var(--ok);
  font-weight: 600;
}

.pstats-val.is-loss {
  color: var(--red-hot);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .pstats-card {
    animation: none;
  }
  .pstats-tab {
    transition: none;
  }
}


.stat-list .rank-row dt {
  color: #9a9288;
  font-size: 12px;
  padding-left: 19px;
  white-space: nowrap;
}

/* ?? Map / brand ?? */
.map-card { overflow: hidden; }

.world-map {
  position: relative;
  z-index: 2;
  min-height: clamp(96px, 12vw, 124px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  padding: 8px 10px 10px;
  background:
    linear-gradient(180deg, rgba(6, 6, 8, 0.15) 0%, rgba(6, 6, 8, 0.82) 58%),
    url("../img/world-map.png") center 20% / cover no-repeat;
  color: #e4ddd2;
  font-size: 12px;
  line-height: 1.25;
}

.world-map div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  padding: 2px 0;
}

.world-map span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: #b8b0a6;
  font-weight: 500;
}

.world-map b {
  color: #f0ebe3;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}

.world-map .ok {
  color: #f0ebe3;
}

.world-map small {
  display: block;
  width: 100%;
  text-align: right;
  color: #8a8278;
  font-size: 10px;
}

.brand-card { overflow: hidden; padding: 0; }
.brand-card h2 { display: none; }
.brand-card::before { display: none; }

.brand-shot {
  position: relative;
  z-index: 2;
  height: clamp(90px, 12vw, 118px);
  background: url("../img/brand-card.png") center / cover no-repeat;
}

.card {
  margin-bottom: 10px;
}

.welcome,
.card .empty,
.card p {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 14px;
  color: var(--muted);
}

.welcome h1 {
  margin: 4px 0 6px;
  padding: 0 14px;
  font-family: var(--font-serif);
  font-size: 34px;
  color: var(--gold);
}

.welcome p,
.welcome span,
.welcome .chips {
  padding-left: 14px;
  padding-right: 14px;
}

.chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 12px;
  border-top: 1px solid #2a1a1a;
  padding-bottom: 0 !important;
}

.chips div {
  padding: 12px 8px;
  border-right: 1px solid #1c1414;
  text-align: center;
}

.chips div:last-child { border-right: 0; }
.chips span {
  display: block;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0 !important;
}
.chips b {
  display: block;
  margin-top: 2px;
  color: var(--cream);
  font-size: 16px;
}

.actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 2;
}

.actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border-right: 1px solid #2a1a1a;
  background: #101010;
  color: var(--cream);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.actions a:last-child { border-right: 0; }
.actions a:hover { background: #1a1212; color: #fff; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.feed { list-style: none; margin: 0; padding: 0; position: relative; z-index: 2; }
.feed li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-top: 1px solid #181414;
}
.feed strong { color: var(--red-hot); display: block; font-size: 13px; }
.feed p { margin: 3px 0 0; padding: 0; color: var(--muted); font-size: 12px; }
.feed time { color: #8a7d70; font-size: 11px; white-space: nowrap; }

.in-game .foot {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 4px clamp(8px, 1vw, 14px) 12px;
  background: transparent;
  border: 0;
  box-sizing: border-box;
}

.stage .flash {
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
}

.crime-intro {
  position: relative;
  z-index: 2;
  padding: 12px 14px;
  color: #c8c0b6;
  font-size: 13px;
}

.crime-intro p { margin: 0 0 6px; }
.crime-intro p:last-child { margin-bottom: 0; }

.crime-meta {
  color: #8d8479;
  font-size: 12px;
}

.crime-meta b { color: #f0ebe3; }
.crime-meta .ok { color: #6caf70; }
.crime-meta .warn { color: #e8a0a0; }
.crime-meta a { color: #d8cdc0; text-decoration: underline; }

.crime-jobs {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
}

.crime-job {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 4.5rem 8.5rem 3.5rem auto;
  gap: 6px 10px;
  align-items: center;
  padding: 7px 10px;
  border-top: 1px solid #1a1a1a;
  font-size: clamp(11px, 0.85vw, 12.5px);
  color: #d8d0c4;
}

.crime-job:first-child,
.crime-job-head {
  border-top: 0;
}

.crime-job-head {
  color: #8d8479;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 4px;
  padding-bottom: 4px;
}

.crime-job.locked {
  color: #6a6560;
}

.crime-job-meta {
  display: contents;
}

.crime-job-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.crime-job-rank {
  min-width: 0;
}

.crime-job-chance,
.crime-job-xp {
  font-variant-numeric: tabular-nums;
}

.crime-job-act {
  text-align: right;
  white-space: nowrap;
  justify-self: end;
}

.crime-job-act form {
  margin: 0;
}

.crime-table {
  position: relative;
  z-index: 2;
  width: 100%;
  border-collapse: collapse;
}

.crime-table th,
.crime-table td {
  padding: 7px 10px;
  border-top: 1px solid #1a1a1a;
  text-align: left;
  font-size: clamp(11px, 0.85vw, 12.5px);
  color: #d8d0c4;
  vertical-align: middle;
}

.crime-table th {
  border-top: 0;
  color: #8d8479;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.crime-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.crime-table tr.locked td { color: #6a6560; }

.crime-table .muted,
.crime-job .muted { color: #6a6560; font-size: 11px; }

.crime-wait {
  display: inline-block;
  min-width: 42px;
  color: #c9a44c;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
}

.crime-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid #5a1818;
  background: var(--layout-button, #8e1212);
  color: #fff4e8;
  font: 700 11px var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.crime-btn:hover { background: var(--layout-button-hover, #a01616); }

.crime-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.crime-btn-alt {
  border-color: #4a4a20;
  background: #3a3218;
  color: #e6d7a8;
}

.crime-btn-alt:hover { background: #4a4220; }

.crime-table form { margin: 0; }

.pm-actions {
  white-space: nowrap;
}

.prestige-form {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 0 10px 12px;
}

.prestige-confirm {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #d8d0c4;
  max-width: 36rem;
}

.prestige-confirm input {
  margin-top: 3px;
}

.pm-actions .crime-btn,
.pm-drop-form {
  display: inline-block;
  vertical-align: middle;
  margin: 2px 0 2px 4px;
}

.pm-sale {
  min-width: 9rem;
}
.pm-sale-form {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 2px 0 0;
}
.pm-sale-form input[type="number"] {
  width: 5.5rem;
  padding: 4px 6px;
  background: #0a0a0a;
  border: 1px solid #3a3a3a;
  color: #f0ebe3;
  font-size: 12px;
}

.pm-drop-form:first-child,
.pm-actions > .crime-btn:first-child {
  margin-left: 0;
}

.jail-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  padding: 0 14px 14px;
  border-top: 1px solid #1a1a1a;
}

.jail-reward-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}

.jail-reward-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #8d8479;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.jail-reward-form input {
  width: 120px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #2e2e2e;
  background: #0a0a0a;
  color: #f0ebe3;
  font: 500 13px var(--font);
}

.jail-table tr.is-self td { background: #121010; }

.hospital-heal-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}
.hospital-heal-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 10px;
  border: 1px solid #1e1e1e;
  background: rgba(0, 0, 0, 0.2);
}
.hospital-heal-label {
  color: #e8e2d8;
  font-size: 12px;
  font-weight: 600;
}
.hospital-heal-card .crime-btn {
  width: 100%;
}

.rarity {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 10px;
}

.rarity-exclusive { color: #ff4d6d; text-shadow: 0 0 8px rgba(255, 77, 109, 0.35); }
.rarity-custom { color: #5eead4; }
.rarity-legendary { color: #e6c35c; }
.rarity-super-rare { color: #c084fc; }
.rarity-rare { color: #60a5fa; }
.rarity-uncommon { color: #86efac; }

.car-link {
  color: #e8e2d8;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.car-link:hover { color: #fff; }
.car-link-thumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.car-link-thumb span {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.car-thumb {
  display: block;
  width: 72px;
  height: 40px;
  object-fit: cover;
  border: 1px solid #2a2a2a;
  background: #0a0a0a;
  flex-shrink: 0;
}

.repair-list {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
}

.repair-row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(90px, 0.7fr) 4.5rem 5rem 5.5rem auto;
  gap: 8px 10px;
  align-items: center;
  padding: 8px 10px;
  border-top: 1px solid #1a1a1a;
  font-size: clamp(11px, 0.85vw, 12.5px);
  color: #d8d0c4;
}

.repair-row:first-child,
.repair-row-head {
  border-top: 0;
}

.repair-row-head {
  color: #8d8479;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 4px;
  padding-bottom: 4px;
}

.repair-car {
  min-width: 0;
}

.repair-car .car-link-thumb {
  max-width: 100%;
}

.repair-car-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.repair-rarity {
  display: block;
  margin-top: 2px;
  font-size: 11px;
}

.repair-cond {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.repair-cond .bar-rank {
  flex: 1;
  min-width: 40px;
}

.repair-meta {
  display: contents;
}

.repair-label {
  display: none;
}

.repair-act {
  justify-self: end;
}

.repair-act form {
  margin: 0;
}

.melt-list {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
}

.melt-row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) 6.5rem 4rem minmax(5rem, 0.7fr) auto;
  gap: 8px 10px;
  align-items: center;
  padding: 8px 10px;
  border-top: 1px solid #1a1a1a;
  font-size: clamp(11px, 0.85vw, 12.5px);
  color: #d8d0c4;
}

.melt-row:first-child,
.melt-row-head {
  border-top: 0;
}

.melt-row-head {
  color: #8d8479;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 4px;
  padding-bottom: 4px;
}

.melt-car {
  min-width: 0;
}

.melt-car-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.melt-meta {
  display: contents;
}

.melt-label {
  display: none;
}

.melt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  justify-self: end;
}

.melt-actions form {
  margin: 0;
}

.car-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px 12px;
  position: relative;
  z-index: 2;
}
.car-catalog-tier {
  grid-column: 1 / -1;
  margin: 10px 0 2px;
  font-size: 0.95rem;
}
.car-catalog-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid #222;
  background: rgba(0, 0, 0, 0.35);
}
.car-catalog-item img {
  width: 96px;
  height: 54px;
  object-fit: cover;
  border: 1px solid #2a2a2a;
  background: #0a0a0a;
  flex-shrink: 0;
}
.car-catalog-make {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a9186;
}
.car-catalog-model {
  margin: 2px 0 0;
  font-size: 0.9rem;
  color: #e8e2d8;
}
.car-catalog-speed {
  margin: 4px 0 0;
  font-size: 0.72rem;
  color: #ff4d6d;
}
.car-catalog-shop { color: #5eead4; }
.car-catalog-item-exclusive {
  border-color: #5a2030;
  background: rgba(80, 10, 25, 0.35);
}
.car-catalog-item-custom {
  border-color: #1a4a44;
  background: rgba(10, 50, 45, 0.35);
}

.points-item {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  z-index: 2;
  align-items: flex-start;
}
.points-item-photo {
  width: min(220px, 100%);
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid #2a2a2a;
  background: #0a0a0a;
}
.points-item-body { flex: 1; min-width: 200px; }
.points-item-title {
  margin: 2px 0 8px;
  font-size: 1.25rem;
  color: #e8e2d8;
}
.custom-upload {
  position: relative;
  z-index: 2;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #2a2a2a;
  background: rgba(0, 0, 0, 0.35);
}
.custom-upload h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.custom-upload input[type="file"] {
  display: block;
  margin: 10px 0;
  color: #cfc6b8;
}
.custom-rename-form {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.custom-rename-form .field {
  display: grid;
  gap: 4px;
}
.custom-rename-form .field span {
  font-size: 0.8rem;
  color: #9a9186;
}
.custom-rename-form input[type="text"] {
  width: 100%;
  max-width: 360px;
  padding: 8px 10px;
  border: 1px solid #333;
  background: #0a0a0a;
  color: #e8e2d8;
}
.protect-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 6px;
  border: 1px solid #3a5a4a;
  color: #86efac;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.car-row-protected td {
  background: rgba(20, 40, 30, 0.25);
}
.ip-address {
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: 0.02em;
}
.ip-row-you td {
  background: rgba(40, 35, 20, 0.35);
}

.car-view .car-hero {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-bottom: 1px solid #222;
  background: #0a0a0a;
}

.car-view .car-hero img {
  display: block;
  width: 100%;
  height: clamp(180px, 32vw, 320px);
  object-fit: cover;
}

.car-hero-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 16px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.car-make {
  margin: 0;
  color: #c8c0b6;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.car-model {
  margin: 4px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 0.04em;
  color: #f4efe6;
}

.car-stats {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 8px 0 12px;
}

.car-stats div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-top: 1px solid #1a1a1a;
  font-size: 13px;
}

.car-stats div:first-child { border-top: 0; }
.car-stats dt { color: #8d8479; margin: 0; }
.car-stats dd { margin: 0; color: #f0ebe3; text-align: right; }

/* Keep 3 columns as long as possible by shrinking rails */
@media (max-width: 1280px) {
  .play {
    grid-template-columns:
      minmax(7rem, 8.5%)
      minmax(0, 1fr)
      minmax(9.75rem, 13%);
  }
}

/* Phone / tablet: main stage only, slide-out menus */
.rail-toggle,
.rail-backdrop {
  display: none;
}

@media (max-width: 1100px) {
  /* Block layout so fixed rails/toggles do not leave empty grid rows */
  .play {
    display: block;
    width: 100%;
  }

  .rail-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: 5;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    background: rgba(10, 10, 10, 0.92);
    color: #f0ebe3;
    box-shadow: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .rail-toggle .ico {
    width: 18px;
    height: 18px;
  }
  .rail-toggle-left,
  .rail-toggle-right {
    left: auto;
    right: auto;
  }
  body.rail-left-open .rail-toggle-left,
  body.rail-right-open .rail-toggle-right {
    border-color: #8a3030;
    color: #f0a0a0;
  }

  .rail-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(0, 0, 0, 0.58);
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
  }
  .rail-backdrop[hidden] {
    display: none !important;
  }

  .left-rail,
  .right-rail {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 80;
    width: min(86vw, 320px);
    max-width: 100%;
    height: 100%;
    max-height: 100dvh;
    margin: 0;
    padding:
      calc(56px + env(safe-area-inset-top, 0px))
      10px
      calc(12px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #080808;
    border: 0;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.55);
    transition: transform 0.22s ease;
  }
  .left-rail {
    left: 0;
    transform: translateX(calc(-100% - 12px));
    border-right: 1px solid #2e2e2e;
    padding-left: calc(10px + env(safe-area-inset-left, 0px));
  }
  .right-rail {
    right: 0;
    left: auto;
    display: block;
    transform: translateX(calc(100% + 12px));
    border-left: 1px solid #2e2e2e;
    padding-right: calc(10px + env(safe-area-inset-right, 0px));
  }
  body.rail-left-open .left-rail,
  body.rail-right-open .right-rail {
    transform: translateX(0);
  }
  body.rail-left-open,
  body.rail-right-open {
    overflow: hidden;
  }

  .right-rail .panel {
    margin-bottom: 10px;
  }
  .right-rail .panel:last-child {
    margin-bottom: 0;
  }

  .stage {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-top: 4px;
    box-sizing: border-box;
  }

  .play-bar {
    padding-left: 8px;
    padding-right: 8px;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    font-size: 12px;
    min-height: 36px;
  }
  .play-bar time {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .play-bar-links {
    gap: 6px;
  }
  .play-bar .ico {
    width: 18px;
    height: 18px;
  }
  .play-bar a {
    padding: 4px;
    min-width: 28px;
    min-height: 28px;
    align-items: center;
    justify-content: center;
  }
  .play-bar .bell i,
  .play-bar .badge {
    min-width: 14px;
    height: 14px;
    font-size: 9px;
    line-height: 14px;
  }

  .game-wrap {
    padding-left: max(8px, env(safe-area-inset-left, 0px));
    padding-right: max(8px, env(safe-area-inset-right, 0px));
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  }

  .menu a,
  .menu button {
    min-height: 44px;
    padding: 0.5em 0.75em;
    font-size: 14px;
  }
  .menu-pairs {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stats-art {
    min-height: 110px;
    border-left: 0;
    border-top: 1px solid #222;
  }

  .points-hub {
    grid-template-columns: 1fr;
  }

  .bank-forms {
    grid-template-columns: 1fr;
  }

  .buy-table-wrap,
  .stage .panel {
    max-width: 100%;
  }

  .crime-job-head {
    display: none;
  }

  .crime-job {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name act"
      "meta meta";
    gap: 4px 10px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .crime-job-name {
    grid-area: name;
    font-weight: 600;
    color: #f0ebe3;
    line-height: 1.25;
  }
  .crime-job.locked .crime-job-name { color: #6a6560; }

  .crime-job-meta {
    grid-area: meta;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 0;
    font-size: 11px;
    color: #c9b7a8;
    line-height: 1.35;
  }

  .crime-job-rank {
    color: #9a8f84;
  }

  .crime-job-chance::before,
  .crime-job-pay::before,
  .crime-job-xp::before {
    content: " ? ";
    color: #6a6560;
  }

  .crime-job-act {
    grid-area: act;
    align-self: center;
  }

  .crime-btn {
    min-width: 64px;
    height: 30px;
    padding: 0 10px;
    font-size: 10px;
  }

  .crime-table {
    font-size: 12px;
  }

  .repair-row-head {
    display: none;
  }

  .repair-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "car act"
      "cond cond"
      "meta meta";
    gap: 6px 10px;
    padding: 10px;
    font-size: 12px;
  }

  .repair-car { grid-area: car; }
  .repair-act { grid-area: act; align-self: center; }
  .repair-cond { grid-area: cond; }

  .repair-meta {
    grid-area: meta;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 0;
    font-size: 11px;
    color: #c9b7a8;
    line-height: 1.35;
  }

  .repair-melt-full::before,
  .repair-cost::before {
    content: " ? ";
    color: #6a6560;
  }

  .repair-label {
    display: inline;
    margin-right: 4px;
    color: #7a7168;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .repair-car .car-thumb {
    width: 56px;
    height: 32px;
  }

  .repair-rarity {
    display: inline;
    margin-top: 0;
    margin-left: 6px;
  }

  .melt-row-head {
    display: none;
  }

  .melt-row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "car"
      "meta"
      "act";
    gap: 6px;
    padding: 10px;
    font-size: 12px;
  }

  .melt-car { grid-area: car; }

  .melt-meta {
    grid-area: meta;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 0;
    font-size: 11px;
    color: #c9b7a8;
    line-height: 1.35;
  }

  .melt-cond::before,
  .melt-yield::before {
    content: " ? ";
    color: #6a6560;
  }

  .melt-label {
    display: inline;
    margin-right: 4px;
    color: #7a7168;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .melt-actions {
    grid-area: act;
    justify-content: stretch;
  }

  .melt-actions .crime-btn,
  .melt-actions form {
    flex: 1 1 calc(50% - 3px);
  }

  .melt-actions .crime-btn {
    width: 100%;
  }

  .melt-car .car-thumb {
    width: 56px;
    height: 32px;
  }

  .play-bar time {
    font-size: 11px;
  }

  .car-catalog {
    grid-template-columns: 1fr;
  }

  .in-game .foot {
    margin-top: 16px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 8px;
  }
  .in-game .foot nav {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 820px) {
  .split,
  .chips,
  .actions {
    grid-template-columns: 1fr;
  }
  .menu-pairs {
    grid-template-columns: 1fr 1fr;
  }
  .capitals-grid,
  .travel-grid {
    grid-template-columns: 1fr;
  }
  .roulette-layout {
    grid-template-columns: 1fr;
  }
  .casino-sheet-rows > div,
  .casino-bet-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .menu-pairs { grid-template-columns: 1fr; }
  .play-bar { gap: 6px; }
  .play-bar time { font-size: 11px; }
  .rail-toggle {
    width: 34px;
    height: 34px;
  }
  .left-rail,
  .right-rail {
    width: min(92vw, 340px);
  }
  .car-catalog-item img {
    width: 72px;
    height: 40px;
  }
}

.profile-sheet {
  position: relative;
  z-index: 2;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}
.profile-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 16px 18px 14px;
  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.72) 0%, rgba(8, 8, 8, 0.82) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.profile-stats-block {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #d4cdc3;
  max-width: 420px;
}
.profile-stats-block p {
  margin: 0 0 3px;
}
.profile-name-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px !important;
}
.profile-k {
  color: #9a9186;
  font-weight: 500;
}
.profile-v {
  color: #f0ebe3;
  font-weight: 600;
}
.profile-rank-administrator {
  color: #e02828;
  font-weight: 700;
}
.profile-rank-moderator {
  color: #3a7fd4;
  font-weight: 700;
}
.access-denied-msg {
  font-size: 1.05rem;
  font-weight: 600;
  color: #e8a0a0;
}
.staff-tools-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 10px 12px;
}
.staff-tools-links .crime-btn {
  margin: 0;
}
.staff-tools-links .crime-btn.on {
  background: var(--layout-menu-active, #8e1212);
  border-color: #a02020;
}
a.profile-msg-link {
  color: var(--gold);
  text-decoration: none;
}
a.profile-msg-link:hover {
  color: var(--gold-2);
  text-decoration: underline;
}
.profile-online {
  color: #3dde6a;
  font-weight: 600;
}
.profile-offline {
  color: #e23b3b;
  font-weight: 600;
}
.profile-dead {
  color: #e23b3b;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.profile-bio-canvas {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #2a2a2a;
  text-align: left;
  min-height: 0;
}
.profile-bio-html {
  width: 100%;
  max-width: none;
  color: #ddd6cc;
  line-height: 1.5;
  word-wrap: break-word;
  font-size: 0.92rem;
}
.profile-bio-html .profile-bb-center {
  text-align: center;
  margin: 8px auto;
}
.profile-bio-html .profile-bb-img {
  display: block;
  max-width: min(100%, 520px);
  height: auto;
  margin: 10px auto;
  border: 0;
  border-radius: 2px;
}
.profile-bio-html .profile-bb-link {
  color: #8ec8ff;
  text-decoration: underline;
}
.profile-bio-empty {
  margin: 0;
  color: #7a736a;
  font-size: 0.88rem;
}
.profile-form {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
}
.profile-form .field textarea,
.profile-form .field input[type="text"],
.profile-form .field input[type="url"],
.profile-form .field input[type="password"],
.profile-form .field input[type="color"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid #333;
  background: #0a0a0a;
  color: #e8e2d8;
}
.profile-form .field input[type="color"] {
  height: 42px;
  padding: 4px;
  max-width: 140px;
}
.profile-form .field textarea {
  resize: vertical;
  min-height: 180px;
  font: inherit;
  line-height: 1.4;
}
.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.profile-subhead {
  margin: 8px 0 0;
  font-size: 1rem;
  color: #e8e2d8;
}
.profile-form code {
  color: #c4b89a;
  font-size: 0.85em;
}
.online-row-you td {
  background: rgba(40, 35, 20, 0.35);
}
.online-cloud {
  position: relative;
  z-index: 2;
  padding: 10px 12px 12px;
}
.online-legend {
  margin: 12px 0 0;
  padding: 0;
  line-height: 1.55;
}
.online-legend .online-name-admin,
.online-legend .online-name-mod,
.online-legend .online-name-hdo {
  font-weight: 600;
}
.online-names {
  margin: 0;
  color: #a8a097;
  font-size: 0.95rem;
  line-height: 1.65;
  word-wrap: break-word;
}
.online-sep {
  color: #6e675e;
}
.online-name {
  color: #bdb4a8;
  text-decoration: none;
}
.online-name:hover {
  color: #fff;
  text-decoration: underline;
}
.online-name-admin {
  color: #ef4444;
  font-weight: 600;
}
.online-name-admin:hover {
  color: #ff6b6b;
}
.online-name-mod {
  color: #3b82f6;
  font-weight: 600;
}
.online-name-mod:hover {
  color: #60a5fa;
}
.online-name-hdo {
  color: #84cc16;
  font-weight: 600;
}
.online-name-hdo:hover {
  color: #a3e635;
}
.online-name-dead {
  color: #8a7f76;
  text-decoration: line-through;
}
.online-count {
  color: #e8e2d8;
  font-weight: 600;
}

.capitals-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
  z-index: 2;
  margin-top: 8px;
}
.capitals-tab {
  padding: 6px 10px;
  border: 1px solid #2a2a2a;
  background: rgba(0, 0, 0, 0.35);
  color: #bdb4a8;
  text-decoration: none;
  font-size: 0.88rem;
}
.capitals-tab:hover { color: #fff; border-color: #444; }
.capitals-tab.on {
  color: #fff;
  border-color: #5a2018;
  background: rgba(90, 20, 18, 0.45);
}
.capitals-board {
  margin-bottom: 10px;
}
.capitals-board-title {
  margin: 0 0 10px;
  padding: 0 0 8px;
  border-bottom: 1px solid #1a1a1a;
  color: #d41818;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.capitals-table-wrap {
  position: relative;
  z-index: 2;
  overflow-x: auto;
  margin: 0 -2px;
}
.capitals-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 12px;
  color: #d8d0c4;
}
.capitals-table th,
.capitals-table td {
  padding: 7px 10px;
  border: 1px solid #1e1e1e;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}
.capitals-table thead th {
  background: #141010;
  color: #e8e2d8;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.03em;
}
.capitals-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}
.capitals-table tbody tr.is-here {
  background: rgba(142, 18, 18, 0.12);
}
.capitals-table a {
  color: #d8cdc0;
  text-decoration: none;
}
.capitals-table a:hover {
  color: #fff;
  text-decoration: underline;
}
.capitals-table .cap-city {
  color: #f0ebe3;
  font-weight: 600;
}
.capitals-table .cap-city.is-here {
  color: #e8a0a0;
}
.cap-here {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  border: 1px solid #5a2018;
  background: rgba(142, 18, 18, 0.35);
  color: #f0ebe3;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.cap-empty {
  color: #5a554e;
}
.cap-unowned {
  color: #8d8479;
  font-style: italic;
}
.cap-special {
  color: #6caf70;
  font-weight: 600;
}

.capitals-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
  position: relative;
  z-index: 2;
  margin-bottom: 12px;
}

.capital-card {
  padding: 0;
  overflow: hidden;
  margin: 0;
  border: 1px solid #2a2a2a;
  background:
    linear-gradient(180deg, rgba(30, 12, 12, 0.35) 0%, transparent 42%),
    #080808;
}
.capital-card-here {
  border-color: #8a3030;
  box-shadow:
    inset 0 0 0 1px rgba(138, 48, 48, 0.35),
    0 0 0 1px rgba(212, 16, 16, 0.12);
}
.capital-head {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 0;
  align-items: stretch;
  border-bottom: 1px solid #222;
  position: relative;
  z-index: 2;
}
.capital-title-block {
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}
.capital-name {
  margin: 0;
  color: #f0ebe3;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.capital-residents {
  margin: 0;
  color: #8d8479;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.capital-thumb {
  min-height: 78px;
  background: #0a0a0a center/cover no-repeat;
  border-left: 1px solid #222;
  position: relative;
}
.capital-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 8, 8, 0.55) 0%, transparent 40%);
  pointer-events: none;
}
.capital-here-badge {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 7px;
  border: 1px solid #a04040;
  color: #f0a0a0;
  background: rgba(60, 16, 16, 0.65);
}
.capital-props {
  margin: 0;
  padding: 6px 0;
  list-style: none;
  position: relative;
  z-index: 2;
}
.capital-prop {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid #161616;
}
.capital-prop:last-child {
  border-bottom: 0;
}
.capital-prop:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}
.capital-prop-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.capital-prop-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 10px;
  text-align: right;
  font-size: 0.78rem;
}
.capital-bet {
  color: #bdb4a8;
  font-variant-numeric: tabular-nums;
}
.capital-prop-link {
  color: #e8e2d8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.capital-prop-link:hover { color: #fff; text-decoration: underline; }
.capital-prop-locked { color: #a8a097; font-weight: 600; font-size: 0.9rem; }
.capital-owner {
  color: #c9a227;
  text-decoration: none;
  font-size: 0.8rem;
}
.capital-owner:hover { text-decoration: underline; }
.capital-no-owner { color: #7a736a; font-size: 0.8rem; }

@media (max-width: 560px) {
  .capital-head {
    grid-template-columns: 1fr 72px;
  }
  .capital-prop {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .capital-prop-meta {
    justify-content: flex-start;
  }
}
.wealth-unknown { color: #8a8278; }
.wealth-ok { color: #c4a484; }
.wealth-rich { color: #e8b4a0; }
.wealth-ultra { color: #ef8a6e; }
.wealth-mega { color: #f87171; }
.bet-unlimited { color: #e6c35c; font-weight: 600; }

.bj-table {
  text-align: center;
}
.bj-table > h2 {
  text-align: left;
}
.bj-table .crime-meta {
  text-align: center;
}
.bj-table h3 {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: #9a9186;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bj-seat {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bj-hand {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.bj-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 64px;
  padding: 0 10px;
  border: 1px solid #3a342c;
  background: linear-gradient(160deg, #1a1814 0%, #0e0c0a 100%);
  color: #f0ebe3;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.bj-card-red { color: #e07070; border-color: #5a3030; }
.bj-card-back {
  color: #6a635a;
  background: repeating-linear-gradient(
    -45deg,
    #141210,
    #141210 4px,
    #1c1814 4px,
    #1c1814 8px
  );
}
.bj-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  justify-content: center;
}
.bj-outcome {
  margin: 8px 0 12px;
  color: #e8e2d8;
  font-weight: 600;
  text-align: center;
}
.bj-table .jail-reward-form {
  justify-content: center;
}

.roulette-bet-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}
.roulette-bet-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #8d8479;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.roulette-bet-form input,
.roulette-bet-form select {
  min-width: 120px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #2e2e2e;
  background: #0a0a0a;
  color: #f0ebe3;
  font: 500 13px var(--font);
}
.roulette-number-wrap.is-hidden { display: none; }

.roulette-play {
  padding-bottom: 18px;
}
.roulette-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(280px, 1fr);
  gap: 18px 22px;
  align-items: start;
}
@media (max-width: 900px) {
  .roulette-layout {
    grid-template-columns: 1fr;
  }
}

.roulette-board {
  display: grid;
  grid-template-columns: 42px 42px 1fr;
  grid-template-rows: 36px auto 32px;
  gap: 3px;
  user-select: none;
}
.rb-zero {
  grid-column: 3;
  grid-row: 1;
  border: 1px solid #1f3a2a;
  background: #1a5c3a;
  color: #fff;
  font: 700 14px var(--font);
  cursor: pointer;
}
.rb-outside {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-rows: repeat(6, 1fr);
  gap: 3px;
}
.rb-dozens {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
}
.rb-numbers {
  grid-column: 3;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(12, 28px);
  gap: 3px;
}
.rb-cols {
  grid-column: 3;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.roulette-board button {
  margin: 0;
  padding: 0;
  border: 1px solid #2a2a2a;
  color: #f5f0e8;
  font: 600 12px var(--font);
  cursor: pointer;
  transition: outline-color 0.12s ease, filter 0.12s ease;
}
.roulette-board button:hover {
  filter: brightness(1.12);
}
.roulette-board button.rb-active {
  outline: 2px solid #d41010;
  outline-offset: -2px;
  z-index: 1;
}
.rb-out,
.rb-dozen,
.rb-col {
  background: #1a5c3a;
  border-color: #1f3a2a;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.04em;
  font-size: 11px;
}
.rb-dozen {
  writing-mode: vertical-rl;
}
.rb-col {
  writing-mode: horizontal-tb;
  transform: none;
  font-size: 11px;
}
.rb-swatch {
  writing-mode: horizontal-tb;
  transform: none;
  min-height: 28px;
}
.rb-red-swatch { background: #9b1c1c !important; border-color: #6a1010 !important; }
.rb-black-swatch { background: #111 !important; border-color: #000 !important; }
.rb-num.rb-red { background: #9b1c1c; border-color: #6a1010; }
.rb-num.rb-black { background: #141414; border-color: #000; }
.rb-num.rb-green,
.rb-green { background: #1a5c3a; border-color: #1f3a2a; }

.roulette-ticket {
  border: 1px solid #2a2a2a;
  background: #0c0c0c;
  min-width: 0;
}
.roulette-ticket-head {
  padding: 8px 12px;
  background: #141414;
  border-bottom: 1px solid #2a2a2a;
  color: #d41010;
  font: 700 14px var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.roulette-ticket-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 10px;
  padding: 10px 12px;
}
.roulette-stake {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 2px 4px;
  border-radius: 2px;
  color: #cfc6b8;
  font-size: 12px;
}
.roulette-stake.is-active {
  background: rgba(212, 16, 16, 0.12);
}
.roulette-stake span {
  white-space: nowrap;
}
.roulette-stake input {
  width: 100%;
  min-width: 0;
  height: 24px;
  padding: 0 6px;
  border: 1px solid #2e2e2e;
  background: #0a0a0a;
  color: #f0ebe3;
  font: 500 12px var(--font);
  text-align: right;
}
.roulette-ticket-actions {
  display: flex;
  justify-content: center;
  padding: 4px 12px 10px;
}
.casino-owner-line,
.roulette-owner-line {
  margin: 0;
  padding: 0 12px 8px;
  text-align: center;
  color: #d8d0c4;
  font-size: 13px;
  line-height: 1.45;
}
.casino-owner-line:last-child,
.roulette-owner-line:last-child {
  padding-bottom: 12px;
}
.casino-owner-block {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #2a2a2a;
}
.casino-owner-block .casino-owner-line {
  padding-left: 0;
  padding-right: 0;
}
.casino-owner-block .casino-owner-line:last-child {
  padding-bottom: 0;
}

.roulette-result {
  display: flex;
  align-items: center;
  gap: 14px;
}
.roulette-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.25rem;
  border: 2px solid #3a342c;
  flex-shrink: 0;
}
.roulette-ball-red {
  background: #5a1818;
  color: #f0c0c0;
  border-color: #8a3030;
}
.roulette-ball-black {
  background: #141414;
  color: #e8e2d8;
  border-color: #3a3a3a;
}
.roulette-ball-green {
  background: #14301c;
  color: #b8e0c0;
  border-color: #2a5a38;
}

.dice-bet-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}
.dice-bet-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #8d8479;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dice-bet-form input {
  min-width: 110px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #2e2e2e;
  background: #0a0a0a;
  color: #f0ebe3;
  font: 500 13px var(--font);
}

.casino-sheet {
  padding: 0;
  overflow: hidden;
}

.casino-sheet-title {
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid #2a2a2a;
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9a44c;
}

.casino-sheet-rows {
  margin: 0;
  padding: 0;
}

.casino-sheet-rows > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  align-items: baseline;
  margin: 0;
  padding: 9px 14px;
  border-bottom: 1px solid #1f1f1f;
  background: rgba(12, 12, 12, 0.55);
}

.casino-sheet-rows > div:nth-child(even) {
  background: rgba(0, 0, 0, 0.38);
}

.casino-sheet-rows dt {
  margin: 0;
  color: #c9a44c;
  font-size: 12px;
  font-weight: 600;
}

.casino-sheet-rows dd {
  margin: 0;
  color: #d8d0c4;
  font-size: 13px;
}

.casino-sheet-rows dd a {
  color: #e8d9a8;
  text-decoration: none;
}

.casino-sheet-rows dd a:hover {
  text-decoration: underline;
}

.casino-sheet-note {
  margin: 0;
  padding: 10px 14px;
  color: #a89f93;
  font-size: 13px;
}

.casino-sheet-actions {
  padding: 0 14px 14px;
}

.casino-bet-form {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.casino-bet-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) minmax(120px, 0.8fr);
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 9px 14px;
  border-bottom: 1px solid #1f1f1f;
  background: rgba(12, 12, 12, 0.55);
}

.casino-bet-row:nth-child(even) {
  background: rgba(0, 0, 0, 0.38);
}

.casino-bet-row span {
  color: #c9a44c;
  font-size: 12px;
  font-weight: 600;
}

.casino-bet-row input {
  width: 100%;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #2e2e2e;
  background: #0a0a0a;
  color: #f0ebe3;
  font: 500 13px var(--font);
}

.casino-bet-row input:focus {
  outline: none;
  border-color: #5a4a28;
}

.casino-bet-btn {
  margin: 12px 14px 14px;
  width: calc(100% - 28px);
  max-width: 220px;
}

@media (max-width: 640px) {
  .casino-sheet-rows > div,
  .casino-bet-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.dice-result {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dice-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 64px;
  padding: 0 10px;
  border: 1px solid #3a342c;
  background: linear-gradient(160deg, #1a1814 0%, #0e0c0a 100%);
  color: #f0ebe3;
  font-weight: 700;
  font-size: 1.35rem;
}
.dice-face-win {
  border-color: #8a3030;
  color: #f0a0a0;
}

.race-board {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 14px;
  border: 1px solid #2a2a2a;
  background: #0c0c0c;
}
.race-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid #1a1a1a;
  cursor: pointer;
  background: #121212;
}
.race-row:last-child {
  border-bottom: 0;
}
.race-row:hover {
  background: #181818;
}
.race-row:has(input:checked) {
  background: #1a1212;
  box-shadow: inset 2px 0 0 #d41010;
}
.race-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.race-row.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.race-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d8d0c4;
}
.race-name {
  font: 600 14px var(--font);
}
.race-odds {
  color: #f0ebe3;
  font: 600 13px var(--font);
  letter-spacing: 0.04em;
}
.race-red .race-name { color: #e23b3b; }
.race-blue .race-name { color: #3b6fe2; }
.race-green .race-name { color: #2f9e44; }
.race-yellow .race-name { color: #e2c03b; }
.race-white .race-name { color: #f0ebe3; }
.race-pink .race-name { color: #e26bb0; }
.race-black .race-name { color: #9a9590; }
.race-podium .race-red { color: #e23b3b; }
.race-podium .race-blue { color: #3b6fe2; }
.race-podium .race-green { color: #2f9e44; }
.race-podium .race-yellow { color: #e2c03b; }
.race-podium .race-white { color: #f0ebe3; }
.race-podium .race-pink { color: #e26bb0; }
.race-podium .race-black { color: #9a9590; }

.race-bet-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}
.race-bet-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #8d8479;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.race-bet-form input,
.race-bet-form select {
  min-width: 140px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #2e2e2e;
  background: #0a0a0a;
  color: #f0ebe3;
  font: 500 13px var(--font);
}
.race-result {
  display: grid;
  gap: 12px;
}
.race-podium {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.race-podium li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d8d0c4;
}
.race-place {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid #2e2e2e;
  background: #0a0a0a;
  color: #f0a0a0;
  font: 700 12px var(--font);
}

.oc-crew {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.oc-crew li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #2a2a2a;
  background: #0c0c0c;
  color: #d8d0c4;
}
.oc-crew li.oc-empty {
  opacity: 0.55;
}
.oc-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid #2e2e2e;
  background: #0a0a0a;
  color: #f0a0a0;
  font: 700 12px var(--font);
}
.find-form {
  max-width: 360px;
}
.find-form input[type="text"] {
  min-width: 180px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #2e2e2e;
  background: #0a0a0a;
  color: #f0ebe3;
  font: 500 13px var(--font);
}

.travel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.travel-card {
  border: 1px solid #2a2a2a;
  background: #0c0c0c;
  overflow: hidden;
}
.travel-card-here {
  border-color: #8a3030;
  box-shadow: inset 0 0 0 1px rgba(138, 48, 48, 0.35);
}
.travel-card-hero {
  position: relative;
  min-height: 96px;
  background: #0a0a0a center/cover no-repeat;
}
.travel-card-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.2) 100%),
    linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 55%);
}
.travel-card-meta {
  position: absolute;
  left: 10px;
  bottom: 8px;
  right: 10px;
  z-index: 1;
  color: #eee;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.travel-card-meta h3 {
  margin: 0 0 2px;
  font-size: 1.1rem;
}
.travel-card-meta p {
  margin: 0;
  font-size: 0.78rem;
  color: #ddd;
}
.travel-card-actions {
  padding: 10px;
  display: flex;
  align-items: center;
  min-height: 44px;
}
.world-map small {
  display: block;
  color: #8d8479;
  font-size: 10px;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .capitals-grid,
  .travel-grid,
  .pstats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .profile-card {
    padding: 14px 12px 12px;
  }
  .profile-stats-block {
    max-width: none;
  }
}

/* ?? Notepad ?? */
.notepad-form {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  padding: 0 0 8px;
}

.notepad-field {
  display: grid;
  gap: 6px;
  margin: 0;
}

.notepad-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 0 2px;
  color: #8d8479;
  font-size: 11px;
}

.notepad-count {
  color: #c8c0b6;
  font-variant-numeric: tabular-nums;
}

.notepad-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: min(52vh, 420px);
  padding: 10px 12px;
  border: 1px solid #333;
  background: #0a0a0a;
  color: #e8e2d8;
  font: 400 13px/1.45 ui-monospace, "Cascadia Code", "Consolas", monospace;
  resize: vertical;
  box-shadow: inset 0 1px 0 rgba(90, 90, 90, 0.2);
}

.notepad-form textarea:focus {
  outline: none;
  border-color: #5a3030;
}

.notepad-form textarea::placeholder {
  color: #5a544c;
}

.notepad-actions {
  margin-top: 2px;
}

/* ?? Inheritance ?? */
.inheritance-form {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  padding: 0 10px 10px;
}

.inheritance-form .field {
  display: grid;
  gap: 4px;
  color: #c8c0b6;
  font-size: 11px;
}

.inheritance-form input[type="text"] {
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #333;
  background: #0a0a0a;
  color: #e8e2d8;
  font: 600 13px var(--font);
}

.inheritance-form input[type="text"]:focus {
  outline: none;
  border-color: #5a3030;
}

.inheritance-heir {
  color: #f2ece4;
}

/* ?? Bank ?? */
.bank-forms {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 10px 10px;
}

.bank-form {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #2a2a2a;
  background: #0a0a0a;
}

.bank-form-title {
  margin: 0;
  color: #d41818;
  font: 700 11px var(--font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bank-form .field {
  display: grid;
  gap: 4px;
  color: #c8c0b6;
  font-size: 11px;
}

.bank-form input[type="number"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #333;
  background: #080808;
  color: #e8e2d8;
  font: 600 13px var(--font);
}

.bank-form input[type="number"]:focus {
  outline: none;
  border-color: #5a3030;
}

@media (max-width: 700px) {
  .bank-forms {
    grid-template-columns: 1fr;
  }
}

/* ?? Inbox ?? */
.inbox-tabs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 10px;
}

.inbox-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.45em 0.6em;
  border: 1px solid #2e2e2e;
  background: #080808;
  color: #c8c0b6;
  font: 700 11px var(--font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.inbox-tab:hover {
  color: #efe8dc;
  border-color: #5a3030;
}

.inbox-tab.is-active {
  color: #fff4e8;
  border-color: #5a1818;
  background: #8e1212;
}

.inbox-compose {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  padding: 0 10px 10px;
}

.inbox-compose .field {
  display: grid;
  gap: 4px;
  color: #c8c0b6;
  font-size: 11px;
}

.inbox-compose input[type="text"],
.inbox-compose textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #333;
  background: #0a0a0a;
  color: #e8e2d8;
  font: 500 13px var(--font);
}

.inbox-compose textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.45;
}

.inbox-compose input:focus,
.inbox-compose textarea:focus {
  outline: none;
  border-color: #5a3030;
}

.inbox-toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  max-width: 220px;
  margin: 0 auto 12px;
  padding: 0 10px;
}

.inbox-toolbar .crime-btn,
.inbox-toolbar .crime-btn-alt {
  width: 100%;
  min-height: 28px;
}

.inbox-toolbar-form {
  margin: 0;
}

.inbox-feed {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  padding: 0 8px 10px;
}

.inbox-card {
  position: relative;
  margin: 0;
  padding: 0 0 6px;
  border: 1px solid #2e2e2e;
  background: #080808;
  box-shadow:
    inset 0 0 0 1px #121212,
    inset 0 1px 0 rgba(90, 90, 90, 0.28),
    0 0 0 1px #0a0a0a;
}

.inbox-card.is-new {
  border-color: #4a2020;
}

.inbox-card-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  padding: 6px 10px;
  border-bottom: 1px solid #222;
  background: #101010;
}

.inbox-card-from {
  color: #d8d0c4;
  font-weight: 700;
  text-decoration: none;
}

.inbox-card-from:hover {
  color: #fff;
}

.inbox-card-time {
  margin-left: auto;
  color: #8d8479;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.inbox-check {
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

.inbox-check input {
  width: 14px;
  height: 14px;
  accent-color: #8e1212;
  cursor: pointer;
}

.inbox-card-subject {
  margin: 6px 10px 0;
  color: #c9a44c;
  font-size: 12px;
  font-weight: 600;
}

.inbox-card-body {
  margin: 6px 10px 4px;
  color: #e8e2d8;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.inbox-card-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 10px 4px;
}

.inbox-link-btn {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold);
  font: 600 11px var(--font);
  text-decoration: none;
  cursor: pointer;
}

.inbox-link-btn:hover {
  color: var(--gold-2);
  text-decoration: underline;
}

.inbox-inline-form {
  display: inline;
  margin: 0;
}

.inbox-pager {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 10px 12px;
}

.inbox-staff {
  display: inline-block;
  padding: 1px 5px;
  border: 1px solid #5a1818;
  background: #3a1010;
  color: #e8b4b4;
  font: 700 9px var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

.inbox-staff-hdo {
  border-color: #3a4a5a;
  background: #1a2430;
  color: #a8c4d8;
}

.inbox-staff-moderator {
  border-color: #4a5a28;
  background: #243018;
  color: #c8d8a0;
}

.inbox-staff-administrator {
  border-color: #6a2020;
  background: #3a1010;
  color: #f0c0c0;
}

.inbox-staff-entertainer {
  border-color: #5a3a6a;
  background: #2a1830;
  color: #d0b0e8;
}

.inbox-thread {
  margin: 8px 8px 6px;
  padding: 8px;
  border: 1px solid #222;
  background: #0a0a0a;
  max-height: 320px;
  overflow-y: auto;
}

.inbox-thread-label {
  margin: 0 0 8px;
  color: #8d8479;
  font: 700 10px var(--font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.inbox-thread-line {
  margin: 0 0 8px;
  padding: 7px 8px;
  border: 1px solid #1c1c1c;
  background: #101010;
}

.inbox-thread-line:last-child {
  margin-bottom: 0;
}

.inbox-thread-line.is-mine {
  border-color: #2a2420;
  background: #12100e;
}

.inbox-thread-line.is-theirs {
  border-color: #1e1a1a;
}

.inbox-thread-line.is-current {
  border-color: #5a1818;
  box-shadow: inset 0 0 0 1px rgba(142, 18, 18, 0.35);
}

.inbox-thread-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  color: #c8c0b6;
  font-size: 11px;
}

.inbox-thread-meta span {
  color: #8d8479;
  font-variant-numeric: tabular-nums;
}

.inbox-thread-subject {
  margin-bottom: 3px;
  color: #c9a44c;
  font-size: 11px;
  font-weight: 600;
}

.inbox-thread-text {
  color: #e8e2d8;
  font-size: 12.5px;
  line-height: 1.4;
  word-break: break-word;
}

/* ?? Quick Trade ?? */
.qt-board {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.qt-put .crime-intro,
.qt-market .empty {
  padding-left: 10px;
  padding-right: 10px;
}

.qt-put-form {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.qt-put-form .field {
  display: grid;
  gap: 4px;
  color: #c8c0b6;
  font-size: 11px;
}

.qt-put-form input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #333;
  background: #0a0a0a;
  color: #e8e2d8;
  font: 600 13px var(--font);
}

.qt-put-form input[type="number"]:focus {
  outline: none;
  border-color: #5a3030;
}

.qt-hide {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c8c0b6;
  font-size: 12px;
  cursor: pointer;
}

.qt-hide input {
  accent-color: #8e1212;
}

.qt-table-wrap {
  position: relative;
  z-index: 2;
  overflow-x: auto;
  padding: 0 6px;
  max-height: 280px;
  overflow-y: auto;
}

.qt-table {
  width: 100%;
}

.qt-table th,
.qt-table td {
  font-size: 11px;
  padding: 5px 6px;
}

.qt-table input[type="radio"] {
  accent-color: #8e1212;
  cursor: pointer;
}

.qt-hidden {
  color: #8d8479;
  font-style: italic;
}

.qt-stack {
  margin-left: 6px;
  color: #c9a227;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.qt-mine td {
  background: #120c0c;
}

.qt-accept-form {
  margin: 0;
}

.qt-accept-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding: 8px 10px 10px;
}

.qt-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

@media (max-width: 900px) {
  .qt-board {
    grid-template-columns: 1fr;
  }
}

/* ?? Buy (guns / protection / car search) ?? */
.buy-panel .crime-intro {
  margin-bottom: 10px;
}

.buy-table-wrap {
  overflow-x: auto;
}

.buy-table th {
  text-align: center;
}

.buy-table td {
  vertical-align: middle;
}

.buy-table .buy-pick {
  width: 38%;
}

.buy-table .buy-price {
  width: 12%;
  text-align: right;
  white-space: nowrap;
  color: #cfc6b8;
  font-variant-numeric: tabular-nums;
}

.buy-cars .buy-pick {
  width: 50%;
}

.buy-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
  color: #efe8dc;
}

.buy-opt input {
  accent-color: #8e1212;
  flex: 0 0 auto;
}

.buy-opt.buy-owned {
  color: #6a6560;
  cursor: default;
}

.buy-actions {
  display: flex;
  justify-content: center;
  padding: 12px 10px 4px;
}

.buy-actions-end {
  justify-content: flex-end;
}

@media (max-width: 700px) {
  .buy-table thead th {
    font-size: 12px;
  }

  .buy-opt span {
    font-size: 13px;
  }
}

.rail-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rail-link:hover {
  color: #e6d7a8;
}

.garage-table .garage-actions {
  white-space: nowrap;
}

.garage-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
}

.garage-relist input[type="number"] {
  width: 110px;
  max-width: 28vw;
  padding: 5px 7px;
  border: 1px solid #3a3330;
  background: #120e0c;
  color: #efe8dc;
  border-radius: 2px;
}

.garage-asking {
  color: #c9a227;
  font-weight: 600;
}

.garage-listed td {
  background: rgba(142, 18, 18, 0.12);
}

@media (max-width: 900px) {
  .garage-actions {
    white-space: normal;
  }

  .garage-inline {
    flex-wrap: wrap;
  }
}

.garage-market {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.garage-filter-label {
  margin: 12px 0 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a89f93;
}

.garage-filter-hint {
  margin: 0 0 8px;
}

.garage-rarity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.garage-rarity-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #3a3330;
  background: #120e0c;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.garage-rarity-chip input {
  accent-color: #8e1212;
}

.garage-rarity-chip.is-on {
  border-color: #8e1212;
  background: rgba(142, 18, 18, 0.18);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.25);
}

.dealer-lot-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 12px;
}
.dealer-lot-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid #2a2a2a;
  background: rgba(0, 0, 0, 0.35);
  color: #bdb4a8;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}
.dealer-lot-tab:hover {
  color: #fff;
  border-color: #444;
}
.dealer-lot-tab.is-on {
  color: #fff;
  border-color: #8a3030;
  background: rgba(90, 20, 18, 0.45);
}
.dealer-lot-tab-count {
  color: #8d8479;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
}
.dealer-lot-tab.is-on .dealer-lot-tab-count {
  color: #c4a8a8;
}

.dealer-player-filters {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.7fr) minmax(0, 0.7fr);
  gap: 8px 10px;
  margin: 0 0 14px;
  align-items: end;
}
.dealer-player-filters .field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}
.dealer-player-filters .field span {
  color: #8d8479;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dealer-player-rarities {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dealer-player-rarities .garage-rarity-chip {
  padding: 6px 8px;
  font-size: 0.75rem;
}
.dealer-player-filter-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 640px) {
  .dealer-player-filters {
    grid-template-columns: 1fr;
  }
}

.garage-search-form .field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.garage-search-form .field span {
  font-size: 12px;
  color: #a89f93;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.garage-search-form input[type="search"],
.garage-search-form input[type="number"],
.garage-search-form select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #3a3330;
  background: #120e0c;
  color: #efe8dc;
  border-radius: 2px;
}

.garage-filter-btn {
  width: 100%;
  margin-top: 6px;
  text-align: center;
  box-sizing: border-box;
}

a.garage-filter-btn {
  display: inline-block;
  text-decoration: none;
}

.garage-buy-table td:first-child {
  width: 28px;
}

.garage-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 0 4px 4px;
  color: #a89f93;
  font-size: 13px;
}

.garage-pager-links {
  display: flex;
  gap: 12px;
}

.garage-pager-links a {
  color: #e6d7a8;
}

@media (max-width: 900px) {
  .garage-market {
    grid-template-columns: 1fr;
  }
}

/* ?? Booze ?? */
.booze-carry {
  text-align: center;
  margin: 0 0 8px;
}

.booze-table th,
.booze-table td {
  text-align: center;
}

.booze-table td:first-child {
  text-align: left;
}

.booze-opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
  color: #efe8dc;
}

.booze-opt input {
  accent-color: #8e1212;
}

.booze-sell-price {
  color: #86efac;
}

.booze-actions {
  gap: 10px;
}

.booze-chart th,
.booze-chart td {
  text-align: center;
  white-space: nowrap;
  font-size: 12px;
}

.booze-chart td:first-child,
.booze-chart th:first-child {
  text-align: left;
}

.booze-chart-sub th {
  font-weight: 500;
  color: #a89f93;
  font-size: 11px;
}

.booze-chart-here td {
  background: rgba(142, 18, 18, 0.14);
}

.booze-best-buy {
  color: #60a5fa;
  font-weight: 600;
}

.booze-best-sell {
  color: #86efac;
  font-weight: 600;
}

.booze-best-route {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #3a3330;
  background: linear-gradient(135deg, rgba(142, 18, 18, 0.22), rgba(18, 14, 12, 0.9));
}

.booze-best-route-title {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9a227;
}

.booze-best-route p {
  margin: 0 0 4px;
}

.booze-chart-route td:first-child {
  box-shadow: inset 3px 0 0 #c9a227;
}

.booze-route-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid currentColor;
}

.booze-route-cell {
  outline: 1px solid rgba(201, 162, 39, 0.55);
  outline-offset: -1px;
}

.points-mgmt-table td:last-child,
.points-mgmt-table th:last-child {
  text-align: right;
  white-space: nowrap;
  width: 3.5rem;
}

.points-mgmt-pick {
  width: 1.4rem;
  text-align: center;
}

.points-mgmt-table th,
.points-mgmt-table td {
  padding: 4px 6px;
  font-size: 11px;
}

.points-mgmt-table th {
  font-size: 9px;
}

.points-mgmt-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.points-mgmt-sub {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d41818;
}

.points-mgmt-sub span {
  margin-left: 6px;
  color: #9a9090;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.points-mgmt-shop,
.points-mgmt-guards {
  min-width: 0;
  border: 1px solid #2a2a2a;
  background: rgba(0, 0, 0, 0.22);
  padding: 10px 10px 12px;
}

.points-bg-roster {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #2a2a2a;
}

.points-bg-roster-title {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d41818;
}

.points-bg-roster .crime-meta {
  margin: 0 0 8px;
}

.points-bg-roster-table a {
  color: #d41818;
  text-decoration: none;
  font-weight: 600;
}

.points-bg-roster-table a:hover {
  color: #ff3b3b;
  text-decoration: underline;
}

.points-bg-visible td {
  color: #e8e2d8;
  font-weight: 600;
}

.points-bg-visible td:last-child {
  color: #e8e2d8;
  font-weight: 500;
}

.points-bg-upgrades {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 11rem;
}

.points-bg-up-form {
  margin: 0;
}

.points-bg-up-form .crime-btn {
  width: 100%;
  font-size: 10px;
  padding: 5px 7px;
  white-space: normal;
  line-height: 1.25;
  text-align: left;
}

.donate-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  align-items: baseline;
  margin-bottom: 10px;
}

.donate-head .crime-intro {
  margin: 0;
  flex: 1 1 240px;
}

.donate-table td:last-child,
.donate-table th:last-child {
  text-align: right;
  white-space: nowrap;
  width: 5rem;
}

.donate-pick {
  width: 1.6rem;
  text-align: center;
}

.donate-agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 12px;
  color: #cfc6b8;
  font-size: 13px;
}

.donate-agree input {
  margin-top: 3px;
  accent-color: #8e1212;
}

.donate-agree a {
  color: #d41818;
}

.donate-buy-btn {
  width: 100%;
  height: 32px;
}

.donate-policy p {
  margin: 0 0 8px;
}

.donate-checkout {
  max-width: 420px;
}

.donate-checkout-summary {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #2a2a2a;
}

.donate-checkout-amount {
  margin: 0 0 6px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #e8e2d8;
}

.donate-pay-form {
  display: grid;
  gap: 10px;
}

.donate-pay-field {
  display: grid;
  gap: 4px;
  margin: 0;
}

.donate-pay-field span {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a9090;
}

.donate-pay-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #2a2a2a;
  background: #0d0b09;
  color: #e8e2d8;
}

.donate-pay-field input:focus {
  outline: 1px solid #8e1212;
  border-color: #8e1212;
}

.donate-pay-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.donate-cancel-form {
  margin-top: 10px;
}

.donate-cancel-form .crime-btn {
  width: 100%;
}

.donate-checkout-hint {
  margin-top: 12px;
}


@media (max-width: 860px) {
  .points-mgmt-split {
    grid-template-columns: 1fr;
  }
}

.points-mgmt-car {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 12px 0 0;
}

.points-mgmt-car select {
  min-width: 220px;
  max-width: 100%;
}

.points-mgmt-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
}

.points-mgmt-foot p {
  margin: 0;
}

.points-mgmt-balance {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.points-hub-panel {
  padding-bottom: 4px;
}

.points-hub {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(200px, 1fr) minmax(200px, 1fr);
  gap: 14px;
}

.points-hub-card {
  border: 1px solid #2a2a2a;
  background: rgba(0, 0, 0, 0.28);
  padding: 12px 14px 14px;
  min-width: 0;
}

.points-hub-card > h2,
.points-hub-head h2 {
  margin: 0 0 12px;
  padding: 0 0 6px;
  border-bottom: 1px solid #2a2a2a;
  box-shadow: 0 1px 0 #121212;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d41818;
}

.points-hub-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #2a2a2a;
  box-shadow: 0 1px 0 #121212;
}

.points-hub-head h2 {
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.points-hub-head a {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a9090;
  text-decoration: none;
}

.points-hub-head a:hover {
  color: #d41818;
}

.points-hub-avail {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2a2a2a;
  color: #9a9090;
}

.points-hub-avail b {
  color: #e8e2d8;
  font-weight: 600;
}

.points-send-form {
  display: grid;
  gap: 10px;
}

.points-send-field {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 10px;
  align-items: center;
  margin: 0;
}

.points-send-field span {
  color: #9a9090;
  font-size: 13px;
}

.points-send-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 9px;
  border: 1px solid #2a2a2a;
  background: #0d0b09;
  color: #e8e2d8;
}

.points-send-field input:focus {
  outline: 1px solid #8e1212;
  border-color: #8e1212;
}

.points-send-btn {
  width: 100%;
  margin-top: 4px;
}

.points-hub-links {
  margin: 12px 0 0;
  font-size: 13px;
}

.points-hub-links a {
  color: #cfc6b8;
  text-decoration: none;
}

.points-hub-links a:hover {
  color: #e8d9a8;
  text-decoration: underline;
}

.points-hub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #2a2a2a;
}

.points-hub-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  padding: 8px 10px;
  border-bottom: 1px solid #2a2a2a;
  font-size: 13px;
  color: #cfc6b8;
}

.points-hub-list li:nth-child(even) {
  background: rgba(0, 0, 0, 0.28);
}

.points-hub-list li:last-child {
  border-bottom: 0;
}

.points-hub-list a {
  color: #d41818;
  text-decoration: none;
  font-weight: 600;
}

.points-hub-list a:hover {
  color: #ff3b3b;
  text-decoration: underline;
}

.points-hub-empty {
  margin: 8px 0 0;
}

.points-log-pager {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

@media (max-width: 980px) {
  .points-hub {
    grid-template-columns: 1fr;
  }
}








/* Kill page */
.kill-page {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kill-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}

.kill-secondary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kill-panel {
  margin-bottom: 0;
}

.kill-panel h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kill-panel h2 .ico {
  width: 16px;
  height: 16px;
  opacity: 0.85;
}

.kill-sub {
  margin: 0;
  padding: 8px 10px 0;
}

.kill-stats-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.kill-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px 10px;
}

.kill-form-row {
  display: grid;
  grid-template-columns: 1fr minmax(88px, 120px);
  gap: 8px;
}

.kill-form-wide .kill-form-row {
  grid-template-columns: 1fr 1fr;
}

.kill-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kill-form-actions .kill-submit {
  width: auto;
  min-width: 120px;
  margin-top: 0;
}

.kill-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}

.kill-field input,
.kill-field textarea {
  width: 100%;
  box-sizing: border-box;
  background: #141010;
  border: 1px solid #3a2a2a;
  color: #f0e6e0;
  padding: 8px 10px;
  border-radius: 2px;
  font: inherit;
}

.kill-field textarea {
  resize: vertical;
  min-height: 72px;
}

.kill-field input:focus,
.kill-field textarea:focus {
  outline: none;
  border-color: #8a3030;
}

.kill-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #d8cdc4;
  user-select: none;
}

.kill-submit {
  width: 100%;
  margin-top: 4px;
}

.kill-filter-form {
  margin: 0;
  padding: 8px 10px 0;
}

.kill-filter-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #141010;
  border: 1px solid #3a2a2a;
  padding: 6px 10px;
}

.kill-filter-field input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #f0e6e0;
  font: inherit;
  outline: none;
}

.kill-filter-ico {
  display: inline-flex;
  color: #8a7d74;
}

.kill-filter-ico .ico {
  width: 14px;
  height: 14px;
}

.kill-search-table td {
  vertical-align: middle;
}

.kill-note {
  display: block;
  font-size: 11px;
}

.kill-search-action {
  width: 36px;
  text-align: center;
}

.kill-fill-btn {
  display: inline-flex;
  color: #c9b7a8;
}

.kill-fill-btn:hover {
  color: var(--gold);
}

.kill-fill-btn .ico {
  width: 16px;
  height: 16px;
}

.kill-searches-scroll,
.kill-log-scroll {
  margin: 8px 10px 10px;
}

.kill-calc-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 10px 10px;
}

.kill-calc-user {
  flex: 1;
  min-width: 180px;
}

.panel > h2 .ico {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: -2px;
}

.kill-help {
  margin: 0;
  padding: 8px 10px 0;
  color: #a89f93;
  font-size: 12px;
}

.kill-help summary {
  cursor: pointer;
  color: #c8c0b6;
  user-select: none;
}

.kill-help .crime-meta {
  margin: 8px 0 0;
}

.kill-empty {
  margin: 0;
  padding: 8px 10px 10px;
}

.kill-attack-log td {
  vertical-align: top;
}

.kill-log-when {
  white-space: nowrap;
  width: 1%;
  color: #9a8f84;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .kill-page {
    gap: 6px;
  }

  .kill-layout {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .kill-panel-shoot,
  .kill-panel-searches,
  .kill-panel-find,
  .kill-panel-calc,
  .kill-panel-log {
    margin-bottom: 0;
  }

  .kill-panel h2 {
    padding: 6px 10px;
    font-size: 11px;
  }

  .kill-sub {
    padding: 4px 10px 0;
    font-size: 11px;
  }

  .kill-stats-line {
    gap: 2px 10px;
    font-size: 11px;
  }

  .kill-form {
    gap: 5px;
    padding: 6px 10px 8px;
  }

  .kill-form-row {
    grid-template-columns: 1.45fr 0.75fr;
    gap: 6px;
  }

  .kill-form-wide .kill-form-row {
    grid-template-columns: 1fr 1fr;
  }

  .kill-field {
    gap: 2px;
    font-size: 10px;
  }

  .kill-field input {
    padding: 5px 8px;
    font-size: 13px;
  }

  .kill-form-actions {
    margin-top: 0;
  }

  .kill-form-actions .kill-submit {
    min-width: 88px;
    padding: 7px 12px;
  }

  .kill-check {
    font-size: 12px;
    gap: 6px;
  }

  .kill-filter-form {
    padding: 4px 10px 0;
  }

  .kill-filter-field {
    padding: 4px 8px;
  }

  .kill-searches-scroll,
  .kill-log-scroll {
    max-height: 140px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    margin: 4px 10px 8px;
    border: 1px solid #1f1f1f;
  }

  .kill-search-table th,
  .kill-search-table td,
  .kill-attack-log th,
  .kill-attack-log td {
    padding: 4px 6px;
    font-size: 11px;
  }

  .kill-note {
    font-size: 10px;
  }

  .kill-secondary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .kill-calc-form {
    gap: 6px;
    padding: 6px 10px 8px;
    align-items: stretch;
    flex-direction: column;
  }

  .kill-calc-user {
    min-width: 0;
    width: 100%;
  }

  .kill-calc-form .crime-btn {
    width: 100%;
  }

  .kill-help {
    padding: 4px 10px 0;
    font-size: 11px;
  }

  .kill-empty {
    padding: 4px 10px 8px;
    font-size: 11px;
  }

  .kill-log-when {
    font-size: 10px;
  }
}

@media (max-width: 1100px) and (min-width: 520px) {
  .kill-secondary {
    grid-template-columns: 1fr 1fr;
  }

  .kill-panel-log {
    grid-column: 1 / -1;
  }
}

/* Game Statistics board */
.gs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
  align-items: start;
}

.gs-grid > .panel {
  margin: 0;
  min-width: 0;
}

.gs-table {
  margin: 0;
}

.gs-table td:last-child {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.car-stat-exclusive { color: #ff4d6d; font-weight: 600; }
.car-stat-custom { color: #5eead4; font-weight: 600; }
.car-stat-legendary { color: #e6c35c; font-weight: 600; }
.car-stat-super-rare { color: #c084fc; font-weight: 600; }
.car-stat-rare { color: #60a5fa; font-weight: 600; }
.car-stat-uncommon { color: #86efac; font-weight: 600; }

.gs-rank {
  font-style: italic;
  color: #d8d0c4;
}

.gs-killer-unknown {
  color: #ef4444;
  font-weight: 600;
}

/* Referral + Helpdesk */
.ref-shop-table .ref-shop-action {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.ref-shop-table .crime-btn {
  padding: 4px 12px;
  font-size: 12px;
}

.hd-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 16px;
}

.hd-msg {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  padding: 10px 12px;
}

.hd-msg-staff {
  border-color: rgba(180, 140, 60, 0.35);
  background: rgba(80, 55, 15, 0.25);
}

.hd-msg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 12px;
  color: #9a8f84;
}

.hd-msg-meta b {
  color: #e8e0d4;
}

.hd-msg-body {
  white-space: pre-wrap;
  line-height: 1.45;
  color: #d8d0c4;
}

.hd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.hd-open-form .field,
.hd-reply-form .field {
  display: block;
  margin-bottom: 10px;
}

.hd-open-form .field > span,
.hd-reply-form .field > span {
  display: block;
  margin-bottom: 5px;
  color: #a8a098;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hd-open-form textarea,
.hd-reply-form textarea,
.hd-open-form input[type="text"],
.hd-open-form select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #2e2e2e;
  background: #0a0a0a;
  color: #f0ebe3;
  font: 500 13px var(--font);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.hd-open-form select {
  height: 38px;
  padding-right: 28px;
  background-image: linear-gradient(45deg, transparent 50%, #8a8278 50%),
    linear-gradient(135deg, #8a8278 50%, transparent 50%);
  background-position: calc(100% - 14px) 16px, calc(100% - 9px) 16px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.hd-open-form textarea,
.hd-reply-form textarea {
  min-height: 110px;
  line-height: 1.45;
  resize: vertical;
}

.hd-open-form input[type="text"]:focus,
.hd-open-form select:focus,
.hd-open-form textarea:focus,
.hd-reply-form textarea:focus {
  border-color: #4a4a4a;
  box-shadow: inset 0 0 0 1px #333;
}

.hd-open-form textarea::placeholder,
.hd-reply-form textarea::placeholder {
  color: #6a635c;
}

.crime-meta a.on {
  color: #e6c35c;
  font-weight: 600;
}

/* Game Forum */
.forum-tabs {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.forum-tabs a {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid #333;
  background: #0a0a0a;
  color: #c8c0b6;
  font: 600 12px var(--font);
  text-decoration: none;
}

.forum-tabs a:hover {
  border-color: #555;
  color: #f0ebe3;
}

.forum-tabs a.on {
  border-color: #d41818;
  color: #f0ebe3;
  background: #140808;
}

.forum-board-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px 6px;
  border-bottom: 1px solid #2a2a2a;
}

.forum-board-head h2 {
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  color: #d41818;
  font: 700 11px var(--font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.forum-slots {
  color: #8a8278;
  font-size: 12px;
}

.forum-list-wrap {
  position: relative;
  z-index: 2;
  overflow-x: auto;
}

.forum-list {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.forum-list th,
.forum-list td {
  padding: 8px 12px;
  border-bottom: 1px solid #1c1c1c;
  text-align: left;
  vertical-align: middle;
}

.forum-list thead th {
  color: #8a8278;
  font: 700 11px var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.02);
}

.forum-list tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.forum-col-topic {
  width: auto;
}

.forum-col-poster {
  width: 22%;
  white-space: nowrap;
}

.forum-col-replies {
  width: 10%;
  text-align: right !important;
  white-space: nowrap;
  color: #d8d0c4;
  font-variant-numeric: tabular-nums;
}

.forum-tag {
  display: inline-block;
  margin: 0 5px 0 0;
  padding: 1px 6px;
  font: 700 10px var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  border: 0;
}

.forum-tag-important {
  background: #b01818;
  color: #fff;
}

.forum-tag-sticky {
  background: #5a5040;
  color: #f0ebe3;
}

.forum-tag-locked {
  background: #3a3a3a;
  color: #d0c8bc;
}

.forum-topic-link {
  color: #e8e2d8;
  font-weight: 600;
  text-decoration: none;
}

.forum-topic-link:hover {
  text-decoration: underline;
}

.forum-topic-link.is-sticky {
  color: #f0ebe3;
}

.forum-topic-link.is-important {
  color: #f0ebe3;
}

.forum-poster-link {
  color: #d8d0c4;
  text-decoration: none;
  font-weight: 600;
}

.forum-poster-link:hover {
  color: #f0ebe3;
  text-decoration: underline;
}

.forum-compose {
  padding-top: 4px;
}

.forum-back {
  position: relative;
  z-index: 2;
  margin: 0 0 10px;
  padding: 0 2px;
}

.forum-back a {
  color: #c8c0b6;
  text-decoration: none;
  font-size: 13px;
}

.forum-back a:hover {
  color: #f0ebe3;
  text-decoration: underline;
}

.forum-topic-panel > h2,
.forum-comments-panel > h2 {
  display: none;
}

.forum-topic-head {
  position: relative;
  z-index: 2;
  padding: 12px 14px 8px;
  border-bottom: 1px solid #222;
}

.forum-topic-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.forum-topic-title {
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  font: 700 18px/1.25 var(--font);
  letter-spacing: 0.02em;
  text-transform: none;
  color: #f0ebe3;
  text-shadow: none;
}

.forum-topic-by {
  margin: 6px 0 0;
  color: #9a8f84;
  font-size: 13px;
}

.forum-topic-by a {
  color: #e8e2d8;
  font-weight: 600;
  text-decoration: none;
}

.forum-topic-by a:hover {
  color: #f0ebe3;
  text-decoration: underline;
}

.forum-topic-meta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid #1c1c1c;
  background: rgba(255, 255, 255, 0.02);
  color: #8a8278;
  font-size: 12px;
}

.forum-reply-link {
  color: #c8c0b6;
  text-decoration: none;
  font-weight: 600;
}

.forum-reply-link:hover {
  color: #f0ebe3;
  text-decoration: underline;
}

.forum-locked-note {
  color: #a06060;
  font-weight: 600;
}

.forum-topic-body {
  position: relative;
  z-index: 2;
  padding: 14px;
  color: #e8e2d8;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 4.5em;
}

.forum-comments-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #2a2a2a;
  color: #b8b0a6;
  font-size: 13px;
}

.forum-comments-count::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 12px;
  margin-right: 8px;
  background: #d41818;
  vertical-align: -1px;
}

.forum-pager-inline a {
  margin-left: 8px;
  color: #c8c0b6;
}

.forum-empty-comments {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 16px 14px;
  color: #7a7268;
  font-size: 13px;
}

.forum-comments {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
}

.forum-comment {
  border: 1px solid #2a2a2a;
  background: #0a0a0a;
}

.forum-comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border-bottom: 1px solid #1c1c1c;
  background: rgba(255, 255, 255, 0.02);
}

.forum-comment-who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.forum-comment-user {
  color: #e8e2d8;
  font-weight: 700;
  text-decoration: none;
}

.forum-comment-user:hover {
  color: #f0ebe3;
  text-decoration: underline;
}

.forum-comment-time {
  color: #7a7268;
  font-size: 12px;
}

.forum-comment-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.forum-comment-body {
  padding: 12px 10px 14px;
  color: #d8d0c4;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.forum-reply-box {
  position: relative;
  z-index: 2;
  padding: 12px 14px 14px;
  border-top: 1px solid #2a2a2a;
}

.forum-reply-box h3 {
  margin: 0 0 8px;
  color: #d41818;
  font: 700 11px var(--font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.forum-reply-form {
  padding: 0;
}

.forum-reply-form textarea {
  margin-bottom: 10px;
}

.forum-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 10px 6px;
  border-bottom: 1px solid #2a2a2a;
}

.forum-toolbar h2 {
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.forum-toolbar .crime-btn {
  padding: 5px 12px;
  font-size: 12px;
  text-decoration: none;
}

.forum-table td:nth-child(3) {
  text-align: center;
  white-space: nowrap;
  width: 1%;
}

.forum-table td:last-child {
  white-space: nowrap;
  color: #b8b0a6;
  font-size: 12px;
}

.forum-form {
  padding: 10px 12px 12px;
}

.forum-form .field {
  display: block;
  margin-bottom: 10px;
}

.forum-form .field > span {
  display: block;
  margin-bottom: 5px;
  color: #a8a098;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.forum-form input[type="text"],
.forum-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #2e2e2e;
  background: #0a0a0a;
  color: #f0ebe3;
  font: 500 13px var(--font);
  outline: none;
}

.forum-form textarea {
  min-height: 90px;
  line-height: 1.45;
  resize: vertical;
}

.forum-form input[type="text"]:focus,
.forum-form textarea:focus {
  border-color: #4a4a4a;
  box-shadow: inset 0 0 0 1px #333;
}

.forum-inline-form {
  display: inline;
  margin: 0;
}

.forum-del-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: #a06060;
  font: 600 11px var(--font);
  cursor: pointer;
  text-decoration: underline;
}

.forum-del-btn:hover {
  color: #ef4444;
}

.forum-pager {
  padding: 0 12px 12px;
}

.forum-pager a {
  margin: 0 6px;
}

.muted {
  color: var(--layout-muted, #6a6560);
  font-size: 11px;
}

.forum-flag {
  display: inline-block;
  margin-right: 2px;
  padding: 1px 5px;
  border: 1px solid #444;
  font: 700 9px var(--font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

.forum-flag-sticky {
  border-color: #4a5a28;
  background: #243018;
  color: #c8d8a0;
}

.forum-flag-important {
  border-color: #6a4020;
  background: #3a2010;
  color: #f0c090;
}

.forum-flag-locked {
  border-color: #5a3030;
  background: #2a1515;
  color: #e0b0b0;
}

.forum-row-sticky td:first-child,
.forum-row-important td:first-child {
  font-weight: 600;
}

.forum-mod-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 10px 14px 12px;
  border-top: 1px solid #1c1c1c;
}

.forum-mod-form {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.forum-mod-form label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #a8a098;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.forum-mod-form select {
  height: 32px;
  padding: 0 28px 0 8px;
  border: 1px solid #2e2e2e;
  background: #0a0a0a;
  color: #f0ebe3;
  font: 500 12px var(--font);
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #8a8278 50%),
    linear-gradient(135deg, #8a8278 50%, transparent 50%);
  background-position: calc(100% - 12px) 13px, calc(100% - 7px) 13px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.forum-mod-form .crime-btn,
.forum-mod-form .crime-btn-alt {
  padding: 5px 10px;
  font-size: 12px;
}

/* ?? FAQ ?? */
.faq-welcome {
  color: #f0ebe3;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.faq-steps {
  margin: 0;
  padding: 0 12px 12px 1.75rem;
  color: var(--layout-text, #ddd4c8);
  line-height: 1.55;
  font-size: 13px;
}
.faq-steps li {
  margin-bottom: 0.45rem;
}
.faq-steps li:last-child {
  margin-bottom: 0;
}

.faq-table-wrap {
  position: relative;
  z-index: 2;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 4px;
  padding: 0 4px 8px;
}

.faq-table th:first-child,
.faq-table td:first-child {
  width: 2.5rem;
  color: #8a8278;
  font-variant-numeric: tabular-nums;
}

.faq-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.faq-cars th:nth-child(4),
.faq-cars td:nth-child(4),
.faq-cars th:nth-child(5),
.faq-cars td:nth-child(5) {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .faq-cars th:nth-child(4),
  .faq-cars td:nth-child(4) {
    display: none;
  }
}

.faq-enter-form {
  position: relative;
  z-index: 2;
  padding: 0 14px 14px;
}

.faq-enter-form .crime-btn {
  width: 100%;
  max-width: 280px;
}

/* ?? Crews ?? */
.crews-hero h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crews-summary {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 14px 14px;
}

.crews-summary div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid #2a2424;
  background: #100e0e;
}

.crews-summary span {
  color: #8a8278;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.crews-summary b {
  color: #f0ebe3;
  font-size: 15px;
}

.crews-you { color: #6ea8ff !important; }

.crews-table .crews-pick {
  width: 2rem;
  text-align: center;
}

.crews-table tr.is-selected td {
  background: #1a1414;
}

.crews-name {
  color: #f0ebe3;
  font-weight: 600;
  text-decoration: none;
}

.crews-name:hover { color: #fff; text-decoration: underline; }

.crews-staff {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 2px;
  background: #1e3a5f;
  color: #8ec5ff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  vertical-align: middle;
}

.crews-num { text-align: right; font-variant-numeric: tabular-nums; }

.crews-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.crews-dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #333;
  background: #161212;
}

.crews-dot .ico { width: 12px; height: 12px; }

.crews-dot.is-open { border-color: #2f6b3a; color: #6caf70; }
.crews-dot.is-closed { border-color: #6b2f2f; color: #e07070; }
.crews-dot.is-mine { border-color: #3a5a8a; color: #6ea8ff; }
.crews-dot.is-pending { border-color: #6b5a2f; color: #e6c35c; }
.crews-dot.is-idle { border-color: #333; color: #6a6560; }

.crews-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px 14px;
}

.crews-actions .crime-btn,
.crews-actions .crime-btn-alt,
.crews-actions .crime-btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.crime-btn-danger {
  background: #5a1212;
  border-color: #8a2a2a;
  color: #ffd0d0;
}

.crime-btn-danger:hover { background: #7a1a1a; }

.crews-create {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  padding: 0 14px 14px;
}

.crews-create .field { flex: 1 1 220px; margin: 0; }

.crews-subhead {
  position: relative;
  z-index: 2;
  margin: 16px 14px 8px;
  font-size: 13px;
  color: #c8c0b6;
}

.crews-apps {
  position: relative;
  z-index: 2;
  list-style: none;
  margin: 0;
  padding: 0 14px 14px;
}

.crews-apps li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #221c1c;
}

.crews-inline {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.crews-manage-cell {
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .crews-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}



.safe-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
@media (max-width: 900px) {
  .safe-layout {
    grid-template-columns: 1fr;
  }
}
.safe-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.safe-vault-panel {
  text-align: center;
}
.safe-jackpot-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
}
.safe-jackpot-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8d8479;
}
.safe-jackpot-amount {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: #f0ebe3;
  font-variant-numeric: tabular-nums;
}
.safe-dial-wrap {
  display: flex;
  justify-content: center;
  margin: 4px 0 18px;
}
.safe-dial-ring {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid #3a3a3a;
  background:
    radial-gradient(circle at 50% 42%, #2a1818 0%, #120c0c 55%, #080808 100%);
  box-shadow: inset 0 0 0 1px rgba(138, 48, 48, 0.25);
}
.safe-dial-ring.is-spinning {
  animation: safe-spin 0.9s ease-in-out;
}
@keyframes safe-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(720deg); }
}
.safe-dial-num {
  position: absolute;
  width: 1rem;
  margin-left: -0.5rem;
  margin-top: -0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #bdb4a8;
  text-align: center;
  line-height: 1rem;
  pointer-events: none;
}
.safe-dial-pointer {
  position: absolute;
  left: 50%;
  top: 16%;
  width: 2px;
  height: 18px;
  margin-left: -1px;
  background: #c05050;
  z-index: 2;
}
.safe-dial-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: #1a1010;
  border: 2px solid #8a3030;
  box-shadow: inset 0 0 0 5px #120c0c;
  z-index: 1;
}
.safe-guess-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.safe-spinners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.safe-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.safe-spinner-label {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8d8479;
}
.safe-spin-btn {
  width: 2.5rem;
  height: 1.35rem;
  padding: 0;
  border: 1px solid #3a3a3a;
  background: #121212;
  color: #bdb4a8;
  cursor: pointer;
  font-size: 0.6rem;
  line-height: 1;
}
.safe-spin-btn:hover:not(:disabled) {
  border-color: #8a3030;
  color: #e8a0a0;
}
.safe-spin-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.safe-dial {
  width: 2.5rem;
  height: 2.6rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f0ebe3;
  background: #0a0a0a;
  border: 1px solid #3a3a3a;
  border-radius: 0;
}
.safe-dial:focus {
  outline: none;
  border-color: #8a3030;
  box-shadow: 0 0 0 1px rgba(212, 16, 16, 0.35);
}
.safe-skip-anim {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #8d8479;
  cursor: pointer;
  align-self: flex-end;
}
.safe-guess-btn {
  min-width: 11rem;
}
.safe-skip-form {
  margin-top: 10px;
}
.safe-info-list {
  margin: 0 0 12px;
  padding-left: 1.1rem;
  color: #c8c0b6;
  font-size: 13px;
  line-height: 1.45;
}
.safe-info-list li {
  margin-bottom: 5px;
}
.safe-stats {
  display: grid;
  gap: 0;
  margin: 0;
}
.safe-stats > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid #1a1a1a;
  font-size: 12px;
}
.safe-stats dt {
  margin: 0;
  color: #8d8479;
}
.safe-stats dd {
  margin: 0;
  color: #f0ebe3;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.safe-stats a {
  color: #d8cdc0;
  text-decoration: underline;
}
.safe-clues {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.safe-clues li {
  padding: 9px 10px;
  border-top: 1px solid #1a1a1a;
  text-align: left;
}
.safe-clues li:first-child {
  border-top: 0;
  padding-top: 2px;
}
.safe-clues li.is-open .safe-clue-tag {
  color: #c05050;
}
.safe-clues li.is-locked {
  opacity: 0.65;
}
.safe-clue-tag {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8d8479;
  margin-bottom: 3px;
}
.safe-clue-text {
  color: #d8d0c4;
  font-size: 13px;
}
.safe-clue-text.muted {
  color: #6a6560;
}

.poker-paytable td:last-child,
.poker-paytable th:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.poker-hand {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 16px;
}
.poker-card-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
  cursor: pointer;
}
.poker-card-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.poker-card-pick .bj-card {
  min-width: 3.2rem;
  justify-content: center;
}
.poker-card-pick:has(input:checked) .bj-card {
  border-color: #8a3030;
  box-shadow: 0 0 0 1px rgba(212, 16, 16, 0.45);
}
.poker-hold-label {
  color: #8d8479;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.poker-card-pick:has(input:checked) .poker-hold-label {
  color: #e8a0a0;
}
.poker-outcome {
  margin: 0 0 12px;
  color: #c8c0b6;
}
.poker-outcome.ok {
  color: #6caf70;
}
.poker-card-pick.is-held .bj-card {
  border-color: #8a3030;
  box-shadow: 0 0 0 1px rgba(212, 16, 16, 0.45);
}
.poker-card-pick.is-held .poker-hold-label {
  color: #e8a0a0;
}

/* ?? Edit Layout ?? */
.layout-table th,
.layout-table td {
  vertical-align: middle;
}
.layout-swatch-cell {
  width: 3.5rem;
}
.layout-color {
  width: 2.4rem;
  height: 2rem;
  padding: 0;
  border: 1px solid #2e2e2e;
  background: transparent;
  cursor: pointer;
}
.layout-hex {
  width: 6.5rem;
  max-width: 100%;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.layout-default-cell {
  white-space: nowrap;
  font-family: ui-monospace, monospace;
  font-size: 11px;
}
.layout-default-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin: 0;
  padding: 2px 6px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: var(--layout-muted, #8d8479);
  font: inherit;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  cursor: pointer;
}
.layout-default-btn:hover {
  border-color: var(--layout-panel-border, #2e2e2e);
  color: var(--layout-text, #ddd4c8);
  background: rgba(255, 255, 255, 0.04);
}
.layout-default-swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  vertical-align: -2px;
  border: 1px solid #3a3a3a;
}
.layout-actions {
  margin-top: 12px;
}

/* ?? Hitlist ?? */
.hitlist-post-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}
.hitlist-table td.hitlist-actions {
  white-space: nowrap;
  text-align: right;
}
.hitlist-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.hitlist-cancel-form {
  display: inline;
  margin: 0;
}
.hitlist-cancel-form .crime-btn {
  min-width: 0;
  height: 22px;
  padding: 0 8px;
  font-size: 10px;
}


/* ?? Forum games ?? */
.forum-game-box {
  margin: 12px 10px;
  padding: 10px;
  border: 1px solid #2e2e2e;
  background: rgba(0, 0, 0, 0.25);
}
.forum-game-title {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d41818;
}
.forum-game-status {
  margin-left: 8px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #8d8479;
}
.forum-game-status-open { color: #4caf70; }
.forum-game-status-finished { color: #c9a44c; }
.forum-game-status-cancelled { color: #8d8479; }
.forum-game-result {
  margin: 8px 0 0;
  padding: 8px;
  white-space: pre-wrap;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: #c8c0b6;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
}
.forum-game-join-form,
.forum-game-cancel-form,
.forum-game-host-form {
  margin-top: 10px;
}
.forum-game-table {
  margin-top: 8px;
}

/* ?? Forum games ?? */
.forum-game-board {
  margin: 14px 10px 16px;
  padding: 22px 16px 18px;
  text-align: center;
  background: #0a0a0a;
  border: 1px solid #222;
}
.forum-game-board-title {
  margin: 0 0 6px;
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #e8a0b8;
}
.forum-game-board-sub {
  margin: 0 0 16px;
  font-size: 12px;
  color: #8d8479;
}
.forum-game-board-sub b {
  color: #e8d0c0;
}
.forum-game-seats {
  list-style: none;
  margin: 0 auto 14px;
  padding: 0;
  max-width: 18rem;
  text-align: center;
}
.forum-game-seat {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35em;
  margin: 0.22em 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
}
.forum-game-seat-num {
  font-variant-numeric: tabular-nums;
}
.forum-game-seat-name {
  text-decoration: none;
}
.forum-game-seat-name:hover {
  text-decoration: underline;
}
.forum-game-seat-empty {
  color: #6a6560;
  font-weight: 500;
  font-size: 0.95rem;
}
.forum-game-seat-you,
.forum-game-seat-win {
  margin-left: 0.25em;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8d8479;
}
.forum-game-seat-win,
.forum-game-seat.is-winner .forum-game-seat-win {
  color: #4caf70;
}
.forum-game-seat.is-me .forum-game-seat-you {
  color: #e8d0c0;
}
.forum-game-board-open {
  margin: 0 0 10px;
  font-size: 12px;
  color: #6a6560;
}
.forum-game-board-pot {
  margin: 12px 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #e8b0a0;
}
.forum-game-board-fee {
  font-weight: 500;
  font-size: 0.85rem;
  color: #8d8479;
}
.forum-game-board-waiting {
  margin: 12px 0 0;
  font-size: 12px;
  color: #4caf70;
}
.forum-game-join-form,
.forum-game-cancel-form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.forum-game-join-form .field {
  text-align: left;
}
.forum-game-host-form {
  margin-top: 10px;
}
/* Hall of Fame */
.hof-hero {
  margin-bottom: 10px;
}
.hof-lede {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0 14px 12px;
  color: var(--layout-muted, #8d8479);
  font-size: 12px;
  line-height: 1.45;
}
.hof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18.5rem, 1fr));
  gap: clamp(8px, 1vw, 12px);
  margin-bottom: 10px;
}
.hof-board {
  margin-bottom: 0;
  padding-bottom: 4px;
}
.hof-board-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 2px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid #1a1a1a;
}
.hof-board-head h3 {
  margin: 0;
  color: var(--layout-heading, #d41818);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hof-board-head span {
  color: var(--layout-muted, #8d8479);
  font-size: 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.hof-empty {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 16px 12px;
  color: var(--layout-muted, #8d8479);
  font-size: 12px;
  text-align: center;
}
.hof-list {
  position: relative;
  z-index: 2;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hof-row {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 12px;
  border-top: 1px solid transparent;
  border-bottom: 1px solid #141414;
}
.hof-row:last-child {
  border-bottom: 0;
}
.hof-place {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 2px;
  color: var(--layout-muted, #8d8479);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.hof-place-1 .hof-place {
  background: rgba(201, 164, 76, 0.18);
  color: #c9a44c;
}
.hof-place-2 .hof-place {
  background: rgba(168, 168, 176, 0.14);
  color: #b8b8c0;
}
.hof-place-3 .hof-place {
  background: rgba(166, 110, 64, 0.16);
  color: #b87a48;
}
.hof-player {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.hof-player a {
  color: #e8e2d8;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hof-player a:hover {
  color: #fff;
}
.hof-meta {
  color: var(--layout-muted, #8d8479);
  font-size: 10px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hof-score {
  color: #f0ebe3;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.hof-row.hof-self {
  background: rgba(201, 164, 76, 0.07);
  box-shadow: inset 2px 0 0 #c9a44c;
}
.hof-row.hof-self .hof-player a {
  color: #c9a44c;
}
@media (max-width: 640px) {
  .hof-grid {
    grid-template-columns: 1fr;
  }
}

/* News feed */
.news-hero,
.news-compose,
.news-feed-panel {
  margin-bottom: 10px;
}
.news-lede {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0 14px 12px;
  color: var(--layout-muted, #8d8479);
  font-size: 12px;
  line-height: 1.45;
}
.news-compose-form {
  position: relative;
  z-index: 2;
  padding: 0 12px 12px;
}
.news-compose-row {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}
.news-compose-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--layout-muted, #8d8479);
  font-size: 11px;
}
.news-compose-row select,
.news-compose-row input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 9px;
  border: 1px solid #2a2a2a;
  background: var(--layout-input-bg, #0a0a0a);
  color: var(--layout-text, #ddd4c8);
  font-size: 12px;
}
.news-compose-form .crime-meta {
  margin: 8px 0 0;
}
.news-empty {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 16px 12px;
  color: var(--layout-muted, #8d8479);
  font-size: 12px;
  text-align: center;
}
.news-feed {
  position: relative;
  z-index: 2;
  list-style: none;
  margin: 0;
  padding: 0 0 6px;
}
.news-item {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-bottom: 1px solid #141414;
}
.news-item:last-child {
  border-bottom: 0;
}
.news-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 1px;
  color: var(--layout-muted, #8d8479);
}
.news-ico .ico {
  width: 14px;
  height: 14px;
}
.news-body {
  min-width: 0;
}
.news-text {
  margin: 0;
  color: #e8e2d8;
  font-size: 13px;
  line-height: 1.4;
}
.news-text a {
  color: var(--layout-link, #c9a44c);
  font-weight: 600;
  text-decoration: none;
}
.news-text a:hover {
  color: #fff;
  text-decoration: underline;
}
.news-tag {
  display: inline-block;
  margin-top: 3px;
  color: var(--layout-muted, #8d8479);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.news-when {
  color: var(--layout-muted, #8d8479);
  font-size: 11px;
  white-space: nowrap;
  padding-top: 2px;
}
.news-kind-announce .news-ico,
.news-kind-page_added .news-ico,
.news-kind-page_updated .news-ico {
  color: var(--layout-heading, #d41818);
}
.news-kind-rank_up .news-ico,
.news-kind-prestige .news-ico {
  color: #c9a44c;
}
.news-kind-kill .news-ico,
.news-kind-hitlist .news-ico {
  color: #c06060;
}
@media (max-width: 720px) {
  .news-compose-row {
    grid-template-columns: 1fr;
  }
  .news-item {
    grid-template-columns: 1.4rem minmax(0, 1fr);
  }
  .news-when {
    grid-column: 2;
    padding-top: 0;
  }
}

/* Attempts */
.attempts-block {
  margin-bottom: 10px;
}
.attempts-heading {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid #1a1a1a;
  background: rgba(20, 16, 16, 0.85);
  color: #e8e2d8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}
.attempts-empty {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 14px 12px;
  color: var(--layout-muted, #8d8479);
  font-size: 12px;
  text-align: center;
}
.attempts-log {
  position: relative;
  z-index: 2;
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
}
.attempts-log li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid #141414;
}
.attempts-log li:last-child {
  border-bottom: 0;
}
.attempts-log a {
  color: #e8e2d8;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.attempts-log a:hover {
  color: #fff;
  text-decoration: underline;
}
.attempts-log time {
  color: var(--layout-muted, #8d8479);
  font-size: 11px;
  white-space: nowrap;
}

/* Settings / bug report */
.settings-form {
  position: relative;
  z-index: 2;
  padding: 0 12px 12px;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 10px 12px;
  margin-bottom: 10px;
}
.settings-grid-stack {
  grid-template-columns: 1fr;
}
.settings-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--layout-muted, #8d8479);
  font-size: 11px;
}
.settings-form input[type="password"],
.settings-form input[type="email"],
.settings-form input[type="text"],
.settings-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 9px;
  border: 1px solid #2a2a2a;
  background: var(--layout-input-bg, #0a0a0a);
  color: var(--layout-text, #ddd4c8);
  font: inherit;
  font-size: 12px;
}
.settings-form textarea {
  min-height: 8rem;
  resize: vertical;
  line-height: 1.4;
}
.settings-actions {
  display: flex;
  gap: 8px;
}
.settings-links {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0;
  padding: 0 14px 12px;
}
.settings-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--layout-link, #c9a44c);
  text-decoration: none;
}
.settings-links a:hover {
  color: #fff;
  text-decoration: underline;
}
.settings-links .ico {
  width: 14px;
  height: 14px;
}

.game-log-detail code {
  display: inline-block;
  max-width: 18rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
  color: var(--layout-muted, #8d8479);
}
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 10px 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1a1208;
  background: #e0a040;
  border-bottom: 2px solid #a86a18;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}
body.click-guard-locked {
  cursor: not-allowed;
}
body.click-guard-locked .stage,
body.click-guard-locked .menu {
  opacity: 0.72;
}

/* Sports betting */
.sports-hero {
  position: relative;
  overflow: hidden;
  min-height: 11rem;
  border: 0;
  background:
    radial-gradient(ellipse 90% 70% at 20% 10%, rgba(46, 90, 52, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 60% at 90% 80%, rgba(20, 40, 24, 0.5), transparent 50%),
    linear-gradient(165deg, #0c1410 0%, #121a14 45%, #0a0e0b 100%);
}
.sports-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 11px,
      rgba(255, 255, 255, 0.015) 11px,
      rgba(255, 255, 255, 0.015) 12px
    );
  pointer-events: none;
}
.sports-hero-inner {
  position: relative;
  z-index: 1;
  padding: 1.75rem 1.25rem 1.5rem;
  max-width: 36rem;
}
.sports-brand {
  margin: 0 0 0.35rem;
  font-family: Cinzel, "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #e8efe6;
  text-transform: uppercase;
}
.sports-headline {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  font-style: italic;
  color: #9db89a;
}
.sports-tag {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  color: #7a8f78;
  max-width: 22rem;
}
.sports-board-head {
  position: relative;
  z-index: 2;
  padding: 0 12px 8px;
}
.sports-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-top: 0.65rem;
}
.sports-tabs a {
  color: var(--layout-muted, #8d8479);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.sports-tabs a:hover,
.sports-tabs a.on {
  color: #c8e0c4;
  border-bottom-color: #5a8a58;
}
.sports-matches {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 4px 8px;
}
.sports-match {
  padding: 0.85rem 0.65rem;
  border-top: 1px solid rgba(90, 120, 88, 0.18);
  animation: sports-row-in 0.45s ease both;
  animation-delay: calc(var(--i, 0) * 0.04s);
}
@keyframes sports-row-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.sports-match-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.4rem;
  font-size: 11px;
  color: var(--layout-muted, #8d8479);
}
.sports-league {
  color: #8fad8a;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.sports-live {
  color: #f0c070;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
}
.sports-match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.65rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--layout-text, #ddd4c8);
}
.sports-match-teams > span:first-child {
  text-align: right;
}
.sports-match-teams > span:last-child {
  text-align: left;
}
.sports-vs {
  font-family: DM Sans, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #6a7a68;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sports-odds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.sports-odd {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0.55rem 0.35rem;
  text-decoration: none;
  color: inherit;
  background: rgba(12, 22, 14, 0.65);
  border: 1px solid rgba(90, 120, 88, 0.28);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}
.sports-odd:hover:not(.disabled) {
  background: rgba(28, 48, 32, 0.85);
  border-color: rgba(120, 160, 118, 0.55);
  transform: translateY(-1px);
}
.sports-odd.on {
  background: rgba(40, 72, 44, 0.9);
  border-color: #7ab078;
}
.sports-odd:active:not(.disabled) {
  transform: scale(0.98);
}
.sports-odd.disabled {
  opacity: 0.55;
  cursor: default;
}
.sports-odd-label {
  font-size: 10px;
  color: #8a9a86;
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sports-odd-price {
  font-family: Cinzel, serif;
  font-size: 1rem;
  font-weight: 700;
  color: #e4efe2;
  letter-spacing: 0.02em;
}
.sports-slip {
  border-color: rgba(90, 140, 90, 0.35);
}
.sports-slip-note {
  display: block;
  margin-top: 0.25rem;
  font-size: 11px;
  opacity: 0.75;
}
.sports-slip-form {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 14px;
  padding: 0 12px 12px;
}
.sports-slip-form .field {
  flex: 1 1 8rem;
  max-width: 12rem;
}
.sports-slip-form .field span {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  color: var(--layout-muted, #8d8479);
}
.sports-slip-form input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 9px;
  border: 1px solid #2a2a2a;
  background: var(--layout-input-bg, #0a0a0a);
  color: var(--layout-text, #ddd4c8);
  font: inherit;
  font-size: 13px;
}
.sports-return {
  flex: 1 1 100%;
  margin: 0;
}
.sports-slips-sub {
  position: relative;
  z-index: 2;
  margin: 0.5rem 12px 0.35rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8fad8a;
}
.sports-slip-list {
  position: relative;
  z-index: 2;
  list-style: none;
  margin: 0;
  padding: 0 8px 10px;
}
.sports-slip-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 0.65rem 0.4rem;
  border-top: 1px solid rgba(90, 120, 88, 0.15);
}
.sports-slip-list li > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sports-slip-money {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  white-space: nowrap;
  font-size: 12px;
}
.sports-to-win {
  color: #8fad8a;
  font-size: 11px;
}
.sports-won {
  color: #7ec87a;
  font-weight: 600;
}
.sports-lost {
  color: #c07070;
}
@media (max-width: 560px) {
  .sports-match-teams {
    font-size: 1rem;
  }
  .sports-odd-price {
    font-size: 0.9rem;
  }
}

/* Staff books */
.sports-staff .crime-intro {
  position: relative;
  z-index: 2;
  padding: 0 12px 8px;
}
.sports-staff-form {
  position: relative;
  z-index: 2;
  padding: 0 12px 14px;
}
.sports-staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 10px 12px;
  margin-bottom: 12px;
}
.sports-staff-form label,
.sports-staff-inline label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--layout-muted, #8d8479);
}
.sports-staff-form input,
.sports-staff-form select,
.sports-staff-inline input[type="text"],
.sports-staff-inline input[type="number"] {
  box-sizing: border-box;
  padding: 7px 9px;
  border: 1px solid #2a2a2a;
  background: var(--layout-input-bg, #0a0a0a);
  color: var(--layout-text, #ddd4c8);
  font: inherit;
  font-size: 12px;
}
.sports-staff-list {
  position: relative;
  z-index: 2;
  padding: 0 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sports-staff-row {
  padding: 0.85rem 0.4rem;
  border-top: 1px solid rgba(90, 120, 88, 0.18);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sports-staff-row-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sports-staff-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.sports-staff-inline input[type="text"] {
  width: 4.5rem;
}
.sports-staff-finish input[type="number"] {
  width: 3.25rem;
}

