/* The Games Cupboard house style (from Iron Empire). */
:root {
  --ink: #2b2d31;
  --ink-2: #4f5358;
  --ink-3: #6b6e74;
  --line: #e2e2de;
  --line-2: #e0dccf;
  --panel: #ffffff;
  --paper: #f3efe6;
  --green: #2f7d4f;
  --green-ink: #1f5a37;
  --green-soft: #eef7f1;
  --orange: #e8562a;
  --orange-deep: #c4441d;
  --orange-soft: #fde7de;
  --amber-ink: #8a5e0e;
  --tile: #fbf3df;
  --tile-edge: #e2cfa6;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--paper); -webkit-text-size-adjust: 100%; }
button, input { font-family: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .5; }
:focus-visible { outline: 3px solid #4f7fc9; outline-offset: 2px; }

.lbl { margin: 0; font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .07em; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; }

.btn-primary { height: 56px; border-radius: 12px; border: 0; background: var(--orange); color: #fff; font-weight: 800; font-size: 17px; box-shadow: inset 0 -4px 0 var(--orange-deep); width: 100%; }
.btn-primary:active { box-shadow: inset 0 -1px 0 var(--orange-deep); transform: translateY(2px); }
.btn-secondary { height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; width: 100%; }
.btn-mini { height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; font-weight: 600; font-size: 12px; color: var(--ink); }

.card { border-radius: 12px; border: 1.5px solid var(--line); background: #fff; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; text-align: left; font-weight: 700; font-size: 15px; color: var(--ink); flex: 1; }
.card small { font-size: 12px; font-weight: 500; color: var(--ink-3); line-height: 1.35; }
.card.on { border: 2px solid var(--green); background: var(--green-soft); color: var(--green-ink); padding: 11.5px 13.5px; }
.chip { height: 40px; min-width: 56px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; color: var(--ink); }
.chip.on { border: 2px solid var(--green); background: var(--green-soft); color: var(--green-ink); }

.pill-dark { background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 999px; font-size: 15px; font-weight: 600; box-shadow: 0 6px 16px rgba(0,0,0,.22); white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.pill-dark .live { width: 10px; height: 10px; border-radius: 50%; background: #7fc49a; }
.pill-dark.warn .live { background: #f0b44c; }
.hint { padding: 10px 14px; border: 1.5px dashed #c9bfa9; border-radius: 10px; font-size: 13px; color: var(--ink-2); background: rgba(255,255,255,.5); line-height: 1.45; }

.code-tile { border-radius: 12px; background: var(--tile); box-shadow: inset 0 -6px 0 var(--tile-edge), 0 4px 8px rgba(70,45,20,.3); display: flex; align-items: center; justify-content: center; font-weight: 800; color: #2b2a26; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 20px rgba(0,0,0,.25); z-index: 50; max-width: calc(100vw - 32px); text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
