:root{
  --bg:#07090d;
  --panel:#101620;
  --soft:#172231;
  --line:rgba(255,255,255,.12);
  --text:#f7fbff;
  --muted:#a9b8c7;
  --accent:#48d6ff;
  --gold:#f4c542;
  --bad:#ff5c7a;
  --good:#5cffab;
}

*{box-sizing:border-box}

body{
  margin:0;
  background:#07090d;
  color:var(--text);
  font-family:Arial,Helvetica,sans-serif;
}

a{color:inherit}

.topbar{
  position:sticky;
  top:0;
  z-index:5000;
  display:flex;
  gap:18px;
  align-items:center;
  padding:14px 22px;
  background:rgba(7,9,13,.94);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(12px);
}

.brand{
  font-weight:900;
  text-decoration:none;
  font-size:24px;
  color:var(--accent);
  white-space:nowrap;
}

.brand span{color:var(--gold)}

nav{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

nav a{
  text-decoration:none;
  color:var(--muted);
  font-weight:700;
}

nav a:hover{color:var(--text)}

.quick-search{
  margin-left:auto;
  display:flex;
  gap:6px;
  min-width:300px;
}

.header-tools{
  display:flex;
  gap:8px;
  align-items:center;
  position:relative;
}

.header-tools details{position:relative}

.header-tools summary{
  list-style:none;
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:8px;
  background:rgba(255,255,255,.05);
  color:var(--text);
  font-weight:900;
  cursor:pointer;
}

.header-tools summary::-webkit-details-marker{display:none}

.menu-panel{
  position:absolute;
  right:0;
  top:48px;
  z-index:7000;
  width:min(92vw,360px);
  border:1px solid var(--line);
  border-radius:8px;
  background:rgba(7,9,13,.98);
  box-shadow:0 22px 50px rgba(0,0,0,.45);
  padding:16px;
}

.command-panel{
  display:grid;
  gap:14px;
}

.command-panel section{
  display:grid;
  gap:7px;
  padding-bottom:10px;
  border-bottom:1px solid var(--line);
}

.command-panel section:last-child{
  border-bottom:0;
  padding-bottom:0;
}

.command-panel h3,
.help-panel h3{
  margin:0;
  color:var(--gold);
  font-size:14px;
  text-transform:uppercase;
}

.command-panel a{
  color:var(--text);
  text-decoration:none;
  font-weight:800;
}

.command-panel a:hover{color:var(--accent)}

.help-panel p{
  color:var(--muted);
  margin:8px 0 0;
  line-height:1.45;
}

.help-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}

.help-links a{
  border:1px solid var(--line);
  border-radius:8px;
  color:var(--text);
  font-size:13px;
  font-weight:800;
  padding:7px 9px;
  text-decoration:none;
}

.help-links a:hover{
  border-color:rgba(72,214,255,.5);
  color:var(--accent);
}

.quick-search input,
.big-search input,
.hero-search input,
input,
select,
textarea{
  background:#0b1018;
  color:var(--text);
  border:1px solid var(--line);
  border-radius:8px;
  padding:11px;
  width:100%;
}

button,
.btn{
  display:inline-block;
  background:linear-gradient(135deg,var(--accent),#5b86ff);
  border:0;
  border-radius:8px;
  color:#001018;
  text-decoration:none;
  font-weight:900;
  padding:12px 16px;
  cursor:pointer;
}

.ghost{
  background:transparent;
  border:1px solid var(--line);
  color:var(--text);
}

.full{
  display:block;
  text-align:center;
  margin-top:12px;
}

main{
  width:min(96vw,1500px);
  max-width:none;
  margin:0 auto;
  padding:28px 24px 150px;
}

.hero{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(340px,.75fr);
  gap:42px;
  align-items:center;
  padding:70px 42px;
  margin:28px 0;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
}

.compact-hero{
  grid-template-columns:1fr;
  padding:42px 0;
  margin:0;
  border:0;
  border-radius:0;
}

.hero-visual{
  position:relative;
  min-height:460px;
  display:grid;
  align-items:center;
}

.hero-visual:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(135deg,rgba(72,214,255,.16),rgba(244,197,66,.08)),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='520' viewBox='0 0 900 520'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.10'%3E%3Cpath d='M65 460 220 300 310 335 450 160 610 210 780 65'/%3E%3Cpath d='M120 90h650M130 180h520M210 260h610M70 355h760'/%3E%3Cpath d='M190 35v430M365 25v455M545 55v430M720 40v440'/%3E%3C/g%3E%3C/svg%3E") center/cover;
  border-radius:8px;
}

