/* theme.css - shared look for dev.boardstate.gg (login page and the LTB tool).
   CLAUDE-DECIDED 2026-10-02 (D25): fonts are self-hosted copies of the
   capture site fonts (capture/fonts, licences alongside).
   CLAUDE-DECIDED 2026-10-02 (D3, D6): tokens and component rules lifted from
   capture/index.html; the .switch toggle from
   twitch-extension/twitch-export/config.html. */

@font-face { font-family: 'Inter'; src: url('fonts/Inter-Regular.woff2') format('woff2');
             font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter-Bold.woff2') format('woff2');
             font-weight: 700; font-style: normal; font-display: block; }
@font-face { font-family: 'JetBrains Mono'; src: url('fonts/JetBrainsMono-Regular.woff2') format('woff2');
             font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: 'Patua One'; src: url('fonts/PatuaOne-Regular.woff2') format('woff2');
             font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: 'Roboto Slab'; src: url('fonts/RobotoSlab-Variable-latin.woff2') format('woff2');
             font-weight: 100 900; font-style: normal; font-display: block; }

:root {
  color-scheme: dark;
  --bg: #0d1114;
  --bg-deep: #0a0d10;
  --panel-hi: #1b2328;
  --panel-lo: #141a1e;
  --panel: #171e23;
  --panel-2: #12181c;
  --border: #232c32;
  --lite: rgba(140, 200, 215, .06);
  --dark: rgba(3, 6, 8, .6);
  --raise: -5px -5px 12px var(--lite), 6px 6px 14px var(--dark);
  --raise-sm: -3px -3px 7px var(--lite), 3px 3px 8px var(--dark);
  --carve: inset 3px 3px 7px rgba(3,6,8,.55), inset -2px -2px 5px rgba(140,200,215,.05);
  --carve-deep: inset 5px 5px 14px rgba(3,6,8,.65), inset -3px -3px 8px rgba(140,200,215,.04);
  --accent: #5fd0e0;
  --teal: #1f9ea3;
  --teal-hi: #2db4ba;
  --teal-glow: rgba(31,158,163,.16);
  --text: #e8e8ea;
  --muted: #86929a;
  --ok: #7fdfa8; --okbg: #14322a;
  --warnfg: #f0c977; --warnbg: #3a3014;
  --badfg: #ee9c9c; --badbg: #3d1e1d;
  --prose: 'Inter', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { font-family: 'Inter', sans-serif; color: var(--text);
       background:
         radial-gradient(1100px 520px at 50% -12%, var(--teal-glow), transparent 68%),
         linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
       background-color: var(--bg-deep);
       background-attachment: fixed;
       margin: 0 auto; padding: 40px 26px 40px; max-width: 1060px; min-height: 100vh; }
@media (max-width: 480px) { body { padding: 24px 16px 32px; } }

/* ---- wordmark ---- */
header { margin-bottom: 30px; }
.wordmark { font-family: 'Roboto Slab', Georgia, serif; font-weight: 600;
            font-size: 21px; letter-spacing: .03em;
            display: flex; align-items: center; gap: 10px; }
.wordmark svg { width: 27px; height: 27px; flex: none; }
.wordmark .bs { color: var(--teal); text-shadow: 0 0 22px rgba(31,158,163,.3); }
.wordmark .portal { color: var(--muted); font-weight: 300; font-size: 12px;
                    letter-spacing: .28em; margin-left: 8px; align-self: center; }

/* ---- raised panel ---- */
.panel { background: linear-gradient(148deg, var(--panel-hi), var(--panel-lo));
         border: 1px solid rgba(170,210,225,.05); border-radius: 18px;
         box-shadow: var(--raise);
         padding: 19px 19px 17px; margin-bottom: 20px; position: relative; }

/* ---- carved wells: inputs ---- */
select, input[type="text"], input[type="password"], textarea {
  background: var(--bg-deep); color: var(--text);
  border: 1px solid rgba(140,200,215,.05); border-radius: 9px;
  padding: 9px 11px; font-family: 'JetBrains Mono', monospace; font-size: 12px;
  box-shadow: var(--carve); }
select:focus, input:focus, textarea:focus { outline: 1px solid var(--teal); }
.well { background: var(--bg-deep); box-shadow: var(--carve); border-radius: 12px; }

/* ---- buttons: raised = pushable, flat = inert, carved = on ---- */
button { background: linear-gradient(148deg, var(--teal-hi), #17878c); color: #03262a;
         border: none; border-radius: 10px; padding: 10px 17px; font-size: 12px;
         font-weight: 700; cursor: pointer; font-family: 'Inter', sans-serif;
         box-shadow: var(--raise-sm);
         transition: box-shadow .18s ease, transform .18s ease, opacity .3s ease; }
button:hover:not(:disabled) { transform: translateY(-1px);
         box-shadow: -4px -4px 9px var(--lite), 5px 6px 12px var(--dark); }
button:active:not(:disabled) { transform: translateY(0);
         box-shadow: inset 3px 3px 7px rgba(8,13,17,.45), inset -2px -2px 5px rgba(255,255,255,.08); }
button:disabled { opacity: .38; cursor: default; box-shadow: none; }
button.neutral { background: linear-gradient(148deg, var(--panel-hi), var(--panel-lo));
                 color: var(--text); border: 1px solid rgba(170,210,225,.06); font-weight: 400; }
button.warn { background: linear-gradient(148deg, #d9a441, #b8862a); color: #191510; }
button.danger { background: linear-gradient(148deg, #b23c3c, #93292e); color: #ffecec; }

/* ---- ALPHA-style banner (capture/index.html .panel-alpha) ---- */
.panel-alpha, .panel-notice { background: linear-gradient(148deg, #2a2817, #1d1c12);
               border-color: rgba(240,201,119,.16);
               box-shadow: var(--raise), 0 0 34px rgba(240,201,119,.05);
               margin-bottom: 30px; }
.alpha-copy, .notice-copy { margin: 0; font-family: var(--prose); color: var(--text);
              font-size: 14px; line-height: 1.6; }
.alpha-copy b, .notice-copy b { color: var(--warnfg); letter-spacing: .04em; }
/* CLAUDE-DECIDED 2026-10-02 (D51): the ATTENTION notice is the ALPHA banner
   with its width shrunk to the text. */
.panel-notice { width: fit-content; max-width: 100%; padding: 12px 19px; }

/* ---- toggle switch (twitch-extension config.html) ---- */
.switch { position: relative; flex: none; width: 44px; height: 24px;
          padding: 0; border-radius: 999px; border: none; cursor: pointer;
          background: var(--badbg); box-shadow: var(--carve);
          transition: background .22s ease, box-shadow .22s ease; }
.switch:hover:not(:disabled) { transform: none; box-shadow: var(--carve); }
.switch:active:not(:disabled) { transform: none; box-shadow: var(--carve); }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch .knob { position: absolute; top: 3px; left: 3px;
                width: 18px; height: 18px; border-radius: 50%;
                background: var(--badfg);
                display: flex; align-items: center; justify-content: center;
                box-shadow: 1px 1px 4px rgba(3,6,8,.6);
                transition: transform .22s ease, background .22s ease; }
.switch .knob svg { width: 10px; height: 10px; display: block; }
.switch .knob .g-on { display: none; }
.switch[aria-checked="true"] { background: var(--teal); }
.switch[aria-checked="true"] .knob { transform: translateX(20px); background: #eafcfd; }
.switch[aria-checked="true"] .knob .g-on { display: block; }
.switch[aria-checked="true"] .knob .g-off { display: none; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden;
           clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- login page ---- */
.login-wrap { max-width: 380px; margin: 0 auto; }
.login-panel h1 { font-size: 15px; margin: 0 0 14px; letter-spacing: .02em; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.field label { font-size: 12px; color: var(--muted); }
.field input { width: 100%; font-size: 14px; }
.login-actions { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.login-error { min-height: 1.4em; margin: 10px 0 0; font-size: 12.5px; color: var(--badfg); }
