

body.stc-menu-open { overflow: hidden; }
body.stc-modal-open { overflow: hidden; }
.stc-burger,
.stc-vip-link,
.stc-lang a{
  touch-action: manipulation;
}

.stc-clean-header {
  position: fixed;
  top: var(--header-top);
  left: var(--header-side);
  right: var(--header-side);
  z-index: 110;
  display: block;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  background: var(--stc-island-background);
  box-shadow: none;
  overflow: hidden;
  transition: border-radius var(--motion-slow) var(--ease-out), background var(--motion-slow) ease, box-shadow var(--motion-slow) ease;
}
.stc-clean-header.is-menu-open,
.stc-menu-open .stc-clean-header {
  z-index: 10000;
  border-color: rgba(255, 255, 255, .12);
  border-radius: 22px;
  background: var(--stc-island-background);
  box-shadow: var(--shadow);
}
.stc-header-row {
  min-height: 44px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.stc-header-spacer { min-width: 0; }
.stc-burger,
.stc-vip-link,
.stc-language-trigger{
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .055);
  color: var(--text);
  text-decoration: none;
}
.stc-burger {
  width: 46px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transition: transform var(--motion-fast) var(--ease-spring-like), border-color var(--motion-base) ease, background var(--motion-base) ease, color var(--motion-base) ease;
}
.stc-burger span {
  display: block;
  position: relative;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: background var(--motion-base) ease;
}
.stc-burger span::before,
.stc-burger span::after {
  position: absolute;
  left: 0;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  content: "";
  transition: top var(--motion-slow) var(--ease-out), transform var(--motion-slow) var(--ease-out);
}
.stc-burger span::before { top: -6px; }
.stc-burger span::after { top: 6px; }
.stc-menu-open .stc-burger {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.stc-menu-open .stc-burger span { background: transparent; }
.stc-menu-open .stc-burger span::before {
  top: 0;
  transform: rotate(45deg);
}
.stc-menu-open .stc-burger span::after {
  top: 0;
  transform: rotate(-45deg);
}
.stc-language-trigger {
  min-width: 46px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: color var(--motion-base) ease, border-color var(--motion-base) ease, background var(--motion-base) ease;
}
.stc-language-trigger::after {
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform var(--motion-base) var(--ease-out);
}
.stc-language-trigger[aria-expanded="true"] { color: var(--accent); border-color: rgba(215, 255, 47, .32); }
.stc-language-trigger[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(225deg); }
.stc-language-popover {
  position: fixed;
  top: calc(var(--header-top) + var(--header-h) - 2px);
  left: calc(var(--header-side) + 86px);
  z-index: 10020;
  width: min(210px, calc(100vw - 24px));
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: rgba(10,13,13,.96);
  color: var(--text);
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity var(--motion-base) ease, transform var(--motion-base) var(--ease-out), display var(--motion-base) allow-discrete, overlay var(--motion-base) allow-discrete;
}
.stc-language-popover:popover-open { display: grid; gap: 4px; opacity: 1; transform: translateY(0); }
.stc-language-popover a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}
.stc-language-popover a span { color: var(--soft); font-size: 11px; font-weight: 900; }
.stc-language-popover a[aria-current="true"],
.stc-language-popover a:hover { border-color: rgba(215,255,47,.24); background: rgba(215,255,47,.07); color: var(--accent); }
.stc-logo {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  text-align: center;
  line-height: 1;
}
.stc-logo img { width: 104px; height: 104px; max-width: none; object-fit: contain; position: absolute; top: -33px; left: 0; }
.stc-menu-brand span { display: block; }
.stc-logo-link {
  width: 104px;
  height: 44px;
  min-width: 104px;
  position: relative;
  overflow: hidden;
  color: var(--text);
}
.stc-logo-link:hover strong { color: var(--accent); }
.stc-vip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 46px;
  min-width: 46px;
  padding: 0;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  color: #111404;
  background: var(--accent);
  border: 0;
  font-weight: 950;
}
.stc-vip-link img {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  max-width: none;
  flex-shrink: 0;
  object-fit: contain;
}
.stc-vip-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #111404;
  font-size: 11px;
  font-weight: 950;
  opacity: 0;
  transition: opacity var(--motion-base) ease;
}
.stc-vip-link.is-icon-missing .stc-vip-fallback { opacity: 1; }
.stc-vip-link.is-icon-missing img { display: none; }

