/* OTO 荣耀修为榜 — 电竞记分牌风格（PC 优先 · 响应式兼容手机）*/
:root {
  --op-bg: #080b14;
  --op-gold: #ffd970;
  --op-gold-2: #c9901f;
  --op-orange: #ff8a3d;
  --op-text: #eef2ff;
  --op-dim: #96a0bd;
  --op-line: rgba(150, 180, 255, .18);
  --op-panel: rgba(14, 18, 42, .82);
  --op-panel-2: rgba(18, 24, 56, .92);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.op-body {
  min-height: 100vh;
  background: radial-gradient(1000px 500px at 50% 0%, rgba(90, 80, 255, .2), transparent 60%), var(--op-bg);
  color: var(--op-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}
.op-gridbg { position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 48px),
                    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 48px);
  opacity: .3; }
.op-wrap { position: relative; z-index: 1; max-width: 1140px; margin: 0 auto; padding: 20px 20px 46px; }

/* ── 顶栏 ── */
.op-topbar { height: 58px; display: flex; align-items: center; gap: 24px; padding: 0 4px;
  border-bottom: 1px solid var(--op-line); margin-bottom: 0; }
.op-logo { display: flex; align-items: center; gap: 10px; }
.op-live { font: 800 10px ui-monospace, monospace; color: #ff4d4d; padding: 3px 8px;
  border: 1px solid rgba(255,77,77,.5); border-radius: 3px; background: rgba(255,77,77,.1); }
.op-logo b { font-size: 15px; letter-spacing: 1px; }
.op-topnav { display: flex; gap: 4px; }
.op-topnav span { padding: 6px 13px; font-size: 13px; color: var(--op-dim); }
.op-topnav span.on { color: #0b1024; background: var(--op-gold); font-weight: 800;
  clip-path: polygon(8px 0,100% 0,calc(100% - 8px) 100%,0 100%); }
.op-topres { margin-left: auto; font: 600 12px ui-monospace, monospace; color: var(--op-dim); }
.op-topres em { font-style: normal; color: var(--op-gold); padding: 5px 11px; border: 1px solid rgba(255,217,112,.4); margin-left: 8px; }

/* ── 标题横幅 ── */
.op-strap { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap;
  margin: 18px 0; padding: 16px 20px; border-left: 4px solid var(--op-gold);
  background: linear-gradient(90deg, rgba(255,217,112,.1), transparent 62%); }
.op-kicker { font: 700 10px ui-monospace, monospace; letter-spacing: 4px; color: var(--op-orange); }
.op-strap h1 { margin: 5px 0 3px; font-size: 28px; font-weight: 900; letter-spacing: 2px; }
.op-strap h1 em { font-style: normal; color: var(--op-gold); }
.op-subtitle { margin: 0; font-size: 12px; color: var(--op-dim); letter-spacing: 1px; }
.op-clock { margin-left: auto; text-align: right; }
.op-clock span { display: block; font-size: 10px; color: var(--op-dim); letter-spacing: 2px; }

/* ── 面板通用 ── */
.op-panel { background: var(--op-panel); border: 1px solid var(--op-line); border-radius: 8px;
  padding: 18px; margin-bottom: 16px; box-shadow: 0 10px 34px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.03); }