.hero h1{
  font-size:clamp(42px,5.8vw,78px);
  line-height:.98;
  margin:0 0 18px;
  max-width:820px;
}

.hero p{
  font-size:20px;
  color:var(--muted);
  max-width:850px;
}

.eyebrow{
  color:var(--gold)!important;
  text-transform:uppercase;
  font-weight:900;
  letter-spacing:1px;
}

.hero-card,
.card,
.panel,
.notice,
.stat,
.row-card{
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025));
  border:1px solid var(--line);
  border-radius:8px;
  padding:22px;
  box-shadow:0 18px 40px rgba(0,0,0,.22);
}

.hero-card{
  max-width:440px;
  justify-self:end;
  width:100%;
}

.hero-search,
.big-search{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  margin:22px 0;
  max-width:930px;
}

.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.stat-list{
  display:grid;
  gap:12px;
}

.stat-list span{
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:var(--muted);
  border-bottom:1px solid var(--line);
  padding-bottom:10px;
}

.stat-list strong{
  color:var(--text);
  font-size:26px;
}

.grid{display:grid;gap:20px}

.cards{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}

.card{
  text-decoration:none;
  transition:.15s transform;
  min-height:150px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}

.card:hover,.row-card:hover{
  transform:translateY(-2px);
  border-color:rgba(72,214,255,.45);
}

.card h3{margin:4px 0 10px}

.card p,.panel p,dd,small,.meta{
  color:var(--muted);
  line-height:1.55;
}

.intel-card{position:relative;overflow:hidden}

.intel-card:before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:3px;
  background:linear-gradient(90deg,var(--accent),var(--gold));
  opacity:.8;
}

.panel code,.card code,.notice code{
  background:rgba(255,255,255,.08);
  border:1px solid var(--line);
  border-radius:6px;
  padding:1px 5px;
  color:var(--text);
}

.dot{
  display:inline-block;
  width:12px;
  height:12px;
  border-radius:99px;
  background:var(--accent);
}

.page-head{padding:24px 0}

.page-head h1{font-size:44px;margin:0 0 8px}

.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:16px;
  margin:28px 0 14px;
}

.section-head h2{margin:0;font-size:30px}

.section-band{
  border-block:1px solid var(--line);
  padding:20px 0;
  margin:14px 0 30px;
}

.map{
  height:70vh;
  min-height:520px;
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  z-index:100;
}

.map-stage{position:relative;z-index:1}

.gta-map-shell{
  background:
    linear-gradient(90deg,rgba(72,214,255,.08) 1px,transparent 1px),
    linear-gradient(rgba(72,214,255,.08) 1px,transparent 1px),
    radial-gradient(circle at 30% 20%,rgba(244,197,66,.12),transparent 28%),
    radial-gradient(circle at 70% 65%,rgba(72,214,255,.14),transparent 30%),
    #080d14;
  background-size:42px 42px,42px 42px,100% 100%,100% 100%,100% 100%;
}

.map-callout{
  position:absolute;
  left:18px;
  bottom:18px;
  right:18px;
  z-index:500;
  display:grid;
  gap:4px;
  max-width:620px;
  border:1px solid var(--line);
  border-radius:8px;
  background:rgba(7,9,13,.86);
  backdrop-filter:blur(10px);
  padding:14px;
}

.map-callout span{color:var(--muted)}

.mini-map{
  height:320px;
  border-radius:8px;
  overflow:hidden;
  border:1px solid var(--line);
}

.map-shell{
  display:grid;
  grid-template-columns:320px 1fr;
  gap:16px;
}

