/* ESC STUDIO overlay styles. Only ESC chrome lives here; openDAW's own UI keeps its layout. */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/esc/fonts/oswald-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/esc/fonts/oswald-latin-600-normal.woff2") format("woff2"); }

:root {
  --esc-gold: #d4af37;
  --esc-gold-dim: #a07a30;
  --esc-black: #0a0a0a;
  --esc-ink: #12100a;
  --esc-footer-h: 22px;
  /* warm ESC blacks + gold active colour over openDAW's CSS colour variables */
  --color-header-background: #0a0a0a !important;
  --color-footer-background: #12100a !important;
  --color-menu-active: #a07a30 !important;
}
html, body { background-color: var(--esc-black) !important; }
/* leave room for the always-visible ESC/AGPL footer */
body.esc-has-footer { height: calc(100% - var(--esc-footer-h)) !important; }
#preloader { filter: sepia(1) saturate(4) hue-rotate(5deg); }

#esc-footer {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--esc-footer-h); z-index: 2147483000;
  display: flex; align-items: center; gap: 10px; padding: 0 10px; box-sizing: border-box;
  background: var(--esc-ink); border-top: 1px solid rgba(212,175,55,.35);
  font: 400 11px/1 "Oswald", "Arial Narrow", sans-serif; letter-spacing: .06em; text-transform: uppercase;
  color: #bfae78; white-space: nowrap; overflow: hidden;
}
#esc-footer img { height: 14px; width: auto; display: block; }
#esc-footer b { color: var(--esc-gold); font-weight: 600; }
#esc-footer a { color: #e8d9a0; text-decoration: none; border-bottom: 1px dotted rgba(232,217,160,.5); }
#esc-footer a:hover { color: #fff; }
#esc-footer .sp { flex: 1; }

/* desktop-only gate */
#esc-gate {
  position: fixed; inset: 0 0 var(--esc-footer-h) 0; z-index: 2147482000; overflow: auto;
  display: flex; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box;
  background: radial-gradient(ellipse at 50% 20%, #1a1608 0%, #0a0a0a 70%);
  color: #eee; font-family: "Oswald", "Arial Narrow", sans-serif; text-align: center;
}
#esc-gate .card { max-width: 420px; width: 100%; }
#esc-gate img.logo { width: min(220px, 60vw); height: auto; border-radius: 10px; }
#esc-gate h1 { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--esc-gold); margin: 14px 0 4px; font-size: 30px; }
#esc-gate .tag { color: #bfae78; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; margin: 0 0 18px; }
#esc-gate p { font-family: system-ui, sans-serif; color: #ccc; line-height: 1.45; font-size: 15px; }
#esc-gate .big { font-family: "Oswald", sans-serif; font-size: 22px; color: #fff; letter-spacing: .04em; margin: 18px 0 8px; }
#esc-gate .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
#esc-gate button, #esc-gate a.btn {
  font: 600 14px "Oswald", sans-serif; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  padding: 10px 16px; border-radius: 8px; border: 1px solid var(--esc-gold); text-decoration: none;
}
#esc-gate button { background: var(--esc-gold); color: #12100a; }
#esc-gate a.btn { background: transparent; color: var(--esc-gold); }
#esc-gate .url { font-family: ui-monospace, monospace; font-size: 13px; color: #e8d9a0; word-break: break-all; }
#esc-gate .legal a { color: #bfae78; }
@media (max-width: 760px) {
  #esc-footer { gap: 8px; font-size: 10px; }
  #esc-footer img, #esc-footer .sp, #esc-footer > span:nth-of-type(3) { display: none; }
}
/* 2026-11-19: the phone/tablet gate shows exactly one ESC logo (its own), also on tablets wider than 760px */
html[data-esc-gate="blocked"] #esc-footer img { display: none; }