.op-panel-head { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.op-panel-ico { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center;
  font-size: 18px; border: 1px solid var(--op-line); background: rgba(255,217,112,.08); clip-path: polygon(8px 0,100% 0,calc(100% - 8px) 100%,0 100%); }
.op-panel-title { margin: 0; font-size: 15px; font-weight: 800; color: var(--op-gold); letter-spacing: 1px; }
.op-panel-sub { margin: 2px 0 0; font-size: 11px; color: var(--op-dim); }

/* ── 我的状态（电竞资料卡）── */
.op-mine { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: space-between;
  background: linear-gradient(105deg, rgba(255,217,112,.1), rgba(18,24,56,.82));
  border: 1px solid rgba(255,217,112,.3); border-radius: 8px; padding: 14px 18px; margin-bottom: 16px; }
.op-mine-user { display: flex; align-items: center; gap: 12px; }
.op-avatar { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center;
  font-size: 18px; font-weight: 900; color: #0b1024; border: 2px solid rgba(255,255,255,.5);
  background: linear-gradient(145deg, var(--op-gold), var(--op-gold-2)); transform: rotate(-3deg); }
.op-avatar-lg { width: 52px; height: 52px; font-size: 22px; }
.op-mine-name { font-size: 16px; font-weight: 900; color: #fff; }
.op-mine-uid { font-size: 11px; color: var(--op-dim); margin-top: 2px; }
.op-mine-scores { display: flex; flex-wrap: wrap; gap: 10px; }
.op-mine-cell { min-width: 92px; text-align: center; padding: 8px 12px; background: rgba(0,0,0,.28);
  border: 1px solid var(--op-line); border-radius: 5px; }
.op-mine-cell-icon { display: block; font-size: 15px; }
.op-mine-cell-score { display: block; font-size: 19px; font-weight: 900; color: var(--c, var(--op-gold)); line-height: 1.2; }
.op-mine-cell-rank { display: block; font-size: 10px; color: var(--op-dim); }

/* ── 签到 ── */
.op-signin-body { display: grid; grid-template-columns: minmax(180px, 220px) 1fr; gap: 22px; }
.op-signin-left { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.op-streak-badge { display: flex; align-items: baseline; gap: 6px; }
.op-streak-num { font-size: 38px; font-weight: 900; line-height: 1; color: var(--op-orange); }
.op-streak-unit { font-size: 12px; color: var(--op-dim); }
.op-sign-btn { width: 100%; border: 0; cursor: pointer; padding: 12px 16px; color: #1a1205;
  background: linear-gradient(180deg, var(--op-gold), var(--op-gold-2));
  box-shadow: 0 6px 20px rgba(255,183,60,.3), inset 0 1px 0 rgba(255,255,255,.55);
  clip-path: polygon(10px 0,100% 0,calc(100% - 10px) 100%,0 100%);
  display: flex; flex-direction: column; align-items: center; gap: 2px; transition: filter .2s, transform .15s; }
.op-sign-btn:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-2px); }
.op-sign-btn:disabled { cursor: default; filter: saturate(.3) brightness(.8); box-shadow: none; }
.op-sign-btn-main { font-size: 16px; font-weight: 900; letter-spacing: .1em; }
.op-sign-btn-sub { font-size: 11px; font-weight: 700; opacity: .82; }
.op-sign-meta { font-size: 11px; color: var(--op-dim); text-align: center; }
.op-sign-meta b { color: var(--op-gold); }
.op-sign-meta .op-dot { margin: 0 5px; opacity: .5; }
.op-signin-right { min-width: 0; max-width: 380px; width: 100%; }
.op-cal-title { font-size: 12px; font-weight: 700; color: var(--op-gold); margin-bottom: 9px; }
.op-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.op-cal-cell { aspect-ratio: 1/1; display: grid; place-items: center; font-size: 11px; color: var(--op-dim);
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 4px; }
.op-cal-empty { background: transparent; border-color: transparent; }
.op-cal-cell.is-signed { color: #1a1205; font-weight: 800; background: linear-gradient(135deg,#ffe6a0,var(--op-gold)); border-color: var(--op-gold); box-shadow: 0 0 10px rgba(255,183,60,.3); }
.op-cal-cell.is-today { border-color: var(--op-gold); box-shadow: 0 0 0 1px var(--op-gold); color: #fff; }
.op-cal-cell.is-today.is-signed { color: #1a1205; }
.op-cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 10px; font-size: 10px; color: var(--op-dim); }
.op-cal-legend span { display: inline-flex; align-items: center; gap: 4px; }
.op-lg { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.op-lg-signed { background: var(--op-gold); }
.op-lg-today { border: 1px solid var(--op-gold); }
.op-lg-none { background: rgba(255,255,255,.06); }
.op-cal-bonus { margin-left: auto; color: var(--op-orange); }
.op-sign-msg { font-size: 12px; text-align: center; min-height: 18px; margin-top: 10px; color: var(--op-gold); }
.op-sign-msg.err { color: #ff8f8f; }
.op-login-btn { display: inline-block; margin-top: 4px; padding: 9px 26px; font-weight: 800; color: #1a1205; text-decoration: none;
  background: linear-gradient(180deg, var(--op-gold), var(--op-gold-2)); clip-path: polygon(10px 0,100% 0,calc(100% - 10px) 100%,0 100%); }

/* ── 段位徽章 ── */
.rb { display: inline-grid; place-items: center; width: 17px; height: 17px; font-size: 10px; border-radius: 3px;
  color: #0a1020; font-weight: 900; background: linear-gradient(145deg, var(--b1), var(--b2)); margin-right: 5px; vertical-align: middle; }

/* ── Tab ── */
.op-tabs { display: flex; gap: 6px; margin-bottom: 16px; padding: 5px; background: var(--op-panel-2); border: 1px solid var(--op-line); }
.op-tab { flex: 1; min-width: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 8px; color: var(--op-dim); background: transparent; font-size: 13px; font-weight: 700; transition: .18s; }
.op-tab:hover { color: var(--op-text); background: rgba(255,255,255,.04); }
.op-tab.active { color: #0b1024; background: linear-gradient(180deg, var(--op-gold), var(--op-gold-2));
  font-weight: 900; clip-path: polygon(8px 0,100% 0,calc(100% - 8px) 100%,0 100%); }
.op-tab-ico { font-size: 15px; }
.op-board { display: none; }
.op-board.active { display: block; animation: op-fade .28s ease; }

/* ── 三强对决卡 ── */
.op-finalists { display: grid; grid-template-columns: 1fr 1.16fr 1fr; gap: 12px; align-items: end; margin-bottom: 18px; }
.op-finalist { position: relative; text-align: center; padding: 16px 10px 14px;
  background: linear-gradient(180deg, rgba(40,50,110,.55), rgba(14,18,44,.85)); border: 1px solid var(--op-line);
  clip-path: polygon(14px 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%,0 14px); }
.op-finalist.f1 { background: linear-gradient(180deg, rgba(255,217,112,.2), rgba(40,30,10,.85)); border-color: rgba(255,217,112,.6); }
.op-f-no { position: absolute; top: 7px; left: 11px; font: 900 26px ui-monospace, monospace; color: rgba(255,255,255,.12); }
.op-f-portrait { position: relative; width: 70px; height: 70px; margin: 0 auto 9px; display: grid; place-items: center;
  font-size: 30px; font-weight: 900; color: #0b1024; background: linear-gradient(145deg,#cfd8ea,#8a97b5);
  border: 3px solid rgba(255,255,255,.45); border-radius: 7px; transform: rotate(-3deg); }
.op-finalist.f1 .op-f-portrait { width: 84px; height: 84px; font-size: 36px; background: linear-gradient(145deg,var(--op-gold),var(--op-gold-2)); border-color: #fff; }
.op-f-crown { position: absolute; top: -16px; left: 50%; transform: translateX(-50%) rotate(3deg); font-size: 24px; color: var(--op-gold); filter: drop-shadow(0 0 8px var(--op-gold)); }
.op-f-name { font-size: 16px; font-weight: 900; letter-spacing: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-finalist.f1 .op-f-name { color: var(--op-gold); font-size: 18px; }
.op-f-tier { font-size: 10px; color: var(--op-dim); margin: 3px 0 9px; }
.op-f-score { font: 800 23px ui-monospace, monospace; color: var(--op-orange); line-height: 1; }
.op-finalist.f1 .op-f-score { color: var(--op-gold); }
.op-f-score small { display: block; font: 400 9px var(--font); color: var(--op-dim); letter-spacing: 1px; margin-top: 3px; }
.op-f-bar { height: 5px; margin-top: 9px; background: rgba(255,255,255,.08); overflow: hidden; }
.op-f-bar i { display: block; height: 100%; background: linear-gradient(90deg,var(--op-gold-2),var(--op-gold),var(--op-orange)); box-shadow: 0 0 9px var(--op-gold); }

/* ── 记分表 ── */
.op-scoreboard { border: 1px solid var(--op-line); background: rgba(12,16,38,.55); }
.op-sb-head, .op-sb-row { display: grid; grid-template-columns: 62px minmax(130px,1.4fr) minmax(140px,1fr) 96px; align-items: center; gap: 12px; padding: 9px 14px; }
.op-sb-head { font: 700 10px ui-monospace, monospace; letter-spacing: 2px; color: var(--op-dim); border-bottom: 1px solid var(--op-line); background: rgba(255,255,255,.03); }
.op-sb-row { border-bottom: 1px solid var(--op-line); font-size: 13px; }
.op-sb-row:last-child { border-bottom: 0; }
.op-sb-row:hover { background: rgba(255,255,255,.04); }
.op-sb-row.op-me { background: rgba(255,217,112,.08); }
.op-sb-no { font: 800 15px ui-monospace, monospace; color: var(--op-dim); }
.op-sb-no.hot { color: var(--op-gold); }
.op-sb-team { display: flex; align-items: center; gap: 9px; min-width: 0; }
.op-sb-glyph { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 5px;
  font-size: 12px; font-weight: 800; color: #0b1024; background: linear-gradient(145deg,rgba(255,255,255,.18),rgba(255,255,255,.03)); border: 1px solid var(--op-line); }
.op-sb-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-sb-name small { display: block; font: 400 10px var(--font); color: var(--op-dim); }
.op-me-tag { font: 800 9px ui-monospace, monospace; color: #0b1024; background: var(--op-gold); padding: 2px 6px; border-radius: 3px; margin-left: 6px; }
.op-sb-power { height: 11px; background: rgba(255,255,255,.06); border: 1px solid var(--op-line); overflow: hidden; }
.op-sb-power i { display: block; height: 100%; background: linear-gradient(90deg,var(--op-gold-2),var(--op-gold),var(--op-orange)); box-shadow: 0 0 10px rgba(255,217,112,.5); }
.op-sb-ptr { text-align: right; font: 800 14px ui-monospace, monospace; color: var(--op-gold); }

/* ── 空状态 / 页脚 ── */
.op-empty { text-align: center; padding: 32px 16px; color: var(--op-dim); }
.op-empty-ico { font-size: 30px; color: var(--op-gold); opacity: .7; margin-bottom: 5px; }
.op-empty p { margin: 0 0 4px; font-size: 14px; color: var(--op-text); }
.op-empty span { font-size: 11px; }
.op-footer { text-align: center; font-size: 10px; color: #5d6478; margin-top: 20px; letter-spacing: 1px; }

@keyframes op-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── 响应式 ── */
@media (max-width: 860px) {
  .op-topnav { display: none; }
  .op-finalists { grid-template-columns: 1fr; gap: 10px; }
  .op-finalist, .op-finalist.f1 { padding: 12px; }
  .op-f-portrait, .op-finalist.f1 .op-f-portrait { width: 58px; height: 58px; font-size: 24px; }
  .op-sb-head { display: none; }
  .op-sb-row { grid-template-columns: 36px minmax(90px,1fr) 68px; gap: 8px; padding: 9px 8px; }
  .op-sb-power { display: none; }
}
@media (max-width: 620px) {
  .op-wrap { padding: 12px 12px 34px; }
  .op-topbar { height: 52px; }
  .op-topres em { display: none; }
  .op-panel { padding: 13px; }
  .op-strap { padding: 13px 14px; }
  .op-strap h1 { font-size: 21px; }
  .op-signin-body { grid-template-columns: 1fr; gap: 16px; }
  .op-cal-bonus { margin-left: 0; width: 100%; }
  .op-mine { padding: 12px; gap: 12px; }
  .op-mine-scores { width: 100%; }
  .op-mine-cell { flex: 1; min-width: 0; padding: 7px 6px; }
  .op-tab { font-size: 12px; padding: 9px 3px; }
  .op-tab-ico { display: none; }
}
