:root {
  color-scheme: dark;
  --bg: #0a0d0f;
  --top: #111111;
  --panel: #182128;
  --panel-2: #202a32;
  --panel-3: #101619;
  --line: rgba(122, 154, 174, 0.22);
  --text: #ecf0f2;
  --muted: #a7b1b8;
  --blue: #19a9f2;
  --cyan: #32c4ff;
  --green: #19cf95;
  --gold: #f1b43b;
  --red: #d92f33;
  --orange: #ff8a00;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: #d7d7d7;
  color: var(--text);
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  letter-spacing: 0;
}

button, input { font: inherit; }
button { cursor: pointer; }

.loading-screen {
  align-items: center;
  background: var(--bg);
  color: var(--gold);
  display: flex;
  font-size: 1.2rem;
  font-weight: 900;
  justify-content: center;
  min-height: 100vh;
}

.auth-page {
  align-items: center;
  background: radial-gradient(circle at 20% 10%, rgba(25, 169, 242, 0.16), transparent 28%), linear-gradient(135deg, #080b0d, #172129 58%, #0a0d0f);
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1.25fr) 430px;
  min-height: 100vh;
  padding: 42px;
}

.brand { align-items: center; display: flex; gap: 12px; }
.brand-logo { display: block; height: 82px; object-fit: contain; width: min(360px, 52vw); }
.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--gold), #7d5412);
  border-radius: 6px;
  color: #120f08;
  display: flex;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  width: 58px;
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); }
.auth-hero h1 { font-size: clamp(2.5rem, 7vw, 6rem); line-height: 0.95; margin: 28px 0 16px; max-width: 920px; }
.auth-hero p { color: var(--muted); font-size: 1.12rem; max-width: 680px; }
.auth-card {
  background: rgba(16, 22, 25, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.4);
  display: grid;
  gap: 14px;
  padding: 22px;
}
.auth-card label { color: var(--muted); display: grid; gap: 7px; font-weight: 900; text-transform: uppercase; }
input {
  background: #0c1013;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  min-height: 42px;
  padding: 0 12px;
  width: 100%;
}
.tab-row { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
button {
  background: linear-gradient(180deg, #30363a, #171b1e);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--text);
  font-weight: 900;
  min-height: 40px;
  padding: 0 14px;
  text-transform: uppercase;
}
button.active, button:hover { border-color: rgba(50, 196, 255, 0.5); color: white; }
button:disabled { cursor: not-allowed; filter: grayscale(1); opacity: 0.45; }
button.secondary { color: var(--muted); }
.error-text { background: rgba(217, 47, 51, 0.16); border: 1px solid rgba(217, 47, 51, 0.4); border-radius: 6px; color: #ff9898; margin: 0; padding: 10px; }

.game-shell { background: #d8d8d8; min-height: 100vh; padding: 0 6px 18px; }
.game-topbar {
  align-items: center;
  background: var(--top);
  border: 1px solid #333;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 230px 1fr auto auto auto;
  min-height: 52px;
  padding: 6px 10px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.logo-button { background: transparent; border: 0; min-height: 38px; padding: 0; }
.logo-button span { color: var(--gold); font-size: 0.98rem; font-weight: 900; }
.search-box { background: #050607; border: 1px solid #444; border-radius: 6px; color: #8d969c; padding: 9px 12px; }
.top-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.top-nav button, .power-button { align-items: center; background: transparent; border: 0; display: inline-flex; gap: 4px; min-height: 34px; padding: 0 10px; }
.top-nav button.active { color: var(--gold); }
.top-nav button.vip-nav { color: #f4c54a; text-shadow: 0 0 8px rgba(244, 197, 74, 0.35); }
.top-nav button.vip-nav.active,
.top-nav button.vip-nav:hover { color: #ffd976; }
.top-nav-icon { height: 15px; image-rendering: pixelated; width: 15px; }
.online-counter { align-items: center; color: #7bbdff; display: inline-flex; font-size: 0.76rem; font-weight: 900; gap: 5px; white-space: nowrap; }
.online-counter img { height: 15px; image-rendering: pixelated; width: 15px; }
.round-clock { color: #f2f2f2; font-weight: 900; white-space: nowrap; }
.power-button { color: #ff7777; }

.player-strip {
  align-items: center;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent 22%), #24282b;
  border: 1px solid #4c4c4c;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.35);
  display: grid;
  gap: 12px;
  grid-template-columns: 76px minmax(230px, 1.1fr) 180px minmax(320px, 1.4fr) 160px auto;
  padding: 10px 14px;
}
.avatar-card { align-items: center; display: flex; justify-content: center; }
.avatar-face {
  align-items: center;
  background: linear-gradient(145deg, #313d35, #111615);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  color: var(--gold);
  display: flex;
  font-size: 1.15rem;
  font-weight: 900;
  height: 62px;
  justify-content: center;
  width: 62px;
}
.bars-card { display: grid; gap: 5px; }
.bar-row { align-items: center; display: grid; gap: 7px; grid-template-columns: 56px 1fr 70px; }
.bar-row span, .bar-row strong { color: #e8eef2; font-size: 0.82rem; font-weight: 900; }
.bar { background: #070808; border-radius: 3px; height: 14px; overflow: hidden; }
.bar i { display: block; height: 100%; }
.bar.red i { background: linear-gradient(90deg, #9b1515, #ed3030); }
.bar.blue i { background: linear-gradient(90deg, #0044cc, #0088ff); }
.bar.dark i { background: linear-gradient(90deg, #555, #999); }
.identity-card strong { display: block; font-size: 1.05rem; }
.identity-card span, .identity-card small { color: var(--muted); display: block; font-weight: 900; }
.stats-grid { display: grid; gap: 6px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mini-stat { background: rgba(0,0,0,0.22); border: 1px solid rgba(255,255,255,0.08); border-radius: 6px; padding: 7px 9px; }
.mini-stat span { color: var(--muted); display: block; font-size: 0.75rem; font-weight: 900; text-transform: uppercase; }
.mini-stat strong { color: var(--text); display: block; margin-top: 2px; }
.mini-stat.gold strong { color: var(--gold); }
.wallet-card { display: grid; gap: 2px; text-align: right; }
.wallet-card strong { color: #5cff8d; }
.wallet-card span { color: var(--muted); font-size: 0.75rem; font-weight: 900; }
.status-alert { border: 1px solid rgba(241,180,59,0.5); border-radius: 6px; color: var(--gold); font-weight: 900; padding: 10px; }

.city-strip {
  background: #1a1d1f;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(112px, 150px));
  overflow-x: auto;
  padding: 8px 14px;
}
.city-tile {
  align-items: center;
  aspect-ratio: 1.75;
  background: #202428;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  display: grid;
  justify-items: center;
  min-width: 112px;
  overflow: hidden;
  position: relative;
}
.city-tile::before { content: ""; inset: 0; opacity: 0.65; position: absolute; }
.tile-1::before { background: linear-gradient(135deg, #44215f, #0b1b2c); }
.tile-2::before { background: linear-gradient(135deg, #26333a, #111); }
.tile-3::before { background: linear-gradient(135deg, #4a4a4a, #141414); }
.tile-4::before { background: linear-gradient(135deg, #163347, #16191d); }
.tile-5::before { background: linear-gradient(135deg, #52401b, #101316); }
.tile-6::before { background: linear-gradient(135deg, #123e32, #101316); }
.tile-7::before { background: linear-gradient(135deg, #2f2f2f, #060606); }
.tile-8::before { background: linear-gradient(135deg, #493011, #111); }
.city-tile span, .city-tile strong { position: relative; z-index: 1; }
.city-tile span { color: rgba(255,255,255,0.55); font-size: 1.15rem; font-weight: 900; }
.city-tile strong { color: var(--orange); font-size: 0.82rem; text-shadow: 0 2px 4px black; text-transform: uppercase; }

.game-content { background: #11181d; border: 1px solid #2c3439; box-shadow: 0 4px 18px rgba(0,0,0,0.42); margin: 0 auto; max-width: 1820px; min-height: 70vh; }
.game-message { background: rgba(241, 180, 59, 0.12); border-bottom: 1px solid rgba(241,180,59,0.25); color: var(--gold); font-weight: 900; padding: 12px 18px; }
.paper-title { align-items: center; background: #0c0f12; border-bottom: 1px solid #26313a; display: flex; font-size: 1.35rem; font-weight: 900; gap: 12px; justify-content: center; padding: 8px 12px; text-align: center; text-shadow: 0 0 5px black; }
.paper-title img { height: 46px; object-fit: contain; width: min(260px, 38vw); }
.ticker-row { align-items: center; background: #1e252c; display: grid; gap: 10px; grid-template-columns: auto auto 1fr auto; padding: 10px 18px; }
.ticker-row span, .ticker-row button { background: #151a20; border-radius: 8px; color: #e8edf0; font-weight: 900; padding: 9px 12px; }
.ticker-row button { border: 0; color: var(--text); }
.paper-section { border: 1px solid var(--line); border-radius: 10px; margin: 12px 18px; padding: 18px; }
.paper-section h2 { color: var(--cyan); font-size: 1.35rem; margin: 0 0 14px; text-transform: uppercase; }
.events-section { background: linear-gradient(180deg, #1a303d, #151d23); }
.ranking-news { background: linear-gradient(180deg, #133129, #111b19); }
.notifications-section { background: #161d22; }
.event-grid, .news-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.event-card, .news-card, .feed-list p, .crime-card, .shop-card, .inventory-card, .bank-panel, .ranking-full, .help-list {
  background: rgba(12, 17, 20, 0.7);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.event-card { align-items: center; display: grid; gap: 14px; grid-template-columns: 110px 1fr auto; min-height: 120px; padding: 10px; }
.event-thumb { align-items: center; border-radius: 7px; color: white; display: flex; font-size: 2rem; font-weight: 900; height: 100px; justify-content: center; }
.thumb-1 { background: linear-gradient(135deg, #0b74cc, #a600a6); }
.thumb-2 { background: linear-gradient(135deg, #0b6d85, #224); }
.thumb-3 { background: linear-gradient(135deg, #f25f2c, #611); }
.thumb-4 { background: linear-gradient(135deg, #1c7a4a, #123); }
.thumb-5 { background: linear-gradient(135deg, #94651c, #19130c); }
.thumb-6 { background: linear-gradient(135deg, #44515b, #111); }
.event-card h3, .news-card h3 { color: var(--cyan); margin: 0 0 6px; text-transform: uppercase; }
.event-card p, .news-card p, .feed-list p, .help-list p { color: #d8dee2; line-height: 1.42; margin: 0; }
.chevron { color: #2486a8; font-size: 2.4rem; }
.news-card, .feed-list p, .help-list p { padding: 14px; }
.feed-list { display: grid; gap: 10px; }
.feed-list .success { color: var(--green); }
.feed-list .warning { color: var(--gold); }

.panel-page { padding: 18px; }
.narrow-page { max-width: 980px; }
.page-heading { margin-bottom: 16px; }
.page-heading h1 { color: var(--cyan); margin: 0 0 5px; text-transform: uppercase; }
.page-heading p { color: var(--muted); margin: 0; }
.crime-list, .shop-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.crime-card, .shop-card { display: grid; gap: 14px; padding: 16px; }
.crime-card.locked { opacity: 0.62; }
.crime-card h2, .shop-card h2, .inventory-card h2 { margin: 0; }
.crime-card p, .shop-card p, .inventory-card p { color: var(--muted); margin: 0; }
.tag { color: var(--gold); font-weight: 900; text-transform: uppercase; }
.crime-meta { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.crime-meta span { background: rgba(255,255,255,0.04); border-radius: 6px; color: #cbd3d7; padding: 8px; }
.shop-card strong { color: var(--green); }
.inventory-card, .bank-panel, .ranking-full, .help-list { margin-top: 14px; padding: 16px; }
.bank-values, .button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.button-row button { min-width: 140px; }
.rank-row { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 12px; grid-template-columns: 70px 1fr 120px auto; padding: 13px 0; }
.rank-row span { color: var(--gold); font-weight: 900; }
.rank-row small { color: var(--muted); }
.rank-row em { color: var(--green); font-style: normal; font-weight: 900; }
.empty-state { color: var(--muted); margin: 0; padding: 14px; }

@media (max-width: 1180px) {
  .game-topbar { grid-template-columns: auto 1fr auto; }
  .search-box { display: none; }
  .top-nav { grid-column: 1 / -1; }
  .player-strip { grid-template-columns: 70px 1fr 150px; }
  .stats-grid, .wallet-card { grid-column: span 3; }
  .city-strip { padding-inline: 12px; }
}

@media (max-width: 760px) {
  .auth-page { grid-template-columns: 1fr; padding: 18px; }
  .game-shell { padding: 0; }
  .game-topbar { position: static; }
  .player-strip { border-radius: 0; grid-template-columns: 1fr; }
  .avatar-card { display: none; }
  .stats-grid { grid-column: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wallet-card { grid-column: auto; text-align: left; }
  .event-grid, .news-grid, .ticker-row { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 82px 1fr; }
  .event-thumb { height: 78px; width: 78px; }
  .chevron { display: none; }
  .rank-row { grid-template-columns: 50px 1fr; }
  .rank-row small, .rank-row em { grid-column: 2; }
}

.underworld-page {
  background: linear-gradient(180deg, #1d1a20, #12161a);
  min-height: 680px;
}
.subworld-title {
  background: #0c0d0f;
  border-bottom: 1px solid #2d3034;
  font-size: 1.45rem;
  font-weight: 900;
  padding: 12px;
  text-align: center;
  text-transform: uppercase;
}
.subworld-tour {
  background: #3b3026;
  border: 1px solid #5a4630;
  border-radius: 8px;
  color: #dfd2c3;
  font-weight: 900;
  margin: 10px 12px;
  padding: 18px;
}
.subworld-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  padding: 34px 20px 42px;
}
.subworld-card {
  align-items: flex-end;
  aspect-ratio: 3 / 4;
  background-color: #080b10;
  background-position: center;
  background-size: cover;
  border: 2px solid #101010;
  border-radius: 18px;
  box-shadow: 0 18px 35px rgba(0,0,0,0.42), inset 0 0 0 1px rgba(255,255,255,0.07);
  display: flex;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
}
.subworld-card::before {
  content: "";
  inset: 0;
  opacity: 0.95;
  position: absolute;
}
.subworld-card::after {
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 20%, rgba(0,0,0,0.18) 48%, rgba(0,0,0,0.92) 100%);
  content: "";
  inset: 0;
  position: absolute;
}
.subworld-card > div {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 18px;
  position: relative;
  width: 100%;
  z-index: 1;
}
.subworld-card span,
.subworld-card h2 {
  color: white;
  display: block;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
  text-shadow: 0 2px 8px black;
  text-transform: uppercase;
}
.subworld-card span { font-size: 0.75rem; margin-bottom: 0; }
.subworld-card h2 { font-size: clamp(1.15rem, 1.8vw, 1.55rem); line-height: 1.05; }
.subworld-card p { color: #eaf2f8; font-size: 0.82rem; font-weight: 800; line-height: 1.25; margin: 0; max-width: 260px; text-shadow: 0 2px 7px black; }
.market-card { border-color: rgba(70,151,255,0.62); }
.casino-card { border-color: rgba(255,155,40,0.68); }
.dealer-card { border-color: rgba(40,215,137,0.68); }
.club-card { border-color: rgba(255,47,94,0.68); }
.market-card::before { background: linear-gradient(180deg, rgba(22,93,178,0.05), rgba(16,92,185,0.42)), url('/src/assets/submundo-armas.png'); background-position: center; background-size: cover; }
.casino-card::before { background: linear-gradient(180deg, rgba(178,89,10,0.03), rgba(220,119,22,0.4)), url('/src/assets/submundo-cassino.png'); background-position: center; background-size: cover; }
.dealer-card::before { background: linear-gradient(180deg, rgba(6,130,79,0.04), rgba(12,154,95,0.44)), url('/src/assets/submundo-drogas.png'); background-position: center; background-size: cover; }
.club-card::before { background: linear-gradient(180deg, rgba(175,15,65,0.04), rgba(224,20,72,0.42)), url('/src/assets/submundo-boate.png'); background-position: center; background-size: cover; }
.market-card span { color: #89c5ff; }
.casino-card span { color: #ffc06a; }
.dealer-card span { color: #62ffba; }
.club-card span { color: #ff6e95; }
.under-panel {
  background: rgba(12, 17, 20, 0.78);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 0 18px 16px;
  padding: 16px;
}
.under-panel header {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 12px;
}
.under-panel h2,
.asset-card h3 {
  color: var(--cyan);
  margin: 0;
  text-transform: uppercase;
}
.under-panel header label {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 8px;
  font-weight: 900;
  text-transform: uppercase;
}
.under-panel header input { max-width: 90px; }
.under-list,
.under-log {
  display: grid;
  gap: 10px;
}
.under-row {
  align-items: center;
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(160px, 1fr) minmax(220px, 1.1fr) auto;
  padding: 12px;
}
.under-row strong,
.asset-card span {
  color: var(--gold);
  display: block;
  text-transform: uppercase;
}
.under-row span,
.under-row em,
.asset-card p,
.asset-card em,
.under-panel p,
.under-log p {
  color: var(--muted);
  font-style: normal;
  margin: 0;
}
.under-actions {
  display: flex;
  gap: 8px;
}
.split-panel {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1.2fr);
}
.asset-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.asset-card {
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}
.asset-card button,
.under-actions button,
.split-panel button {
  min-width: 120px;
}

@media (max-width: 980px) {
  .subworld-grid { grid-template-columns: repeat(2, minmax(160px, 1fr)); padding: 24px 12px; }
  .under-row { grid-template-columns: 1fr; }
  .under-actions { flex-wrap: wrap; }
  .split-panel { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .subworld-grid { grid-template-columns: 1fr; }
  .subworld-card { aspect-ratio: 1.4; }
  .under-panel header { align-items: stretch; flex-direction: column; }
}

.gang-hero {
  align-items: center;
  background: linear-gradient(135deg, rgba(25,207,149,0.18), rgba(12,17,20,0.86));
  border: 1px solid rgba(25,207,149,0.24);
  border-radius: 10px;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr auto;
  margin-bottom: 14px;
  padding: 18px;
}
.gang-hero span,
.gang-hero h2 {
  color: var(--green);
  margin: 0;
  text-transform: uppercase;
}
.gang-hero p {
  color: var(--muted);
  margin: 8px 0 0;
}
.gang-bank {
  background: rgba(0,0,0,0.24);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 180px;
  padding: 12px;
  text-align: right;
}
.gang-bank strong,
.gang-bank small {
  display: block;
}
.gang-bank strong {
  color: var(--gold);
  font-size: 1.2rem;
}
.gang-bank small {
  color: var(--muted);
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.gang-form,
.gang-list,
.member-list,
.target-list {
  display: grid;
  gap: 10px;
}
.gang-form p,
.member-list p,
.gang-list p {
  color: var(--muted);
  margin: 0;
}
.gang-list article,
.target-row {
  align-items: center;
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1fr) auto;
  padding: 12px;
}
.gang-list article strong,
.target-row strong,
.member-list strong {
  color: var(--gold);
}
.gang-list article span,
.target-row span,
.target-row em {
  color: var(--muted);
  display: block;
  font-style: normal;
}
.pvp-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(320px, 1.25fr) minmax(280px, 0.75fr);
}
.target-row {
  grid-template-columns: minmax(180px, 1fr) auto auto;
}
.target-row button {
  min-width: 110px;
}

@media (max-width: 880px) {
  .gang-hero,
  .pvp-grid,
  .target-row,
  .gang-list article {
    grid-template-columns: 1fr;
  }
  .gang-bank {
    text-align: left;
  }
}

.subworld-card {
  cursor: pointer;
  min-height: 0;
}
.subworld-card:hover {
  filter: brightness(1.08);
  transform: translateY(-3px);
}
.market-card:hover { border-color: #69b2ff; box-shadow: 0 18px 35px rgba(0,0,0,0.42), 0 0 18px rgba(70,151,255,0.35); }
.casino-card:hover { border-color: #ffac3d; box-shadow: 0 18px 35px rgba(0,0,0,0.42), 0 0 18px rgba(255,155,40,0.34); }
.dealer-card:hover { border-color: #35e895; box-shadow: 0 18px 35px rgba(0,0,0,0.42), 0 0 18px rgba(40,215,137,0.34); }
.club-card:hover { border-color: #ff4f7b; box-shadow: 0 18px 35px rgba(0,0,0,0.42), 0 0 18px rgba(255,47,94,0.34); }
.under-page-panel {
  margin-top: 18px;
}
.under-page-panel header > div {
  display: grid;
  gap: 5px;
}
.casino-board {
  align-items: center;
  background: radial-gradient(circle at center, rgba(241,180,59,0.16), rgba(0,0,0,0.28));
  border: 1px solid rgba(241,180,59,0.25);
  border-radius: 10px;
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 180px;
  padding: 22px;
}
.casino-board strong {
  color: var(--gold);
  font-size: 2.2rem;
}
.casino-board span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.city-strip { align-items: start; }
.city-tile { min-height: 76px; }

.city-strip {
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(96px, 128px));
  padding: 6px 12px;
}
.city-tile {
  aspect-ratio: 1.9;
  min-height: 62px;
  min-width: 96px;
  border-radius: 6px;
}
.city-tile span {
  font-size: 0.82rem;
}
.city-tile strong {
  font-size: 0.72rem;
}

.detention-card {
  background: linear-gradient(135deg, rgba(217,47,51,0.14), rgba(12,17,20,0.88));
  border: 1px solid rgba(217,47,51,0.32);
  border-radius: 10px;
  display: grid;
  gap: 12px;
  padding: 18px;
}
.hospital-page .detention-card {
  background: linear-gradient(135deg, rgba(25,169,242,0.14), rgba(12,17,20,0.88));
  border-color: rgba(25,169,242,0.32);
}
.detention-card h2 {
  color: var(--gold);
  margin: 0;
  text-transform: uppercase;
}
.detention-card p,
.detention-card small {
  color: var(--muted);
  margin: 0;
}
.detention-card strong {
  color: var(--text);
  font-size: 1.4rem;
}
.detention-card button {
  max-width: 320px;
}

.vip-page .vip-status {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 16px;
}
.vip-page .vip-status button { min-height: 54px; }
.credit-grid, .vip-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.credit-card, .vip-card {
  background: linear-gradient(135deg, rgba(241,180,59,0.11), rgba(16,18,20,0.9));
  border: 1px solid rgba(241,180,59,0.24);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 16px;
}
.credit-card.featured, .vip-card:hover { border-color: rgba(241,180,59,0.72); }
.credit-card span, .vip-card h2 {
  color: var(--gold);
  margin: 0;
  text-transform: uppercase;
}
.credit-card strong, .vip-card strong { color: var(--text); }
.vip-card ul {
  color: var(--muted);
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}
.reward-line {
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  color: var(--muted);
  padding: 10px;
}

.city-strip {
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(112px, 142px));
}
.city-tile {
  isolation: isolate;
  overflow: hidden;
  padding: 0;
}
.city-tile::before {
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.78));
  opacity: 1;
  z-index: 1;
}
.city-tile img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transform: scale(1.04);
  transition: filter 160ms ease, opacity 160ms ease, transform 160ms ease;
  width: 100%;
  z-index: 0;
}
.city-tile.has-image:not(.active) img {
  filter: grayscale(1) contrast(1.08) brightness(0.58);
  opacity: 0.9;
}
.city-tile.has-image.active img,
.city-tile.has-image:hover img {
  filter: grayscale(0) contrast(1.08) brightness(1.02);
  opacity: 1;
  transform: scale(1.08);
}
.city-tile.has-image.active {
  border-color: rgba(91, 153, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(177, 89, 255, 0.7), 0 0 14px rgba(91, 153, 255, 0.22);
}
.city-tile span {
  display: none;
}
.city-tile strong {
  align-self: end;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.54));
  display: block;
  padding: 22px 8px 8px;
  width: 100%;
}

/* Topo compacto estilo jogo */
.game-topbar {
  background: linear-gradient(180deg, #1b1b1b, #090a0b);
  border-color: #565656;
  border-radius: 0;
  gap: 10px;
  grid-template-columns: 64px 220px minmax(420px, 1fr) auto auto 42px;
  min-height: 32px;
  padding: 3px 8px;
}
.logo-button {
  height: 28px;
  min-height: 28px;
  width: 54px;
}
.logo-button span {
  font-size: 0.72rem;
}
.logo-button img {
  height: 27px;
  max-width: 54px;
}
.search-box {
  background: #050607;
  border-color: #4e555c;
  border-radius: 4px;
  color: #cbd1d6;
  font-size: 0.76rem;
  height: 24px;
  padding: 5px 10px;
}
.top-nav {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
}
.top-nav button,
.power-button {
  color: #f3f4f5;
  font-size: 0.78rem;
  font-weight: 900;
  min-height: 24px;
  padding: 0 6px;
  text-transform: none;
  white-space: nowrap;
}
.top-nav button.active {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(241,180,59,0.9);
}
.top-nav button.vip-nav {
  color: #f4c54a;
  text-shadow: 0 0 8px rgba(244, 197, 74, 0.35);
}
.top-nav button.vip-nav.active,
.top-nav button.vip-nav:hover {
  color: #ffd976;
}
.round-clock {
  background: #0f1419;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: #f2f2f2;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 7px 9px;
  white-space: nowrap;
}
.power-button {
  color: #f2f2f2;
  font-size: 1.15rem;
}
.player-strip {
  background: radial-gradient(circle at top left, rgba(255,255,255,0.07), transparent 22%), #252525;
  border-color: #4a4a4a;
  border-radius: 0 0 6px 6px;
  gap: 10px;
  grid-template-columns: 68px minmax(250px, 0.95fr) 160px minmax(300px, 1.3fr) minmax(150px, 0.45fr) auto;
  min-height: 74px;
  padding: 7px 10px;
}
.avatar-face {
  border-radius: 6px;
  height: 54px;
  width: 54px;
}
.bar-row {
  grid-template-columns: 56px 1fr 78px;
}
.bar {
  border: 1px solid rgba(0,0,0,0.65);
  height: 13px;
}
.identity-card strong {
  color: #fff;
}
.resource-panel {
  display: grid;
  gap: 5px;
  justify-items: end;
}
.resource-panel div {
  align-items: center;
  display: grid;
  gap: 5px;
  grid-template-columns: 18px auto;
}
.resource-panel img {
  height: 17px;
  image-rendering: auto;
  width: 17px;
}
.resource-panel strong {
  color: #43f078;
  font-size: 0.82rem;
  line-height: 1;
}
.resource-panel span {
  display: none;
}
.profile-page {
  display: grid;
  gap: 16px;
}
.profile-hero {
  align-items: center;
  background: linear-gradient(135deg, rgba(241,180,59,0.12), rgba(8,10,13,0.92));
  border: 1px solid rgba(241,180,59,0.24);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: auto 1fr auto;
  padding: 18px;
}
.profile-hero h1 {
  font-size: 2rem;
  margin: 2px 0;
}
.profile-hero p,
.profile-hero span {
  color: var(--muted);
  font-weight: 900;
  margin: 0;
}
.profile-avatar {
  align-items: center;
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  height: 74px;
  justify-content: center;
  width: 74px;
}
.avatar-carbon { background: linear-gradient(145deg, #30363a, #070808); }
.avatar-gold { background: linear-gradient(145deg, #c78d21, #1c1305); }
.avatar-blue { background: linear-gradient(145deg, #2367d8, #06111f); }
.avatar-red { background: linear-gradient(145deg, #9f1f2b, #140507); }
.profile-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.profile-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.avatar-picker > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.avatar-picker .profile-avatar {
  cursor: pointer;
  height: 58px;
  min-height: 58px;
  padding: 0;
  width: 58px;
}
.avatar-picker .selected {
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(241,180,59,0.28);
}
@media (max-width: 980px) {
  .game-topbar { grid-template-columns: auto 1fr auto; }
  .top-nav { grid-column: 1 / -1; }
  .player-strip { grid-template-columns: 66px 1fr; }
  .identity-card, .stats-grid, .resource-panel { grid-column: span 2; }
  .resource-panel { justify-items: start; grid-template-columns: repeat(3, auto); }
}
@media (max-width: 760px) {
  .profile-hero { grid-template-columns: 1fr; }
  .resource-panel { grid-template-columns: 1fr; }
}

.profile-screen {
  background: #242424;
  border: 1px solid #3c3c3c;
  border-radius: 6px;
  display: grid;
  gap: 12px;
  padding: 14px;
}
.profile-tabs {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr 1fr;
}
.profile-tabs span {
  background: #2d2d2d;
  border-radius: 6px;
  color: #f0d28a;
  font-weight: 900;
  padding: 12px;
  text-align: center;
}
.profile-main-card {
  background: #151515;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  display: grid;
  gap: 14px;
  padding: 14px;
}
.profile-main-card h2 {
  color: #ffbd65;
  margin: 0;
  text-transform: uppercase;
}
.profile-name-row {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.profile-name-row h1 {
  color: #ffbd65;
  margin: 0;
}
.profile-name-row p,
.profile-name-row small {
  color: #fff;
  display: block;
  font-weight: 900;
  margin: 2px 0;
}
.profile-table {
  display: grid;
}
.profile-table div {
  border-bottom: 1px solid rgba(255,136,0,0.28);
  display: grid;
  grid-template-columns: minmax(140px, 0.6fr) 1fr;
  padding: 7px 4px;
}
.profile-table strong,
.profile-table span {
  color: #fff;
  font-weight: 900;
}
.achievements-card {
  background: #111;
  border-radius: 6px;
  padding: 18px;
}
.achievements-card p {
  color: #fff;
  font-weight: 900;
}
.avatar-admin-card h2,
.skill-heading h2 {
  color: #ffbd65;
}
.avatar-model-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
}
.avatar-choice {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  justify-items: center;
  padding: 5px;
}
.avatar-choice .profile-avatar-img {
  height: 86px;
  width: 86px;
}
.avatar-choice.selected {
  border-color: #ffbd65;
  box-shadow: 0 0 16px rgba(255,189,101,0.25);
}
.avatar-choice span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}
.profile-avatar-img {
  background: #080808;
  border: 2px solid rgba(0,0,0,0.7);
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
  display: block;
  height: 92px;
  object-fit: contain;
  object-position: center bottom;
  padding: 2px;
  width: 92px;
}
.profile-avatar.small,
.profile-avatar-img.small {
  height: 48px;
  width: 48px;
}
.upload-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 0.45fr) 1fr;
}
.upload-row strong,
.upload-row small {
  color: #fff;
  display: block;
  font-weight: 900;
}
.upload-row strong {
  color: #ffbd65;
  text-transform: uppercase;
}
.upload-row input {
  background: #262626;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  color: #fff;
  padding: 10px;
}
.skill-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.skill-heading p,
.skill-list span,
.skill-list small {
  color: var(--muted);
}
.skill-heading strong {
  color: #ffbd65;
  font-size: 1.1rem;
}
.skill-list {
  display: grid;
  gap: 8px;
}
.skill-list article {
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  padding: 10px;
}
.skill-list b {
  color: #fff;
  display: block;
}
.skill-list span,
.skill-list small {
  display: block;
  font-weight: 800;
}
@media (min-width: 980px) {
  .profile-main-card:first-of-type {
    grid-template-columns: minmax(420px, 1fr) minmax(320px, 0.95fr);
  }
}
@media (max-width: 760px) {
  .profile-tabs,
  .upload-row,
  .skill-list article,
  .profile-table div {
    grid-template-columns: 1fr;
  }
}

.power-button img {
  display: block;
  height: 18px;
  image-rendering: auto;
  width: 18px;
}
.power-button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}







.profile-badges {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 7px;
}
.profile-badges span {
  align-items: center;
  background: #101010;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  color: #e8eef2;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 5px;
  padding: 4px 7px;
}
.profile-badges img {
  height: 16px;
  image-rendering: pixelated;
  width: 16px;
}









.rankings-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mini-ranking {
  background: rgba(12, 17, 20, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.mini-ranking h3 {
  color: var(--gold);
  margin: 0 0 10px;
  text-transform: uppercase;
}
.mini-rank-row {
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: grid;
  gap: 8px;
  grid-template-columns: 42px 1fr auto;
  padding: 8px 0;
}
.mini-rank-row span { color: var(--gold); font-weight: 900; }
.mini-rank-row em { color: var(--green); font-style: normal; font-weight: 900; }
.player-link {
  background: transparent;
  border: 0;
  color: #f0f4f6;
  cursor: pointer;
  font-weight: 900;
  min-height: auto;
  padding: 0;
  text-align: left;
  text-transform: none;
}
.player-link:hover { color: var(--gold); text-decoration: underline; }
.city-feed { gap: 8px; }
.city-event {
  align-items: center;
  background: rgba(12, 17, 20, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px 1fr auto;
  padding: 10px 12px;
}
.city-event > span {
  align-items: center;
  background: #20313a;
  border-radius: 6px;
  color: var(--cyan);
  display: flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.city-event.prison > span { color: #ff8585; }
.city-event.robbery > span { color: var(--green); }
.city-event p { color: #d8dee2; margin: 3px 0 0; }
.city-event small { color: var(--gold); font-weight: 900; }
.back-button { margin: 0 0 12px; }
@media (max-width: 980px) {
  .rankings-grid { grid-template-columns: 1fr; }
  .city-event { grid-template-columns: 34px 1fr; }
  .city-event small { grid-column: 2; }
}

.ranking-page {
  max-width: 1500px;
}
.ranking-board-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ranking-board {
  background: rgba(12, 17, 20, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.ranking-board h2 {
  color: var(--cyan);
  font-size: 1.05rem;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.compact-ranking {
  margin-top: 0;
  padding: 0 4px;
}
.compact-ranking .rank-row {
  grid-template-columns: 54px 1fr minmax(120px, auto) auto;
  padding: 10px 0;
}
.gang-rank-name {
  color: #f0f4f6;
  font-weight: 900;
}
@media (max-width: 980px) {
  .ranking-board-grid { grid-template-columns: 1fr; }
  .compact-ranking .rank-row { grid-template-columns: 46px 1fr; }
  .compact-ranking .rank-row small,
  .compact-ranking .rank-row em { grid-column: 2; }
}
.season-ticker { grid-template-columns: auto auto auto 1fr auto; }
.ticker-row .round-countdown { background: #151a20; border: 1px solid rgba(255,183,59,0.5); border-radius: 8px; color: var(--gold); font-weight: 900; letter-spacing: 0; padding: 9px 12px; text-align: center; }
.player-strip { grid-template-columns: 64px minmax(210px, 0.95fr) 150px minmax(260px, 1.1fr) minmax(118px, 0.35fr) auto; }
.compact-stats { align-content: center; display: grid; gap: 4px 10px; grid-template-columns: repeat(3, minmax(68px, 1fr)); }
.compact-stats .mini-stat { align-items: center; background: transparent; border: 0; box-shadow: none; display: grid; gap: 4px; grid-template-columns: 18px 34px 1fr; min-height: 18px; padding: 0; }
.compact-stats .mini-stat img { filter: drop-shadow(0 0 4px rgba(0,0,0,0.8)); height: 18px; object-fit: contain; width: 18px; }
.compact-stats .mini-stat span { color: #7f9bb4; font-size: 0.66rem; font-weight: 900; letter-spacing: 0; line-height: 1; }
.compact-stats .mini-stat strong { color: #f7fbff; font-size: 0.78rem; line-height: 1; text-align: left; }
.compact-stats .mini-stat.gold strong { color: #ffe37b; }
@media (max-width: 1180px) { .season-ticker { grid-template-columns: 1fr 1fr; } .compact-stats { grid-template-columns: repeat(3, minmax(72px, 1fr)); } }
@media (max-width: 760px) { .season-ticker { grid-template-columns: 1fr; } .compact-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .compact-stats .mini-stat { grid-template-columns: 18px 1fr auto; } }


.energy-row { grid-template-columns: 64px 1fr 88px 24px; }
.energy-recharge-button { align-items: center; background: transparent; border: 0; cursor: pointer; display: inline-flex; height: 20px; justify-content: center; padding: 0; width: 20px; }
.energy-recharge-button:disabled { cursor: default; filter: grayscale(1); opacity: 0.35; }
.energy-recharge-button img { height: 12px; image-rendering: pixelated; width: 12px; }

.addiction-panel { align-items: center; background: rgba(13,13,13,0.78); border: 1px solid rgba(255,184,61,0.25); display: grid; gap: 8px; grid-template-columns: 56px minmax(120px,1fr) 42px auto; margin: 0 0 12px; padding: 10px 12px; }
.addiction-panel span, .addiction-panel strong { color: #f5b642; font-weight: 900; }
.addiction-panel em { color: #dce8f4; font-style: normal; font-weight: 800; }
.addiction-bar { background: #101014; border: 1px solid rgba(255,255,255,0.12); height: 8px; overflow: hidden; }
.addiction-bar i { background: linear-gradient(90deg,#53d769,#f5b642,#ff3b3b); display: block; height: 100%; }
.under-actions .drug-use { background: #5b1010; border-color: rgba(255,74,74,0.45); color: #fff; }

.crimecity-ranking {
  background: linear-gradient(180deg, rgba(20,47,43,0.96), rgba(18,26,27,0.96));
  border-color: rgba(31,196,151,0.18);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(31,196,151,0.05);
}
.crimecity-heading {
  align-items: center;
  border-bottom: 1px solid rgba(31,196,151,0.13);
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
}
.crimecity-heading span {
  align-items: center;
  border: 1px solid rgba(31,196,151,0.45);
  border-radius: 8px;
  color: #31d6a7;
  display: inline-flex;
  font-size: 1.25rem;
  height: 36px;
  justify-content: center;
  width: 36px;
}
.crimecity-heading h2 {
  color: #31d6a7;
  margin: 0;
  text-transform: uppercase;
}
.crimecity-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.crimecity-card {
  background: linear-gradient(180deg, rgba(27,39,40,0.94), rgba(24,29,31,0.94));
  border: 1px solid rgba(31,196,151,0.16);
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
  display: grid;
  gap: 12px;
  min-height: 164px;
  padding: 14px;
}
.crimecity-card h3 {
  color: #31d6a7;
  font-size: 1.05rem;
  line-height: 1.12;
  margin: 0;
  text-transform: uppercase;
}
.crimecity-card h3 b { color: #ffdf9b; }
.crimecity-card p {
  color: #d4dcdb;
  font-weight: 800;
  line-height: 1.42;
  margin: 0;
}
.crimecity-player {
  align-items: center;
  align-self: end;
  background: rgba(9,14,15,0.82);
  border: 1px solid rgba(31,196,151,0.14);
  border-radius: 7px;
  display: grid;
  gap: 10px;
  grid-template-columns: 52px 12px 1fr;
  min-height: 74px;
  padding: 10px 12px;
  position: relative;
}
.crimecity-player .profile-avatar-img.small {
  height: 52px;
  object-fit: cover;
  width: 52px;
}
.crimecity-dot {
  align-self: end;
  background: #d10d0d;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(209,13,13,0.75);
  height: 13px;
  margin-bottom: 4px;
  width: 13px;
}
.crimecity-player.green .crimecity-dot { background: #10d045; box-shadow: 0 0 10px rgba(16,208,69,0.75); }
.crimecity-player.orange .crimecity-dot { background: #f5a532; box-shadow: 0 0 10px rgba(245,165,50,0.75); }
.crimecity-player.purple .crimecity-dot { background: #9f6cff; box-shadow: 0 0 10px rgba(159,108,255,0.75); }
.crimecity-player strong { display: block; margin-bottom: 4px; }
.crimecity-player small {
  color: #b9c4c2;
  display: block;
  font-weight: 800;
  line-height: 1.3;
}
.crimecity-player.empty {
  color: #c9d2d1;
  font-weight: 900;
  grid-template-columns: 1fr;
}
.crimecity-lines {
  display: grid;
  gap: 8px;
}
.crimecity-lines b { color: #ffdf9b; }
.crimecity-card.red { border-color: rgba(255,84,108,0.22); }
.crimecity-card.orange { border-color: rgba(255,170,57,0.24); }
.crimecity-card.purple { border-color: rgba(159,108,255,0.22); }
@media (max-width: 980px) {
  .crimecity-grid { grid-template-columns: 1fr; }
  .crimecity-card { min-height: auto; }
}
@media (max-width: 560px) {
  .crimecity-card { padding: 12px; }
  .crimecity-player { grid-template-columns: 44px 10px 1fr; padding: 9px; }
  .crimecity-player .profile-avatar-img.small { height: 44px; width: 44px; }
}

.bar.addiction i { background: linear-gradient(90deg,#37d36f,#f4c542,#ff3131); }
.addiction-top-row strong { color: #ffcf66; }
.compact-stats .mini-stat.death strong { color: #ff5757; }
.compact-stats .mini-stat.death img { filter: drop-shadow(0 0 5px rgba(255,0,0,0.65)); }
@media (max-width: 760px) { .addiction-top-row { grid-template-columns: 56px 1fr 78px; } }

.simple-home-rankings { background: linear-gradient(180deg, #133129, #111b19); }
.simple-home-rankings h2 { color: var(--green); }
.simple-home-rankings .mini-ranking { min-height: 100%; }
.simple-home-rankings .mini-rank-row { grid-template-columns: 36px 1fr auto; }
@media (max-width: 760px) { .simple-home-rankings .mini-rank-row { grid-template-columns: 32px 1fr; } .simple-home-rankings .mini-rank-row em { grid-column: 2; } }

/* Barras superiores reorganizadas */
.player-strip {
  align-items: center;
  background: linear-gradient(180deg, #2d2d2d, #202020);
  border-top: 1px solid #565656;
}
.top-bars-card {
  gap: 7px;
  min-width: 0;
}
.top-bar-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 72px minmax(180px, 1fr);
  min-width: 0;
}
.top-bar-row.energy-row {
  grid-template-columns: 72px 18px minmax(180px, 1fr);
}
.top-bar-row > span {
  color: #f4f7ff;
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 1px 0 #000, 0 0 5px rgba(255,255,255,0.12);
}
.top-bar-row .bar {
  background: #060708;
  border: 1px solid rgba(0,0,0,0.85);
  border-radius: 5px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.08), inset 0 -2px 4px rgba(0,0,0,0.65), 0 1px 0 rgba(255,255,255,0.08);
  height: 22px;
  overflow: hidden;
  position: relative;
}
.top-bar-row .bar i {
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), inset 0 -5px 9px rgba(0,0,0,0.18), 0 0 11px rgba(255,255,255,0.08);
  display: block;
  height: 100%;
  transition: width 180ms ease;
}
.top-bar-row .bar strong {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: 0.82rem;
  font-weight: 950;
  inset: 0;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  position: absolute;
  text-shadow: 0 1px 2px #000, 0 0 5px rgba(0,0,0,0.9);
  z-index: 2;
}
.top-bar-row .bar.red i { background: linear-gradient(180deg, #ff4040, #c5131d 54%, #8b0710); }
.top-bar-row .bar.blue i { background: linear-gradient(180deg, #28a7ff, #0075ef 52%, #004bbd); }
.top-bar-row .bar.dark i { background: linear-gradient(180deg, #808890, #343b43 55%, #15191f); }
.top-bar-row .bar.addiction i { background: linear-gradient(90deg, #32d66c, #f4c542 58%, #ff3030); }
.energy-recharge-button {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  height: 18px;
  justify-content: center;
  min-height: 18px;
  padding: 0;
  width: 18px;
}
.energy-recharge-button img {
  filter: drop-shadow(0 0 4px rgba(75,160,255,0.85));
  height: 14px;
  image-rendering: pixelated;
  width: 14px;
}
.energy-recharge-button:disabled { cursor: default; filter: grayscale(1); opacity: 0.45; }
.resource-panel div:last-child span::after { content: ""; }
@media (max-width: 1180px) {
  .top-bar-row { grid-template-columns: 64px minmax(120px, 1fr); }
  .top-bar-row.energy-row { grid-template-columns: 64px 18px minmax(120px, 1fr); }
}
@media (max-width: 760px) {
  .top-bars-card { grid-column: span 2; }
  .top-bar-row { grid-template-columns: 60px minmax(0, 1fr); }
  .top-bar-row.energy-row { grid-template-columns: 60px 18px minmax(0, 1fr); }
}

.top-bar-row .bar-label {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: 20px 1fr;
  min-width: 0;
}
.top-bar-row .bar-label img {
  filter: drop-shadow(0 0 5px rgba(0,0,0,0.85));
  height: 20px;
  object-fit: contain;
  width: 20px;
}
.top-bar-row.energy-row .bar-label img { filter: drop-shadow(0 0 6px rgba(255,194,39,0.7)); }
.top-bar-row.addiction-top-row .bar-label img { filter: drop-shadow(0 0 6px rgba(255,59,255,0.68)); }
.top-bar-row .bar-label { color: #f4f7ff; font-size: 0.82rem; font-weight: 950; }
@media (max-width: 760px) {
  .top-bar-row .bar-label { grid-template-columns: 18px 1fr; }
  .top-bar-row .bar-label img { height: 18px; width: 18px; }
}


/* Topo v47: icones compactos e barras sem nomes fixos */
.top-bars-card { gap: 6px; }
.top-bar-row { gap: 7px; grid-template-columns: 30px minmax(170px, 1fr); }
.top-bar-row.energy-row { grid-template-columns: 30px minmax(170px, 1fr) 18px; }
.top-bar-row .bar-label {
  align-items: center;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  position: relative;
  width: 26px;
}
.top-bar-row .bar-label img { height: 24px; object-fit: contain; width: 24px; }
.top-bar-row .bar-label em {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
.top-bar-row .bar-label::after {
  background: linear-gradient(180deg, rgba(24,24,24,0.98), rgba(9,9,9,0.98));
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.08);
  color: #fff;
  content: attr(data-tip);
  font-size: 0.74rem;
  font-weight: 950;
  left: 31px;
  line-height: 1;
  opacity: 0;
  padding: 7px 9px;
  pointer-events: none;
  position: absolute;
  text-shadow: 0 1px 1px #000;
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  transition: opacity 120ms ease, transform 120ms ease;
  white-space: nowrap;
  z-index: 20;
}
.top-bar-row .bar-label:hover::after,
.top-bar-row .bar-label:focus::after,
.top-bar-row .bar-label:active::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.top-bar-row .bar { height: 22px; }
.energy-recharge-button { height: 18px; justify-self: center; width: 18px; }
@media (max-width: 1180px) {
  .top-bar-row { grid-template-columns: 28px minmax(120px, 1fr); }
  .top-bar-row.energy-row { grid-template-columns: 28px minmax(120px, 1fr) 18px; }
}
@media (max-width: 760px) {
  .top-bar-row { grid-template-columns: 26px minmax(0, 1fr); }
  .top-bar-row.energy-row { grid-template-columns: 26px minmax(0, 1fr) 18px; }
  .top-bar-row .bar-label img { height: 22px; width: 22px; }
}

/* Hospital v48 */
.hospital-actions {
  align-items: start;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hospital-actions button { max-width: none; }
.premium-health-button {
  background: linear-gradient(180deg, #ffe27a, #d69b20 55%, #8c5d0d);
  border-color: rgba(255,226,122,0.55);
  color: #211504;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}
.premium-health-button:disabled {
  color: rgba(255,255,255,0.48);
  text-shadow: none;
}


/* v49: recarga dentro da barra e cambio premium */
.top-bar-row.energy-row { grid-template-columns: 30px minmax(170px, 1fr); }
.top-bar-row .bar.energy-bar { padding-right: 24px; }
.top-bar-row .bar.energy-bar strong { padding-right: 0; }
.top-bar-row .bar.energy-bar .energy-recharge-button {
  height: 18px;
  margin: 0;
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  z-index: 4;
}
.top-bar-row .bar.energy-bar .energy-recharge-button img { height: 14px; width: 14px; }
.bank-actions { align-items: stretch; flex-wrap: wrap; }
.premium-bank-button {
  background: linear-gradient(180deg, #ffe27a, #d69b20 55%, #8c5d0d);
  border-color: rgba(255,226,122,0.55);
  color: #211504;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}
.premium-bank-button:disabled { color: rgba(255,255,255,0.5); text-shadow: none; }
@media (max-width: 1180px) {
  .top-bar-row.energy-row { grid-template-columns: 28px minmax(120px, 1fr); }
}
@media (max-width: 760px) {
  .top-bar-row.energy-row { grid-template-columns: 26px minmax(0, 1fr); }
}


/* v50 Assassino */
.assassin-page .page-heading h1 { color: #ff4d4d; }
.assassin-grid { grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.8fr); }
.assassin-log { grid-column: 1 / -1; }
.assassin-page .under-panel { border-color: rgba(255,55,55,0.22); }
.assassin-page .crime-card { border-color: rgba(255,55,55,0.2); }
@media (max-width: 980px) { .assassin-grid { grid-template-columns: 1fr; } }

/* v51 Gangues: comandos, líderes, caminhões e rivalidade */
.gang-hero-v51 {
  align-items: stretch;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
}
.gang-quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
}
.gang-quick-stats strong {
  color: #31e0b0;
  font-size: 1.15rem;
}
.gang-quick-stats small {
  color: rgba(255,255,255,0.66);
  margin-right: 8px;
  text-transform: uppercase;
}
.gang-command-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(280px, 1.2fr) minmax(240px, 0.8fr);
  margin-top: 16px;
}
.gang-command-grid .gang-admin-panel { grid-column: 1 / -1; }
.gang-truck-card {
  overflow: hidden;
}
.gang-truck-card img {
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(49,224,176,0.22);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.32);
  display: block;
  margin: 10px 0 12px;
  object-fit: cover;
  width: 100%;
}
.gang-truck-card > div:not(.empty-truck) {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}
.gang-truck-card strong { color: #fff3b4; }
.gang-truck-card span { color: rgba(255,255,255,0.74); }
.empty-truck {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(9,19,24,0.94), rgba(16,38,35,0.9));
  border: 1px dashed rgba(49,224,176,0.28);
  border-radius: 8px;
  color: rgba(255,255,255,0.55);
  display: flex;
  font-weight: 900;
  justify-content: center;
  margin: 10px 0 12px;
}
.gang-edit-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 120px 1.4fr;
  margin-bottom: 10px;
}
.leader-list {
  display: grid;
  gap: 8px;
}
.leader-list p {
  align-items: center;
  background: rgba(6,9,12,0.56);
  border: 1px solid rgba(49,224,176,0.12);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 9px 11px;
}
.leader-list label {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}
.leader-list input { accent-color: #31e0b0; }
.leader-list span { color: rgba(255,255,255,0.68); }
.gang-fight-panel {
  margin-top: 16px;
}
.gang-rival-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.gang-rival-grid article {
  align-items: center;
  background: linear-gradient(180deg, rgba(12,17,20,0.92), rgba(8,10,12,0.92));
  border: 1px solid rgba(255,68,68,0.18);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}
.gang-rival-grid strong { color: #ffdf87; }
.gang-rival-grid span,
.gang-rival-grid small {
  color: rgba(255,255,255,0.66);
  display: block;
  margin-top: 3px;
}
@media (max-width: 860px) {
  .gang-hero-v51,
  .gang-command-grid,
  .gang-edit-grid,
  .gang-rival-grid article { grid-template-columns: 1fr; }
}

/* v52 Níveis, cooldown do Assassino e vitrine dos caminhões */
.levels-panel { padding: 12px; }
.levels-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.levels-grid article {
  align-items: center;
  background: linear-gradient(180deg, rgba(13,18,22,0.92), rgba(7,9,12,0.92));
  border: 1px solid rgba(65,156,255,0.18);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  padding: 10px;
}
.levels-grid span {
  align-items: center;
  background: linear-gradient(180deg, #2a9bff, #0754b5);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-weight: 950;
  height: 34px;
  justify-content: center;
  text-shadow: 0 1px 1px #000;
}
.levels-grid strong { color: #fff3b4; display: block; }
.levels-grid small { color: rgba(255,255,255,0.66); display: block; margin-top: 3px; }
.levels-grid em { color: #36d7ff; font-style: normal; font-weight: 900; white-space: nowrap; }
.assassin-cooldown {
  color: #ffdf87;
  display: inline-block;
  margin-top: 8px;
}
.truck-level-strip {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 10px 0 12px;
}
.truck-mini {
  background: rgba(5,8,10,0.68);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  opacity: 0.68;
  overflow: hidden;
  padding: 5px;
  text-align: center;
}
.truck-mini img {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  display: block;
  height: auto;
  margin: 0;
  object-fit: cover;
  width: 100%;
}
.truck-mini span,
.truck-mini strong {
  font-size: 0.72rem;
  line-height: 1;
}
.truck-mini.active {
  border-color: rgba(49,224,176,0.82);
  box-shadow: 0 0 18px rgba(49,224,176,0.24);
  opacity: 1;
}
.truck-mini.owned { opacity: 0.9; }
@media (max-width: 760px) {
  .truck-level-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .levels-grid article { grid-template-columns: 36px minmax(0, 1fr); }
  .levels-grid em { grid-column: 2; }
}

/* v55 edição de conta no perfil */
.profile-title-line {
  align-items: center;
  display: flex;
  gap: 8px;
}
.profile-title-line h1 { margin: 0; }
.account-edit-button {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  height: 22px;
  justify-content: center;
  min-height: 22px;
  padding: 0;
  width: 22px;
}
.account-edit-button img {
  filter: drop-shadow(0 0 4px rgba(255,196,68,0.72));
  height: 16px;
  image-rendering: pixelated;
  width: 16px;
}
.account-edit-panel {
  background: linear-gradient(180deg, rgba(16,22,26,0.96), rgba(7,10,12,0.96));
  border: 1px solid rgba(255,196,68,0.22);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
}
.account-edit-panel label {
  color: rgba(255,255,255,0.78);
  display: grid;
  font-weight: 800;
  gap: 5px;
}
.account-edit-panel input {
  background: #070a0d;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  color: #fff;
  padding: 9px 10px;
}
.account-edit-panel .tab-row { justify-content: flex-start; }

/* v56 guias explicativos */
.page-guide {
  border-color: rgba(54,215,255,0.16);
  margin-top: 18px;
}
.page-guide h2 {
  color: #36d7ff;
  margin-bottom: 10px;
}
.page-guide div {
  display: grid;
  gap: 7px;
}
.page-guide p {
  background: rgba(4,8,11,0.38);
  border-left: 3px solid rgba(54,215,255,0.55);
  color: rgba(255,255,255,0.75);
  margin: 0;
  padding: 8px 10px;
}

/* v57 ícones das drogas fictícias */
.under-row.market-good-row {
  grid-template-columns: 82px minmax(0, 1fr) minmax(220px, 0.9fr) auto;
}
.market-good-icon {
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(44,230,190,0.26);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.32), 0 0 18px rgba(44,230,190,0.12);
  height: 68px;
  object-fit: cover;
  width: 68px;
}
@media (max-width: 860px) {
  .under-row.market-good-row { grid-template-columns: 62px minmax(0, 1fr); }
  .market-good-icon { height: 54px; width: 54px; }
  .under-row.market-good-row em,
  .under-row.market-good-row .under-actions { grid-column: 1 / -1; }
}


/* O Beco - chat global */
.beco-page {
  background: linear-gradient(180deg, #22282b, #121719 62%, #0d1113);
  min-height: 720px;
  padding-bottom: 22px;
}
.beco-top {
  align-items: center;
  background: #111314;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: grid;
  grid-template-columns: 48px 1fr auto;
  min-height: 52px;
  padding: 0 14px;
}
.beco-top h1 {
  color: #f4f4f4;
  font-size: 1.35rem;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
}
.beco-top span { color: #7cff85; font-weight: 900; text-transform: uppercase; }
.beco-home {
  align-items: center;
  background: transparent;
  border: 0;
  color: #fff;
  display: inline-flex;
  font-size: 1.3rem;
  height: 34px;
  justify-content: center;
  min-height: 34px;
  padding: 0;
  width: 34px;
}
.beco-tour {
  align-items: center;
  background: linear-gradient(90deg, rgba(111,75,33,0.82), rgba(48,39,32,0.88));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #e6ded1;
  display: flex;
  gap: 10px;
  margin: 10px 14px;
  padding: 14px 16px;
}
.beco-tour strong { color: #fff; }
.beco-shell {
  background: rgba(13,14,15,0.94);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr) 250px;
  grid-template-rows: minmax(460px, 62vh) auto;
  margin: 12px 18px;
  overflow: hidden;
}
.beco-messages {
  background: linear-gradient(180deg, rgba(42,34,28,0.86), rgba(18,19,20,0.96));
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 18px 18px 22px;
}
.beco-message {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 48px minmax(0, 1fr);
}
.beco-avatar {
  background: transparent;
  border: 0;
  height: 48px;
  min-height: 48px;
  padding: 0;
  position: relative;
  width: 48px;
}
.beco-avatar .profile-avatar-img.small,
.beco-online .profile-avatar-img.small {
  border-radius: 50%;
  height: 42px;
  object-fit: cover;
  width: 42px;
}
.beco-avatar i {
  background: #6a1414;
  border: 1px solid rgba(0,0,0,0.65);
  border-radius: 50%;
  bottom: 2px;
  box-shadow: 0 0 10px rgba(209,13,13,0.75);
  height: 13px;
  position: absolute;
  right: 2px;
  width: 13px;
}
.beco-avatar i.online { background: #19d34f; box-shadow: 0 0 13px rgba(25,211,79,0.9); }
.beco-message > div {
  min-width: 0;
}
.beco-name {
  background: transparent;
  border: 0;
  color: #ffd896;
  display: inline;
  font-size: 0.98rem;
  font-weight: 900;
  min-height: 0;
  padding: 0;
  text-align: left;
}
.beco-name:hover { color: #fff; text-decoration: underline; }
.beco-message small {
  color: rgba(255,255,255,0.42);
  font-weight: 900;
  margin-left: 8px;
}
.beco-message p {
  color: #f0f1f1;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
.beco-online {
  background: rgba(8,10,11,0.82);
  border-left: 1px solid rgba(255,255,255,0.07);
  overflow-y: auto;
  padding: 14px;
}
.beco-online h2 {
  color: var(--cyan);
  font-size: 1rem;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.beco-online button {
  align-items: center;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  display: grid;
  gap: 8px;
  grid-template-columns: 10px 42px 1fr;
  margin-bottom: 8px;
  padding: 7px;
  text-align: left;
  width: 100%;
}
.beco-online button > span {
  background: #19d34f;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(25,211,79,0.9);
  height: 10px;
  width: 10px;
}
.beco-online strong { color: #ffd896; display: block; }
.beco-online small { color: var(--muted); display: block; grid-column: 3; }
.beco-online p { color: var(--muted); margin: 0; }
.beco-input {
  align-items: center;
  background: #101112;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 52px;
  padding: 10px 14px;
}
.beco-input input {
  background: #050505;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 6px;
  color: #fff;
  font-size: 1rem;
  padding: 12px 14px;
}
.beco-input button {
  font-size: 1.4rem;
  height: 44px;
  min-height: 44px;
  padding: 0;
}
@media (max-width: 980px) {
  .beco-shell { grid-template-columns: 1fr; grid-template-rows: minmax(420px, 60vh) auto auto; }
  .beco-online { border-left: 0; border-top: 1px solid rgba(255,255,255,0.07); max-height: 190px; }
}
@media (max-width: 560px) {
  .beco-tour { align-items: start; flex-direction: column; }
  .beco-shell { margin: 10px; }
  .beco-message { grid-template-columns: 42px 1fr; }
  .beco-message small { display: block; margin-left: 0; margin-top: 2px; }
}

.subworld-guide {
  background: linear-gradient(180deg, rgba(15,24,28,0.94), rgba(10,14,16,0.94));
  border-color: rgba(44,230,190,0.2);
  margin-top: 0;
}
.subworld-guide h2 {
  color: var(--green);
  margin-bottom: 12px;
}
.subworld-guide-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.subworld-guide-grid article {
  background: rgba(0,0,0,0.24);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 12px;
}
.subworld-guide-grid strong {
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.subworld-guide-grid p,
.subworld-guide-tip {
  color: #d6dfdc;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}
.subworld-guide-tip {
  background: rgba(44,230,190,0.08);
  border: 1px solid rgba(44,230,190,0.15);
  border-radius: 7px;
  margin-top: 12px;
  padding: 10px 12px;
}
@media (max-width: 1100px) { .subworld-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .subworld-guide-grid { grid-template-columns: 1fr; } }

.virtual-gangs-panel {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(255, 182, 71, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 18, 17, 0.96), rgba(12, 12, 12, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 14px 36px rgba(0,0,0,0.35);
}
.virtual-gangs-panel > header {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  color: #d7d0c5;
}
.virtual-gangs-panel > header h2,
.virtual-group h3 {
  margin: 0;
  color: #f2d7a3;
  text-transform: uppercase;
  font-family: var(--display-font);
  letter-spacing: 0;
}
.virtual-gangs-panel > header p {
  max-width: 1180px;
  margin: 0;
  color: #c8c0b2;
  line-height: 1.45;
}
.virtual-gangs-panel > header strong {
  width: max-content;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 6px;
  color: #101010;
  background: linear-gradient(180deg, #f7c764, #a97319);
  box-shadow: 0 0 18px rgba(236, 168, 54, 0.16);
}
.virtual-group {
  margin-top: 14px;
}
.virtual-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
}
.virtual-group h3 span {
  color: #cfcfcf;
  font-size: 0.9rem;
}
.virtual-raid-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.virtual-raid-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(31,31,31,0.96), rgba(18,18,18,0.98));
}
.virtual-raid-card.locked {
  opacity: 0.78;
}
.virtual-raid-card > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.virtual-raid-card h4 {
  margin: 0;
  color: #f0d39f;
  font-size: 1.05rem;
}
.virtual-raid-card small,
.virtual-raid-card p {
  margin: 0;
  color: #b9b9b9;
}
.virtual-raid-card .danger {
  color: #ff6464;
}
.virtual-mult {
  min-width: 32px;
  padding: 3px 7px;
  border-radius: 6px;
  color: #ffd98a;
  background: rgba(163, 98, 9, 0.72);
  font-weight: 900;
  text-align: center;
}
.virtual-raid-card button {
  margin-top: 7px;
}
.virtual-gang-log {
  margin-top: 16px;
}
@media (max-width: 760px) {
  .virtual-raid-grid {
    grid-template-columns: 1fr;
  }
  .virtual-gangs-panel {
    padding: 12px;
  }
}

.solo-robbery-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 196, 71, 0.14);
  background: linear-gradient(180deg, rgba(22, 25, 21, 0.98), rgba(15, 16, 15, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 12px 32px rgba(0,0,0,0.32);
}
.solo-robbery-head h2 {
  margin: 0;
  color: #f0d39f;
  text-transform: uppercase;
  font-family: var(--display-font);
  font-size: 1.45rem;
}
.solo-robbery-head span {
  color: #e7edf2;
  margin-left: 6px;
}
.solo-filter-row,
.solo-options-row,
.solo-summary-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 8px;
  align-items: center;
}
.solo-filter-row button,
.solo-options-row button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 9px;
  border: 0;
  background: transparent;
  color: #ddd;
  text-align: left;
  font-weight: 800;
  text-transform: none;
}
.solo-filter-row button i,
.solo-options-row button i {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 2px solid rgba(210, 220, 230, 0.35);
  background: #020202;
  box-shadow: inset 0 0 0 2px #000;
}
.solo-filter-row button.active i,
.solo-options-row button.active i {
  border-color: #d7a12e;
  background: radial-gradient(circle, #ffd36a 0 34%, #0a0a0a 39%);
}
.solo-selected {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 9px 14px;
  border: 1px solid rgba(214, 158, 28, 0.9);
  border-radius: 7px;
  background: #070807;
  color: #f5f5f5;
}
.solo-selected strong {
  font-size: 1.05rem;
}
.solo-selected small {
  color: #b8b8b8;
}
.solo-selected em {
  color: #aeb7c0;
  font-style: normal;
  font-size: 1.25rem;
}
.sp-badge {
  min-width: 72px;
  padding: 7px 9px;
  border-radius: 6px;
  color: #f2f2f2;
  font-weight: 950;
  text-align: center;
  background: rgba(117, 45, 45, 0.8);
}
.sp-badge.good { background: rgba(20, 97, 45, 0.86); color: #8dffaf; }
.sp-badge.mid { background: rgba(112, 67, 26, 0.9); color: #ffbf72; }
.sp-badge.low { background: rgba(106, 40, 45, 0.9); color: #ff9b9b; }
.solo-crime-list {
  display: grid;
  gap: 2px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  background: rgba(5,5,5,0.48);
}
.solo-crime-list button {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 7px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ddd;
  text-align: left;
}
.solo-crime-list button:nth-child(even) {
  background: rgba(255,255,255,0.035);
}
.solo-crime-list button.active {
  background: rgba(105, 84, 23, 0.48);
}
.solo-crime-list strong {
  color: #f0f0f0;
}
.solo-crime-list small,
.solo-crime-list em {
  color: #b9b9b9;
  font-style: normal;
  font-weight: 800;
}
.solo-options-row {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}
.solo-options-row button {
  justify-content: center;
  min-height: 42px;
  border-radius: 6px;
  background: linear-gradient(180deg, #3d3d3d, #202020);
  border: 1px solid rgba(255,255,255,0.08);
  text-transform: uppercase;
}
.solo-options-row button.active {
  color: #ffe0a0;
  border-color: rgba(215, 161, 46, 0.5);
}
.solo-summary-row {
  grid-template-columns: repeat(4, minmax(120px, auto));
  justify-content: start;
  color: #bfc8d0;
}
.solo-summary-row span {
  padding: 6px 9px;
  border-radius: 6px;
  background: rgba(255,255,255,0.055);
}
.solo-rob-button {
  min-height: 43px;
  border-radius: 6px;
  font-size: 1rem;
  text-transform: uppercase;
}
@media (max-width: 860px) {
  .solo-filter-row,
  .solo-options-row,
  .solo-summary-row {
    grid-template-columns: 1fr;
  }
  .solo-selected,
  .solo-crime-list button {
    grid-template-columns: auto 1fr;
  }
  .solo-selected small,
  .solo-crime-list small,
  .solo-crime-list em {
    display: none;
  }
}

/* Compact solo controls; keep reward and requirement details visible on mobile. */
.solo-robbery-panel { gap: 8px; padding: 12px; }
.solo-robbery-head h2 { font-size: 1.15rem; }
.solo-filter-row { display: flex; flex-wrap: wrap; gap: 4px; }
.solo-filter-row button { min-height: 30px; padding: 5px 9px; font-size: .8rem; border-radius: 5px; }
.solo-filter-row button.active { background: rgba(215,161,46,.12); color: #ffe0a0; }
.solo-filter-row button i, .solo-options-row button i { width: 14px; height: 14px; flex-shrink: 0; }
.solo-selected { min-height: 38px; padding: 6px 10px; gap: 8px; }
.solo-selected strong { font-size: .9rem; }
.solo-robbery-panel .sp-badge { min-width: 58px; padding: 4px 6px; font-size: .8rem; }
.solo-crime-list { max-height: 180px; }
.solo-crime-list button { min-height: 34px; padding: 4px 8px; gap: 8px; font-size: .8rem; }
.solo-crime-list button:focus-visible, .solo-filter-row button:focus-visible, .solo-options-row button:focus-visible { outline: 2px solid #ffd36a; outline-offset: -2px; }
.solo-action-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; }
.solo-options-row { display: flex; flex-wrap: wrap; gap: 6px; }
.solo-options-row button { min-height: 32px; padding: 5px 10px; font-size: .78rem; text-transform: none; }
.solo-summary-row { display: flex; flex-wrap: wrap; gap: 5px; font-size: .78rem; }
.solo-summary-row span { padding: 4px 7px; }
.solo-action-bar .solo-summary-row { grid-column: 1; grid-row: 2; }
.solo-rob-button { grid-column: 2; grid-row: 1 / 3; min-width: 150px; min-height: 40px; }
.solo-empty { margin: 8px 0; color: #bfc8d0; }
@media (max-width: 860px) {
  .solo-selected { grid-template-columns: auto minmax(0, 1fr); }
  .solo-selected small { display: block; }
  .solo-crime-list button { grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 8px; }
  .solo-crime-list strong { grid-column: 2 / -1; }
  .solo-crime-list small, .solo-crime-list em { display: block; font-size: .72rem; }
  .solo-action-bar { grid-template-columns: minmax(0, 1fr); }
  .solo-action-bar .solo-summary-row { grid-row: auto; }
  .solo-rob-button { grid-column: 1; grid-row: auto; width: 100%; }
}

.solo-crime-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); grid-auto-rows: max-content; align-content: start; gap: 8px; max-height: 430px; overflow-y: auto; padding: 2px 4px 4px 2px; scrollbar-width: thin; }
.solo-crime-cards .solo-crime-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 11px; border: 1px solid #343a35; border-radius: 8px; background: #111713; color: #dce3dd; text-align: left; text-transform: none; box-shadow: none; cursor: pointer; }
.solo-crime-cards .solo-crime-card:hover { border-color: #9c854c; background: #1b211a; }
.solo-crime-cards .solo-crime-card.active { border-color: #e8b84d; background: #292719; box-shadow: inset 0 0 0 1px #e8b84d; }
.solo-crime-card:focus-visible { outline: 2px solid #ffe098; outline-offset: 0; }
.crime-card-top { display: flex; align-items: center; justify-content: space-between; gap: 5px; width: 100%; }
.solo-crime-card .sp-badge { font-size: .72rem; white-space: nowrap; }
.crime-card-state { font-size: .65rem; color: #aaa; }
.solo-crime-card.active .crime-card-state { color: #ffda83; }
.solo-crime-card.locked .crime-card-state { color: #ff9b9b; }
.solo-crime-card strong { font-size: .9rem; line-height: 1.3; color: #f3f3eb; overflow-wrap: anywhere; }
.crime-card-reward { color: #93e6aa; font-size: .86rem; font-weight: 800; margin-top: auto; }
.solo-crime-cards .solo-crime-card { height: auto; min-height: 150px; white-space: normal; }
.solo-crime-card > * { flex-shrink: 0; min-width: 0; max-width: 100%; }
.crime-card-state { overflow-wrap: anywhere; }
.crime-card-details { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; width: 100%; padding-top: 7px; border-top: 1px solid #ffffff12; color: #b6c0b8; font-size: .68rem; line-height: 1.4; }
.crime-card-details > span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 540px) {
  .solo-crime-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-height: 460px; }
  .solo-crime-cards .solo-crime-card { padding: 8px; gap: 7px; }
  .crime-card-top { flex-wrap: wrap; }
  .solo-crime-card strong { font-size: .8rem; }
  .crime-card-details { font-size: .65rem; }
}

.help-center-page {
  padding-top: 0;
}
.help-topbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: 54px;
  margin: -18px -18px 18px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, #141719, #0d0f10);
  text-align: center;
}
.help-topbar h1 {
  margin: 0;
  color: #f6f6f6;
  text-transform: uppercase;
  font-family: var(--display-font);
  font-size: 1.45rem;
}
.help-topbar button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #f2f2f2;
  font-size: 1.25rem;
}
.help-center-shell {
  display: grid;
  gap: 22px;
}
.help-category h2,
.help-detail-panel h2,
.help-rules-panel h2 {
  margin: 0 0 12px;
  color: #ffd8a3;
  text-transform: uppercase;
  font-family: var(--display-font);
  letter-spacing: 0;
}
.help-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(230px, 1fr));
  gap: 12px;
}
.help-card-grid button {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 14px;
  border: 1px solid rgba(206, 147, 35, 0.26);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(25, 28, 31, 0.98), rgba(14, 16, 17, 0.98));
  color: #f1f1f1;
  text-align: left;
  text-transform: none;
}
.help-card-grid button:hover,
.help-card-grid button.active {
  border-color: rgba(226, 166, 39, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 211, 119, 0.08), 0 0 22px rgba(210, 145, 30, 0.10);
}
.help-card-grid button > span,
.help-detail-panel header > span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(226, 166, 39, 0.36);
  border-radius: 8px;
  background: rgba(119, 85, 18, 0.26);
  color: #ffb400;
  font-weight: 900;
  font-size: 1.35rem;
}
.help-card-grid strong {
  display: block;
  color: #f4f4f4;
  font-size: 1.02rem;
}
.help-card-grid small {
  display: block;
  margin-top: 4px;
  color: #b9b1a8;
  line-height: 1.35;
}
.help-card-grid em {
  color: #d79712;
  font-style: normal;
  font-size: 2rem;
}
.help-detail-panel,
.help-rules-panel {
  padding: 18px;
  border: 1px solid rgba(206, 147, 35, 0.23);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17, 20, 22, 0.98), rgba(10, 12, 13, 0.98));
}
.help-detail-panel header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.help-detail-panel header small {
  color: #d79712;
  font-weight: 900;
  text-transform: uppercase;
}
.help-detail-panel header p {
  margin: 4px 0 0;
  color: #bdb7af;
}
.help-detail-body {
  display: grid;
  gap: 10px;
}
.help-detail-body p,
.help-rules-panel p {
  margin: 0;
  color: #d5d0c8;
  line-height: 1.55;
}
.help-detail-body p {
  padding: 10px 12px;
  border-radius: 7px;
  background: rgba(255,255,255,0.045);
}
.help-rules-panel div {
  display: grid;
  gap: 9px;
}
@media (max-width: 1100px) {
  .help-card-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}
@media (max-width: 700px) {
  .help-card-grid {
    grid-template-columns: 1fr;
  }
  .help-card-grid button {
    grid-template-columns: 48px 1fr auto;
  }
  .help-card-grid button > span,
  .help-detail-panel header > span {
    width: 46px;
    height: 46px;
  }
}

/* v65: equipamentos com estoque, premium, durabilidade e ativação */
.equipment-page .page-heading p { max-width: 900px; }
.equipment-balance {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 14px;
}
.equipment-balance span {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.22);
  border-radius: 6px;
  padding: 9px 12px;
  color: var(--muted);
}
.equipment-balance strong { color: var(--gold); }
.equipment-section { margin-bottom: 14px; }
.equipment-section-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}
.equipment-section-head h2,
.equipment-section-head p {
  margin: 0;
}
.equipment-section-head p {
  color: var(--muted);
  margin-top: 4px;
}
.equipment-section-head > span {
  color: var(--gold);
  font-weight: 900;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .equipment-section-head { align-items: stretch; flex-direction: column; }
}
.equipment-section h2 { margin-bottom: 12px; }
.equipment-grid { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.equipment-shop-card { align-content: start; min-height: 235px; }
.equipment-shop-card.premium { border-color: rgba(244, 181, 35, 0.38); box-shadow: inset 0 0 0 1px rgba(244,181,35,0.08); }
.equipment-shop-card.escape { border-color: rgba(0, 179, 255, 0.4); }
.equipment-card-head,
.equipment-meta,
.equipment-inventory-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.equipment-card-head strong { color: var(--green); }
.equipment-shop-card.premium .equipment-card-head strong { color: var(--gold); }
.equipment-meta { flex-wrap: wrap; justify-content: flex-start; }
.equipment-meta span {
  padding: 7px 9px;
  border-radius: 5px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 0.9rem;
}
.equipment-inventory { display: grid; gap: 10px; }
.equipment-inventory-row {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  border-radius: 6px;
  padding: 11px 12px;
}
.equipment-inventory-row div { display: grid; gap: 3px; }
.equipment-inventory-row span { color: var(--muted); }
.equipment-inventory-row em { color: var(--muted); font-style: normal; }
.equipment-inventory-row.active { border-color: rgba(30, 198, 87, 0.36); }
.equipment-inventory-row.active em { color: var(--green); }
.equipment-inventory-row.broken { opacity: 0.62; }
.equipment-inventory-row.broken em { color: var(--red); }
@media (max-width: 720px) {
  .equipment-inventory-row { align-items: stretch; flex-direction: column; }
  .equipment-inventory-row button { width: 100%; }
}

/* v66: perfil com abas reais e mensagens privadas */
.profile-tabs {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}
.profile-tabs button,
.profile-tabs span {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 7px;
  color: #f4d48a;
  font-weight: 900;
  min-height: 46px;
  text-align: center;
}
.profile-tabs button.active { background: rgba(244, 181, 35, 0.16); border-color: rgba(244,181,35,0.32); }
.button-icon { height: 16px; image-rendering: pixelated; margin-right: 6px; vertical-align: -2px; width: 16px; }
.muted-text { color: var(--muted); }
.achievements-card p.done { color: var(--green); }
.profile-status-card {
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
}
.achievements-wide {
  max-height: 640px;
  overflow: hidden;
}
.achievements-wide > small {
  color: var(--muted);
  display: block;
  font-weight: 900;
  margin: 4px 0 10px;
  text-transform: uppercase;
}
.achievement-list {
  display: grid;
  gap: 6px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}
.achievement-list p {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 7px 0;
}
.achievement-list p b {
  color: #d9e2ea;
}
.achievement-list p span,
.achievement-list p em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
}
.achievement-list p.hard b {
  color: #ffcf5a;
}
.achievement-list p.done b {
  color: var(--green);
}
@media (max-width: 900px) {
  .profile-status-card {
    grid-template-columns: 1fr;
  }
}
.messages-page { min-height: 680px; }
.message-privacy {
  align-items: center;
  background: rgba(0,0,0,0.24);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 12px;
}
.message-privacy span { color: var(--gold); font-weight: 900; }
.messages-layout {
  display: grid;
  gap: 12px;
  grid-template-columns: 330px minmax(0, 1fr);
}
.message-thread-list,
.message-conversation {
  background: rgba(12,17,20,0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 520px;
  padding: 14px;
}
.message-thread-list { display: flex; flex-direction: column; gap: 8px; }
.message-thread-list h2,
.message-conversation h2 { color: var(--cyan); font-size: 1.05rem; margin: 6px 0; text-transform: uppercase; }
.message-thread-list > button,
.friend-mini-list button {
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 7px;
  display: grid;
  gap: 9px;
  grid-template-columns: 42px 1fr auto;
  justify-items: start;
  min-height: 58px;
  padding: 8px;
  text-align: left;
}
.message-thread-list > button.active { border-color: rgba(244,181,35,0.42); background: rgba(244,181,35,0.09); }
.message-thread-list small { color: var(--muted); display: block; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-thread-list em { background: var(--red); border-radius: 999px; color: #fff; font-style: normal; min-width: 22px; padding: 3px 7px; text-align: center; }
.friend-mini-list { display: grid; gap: 7px; }
.friend-mini-list button { grid-template-columns: 34px 1fr; min-height: 42px; }
.message-conversation { display: grid; grid-template-rows: auto 1fr auto; }
.message-conversation header { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding-bottom: 10px; }
.private-message-list { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding: 14px 0; }
.private-message-list article {
  align-self: flex-start;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  max-width: min(680px, 86%);
  padding: 10px 12px;
}
.private-message-list article.mine { align-self: flex-end; border-color: rgba(44,230,190,0.22); background: rgba(44,230,190,0.07); }
.private-message-list p { color: #e8edf0; margin: 4px 0; }
.private-message-list small { color: var(--muted); }
.message-reply,
.guestbook-form { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) auto; }
.message-reply input,
.guestbook-form textarea { width: 100%; }
.message-reply button img { height: 18px; image-rendering: pixelated; width: 18px; }
.guestbook-form { grid-template-columns: 1fr; margin-bottom: 14px; }
.guestbook-form textarea { min-height: 120px; resize: vertical; }
.private-message-list.compact { max-height: 300px; }
@media (max-width: 860px) {
  .messages-layout { grid-template-columns: 1fr; }
  .message-thread-list, .message-conversation { min-height: auto; }
  .profile-tabs { grid-template-columns: 1fr; }
}

/* Shared scenery behind login and game panels. */
body { background: #080c10; isolation: isolate; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(rgba(3, 7, 10, .18), rgba(3, 7, 10, .36)), url('/src/assets/site-background.png') center center / cover no-repeat;
}
.game-shell, .auth-page { background: transparent; }
.game-content { background: rgba(10, 17, 22, .88); }
.auth-card { background: rgba(10, 17, 22, .94); }
@media (max-width: 700px) {
  body::before { background-position: 62% center; }
  .game-content { background: rgba(10, 17, 22, .92); }
}
