/* Mono Chat page styles. Theme block (vars, galaxy background, nav, card, footer) copied verbatim from members/index.html so /chat matches the site; chat-specific rules below. External file so the page CSP needs no inline script. */
:root {
  --bg: #2a1f4a;
  --bg-deep: #141022;
  --bg-mid: #3b2a6b;
  --ink: #f3efff;
  --muted: #c4b8e0;
  --muted-2: #8f82b5;
  --purple: #a78bfa;
  --purple-soft: rgba(167, 139, 250, 0.32);
  --cyan: #67e8f9;
  --cyan-hot: #a5f3fc;
  --lavender: #c4b5fd;
  --card: rgba(18, 12, 36, 0.55);
  --card-border: rgba(196, 181, 253, 0.18);
  --glass: rgba(167, 139, 250, 0.08);
  --radius: 22px;
  --shadow: 0 24px 64px rgba(8, 4, 24, 0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* Faded galaxy stars (match Mono's sweater) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22700%22%20height%3D%22700%22%20viewBox%3D%220%200%20700%20700%22%3E%3Ccircle%20cx%3D%22226.7%22%20cy%3D%22105.6%22%20r%3D%221.6%22%20fill%3D%22rgb%28232%2C200%2C255%29%22%20fill-opacity%3D%220.37%22/%3E%3Ccircle%20cx%3D%2265.9%22%20cy%3D%22408.0%22%20r%3D%221.3%22%20fill%3D%22rgb%28255%2C255%2C255%29%22%20fill-opacity%3D%220.46%22/%3E%3Ccircle%20cx%3D%22303.6%22%20cy%3D%2248.9%22%20r%3D%220.6%22%20fill%3D%22rgb%28255%2C255%2C255%29%22%20fill-opacity%3D%220.63%22/%3E%3Ccircle%20cx%3D%22578.8%22%20cy%3D%2286.7%22%20r%3D%220.8%22%20fill%3D%22rgb%28232%2C200%2C255%29%22%20fill-opacity%3D%220.67%22/%3E%3Ccircle%20cx%3D%22663.4%22%20cy%3D%22404.0%22%20r%3D%221.1%22%20fill%3D%22rgb%28255%2C255%2C255%29%22%20fill-opacity%3D%220.37%22/%3E%3Ccircle%20cx%3D%2232.6%22%20cy%3D%22600.9%22%20r%3D%220.9%22%20fill%3D%22rgb%28232%2C200%2C255%29%22%20fill-opacity%3D%220.56%22/%3E%3Ccircle%20cx%3D%2282.5%22%20cy%3D%22215.9%22%20r%3D%221.6%22%20fill%3D%22rgb%28232%2C200%2C255%29%22%20fill-opacity%3D%220.44%22/%3E%3Ccircle%20cx%3D%22399.8%22%20cy%3D%22131.5%22%20r%3D%220.6%22%20fill%3D%22rgb%28255%2C255%2C255%29%22%20fill-opacity%3D%220.62%22/%3E%3Ccircle%20cx%3D%22395.1%22%20cy%3D%22433.3%22%20r%3D%221.1%22%20fill%3D%22rgb%28255%2C214%2C250%29%22%20fill-opacity%3D%220.69%22/%3E%3Ccircle%20cx%3D%22544.1%22%20cy%3D%22325.9%22%20r%3D%221.1%22%20fill%3D%22rgb%28255%2C255%2C255%29%22%20fill-opacity%3D%220.53%22/%3E%3Ccircle%20cx%3D%22556.1%22%20cy%3D%22489.3%22%20r%3D%220.8%22%20fill%3D%22rgb%28255%2C214%2C250%29%22%20fill-opacity%3D%220.39%22/%3E%3Ccircle%20cx%3D%22367.6%22%20cy%3D%22612.6%22%20r%3D%221.6%22%20fill%3D%22rgb%28232%2C200%2C255%29%22%20fill-opacity%3D%220.57%22/%3E%3Ccircle%20cx%3D%22686.1%22%20cy%3D%2282.6%22%20r%3D%221.1%22%20fill%3D%22rgb%28255%2C214%2C250%29%22%20fill-opacity%3D%220.43%22/%3E%3Ccircle%20cx%3D%22106.4%22%20cy%3D%22342.3%22%20r%3D%220.6%22%20fill%3D%22rgb%28255%2C255%2C255%29%22%20fill-opacity%3D%220.83%22/%3E%3Ccircle%20cx%3D%22535.2%22%20cy%3D%22401.1%22%20r%3D%220.9%22%20fill%3D%22rgb%28255%2C214%2C250%29%22%20fill-opacity%3D%220.52%22/%3E%3Ccircle%20cx%3D%22416.1%22%20cy%3D%22405.9%22%20r%3D%221.1%22%20fill%3D%22rgb%28255%2C255%2C255%29%22%20fill-opacity%3D%220.38%22/%3E%3Ccircle%20cx%3D%22661.3%22%20cy%3D%22331.9%22%20r%3D%221.6%22%20fill%3D%22rgb%28232%2C200%2C255%29%22%20fill-opacity%3D%220.38%22/%3E%3Ccircle%20cx%3D%22491.0%22%20cy%3D%22453.0%22%20r%3D%221.6%22%20fill%3D%22rgb%28255%2C214%2C250%29%22%20fill-opacity%3D%220.76%22/%3E%3Ccircle%20cx%3D%22501.6%22%20cy%3D%22620.9%22%20r%3D%220.9%22%20fill%3D%22rgb%28255%2C214%2C250%29%22%20fill-opacity%3D%220.36%22/%3E%3Ccircle%20cx%3D%22248.8%22%20cy%3D%22427.6%22%20r%3D%221.1%22%20fill%3D%22rgb%28255%2C214%2C250%29%22%20fill-opacity%3D%220.38%22/%3E%3Ccircle%20cx%3D%2290.5%22%20cy%3D%22173.3%22%20r%3D%221.1%22%20fill%3D%22rgb%28255%2C214%2C250%29%22%20fill-opacity%3D%220.81%22/%3E%3Ccircle%20cx%3D%2256.4%22%20cy%3D%22314.4%22%20r%3D%221.3%22%20fill%3D%22rgb%28255%2C255%2C255%29%22%20fill-opacity%3D%220.49%22/%3E%3Ccircle%20cx%3D%22573.5%22%20cy%3D%22604.8%22%20r%3D%220.9%22%20fill%3D%22rgb%28255%2C214%2C250%29%22%20fill-opacity%3D%220.70%22/%3E%3Ccircle%20cx%3D%22477.9%22%20cy%3D%22266.3%22%20r%3D%220.8%22%20fill%3D%22rgb%28255%2C255%2C255%29%22%20fill-opacity%3D%220.43%22/%3E%3Ccircle%20cx%3D%22105.9%22%20cy%3D%22461.0%22%20r%3D%220.6%22%20fill%3D%22rgb%28232%2C200%2C255%29%22%20fill-opacity%3D%220.59%22/%3E%3Ccircle%20cx%3D%22127.6%22%20cy%3D%22197.4%22%20r%3D%220.8%22%20fill%3D%22rgb%28255%2C214%2C250%29%22%20fill-opacity%3D%220.56%22/%3E%3Ccircle%20cx%3D%22426.9%22%20cy%3D%22223.0%22%20r%3D%220.8%22%20fill%3D%22rgb%28232%2C200%2C255%29%22%20fill-opacity%3D%220.70%22/%3E%3Ccircle%20cx%3D%22665.2%22%20cy%3D%22458.5%22%20r%3D%221.6%22%20fill%3D%22rgb%28232%2C200%2C255%29%22%20fill-opacity%3D%220.38%22/%3E%3Ccircle%20cx%3D%22558.5%22%20cy%3D%22274.7%22%20r%3D%221.1%22%20fill%3D%22rgb%28255%2C214%2C250%29%22%20fill-opacity%3D%220.55%22/%3E%3Ccircle%20cx%3D%22444.0%22%20cy%3D%2243.6%22%20r%3D%220.6%22%20fill%3D%22rgb%28255%2C214%2C250%29%22%20fill-opacity%3D%220.84%22/%3E%3Ccircle%20cx%3D%22113.6%22%20cy%3D%22238.0%22%20r%3D%220.6%22%20fill%3D%22rgb%28232%2C200%2C255%29%22%20fill-opacity%3D%220.40%22/%3E%3Ccircle%20cx%3D%22105.9%22%20cy%3D%2271.0%22%20r%3D%220.9%22%20fill%3D%22rgb%28255%2C255%2C255%29%22%20fill-opacity%3D%220.66%22/%3E%3Ccircle%20cx%3D%22612.0%22%20cy%3D%22429.8%22%20r%3D%220.8%22%20fill%3D%22rgb%28255%2C214%2C250%29%22%20fill-opacity%3D%220.67%22/%3E%3Ccircle%20cx%3D%22421.6%22%20cy%3D%22331.9%22%20r%3D%220.6%22%20fill%3D%22rgb%28255%2C214%2C250%29%22%20fill-opacity%3D%220.77%22/%3E%3Ccircle%20cx%3D%22336.3%22%20cy%3D%22218.3%22%20r%3D%220.8%22%20fill%3D%22rgb%28255%2C214%2C250%29%22%20fill-opacity%3D%220.40%22/%3E%3Ccircle%20cx%3D%22518.2%22%20cy%3D%22335.0%22%20r%3D%221.6%22%20fill%3D%22rgb%28255%2C255%2C255%29%22%20fill-opacity%3D%220.43%22/%3E%3Ccircle%20cx%3D%22143.7%22%20cy%3D%22666.4%22%20r%3D%220.9%22%20fill%3D%22rgb%28232%2C200%2C255%29%22%20fill-opacity%3D%220.42%22/%3E%3Ccircle%20cx%3D%22639.9%22%20cy%3D%22530.7%22%20r%3D%220.9%22%20fill%3D%22rgb%28255%2C255%2C255%29%22%20fill-opacity%3D%220.84%22/%3E%3Ccircle%20cx%3D%22487.3%22%20cy%3D%22182.8%22%20r%3D%220.9%22%20fill%3D%22rgb%28255%2C214%2C250%29%22%20fill-opacity%3D%220.80%22/%3E%3Ccircle%20cx%3D%22540.4%22%20cy%3D%22372.8%22%20r%3D%221.3%22%20fill%3D%22rgb%28255%2C255%2C255%29%22%20fill-opacity%3D%220.51%22/%3E%3Ccircle%20cx%3D%22429.3%22%20cy%3D%22551.9%22%20r%3D%220.8%22%20fill%3D%22rgb%28255%2C214%2C250%29%22%20fill-opacity%3D%220.75%22/%3E%3Ccircle%20cx%3D%22517.9%22%20cy%3D%22158.7%22%20r%3D%221.3%22%20fill%3D%22rgb%28232%2C200%2C255%29%22%20fill-opacity%3D%220.60%22/%3E%3Ccircle%20cx%3D%2220.3%22%20cy%3D%2219.6%22%20r%3D%220.9%22%20fill%3D%22rgb%28255%2C255%2C255%29%22%20fill-opacity%3D%220.59%22/%3E%3Ccircle%20cx%3D%22484.8%22%20cy%3D%22669.6%22%20r%3D%221.1%22%20fill%3D%22rgb%28232%2C200%2C255%29%22%20fill-opacity%3D%220.75%22/%3E%3Ccircle%20cx%3D%22691.6%22%20cy%3D%22668.5%22%20r%3D%220.9%22%20fill%3D%22rgb%28255%2C255%2C255%29%22%20fill-opacity%3D%220.39%22/%3E%3Ccircle%20cx%3D%22158.8%22%20cy%3D%22137.7%22%20r%3D%220.8%22%20fill%3D%22rgb%28232%2C200%2C255%29%22%20fill-opacity%3D%220.59%22/%3E%3Cpath%20d%3D%22M574.7%20330.5%20L576.0%20335.1%20L580.6%20336.5%20L576.0%20337.8%20L574.7%20342.4%20L573.4%20337.8%20L568.7%20336.5%20L573.4%20335.1%20Z%22%20fill%3D%22rgb%28255%2C236%2C252%29%22%20fill-opacity%3D%220.8%22/%3E%3Cpath%20d%3D%22M547.8%2070.0%20L549.1%2074.6%20L553.7%2076.0%20L549.1%2077.3%20L547.8%2081.9%20L546.4%2077.3%20L541.8%2076.0%20L546.4%2074.6%20Z%22%20fill%3D%22rgb%28255%2C236%2C252%29%22%20fill-opacity%3D%220.8%22/%3E%3Cpath%20d%3D%22M620.5%20530.1%20L621.8%20534.9%20L626.7%20536.3%20L621.8%20537.7%20L620.5%20542.6%20L619.1%20537.7%20L614.2%20536.3%20L619.1%20534.9%20Z%22%20fill%3D%22rgb%28255%2C236%2C252%29%22%20fill-opacity%3D%220.8%22/%3E%3Cpath%20d%3D%22M335.5%20131.5%20L336.9%20136.4%20L341.9%20137.8%20L336.9%20139.2%20L335.5%20144.2%20L334.1%20139.2%20L329.1%20137.8%20L334.1%20136.4%20Z%22%20fill%3D%22rgb%28255%2C236%2C252%29%22%20fill-opacity%3D%220.8%22/%3E%3Cpath%20d%3D%22M239.5%20541.6%20L241.0%20547.0%20L246.4%20548.5%20L241.0%20550.1%20L239.5%20555.5%20L237.9%20550.1%20L232.5%20548.5%20L237.9%20547.0%20Z%22%20fill%3D%22rgb%28255%2C236%2C252%29%22%20fill-opacity%3D%220.8%22/%3E%3Cpath%20d%3D%22M281.3%20278.1%20L282.8%20283.4%20L288.1%20284.9%20L282.8%20286.4%20L281.3%20291.8%20L279.7%20286.4%20L274.4%20284.9%20L279.7%20283.4%20Z%22%20fill%3D%22rgb%28255%2C236%2C252%29%22%20fill-opacity%3D%220.8%22/%3E%3Cpath%20d%3D%22M498.4%20127.8%20L499.3%20131.2%20L502.7%20132.2%20L499.3%20133.2%20L498.4%20136.6%20L497.4%20133.2%20L494.0%20132.2%20L497.4%20131.2%20Z%22%20fill%3D%22rgb%28255%2C236%2C252%29%22%20fill-opacity%3D%220.8%22/%3E%3C/svg%3E");
  background-size: 700px 700px;
  background-repeat: repeat;
  opacity: 0.45;
}
/* Extra tiny white stars */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22520%22%20height%3D%22520%22%20viewBox%3D%220%200%20520%20520%22%3E%3Ccircle%20cx%3D%2285.8%22%20cy%3D%22358.7%22%20r%3D%220.5%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.77%22/%3E%3Ccircle%20cx%3D%22112.3%22%20cy%3D%22412.2%22%20r%3D%220.7%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.63%22/%3E%3Ccircle%20cx%3D%22274.3%22%20cy%3D%22410.0%22%20r%3D%220.35%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.72%22/%3E%3Ccircle%20cx%3D%22304.4%22%20cy%3D%2236.0%22%20r%3D%220.45%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.96%22/%3E%3Ccircle%20cx%3D%22360.8%22%20cy%3D%22227.2%22%20r%3D%220.6%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.83%22/%3E%3Ccircle%20cx%3D%2217.7%22%20cy%3D%22171.0%22%20r%3D%220.6%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.86%22/%3E%3Ccircle%20cx%3D%22337.4%22%20cy%3D%22487.7%22%20r%3D%220.35%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.62%22/%3E%3Ccircle%20cx%3D%22425.1%22%20cy%3D%2264.9%22%20r%3D%220.35%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.75%22/%3E%3Ccircle%20cx%3D%22287.0%22%20cy%3D%22178.3%22%20r%3D%220.6%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.62%22/%3E%3Ccircle%20cx%3D%22345.9%22%20cy%3D%22244.4%22%20r%3D%220.45%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.58%22/%3E%3Ccircle%20cx%3D%22102.6%22%20cy%3D%22350.4%22%20r%3D%220.7%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.99%22/%3E%3Ccircle%20cx%3D%2236.9%22%20cy%3D%22291.3%22%20r%3D%220.7%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.92%22/%3E%3Ccircle%20cx%3D%22104.6%22%20cy%3D%22480.0%22%20r%3D%220.7%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.73%22/%3E%3Ccircle%20cx%3D%22189.9%22%20cy%3D%22234.7%22%20r%3D%220.6%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.69%22/%3E%3Ccircle%20cx%3D%22251.9%22%20cy%3D%22138.2%22%20r%3D%220.35%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.62%22/%3E%3Ccircle%20cx%3D%22372.3%22%20cy%3D%22510.8%22%20r%3D%220.35%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.77%22/%3E%3Ccircle%20cx%3D%22286.2%22%20cy%3D%22389.1%22%20r%3D%220.45%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.81%22/%3E%3Ccircle%20cx%3D%22165.7%22%20cy%3D%22509.6%22%20r%3D%220.35%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.63%22/%3E%3Ccircle%20cx%3D%2288.4%22%20cy%3D%22181.1%22%20r%3D%220.5%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.71%22/%3E%3Ccircle%20cx%3D%22310.6%22%20cy%3D%22159.4%22%20r%3D%220.35%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.63%22/%3E%3Ccircle%20cx%3D%22480.0%22%20cy%3D%2290.5%22%20r%3D%220.6%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.72%22/%3E%3Ccircle%20cx%3D%22355.3%22%20cy%3D%22351.5%22%20r%3D%220.45%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.73%22/%3E%3Ccircle%20cx%3D%22514.3%22%20cy%3D%22499.9%22%20r%3D%220.7%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.56%22/%3E%3Ccircle%20cx%3D%22180.2%22%20cy%3D%22263.2%22%20r%3D%220.45%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.97%22/%3E%3Ccircle%20cx%3D%22127.9%22%20cy%3D%22292.1%22%20r%3D%220.6%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.91%22/%3E%3Ccircle%20cx%3D%22402.4%22%20cy%3D%22251.2%22%20r%3D%220.5%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.57%22/%3E%3Ccircle%20cx%3D%22134.1%22%20cy%3D%22150.7%22%20r%3D%220.6%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.66%22/%3E%3Ccircle%20cx%3D%22205.2%22%20cy%3D%22452.6%22%20r%3D%220.45%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.99%22/%3E%3Ccircle%20cx%3D%22387.8%22%20cy%3D%22249.1%22%20r%3D%220.5%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.61%22/%3E%3Ccircle%20cx%3D%22338.1%22%20cy%3D%22474.0%22%20r%3D%220.6%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.56%22/%3E%3Ccircle%20cx%3D%22110.3%22%20cy%3D%22435.9%22%20r%3D%220.45%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.95%22/%3E%3Ccircle%20cx%3D%22312.7%22%20cy%3D%22221.6%22%20r%3D%220.7%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.96%22/%3E%3Ccircle%20cx%3D%22248.0%22%20cy%3D%2272.2%22%20r%3D%220.7%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.67%22/%3E%3Ccircle%20cx%3D%22399.5%22%20cy%3D%225.3%22%20r%3D%220.45%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.98%22/%3E%3Ccircle%20cx%3D%2212.2%22%20cy%3D%22308.7%22%20r%3D%220.45%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.93%22/%3E%3Ccircle%20cx%3D%22303.9%22%20cy%3D%22133.7%22%20r%3D%220.6%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.89%22/%3E%3Ccircle%20cx%3D%22422.3%22%20cy%3D%2272.0%22%20r%3D%220.45%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.59%22/%3E%3Ccircle%20cx%3D%2248.8%22%20cy%3D%2213.2%22%20r%3D%220.6%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.90%22/%3E%3Ccircle%20cx%3D%2237.4%22%20cy%3D%2261.9%22%20r%3D%220.5%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.61%22/%3E%3Ccircle%20cx%3D%22280.1%22%20cy%3D%22168.6%22%20r%3D%220.6%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.95%22/%3E%3Ccircle%20cx%3D%22323.0%22%20cy%3D%2294.4%22%20r%3D%220.6%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.64%22/%3E%3Ccircle%20cx%3D%22387.0%22%20cy%3D%22393.7%22%20r%3D%220.7%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.87%22/%3E%3Ccircle%20cx%3D%22454.4%22%20cy%3D%22402.6%22%20r%3D%220.35%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.72%22/%3E%3Ccircle%20cx%3D%22449.5%22%20cy%3D%22206.9%22%20r%3D%220.7%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.63%22/%3E%3Ccircle%20cx%3D%22370.0%22%20cy%3D%22131.5%22%20r%3D%220.7%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.69%22/%3E%3Ccircle%20cx%3D%2221.8%22%20cy%3D%22202.2%22%20r%3D%220.5%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.88%22/%3E%3Ccircle%20cx%3D%22515.1%22%20cy%3D%22425.2%22%20r%3D%220.7%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.77%22/%3E%3Ccircle%20cx%3D%22298.0%22%20cy%3D%22283.6%22%20r%3D%220.35%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.78%22/%3E%3Ccircle%20cx%3D%22382.0%22%20cy%3D%22502.9%22%20r%3D%220.5%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.68%22/%3E%3Ccircle%20cx%3D%22324.9%22%20cy%3D%22394.1%22%20r%3D%220.45%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.58%22/%3E%3Ccircle%20cx%3D%22423.6%22%20cy%3D%22508.0%22%20r%3D%220.5%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.58%22/%3E%3Ccircle%20cx%3D%22342.1%22%20cy%3D%22218.5%22%20r%3D%220.35%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.84%22/%3E%3Ccircle%20cx%3D%22325.8%22%20cy%3D%22420.0%22%20r%3D%220.6%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.78%22/%3E%3Ccircle%20cx%3D%22492.5%22%20cy%3D%22353.5%22%20r%3D%220.6%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.76%22/%3E%3Ccircle%20cx%3D%22266.8%22%20cy%3D%22455.3%22%20r%3D%220.35%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.65%22/%3E%3Ccircle%20cx%3D%2225.4%22%20cy%3D%22225.6%22%20r%3D%220.45%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.67%22/%3E%3Ccircle%20cx%3D%22306.5%22%20cy%3D%22210.4%22%20r%3D%220.6%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.76%22/%3E%3Ccircle%20cx%3D%22122.9%22%20cy%3D%22200.4%22%20r%3D%220.6%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.65%22/%3E%3Ccircle%20cx%3D%22475.6%22%20cy%3D%22340.3%22%20r%3D%220.35%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.77%22/%3E%3Ccircle%20cx%3D%22255.8%22%20cy%3D%22372.9%22%20r%3D%220.45%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.90%22/%3E%3Ccircle%20cx%3D%22325.9%22%20cy%3D%22394.4%22%20r%3D%220.7%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.86%22/%3E%3Ccircle%20cx%3D%22355.1%22%20cy%3D%22127.6%22%20r%3D%220.6%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.72%22/%3E%3Ccircle%20cx%3D%22319.6%22%20cy%3D%22428.9%22%20r%3D%220.35%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.62%22/%3E%3Ccircle%20cx%3D%22105.1%22%20cy%3D%22455.3%22%20r%3D%220.45%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.59%22/%3E%3Ccircle%20cx%3D%2291.2%22%20cy%3D%22271.6%22%20r%3D%220.7%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.97%22/%3E%3Ccircle%20cx%3D%22386.0%22%20cy%3D%22240.4%22%20r%3D%220.35%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%221.00%22/%3E%3Ccircle%20cx%3D%2286.5%22%20cy%3D%22225.3%22%20r%3D%220.5%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.72%22/%3E%3Ccircle%20cx%3D%22302.5%22%20cy%3D%2298.2%22%20r%3D%220.35%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.98%22/%3E%3Ccircle%20cx%3D%22167.5%22%20cy%3D%22132.2%22%20r%3D%220.45%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.95%22/%3E%3Ccircle%20cx%3D%22263.7%22%20cy%3D%22124.0%22%20r%3D%220.5%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.87%22/%3E%3C/svg%3E");
  background-size: 520px 520px;
  background-repeat: repeat;
  opacity: 0.6;
}
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 560px at 50% -8%, var(--purple-soft), transparent 58%),
    radial-gradient(700px 480px at 92% 78%, rgba(103, 232, 249, 0.12), transparent 55%),
    radial-gradient(500px 360px at 8% 60%, rgba(139, 92, 246, 0.22), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-mid) 42%, var(--bg-deep) 100%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 28px 18px 64px;
}

