/* rrr.gg — 用户中心 / 绑定向导 / 共享样式（沿用 styles.css 的 token 与电竞骨架） */

.acct { max-width: 980px; margin: 0 auto; padding: 0 28px; }
.crumb { display: flex; align-items: center; gap: 8px; color: var(--mute); font-size: 13px; margin: 26px 0 14px; }
.crumb a { color: var(--dim); text-decoration: none; }
.crumb a:hover { color: var(--text); }

/* 页眉：头像 + 昵称 + 元信息 */
.profile {
  position: relative; display: flex; align-items: center; gap: 22px; padding: 26px 26px;
  border: 1px solid color-mix(in oklab, var(--accent) 40%, var(--line)); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(110deg, color-mix(in oklab, var(--accent) 16%, var(--bg-2)), var(--bg-2) 70%);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.hexlayer { position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='24' viewBox='0 0 28 24'%3E%3Cpath d='M14 1l11.3 6.5v13L14 27 2.7 20.5v-13z' fill='none' stroke='%23ffffff' stroke-opacity='.5'/%3E%3C/svg%3E"); background-size: 24px 21px; }
.profile > * { position: relative; z-index: 1; }

/* 头像上传 */
.av-up { position: relative; cursor: pointer; flex: none; border-radius: 50%; }
.av-up .mono { box-shadow: 0 0 0 3px var(--accent), 0 0 26px -4px color-mix(in oklab, var(--accent) 90%, transparent), inset 0 0 0 1px rgba(255,255,255,.18); }
.av-up .cam {
  position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: linear-gradient(145deg, var(--brand-soft), var(--brand));
  box-shadow: 0 0 0 3px var(--bg-2); color: #15101f;
}
.av-up .cam svg { width: 17px; height: 17px; }
.av-up .veil {
  position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center;
  background: rgba(8,6,14,.6); color: #fff; font-size: 11px; font-weight: 700; opacity: 0; transition: opacity .15s;
}
.av-up:hover .veil { opacity: 1; }

.pinfo { min-width: 0; }
.pname { font-size: 26px; font-weight: 900; letter-spacing: -.01em; }
.pmeta { display: flex; gap: 8px; align-items: center; margin-top: 9px; flex-wrap: wrap; }
.role {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--accent-soft); background: color-mix(in oklab, var(--accent) 16%, transparent); border: 1px solid color-mix(in oklab, var(--accent) 38%, transparent);
}
.role.super { color: #ffe09a; background: color-mix(in oklab, #f0c45a 18%, transparent); border-color: color-mix(in oklab, #f0c45a 42%, transparent); }
.uid { color: var(--mute); font-size: 12.5px; font-variant-numeric: tabular-nums; font-family: ui-monospace, Menlo, monospace; }
.profile .spacer { flex: 1; }

/* 区段标题 */
.sec { display: flex; align-items: baseline; gap: 12px; margin: 30px 0 14px; }
.sec h2 { font-size: 17px; font-weight: 800; margin: 0; }
.sec .en { font-family: 'Sassy Frass', cursive; font-size: 24px; color: var(--accent-soft); line-height: 1; }
.sec .line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

/* 面板卡（电竞角切 + 蜂窝） */
.panel {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 20px;
  background: var(--panel); border: 1px solid var(--line-strong);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.panel > * { position: relative; z-index: 1; }

/* 我的排名 */
.rankgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.rankcard {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 18px; min-height: 132px;
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(160deg, color-mix(in oklab, var(--accent) 14%, var(--bg-2)), var(--bg-2));
  border: 1px solid color-mix(in oklab, var(--accent) 34%, var(--line));
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.rankcard .rc-top { display: flex; align-items: center; justify-content: space-between; }
.rc-game { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--accent-soft); }
.rc-game svg { width: 16px; height: 16px; }
.rc-q { font-size: 11px; color: var(--mute); }
.rc-tier { display: flex; align-items: center; gap: 10px; }
.rc-stats { display: flex; gap: 18px; margin-top: auto; }
.rc-stat .k { font-size: 11px; color: var(--mute); }
.rc-stat .v { font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.rc-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; justify-content: center; color: var(--mute); }
.rc-empty .em { color: var(--dim); font-weight: 600; }

/* 账号绑定 */
.conn { display: flex; flex-direction: column; gap: 12px; }
.connrow {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: color-mix(in oklab, var(--accent) 8%, var(--bg-2)); border: 1px solid color-mix(in oklab, var(--accent) 26%, var(--line));
}
.conn-ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: color-mix(in oklab, var(--accent) 22%, transparent); color: var(--accent-soft); }
.conn-ico svg { width: 22px; height: 22px; }
.conn-main { min-width: 0; }
.conn-game { font-weight: 800; font-size: 15px; }
.conn-acct { color: var(--dim); font-size: 13px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.conn-acct .muted { color: var(--mute); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.status.ok { color: #6fe0a6; background: color-mix(in oklab, #3fd189 16%, transparent); }
.status.off { color: var(--mute); background: var(--panel-2); }
.status .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 7px currentColor; }
.conn-actions { margin-left: auto; display: flex; gap: 8px; }

/* 按钮补充 */
.btn.sm { padding: 7px 13px; font-size: 13px; }
.btn.danger { color: #ff8a8f; border-color: color-mix(in oklab, #ff4655 40%, var(--line)); }
.btn.danger:hover { background: color-mix(in oklab, #ff4655 14%, transparent); border-color: #ff4655; }
.btn.gold { border: none; color: #1a1206; background: linear-gradient(180deg, var(--gold-a), var(--gold-b)); font-weight: 800; }

/* ---------- 绑定向导 ---------- */
.wizard { max-width: 640px; margin: 0 auto; }
.steps { display: flex; align-items: center; gap: 0; margin: 8px 0 28px; }
.step { display: flex; align-items: center; gap: 10px; flex: 1; }
.step .num {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-weight: 800; font-size: 14px; color: var(--mute); background: var(--panel-2); border: 1px solid var(--line-strong);
}
.step .lbl { font-size: 13px; color: var(--mute); font-weight: 600; }
.step.active .num { color: #15101f; background: linear-gradient(160deg, var(--accent-soft), var(--accent)); border: none; box-shadow: 0 0 16px -3px var(--accent); }
.step.active .lbl { color: var(--text); }
.step.done .num { color: var(--accent-soft); border-color: var(--accent); }
.step .bar { flex: 1; height: 2px; background: var(--line-strong); margin: 0 6px; }
.step.done .bar { background: var(--accent); }
.step:last-child .bar { display: none; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--dim); }
.riot-input { display: flex; align-items: center; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .15s; }
.riot-input:focus-within { border-color: var(--accent); }
.riot-input input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text); font: inherit; font-size: 15px; padding: 12px 14px; }
.riot-input .hash { color: var(--mute); padding: 0 4px; font-size: 16px; }
.riot-input .tag { width: 96px; flex: none; }
.hint { color: var(--mute); font-size: 13px; line-height: 1.55; }
.hint b { color: var(--accent-soft); font-weight: 700; }

.iconshow { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px; text-align: center; }
.iconshow img { width: 108px; height: 108px; border-radius: 18px; box-shadow: 0 0 0 3px var(--accent), 0 0 30px -6px var(--accent); image-rendering: auto; }
.iconshow .lab { font-weight: 700; }

.countdown { font-family: var(--font-display); font-weight: 900; font-size: 46px; font-variant-numeric: tabular-nums; color: var(--accent-soft); text-shadow: 0 0 20px color-mix(in oklab, var(--accent) 60%, transparent); }
.pulse-ring { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; margin: 4px auto 0;
  border: 2px solid color-mix(in oklab, var(--accent) 50%, transparent); }
@media (prefers-reduced-motion: no-preference) { .pulse-ring { animation: pr 1.4s ease-in-out infinite; } @keyframes pr { 50% { box-shadow: 0 0 0 10px color-mix(in oklab, var(--accent) 8%, transparent); } } }

.wiz-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 22px; }
.ok-screen { text-align: center; padding: 18px 0; }
.ok-screen .big { font-size: 40px; }
.ok-screen .em { font-size: 20px; font-weight: 800; margin: 10px 0 6px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px); z-index: 200;
  background: color-mix(in oklab, var(--accent) 18%, #14101f); color: var(--text); border: 1px solid var(--accent);
  padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 14px; opacity: 0; transition: all .25s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 760px) {
  .rankgrid { grid-template-columns: 1fr; }
  .profile { flex-wrap: wrap; }
  .connrow { flex-wrap: wrap; }
  .conn-actions { margin-left: 0; width: 100%; }
}

/* 防止短标签 / 按钮折行 */
.role, .status, .sec h2, .sec .en, .rc-game, .rc-q, .conn-game, .conn-acct, .avatar-btn span, .uid, .crumb { white-space: nowrap; }

/* ---------- FaceIt CS2 绑定块 ---------- */
.fc-block { display: flex; flex-direction: column; gap: 15px; padding: 6px 2px; }
.fc-badges { display: flex; gap: 12px; align-items: flex-end; padding: 4px 0; }
.fc-title { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.fc-card { display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: color-mix(in oklab, var(--accent) 11%, var(--bg-2)); border: 1px solid color-mix(in oklab, var(--accent) 30%, var(--line)); }
.fc-nick { font-size: 19px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-stats { display: flex; gap: 24px; margin-top: 11px; }
.fc-stat .k { font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .05em; }
.fc-stat .v { font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.fc-benefits { list-style: none; margin: 2px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fc-benefits li { display: flex; gap: 11px; align-items: flex-start; color: var(--dim); font-size: 13.5px; line-height: 1.5; }
.fc-benefits b { color: var(--text); font-weight: 700; }
.fc-benefits svg { width: 18px; height: 18px; color: var(--accent-soft); flex: none; margin-top: 1px; }

/* 连接行：真实游戏 logo（加载失败回落到内联 SVG） */
.conn-ico { position: relative; overflow: hidden; }
.conn-logo { position: absolute; inset: 0; margin: auto; width: 72%; height: 72%; object-fit: contain; }
