/* Capybarrage page. Mobile first. The dock is the only place a shot is chosen. */
:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); }
button, input { font: inherit; color: inherit; }
button { min-height: 44px; min-width: 44px; }
.app { min-height: 100vh; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 8px; padding: 8px 12px; flex-wrap: wrap; }
.top img { width: 36px; height: 46px; object-fit: contain; }
.top h1 { font-size: 1.05rem; margin: 0; }
.top a { color: var(--ink); }
.top .spacer { flex: 1; }
.card { margin: 12px; padding: 16px; background: #162026; border-radius: 16px; }
.card h2 { margin: 0 0 8px; }
label { display: block; margin: 8px 0; }
input[type="text"] { width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--muted); background: var(--bg); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.primary { background: var(--green); color: #fff; border: 0; border-radius: 999px; padding: 10px 16px; }
.ghost { background: transparent; color: var(--ink); border: 1px solid var(--muted); border-radius: 999px; padding: 10px 16px; }
.stage { position: relative; flex: 1; min-height: 220px; background: #1B2A4A; }
.stage canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.frame-btn { position: absolute; top: 8px; right: 8px; }
.dock { background: #121a1e; padding: 8px 10px 16px; }
.status { min-height: 2.6em; font-size: 0.95rem; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chip { border-radius: 12px; border: 1px solid var(--muted); background: #1c282d; padding: 8px 4px; }
.chip[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green-bright); }
.chip[disabled], .chip.dim { opacity: 0.45; }
.pad { width: min(46vw, 180px); height: min(46vw, 180px); border-radius: 16px; background: #243238; position: relative; touch-action: none; }
.pad i { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--amber); left: 50%; top: 20%; transform: translate(-50%, -50%); }
.aim-read { font-variant-numeric: tabular-nums; }
.sheet, .modal { position: fixed; inset: 0; background: rgba(0,0,0,0.55); display: flex; align-items: flex-end; justify-content: center; z-index: 5; }
.sheet > div, .modal > div { background: var(--bg); color: var(--ink); width: min(100%, 32rem); border-radius: 16px 16px 0 0; padding: 16px; max-height: 80vh; overflow: auto; }
.qr { width: 180px; height: 180px; background: #fff; }
.link { word-break: break-all; }
@media (min-width: 720px) {
  .app { max-width: 46rem; margin: 0 auto; }
}