.map-sidebar{display:grid;align-content:start;gap:14px}

.map-results{
  display:grid;
  gap:8px;
  max-height:430px;
  overflow:auto;
}

.map-results a{
  display:grid;
  gap:4px;
  text-decoration:none;
  border:1px solid var(--line);
  border-radius:8px;
  padding:10px;
  background:rgba(255,255,255,.04);
}

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

.map-preview{
  display:grid;
  grid-template-columns:1fr 320px;
  gap:16px;
  align-items:stretch;
}

.preview-copy{
  border:1px solid var(--line);
  border-radius:8px;
  padding:20px;
  background:rgba(255,255,255,.04);
}

.location-layout{display:grid;grid-template-columns:1.2fr .8fr;gap:18px}

.form{display:grid;gap:14px;max-width:860px}

.form label{display:grid;gap:7px;color:var(--muted);font-weight:800}

.narrow{max-width:420px}

.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}

.check{display:flex!important;align-items:center;gap:8px}

.check input{width:auto}

.notice.good{border-color:rgba(92,255,171,.5);color:var(--good)}

.notice.bad{border-color:rgba(255,92,122,.5);color:var(--bad)}

.stats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:18px;
  margin:20px 0;
}

.stat{
  min-height:118px;
  display:grid;
  align-content:center;
  gap:8px;
}

.stat strong{
  font-size:34px;
  display:block;
  line-height:1.05;
}

.stat span{
  color:var(--muted);
  line-height:1.3;
}

.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:8px}

table{width:100%;border-collapse:collapse;background:rgba(255,255,255,.03)}

th,td{text-align:left;padding:12px;border-bottom:1px solid var(--line)}

.gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:18px}

.gallery img{width:100%;border-radius:8px;display:block}

.gallery figure{margin:0}

.gallery figcaption{color:var(--muted);font-size:13px;margin-top:6px}

.tag-row,.track-grid{display:flex;gap:8px;flex-wrap:wrap}

.tag-row a,.track-grid span,.track-grid a{
  border:1px solid var(--line);
  border-radius:999px;
  padding:8px 11px;
  text-decoration:none;
  background:rgba(255,255,255,.04);
  color:var(--muted);
}

.track-grid a:hover{border-color:rgba(72,214,255,.45);color:var(--text)}

.intel-list{display:grid;grid-template-columns:150px 1fr;gap:10px;margin:18px 0 0}

.intel-list dt{color:var(--muted);font-weight:900}

.timeline{display:grid;border:1px solid var(--line);border-radius:8px;overflow:hidden}

.timeline a,.timeline article{
  display:flex;
  justify-content:space-between;
  gap:12px;
  text-decoration:none;
  padding:13px 15px;
  border-bottom:1px solid var(--line);
}

.timeline a:last-child,.timeline article:last-child{border-bottom:0}

.timeline span{color:var(--muted)}

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

.graph-list article{
  display:grid;
  gap:4px;
  border:1px solid var(--line);
  border-radius:8px;
  background:rgba(255,255,255,.04);
  padding:13px;
}

.graph-list span,.graph-list small{color:var(--muted)}

.profile-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:18px;
  align-items:stretch;
  border:1px solid var(--line);
  border-radius:8px;
  padding:24px;
  margin-bottom:18px;
  background:
    linear-gradient(135deg,rgba(72,214,255,.14),rgba(244,197,66,.08)),
    rgba(255,255,255,.035);
}

.profile-hero h2{
  margin:0 0 8px;
  font-size:34px;
}

.rank-card{
  display:grid;
  gap:8px;
  align-content:center;
  border:1px solid var(--line);
  border-radius:8px;
  padding:18px;
  background:rgba(7,9,13,.52);
}

.rank-card span,
.reward-strip span{
  color:var(--muted);
  font-weight:900;
  text-transform:uppercase;
  font-size:12px;
}

.rank-card strong,
.reward-strip strong{
  font-size:30px;
  color:var(--gold);
}

.progress-wrap{
  display:grid;
  gap:8px;
  max-width:680px;
  margin-top:18px;
}

