* , *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

.ops {
  --navy: #01279A;
  --navy-deep: #011c70;
  --yellow: #FFDE02;
  --bg: #F5F5F7;
  --card: #FFFFFF;
  --border: #E1E1E6;
  --text: #14151A;
  --muted: #6B7280;
  --live: #C8102E;
  --win: #EAF7EA;
  --win-border: #2E9E4A;
  --status-live: #2E9E4A;
  --status-soon: #B8860B;
  --status-later: #C8102E;

  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 60px;
}
.ops-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.ops-header {
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  position: sticky; top: 0; z-index: 30;
}
.ops-header-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ops-logo { height: 34px; width: auto; display: block; }
.ops-subtitle { font-size: 10px; font-weight: 800; color: rgba(255,255,255,.8); letter-spacing: .1em;
  text-transform: uppercase; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 4px 10px; flex-shrink: 0; }

.ops-body { max-width: 640px; margin: 0 auto; padding: 16px; }
.ops-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 20px 0 8px; }
.ops-eyebrow:first-child { margin-top: 0; }

.ops-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.ops-card + .ops-card { margin-top: 10px; }

.ops-mhead { display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 8px 12px; background: #FAFAFB; border-bottom: 1px solid var(--border);
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ops-status { font-weight: 800; display: inline-flex; align-items: center; gap: 5px; }
.ops-status[data-tone="live"] { color: var(--status-live); }
.ops-status[data-tone="soon"] { color: var(--status-soon); }
.ops-status[data-tone="later"] { color: var(--status-later); }
.ops-status[data-tone="done"] { color: var(--muted); }
.ops-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; animation: ops-pulse 1.2s infinite; }
@keyframes ops-pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.ops-side { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 12px;
  background: transparent; border: none; border-bottom: 1px solid var(--border); font: inherit;
  text-align: left; cursor: pointer; color: var(--text); font-size: 15px; }