.stc-clean-menu {
  position: fixed;
  top: calc(var(--header-top) + var(--header-h) + 10px);
  left: var(--header-side);
  right: var(--header-side);
  z-index: 9999;
  max-height: min(480px, calc(100dvh - var(--header-h) - var(--header-top) - 30px));
  padding: 12px;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background: var(--stc-island-background, rgba(10,13,13,.96));
  box-shadow: 0 28px 80px rgba(0,0,0,.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, -10px, 0);
  transform-origin: top;
  transition:
    opacity var(--motion-base) ease,
    transform var(--motion-slow) var(--ease-out),
    visibility 0s linear var(--motion-slow);
}
.stc-menu-content { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stc-menu-open .stc-clean-menu {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  transition-delay: 0s;
}
.stc-menu-backdrop {
  position: fixed;
  z-index: 9998;
  inset: 0;
  background: rgba(0, 0, 0, .46);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--stc-motion-standard) ease;
}
.stc-menu-open .stc-menu-backdrop { opacity: 1; pointer-events: auto; }
.stc-clean-menu a {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity var(--motion-base) ease, transform var(--motion-slow) var(--ease-out), border-color var(--motion-base) ease, background var(--motion-base) ease, color var(--motion-base) ease;
}
.stc-clean-menu a:hover {
  color: var(--accent);
  border-color: rgba(215, 255, 47, .32);
  background: rgba(215, 255, 47, .065);
}
.stc-clean-menu small {
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
  text-transform: none;
}
.stc-menu-open .stc-clean-menu a { opacity: 1; transform: translateY(0); }
.stc-menu-open .stc-clean-menu a:nth-child(1) { transition-delay: .015s; }
.stc-menu-open .stc-clean-menu a:nth-child(2) { transition-delay: .03s; }
.stc-menu-open .stc-clean-menu a:nth-child(3) { transition-delay: .045s; }
.stc-menu-open .stc-clean-menu a:nth-child(4) { transition-delay: .06s; }
.stc-menu-open .stc-clean-menu a:nth-child(5) { transition-delay: .075s; }
.stc-menu-open .stc-clean-menu a:nth-child(6) { transition-delay: .09s; }
.stc-menu-open .stc-clean-menu a:nth-child(7) { transition-delay: .105s; }
.stc-menu-open .stc-clean-menu a:nth-child(8) { transition-delay: .12s; }
.stc-menu-open .stc-clean-menu a:nth-child(9) { transition-delay: .135s; }

