:root {
  --mg-bg: #090c12;
  --mg-surface: #111722;
  --mg-surface-raised: #182130;
  --mg-border: #2a3545;
  --mg-primary: #d7ff00;
  --mg-accent: #22d3a7;
  --mg-text: #f6f8fb;
  --mg-muted: #aeb8c8;
  --mg-danger: #ff667a;
  --mg-warning: #ffd447;
  --mg-radius: 6px;
  --mg-shadow: 0 16px 42px rgba(0, 0, 0, .3);
  --mg-header-height: 70px;
  --mg-space-1: 4px;
  --mg-space-2: 8px;
  --mg-space-3: 12px;
  --mg-space-4: 16px;
  --mg-space-5: 24px;
  --mg-space-6: 32px;
}

.mg-global-skip { position: fixed; top: 8px; left: 8px; z-index: 12000; transform: translateY(-150%); padding: 10px 14px; color: #081006; background: var(--mg-primary); border-radius: var(--mg-radius); font: 700 14px/1 system-ui, sans-serif; }
.mg-global-skip:focus { transform: translateY(0); }
.mg-global-compliance { min-height: 29px; display: grid; place-items: center; padding: 6px 16px; color: #d6dde8; background: #07090d; border-bottom: 1px solid #222b37; font: 600 11px/1.35 system-ui, sans-serif; text-align: center; letter-spacing: 0; }
.mg-global-header { position: sticky; top: 0; z-index: 10000; min-height: var(--mg-header-height); color: var(--mg-text); background: rgba(12, 16, 24, .97); border-bottom: 1px solid var(--mg-border); box-shadow: 0 5px 20px rgba(0,0,0,.18); backdrop-filter: blur(14px); }
.mg-global-header *, .mg-global-footer * { box-sizing: border-box; }
.mg-global-header-inner { width: min(1480px, calc(100% - 32px)); min-height: var(--mg-header-height); margin: 0 auto; display: flex; align-items: center; gap: 20px; }
.mg-global-brand { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; color: var(--mg-text); text-decoration: none; font: 800 17px/1 system-ui, sans-serif; letter-spacing: 0; white-space: nowrap; }
.mg-global-brand img { display: block; width: 42px; height: 42px; object-fit: contain; }
.mg-global-brand b { color: var(--mg-primary); font: inherit; }
.mg-global-desktop-nav { display: flex; align-items: center; gap: 2px; min-width: 0; margin-left: auto; }
.mg-global-link, .mg-global-more > summary { min-height: 42px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: var(--mg-radius); color: #c8d1de; text-decoration: none; font: 700 13px/1 system-ui, sans-serif; letter-spacing: 0; cursor: pointer; white-space: nowrap; }
.mg-global-link:hover, .mg-global-link[aria-current="page"], .mg-global-more > summary:hover, .mg-global-more > summary[aria-current="page"] { color: var(--mg-text); background: var(--mg-surface-raised); }
.mg-global-link[aria-current="page"] { box-shadow: inset 0 -2px var(--mg-primary); }
.mg-global-more { position: relative; }
.mg-global-more > summary { list-style: none; }
.mg-global-more > summary::-webkit-details-marker { display: none; }
.mg-global-more > summary::after { content: ''; width: 6px; height: 6px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.mg-global-more > div { position: absolute; top: calc(100% + 8px); right: 0; width: 230px; padding: 8px; background: var(--mg-surface); border: 1px solid var(--mg-border); border-radius: var(--mg-radius); box-shadow: var(--mg-shadow); }
.mg-global-more > div a { display: block; padding: 11px 12px; color: #d7deea; text-decoration: none; font: 650 13px/1.25 system-ui, sans-serif; border-radius: 4px; }
.mg-global-more > div a:hover, .mg-global-more > div a:focus-visible { color: #091005; background: var(--mg-primary); }
.mg-global-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.mg-global-account { min-height: 40px; display: inline-flex; align-items: center; padding: 0 13px; color: var(--mg-text); background: #202938; border: 1px solid #364256; border-radius: var(--mg-radius); text-decoration: none; font: 750 12px/1 system-ui, sans-serif; }
.mg-global-points { color: var(--mg-primary); font: 750 12px/1 system-ui, sans-serif; }
.mg-global-stake { min-height: 44px; display: grid; align-content: center; padding: 4px 12px; color: #07100c; background: #19e078; border-radius: var(--mg-radius); text-decoration: none; font-family: system-ui, sans-serif; }
.mg-global-stake span { font-size: 11px; font-weight: 800; }
.mg-global-stake strong { font-size: 9px; line-height: 1.1; }
.mg-global-menu { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid #39465a; border-radius: var(--mg-radius); background: #171e29; cursor: pointer; }
.mg-global-menu span { display: block; height: 2px; margin: 4px 0; background: var(--mg-text); }
.mg-global-menu .sr-only, .mg-global-header .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mg-global-mobile-nav { position: absolute; top: 100%; right: 0; left: 0; max-height: calc(100svh - var(--mg-header-height)); overflow-y: auto; padding: 10px 16px 24px; background: #0c1119; border-bottom: 1px solid var(--mg-border); box-shadow: var(--mg-shadow); }
.mg-global-mobile-nav .mg-global-link { width: 100%; min-height: 48px; padding: 0 12px; }
.mg-global-mobile-more { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--mg-border); }
.mg-global-mobile-more strong { padding: 8px 12px; color: var(--mg-muted); font: 750 11px/1 system-ui, sans-serif; text-transform: uppercase; }
.mg-global-mobile-more a { min-height: 44px; display: flex; align-items: center; padding: 0 12px; color: #d7deea; text-decoration: none; font: 650 13px/1 system-ui, sans-serif; }
.mg-global-mobile-nav .mg-global-stake { margin-top: 10px; }
.mg-global-footer { clear: both; color: var(--mg-text); background: #080b10; border-top: 1px solid var(--mg-border); font-family: system-ui, sans-serif; }
.mg-global-footer-inner { width: min(1320px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 34px; display: grid; grid-template-columns: minmax(240px, 1.6fr) repeat(4, minmax(130px, 1fr)); gap: 30px; }
.mg-global-footer-intro p { max-width: 330px; margin: 15px 0 0; color: var(--mg-muted); font: 400 13px/1.6 system-ui, sans-serif; }
.mg-global-footer-group { display: grid; align-content: start; gap: 9px; }
.mg-global-footer-group strong { margin-bottom: 3px; color: var(--mg-text); font: 800 12px/1 system-ui, sans-serif; text-transform: uppercase; }
.mg-global-footer-group a { color: var(--mg-muted); text-decoration: none; font: 600 13px/1.3 system-ui, sans-serif; }
.mg-global-footer-group a:hover { color: var(--mg-primary); }
.mg-global-footer-legal { width: min(1320px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0 24px; display: flex; justify-content: space-between; gap: 20px; color: #8f9bad; border-top: 1px solid #202835; font: 600 10px/1.5 system-ui, sans-serif; }
.mg-global-header a:focus-visible, .mg-global-header button:focus-visible, .mg-global-header summary:focus-visible, .mg-global-footer a:focus-visible { outline: 3px solid var(--mg-primary); outline-offset: 2px; }

@media (max-width: 1120px) {
  .mg-global-desktop-nav { display: none; }
  .mg-global-actions { margin-left: auto; }
  .mg-global-menu { display: block; }
  .mg-global-footer-inner { grid-template-columns: 1.5fr repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .mg-global-compliance { min-height: 34px; font-size: 9px; }
  .mg-global-header-inner { width: calc(100% - 20px); gap: 8px; }
  .mg-global-brand span { font-size: 14px; }
  .mg-global-brand img { width: 36px; height: 36px; }
  .mg-global-actions > .mg-global-stake, .mg-global-actions > .mg-global-points { display: none !important; }
  .mg-global-account { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mg-global-footer-inner { grid-template-columns: 1fr 1fr; gap: 26px 20px; padding-top: 34px; }
  .mg-global-footer-intro { grid-column: 1 / -1; }
  .mg-global-footer-legal { flex-direction: column; gap: 8px; }
}
@media (max-width: 390px) {
  .mg-global-brand span { display: none; }
  .mg-global-footer .mg-global-brand span { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .mg-global-header *, .mg-global-footer * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
