@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Rajdhani:wght@500;600;700&display=swap');

/* ============================================================================
   Meyo SKY2 - Global — design system: tokens, night-sky backdrop, header,
   footer and shared components. Loaded on every page after core.css.
   Header/footer markup lives in /js/layout.js.
   ========================================================================== */

:root {
  /* surfaces */
  --my-bg: #060a16;
  --my-bg-2: #0a1122;
  --my-panel: rgba(14, 23, 48, .78);
  --my-panel-solid: #0e1730;
  --my-panel-2: #131e3a;
  --my-line: rgba(170, 196, 255, .10);
  --my-line-strong: rgba(170, 196, 255, .18);
  /* text */
  --my-text: #e9efff;
  --my-text-dim: #8e9bbd;
  --my-text-mute: #66738f;
  /* accents */
  --my-accent: #38d0ff;
  --my-accent-lt: #8ee6ff;
  --my-accent-deep: #2f8fff;
  --my-accent-grad: linear-gradient(135deg, #7ee8ff 0%, #38c4ff 45%, #3d7bff 100%);
  --my-accent-ink: #041226;
  --my-violet: #9b8cff;
  --my-violet-lt: #c3b8ff;
  --my-mint: #3ee6b0;
  --my-mint-lt: #86f3cf;
  --my-rose: #ff6b8b;
  --my-amber: #ffb454;
  --my-glow: 0 0 0 1px rgba(56, 208, 255, .35), 0 12px 34px rgba(47, 143, 255, .35);
  /* type */
  --my-font: Inter, 'Segoe UI', system-ui, sans-serif;
  --my-head: Rajdhani, 'Segoe UI', system-ui, sans-serif;
  --my-radius: 16px;
}

html { background: var(--my-bg); }
body {
  background: var(--my-bg);
  color: var(--my-text);
  font-family: var(--my-font);
  -webkit-font-smoothing: antialiased;
  position: relative;
  isolation: isolate;
}
/* night sky: aurora wash + two star fields, fixed behind all content */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1200px 520px at 12% -12%, rgba(111, 123, 255, .20), transparent 60%),
    radial-gradient(900px 480px at 88% -8%, rgba(56, 208, 255, .15), transparent 58%),
    radial-gradient(700px 420px at 50% 115%, rgba(155, 140, 255, .10), transparent 60%),
    linear-gradient(180deg, #070c1c 0%, #060a16 45%, #050813 100%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1.2px 1.2px at 23px 41px, rgba(233, 244, 255, .9), transparent 60%),
    radial-gradient(1px 1px at 131px 97px, rgba(200, 225, 255, .75), transparent 60%),
    radial-gradient(1.4px 1.4px at 207px 23px, rgba(142, 230, 255, .8), transparent 60%),
    radial-gradient(1px 1px at 61px 173px, rgba(233, 244, 255, .6), transparent 60%),
    radial-gradient(1.1px 1.1px at 173px 211px, rgba(195, 184, 255, .7), transparent 60%),
    radial-gradient(1px 1px at 311px 137px, rgba(233, 244, 255, .55), transparent 60%),
    radial-gradient(1.3px 1.3px at 367px 289px, rgba(142, 230, 255, .6), transparent 60%);
  background-size: 240px 240px, 240px 240px, 240px 240px, 240px 240px, 240px 240px, 400px 400px, 400px 400px;
}
::selection { background: rgba(56, 208, 255, .32); color: #fff; }
a { transition: color .16s; }

/* ------------------------------------------------------------------ header -- */
#site-header { position: sticky; top: 0; z-index: 100; }
.mh-header {
  position: relative;
  background: rgba(7, 12, 26, .72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--my-line);
  font-family: var(--my-font);
}
.mh-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 208, 255, .45) 30%, rgba(155, 140, 255, .45) 70%, transparent);
  opacity: .6; pointer-events: none;
}
.mh-inner { max-width: 1280px; margin: 0 auto; padding: 0 22px; height: 66px; display: flex; align-items: center; gap: 12px; }