.stc-account-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: min(680px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  background: rgba(14,17,18,.98);
  color: var(--text);
  box-shadow: 0 36px 110px rgba(0,0,0,.62);
  opacity: 0;
  transform: translateY(14px) scale(.985);
  transition: opacity var(--motion-base) ease, transform var(--motion-slow) var(--ease-out), display var(--motion-slow) allow-discrete, overlay var(--motion-slow) allow-discrete;
}
.stc-account-dialog[open] { opacity: 1; transform: translateY(0) scale(1); }
.stc-account-dialog::backdrop { background: rgba(0,0,0,.64); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.stc-account-dialog-inner { position: relative; padding: 34px; overflow: auto; }
.stc-account-dialog[data-auth-state="OTP_SENDING"] [data-account-otp-copy]::before,
.stc-account-dialog[data-auth-state="OTP_VERIFYING"] [data-account-otp-copy]::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(215,255,47,.09);
  content: "";
}
.stc-account-dialog h2 { margin: 8px 44px 10px 0; font-size: 32px; line-height: 1.1; overflow-wrap: anywhere; }
[data-account-entry].is-pending { opacity: .72; outline: 2px solid var(--stc-lime, #d4ff18); outline-offset: 3px; cursor: progress; }
.stc-account-dialog p { color: var(--muted); line-height: 1.5; }
.stc-account-eyebrow { margin: 0; color: var(--accent) !important; font-size: 11px; font-weight: 950; letter-spacing: .12em; }
.stc-account-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.06); color: var(--text); cursor: pointer; }
.stc-account-close span::before, .stc-account-close span::after { position: absolute; top: 21px; left: 13px; width: 18px; height: 2px; border-radius: 2px; background: currentColor; content: ""; }
.stc-account-close span::before { transform: rotate(45deg); }
.stc-account-close span::after { transform: rotate(-45deg); }
.stc-account-form { display: grid; gap: 14px; margin-top: 24px; }
.stc-account-form label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 800; }
.stc-account-form input { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: #090c0d; color: var(--text); font: inherit; }
.stc-account-form input:focus { outline: 2px solid rgba(215,255,47,.52); outline-offset: 2px; border-color: rgba(215,255,47,.45); }
.stc-account-form button { position: relative; min-height: 52px; }
.stc-account-form button i { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: stc-account-spin .7s linear infinite; }
.stc-account-form button[aria-busy="true"] i { display: inline-block; }
.stc-account-secondary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 14px; }
.stc-account-secondary button { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--muted); text-decoration: none; cursor: pointer; }
.stc-account-secondary button:hover:not(:disabled) { color: var(--accent); }
.stc-account-secondary button:disabled { color: var(--soft); cursor: default; }
.stc-account-status { min-height: 24px; margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.stc-account-status.is-error { color: #ff8d8d; }
.stc-account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@keyframes stc-account-spin { to { transform: rotate(360deg); } }
.stc-burger:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.stc-burger:active,
.stc-vip-link:active,
.stc-lang a:active{
  transform: translateY(1px) scale(.98);
}
@media (max-width: 767px) {
  :root {
    --header-h: 56px;
    --header-top: 8px;
    --header-side: 12px;}
  .stc-clean-header {
    padding: 5px 10px;
    border-radius: 18px;
  }
  .stc-menu-open .stc-clean-header { border-radius: 18px; }
  .stc-header-row {
    min-height: 44px;
    grid-template-columns: auto auto minmax(0, 1fr) auto auto;
    gap: 8px;
  }
  .stc-language-trigger { min-width: 44px; min-height: 44px; padding: 0 8px; font-size: 12px; }
  .stc-language-popover { top: 72px; left: 56px; }
  .stc-vip-link {
    display: inline-flex;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    height: 44px;
    padding: 0;
  }
  .stc-vip-link img {
    width: 52px;
    height: 52px;
  }
  .stc-logo,
  .stc-logo-link { justify-self: start; min-width: 80px; width: 80px; }
  .stc-logo img { width: 84px; height: 84px; top: -22px; }
  .stc-burger {
    width: 44px;
    min-height: 44px;
    height: 44px;
    border: 0;
    background: transparent;
  }
  .stc-clean-menu {
    top: 86px;
    left: 10px;
    right: 10px;
    border-radius: 18px;
  }
  .stc-clean-header.is-menu-open,
  .stc-menu-open .stc-clean-header { border-radius: 18px; }
  .stc-menu-open .stc-clean-menu {
    max-height: calc(100dvh - 98px);
    padding: 8px 10px 10px;
    overflow-y: auto;
    transform: translate3d(0, 0, 0);
  }
  .stc-menu-content { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .stc-clean-menu a {
    min-height: 44px;
    padding: 9px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 760;
  }
  .stc-clean-menu small { display: none; }
  .stc-account-dialog {
    width: min(520px, calc(100vw - 20px));
    max-height: calc(100dvh - max(20px, env(safe-area-inset-top)) - max(10px, env(safe-area-inset-bottom)));
    margin: auto auto max(10px, env(safe-area-inset-bottom));
    border-radius: 22px;
  }
  .stc-account-dialog-inner {
    max-height: inherit;
    padding: 28px 20px max(22px, env(safe-area-inset-bottom));
    overscroll-behavior: contain;
  }}

@media (prefers-reduced-motion: reduce) {
  .stc-language-popover,
  .stc-clean-menu,
  .stc-account-dialog { transition: none !important; }
  .stc-account-form button i { animation: none !important; }}
@media (max-width: 480px) {
  .stc-language-trigger { min-width: 44px; padding: 0 7px; }
  .stc-language-popover { left: 48px; }
  .stc-menu-content { grid-template-columns: 1fr; }
  .stc-clean-menu a { min-height: 44px; }}
@supports (backdrop-filter: blur(16px)) {
  :root { --stc-island-background: rgba(20,22,25,.88); }
  .stc-clean-header, .stc-clean-menu { backdrop-filter: blur(16px) saturate(1.1); }
}
[data-reduced-effects="true"] { --stc-island-background: #141619; }
[data-reduced-effects="true"] :is(.stc-clean-header,.stc-clean-menu,.workspace-navigation) { backdrop-filter: none; -webkit-backdrop-filter: none; }
.stc-account-dialog .stc-account-surface[aria-hidden="true"] { display: none; }
.stc-account-dialog .stc-account-surface[aria-hidden="false"] { display: grid; gap: 16px; }
.stc-account-form button[type="submit"] { display: flex; align-items: center; justify-content: center; padding: 13px 18px; border: 0; border-radius: 16px; background: var(--accent); color: #071007; font-weight: 900; }
.stc-account-form input { font-size: 16px; }
.stc-account-dialog-inner { max-height: calc(100dvh - 32px); }
.stc-language-popover.is-fallback-open { display: grid; opacity: 1; transform: none; }
.stc-language-popover[hidden] { display: none; }
@starting-style { .stc-language-popover:popover-open { opacity: 0; transform: translateY(-6px); } }
@starting-style { .stc-account-dialog[open] { opacity: 0; transform: translateY(14px) scale(.985); } }
@media(max-width:767px) { .stc-account-dialog-inner { padding: 24px; } }