.progress{
  height:12px;
  overflow:hidden;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.25);
}

.progress i{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--accent),var(--gold));
}

.reward-strip{
  display:grid;
  grid-template-columns:repeat(3,minmax(120px,1fr)) auto;
  gap:12px;
  align-items:center;
  border:1px solid var(--line);
  border-radius:8px;
  padding:14px;
  margin:18px 0;
  background:rgba(255,255,255,.04);
}

.reward-strip div{display:grid;gap:4px}

.badge-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:14px;
}

.badge-card{
  display:grid;
  gap:8px;
  justify-items:start;
  border:1px solid var(--line);
  border-radius:8px;
  padding:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025));
}

.badge-card img{
  width:64px;
  height:64px;
}

.badge-card h3{margin:0}

.badge-card p{margin:0;color:var(--muted)}

.badge-card.muted{opacity:.72}

.badge-card small{
  font-weight:900;
  text-transform:uppercase;
}

.rarity-common{border-color:rgba(169,184,199,.45)}
.rarity-uncommon{border-color:rgba(92,255,171,.55)}
.rarity-rare{border-color:rgba(72,214,255,.62)}
.rarity-epic{border-color:rgba(178,119,255,.7)}
.rarity-legendary{border-color:rgba(244,197,66,.78);box-shadow:0 16px 34px rgba(244,197,66,.08)}
.rarity-mythic{border-color:rgba(255,92,122,.85);box-shadow:0 16px 38px rgba(255,92,122,.12)}

