/* ============================================================
   Game UI Composer — foundation
   Design tokens + base styles + branding + toast (page styles live in wizard.css)
   Amber = actions / CTA · Cyan = scanning, selection, and technical states
   ============================================================ */

:root {
  color-scheme: dark;
  --bg: #0a0e1c;
  --bg-deep: #070a14;
  --panel: #10162b;
  --panel-soft: #161d36;
  --panel-raised: #1b2342;
  --line: rgba(148, 163, 198, .14);
  --line-strong: rgba(148, 163, 198, .28);
  --text: #f1f5fb;
  --muted: #9aa8c4;
  --faint: #66748f;
  --cyan: #4fd1ff;
  --cyan-deep: #1596c9;
  --cyan-soft: rgba(79, 209, 255, .12);
  --amber: #ffb648;
  --amber-deep: #e8890c;
  --green: #3ecf8e;
  --danger: #ff7b8e;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --shadow-card: 0 24px 60px rgba(4, 8, 20, .45);
  --font-display: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }

.alpha-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border: 1px solid rgba(255, 182, 72, .4);
  border-radius: 999px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .12em;
  vertical-align: 2px;
}

.guided-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.guided-brand:hover .guided-brand-mark,
.guided-brand:focus-visible .guided-brand-mark {
  border-color: var(--cyan);
  box-shadow: inset 0 1px rgba(255, 255, 255, .1), 0 6px 18px rgba(4, 8, 20, .5), 0 0 18px rgba(79, 209, 255, .22);
}
.guided-brand:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; border-radius: 12px; }
.guided-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  border: 1px solid rgba(79, 209, 255, .35);
  background: linear-gradient(160deg, #17223f, #0d1226);
  box-shadow: inset 0 1px rgba(255, 255, 255, .1), 0 6px 18px rgba(4, 8, 20, .5);
  color: var(--amber);
  font-size: 18px;
  font-weight: 700;
  transition: border-color .16s, box-shadow .16s;
}
.guided-brand-copy strong, .guided-brand-copy small { display: block; }
.guided-brand-copy strong { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.guided-brand-copy small { margin-top: 1px; color: var(--faint); font-size: 11.5px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 46px;
  z-index: 120;
  padding: 11px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--panel-raised);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
  color: #e0f2fe;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: .18s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
