/* ============================================================
   斗地主 · 欢乐风格皮肤（覆盖 styles.css / hall.css）
   明亮蓝色牌桌 · 卡通圆头像 · 糖果色立体按钮 · 牌型全屏特效
   纯 CSS 原创美术，不使用任何商业游戏的图片素材。
   ============================================================ */

:root {
  --hp-sky-1: #4cc2ff;
  --hp-sky-2: #1f86e0;
  --hp-sky-3: #1459b3;
  --hp-deep: #0d3b82;
  --hp-gold: #ffd84a;
  --hp-gold-d: #f5a300;
  --hp-orange-1: #ffd23f;
  --hp-orange-2: #ff8a00;
  --hp-blue-1: #6fd3ff;
  --hp-blue-2: #1c7fe6;
  --hp-green-1: #a4ec4c;
  --hp-green-2: #33a91c;
  --hp-red-1: #ff8a7a;
  --hp-red-2: #e8352b;
  --hp-purple-1: #d59bff;
  --hp-purple-2: #8a3fe0;
  --hp-stroke: #6b3200;
}

/* ================= 舞台 / 牌桌 ================= */
#stage { background: radial-gradient(120% 100% at 50% 0%, #2f9ff0 0%, #1560b8 55%, #0b3a80 100%); }

#table.happy { border-radius: 0; }
.happy .felt {
  border-radius: 0;
  background:
    radial-gradient(46% 38% at 50% 50%, rgba(255,255,255,0.16), transparent 70%),
    radial-gradient(120% 90% at 50% 45%, var(--hp-sky-1) 0%, var(--hp-sky-2) 50%, var(--hp-sky-3) 85%, var(--hp-deep) 100%);
}
.happy .felt::after {
  /* 椭圆桌面描边 + 细网点质感 */
  inset: 110px 170px 170px;
  border-radius: 50%;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1.5px);
  background-size: 14px 14px;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.18), inset 0 0 60px rgba(255,255,255,0.12), 0 0 0 10px rgba(10,50,120,0.18);
}
.happy .rail { box-shadow: inset 0 0 120px rgba(5,30,80,0.45); border-radius: 0; }
.happy .center-emblem {
  border: none; width: auto; height: auto;
  font-family: var(--font-cn); font-weight: 900; font-size: 88px; letter-spacing: 18px;
  color: rgba(255,255,255,0.10);
  text-shadow: 0 4px 0 rgba(0,40,110,0.10);
}