.rarity-common small{color:var(--muted)}
.rarity-uncommon small{color:var(--good)}
.rarity-rare small{color:var(--accent)}
.rarity-epic small{color:#b277ff}
.rarity-legendary small{color:var(--gold)}
.rarity-mythic small{color:var(--bad)}

.social-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.chat-layout{
  display:grid;
  grid-template-columns:300px 1fr;
  gap:16px;
  align-items:start;
}

.chat-panel{display:grid;gap:14px}

.chat-messages{
  display:grid;
  gap:10px;
  max-height:58vh;
  overflow:auto;
  padding-right:6px;
}

.chat-messages article{
  border:1px solid var(--line);
  border-radius:8px;
  padding:12px;
  background:rgba(255,255,255,.035);
}

.chat-messages p{margin:6px 0;color:var(--text)}

.chat-form{
  max-width:none;
  grid-template-columns:1fr auto;
  align-items:end;
}

.crew-card{
  border-color:color-mix(in srgb,var(--profile-color,#48d6ff),transparent 60%);
}

.level-ladder{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:10px;
}

.level-ladder article{
  display:flex;
  justify-content:space-between;
  gap:12px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:12px;
  background:rgba(255,255,255,.04);
}

.level-ladder span{color:var(--muted)}

.leaderboard-table td strong{display:block}

.leaderboard-table td span{color:var(--muted);font-size:13px}

.achievement-card{
  border-top:3px solid rgba(244,197,66,.75);
}

.credit-strip{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.credit-strip span{
  border:1px solid var(--line);
  border-radius:999px;
  padding:9px 12px;
  color:var(--muted);
  background:rgba(255,255,255,.05);
}

.credit-strip strong{color:var(--gold)}

.public-profile{
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:8px;
  margin-bottom:24px;
  background:rgba(255,255,255,.04);
  box-shadow:0 0 0 1px color-mix(in srgb,var(--profile-color,#48d6ff),transparent 60%);
}

.profile-banner{
  min-height:150px;
  background:
    linear-gradient(180deg,rgba(7,9,13,.05),rgba(7,9,13,.72)),
    linear-gradient(135deg,color-mix(in srgb,var(--profile-color,#48d6ff),transparent 66%),rgba(244,197,66,.10)),
    linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px),
    #0b1018;
  background-size:cover,cover,36px 36px,auto;
  background-position:center;
}

.profile-main{
  display:flex;
  gap:22px;
  align-items:flex-end;
  padding:0 28px 28px;
  margin-top:-58px;
}

.profile-main > div:last-child{
  min-width:0;
  padding-bottom:8px;
}

.profile-main .eyebrow{
  margin:0 0 8px;
}

.profile-main h1{
  margin:0 0 8px;
  line-height:1.02;
}

.profile-main p:last-child{
  margin:0;
  color:var(--muted);
  line-height:1.45;
}

.avatar{
  width:118px;
  height:118px;
  border-radius:8px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border:5px solid var(--panel);
  background:var(--profile-color,var(--accent));
  color:#001018;
  font-weight:900;
  font-size:46px;
  overflow:hidden;
  box-shadow:0 18px 38px rgba(0,0,0,.36);
}

.avatar.small{
  width:54px;
  height:54px;
  border-width:2px;
  font-size:22px;
}

.avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.completion-list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:8px;
  margin-top:14px;
}

.completion-list span{
  display:flex;
  justify-content:space-between;
  gap:10px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:10px;
  color:var(--muted);
  background:rgba(255,255,255,.035);
}

.completion-list .done{
  color:var(--text);
  border-color:rgba(92,255,171,.45);
}

.profile-complete{
  box-shadow:0 0 0 2px var(--gold),0 18px 44px rgba(244,197,66,.16);
}

.public-profile + .stats{
  margin-top:24px;
}

.public-profile ~ .grid.cards{
  gap:22px;
  margin-top:22px;
  margin-bottom:28px;
}

.public-profile ~ .grid.cards .card{
  padding:28px;
}

.public-profile ~ section{
  margin-top:24px;
}

.member-card{
  border-color:color-mix(in srgb,var(--profile-color,#48d6ff),transparent 60%);
}

.prestige-gray{--profile-color:#a9b8c7}
.prestige-green{--profile-color:#5cffab}
.prestige-blue{--profile-color:#48d6ff}
.prestige-purple{--profile-color:#b277ff}
.prestige-gold{--profile-color:#f4c542}
.prestige-red{--profile-color:#ff5c7a}
.prestige-animated{--profile-color:#48d6ff;animation:prestigePulse 3s linear infinite}
.prestige-legendary{--profile-color:#f4c542;animation:legendaryPulse 2.4s linear infinite}

.effect-aura{box-shadow:0 0 0 1px var(--profile-color),0 0 34px color-mix(in srgb,var(--profile-color),transparent 78%)}
.effect-glow{animation:legendaryPulse 2.8s linear infinite}
.effect-particles{position:relative;overflow:hidden}
.effect-particles:after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background-image:radial-gradient(circle,rgba(255,255,255,.55) 1px,transparent 2px);
  background-size:34px 34px;
  opacity:.25;
  animation:particleDrift 9s linear infinite;
}
.effect-burst{box-shadow:0 0 0 2px var(--gold),0 0 56px rgba(244,197,66,.2),0 0 90px rgba(72,214,255,.12)}
.effect-legendary-bg{
  background:
    linear-gradient(135deg,rgba(244,197,66,.12),rgba(72,214,255,.08),rgba(255,92,122,.08)),
    rgba(255,255,255,.04);
  animation:prestigePulse 4s linear infinite;
}
.effect-prestige-custom{animation:legendaryPulse 1.8s linear infinite}

@keyframes prestigePulse{
  0%,100%{filter:hue-rotate(0deg)}
  50%{filter:hue-rotate(140deg)}
}

@keyframes legendaryPulse{
  0%,100%{box-shadow:0 0 0 1px rgba(244,197,66,.45),0 0 34px rgba(244,197,66,.14)}
  50%{box-shadow:0 0 0 2px rgba(244,197,66,.8),0 0 46px rgba(72,214,255,.22)}
}

@keyframes particleDrift{
  from{background-position:0 0}
  to{background-position:120px 220px}
}

.location-index{display:grid;gap:10px}

.row-card{
  display:grid;
  grid-template-columns:auto 1fr 160px 240px;
  gap:12px;
  align-items:center;
  text-decoration:none;
}

.site-footer{
  border-top:1px solid var(--line);
  padding:28px 22px;
  display:grid;
  grid-template-columns:minmax(340px,420px) repeat(5,minmax(130px,1fr));
  gap:28px;
  color:var(--muted);
  background:
    radial-gradient(circle at 12% 8%,rgba(72,214,255,.12),transparent 28%),
    radial-gradient(circle at 28% 100%,rgba(244,197,66,.08),transparent 30%),
    rgba(255,255,255,.03);
}

.footer-brand{
  min-width:0;
  display:grid;
  gap:12px;
  align-content:start;
}

.site-footer strong{color:var(--text);font-size:24px}

.footer-platform-frame{
  position:relative;
  display:block;
  width:100%;
  max-width:420px;
  aspect-ratio:16/9;
  overflow:hidden;
  border:1px solid rgba(72,214,255,.24);
  border-radius:8px;
  background:#081019;
  box-shadow:
    inset 0 0 0 1px rgba(244,197,66,.08),
    0 16px 32px rgba(0,0,0,.32),
    0 0 28px rgba(72,214,255,.08);
}

.footer-platform-frame:after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(135deg,rgba(72,214,255,.16),transparent 42%,rgba(244,197,66,.12)),
    linear-gradient(0deg,rgba(7,9,13,.36),rgba(7,9,13,.08));
  mix-blend-mode:screen;
}

.footer-platform-image{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:hue-rotate(-12deg) saturate(.72) brightness(.82) contrast(1.08);
}

.footer-links{display:grid;gap:8px;align-content:start}

.footer-links a{text-decoration:none;color:var(--muted);font-weight:700}

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

.copyright,
.disclaimer{
  grid-column:1/-1;
  border-top:1px solid var(--line);
  padding-top:16px;
  margin:0;
  font-size:13px;
}

.copyright{
  color:var(--text);
  font-weight:800;
}

.chat-dock{
  position:fixed;
  right:18px;
  bottom:12px;
  z-index:6500;
  display:grid;
  justify-items:end;
  gap:8px;
  max-width:calc(100vw - 36px);
  font-size:14px;
}

.chat-dock.is-collapsed .chat-window,
.chat-dock.is-collapsed .chat-settings-popover{display:none}

.chat-dock-bar{
  display:flex;
  gap:8px;
  align-items:center;
  border:1px solid rgba(72,214,255,.24);
  border-radius:8px;
  background:linear-gradient(180deg,rgba(16,22,32,.98),rgba(7,9,13,.98));
  box-shadow:0 -14px 34px rgba(0,0,0,.34),0 0 24px rgba(72,214,255,.08);
  padding:8px;
}

.chat-dock button,
.chat-dock-form button{
  border:1px solid var(--line);
  border-radius:8px;
  background:rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
  font-weight:900;
  padding:9px 11px;
}

.chat-dock button:hover,
.chat-dock button.is-active{
  border-color:rgba(72,214,255,.55);
  color:var(--accent);
}

.chat-dock button span{
  display:inline-grid;
  min-width:19px;
  height:19px;
  place-items:center;
  margin-left:6px;
  border-radius:99px;
  background:var(--bad);
  color:#fff;
  font-size:11px;
}

.chat-window{
  width:min(420px,calc(100vw - 36px));
  border:1px solid rgba(72,214,255,.24);
  border-radius:8px;
  overflow:hidden;
  background:rgba(7,9,13,.98);
  box-shadow:0 22px 50px rgba(0,0,0,.48);
}

.chat-window header{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(90deg,rgba(72,214,255,.12),rgba(244,197,66,.06));
}

.chat-window header span,
.chat-window header a{
  margin-left:auto;
  color:var(--muted);
  text-decoration:none;
  font-size:12px;
  font-weight:900;
}

.chat-window header button{padding:5px 8px}

.chat-window-body{
  display:grid;
  gap:9px;
  max-height:310px;
  overflow:auto;
  padding:12px;
}

.chat-line{
  display:grid;
  gap:4px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:8px;
  padding:10px;
  background:rgba(255,255,255,.035);
}

.chat-line.mine{border-color:rgba(72,214,255,.28)}

.chat-line strong{
  display:flex;
  gap:8px;
  align-items:center;
  color:var(--text);
}

.chat-line strong a{
  color:var(--text);
  text-decoration:none;
}

.chat-level{
  color:var(--gold);
  font-size:11px;
  text-transform:uppercase;
}

.chat-line p{margin:0;color:var(--text);line-height:1.35}

.chat-line small{color:var(--muted)}

.chat-line menu{
  display:flex;
  gap:8px;
  margin:4px 0 0;
  padding:0;
}

.chat-line menu button{
  padding:4px 7px;
  font-size:12px;
}

.chat-dock-form{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  padding:10px;
  border-top:1px solid var(--line);
}

.chat-dock-form a{
  color:var(--accent);
  font-weight:900;
  text-decoration:none;
}

.chat-private-target{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  padding:10px;
  border-bottom:1px solid var(--line);
}

.chat-settings-popover{
  width:min(280px,calc(100vw - 36px));
  border:1px solid rgba(72,214,255,.24);
  border-radius:8px;
  background:rgba(7,9,13,.98);
  box-shadow:0 22px 50px rgba(0,0,0,.45);
  padding:12px;
}

.chat-settings-popover,
.chat-settings-popover label{
  display:grid;
  gap:8px;
}

.chat-settings-popover a{
  color:var(--accent);
  font-weight:900;
  text-decoration:none;
}

body{padding-bottom:58px}

@media(max-width:1100px){
  .site-footer{
    grid-template-columns:minmax(280px,360px) repeat(3,minmax(128px,1fr));
    gap:22px;
  }

  main{
    width:min(96vw,1280px);
    padding:24px 20px 150px;
  }

  .hero{
    grid-template-columns:1fr;
    padding:54px 30px;
    gap:28px;
  }

  .hero-card{
    justify-self:stretch;
    max-width:none;
  }

  .hero-visual{
    min-height:auto;
  }
}

@media(max-width:900px){
  .topbar,.hero,.location-layout,.two,.map-shell,.map-preview,.site-footer,.profile-hero,.reward-strip,.profile-main,.chat-layout,.chat-form{display:block}

  .quick-search{margin-top:12px;min-width:0}

  .quick-search input{max-width:none}

  nav{margin:10px 0}

  .header-tools{
    margin-top:12px;
    justify-content:flex-end;
  }

  .menu-panel{
    right:0;
  }

  .hero{padding:42px 22px}

  .hero h1{font-size:42px}

  main{
    padding-bottom:170px;
  }

  .public-profile{
    margin-bottom:22px;
  }

  .profile-banner{
    min-height:126px;
  }

  .profile-main{
    display:flex;
    align-items:flex-end;
    gap:14px;
    padding:0 18px 22px;
    margin-top:-44px;
  }

  .profile-main h1{
    font-size:28px;
  }

  .avatar{
    width:88px;
    height:88px;
    border-width:4px;
    font-size:34px;
    margin-bottom:0;
  }

  .stats{
    grid-template-columns:repeat(auto-fit,minmax(138px,1fr));
    gap:14px;
    margin:16px 0;
  }

  .stat{
    min-height:104px;
    padding:18px;
  }

  .stat strong{
    font-size:28px;
  }

  .cards{
    grid-template-columns:1fr;
  }

  .card{
    min-height:auto;
    padding:22px;
  }

  .map-sidebar{margin-bottom:12px}

  .row-card{grid-template-columns:auto 1fr}

  .row-card span:not(.dot),.row-card small{grid-column:2}

  .timeline a,.timeline article{display:grid}

  .hero-search,.big-search{grid-template-columns:1fr}

  .footer-links{margin-top:18px}

  .reward-strip div,
  .reward-strip a{
    margin-top:10px;
  }

  .chat-dock{
    left:8px;
    right:8px;
    bottom:8px;
    max-width:none;
  }

  .chat-dock-bar{
    width:100%;
    overflow:auto;
  }

  .chat-window{
    width:100%;
  }

  .chat-window-body{
    max-height:42vh;
  }
}
