/* MAGWIC42: the one design shared by the website and the Studio (load this first, then the page's own CSS).
   Colours from the logo (violet, magenta, cyan, orange, a gold star). Work areas sit on a blueprint grid.
   Font: Plus Jakarta Sans (SIL Open Font License, see /static/fonts/OFL.txt). */
@font-face { font-family: "Jakarta"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/static/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jakarta"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/static/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* surfaces and ink */
  --bg: #f4f5fb; --surface: #ffffff; --surface2: #eef0f8; --surface3: #e5e8f3; --line: #e1e4f0; --line2: #cdd2e3;
  --ink: #16142d; --ink2: #4b4968; --ink3: #84829f;
  /* brand (the logo) */
  --brand: #6d3df5; --brand2: #8b5cf6; --brand-ink: #ffffff; --brand-soft: #ece6ff;
  --violet: var(--brand); --violet-soft: var(--brand-soft);
  --magenta: #d946ef; --magenta-soft: #fbe8fd; --cyan: #06b6d4; --cyan-soft: #dcf6fb; --amber: #ff8a1f; --orange: var(--amber); --amber-soft: #fff0e1; --gold: #f5b301;
  --good: #16a06a; --good-soft: #e1f6ec; --bad: #dc4848; --bad-soft: #fde7e7; --neutral: #6b7280;
  --grad: linear-gradient(135deg, #6d3df5 0%, #b142f0 55%, #e0459b 100%);
  --grad-warm: linear-gradient(135deg, #ff8a1f, #e0459b);
  /* the blueprint grid (work areas) */
  --grid-bg: #eef3fc; --grid-line: rgba(56, 98, 200, .085); --grid-major: rgba(56, 98, 200, .17);
  /* shape */
  --radius: 14px; --radius-s: 10px; --radius-l: 20px;
  --shadow: 0 1px 2px rgba(22, 20, 45, .05), 0 6px 20px rgba(22, 20, 45, .07);
  --shadow-l: 0 2px 6px rgba(22, 20, 45, .06), 0 18px 50px rgba(22, 20, 45, .14);
  --font: "Jakarta", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --tap: 44px; /* the smallest thing a finger has to hit */
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0a17; --surface: #151328; --surface2: #1d1a35; --surface3: #262245; --line: #2a2647; --line2: #3a3560;
  --ink: #f1efff; --ink2: #bdb8de; --ink3: #8781ab;
  --brand: #9a7bff; --brand2: #b49bff; --brand-soft: #2a2154; --magenta-soft: #3a1745; --cyan-soft: #0e3440; --amber-soft: #3b2614;
  --good-soft: #12322a; --bad-soft: #3c1b1f;
  --grid-bg: #0c1426; --grid-line: rgba(120, 165, 255, .065); --grid-major: rgba(120, 165, 255, .14);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 20px rgba(0, 0, 0, .35);
  --shadow-l: 0 2px 6px rgba(0, 0, 0, .4), 0 18px 50px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* the blueprint grid: put class "bp" on any work area (the map, the blocks, around the canvas, the sound timeline).
   --gx / --gy move it with the view when the area pans. */
.bp {
  background-color: var(--grid-bg);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px), linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: calc(var(--gs, 20px) * 5) calc(var(--gs, 20px) * 5), calc(var(--gs, 20px) * 5) calc(var(--gs, 20px) * 5), var(--gs, 20px) var(--gs, 20px), var(--gs, 20px) var(--gs, 20px);
  background-position: var(--gx, 0) var(--gy, 0);
}
/* a lighter touch of the grid for website sections */
.bp-soft {
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* icons (web/static/icons.js) */
.icon { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: -.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* the install-the-app banner (web/static/pwa.js) */
.installbar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 80; display: flex; gap: 12px; align-items: center; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-l); padding: 10px 12px 10px 14px; width: min(560px, calc(100vw - 24px)); font: 14px/1.4 var(--font); }
.installbar img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.installbar b { display: block; font-size: 15px; }
.installbar .grow { flex: 1; min-width: 0; }
.installbar button { font: 700 14px var(--font); border-radius: 10px; min-height: 40px; padding: 6px 14px; cursor: pointer; border: 1px solid var(--line2); background: var(--surface); color: var(--ink); }
.installbar button.go { background: var(--brand); border-color: var(--brand); color: #fff; }
.iosguide { display: grid; gap: 10px; }
.iosguide ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.iosguide .shareic { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--surface2); vertical-align: middle; }
.netdot { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--amber); }

/* the test server banner */
.demobar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2500; background: #f59e0b; color: #1c1917; font: 700 13px/1.3 var(--font); text-align: center; padding: 6px 12px; }