.ops-side:last-child { border-bottom: none; }
.ops-side[data-won="1"] { background: var(--win); font-weight: 700; }
.ops-side[data-lost="1"] { color: #9AA0A8; }
.ops-side[data-empty="1"] { color: #B7BCC2; font-style: italic; cursor: default; }
.ops-rating { font-size: 11px; font-weight: 700; color: var(--navy); background: #EEF0FA; border-radius: 4px;
  padding: 3px 7px; flex-shrink: 0; }
.ops-side[data-lost="1"] .ops-rating { background: #F0F0F0; color: #B0B4BA; }
.ops-tag { font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #9AA0A8; }

.ops-btn { border: 1px solid var(--navy); background: var(--navy); color: #fff; font: inherit; font-size: 12px;
  font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 11px 18px; border-radius: 999px;
  cursor: pointer; white-space: nowrap; }
.ops-btn:active { transform: translateY(1px); }
.ops-btn[disabled] { opacity: .35; cursor: not-allowed; }
.ops-btn.wide { width: 100%; }
.ops-btn.outline { background: transparent; color: var(--navy); }
.ops-btn.sm { padding: 7px 12px; font-size: 10px; }
.ops-btn.danger { border-color: #D7453A; color: #D7453A; background: transparent; }
.ops-btn[data-on="0"] { background: transparent; color: var(--navy); }
.ops-link { background: none; border: none; color: var(--navy); font: inherit; font-size: 12px;
  font-weight: 700; text-decoration: underline; cursor: pointer; padding: 4px 0; }

.ops-field { width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 8px;
  font: inherit; font-size: 15px; background: #fff; color: var(--text); }
.ops-field:focus { outline: 2px solid var(--navy); outline-offset: -1px; }
.ops-row { display: flex; gap: 8px; }

/* Pills on the left, club badge on the right; everything is vertically centered on the
   row, so the badge's midpoint lines up with the pills. Pills wrap to a second line on
   narrow phones rather than pushing the badge off screen. */
.ops-rtabs { display: flex; align-items: center; gap: 12px; padding: 8px 0 10px;
  position: sticky; top: var(--header-h, 54px); z-index: 20; background: var(--bg); }
.ops-rtabs-pills { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.ops-brand-logo { height: 84px; width: 84px; flex-shrink: 0; display: block; }
.ops-rtab { border: 1px solid var(--border); background: #fff; color: var(--muted); font: inherit;
  font-size: 11px; font-weight: 800; letter-spacing: .05em; padding: 8px 14px; border-radius: 999px;
  cursor: pointer; white-space: nowrap; }
.ops-rtab[data-on="1"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.ops-rtab[data-done="1"]:not([data-on="1"]) { border-color: var(--win-border); color: var(--win-border); }

/* Secondary nav: round selector on the Live / Schedule feeds. Underline-active,
   deliberately lighter than the .ops-rtab pill bar it sits under. */
.ops-roundtabs { display: flex; gap: 2px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--border); margin-bottom: 14px;
  position: sticky; top: calc(var(--header-h, 54px) + var(--tabs-h, 54px)); z-index: 19; background: var(--bg); }
.ops-roundtab { flex-shrink: 0; background: none; border: none; font: inherit; font-size: 12px;
  font-weight: 800; letter-spacing: .04em; color: var(--muted); padding: 8px 12px; cursor: pointer;
  white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: inline-flex; align-items: center; gap: 5px; }
.ops-roundtab[data-on="1"] { color: var(--navy); border-bottom-color: var(--navy); }
.ops-livedot { width: 6px; height: 6px; border-radius: 50%; background: var(--status-live); flex-shrink: 0;
  animation: ops-pulse 1.2s infinite; }

.ops-live-hero { background: var(--navy); color: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.ops-live-hero .ops-live-label { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--yellow); display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.ops-live-names { font-size: 19px; font-weight: 800; line-height: 1.35; }
.ops-live-vs { color: rgba(255,255,255,.5); font-weight: 500; font-size: 15px; }
.ops-live-court { font-size: 11px; color: rgba(255,255,255,.7); margin-top: 6px; font-weight: 700; letter-spacing: .04em; }

.ops-empty { padding: 30px 16px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.6; }

.ops-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 80;
  background: var(--navy); color: #fff; padding: 14px 22px; border-radius: 999px; font-weight: 800;
  font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: ops-toast-in .25s ease-out; }
@keyframes ops-toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

.ops-modal { position: fixed; inset: 0; background: rgba(10,15,30,.6); z-index: 60; display: flex;
  align-items: center; justify-content: center; padding: 20px; }
.ops-sheet { background: #fff; width: 100%; max-width: 420px; border-radius: 14px; overflow: hidden; }
.ops-shead { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between;
  align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ops-sbody { padding: 16px; max-height: 60vh; overflow-y: auto; }
.ops-x { background: none; border: none; font-size: 20px; color: var(--muted); cursor: pointer; line-height: 1; }
.ops-chk { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border); background: transparent;
  cursor: pointer; flex-shrink: 0; display: grid; place-items: center; font-size: 14px; font-weight: 800;
  color: #fff; padding: 0; }
.ops-chk[data-on="1"] { background: var(--navy); border-color: var(--navy); }
.ops-chk[data-kind="win"][data-on="1"] { background: var(--win-border); border-color: var(--win-border); }

.ops-coin-wrap { display: flex; flex-direction: column; align-items: center; padding: 20px 16px 4px; gap: 14px; }
.ops-coin-img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 6px 18px rgba(0,0,0,.25); border: 3px solid var(--yellow); }
.ops-coin-img[data-flipping="1"] { animation: ops-spin .22s linear infinite; }
@keyframes ops-spin { from { transform: rotateY(0deg) scaleX(1); } 50% { transform: rotateY(90deg) scaleX(0.15); } to { transform: rotateY(180deg) scaleX(1); } }
.ops-coin-result { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

.ops-bracket-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border);
  border-radius: 10px; background: #fff; }
.ops-bracket { display: flex; padding: 10px 24px; }
.ops-bcol { width: 160px; flex-shrink: 0; position: relative; }
.ops-bcol-head { font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  text-align: center; padding-bottom: 6px; }
.ops-bmatch { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff;
  display: flex; flex-direction: column; }
.ops-bconn-h { position: absolute; height: 2px; background: var(--border); }
.ops-bconn-v { position: absolute; width: 2px; background: var(--border); }
.ops-bside { display: flex; align-items: center; gap: 6px; width: 100%; padding: 0 8px; flex: 1; border: none;
  background: transparent; border-bottom: 1px solid var(--border); font: inherit; font-size: 12px; text-align: left;
  color: var(--text); cursor: default; }
.ops-bside:last-child { border-bottom: none; }
.ops-bside[data-won="1"] { background: var(--win); font-weight: 700; }
.ops-bside[data-lost="1"] { color: #B0B4BA; text-decoration: line-through; }
.ops-bside[data-empty="1"] { color: #C4C8CD; font-style: italic; }
.ops-bname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-champ { width: 130px; flex-shrink: 0; display: flex; align-items: center; padding: 0 8px; }
.ops-champ-box { border: 2px solid var(--yellow); background: #FFFBEB; border-radius: 10px; padding: 12px 8px;
  text-align: center; width: 100%; }
.ops-champ-box span { font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ops-champ-box b { display: block; margin-top: 6px; font-size: 13px; }