.mh-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
/* round owner logo badge (assets/brand/logo-badge-*.webp, transparent outside the ring) */
.mh-logo-mark { width: 40px; height: 40px; display: block; flex-shrink: 0; border-radius: 50%; filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .55)) drop-shadow(0 0 8px rgba(255, 70, 100, .18)); }
.mh-logo-txt { display: flex; flex-direction: column; line-height: 1; }
.mh-logo-title { font-family: var(--my-head); font-weight: 700; font-size: 1.5rem; letter-spacing: .16em; color: #f2f6ff; }
.mh-logo-title b { background: var(--my-accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mh-logo-sub { font-family: var(--my-head); font-weight: 600; font-size: .62rem; letter-spacing: .34em; text-transform: uppercase; color: var(--my-accent-lt); margin-top: 3px; }

.mh-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.mh-nav-link {
  position: relative; display: inline-block; padding: 8px 9px; border-radius: 999px;
  font-family: var(--my-head); font-size: .88rem; font-weight: 600; letter-spacing: .045em;
  text-transform: uppercase; color: #aab4cf; text-decoration: none; white-space: nowrap;
  transition: color .18s, background .18s;
}
.mh-nav-link:hover { color: #f2f6ff; background: rgba(56, 208, 255, .08); }
.mh-nav-link.active { color: #f2f6ff; background: rgba(56, 208, 255, .10); }
.mh-nav-link.active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--my-accent); box-shadow: 0 0 8px var(--my-accent); }
.mh-sep { width: 1px; height: 22px; background: var(--my-line-strong); margin: 0 6px; }

/* language selector */
.mh-lang { position: relative; display: flex; align-items: center; }
.mh-lang-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--my-line-strong); background: rgba(170, 196, 255, .04); color: #c3cde6;
  font-family: var(--my-head); font-weight: 600; font-size: .86rem; letter-spacing: .06em;
  cursor: pointer; white-space: nowrap; transition: color .18s, border-color .18s, background .18s;
}
.mh-lang-btn:hover { color: #f2f6ff; border-color: rgba(56, 208, 255, .5); background: rgba(56, 208, 255, .08); }
.mh-lang-globe { position: relative; width: 14px; height: 14px; flex-shrink: 0; border: 1.5px solid currentColor; border-radius: 50%; display: inline-block; opacity: .92; }
.mh-lang-globe::before { content: ""; position: absolute; top: 50%; left: -1.5px; right: -1.5px; height: 1.3px; background: currentColor; transform: translateY(-50%); }
.mh-lang-globe::after { content: ""; position: absolute; top: -1.5px; bottom: -1.5px; left: 50%; width: 6px; border-left: 1.3px solid currentColor; border-right: 1.3px solid currentColor; transform: translateX(-50%); border-radius: 50%; }
.mh-lang-chev { display: inline-block; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); margin-top: -2px; transition: transform .18s; }
.mh-lang.open .mh-lang-chev { transform: rotate(-135deg); margin-top: 3px; }
.mh-lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 30; min-width: 200px;
  background: rgba(12, 20, 42, .97); border: 1px solid var(--my-line-strong); border-radius: 16px; padding: 6px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 2px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.mh-lang-menu[hidden] { display: none; }
.mh-lang-head { padding: 7px 12px 8px; font-family: var(--my-head); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--my-text-mute); }
.mh-lang-opt { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 9px 11px; border: none; border-radius: 11px; background: transparent; color: #c7d1ea; font-family: var(--my-font); font-weight: 600; font-size: .86rem; cursor: pointer; text-align: left; transition: background .15s; }
.mh-lang-opt:hover { background: rgba(170, 196, 255, .06); }
.mh-lang-opt.active { background: rgba(56, 208, 255, .12); color: var(--my-accent-lt); }
.mh-lang-opt-code { min-width: 30px; font-family: var(--my-head); font-weight: 700; font-size: .74rem; letter-spacing: .06em; color: var(--my-text-mute); }
.mh-lang-opt.active .mh-lang-opt-code { color: var(--my-accent-lt); }
.mh-lang-opt-native { flex: 1; text-align: left; }
.mh-lang-opt-tick { color: var(--my-accent-lt); font-size: .82rem; font-weight: 700; }

/* header buttons */
.mh-btn-outline { padding: 8px 13px; border-radius: 999px; border: 1px solid var(--my-line-strong); font-family: var(--my-head); font-size: .9rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--my-text); text-decoration: none; white-space: nowrap; transition: border-color .18s, background .18s; }
.mh-btn-outline:hover { border-color: rgba(56, 208, 255, .6); background: rgba(56, 208, 255, .08); }
.mh-btn-shop { display: inline-flex; align-items: center; gap: 7px; margin-left: 4px; padding: 8px 14px; border-radius: 999px; background: var(--my-accent-grad); color: var(--my-accent-ink); font-family: var(--my-head); font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; box-shadow: 0 8px 22px rgba(47, 143, 255, .35); transition: transform .18s, filter .18s; }
.mh-btn-shop:hover { filter: brightness(1.08); transform: translateY(-1px); }
.mh-btn-shop.disabled { filter: grayscale(.5) brightness(.8); pointer-events: none; }
.mh-coin { width: 15px; height: 15px; }
.mh-logout { color: #ff8aa3 !important; }

/* mobile */
.mh-menu-toggle { display: none; width: 38px; height: 38px; border: 1px solid var(--my-line-strong); border-radius: 12px; background: rgba(170, 196, 255, .04) center/18px no-repeat url("/assets/menu.svg"); cursor: pointer; flex-shrink: 0; }
.mh-mobile { display: none; flex-direction: column; padding: 8px 16px 16px; border-top: 1px solid var(--my-line); background: rgba(6, 10, 22, .97); }
.mh-mobile.open { display: flex; }
.mh-mobile a { padding: 12px 6px; color: #c3cde6; text-decoration: none; font-family: var(--my-head); font-weight: 600; font-size: .98rem; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--my-line); }
.mh-mobile a:last-child { border-bottom: none; }

@media (max-width: 1120px) {
  .mh-nav { display: none; }
  .mh-logo { order: -1; }
  .mh-menu-toggle { display: block; margin-left: auto; }
}

/* ------------------------------------------------------------------ footer -- */
.mf-footer { position: relative; margin-top: 40px; background: linear-gradient(180deg, rgba(10, 17, 34, .85), #04070f 70%); border-top: 1px solid var(--my-line); font-family: var(--my-font); color: #9ea9c6; overflow: hidden; }
.mf-top-line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(56, 208, 255, .6) 35%, rgba(155, 140, 255, .6) 65%, transparent); }
.mf-footer::before { content: ""; position: absolute; left: 50%; top: -160px; width: 720px; height: 320px; margin-left: -360px; background: radial-gradient(ellipse, rgba(56, 208, 255, .10), transparent 65%); pointer-events: none; }
.mf-grid { position: relative; max-width: 1280px; margin: 0 auto; padding: 56px 24px 28px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.mf-logo { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.mf-logo-mark { width: 42px; height: 42px; display: block; flex-shrink: 0; border-radius: 50%; filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .55)); }
.mf-logo-title { font-family: var(--my-head); font-weight: 700; font-size: 1.6rem; letter-spacing: .16em; color: #f2f6ff; line-height: 1; }
.mf-logo-title b { background: var(--my-accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mf-logo-sub { display: block; font-family: var(--my-head); font-weight: 600; font-size: .66rem; letter-spacing: .34em; color: var(--my-accent-lt); text-transform: uppercase; margin-top: 4px; }
.mf-tagline { font-size: .88rem; line-height: 1.7; max-width: 340px; color: var(--my-text-dim); margin: 0 0 20px; }
.mf-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.mf-socials a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 17px; border: 1px solid var(--my-line-strong); border-radius: 999px; font-family: var(--my-head); font-size: .84rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #d0d9ef; text-decoration: none; transition: all .2s; }
.mf-socials a:hover { border-color: rgba(56, 208, 255, .55); color: var(--my-accent-lt); background: rgba(56, 208, 255, .07); }
.mf-col { display: flex; flex-direction: column; gap: 11px; }
.mf-col-head { font-family: var(--my-head); font-size: .86rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--my-accent-lt); margin-bottom: 5px; }
.mf-col a { font-size: .88rem; font-weight: 500; color: var(--my-text-dim); text-decoration: none; transition: color .16s; }
.mf-col a:hover { color: var(--my-text); }
.mf-bottom { position: relative; border-top: 1px solid var(--my-line); }
.mf-bottom-inner { max-width: 1280px; margin: 0 auto; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.mf-copy { font-size: .8rem; color: var(--my-text-mute); margin: 0; }
.mf-status { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; color: var(--my-text-dim); }
.mf-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--my-mint); box-shadow: 0 0 10px 1px rgba(62, 230, 176, .7); }

@media (max-width: 820px) {
  .mf-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .mf-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .mf-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------- shared page components -- */
.my-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.my-section-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--my-head); font-weight: 700; font-size: .84rem; letter-spacing: .22em; text-transform: uppercase; color: var(--my-violet-lt); margin-bottom: 6px; }
.my-section-label::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: var(--my-accent-grad); box-shadow: 0 0 10px rgba(56, 208, 255, .6); }
.my-h2 { font-family: var(--my-head); font-weight: 700; font-size: clamp(1.65rem, 4.4vw, 2.1rem); margin: 0; color: #f2f6ff; letter-spacing: .02em; }
.my-card { background: var(--my-panel); border: 1px solid var(--my-line); border-radius: var(--my-radius); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .2s, transform .2s, box-shadow .2s; }
.my-card:hover { border-color: rgba(56, 208, 255, .4); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.my-btn-primary { display: inline-flex; align-items: center; gap: 9px; padding: 14px 30px; border-radius: 999px; background: var(--my-accent-grad); color: var(--my-accent-ink); font-family: var(--my-head); font-weight: 700; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; box-shadow: 0 12px 30px rgba(47, 143, 255, .38); transition: transform .18s, filter .18s, box-shadow .18s; cursor: pointer; border: none; }
.my-btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: var(--my-glow); }
.my-btn-outline { display: inline-flex; align-items: center; gap: 9px; padding: 14px 28px; border-radius: 999px; border: 1px solid var(--my-line-strong); color: var(--my-text); background: rgba(170, 196, 255, .04); font-family: var(--my-head); font-weight: 600; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: all .18s; cursor: pointer; }
.my-btn-outline:hover { border-color: rgba(56, 208, 255, .6); background: rgba(56, 208, 255, .08); }

/* reusable sky hero backdrop: aurora + mountain silhouette (assets/brand/sky.svg) */
.my-sky {
  position: relative; overflow: hidden;
  background:
    url("/assets/brand/sky.svg") center bottom / max(100%, 1400px) auto no-repeat,
    radial-gradient(900px 380px at 20% 0%, rgba(111, 123, 255, .28), transparent 62%),
    radial-gradient(800px 360px at 85% 10%, rgba(56, 208, 255, .20), transparent 60%),
    linear-gradient(180deg, #0a1330 0%, #081026 55%, #060a16 100%);
}

/* --------------------------------------------------------- region selector -- */
.mh-region { position: relative; display: inline-flex; align-items: center; }
.mh-region-wrap { position: relative; display: inline-flex; align-items: center; }
.mh-region-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--my-line-strong); background: rgba(62, 230, 176, .06); color: #c6f7e6;
  font-family: var(--my-head); font-weight: 600; font-size: .86rem; letter-spacing: .06em;
  cursor: pointer; white-space: nowrap; transition: color .18s, border-color .18s, background .18s;
}
.mh-region-btn:hover { color: #eafff6; border-color: rgba(62, 230, 176, .5); background: rgba(62, 230, 176, .12); }
.mh-region-globe { position: relative; width: 13px; height: 13px; flex-shrink: 0; border: 1.5px solid var(--my-mint); border-radius: 50%; display: inline-block; }
.mh-region-globe::before { content: ""; position: absolute; top: 50%; left: -1.5px; right: -1.5px; height: 1.2px; background: var(--my-mint); transform: translateY(-50%); }
.mh-region-globe::after { content: ""; position: absolute; top: -1.5px; bottom: -1.5px; left: 50%; width: 6px; border-left: 1.2px solid var(--my-mint); border-right: 1.2px solid var(--my-mint); transform: translateX(-50%); border-radius: 50%; }
.mh-region-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 30; min-width: 180px;
  background: rgba(12, 20, 42, .97); border: 1px solid var(--my-line-strong); border-radius: 16px; padding: 6px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 2px;
}
.mh-region-menu[hidden] { display: none; }

/* first-visit region modal */
.mh-region-overlay { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(4, 7, 16, .74); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mh-region-card { width: 100%; max-width: 440px; background: var(--my-panel-solid); border: 1px solid var(--my-line-strong); border-radius: 22px; padding: 30px 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); text-align: center; }
.mh-region-card-title { font-family: var(--my-head); font-weight: 700; font-size: 1.6rem; color: #f2f6ff; margin-bottom: 8px; }
.mh-region-card-sub { font-size: .9rem; line-height: 1.55; color: var(--my-text-dim); margin-bottom: 22px; }
.mh-region-card-opts { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.mh-region-choice { flex: 1 1 130px; min-width: 130px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 14px; border-radius: 16px; border: 1px solid var(--my-line-strong); background: rgba(170, 196, 255, .04); color: var(--my-text); font-family: var(--my-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.mh-region-choice:hover { border-color: rgba(56, 208, 255, .55); background: rgba(56, 208, 255, .08); transform: translateY(-2px); }
.mh-region-choice.active { border-color: rgba(56, 208, 255, .6); }
.mh-region-globe.big { width: 30px; height: 30px; border-width: 2px; }
.mh-region-globe.big::before { height: 2px; }
.mh-region-globe.big::after { width: 13px; border-left-width: 2px; border-right-width: 2px; }
.mh-region-choice-label { font-size: 1.05rem; }

/* core.css cards picked up by every page (.panel-go): glass panels in the sky theme */
.panel-go { background: var(--my-panel); border: 1px solid var(--my-line); border-radius: var(--my-radius); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 18px 44px rgba(0, 0, 0, .28); }
.panel-go::before { display: none; }
.panel-go h2 { font-family: var(--my-head); font-weight: 700; letter-spacing: .03em; font-size: 1.35rem; }

/* ------------------------------------------------ left Discord dock (#mdc) -- */
.mdc { position: fixed; left: 18px; bottom: 18px; z-index: 90; font-family: var(--my-font); }
.mdc-fab { position: relative; width: 56px; height: 56px; border-radius: 18px; border: 1px solid rgba(140, 150, 255, .45); background: linear-gradient(145deg, #5865f2, #3d47c9); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 12px 30px rgba(88, 101, 242, .45), 0 0 0 4px rgba(88, 101, 242, .12); transition: transform .18s, box-shadow .18s; }
.mdc-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(88, 101, 242, .55), 0 0 0 5px rgba(88, 101, 242, .18); }
.mdc-fab svg { width: 28px; height: 28px; }
.mdc-fab-count { position: absolute; top: -7px; right: -9px; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: var(--my-mint); color: #03261c; font-family: var(--my-head); font-weight: 700; font-size: .8rem; line-height: 22px; text-align: center; box-shadow: 0 0 0 3px var(--my-bg); }
.mdc-fab-count:empty { display: none; }
.mdc-panel { display: none; width: 290px; max-height: min(460px, calc(100vh - 110px)); flex-direction: column; background: rgba(10, 16, 34, .94); border: 1px solid var(--my-line-strong); border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: hidden; }
.mdc[data-open="1"] .mdc-panel { display: flex; animation: mdc-in .22s ease-out; }
.mdc[data-open="1"] .mdc-fab { display: none; }
@keyframes mdc-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.mdc-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; background: linear-gradient(135deg, rgba(88, 101, 242, .30), rgba(56, 208, 255, .10)); border-bottom: 1px solid var(--my-line); }
.mdc-logo { width: 36px; height: 36px; border-radius: 11px; background: #5865f2; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mdc-logo svg { width: 21px; height: 21px; }
.mdc-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.mdc-title b { font-family: var(--my-head); font-weight: 700; font-size: 1.02rem; letter-spacing: .03em; color: #f2f6ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mdc-online { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--my-text-dim); }
.mdc-online i { width: 8px; height: 8px; border-radius: 50%; background: var(--my-mint); box-shadow: 0 0 8px rgba(62, 230, 176, .8); }
#mdc-online-n { color: var(--my-mint-lt); font-weight: 700; }
.mdc-min { width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; border: 1px solid var(--my-line-strong); background: rgba(170, 196, 255, .05); color: var(--my-text-dim); font-size: 1.15rem; line-height: 1; cursor: pointer; transition: color .15s, border-color .15s; }
.mdc-min:hover { color: #fff; border-color: rgba(56, 208, 255, .5); }
.mdc-sub { padding: 10px 14px 6px; font-family: var(--my-head); font-weight: 700; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--my-text-mute); }
.mdc-list { list-style: none; margin: 0; padding: 2px 8px 6px; overflow-y: auto; flex: 1; min-height: 0; scrollbar-width: thin; scrollbar-color: #2a3a63 transparent; }
.mdc-list li { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; }
.mdc-list li:hover { background: rgba(170, 196, 255, .05); }
.mdc-list li.mdc-empty { color: var(--my-text-dim); font-size: .85rem; padding: 10px 6px; }
.mdc-av { position: relative; width: 28px; height: 28px; flex-shrink: 0; }
.mdc-av img, .mdc-av .ph { width: 28px; height: 28px; border-radius: 50%; display: block; background: #26324f; object-fit: cover; }
.mdc-av::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid #0a1022; background: var(--my-mint); }
.mdc-av.idle::after { background: var(--my-amber); }
.mdc-av.dnd::after { background: var(--my-rose); }
.mdc-nm { font-size: .86rem; color: #d0d9ef; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mdc-join { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 8px 12px 12px; padding: 11px 14px; border-radius: 999px; background: #5865f2; color: #fff; font-family: var(--my-head); font-weight: 700; font-size: .96rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; box-shadow: 0 10px 24px rgba(88, 101, 242, .4); transition: filter .18s, transform .18s; }
.mdc-join:hover { filter: brightness(1.1); transform: translateY(-1px); }
.mdc-join svg { width: 18px; height: 18px; }
@media (max-width: 600px) {
  .mdc { left: 12px; bottom: 12px; }
  .mdc-panel { width: calc(100vw - 24px); max-height: 62vh; }
  .mdc-fab { width: 50px; height: 50px; border-radius: 16px; }
}

/* wide letter-spacing suits Latin caps only; tighten it for Thai / Korean / Chinese */
:lang(th) .my-section-label, :lang(ko) .my-section-label, :lang(zh-CN) .my-section-label,
:lang(th) .mh-nav-link, :lang(ko) .mh-nav-link, :lang(zh-CN) .mh-nav-link { letter-spacing: .04em; }
/* keep the mobile Discord button from covering the last footer line */
@media (max-width: 600px) { .mf-bottom-inner { padding-bottom: 84px; } }