/* Nav */
.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  padding: 10px 4px;
}
.brand {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  opacity: 0.92;
}
.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card);
  transition: color .15s, border-color .15s, background .15s, box-shadow .15s;
}
.nav-links a:hover {
  color: var(--ink);
  border-color: var(--purple);
  background: var(--purple-soft);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.28);
}
.nav-links a.nav-account {
  border-color: rgba(196, 181, 253, 0.42);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.18);
}
.nav-links a.nav-donate {
  border-color: rgba(252, 211, 77, 0.5);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.14);
}
.nav-links a.nav-donate::before { content: "\2665"; content: "\2665" / ""; color: #fcd34d; margin-right: 5px; font-size: 0.86em; }
.nav-links a.nav-donate:hover, .nav-links a.nav-donate[aria-current="page"] { border-color: rgba(252, 211, 77, 0.9); background: rgba(251, 191, 36, 0.12); box-shadow: 0 0 12px rgba(251, 191, 36, 0.3); }
@media (min-width: 720px) { .nav-links { gap: 6px; } .nav-links a { padding: 8px 12px; } } /* keeps every pill (incl. Donate) on one row on desktop */
.nav-links a.nav-play { color: #fff; font-weight: 800; letter-spacing: 0.04em; border-color: rgba(216, 180, 254, 0.75); background: linear-gradient(115deg, #7c3aed, #a855f7 55%, #d946ef); box-shadow: 0 0 14px rgba(168, 85, 247, 0.45); }
.nav-links a.nav-play::before { content: "\25B6"; content: "\25B6" / ""; margin-right: 6px; font-size: 0.74em; }
.nav-links a.nav-play:hover { color: #fff; border-color: #f0abfc; background: linear-gradient(115deg, #8b5cf6, #c084fc 55%, #e879f9); box-shadow: 0 0 18px rgba(217, 70, 239, 0.55); }
.nav-links a.nav-play.nav-shop { color: #082f49; border-color: #a5f3fc; background: linear-gradient(115deg, #a5f3fc, #67e8f9 50%, #38bdf8); box-shadow: 0 0 14px rgba(103, 232, 249, 0.45); }    .nav-links a.nav-play.nav-shop:hover { color: #082f49; border-color: #e0f2fe; background: linear-gradient(115deg, #cffafe, #67e8f9 50%, #0ea5e9); box-shadow: 0 0 18px rgba(56, 189, 248, 0.6); }
@media (min-width: 1000px) { .topbar { width: min(1180px, calc(100vw - 48px)); margin-left: calc(50% - min(590px, 50vw - 24px)); } } /* nav may run wider than the 920px column so every pill (incl. PLAY MONO + DEV badge) stays on one row */
.nav-links a.nav-account.is-in { display: inline-flex; align-items: center; gap: 7px; padding: 4px 14px 4px 4px; max-width: 100%; }
.nav-links a.nav-account.is-in span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-links a.nav-account img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(137, 207, 240, 0.8); background: #2a1f4a; flex-shrink: 0; }
.nav-links a.nav-account.is-dev img { border-color: rgba(255, 214, 100, 0.95); box-shadow: 0 0 10px rgba(255, 200, 60, 0.7); }
.dev-badge {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 0.58rem; font-weight: 800; letter-spacing: 0.08em; line-height: 1.2;
  padding: 2px 6px; border-radius: 999px; color: #1a0e00;
  background: linear-gradient(115deg, #ffe08a, #ffc94a 55%, #ff9f1a);
  border: 1px solid rgba(255, 220, 140, 0.85);
  box-shadow: 0 0 10px rgba(255, 200, 60, 0.45);
  vertical-align: middle;
}

    .mod-badge {
      display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
      font-size: 0.58rem; font-weight: 800; letter-spacing: 0.08em; line-height: 1.2;
      padding: 2px 6px; border-radius: 999px; color: #0c1018;
      background: linear-gradient(115deg, #f8fafc, #e8eef5 45%, #c5ced8 100%);
      border: 1px solid rgba(226, 232, 240, 0.95);
      box-shadow: 0 0 10px rgba(226, 232, 240, 0.55), 0 0 18px rgba(148, 163, 184, 0.35);
      vertical-align: middle;
    }
    .nav-links a.nav-account.is-mod img {
      border-color: rgba(248, 250, 252, 0.95);
      box-shadow: 0 0 10px rgba(226, 232, 240, 0.75);
      animation: mod-aura 2.4s ease-in-out infinite;
    }


/* Hero */
.hero {
  text-align: center;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.35rem, 7.5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin-bottom: 10px;
}
.hero .tag {
  color: var(--muted);
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  font-weight: 500;
  max-width: 34ch;
  margin: 0 auto 28px;
}
.hero-art {
  position: relative;
  isolation: isolate; /* keep glow behind avatar, above page bg */
  display: block;
  width: min(42vw, 220px); /* desktop: ~42vw capped 220px, square frame */
  margin: 0 auto; /* centered under tagline */
}
.hero-art img {
  width: 100%;
  height: auto !important; /* beat HTML height attr — no tall strip stretch */
  aspect-ratio: 1 / 1; /* square box; contain portrait PNG */
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 28px;
  border: 2px solid rgba(196, 181, 253, 0.28);
  box-shadow: var(--shadow), 0 0 0 1px rgba(167, 139, 250, 0.16);
  background: #ffffff;
}
.hero-glow {
  position: absolute;
  inset: -7%; /* hug the avatar edges */
  border-radius: 36px;
  background: rgba(118, 192, 236, 0.9); /* baby blue, a touch darker */
  filter: blur(16px);
  z-index: -1;
  pointer-events: none;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px 22px;
  margin-bottom: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}
.card-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.card-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.card h2 {
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 10px;
}
.card p, .card li {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Buttons */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.92rem;
  font-family: inherit;
  color: #140c28;
  background: linear-gradient(115deg, var(--purple) 0%, var(--lavender) 48%, var(--cyan) 100%);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(167, 139, 250, 0.32);
  transition: transform .15s ease, filter .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: grayscale(0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--card-border);
  box-shadow: none;
}
.btn-ghost:hover {
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(167, 139, 250, 0.12);
  filter: none;
}
.btn-x {
  background: #1a1230;
  color: #fff;
  border: 1px solid rgba(196, 181, 253, 0.22);
  box-shadow: none;
}
.btn-x:hover { border-color: var(--lavender); filter: none; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn[hidden] { display: none !important; }

/* CA */
.ca-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.ca-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
}
.ca-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--card-border);
  color: var(--ink);
  letter-spacing: 0.02em;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* Community */
.community-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}
.community-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

/* How to buy */
.steps {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 14px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #140c28;
  background: linear-gradient(135deg, var(--purple), var(--lavender));
}
.step strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.step span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* About */
.about-copy {
  text-align: left;
  max-width: 58ch;
  margin: 0 auto;
}
.about-copy p + p { margin-top: 12px; }

/* Footer */
footer {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--muted-2);
  font-size: 0.88rem;
}
footer .foot-brand {
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 6px;
}
footer a {
  color: var(--cyan);
  text-decoration: none;
}
footer a:hover { text-decoration: underline; }
footer .foot-legal {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 0.78rem;
  line-height: 1.55;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
  padding: 0 8px;
}
footer .foot-legal p + p { margin-top: 6px; }


.swap-wrap {
  margin-top: 22px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: rgba(10, 6, 24, 0.42);
  width: 100%;
  min-height: 680px;
}
#raydium-swap {
  width: 100%;
  height: 680px;
  min-height: 680px;
  border: 0;
  border-radius: 16px;
  display: block;
  background: transparent;
  transform: none;
  overflow: hidden;
}
.swap-open {
  display: flex;
  justify-content: center;
  padding: 12px 14px 16px;
}
@media (max-width: 719px) {
  .swap-wrap { min-height: 620px; }
  #raydium-swap { height: 620px; min-height: 620px; }
}

@media (max-width: 719px) {
  .hero-art {
    width: min(50vw, 220px); /* mobile: ~half viewport, square — match red-circle ref */
  }
  .hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.6rem);
  }
  .hero .tag {
    margin-bottom: 18px;
  }
}