/* ================= 顶栏 ================= */
.happy .topbar {
  top: 12px; height: 56px;
  background: linear-gradient(180deg, rgba(8,45,110,0.72), rgba(8,40,100,0.55));
  border: 2px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0,20,60,0.35);
}
.happy .room .badge {
  border-radius: 50%; width: 38px; height: 38px;
  background: radial-gradient(circle at 35% 30%, #fff3a8, var(--hp-gold) 45%, var(--hp-gold-d));
  color: #8a3b00; border: 2px solid #fff6c4;
}
.happy .stat {
  background: rgba(0,25,70,0.55); border: 1.5px solid rgba(255,255,255,0.18); border-radius: 999px; padding: 3px 18px;
}
.happy .stat .k { color: #bfe6ff; letter-spacing: 1px; }
.happy .stat .v { color: var(--hp-gold); text-shadow: 0 2px 0 rgba(0,0,0,0.3); }
.happy .stat.mult .v { color: #ffe066; }
.happy .stat.clickable { cursor: pointer; }
.happy .stat.clickable:hover { border-color: var(--hp-gold); }
.happy .icon-btn { border-radius: 50%; background: rgba(0,25,70,0.55); color: #d7efff; border: 1.5px solid rgba(255,255,255,0.2); }
.happy .icon-btn.counter-btn { font-weight: 900; font-size: 15px; }
.happy .icon-btn.on { background: linear-gradient(180deg, var(--hp-orange-1), var(--hp-orange-2)); color: #fff; border-color: #fff3b0; text-shadow: 0 1px 0 var(--hp-stroke); }
.happy .ming-flag { border-radius: 999px; background: linear-gradient(180deg, var(--hp-red-1), var(--hp-red-2)); border: 2px solid #ffd2cc; }

/* 倍数明细 */
.mult-pop {
  position: absolute; left: 50%; top: 76px; transform: translateX(-50%); z-index: 55;
  width: 260px; padding: 14px 18px 12px; border-radius: 18px;
  background: linear-gradient(180deg, #fffdf2, #ffeebb); color: #6b3a00;
  border: 3px solid var(--hp-gold-d); box-shadow: 0 12px 30px rgba(0,20,60,0.45);
  animation: cardPop .2s var(--ease); cursor: pointer;
}
.mp-title { text-align: center; font-weight: 900; font-size: 16px; letter-spacing: 3px; margin-bottom: 8px; color: #c25400; }
.mp-row { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 2px; border-bottom: 1px dashed rgba(160,90,0,0.25); }
.mp-row b { font-family: var(--font-num); color: #e05a00; }
.mp-row.total { border-bottom: none; font-weight: 900; font-size: 16px; margin-top: 4px; }
.mp-row.total b { font-size: 20px; color: #e8352b; }

/* ================= 记牌器 ================= */
.jipaiqi {
  position: absolute; right: 24px; top: 80px; z-index: 38;
  display: flex; gap: 2px; padding: 5px 6px; border-radius: 12px;
  background: rgba(0,25,70,0.6); border: 1.5px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 12px rgba(0,20,60,0.3);
}
.jp-cell { width: 26px; display: flex; flex-direction: column; align-items: center; border-radius: 6px; padding: 2px 0; background: rgba(255,255,255,0.92); }
.jp-cell .jp-r { font-size: 12px; font-weight: 900; color: #243a66; line-height: 1.2; }
.jp-cell.joker .jp-r { color: #e8352b; }
.jp-cell .jp-n { font-family: var(--font-num); font-size: 15px; font-weight: 700; color: #e05a00; line-height: 1.1; }
.jp-cell.full .jp-n { color: #e8352b; }
.jp-cell.gone { background: rgba(255,255,255,0.35); }
.jp-cell.gone .jp-n, .jp-cell.gone .jp-r { color: rgba(30,50,90,0.45); }

/* ================= 座位 ================= */
.happy .seat.left  { left: 28px; top: 220px; }
.happy .seat.right { right: 28px; top: 220px; }
.happy .seat.me    { left: 28px; bottom: 26px; }
.happy .avatar {
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #ffffff, #cfeaff 55%, #8cc8f5);
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--hp-sky-3), 0 6px 14px rgba(0,20,60,0.4);
  font-size: 40px;
}
.happy .avatar.active { border-color: var(--hp-gold); box-shadow: 0 0 0 3px var(--hp-gold-d), 0 0 22px 4px rgba(255,216,74,0.55); }
.happy .timer-ring .prog { stroke: var(--hp-gold); }
.happy .crown { top: -22px; font-size: 28px; animation: crownBob 2s ease-in-out infinite; }
@keyframes crownBob { 0%,100% { transform: translateX(-50%) rotate(-8deg); } 50% { transform: translateX(-50%) translateY(-3px) rotate(6deg); } }
.happy .role-tag { font-size: 12px; padding: 2px 12px; border: 2px solid #fff; bottom: -10px; }
.happy .role-tag.landlord { background: linear-gradient(180deg, #ffcf3a, #ff7a00); color: #fff; text-shadow: 0 1px 0 var(--hp-stroke); }
.happy .role-tag.farmer { background: linear-gradient(180deg, #8fe25a, #2e9d1a); color: #fff; text-shadow: 0 1px 0 #145000; }
.dbl-tag {
  position: absolute; top: -8px; right: -18px; z-index: 4;
  font-size: 11px; font-weight: 900; padding: 2px 7px; border-radius: 8px; white-space: nowrap;
  background: linear-gradient(180deg, var(--hp-red-1), var(--hp-red-2)); color: #fff; border: 2px solid #fff;
  transform: rotate(12deg); box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}
.happy .pname { color: #fff; font-weight: 800; text-shadow: 0 2px 0 rgba(0,30,80,0.5); }
.ming-mini { margin-left: 6px; font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--hp-red-2); color: #fff; }
.happy .coins { background: rgba(0,25,70,0.55); border: 1.5px solid rgba(255,255,255,0.18); color: var(--hp-gold); }
.happy .coins::before { content: "🪙"; font-size: 12px; }
.happy .cardback-count { background: rgba(0,25,70,0.55); border: 1.5px solid rgba(255,255,255,0.18); border-radius: 12px; position: relative; }
.happy .cardback-count .num { color: #fff; font-size: 22px; }
.happy .mini-back { background: repeating-linear-gradient(45deg, #2b7de0 0 3px, #1a5ab8 3px 6px); border: 2px solid #fff; border-radius: 5px; }
.cardback-count.alarm { border-color: #ff4d3d; animation: alarmPulse .6s ease-in-out infinite; }
.cardback-count.alarm .num { color: #ffdf5a; }
.alarm-light { font-size: 20px; animation: alarmSpin .6s steps(2) infinite; }
@keyframes alarmPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,60,40,0.7); } 50% { box-shadow: 0 0 16px 6px rgba(255,60,40,0.75); } }
@keyframes alarmSpin { 0% { filter: brightness(1); } 100% { filter: brightness(1.8) drop-shadow(0 0 6px #ff3020); } }

/* 明牌公开手牌 */
.shown-hand { position: absolute; z-index: 16; display: flex; top: 350px; }
.shown-hand.left { left: 28px; }
.shown-hand.right { right: 28px; }
.shown-hand .card { --cw: 40px; --ch: 56px; border-radius: 5px; }
.shown-hand .card .corner { top: 2px; left: 3px; }
.shown-hand .card .corner .r { font-size: 13px; }
.shown-hand .card .corner .s { font-size: 10px; }
.shown-hand .card .pip, .shown-hand .card .joker-face { display: none; }

/* ================= 扑克牌 ================= */
.happy .card {
  border-radius: 10px;
  background: linear-gradient(175deg, #ffffff 0%, #f7f9ff 100%);
  border: 1.5px solid #c9d6ea;
  box-shadow: 0 3px 6px rgba(0,25,70,0.35);
}
.happy .card.red { color: #e3261f; }
.happy .card:not(.red) { color: #1b2440; }
.happy .card.back { background: repeating-linear-gradient(45deg, #2b7de0 0 6px, #1a5ab8 6px 12px); border: 2px solid #fff; }
.happy .card.back::after { color: rgba(255,255,255,0.7); }
.happy .my-hand { height: 176px; bottom: 18px; }
.happy .my-hand .card { --cw: 88px; --ch: 126px; animation: dealIn .32s var(--ease) backwards; animation-delay: var(--deal-delay, 0ms); }
.happy .my-hand .card .corner .r { font-size: 24px; }
.happy .my-hand .card .corner .s { font-size: 18px; }
.happy .my-hand .card .pip { font-size: 46px; }
.happy .my-hand .card.selected { transform: translateY(-28px); box-shadow: 0 0 0 3px var(--hp-gold), 0 12px 22px rgba(0,25,70,0.45); }
.happy .my-hand .card.hintable { box-shadow: 0 0 0 3px #7ee04a, 0 8px 18px rgba(80,200,40,0.45); }
@keyframes dealIn { from { transform: translate(0, -260px) rotate(-12deg) scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }

.happy .played-cards .card { --cw: 62px; --ch: 88px; }
.happy .hole-cards { top: 80px; }
.happy .hole-label { color: #d7efff; font-weight: 700; }
.happy .hole-cards .card { --cw: 50px; --ch: 70px; }

/* 出牌区 */
.happy .play-zone.left  { left: 230px; top: 240px; }
.happy .play-zone.right { right: 230px; top: 240px; }
.happy .play-zone.me    { bottom: 214px; }
.happy .move-label { color: #fff; font-size: 13px; font-weight: 800; text-shadow: 0 1px 0 rgba(0,30,80,0.6); }
.happy .pass-stamp {
  font-family: var(--font-cn); font-weight: 900; font-size: 34px; letter-spacing: 2px;
  color: #fff; border: none; transform: none;
  text-shadow: 0 3px 0 #1459b3, 0 0 12px rgba(0,40,120,0.6);
  -webkit-text-stroke: 1px #0d3b82;
}

/* 气泡 */
.happy .bubble { border-radius: 16px; border: 3px solid #fff; background: #fffdf0; color: #6b3a00; font-weight: 800; font-size: 15px; }
.happy .bubble.score-bubble { background: linear-gradient(180deg, var(--hp-orange-1), var(--hp-orange-2)); color: #fff; font-family: var(--font-cn); font-size: 18px; text-shadow: 0 1px 0 var(--hp-stroke); }

/* ================= 糖果立体按钮 ================= */
.hbtn {
  position: relative; min-width: 128px; padding: 12px 26px 13px;
  border-radius: 999px; border: 3px solid #fff; cursor: pointer;
  font-family: var(--font-cn); font-size: 21px; font-weight: 900; letter-spacing: 2px; color: #fff;
  display: inline-flex; flex-direction: column; align-items: center; line-height: 1.1; white-space: nowrap;
  box-shadow: 0 5px 0 rgba(0,0,0,0.25), 0 8px 16px rgba(0,20,60,0.35), inset 0 3px 0 rgba(255,255,255,0.45);
  transition: transform .1s, box-shadow .1s, filter .15s;
}
.hbtn small { font-family: var(--font-num); font-size: 12px; letter-spacing: 1px; opacity: .92; margin-top: 1px; }
.hbtn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.hbtn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,0.25), 0 4px 8px rgba(0,20,60,0.3), inset 0 3px 0 rgba(255,255,255,0.45); }
.hbtn:disabled { filter: grayscale(.85) brightness(.9); cursor: not-allowed; transform: none; opacity: .75; }
.hbtn.orange { background: linear-gradient(180deg, var(--hp-orange-1), var(--hp-orange-2)); text-shadow: 0 2px 0 var(--hp-stroke); }
.hbtn.blue   { background: linear-gradient(180deg, var(--hp-blue-1), var(--hp-blue-2)); text-shadow: 0 2px 0 #0b3f86; }
.hbtn.green  { background: linear-gradient(180deg, var(--hp-green-1), var(--hp-green-2)); text-shadow: 0 2px 0 #1a5a00; }
.hbtn.red    { background: linear-gradient(180deg, var(--hp-red-1), var(--hp-red-2)); text-shadow: 0 2px 0 #7a0e00; }
.hbtn.purple { background: linear-gradient(180deg, var(--hp-purple-1), var(--hp-purple-2)); text-shadow: 0 2px 0 #3d0a7a; }
.hbtn.wide { min-width: 220px; }
.hbtn.sm { min-width: 0; font-size: 15px; padding: 7px 16px 8px; }

.happy .actions { bottom: 200px; gap: 22px; }
.happy .bid-panel { bottom: 214px; }
.happy .bid-row { gap: 22px; }
.wait-tip {
  position: absolute; left: 50%; bottom: 240px; transform: translateX(-50%); z-index: 30;
  padding: 8px 22px; border-radius: 999px; background: rgba(0,25,70,0.55); color: #d7efff; font-weight: 700; letter-spacing: 2px;
}
.happy .turn-countdown {
  bottom: auto; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; padding: 0; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--font-num); font-size: 26px; color: #6b3a00;
  background: radial-gradient(circle at 40% 30%, #fff8c8, var(--hp-gold) 55%, var(--hp-gold-d));
  border: 3px solid #fff; box-shadow: 0 6px 14px rgba(0,20,60,0.4);
}
.happy .turn-countdown.urgent { color: #fff; background: radial-gradient(circle at 40% 30%, #ffb3a8, var(--hp-red-2)); animation: cdPulseC .5s ease-in-out infinite; font-size: 28px; }
@keyframes cdPulseC { 0%,100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.15); } }

/* 托管 */
.tuoguan-btn {
  position: absolute; right: 100px; bottom: 30px; z-index: 32;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  font-weight: 900; font-size: 15px; color: #fff; text-shadow: 0 1px 0 #0b3f86;
  background: linear-gradient(180deg, var(--hp-blue-1), var(--hp-blue-2)); border: 3px solid #fff;
  box-shadow: 0 4px 0 rgba(0,0,0,0.25);
}
.tuoguan-bar {
  position: absolute; left: 50%; bottom: 210px; transform: translateX(-50%); z-index: 34;
  display: flex; align-items: center; gap: 16px; padding: 8px 10px 8px 22px; border-radius: 999px;
  background: rgba(0,25,70,0.7); color: #fff; font-weight: 800; font-size: 17px;
}
.happy .chat-toggle { border-radius: 50%; width: 56px; height: 56px; background: linear-gradient(180deg, var(--hp-green-1), var(--hp-green-2)); border: 3px solid #fff; color: #fff; box-shadow: 0 4px 0 rgba(0,0,0,0.25); }
.happy .quick-list { background: #fffdf0; border: 3px solid var(--hp-gold-d); width: 260px; }
.happy .quick-list button { color: #6b3a00; font-weight: 700; }
.happy .quick-list button:hover { background: #ffe89a; color: #6b3a00; }

/* ================= 全屏牌型特效 ================= */
.combo-fx { position: absolute; inset: 0; z-index: 58; pointer-events: none; overflow: hidden; }
.fx-text {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  font-family: var(--font-cn); font-weight: 900; font-size: 110px; letter-spacing: 10px; white-space: nowrap;
  color: #fff3a0;
  background: linear-gradient(180deg, #fffbe0 0%, #ffd84a 45%, #ff8a00 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 3px #8a3b00;
  filter: drop-shadow(0 6px 0 #5a2200) drop-shadow(0 0 24px rgba(255,200,40,0.6));
  animation: fxText 1.3s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes fxText {
  0% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; }
  18% { transform: translate(-50%, -50%) scale(.9); opacity: 1; }
  28% { transform: translate(-50%, -50%) scale(1.05); }
  78% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -60%) scale(1); opacity: 0; }
}
.fx-straight .fx-text, .fx-ming .fx-text { font-size: 90px; }
.fx-straight .fx-text { animation-name: fxSlide; }
@keyframes fxSlide {
  0% { transform: translate(-150%, -50%) skewX(-20deg); opacity: 0; }
  25% { transform: translate(-50%, -50%) skewX(0); opacity: 1; }
  75% { transform: translate(-50%, -50%); opacity: 1; }
  100% { transform: translate(60%, -50%) skewX(-20deg); opacity: 0; }
}
.fx-streak {
  position: absolute; left: -20%; top: 42%; width: 140%; height: 90px; transform: translateY(-50%) skewY(-4deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), rgba(255,230,120,0.7), rgba(255,255,255,0.55), transparent);
  animation: streak 1s ease-out both;
}
@keyframes streak { from { transform: translate(-60%, -50%) skewY(-4deg); opacity: 0; } 30% { opacity: 1; } to { transform: translate(40%, -50%) skewY(-4deg); opacity: 0; } }

/* 飞机：横穿屏幕 */
.fx-plane { position: absolute; top: 30%; left: -200px; font-size: 180px; transform: scaleX(-1); filter: drop-shadow(0 12px 10px rgba(0,20,60,0.4)); animation: planeFly 1.6s ease-in-out both; }
.from-right .fx-plane { left: auto; right: -200px; transform: none; animation-name: planeFlyL; }
@keyframes planeFly { from { left: -220px; top: 44%; } to { left: 110%; top: 18%; } }
@keyframes planeFlyL { from { right: -220px; top: 44%; } to { right: 110%; top: 18%; } }
.fx-plane ~ .fx-text { animation-delay: .3s; }

/* 炸弹：落下 → 爆炸 */
.fx-bomb { position: absolute; left: 50%; top: 42%; font-size: 130px; transform: translate(-50%, -50%); animation: bombDrop .4s cubic-bezier(.5,0,1,.5) both, bombGone 0s .4s forwards; }
@keyframes bombDrop { from { transform: translate(-50%, -300%) rotate(-40deg); } to { transform: translate(-50%, -50%) rotate(10deg); } }
@keyframes bombGone { to { opacity: 0; } }
.fx-boom {
  position: absolute; left: 50%; top: 42%; width: 40px; height: 40px; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff8d0 0%, #ffd84a 25%, #ff7a00 50%, rgba(232,53,43,0.6) 70%, transparent 72%);
  animation: boom .8s .38s ease-out both;
}
@keyframes boom { from { width: 40px; height: 40px; opacity: 1; } to { width: 900px; height: 900px; opacity: 0; } }
.fx-flash { position: absolute; inset: 0; background: #fff; opacity: 0; animation: flash .5s .38s ease-out; }
.fx-rocket ~ .fx-flash { animation-delay: .72s; }
@keyframes flash { 0% { opacity: .8; } 100% { opacity: 0; } }
.fx-bomb ~ .fx-text { animation-delay: .4s; }

/* 王炸：火箭升空 */
.fx-rocket { position: absolute; left: 50%; bottom: -200px; font-size: 170px; transform: translateX(-50%) rotate(-45deg); animation: rocketUp .8s cubic-bezier(.6,0,.9,.6) both; filter: drop-shadow(0 30px 20px rgba(255,120,0,0.8)); }
@keyframes rocketUp { from { bottom: -200px; } to { bottom: 120%; } }
.fx-rocket ~ .fx-text { animation-delay: .75s; font-size: 130px; }

/* 春天：花瓣飘落 */
.fx-petals span { position: absolute; top: -60px; font-size: 42px; animation: petal 2.4s linear both; }
@keyframes petal { from { transform: translateY(0) rotate(0); } to { transform: translateY(1000px) rotate(540deg); } }
.fx-spring .fx-text { animation-duration: 2.4s; background: linear-gradient(180deg, #fff 0%, #ffb3d1 45%, #ff4f8b 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke-color: #8a0035; }

/* 定地主 */
.fx-crown { position: absolute; left: 50%; top: 30%; font-size: 120px; transform: translate(-50%, -50%); animation: crownPop 1.4s ease both; }
@keyframes crownPop { 0% { transform: translate(-50%, -50%) scale(0) rotate(-30deg); } 25% { transform: translate(-50%, -50%) scale(1.2) rotate(10deg); } 70% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -80%) scale(.6); opacity: 0; } }
.fx-landlord .fx-text { top: 48%; font-size: 90px; }
.fx-ming .fx-text { background: linear-gradient(180deg, #fff 0%, #ffb0a0 45%, #e8352b 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke-color: #6a0a00; }

/* ================= 结算 ================= */
.happy .result-overlay { background: rgba(5,25,70,0.55); }
.happy-result {
  position: relative; width: 600px; padding: 64px 36px 28px; overflow: visible;
  background: linear-gradient(180deg, #fffdf2, #ffeab0); color: #6b3a00;
  border: 5px solid var(--hp-gold-d); border-radius: 28px; box-shadow: 0 20px 50px rgba(0,20,60,0.55);
}
.happy-result.lose { background: linear-gradient(180deg, #f4f8ff, #cfdcf0); border-color: #6c86b0; color: #26375a; }
.happy-result .ribbon {
  position: absolute; left: 50%; top: -34px; transform: translateX(-50%);
  padding: 12px 70px 14px; font-size: 44px; font-weight: 900; letter-spacing: 12px; color: #fff; white-space: nowrap;
  background: linear-gradient(180deg, #ff9a3c, #e8352b); border: 4px solid #fff; border-radius: 16px;
  text-shadow: 0 3px 0 #7a0e00; box-shadow: 0 8px 18px rgba(0,0,0,0.3);
  clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%);
}
.happy-result.lose .ribbon { background: linear-gradient(180deg, #8fa6cc, #4a6390); text-shadow: 0 3px 0 #1c2b48; }
.result-side { text-align: center; font-size: 18px; font-weight: 800; letter-spacing: 3px; margin-bottom: 16px; display: flex; justify-content: center; align-items: center; gap: 12px; }
.happy-result .spring-tag { margin: 0; font-size: 14px; }
.result-table { border-radius: 16px; overflow: hidden; background: rgba(255,255,255,0.7); border: 2px solid rgba(160,90,0,0.2); margin-bottom: 14px; }
.happy-result.lose .result-table { border-color: rgba(40,60,100,0.2); }
.rt-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; align-items: center; padding: 10px 16px; font-size: 16px; font-weight: 700; text-align: center; }
.rt-row + .rt-row { border-top: 1px dashed rgba(120,80,20,0.25); }
.rt-row.rt-head { font-size: 13px; letter-spacing: 2px; opacity: .7; padding: 7px 16px; }
.rt-row.me { background: rgba(255,216,74,0.35); }
.rt-name { display: flex; align-items: center; gap: 8px; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rt-name i { font-style: normal; font-size: 22px; }
.rt-role { justify-self: center; padding: 2px 10px; border-radius: 999px; color: #fff; font-size: 13px; }
.rt-role.ll { background: linear-gradient(180deg, #ffcf3a, #ff7a00); }
.rt-role.fm { background: linear-gradient(180deg, #8fe25a, #2e9d1a); }
.rt-row .up { color: #e8352b; font-family: var(--font-num); font-size: 20px; }
.rt-row .down { color: #3a7a2a; font-family: var(--font-num); font-size: 20px; }
.result-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px; }
.result-chips span { padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(255,255,255,0.75); border: 1.5px solid rgba(160,90,0,0.25); }
.happy-result .result-actions { gap: 14px; }
.happy-result .result-actions .hbtn { flex: 1; min-width: 0; font-size: 18px; }
.coin-rain { position: absolute; inset: -40px 0 0; pointer-events: none; overflow: hidden; border-radius: 28px; }
.coin-rain span { position: absolute; top: -40px; font-size: 30px; animation: coinFall 1.6s ease-in both; }
@keyframes coinFall { from { transform: translateY(0) rotate(0); opacity: 1; } to { transform: translateY(560px) rotate(720deg); opacity: 0; } }
.happy .confirm-card { background: linear-gradient(180deg, #fffdf2, #ffeab0); border: 5px solid var(--hp-gold-d); color: #6b3a00; }
.happy .confirm-card .confirm-title { color: #e8352b; }
.happy .confirm-card .confirm-body { color: #6b3a00; }
.happy .confirm-card .confirm-body .stake { color: #6b3a00; }
.happy .confirm-card .result-actions .hbtn { flex: 1; min-width: 0; font-size: 17px; }

/* ================= 手机紧凑模式（680 高画布） ================= */
body.compact-ui .happy .seat.left, body.compact-ui .happy .seat.right { top: 130px; }
body.compact-ui .happy .shown-hand { top: 250px; }
body.compact-ui .happy .play-zone.left { left: 240px; top: 180px; }
body.compact-ui .happy .play-zone.right { right: 240px; top: 180px; }
body.compact-ui .happy .play-zone.me { bottom: 272px; }
body.compact-ui .happy .actions { bottom: 196px; }
body.compact-ui .happy .bid-panel { bottom: 200px; }
body.compact-ui .happy .my-hand .card { --cw: 96px; --ch: 136px; }
body.compact-ui .jipaiqi { top: 74px; }
body.compact-ui .hbtn { font-size: 22px; min-width: 132px; }
body.compact-ui .tuoguan-bar { bottom: 200px; }
body.compact-ui .wait-tip { bottom: 230px; }
body.compact-ui .fx-text { font-size: 90px; }

/* ================= 大厅 / 登录 / 匹配（欢乐蓝天） ================= */
.hall, .screen.matching {
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(255,255,255,0.35), transparent 70%),
    radial-gradient(120% 100% at 50% 0%, #6fd0ff 0%, #2b93e8 45%, #1560b8 80%, #0d3b82 100%);
}
.hall::before {
  background:
    radial-gradient(18% 10% at 15% 18%, rgba(255,255,255,0.35), transparent 70%),
    radial-gradient(22% 12% at 78% 12%, rgba(255,255,255,0.28), transparent 70%),
    radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1.5px);
  background-size: auto, auto, 16px 16px;
}
.login-title {
  background: linear-gradient(180deg, #fffbe0 0%, #ffd84a 45%, #ff8a00 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 2px #8a3b00;
  filter: drop-shadow(0 5px 0 #5a2200);
}
.login-sub { color: #e6f6ff; text-shadow: 0 2px 0 rgba(0,40,110,0.4); }
.login-emblem { border-radius: 50%; border: 5px solid #fff; background: radial-gradient(circle at 35% 30%, #fff3a8, var(--hp-gold) 45%, var(--hp-gold-d)); }
.login-btn { border-radius: 999px !important; border: 3px solid #fff !important; box-shadow: 0 5px 0 rgba(0,0,0,0.22), 0 8px 16px rgba(0,20,60,0.3) !important; }
.mode-hero {
  background: linear-gradient(160deg, #ffd23f 0%, #ff8a00 60%, #e85d00 100%) !important;
  border: 4px solid #fff !important; border-radius: 28px !important;
  box-shadow: 0 8px 0 rgba(120,50,0,0.35), 0 16px 30px rgba(0,20,60,0.35) !important;
}
.mode-hero h2 { color: #fff; text-shadow: 0 3px 0 var(--hp-stroke); }
.mode-hero p { color: #fff6d8 !important; }
.mode-hero .tagpill { color: #fff !important; border-color: #fff !important; background: rgba(255,255,255,0.18); }
.mode-hero .start { border-radius: 999px !important; border: 3px solid #fff !important; }
.mode-card {
  background: linear-gradient(180deg, var(--acc), var(--acc-d)) !important;
  border: 3px solid #fff !important; border-radius: 22px !important;
  box-shadow: 0 6px 0 rgba(0,0,0,0.2), 0 10px 20px rgba(0,20,60,0.3) !important;
}
.mode-card h3 { color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,0.3); }
.mode-card p, .mode-card .mc-chip { color: #fff !important; }
.mode-section-title { color: #fff; text-shadow: 0 2px 0 rgba(0,40,110,0.4); }

/* 叫抢/加倍/聊天气泡: 放在头像外侧，避免遮住剩余张数（覆盖 components.jsx 的内联定位） */
.happy .bubble.left  { left: 210px !important; top: 196px !important; }
.happy .bubble.right { left: auto !important; right: 210px !important; top: 196px !important; }
.happy .bubble.me    { left: 210px !important; bottom: 150px !important; }
body.compact-ui .happy .bubble.left  { top: 160px !important; left: 250px !important; }
body.compact-ui .happy .bubble.right { top: 160px !important; right: 250px !important; }
