/* Old Man Run — screen composition only. Components come from brand.css + patterns.css.
   Every class here carries the omr- prefix so it never inherits a layer class's box. */
body{background:var(--surface-alt);margin:0;min-height:100vh}
.omr-top{position:sticky;top:0;z-index:20;background:var(--surface);border-bottom:1px solid var(--hairline);
  padding:10px 16px calc(8px);display:flex;flex-direction:column;gap:8px}
.omr-brand{font:700 17px/1.2 var(--font-display);color:var(--text);text-decoration:none}
.omr-brandrow{display:flex;align-items:baseline;gap:10px;justify-content:space-between}
.omr-grp{font:600 12px/1.2 var(--font-body);color:var(--text-muted);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.omr-grpsel{font:600 12px/1.2 var(--font-body);color:var(--text-muted);border:1px solid var(--hairline);border-radius:var(--r-pill);padding:4px 8px;background:var(--surface);max-width:180px}
.omr-run{flex-wrap:wrap}
.omr-runcourt{width:auto;flex:0 1 150px;padding:6px 8px;font-size:12.5px}
.omr-nav{display:flex;gap:4px;overflow-x:auto}
.omr-nav a{font:600 12.5px/1 var(--font-body);color:var(--text-muted);text-decoration:none;padding:8px 11px;border-radius:var(--r-pill);white-space:nowrap;position:relative}
.omr-nav a.on{background:var(--accent-soft);color:var(--accent-ink,var(--accent))}
.omr-nav .omr-dot{display:inline-block;min-width:16px;height:16px;border-radius:8px;background:var(--accent);color:var(--accent-fg);font:700 10px/16px var(--font-mono);text-align:center;margin-left:5px;padding:0 4px}
.omr-main{max-width:560px;margin:0 auto;padding:16px 14px 90px;display:flex;flex-direction:column;gap:12px}
.omr-h1{font:700 22px/1.2 var(--font-display);margin:2px 0 0;color:var(--text)}
.omr-meta{font-size:13px;color:var(--text-muted)}
.omr-note{font-size:12px;color:var(--text-subtle);line-height:1.45;margin:0}
.omr-sec{font:600 10px/1 var(--font-body);letter-spacing:.09em;text-transform:uppercase;color:var(--text-subtle);margin:8px 0 0}

/* game cards on the home page */
.omr-gcard{display:block;background:var(--surface);border:1px solid var(--hairline);border-radius:14px;padding:14px 15px;text-decoration:none;color:inherit}
.omr-gcard:hover{border-color:var(--divider);box-shadow:var(--shadow)}
.omr-gtop{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.omr-gwhen{font:600 16px/1.3 var(--font-display);color:var(--text)}
.omr-pills{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end;flex:none}
.omr-pills .pill,.omr-count .pill{white-space:nowrap}
.omr-meter{height:8px;border-radius:999px;background:var(--surface-alt);overflow:hidden;margin:10px 0 5px}
.omr-meter span{display:block;height:100%;background:var(--accent);border-radius:999px;transition:width .25s var(--ease)}
.omr-count{display:flex;justify-content:space-between;align-items:center;font-size:12.5px;color:var(--text-muted)}
.omr-count b{font-family:var(--font-mono);color:var(--text);font-variant-numeric:tabular-nums}

/* game page */
.omr-hero{background:var(--surface);border:1px solid var(--hairline);border-radius:14px;padding:15px}
.omr-btns{display:flex;gap:8px;margin-top:12px}
.omr-btns button{flex:1;justify-content:center;padding:13px 10px;font-size:14px}
.omr-btns .btn-secondary.on{border-color:var(--text-muted);background:var(--surface-alt)}
.omr-roster{display:flex;flex-direction:column;gap:6px}
.omr-roster .urow{padding:8px 11px}
.omr-roster .urow .av{width:32px;height:32px;font-size:11px}
.omr-roster .urow .omr-n{font:500 11px/1 var(--font-mono);color:var(--text-subtle);width:16px;text-align:right;font-variant-numeric:tabular-nums}
.omr-tabs{display:flex}

/* chat */
.omr-thread .centry{padding:10px 12px;gap:10px;background:var(--surface)}
.omr-thread .centry > .av{width:30px;height:30px;font-size:10px;cursor:pointer}
.omr-thread .ctext{font-size:13.5px;white-space:pre-wrap;word-break:break-word}
.omr-react{display:flex;gap:5px;margin-top:7px;flex-wrap:wrap;align-items:center}
.omr-react button{font:500 12px/1 var(--font-body);padding:4px 8px;border-radius:999px;border:1px solid var(--hairline);background:var(--surface-alt);color:var(--text-muted);cursor:pointer}
.omr-react button.mine{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-ink,var(--accent))}
.omr-react .omr-del{margin-left:auto;border:none;background:none;color:var(--text-subtle);font-size:11.5px}
.omr-react .omr-del:hover{color:var(--danger)}
.omr-tagline{font-size:11.5px;color:var(--text-muted);margin-top:5px}
.omr-tagline a{color:var(--text);font-weight:600;text-decoration:none}
.omr-media{margin-top:7px;border-radius:10px;overflow:hidden;background:#1E242C;max-height:420px}
.omr-media img,.omr-media video{display:block;width:100%;max-height:420px;object-fit:contain;background:#1E242C}
.omr-compose{position:fixed;left:0;right:0;bottom:0;z-index:15;background:var(--surface);border-top:1px solid var(--hairline);padding:9px 12px calc(9px + env(safe-area-inset-bottom))}
.omr-compose-in{max-width:560px;margin:0 auto;display:flex;flex-direction:column;gap:8px}
.omr-crow{display:flex;gap:6px;align-items:flex-end}
.omr-crow textarea{flex:1;resize:none;min-height:40px;max-height:120px;border-radius:20px;padding:10px 14px;font:400 14px/1.35 var(--font-body)}
.omr-crow .omr-pick{font-size:20px;width:40px;height:40px;flex:none;cursor:pointer;border-radius:50%;border:1px solid var(--hairline);background:var(--surface-alt);display:grid;place-items:center}
.omr-crow .btn-primary{height:40px;padding:0 16px;flex:none}
.omr-chips{display:flex;gap:6px;flex-wrap:wrap}
.omr-prev{display:flex;gap:10px;align-items:center}
.omr-prev img,.omr-prev video{width:56px;height:56px;object-fit:cover;border-radius:8px;background:#1E242C}
.omr-prog{height:4px;border-radius:2px;background:var(--surface-alt);overflow:hidden}
.omr-prog span{display:block;height:100%;background:var(--accent);width:0}

/* media grids */
.omr-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
@media (min-width:520px){.omr-grid{grid-template-columns:1fr 1fr 1fr}}
.omr-cell{cursor:pointer;min-width:0}
.omr-thumb{position:relative;aspect-ratio:1/1;border-radius:10px;overflow:hidden;background:#1E242C}
.omr-thumb img,.omr-thumb video{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.omr-thumb .omr-play{position:absolute;inset:0;display:grid;place-items:center}
.omr-thumb .omr-play span{width:40px;height:40px;border-radius:50%;background:var(--accent);color:var(--accent-fg);display:grid;place-items:center;font-size:14px}
.omr-cap{font-size:11.5px;color:var(--text-muted);margin-top:4px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.omr-cap b{color:var(--text);font-weight:600}

/* viewer */
.omr-viewer{position:fixed;inset:0;z-index:40;background:rgba(10,12,16,.92);display:flex;flex-direction:column}
.omr-viewer-top{display:flex;justify-content:flex-end;padding:10px}
.omr-viewer-top button{background:rgba(255,255,255,.12);color:#fff;border:none;border-radius:999px;padding:8px 14px;font:600 13px/1 var(--font-body);cursor:pointer}
.omr-viewer-body{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:0 10px}
.omr-viewer-body img,.omr-viewer-body video{max-width:100%;max-height:100%;object-fit:contain}
.omr-viewer-foot{max-width:560px;width:100%;margin:0 auto;padding:12px 16px calc(16px + env(safe-area-inset-bottom));color:#fff}
.omr-viewer-foot .omr-tagline,.omr-viewer-foot .omr-tagline a{color:#fff}
.omr-viewer-foot .ctext{font-size:14px;margin-top:4px}

/* player page */
.omr-prof{display:flex;gap:12px;align-items:center}
.omr-prof .av{width:56px;height:56px;font-size:17px}
.omr-stats{display:flex;gap:18px;font-size:12px;color:var(--text-muted)}
.omr-stats b{display:block;font:600 17px/1.2 var(--font-mono);color:var(--text);font-variant-numeric:tabular-nums}

/* organizer */
.omr-card{background:var(--surface);border:1px solid var(--hairline);border-radius:14px;padding:14px 15px;display:flex;flex-direction:column;gap:10px}
.omr-card h3{font:600 15px/1.3 var(--font-display);margin:0}
.omr-linkrow{display:flex;gap:6px;align-items:center}
.omr-linkrow .input{flex:1;font-family:var(--font-mono);font-size:12px}
.omr-form{display:flex;gap:6px;flex-wrap:wrap;align-items:flex-end}
.omr-form .field{margin:0;flex:1 1 120px}
.omr-form .btn-primary{height:38px}

.omr-toasts{position:fixed;left:50%;transform:translateX(-50%);bottom:84px;z-index:50;display:flex;flex-direction:column;gap:8px;width:min(92vw,420px)}
.omr-join{background:var(--surface);border:1px solid var(--hairline);border-radius:16px;padding:20px 18px;display:flex;flex-direction:column;gap:12px}
