/* Stratton Oakmont staff portal: same skin as the public site (black, champagne gold, serif headings). */
:root {
  --bg: #000; --panel: #0d1016; --panel-2: #141922;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.16);
  --text: #f5f3ee; --muted: #a4a9b4; --dim: #7d828d; --ink: #16120a;
  --gold: #d9b46a; --gold-hi: #f4dfa9; --gold-grad: linear-gradient(90deg,#f0d596,#c79a4b);
  --ok: #4ade80; --bad: #f87171;
  --serif: "Instrument Serif","Iowan Old Style","Palatino Linotype",Georgia,serif;
  --sans: "Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  color-scheme: dark;
}
*,*::before,*::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
h1,h2,p { margin: 0; }
a { color: var(--gold-hi); text-decoration: none; }
button,input,select { font: inherit; color: inherit; }
.muted { color: var(--muted); }

/* login */
body.center { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(ellipse at top, rgba(217,180,106,.10), transparent 60%), var(--bg); }
.card { width: min(380px, 100%); background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 32px 28px; display: grid; gap: 14px; }
.card .lion { width: 72px; height: 72px; margin: 0 auto 4px; }
.card h1 { font: 400 34px/1.1 var(--serif); text-align: center; }
.card .sub { text-align: center; color: var(--gold); letter-spacing: .14em; text-transform: uppercase; font-size: 12px; font-weight: 600; margin-top: -8px; margin-bottom: 6px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
input,select { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; min-width: 0; color: var(--text); }
input:focus-visible,select:focus-visible,button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
button { cursor: pointer; border: 0; border-radius: 10px; padding: 11px 18px; font-weight: 600; background: var(--gold-grad); color: var(--ink); }
button.link { background: none; color: var(--muted); padding: 6px 8px; font-weight: 500; }
button.link:hover { color: var(--text); }
button.danger { background: transparent; color: var(--bad); border: 1px solid rgba(248,113,113,.4); }
.error { background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.35); color: #fecaca; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.notice { background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.3); color: #bbf7d0; border-radius: 10px; padding: 10px 12px; font-size: 14px; }

/* signed-in layout */
.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; background: rgba(0,0,0,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 400 22px/1 var(--serif); }
.brand em { font-style: normal; color: var(--gold); font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-left: 6px; }
.bar nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.bar nav > a { color: var(--muted); padding: 6px 10px; border-radius: 8px; }
.bar nav > a[aria-current] { color: var(--text); background: var(--panel-2); }
.bar .who { color: var(--dim); padding: 0 8px; font-size: 13px; }
.bar form { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 28px 16px 64px; display: grid; gap: 20px; }
.wrap h1 { font: 400 40px/1.1 var(--serif); }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 14px; min-width: 0; }
.panel h2 { font: 400 24px/1.2 var(--serif); }
.panel h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }
.inline { justify-self: start; }
.tag { font-size: 11px; color: var(--gold); border: 1px solid rgba(217,180,106,.4); border-radius: 99px; padding: 1px 7px; margin-left: 4px; }

/* tables */
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th { text-align: left; font-size: 12px; color: var(--dim); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions form { display: flex; gap: 6px; margin: 0; flex-wrap: wrap; }
.actions input { padding: 8px 10px; width: 170px; }
.actions button { padding: 8px 12px; }
.scroll { overflow-x: auto; }

/* stats */
.game { display: grid; gap: 16px; }
.game-head { display: flex; align-items: center; gap: 14px; }
.game-head h2 { font: 400 30px/1.1 var(--serif); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 4px; min-width: 0; }
.tile .label { font-size: 12px; color: var(--muted); font-weight: 500; }
.tile .value { font: 600 30px/1.1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tile .note { font-size: 12px; color: var(--dim); }
.tile.hero .value { color: var(--gold-hi); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; box-shadow: 0 0 0 4px rgba(74,222,128,.15); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.warn { color: #fde68a; background: rgba(253,230,138,.06); border: 1px solid rgba(253,230,138,.25); border-radius: 10px; padding: 10px 12px; font-size: 14px; }

@media (max-width: 640px) {
  .wrap h1 { font-size: 32px; }
  .table thead { display: none; }
  .table tr { display: grid; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .table td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 12px; }
  .table td::before { content: attr(data-label); color: var(--dim); font-size: 12px; }
  .table td.num { text-align: left; }
  .actions input { width: 100%; }
}
