/* Local layer on top of vendor.css (the squadz.fun sheet).
   Squad theme matches the live default: near-black, mint, sun. */

:root:not([data-theme="light"]) {
  --bg: hsl(240 6% 4%);
  --bg2: hsl(240 5% 8%);
  --panel: hsl(240 5% 11%);
  --panel2: hsl(240 4% 14%);
  --rim: hsl(155 8% 18%);
  --rim2: hsl(155 8% 26%);
  --ink: #f4f7f5;
  --ink2: #c9d5ce;
  --mute: #8ea096;
  --mint: #2bd47d;
  --jade: #2bd47d;
  --sun: #bef264;
  --gold: #ffd37a;
  --coral: #ff8f75;
  --sky: #86cff2;
  --phos: #d2f57a;
  --btn: #2bd47d;
  --btn-ink: #06241a;
  --sun-ink: #0a0b0c;
  --btn-edge: #15885f;
  --e: #15885f;
  --sun-edge: #7fa83a;
  --shadow: #000;
  --aura1: color-mix(in srgb, #2bd47d 16%, transparent);
  --aura2: color-mix(in srgb, #86cff2 10%, transparent);
  color-scheme: dark;
}

.note {
  margin: 0;
  padding: 10px 20px 0;
  text-align: center;
  font: 500 13px/1.45 var(--fb);
  color: var(--ink2);
}
.note i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 99px;
  background: var(--mint);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 22%, transparent);
  vertical-align: 1px;
}

.xbtn .xl svg,
.xhead .xg svg {
  width: 14px;
  height: 14px;
  display: block;
}
#x-modal[hidden] { display: none; }
[data-prof] { cursor: pointer; }
.pf-av > img, .pf-cart .art img { width: 100%; height: 100%; object-fit: cover; display: block; }

.av > img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hA-mascots .look {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.12s ease-out;
}
.hA-logo.coin { position: relative; inset: auto; }
.hA-logo img,
.coin img,
.pk-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.av.dot {
  display: grid;
  place-items: center;
  font: 800 13px/1 var(--fd);
  color: #10161a;
}
.pk.ended,
.pk.expired,
.pk.cancelled { --acc: var(--mute); }
.pk.hot { --acc: var(--coral); }
.pk-big { font: 800 28px/1 var(--fd); letter-spacing: -0.04em; }
.pk-big small { font-size: 0.55em; opacity: 0.8; }

.lead { color: var(--ink2); max-width: 62ch; }
.section { margin-top: 42px; }
.kick {
  font-family: var(--fm);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 8px;
}
.hint { margin: 8px 0 14px; color: var(--ink2); }
.empty,
.loading {
  background: var(--panel);
  border: 1px dashed var(--rim2);
  border-radius: 18px;
  padding: 22px;
}
.empty b { display: block; font-family: var(--fd); font-size: 1.3rem; margin-bottom: 6px; }
.back { color: var(--mute); text-decoration: none; font-size: 14px; }

.lobby { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 12px; align-items: start; }
.create { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 12px; align-items: start; margin-top: 18px; }
.lob-hero { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 8px; }
.lob-hero .hA-logo { width: 72px; height: 72px; flex: none; }
.lob-hero .stack { margin-top: 10px; }
.sub { color: var(--ink2); }
dl.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 14px 0; }
dl.facts div { display: flex; flex-direction: column; gap: 2px; background: none; border: 0; padding: 0; }
dt { color: var(--mute); font-size: 13px; }
dd { margin: 0; }
.links { display: flex; flex-direction: column; gap: 8px; }
.links a { color: var(--mint); }
.meter, .split:not(.panel) { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--bg2); margin: 12px 0; }
.meter i, .split:not(.panel) i { display: block; height: 100%; }
.meter i { background: var(--mint); }
.split:not(.panel) { height: 14px; }
.split-key { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--mute); font-size: 13px; }
.split-key b { color: var(--ink); font-weight: 650; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-family: var(--fd); font-size: 1.2rem; margin-bottom: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label, .fl { font-size: 14px; color: var(--ink2); }
.slv { font-family: var(--fd); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
.nums { display: grid; gap: 8px; }
.nums div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rim); }
.me-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.me-form .in { flex: 1; min-width: 240px; width: auto; }
.docs { display: grid; gap: 14px; max-width: 760px; }
.docs article { background: var(--panel); border: 1px solid var(--rim); border-radius: 18px; padding: 16px 18px; }
.docs h2 { font-size: 1.25rem; margin-bottom: 6px; }
.steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--rim);
  border-radius: 18px;
  padding: 16px;
}
.steps .n {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #06241a;
  font-family: var(--fd);
  font-weight: 800;
}
.steps h3 { font-size: 1.15rem; margin: 0; }
.steps em { color: var(--mute); font-style: normal; font-family: var(--fm); font-size: 12px; }
.checks { display: grid; gap: 8px; margin-top: 16px; }
.checks div {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--bg2);
  border: 1px solid var(--rim);
  border-radius: 14px;
  padding: 12px 14px;
}
.checks i { width: 18px; height: 18px; border-radius: 99px; background: var(--mint); flex: none; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--rim); vertical-align: top; }
th { color: var(--mute); font-weight: 600; font-size: 12px; }
@media (max-width: 860px) {
  .lobby, .create, dl.facts { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  #wallet > a.iconbtn { display: none !important; }
}
.hd-ca {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 4px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--rim2);
  background: var(--bg2);
  color: var(--ink);
  font: 700 13px/1 var(--fd);
  min-width: 0;
}
.hd-ca[hidden] { display: none !important; }
.hd-ca .mono {
  font-family: var(--fm);
  font-weight: 500;
  color: var(--mint);
  letter-spacing: 0;
  white-space: nowrap;
}
.hd-ca-copy, .hd-ca-buy {
  height: 32px;
  border-radius: 999px;
  padding: 0 10px;
  font: 700 12px/1 var(--fd);
  cursor: pointer;
  flex: none;
}
.hd-ca-copy {
  border: 1px solid var(--rim2);
  background: transparent;
  color: var(--ink2);
}
.hd-ca-copy:hover { color: var(--ink); }
.hd-ca-buy {
  display: inline-flex;
  align-items: center;
  background: var(--mint);
  color: var(--on-mint);
  text-decoration: none;
  box-shadow: 0 3px 0 var(--btn-edge);
}
.hd-ca-buy:hover { filter: brightness(1.05); }
@media (max-width: 900px) {
  .hd-ca-k { display: none; }
  .hd-ca { padding-left: 10px; }
}
@media (max-width: 640px) {
  .topin { flex-wrap: wrap; align-items: center; row-gap: 10px; }
  #wallet { display: contents; }
  #x-btn { order: 1; margin-left: auto; flex: none; }
  .hd-ca {
    order: 2;
    flex: 1 0 100%;
    height: 40px;
    gap: 8px;
    margin: 0;
    padding: 0 4px 0 14px;
    justify-content: flex-start;
  }
  .hd-ca .mono { flex: 1; min-width: 0; overflow: hidden; font-size: 13px; }
  .hd-ca-copy, .hd-ca-buy { height: 32px; padding: 0 12px; }
}
footer .ft-r #ft-ca .mono {
  margin-left: 6px;
  font-family: var(--fm);
  font-weight: 500;
  color: var(--mint);
}
#x-go[aria-busy="true"] { opacity: 1; cursor: default; }
#x-go .spin {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  flex: none;
  animation: lxspin .8s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  #x-go .spin { animation: none; }
}
