/* ============================================================
   闪杀对决 · 在线多人（2-4 人）
   沿用暗金三国视觉：暖木底、鎏金边、势力色
   ============================================================ */
.online-screen {
  background: #130b08;
  overflow: hidden;
}
.online-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.on-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 52% at 50% 0%, rgba(96, 66, 38, .55), transparent 62%),
    radial-gradient(70% 48% at 50% 46%, rgba(120, 58, 28, .22), transparent 68%),
    linear-gradient(180deg, #24130c 0%, #1a0e09 42%, #100806 100%);
}
.on-city {
  position: absolute; left: -6%; right: -6%; bottom: 0; height: 44%;
  background: url('images/gen/city.png') center bottom / cover no-repeat;
  filter: sepia(.55) saturate(.7) brightness(.34) contrast(1.08);
  opacity: .38;
  -webkit-mask-image: linear-gradient(to top, #000 10%, rgba(0,0,0,.55) 58%, transparent 100%);
  mask-image: linear-gradient(to top, #000 10%, rgba(0,0,0,.55) 58%, transparent 100%);
}
.on-glow {
  position: absolute; left: 50%; top: 46%; width: 520px; height: 520px; max-width: 120vw; max-height: 120vw;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 156, 76, .13), transparent 66%);
  filter: blur(6px);
  animation: onGlow 7s ease-in-out infinite;
}
@keyframes onGlow { 0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(.96); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } }
.on-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(82% 66% at 50% 44%, transparent 40%, rgba(4, 2, 1, .62) 100%),
    linear-gradient(180deg, rgba(4, 2, 1, .3), transparent 18%, transparent 78%, rgba(4, 2, 1, .6));
}
.online-top {
  position: relative; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + var(--safe-top)) 14px 10px;
  background: linear-gradient(180deg, rgba(26, 15, 10, .96), rgba(16, 9, 6, .72) 78%, transparent);
  border-bottom: 1px solid rgba(201, 161, 94, .16);
}
.online-top .subhead-title { flex: 1; min-width: 0; }
.online-top .subhead-title span { display: block; font-size: 8.5px; letter-spacing: 2.6px; color: #b59464; }
.online-top .subhead-title h1 { margin: 1px 0 0; font-family: var(--serif); font-size: 23px; letter-spacing: 3px; color: #f3dfb4; }
.online-status {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: 99px;
  border: 1px solid rgba(201, 161, 94, .3);
  background: rgba(41, 25, 16, .8);
  color: #e4cfa3; font-size: 10px; white-space: nowrap;
}
.online-status i { width: 6px; height: 6px; border-radius: 50%; background: #7fd8a8; box-shadow: 0 0 6px rgba(90, 220, 140, .7); }
.online-status.is-off i { background: #d97a63; box-shadow: 0 0 6px rgba(220, 90, 60, .7); }
.online-status b { font-weight: 700; }
.online-body { position: relative; z-index: 4; padding: 14px 16px calc(24px + var(--safe-bottom)); }

/* ---------------- 大厅 ---------------- */
.online-lobby { max-width: 560px; margin: 0 auto; }
.online-hero {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 12px;
  border: 1px solid rgba(214, 176, 108, .34);
  background:
    radial-gradient(140% 120% at 50% -20%, rgba(255, 190, 100, .16), transparent 60%),
    linear-gradient(160deg, rgba(56, 34, 20, .94), rgba(19, 11, 7, .96));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 233, 185, .12);
  overflow: hidden;
}
.online-hero::after {
  content: "决"; position: absolute; right: -6px; bottom: -34px;
  font-family: var(--serif); font-size: 132px; font-weight: 900;
  color: rgba(238, 195, 118, .06); pointer-events: none;
}
.oh-kicker { font-size: 9px; letter-spacing: 3px; color: #c9a266; }
.online-hero h2 { margin: 5px 0 6px; font-family: var(--serif); font-size: 27px; letter-spacing: 4px; color: #f7e5bb; }
.online-hero p { margin: 0; max-width: 78%; font-size: 11.5px; line-height: 1.55; color: #c8b394; }
.oh-ring {
  position: absolute; right: 18px; top: 18px;
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(231, 195, 119, .5);
  background: radial-gradient(circle, rgba(255, 193, 92, .2), rgba(20, 12, 8, .9) 68%);
  box-shadow: 0 0 22px rgba(255, 180, 66, .18), inset 0 0 18px rgba(255, 200, 100, .12);
}
.oh-ring b { font-family: var(--serif); font-size: 22px; color: #ffe3a0; letter-spacing: 1px; }
.oh-ring i { position: absolute; bottom: 8px; font-style: normal; font-size: 8px; letter-spacing: 2px; color: #b89258; }
.oh-ring::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px dashed rgba(231, 195, 119, .34); animation: ohSpin 18s linear infinite; }
@keyframes ohSpin { to { transform: rotate(360deg); } }
.size-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 10px; }
.size-pick button {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 11px 4px 9px; border-radius: 9px;
  border: 1px solid rgba(198, 158, 92, .28);
  background: linear-gradient(180deg, rgba(43, 27, 16, .9), rgba(18, 10, 6, .94));
  color: #e9d4aa;
}
.size-pick button b { font-size: 20px; line-height: 1; font-family: var(--serif); color: #f4dfb2; }
.size-pick button small { font-size: 9px; color: #b49d78; letter-spacing: .5px; }
.size-pick button.is-active {
  border-color: rgba(246, 206, 128, .78);
  background: linear-gradient(180deg, #5b3a1d, #2b180d);
  box-shadow: 0 0 16px rgba(255, 185, 70, .2), inset 0 1px 0 rgba(255, 238, 195, .28);
}
.size-pick button.is-active::after {
  content: "✓"; position: absolute; right: 6px; top: 5px; font-size: 9px; color: #ffe6a5;
}
.online-cta {
  width: 100%; height: 52px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid rgba(255, 234, 180, .65);
  background: linear-gradient(180deg, #ffe7a7, #e2b662 52%, #b47d29);
  color: #3d2507; font-size: 17px; font-weight: 800; letter-spacing: 3px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 253, 229, .7);
}
.online-cta .mp-icon { width: 20px; height: 20px; }
.online-cta:active { transform: scale(.985); }
.online-cta:disabled { filter: grayscale(.5) brightness(.7); }
.online-tip { margin: 8px 2px 14px; font-size: 10px; line-height: 1.5; color: #a89474; text-align: center; }
.online-rules {
  border-radius: 10px; padding: 12px 14px;
  border: 1px solid rgba(198, 158, 92, .22);
  background: rgba(22, 13, 8, .72);
}
.online-rules h4 { margin: 0 0 8px; font-size: 11px; letter-spacing: 1.5px; color: #d9b878; }
.online-rules ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.online-rules li { display: flex; gap: 7px; font-size: 10.5px; line-height: 1.45; color: #bda98b; }
.online-rules li b { color: #ecd3a2; font-weight: 700; }
.online-rules li .mp-icon { width: 13px; height: 13px; color: #d9b878; flex: 0 0 auto; margin-top: 1px; }

/* 匹配等待 */
.online-queue {
  position: relative;
  margin-top: 2px; padding: 20px 16px 16px;
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(214, 176, 108, .32);
  background: linear-gradient(180deg, rgba(44, 27, 16, .95), rgba(16, 9, 6, .97));
  text-align: center;
}
.online-queue h3 { margin: 12px 0 3px; font-size: 17px; letter-spacing: 2px; color: #f4dfb2; }
.online-queue p { margin: 0; font-size: 10.5px; color: #b49d78; }
.que-radar { position: relative; width: 98px; height: 98px; margin: 0 auto; }
.que-radar i {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(255, 200, 110, .5);
  animation: quePulse 2.4s ease-out infinite;
}
.que-radar i:nth-child(2) { animation-delay: .8s; }
.que-radar i:nth-child(3) { animation-delay: 1.6s; }
@keyframes quePulse { 0% { opacity: .9; transform: scale(.34); } 100% { opacity: 0; transform: scale(1); } }
.que-core {
  position: absolute; left: 50%; top: 50%; width: 46px; height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, #ffe09a, #b47d29);
  color: #3d2507; box-shadow: 0 0 22px rgba(255, 190, 80, .5);
}
.que-core .mp-icon { width: 24px; height: 24px; }
.que-time { margin-top: 8px; font-family: var(--serif); font-size: 32px; color: #ffe4a4; letter-spacing: 2px; line-height: 1; }
.que-meta { display: flex; justify-content: center; gap: 14px; margin: 8px 0 12px; font-size: 10px; color: #bda98b; }
.que-meta b { color: #f0d7a2; }
.que-cancel {
  width: 100%; height: 42px; border-radius: 7px;
  border: 1px solid rgba(206, 166, 98, .4);
  background: linear-gradient(180deg, #3a2417, #1c100a);
  color: #e8d3ab; font-size: 13px; font-weight: 700;
}
.que-cancel:active { transform: scale(.985); }

/* ---------------- 选将 ---------------- */
.online-select { max-width: 560px; margin: 0 auto; }
.os-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(214, 176, 108, .28);
  background: linear-gradient(160deg, rgba(51, 31, 19, .94), rgba(18, 10, 6, .96));
  margin-bottom: 10px;
}
.os-head h3 { margin: 0; font-family: var(--serif); font-size: 20px; letter-spacing: 2px; color: #f5e0b4; }
.os-head p { margin: 3px 0 0; font-size: 10px; color: #b49d78; }
.os-count { text-align: right; }
.os-count b { display: block; font-family: var(--serif); font-size: 24px; color: #ffe3a0; line-height: 1; }
.os-count small { font-size: 9px; color: #b49d78; letter-spacing: 1px; }
.os-players { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.os-player {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 8px 4px 4px; border-radius: 99px;
  border: 1px solid rgba(198, 158, 92, .26);
  background: rgba(28, 17, 11, .85);
  font-size: 10px; color: #d9c4a0;
}
.os-player span {
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 9px; font-weight: 800;
  background: linear-gradient(145deg, #5d3b1d, #2b180d); color: #ffe3a0;
}
.os-player em { font-style: normal; font-size: 8.5px; color: #8fd7ae; }
.os-player.is-ready em { color: #f0cf8c; }
.os-player.is-ai em { color: #9db8e8; }
.os-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.os-card {
  position: relative; display: flex; align-items: center; gap: 8px;
  min-height: 72px; padding: 8px; border-radius: 9px; overflow: hidden;
  border: 1px solid rgba(198, 158, 92, .28);
  background: linear-gradient(160deg, rgba(47, 29, 18, .94), rgba(18, 10, 6, .96));
  color: #ecd8ae; text-align: left;
  transition: transform .14s ease, border-color .2s ease;
}
.os-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 100% at 100% 0%, var(--g1, #5b3a1d), transparent 68%);
  opacity: .16; pointer-events: none;
}
.os-card.is-selected {
  border-color: rgba(255, 220, 140, .82);
  box-shadow: 0 0 0 1px rgba(255, 220, 140, .35), 0 6px 18px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 240, 200, .18);
}
.os-card:active { transform: scale(.98); }
.os-avatar {
  position: relative; z-index: 1;
  width: 50px; height: 60px; flex: 0 0 auto; border-radius: 6px; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--g1, #5b3a1d), var(--g2, #2b180d));
  border: 1px solid rgba(255, 236, 190, .3);
  font-family: var(--serif); font-size: 26px; font-weight: 900; color: #fff1cf;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .6);
}
.os-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 16%; }
.os-info { position: relative; z-index: 1; min-width: 0; }
.os-info h4 { margin: 0; font-size: 14px; color: #f6e3ba; }
.os-info h4 span { font-size: 9px; color: #d9b878; margin-left: 3px; }
.os-info p { margin: 2px 0 0; font-size: 9px; line-height: 1.35; color: #b8a180; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.os-info small { display: block; margin-top: 2px; font-size: 8.5px; color: #c8a66a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os-check {
  position: absolute; right: 7px; top: 7px; z-index: 2;
  width: 18px; height: 18px; border-radius: 50%; display: none; place-items: center;
  background: linear-gradient(180deg, #ffe6a5, #c89542); color: #3d2507;
}
.os-card.is-selected .os-check { display: grid; }
.os-check .mp-icon { width: 12px; height: 12px; }
.os-foot { margin: 10px 2px 0; font-size: 10px; line-height: 1.5; color: #a89474; text-align: center; }

/* ---------------- 对局 ---------------- */
.online-battle { max-width: 620px; margin: 0 auto; }
.ob-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 8px;
}
.ob-round {
  padding: 5px 9px; border-radius: 4px;
  border: 1px solid rgba(201, 161, 94, .32);
  background: rgba(24, 14, 9, .8);
  color: #ead2a0; font-size: 10.5px; letter-spacing: .5px;
}
.ob-turn {
  flex: 1; text-align: center; min-width: 0;
  font-family: var(--serif); font-size: 16px; letter-spacing: 2px;
  color: #ffe4a4; text-shadow: 0 0 10px rgba(255, 190, 80, .25);
}
.ob-turn small { display: block; font-family: var(--font); font-size: 9px; letter-spacing: 1px; color: #bda98b; }
.ob-phase {
  padding: 5px 9px; border-radius: 4px;
  border: 1px solid rgba(201, 161, 94, .32);
  background: rgba(24, 14, 9, .8);
  color: #ead2a0; font-size: 10.5px; letter-spacing: .5px;
}
.online-seats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-bottom: 9px; }
.online-seats.size-3 { grid-template-columns: repeat(3, 1fr); }
.online-seats.size-4 { grid-template-columns: repeat(2, 1fr); }
.oseat {
  position: relative; min-height: 74px;
  display: flex; align-items: center; gap: 7px;
  padding: 7px; border-radius: 9px; overflow: hidden;
  border: 1px solid rgba(198, 158, 92, .24);
  background: linear-gradient(160deg, rgba(40, 25, 15, .93), rgba(15, 8, 5, .96));
  transition: border-color .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.oseat::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 100% at 0% 0%, var(--g1, #5b3a1d), transparent 60%);
  opacity: .14; pointer-events: none;
}
.oseat.is-you {
  border-color: rgba(100, 170, 255, .48);
  box-shadow: inset 0 0 0 1px rgba(100, 170, 255, .18);
}
.oseat.is-turn {
  border-color: rgba(255, 214, 128, .88);
  box-shadow: 0 0 16px rgba(255, 185, 70, .24), inset 0 0 18px rgba(255, 190, 90, .08);
}
.oseat.is-turn::after {
  content: "行动中"; position: absolute; right: 0; top: 0;
  padding: 2px 5px; border-radius: 0 0 0 5px;
  background: linear-gradient(180deg, #ffe7a7, #c89542);
  color: #3d2507; font-size: 7.5px; font-weight: 800; letter-spacing: .5px;
}
.oseat.is-dead { opacity: .46; filter: grayscale(.75); }
.oseat.is-dead::after { content: "阵亡"; }
.oseat-av {
  position: relative; z-index: 1; flex: 0 0 auto;
  width: 38px; height: 46px; border-radius: 6px; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--g1, #5b3a1d), var(--g2, #2b180d));
  border: 1px solid rgba(255, 236, 190, .28);
  font-family: var(--serif); font-size: 20px; font-weight: 900; color: #fff1cf;
}
.oseat-av img { width: 100%; height: 100%; object-fit: cover; object-position: center 16%; }
.oseat-info { position: relative; z-index: 1; flex: 1; min-width: 0; }
.oseat-name { display: flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: #f1ddb5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oseat-name em { font-style: normal; font-size: 7.5px; padding: 1px 3px; border-radius: 2px; background: rgba(120, 160, 230, .18); color: #a8c8ff; }
.oseat-name i { font-style: normal; font-size: 8px; padding: 1px 3px; border-radius: 2px; background: rgba(255, 210, 120, .12); color: #f0cf8c; }
.oseat-hp { display: flex; gap: 2px; margin: 3px 0 2px; }
.oseat-hp i {
  width: 9px; height: 9px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: linear-gradient(145deg, #ff7a6a, #b22a24);
  border: 1px solid rgba(255, 232, 190, .48);
}
.oseat-hp i.lost { background: #2a1512; opacity: .6; }
.oseat-meta { display: flex; align-items: center; gap: 5px; font-size: 8px; color: #a89272; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oseat-meta .mp-icon { width: 9px; height: 9px; }
.oseat-you {
  position: absolute; left: 7px; bottom: 5px; z-index: 2;
  font-size: 7px; letter-spacing: 1px; color: #8bb8ff; opacity: .8;
}
.ob-table {
  position: relative; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(201, 161, 94, .26);
  background:
    radial-gradient(90% 100% at 50% 0%, rgba(70, 44, 25, .55), transparent 68%),
    linear-gradient(180deg, rgba(30, 18, 12, .94), rgba(13, 7, 4, .96));
  box-shadow: inset 0 1px 0 rgba(255, 232, 180, .08), 0 8px 22px rgba(0, 0, 0, .3);
  padding: 9px 10px 10px;
  margin-bottom: 8px;
}
.ob-flow { display: flex; gap: 2px; margin-bottom: 8px; }
.ob-flow span {
  flex: 1; min-height: 25px; display: grid; place-items: center;
  font-size: 10px; letter-spacing: 1.5px; color: #b9a88d;
  clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
  background: rgba(45, 28, 17, .6);
}
.ob-flow span.is-done { color: #cfb98f; }
.ob-flow span.is-active {
  color: #432906; font-weight: 800;
  background: linear-gradient(180deg, #ffe9ae, #eccb7d 42%, #c9973d);
}
.ob-mid { display: flex; align-items: center; gap: 8px; }
.ob-deck { position: relative; width: 34px; height: 50px; flex: 0 0 auto; border-radius: 4px; background: url('images/gen/card_back_clean.png') center / cover no-repeat; border: 1px solid rgba(201, 164, 100, .5); }
.ob-deck b { position: absolute; right: -5px; bottom: -4px; min-width: 16px; height: 16px; padding: 0 4px; display: grid; place-items: center; border-radius: 99px; background: #160d08; border: 1px solid rgba(219, 177, 103, .55); color: #f5dfb4; font-size: 8px; }
.ob-log { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ob-log p { margin: 0; font-size: 9.5px; line-height: 1.35; color: #c6b294; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-log p:last-child { color: #f0d7a2; }
.ob-discard { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 0 0 auto; }
.ob-discard .back { width: 26px; height: 38px; border-radius: 3px; background: url('images/gen/card_back_clean.png') center / cover no-repeat; border: 1px solid rgba(201, 164, 100, .4); opacity: .8; }
.ob-discard small { font-size: 7.5px; color: #a89272; }
.ob-discard b { font-size: 9px; color: #ead2a0; }
.ob-note {
  margin-top: 8px; padding: 6px 9px; border-radius: 6px;
  font-size: 9.5px; line-height: 1.45;
  color: #e8cf9f; background: rgba(94, 61, 28, .3);
  border: 1px solid rgba(214, 176, 108, .22);
}
.ob-note.is-danger { color: #ffd2c4; background: rgba(94, 28, 20, .36); border-color: rgba(230, 100, 78, .4); }
.ob-note.is-good { color: #c9f0d8; background: rgba(30, 80, 55, .32); border-color: rgba(90, 200, 140, .3); }

/* 响应 / 操作 */
.online-respond {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 9px 10px; margin-bottom: 8px; border-radius: 8px;
  background: linear-gradient(180deg, rgba(76, 28, 18, .92), rgba(32, 12, 8, .95));
  border: 1px solid rgba(230, 110, 80, .52);
  box-shadow: 0 0 18px rgba(220, 80, 50, .15);
}
.online-respond .or-copy { flex: 1; min-width: 140px; }
.online-respond .or-copy b { display: block; font-size: 12px; color: #ffe0cb; }
.online-respond .or-copy small { display: block; margin-top: 2px; font-size: 9px; color: #d7a68f; }
.online-respond .or-bar { width: 100%; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.online-respond .or-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff6b4a, #ffc36e); transition: width .2s linear; }
.online-respond button { height: 34px; padding: 0 11px; border-radius: 5px; font-size: 11px; font-weight: 800; }
.or-yes { color: #3d2507; background: linear-gradient(180deg, #ffe6a4, #d9a94e); border: 1px solid rgba(255, 234, 180, .6); }
.or-no { color: #f0d0bd; background: rgba(60, 24, 18, .8); border: 1px solid rgba(220, 120, 95, .4); }
.or-yes:disabled { filter: grayscale(.6) brightness(.7); }

.online-actions {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 6px; border-radius: 8px; margin-bottom: 8px;
  background: linear-gradient(180deg, rgba(30, 18, 12, .9), rgba(14, 8, 5, .92));
  border: 1px solid rgba(201, 161, 94, .3);
}
.oa-limit, .oa-end, .oa-use, .oa-auto {
  height: 34px; padding: 0 9px; border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.oa-limit { color: #ffe6ad; background: linear-gradient(180deg, #6a3f74, #2c1733); border: 1px solid rgba(200, 140, 255, .45); }
.oa-limit:disabled { filter: grayscale(.7) brightness(.65); }
.oa-end { color: #e8d3ab; background: linear-gradient(180deg, #3a2417, #1c100a); border: 1px solid rgba(206, 166, 98, .45); }
.oa-auto { color: #e8d3ab; background: linear-gradient(180deg, #3a2417, #1c100a); border: 1px solid rgba(206, 166, 98, .45); }
.oa-use { margin-left: auto; color: #3d2507; background: linear-gradient(180deg, #ffe6a4, #e0b45e 55%, #b57c28); border: 1px solid rgba(255, 234, 180, .62); }
.oa-use:disabled, .oa-end:disabled, .oa-auto:disabled { filter: grayscale(.6) brightness(.68); }
.oa-info { flex: 1; min-width: 80px; font-size: 9px; line-height: 1.25; color: #bda98b; }
.oa-info b { color: #f0d7a2; }

.online-hand-wrap { position: relative; padding: 4px 0 2px; }
.online-hand {
  display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden;
  padding: 8px 4px 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.online-hand::-webkit-scrollbar { display: none; }
.online-hand .hand-card {
  position: relative !important; left: auto !important; bottom: auto !important;
  flex: 0 0 auto; transform: none !important;
  width: 68px; height: 102px;
}
.online-hand .hand-card.is-selected { transform: translateY(-6px) !important; }
.online-hand-empty { padding: 20px 0; text-align: center; font-size: 11px; color: #a89272; }
.online-hand-hint { display: flex; justify-content: space-between; padding: 0 4px; font-size: 9px; color: #a89272; }
.online-hand-hint b { color: #f0d7a2; }

/* 结算 */
.online-result {
  position: relative; text-align: center; padding: 24px 16px 16px;
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(214, 176, 108, .38);
  background:
    radial-gradient(120% 100% at 50% -10%, rgba(255, 196, 92, .18), transparent 62%),
    linear-gradient(160deg, rgba(54, 33, 20, .96), rgba(17, 9, 6, .98));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
}
.online-result h2 { margin: 0; font-family: var(--serif); font-size: 40px; letter-spacing: 6px; color: #ffe3a0; text-shadow: 0 0 24px rgba(255, 180, 60, .3); }
.online-result h2.lose { color: #d9c4a8; text-shadow: none; }
.online-result .or-sub { margin: 6px 0 14px; font-size: 11.5px; color: #c8b394; }
.online-result .or-stats { display: flex; justify-content: center; gap: 12px; margin-bottom: 14px; }
.online-result .or-stats div { min-width: 64px; padding: 7px 6px; border-radius: 6px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(214, 176, 108, .18); }
.online-result .or-stats b { display: block; font-size: 18px; color: #f2d9a4; }
.online-result .or-stats small { font-size: 8.5px; color: #a89272; }
.online-result .or-actions { display: grid; gap: 7px; }

/* 确认 / toast */
.online-dim {
  position: absolute; inset: 0; z-index: 40;
  display: none; place-items: center; padding: 24px;
  background: rgba(4, 2, 1, .72); backdrop-filter: blur(3px);
}
.online-dim.is-open { display: grid; }
.online-confirm {
  width: min(100%, 320px); padding: 20px 18px 16px; border-radius: 12px; text-align: center;
  border: 1px solid rgba(214, 176, 108, .42);
  background: linear-gradient(160deg, #33200f, #150c07);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
}
.oc-seal {
  display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 10px;
  border-radius: 50%; font-family: var(--serif); font-size: 22px; font-weight: 900; color: #ffd9c4;
  background: radial-gradient(circle, #8c3226, #41110d); border: 1px solid rgba(255, 170, 140, .5);
}
.online-confirm h3 { margin: 0 0 6px; font-size: 17px; color: #f4dfb2; }
.online-confirm p { margin: 0 0 14px; font-size: 10.5px; line-height: 1.5; color: #bfa98a; }
.oc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.oc-actions button { height: 38px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.online-toast {
  position: absolute; left: 50%; bottom: calc(24px + var(--safe-bottom)); z-index: 50;
  transform: translate(-50%, 8px); max-width: 86%;
  padding: 7px 12px; border-radius: 5px;
  background: rgba(20, 12, 8, .97); border: 1px solid rgba(214, 176, 108, .35);
  color: #f4e2bd; font-size: 11px; opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; white-space: nowrap;
}
.online-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 360px) {
  .os-grid { gap: 6px; }
  .os-card { min-height: 66px; padding: 6px; gap: 6px; }
  .os-avatar { width: 42px; height: 52px; font-size: 22px; }
  .online-seats { gap: 5px; }
  .oseat { min-height: 68px; padding: 6px; }
  .oseat-av { width: 32px; height: 40px; font-size: 17px; }
  .online-hand .hand-card { width: 62px; height: 94px; }
}
@media (min-width: 520px) {
  .online-screen { border-radius: 30px; overflow: hidden; }
}