@media (min-width: 720px) {
  .wrap { padding: 36px 24px 80px; }
  .card { padding: 30px 28px; }
  .steps { grid-template-columns: 1fr 1fr; }
}

/* ===== Mono Lab additions (same tokens as home) ===== */
.nav-links a[aria-current="page"] { border-color: var(--purple); background: var(--purple-soft); }
.nav-links .user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; }
.user-chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(137, 207, 240, 0.8); box-shadow: 0 0 10px rgba(137, 207, 240, 0.45); background: #2a1f4a; }
.user-chip.is-dev img {
  border-color: rgba(255, 214, 100, 0.95);
  box-shadow: 0 0 0 2px rgba(255, 200, 60, 0.35), 0 0 10px rgba(255, 200, 60, 0.6);
  animation: god-aura 2.4s ease-in-out infinite;
}
.avatar-lg-wrap.is-dev .avatar-lg {
  border-color: rgba(255, 214, 100, 0.95);
  box-shadow: 0 0 0 2px rgba(255, 200, 60, 0.55), 0 0 12px rgba(255, 190, 50, 0.55);
}
.avatar-lg-wrap.is-god::after { content: '1 of 1'; position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); padding: 1px 8px; border-radius: 999px; font: 800 10px/1.6 system-ui, sans-serif; letter-spacing: .04em; background: linear-gradient(90deg, #ffe58a, #f2b733); color: #3a2500; box-shadow: 0 0 8px rgba(255, 200, 60, .6); z-index: 2; white-space: nowrap; }
@keyframes god-aura {
  0%, 100% { filter: brightness(1); box-shadow: 0 0 0 2px rgba(255, 200, 60, 0.35), 0 0 8px rgba(255, 200, 60, 0.45); }

    .user-chip.is-mod img {
      border-color: rgba(248, 250, 252, 0.95);
      box-shadow: 0 0 0 2px rgba(226, 232, 240, 0.45), 0 0 10px rgba(226, 232, 240, 0.7);
      animation: mod-aura 2.4s ease-in-out infinite;
    }
    .avatar-lg-wrap.is-mod .avatar-lg {
      border-color: rgba(248, 250, 252, 0.95);
      box-shadow: 0 0 0 2px rgba(226, 232, 240, 0.55), 0 0 12px rgba(200, 210, 220, 0.65);
    }
    .avatar-lg-wrap.is-mod::before {
      background: rgba(226, 232, 240, 0.75) !important;
      inset: -18%;
      animation: mod-aura 2.4s ease-in-out infinite;
    }
    @keyframes mod-aura {
      0%, 100% { filter: brightness(1); box-shadow: 0 0 0 2px rgba(226, 232, 240, 0.4), 0 0 8px rgba(226, 232, 240, 0.5); }
      50% { filter: brightness(1.08); box-shadow: 0 0 0 2px rgba(248, 250, 252, 0.6), 0 0 12px rgba(226, 232, 240, 0.85); }
    }

  50% { filter: brightness(1.08); box-shadow: 0 0 0 2px rgba(255, 220, 120, 0.5), 0 0 12px rgba(255, 200, 60, 0.7); }
}
@media (prefers-reduced-motion: reduce) {
  .user-chip.is-dev img, .user-chip.is-mod img, .avatar-lg-wrap.is-mod::before { animation: none; }
}
.hero.hero-sm { margin-bottom: 22px; }
.hero.hero-sm .tag { margin-bottom: 6px; }
.section-note { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.fine { color: var(--muted-2) !important; font-size: 0.82rem !important; margin-top: 12px; }
.btn-sm { padding: 8px 14px; font-size: 0.8rem; }
.btn-danger:hover { border-color: rgba(251, 113, 133, 0.7); background: rgba(251, 113, 133, 0.12); }
.status { min-height: 1.4em; font-size: 0.88rem; color: var(--muted); margin-top: 10px; }
.status-ok { color: var(--cyan); }
.status-err { color: #fda4af; }
[hidden] { display: none !important; }

/* forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; text-align: left; }
.field label, .ctl-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.input {
  width: 100%; font: inherit; font-size: 0.96rem; color: var(--ink);
  padding: 12px 16px; border-radius: 14px; background: rgba(10, 6, 24, 0.45);
  border: 1px solid var(--card-border); outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.22); }
.hint { color: var(--muted-2); font-size: 0.78rem; }

/* auth */
.auth { max-width: 460px; margin: 0 auto 16px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(10, 6, 24, 0.45); border: 1px solid var(--card-border); margin-bottom: 18px; }
.tab { appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 0.88rem; color: var(--muted); background: transparent; padding: 10px; border-radius: 999px; }
.tab.is-on { color: #140c28; background: linear-gradient(115deg, var(--purple) 0%, var(--lavender) 48%, var(--cyan) 100%); }
.auth .btn[type=submit] { width: 100%; margin-top: 4px; }

/* lab */
.lab-grid { display: grid; gap: 20px; margin-top: 8px; }
.preview { position: relative; isolation: isolate; }
.canvas-wrap { position: relative; }
.canvas-wrap::before { content: ""; position: absolute; inset: -4%; border-radius: 34px; background: rgba(92, 172, 228, 0.55); filter: blur(22px); z-index: -1; pointer-events: none; }
#monoCanvas { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 24px; border: 2px solid rgba(196, 181, 253, 0.28); box-shadow: var(--shadow); background: #141022; }
.preview-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.controls { display: grid; gap: 14px; }
.ctl { padding: 14px; border-radius: 16px; background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.08); }
.ctl-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.opt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.opt {
  appearance: none; cursor: pointer; font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--ink);
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--card-border); background: rgba(10, 6, 24, 0.35);
  transition: border-color .15s, background .15s;
}
.opt:hover { border-color: var(--purple); }
.opt.is-on { border-color: var(--cyan); background: rgba(103, 232, 249, 0.14); box-shadow: 0 0 10px rgba(103, 232, 249, 0.25); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatch { width: 34px; height: 34px; border-radius: 50%; cursor: pointer; border: 2px solid rgba(255, 255, 255, 0.18); padding: 0; }
.swatch.is-on, .color-pick.is-on { outline: 2px solid var(--cyan); outline-offset: 2px; }
.color-pick { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: var(--muted); border-radius: 999px; padding: 3px 10px 3px 3px; border: 1px solid var(--card-border); }
input[type=color] { width: 30px; height: 30px; border: 0; padding: 0; border-radius: 50%; background: none; cursor: pointer; }
input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
input[type=color]::-webkit-color-swatch { border: 2px solid rgba(255, 255, 255, 0.25); border-radius: 50%; }
.bg-custom { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.range { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--muted); }
.range input { accent-color: #a78bfa; width: 140px; }
.check { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 0.85rem; color: var(--muted); cursor: pointer; }
.check input { accent-color: #67e8f9; width: 16px; height: 16px; }
.core-note { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--muted); }
.core-badge { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; color: var(--cyan); border: 1px solid rgba(103, 232, 249, 0.45); background: rgba(103, 232, 249, 0.12); }
.save-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.editing { font-size: 0.8rem; color: var(--muted-2); }

/* saves */
.saves-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.saves-count { color: var(--muted-2); font-size: 0.85rem; }
.saves-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.save-card { border-radius: 18px; overflow: hidden; background: rgba(10, 6, 24, 0.42); border: 1px solid var(--card-border); display: flex; flex-direction: column; }
.save-card.is-avatar { border-color: rgba(137, 207, 240, 0.85); box-shadow: 0 0 18px rgba(137, 207, 240, 0.3); }
.save-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; display: block; object-fit: cover; background: #120c26; }
.save-body { padding: 10px 10px 12px; display: grid; gap: 4px; }
.save-body h3 { font-size: 0.9rem; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.save-meta { font-size: 0.75rem !important; color: var(--muted-2) !important; }
.save-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.avatar-tag { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; color: #89cff0; border: 1px solid rgba(137, 207, 240, 0.6); background: rgba(137, 207, 240, 0.12); }
.empty { text-align: center; padding: 18px; color: var(--muted); }

/* settings */
.profile { display: grid; gap: 20px; align-items: center; justify-items: center; text-align: center; }
.avatar-lg-wrap { position: relative; isolation: isolate; width: 132px; }
.avatar-lg-wrap::before { content: ""; position: absolute; inset: -14%; border-radius: 50%; background: rgba(92, 172, 228, 0.75); filter: blur(16px); z-index: -1; }
.avatar-lg { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; display: block; border: 2px solid rgba(196, 181, 253, 0.4); background: #2a1f4a; }
.profile-form { width: 100%; max-width: 420px; text-align: left; }
.inline { display: flex; gap: 8px; }
.inline .input { flex: 1; min-width: 0; }
.kv { font-size: 0.9rem; color: var(--muted); }
.kv strong { color: var(--ink); font-weight: 600; }

@media (min-width: 560px) { .saves-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 720px) {
  .saves-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .profile { grid-template-columns: auto 1fr; justify-items: start; text-align: left; }
}
@media (min-width: 900px) {
  .lab-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .preview { position: sticky; top: 18px; }
}

/* members */
.member-card .member-av { display: block; }
.member-card .member-av img { width: 100%; height: auto; aspect-ratio: 1 / 1; display: block; object-fit: cover; background: #120c26; }
.member-card h3 a { color: inherit; text-decoration: none; }
.member-card h3 a:hover { color: var(--cyan); }
.member-card.is-dev { border-color: rgba(255, 214, 100, 0.55); }
.follow-btn.is-following { color: var(--muted); }
.stat-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.stat-btn { appearance: none; cursor: pointer; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--ink); text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--card-border); background: var(--glass); }
.stat-btn strong { color: var(--cyan); font-weight: 800; margin-right: 2px; }
.stat-btn.is-on, button.stat-btn:hover, a.stat-btn:hover { border-color: var(--purple); background: var(--purple-soft); }
.search-row { display: flex; gap: 8px; flex-wrap: wrap; }
.search-row .input { flex: 1; min-width: 0; }
.follows-you { display: inline-block; margin-left: 6px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; color: var(--lavender); border: 1px solid rgba(196, 181, 253, 0.45); background: rgba(167, 139, 250, 0.12); }

@media (min-width: 1000px) { .topbar { width: min(1240px, calc(100vw - 32px)); margin-left: calc(50% - min(620px, 50vw - 16px)); } .nav-links { gap: 5px; } .nav-links a { padding-left: 10px; padding-right: 10px; } } /* Mono Chat pill added: a touch tighter + wider so the signed-in nav stays on one row */
/* ================= Mono Chat ================= */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.who .modbar { display: none; opacity: 1; flex-basis: 100%; margin: 4px 0 0; }
.who li:hover .modbar, .who li:focus-within .modbar { display: inline-flex; }
@media (hover: none) { .who .modbar { display: inline-flex; } }
.chat-hero { text-align: center; margin-bottom: 18px; }
.chat-hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; }
.chat-hero .tag { color: var(--muted); margin-top: 6px; font-weight: 500; }
.chat-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--card-border); flex-wrap: wrap; }
.chat-head h2 { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; }
.chat-head .room-sub { color: var(--muted-2); font-size: .8rem; }
.conn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--muted); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--card-border); background: rgba(14, 10, 32, .45); }
.conn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; }
.conn[data-state="live"]::before { background: #34d399; box-shadow: 0 0 8px rgba(52, 211, 153, .8); }
.conn[data-state="connecting"]::before, .conn[data-state="paused"]::before { background: #fcd34d; }
.conn[data-state="offline"]::before { background: #f87171; }
.conn button { appearance: none; border: 0; background: none; color: var(--cyan); font: inherit; font-weight: 800; cursor: pointer; padding: 0 0 0 4px; text-decoration: underline; }
.rules { padding: 7px 16px; font-size: .78rem; color: var(--muted); background: rgba(167, 139, 250, .07); border-bottom: 1px solid var(--card-border); }
.chat-body { display: grid; grid-template-columns: 1fr 220px; min-height: 0; }
.msgs { height: min(58vh, 540px); overflow-y: auto; padding: 10px 14px 14px; overscroll-behavior: contain; }
.msgs-empty { color: var(--muted-2); text-align: center; padding: 40px 10px; font-size: .9rem; }
.msg { display: block; padding: 5px 8px; border-radius: 12px; line-height: 1.45; word-wrap: break-word; overflow-wrap: anywhere; position: relative; }
.msg:hover { background: rgba(167, 139, 250, .06); }
.msg.is-me { background: rgba(103, 232, 249, .05); }
.msg.is-hl { background: rgba(244, 114, 182, .16); box-shadow: 0 0 0 1px rgba(244, 114, 182, .55); transition: background .6s, box-shadow .6s; } /* bell @mention jump */
.msg-head { display: inline; }
.msg-name { font-weight: 800; color: var(--ink); text-decoration: none; }
a.msg-name:hover { color: var(--cyan); }
.msg.is-guest .msg-name { color: var(--lavender); }
.gtag { display: inline-block; margin-left: .35em; padding: .08em .45em; border-radius: 999px; font: 800 .58rem/1.3 Inter, system-ui, sans-serif; letter-spacing: .06em; color: var(--muted); border: 1px solid rgba(196, 181, 253, .3); vertical-align: .18em; text-transform: uppercase; }
.msg-time { color: var(--muted-2); font-size: .7rem; margin-left: 6px; }
.msg-text { color: var(--ink); }
.msg-text::before { content: " "; }
.msg.is-system { text-align: center; color: var(--muted-2); font-size: .8rem; font-style: italic; }
.msg.is-removed .msg-text { color: var(--muted-2); font-style: italic; }
.emo { width: 24px; height: 24px; vertical-align: -6px; margin: 0 1px; }
.modbar { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: 1px; opacity: 0; transition: opacity .15s; }
.msg:hover .modbar, .msg:focus-within .modbar, .who li:hover .modbar, .who li:focus-within .modbar { opacity: 1; }
@media (hover: none) { .modbar { opacity: 1; } }
.modbtn, .modsel { appearance: none; font: 700 .68rem/1 Inter, system-ui, sans-serif; color: var(--muted); background: rgba(14, 10, 32, .6); border: 1px solid var(--card-border); border-radius: 999px; padding: 4px 8px; cursor: pointer; }
.modbtn:hover, .modsel:hover { color: var(--ink); border-color: #f87171; }
.side { border-left: 1px solid var(--card-border); display: flex; flex-direction: column; min-height: 0; }
.side-toggle { appearance: none; display: flex; width: 100%; align-items: center; gap: 8px; background: none; border: 0; border-bottom: 1px solid var(--card-border); color: var(--ink); font: 800 .78rem Inter, system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 10px 14px; cursor: pointer; text-align: left; }
.side-toggle .chev { margin-left: auto; transition: transform .15s; }
.side-toggle[aria-expanded="false"] .chev { transform: rotate(-90deg); }
.who { list-style: none; margin: 0; padding: 6px 8px; overflow-y: auto; max-height: min(58vh, 500px); }
.who li { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; padding: 5px 8px; border-radius: 10px; font-size: .86rem; font-weight: 700; border: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.who li.is-guest { color: var(--lavender); font-weight: 600; }
.who li.talking { border-color: rgba(52, 211, 153, .55); box-shadow: 0 0 10px rgba(52, 211, 153, .45), inset 0 0 8px rgba(52, 211, 153, .15); }
.who .nm { text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.owner-panel { border-top: 1px solid var(--card-border); padding: 8px 12px; font-size: .78rem; color: var(--muted); }
.owner-panel h3 { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; color: #fcd34d; }
.owner-panel ul { list-style: none; display: grid; gap: 4px; }
.composer { border-top: 1px solid var(--card-border); padding: 10px 12px 12px; position: relative; }
.me-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.me-row strong { color: var(--ink); }
.me-row a, .linkish { color: var(--cyan); font-weight: 700; }
.me-row a.me-name { color: var(--ink); font-weight: 800; text-decoration: none; }
.linkish { appearance: none; background: none; border: 0; font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }
.nick-form { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.nick-form[hidden] { display: none; }
.nick-form input { flex: 1; min-width: 140px; }
.quick { display: flex; gap: 2px; margin-bottom: 6px; }
.quick button, .ebtn { appearance: none; background: none; border: 1px solid transparent; border-radius: 10px; cursor: pointer; padding: 3px; line-height: 0; }
.quick button:hover, .ebtn:hover, .ebtn:focus-visible { border-color: var(--purple); background: var(--purple-soft); }
.quick img { width: 28px; height: 28px; }
.input-row { display: flex; gap: 8px; align-items: center; }
.pick-btn { appearance: none; flex: none; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--card-border); background: rgba(14, 10, 32, .55); cursor: pointer; padding: 5px; line-height: 0; }
.pick-btn img { width: 32px; height: 32px; }
.pick-btn[aria-expanded="true"], .pick-btn:hover { border-color: var(--purple); background: var(--purple-soft); }
.chat-input, .field { flex: 1; min-width: 0; height: 44px; border-radius: 14px; border: 1px solid var(--card-border); background: rgba(14, 10, 32, .55); color: var(--ink); font: 500 .95rem Inter, system-ui, sans-serif; padding: 0 14px; }
.chat-input:focus, .field:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(167, 139, 250, .25); }
.chat-input:disabled { opacity: .55; }
.send-btn { appearance: none; height: 44px; padding: 0 18px; border-radius: 14px; border: 1px solid rgba(216, 180, 254, .75); background: linear-gradient(115deg, #7c3aed, #a855f7 55%, #d946ef); color: #fff; font: 800 .9rem Inter, system-ui, sans-serif; cursor: pointer; }
.send-btn:disabled { opacity: .5; cursor: default; }
.sm-btn { height: 36px; padding: 0 12px; font-size: .8rem; }
.foot-row { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: .76rem; color: var(--muted-2); min-height: 1.2em; }
.chat-note { color: #fcd34d; font-weight: 600; }
.chat-note.is-err { color: #fca5a5; }
.count.over { color: #fca5a5; font-weight: 800; }
.mute-notice { margin-bottom: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(252, 165, 165, .5); background: rgba(248, 113, 113, .1); color: #fecaca; font-size: .85rem; font-weight: 700; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
/* picker */
.picker { position: absolute; left: 12px; bottom: calc(100% - 6px); width: 372px; max-width: calc(100% - 24px); background: #1b1336; border: 1px solid rgba(196, 181, 253, .35); border-radius: 18px; box-shadow: 0 18px 50px rgba(5, 2, 18, .7); padding: 10px; z-index: 30; }
.picker[hidden], .ac[hidden] { display: none; }
.pk-top { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.pk-top .field { height: 36px; font-size: .85rem; }
.pk-close { appearance: none; border: 1px solid var(--card-border); background: none; color: var(--muted); border-radius: 10px; width: 36px; height: 36px; cursor: pointer; font-size: 1.1rem; }
.pk-tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 8px; scrollbar-width: none; }
.pk-tab { appearance: none; flex: none; border: 1px solid var(--card-border); background: rgba(14, 10, 32, .5); color: var(--muted); font: 700 .74rem Inter, system-ui, sans-serif; padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.pk-tab[aria-selected="true"] { color: var(--ink); border-color: var(--purple); background: var(--purple-soft); }
.pk-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-height: 196px; overflow-y: auto; }
.pk-grid .ebtn { width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.pk-grid img { width: 36px; height: 36px; }
.pk-empty { grid-column: 1 / -1; color: var(--muted-2); font-size: .82rem; padding: 14px 4px; text-align: center; }
.pk-hint { margin-top: 6px; font-size: .72rem; color: var(--muted-2); min-height: 1em; }
.ac { position: absolute; left: 66px; bottom: calc(100% - 50px); min-width: 210px; list-style: none; background: #1b1336; border: 1px solid rgba(196, 181, 253, .35); border-radius: 14px; padding: 4px; z-index: 31; box-shadow: 0 12px 30px rgba(5, 2, 18, .6); }
.ac li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 10px; cursor: pointer; font-size: .85rem; color: var(--muted); }
.ac li img { width: 26px; height: 26px; }
.ac li[aria-selected="true"], .ac li:hover { background: var(--purple-soft); color: var(--ink); }
.pk-backdrop { display: none; }
@media (max-width: 719px) {
  .wrap { padding-left: 10px; padding-right: 10px; }
  .chat-card { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(18, 12, 36, .82); } /* backdrop-filter would trap the fixed bottom sheet inside the card */
  .chat-body { grid-template-columns: 1fr; }
  .side { border-left: 0; border-bottom: 1px solid var(--card-border); order: -1; }
  .who { max-height: 160px; }
  .msgs { height: min(52vh, 460px); padding: 8px 8px 10px; }
  .quick { display: none; }
  .msg .modbar { opacity: 1; display: flex; margin: 4px 0 0; } /* owner only: always visible tap targets on phones */
  .picker { position: fixed; left: 0; right: 0; bottom: 0; width: auto; max-width: none; border-radius: 20px 20px 0 0; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }
  .pk-grid { grid-template-columns: repeat(6, 1fr); max-height: 46vh; }
  .pk-grid .ebtn { min-height: 48px; }
  .pk-grid img { width: 40px; height: 40px; }
  .pk-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; background: rgba(5, 2, 18, .5); z-index: 29; }
  .ac { left: 8px; right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
