/* =========================================================
   手机横屏专用增强
   目标：主流手机横屏 844×390 / 667×375 / 932×430
   ========================================================= */
@media (max-width: 1000px) and (max-height: 560px) and (orientation: landscape) {
  /* ---------- 大厅：更精致、更适合单手握持 ---------- */
  .topbar { box-shadow: 0 8px 26px rgba(0, 0, 0, .2); }
  .top-actions .icon-btn[data-modal="settings"], #fullscreen-btn { display: none; }

  .nav-link.active::after { bottom: 6px; width: 18px; height: 2px; box-shadow: 0 0 10px rgba(244, 209, 136, .5); }
  .game-card {
    box-shadow: 0 10px 28px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 245, 208, .08);
  }
  .game-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(112deg, transparent 22%, rgba(255, 236, 184, .055) 38%, transparent 52%);
  }
  .game-title-row h4 { letter-spacing: .5px; }
  .play-btn {
    box-shadow: 0 2px 0 #744815, 0 5px 12px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .55);
    font-weight: 700;
  }
  .play-btn:active { transform: translateY(1px); }
  .game-art .art-logo { filter: drop-shadow(0 2px 0 rgba(40, 20, 2, .8)) drop-shadow(0 5px 12px rgba(0, 0, 0, .45)); }

  /* ---------- 手牌字体：更大、更清楚 ---------- */
  .hand-inner .pcard {
    border-color: rgba(113, 91, 55, .62);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, .88) inset,
      0 7px 16px rgba(0, 0, 0, .38),
      0 2px 4px rgba(0, 0, 0, .22);
  }
  .hand-inner .pcard::after {
    border-color: rgba(139, 109, 57, .2);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .28) inset;
  }
  .hand-inner .pcard .card-corner {
    left: calc(var(--cw) * .055);
    top: calc(var(--cw) * .035);
  }
  .hand-inner .pcard .card-corner .rank {
    font-size: calc(var(--cw) * .31);
    font-weight: 800;
    letter-spacing: -.06em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .88);
  }
  .hand-inner .pcard .card-corner .suit {
    font-size: calc(var(--cw) * .25);
    margin-top: calc(var(--cw) * .004);
  }
  .hand-inner .pcard .card-corner .rank.ten { letter-spacing: -.155em; }
  .hand-inner .pcard.joker-small .card-corner .rank,
  .hand-inner .pcard.joker-big .card-corner .rank { font-size: calc(var(--cw) * .285); }
  .hand-inner .pcard.joker-small .card-corner .suit,
  .hand-inner .pcard.joker-big .card-corner .suit { font-size: calc(var(--cw) * .22); }
  .hand-inner .pcard .pip { font-size: calc(var(--cw) * .17); }
  .hand-inner .pcard .pip.large { font-size: calc(var(--cw) * .2); }
  .hand-inner .pcard .point-tag {
    top: calc(var(--cw) * .052);
    height: calc(var(--cw) * .19);
    min-width: calc(var(--cw) * .36);
    font-size: max(7px, calc(var(--cw) * .105));
    box-shadow: 0 1px 2px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .5);
  }
  .hand-inner .pcard:hover { --hover-lift: 0px; }
  .hand-inner .pcard.is-selected {
    --lift: -18px;
    box-shadow:
      0 0 0 2px rgba(255, 232, 169, .95),
      0 0 0 5px rgba(244, 196, 94, .15),
      0 0 24px rgba(247, 201, 94, .38),
      0 18px 28px rgba(0, 0, 0, .38);
  }
  .hand-inner .pcard.is-selected::before { background: linear-gradient(130deg, rgba(255, 255, 255, .46), transparent 31%, transparent 70%, rgba(255, 218, 127, .17)); }
  .played-cards .pcard .card-corner .rank { font-size: calc(var(--cw) * .33); font-weight: 800; }
  .played-cards .pcard .card-corner .suit { font-size: calc(var(--cw) * .26); }
  .played-cards .pcard .card-field { opacity: .96; }
  .played-cards .pcard {
    border-color: rgba(109, 89, 55, .62);
    box-shadow: 0 7px 16px rgba(0, 0, 0, .4), 0 1px 0 rgba(255, 255, 255, .7) inset;
  }
  .played-cards .pcard { animation: playCardIn .24s var(--ease-out) both; }

  /* ---------- 斗地主：横屏牌桌 ---------- */
  .ddz-screen .game-topbar { height: 48px; flex-basis: 48px; }
  .ddz-screen .game-brand-mini h2 { font-size: 16px; }
  .ddz-screen .game-top-stat { min-width: 52px; min-height: 30px; }
  .ddz-screen .game-top-stat span { font-size: 6px; }
  .ddz-screen .game-top-stat b { font-size: 11px; }
  .ddz-arena::before { border-color: rgba(170, 125, 63, .78); box-shadow: 0 0 0 1px rgba(225, 184, 108, .18), inset 0 0 130px rgba(0, 0, 0, .3); }
  .ddz-arena::after { border-color: rgba(238, 205, 139, .1); }
  .ddz-arena .table-center-mark { top: 44%; opacity: .58; }
  .ddz-opponent {
    top: 4.8%;
    padding: 4px 7px 4px 4px;
    gap: 7px;
    border-radius: 16px;
    border: 1px solid rgba(230, 195, 124, .1);
    background: linear-gradient(125deg, rgba(8, 47, 37, .76), rgba(4, 27, 22, .42));
    box-shadow: 0 8px 22px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 248, 223, .05);
  }
  .ddz-opponent-left { left: 10px; }
  .ddz-opponent-right { right: 10px; }
  .ddz-opponent .seat-avatar-wrap { width: 44px; height: 44px; }
  .ddz-opponent .level-pill { height: 15px; padding: 0 6px; font-size: 6px; }
  .ddz-opponent .seat-name { font-size: 10px; }
  .ddz-opponent .seat-meta { font-size: 7px; }
  .ddz-opponent .seat-badge { font-size: 6px; }
  .ddz-opponent .seat-bubble-slot { top: 40px; left: 46px; width: 150px; }
  .ddz-opponent-right .seat-bubble-slot { left: auto; right: 46px; }
  .ddz-speech { font-size: 8px; }
  .ddz-opponent.is-turn .seat-avatar-wrap::after,
  .wsk-seat.is-turn .seat-avatar-wrap::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(255, 220, 145, .5);
    box-shadow: 0 0 18px rgba(245, 199, 94, .26);
    animation: seatTurnPulse 1.6s ease-in-out infinite;
    pointer-events: none;
  }
  @keyframes seatTurnPulse {
    0%, 100% { transform: scale(.99); opacity: .55; }
    50% { transform: scale(1.08); opacity: 1; }
  }
  .ddz-top-center { top: 4px; }
  .ddz-bottom-box { height: 49px; padding: 3px 8px 3px 6px; border-radius: 10px; }
  .ddz-bottom-label { height: 33px; font-size: 7px; }
  .ddz-bottom-cards { height: 41px; gap: 3px; }
  .ddz-bottom-cards .pcard { --cw: 29px; }
  .ddz-bottom-meta { font-size: 6.5px; }
  .turntable-status {
    top: 63px;
    height: 23px;
    padding: 3px 11px;
    font-size: 7.5px;
    border-color: rgba(231, 195, 125, .2);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
  }
  .turntable-status.your-turn {
    color: #ffe9b5;
    border-color: rgba(244, 205, 126, .4);
    background: linear-gradient(100deg, rgba(116, 75, 25, .62), rgba(8, 37, 29, .72));
    box-shadow: 0 0 0 1px rgba(249, 215, 143, .08), 0 0 22px rgba(241, 194, 92, .13);
    animation: statusBreath 1.75s ease-in-out infinite;
  }
  @keyframes statusBreath {
    0%, 100% { box-shadow: 0 0 0 1px rgba(249, 215, 143, .07), 0 0 14px rgba(241, 194, 92, .08); }
    50% { box-shadow: 0 0 0 1px rgba(249, 215, 143, .2), 0 0 25px rgba(241, 194, 92, .2); }
  }
  .ddz-bid-center {
    top: 28%;
    width: 246px;
    min-height: 110px;
    padding: 10px 18px;
    border-color: rgba(235, 202, 137, .32);
    box-shadow: 0 16px 45px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 250, 227, .06);
    animation: bidPanelIn .32s var(--ease-out) both;
  }
  @keyframes bidPanelIn {
    from { opacity: 0; transform: translate(-50%, -46%) scale(.95); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  }
  .ddz-bid-seal { width: 42px; height: 42px; font-size: 21px; }
  .ddz-bid-center h3 { font-size: 22px; }
  .ddz-bid-center p { font-size: 8px; }
  .ddz-play-slot.left { left: 24%; top: 36%; }
  .ddz-play-slot.right { right: 24%; top: 36%; }
  .ddz-play-slot.bottom { bottom: calc(clamp(160px, 21.8vw, 184px) + env(safe-area-inset-bottom)); }
  .ddz-play-slot .played-cards { --cw: 36px; }
  .ddz-play-slot .played-cards .pcard { --cw: 36px; }
  .ddz-play-slot .played-cards.small { --cw: 32px; }
  .ddz-play-slot .played-cards.small .pcard { --cw: 32px; }
  .ddz-slot-label { font-size: 7px; padding: 2px 6px; }
  .ddz-pass-stamp { width: 42px; height: 42px; font-size: 12px; animation: passStampIn .28s var(--ease-spring) both; }
  @keyframes passStampIn {
    from { opacity: 0; transform: scale(.55) rotate(-16deg); }
    to { opacity: 1; transform: scale(1) rotate(-8deg); }
  }
  .wsk-pass-stamp { animation: passStampIn .28s var(--ease-spring) both; }
  .ddz-user-seat {
    left: 7px;
    bottom: calc(7px + env(safe-area-inset-bottom));
    padding: 3px;
    border-radius: 12px;
    background: linear-gradient(115deg, rgba(8, 47, 37, .66), rgba(4, 25, 20, .18)) !important;
    border: 1px solid rgba(229, 195, 123, .09);
  }
  .ddz-user-seat .seat-avatar-wrap { width: 38px; height: 38px; }
  .ddz-user-seat .seat-info { display: none; }
  .ddz-user-seat .level-pill { display: none; }
  .ddz-hand-wrap {
    left: 72px;
    right: 56px;
    bottom: max(2px, env(safe-area-inset-bottom));
    height: calc(clamp(50px, 7.3vw, 64px) * 1.4 + 18px);
    --cw: clamp(50px, 7.3vw, 64px);
  }
  .ddz-hand {
    height: calc(clamp(50px, 7.3vw, 64px) * 1.4 + 18px);
    --cw: clamp(50px, 7.3vw, 64px);
  }
  .ddz-hand .hand-inner { bottom: 0; }
  .ddz-hand .hand-inner .pcard { bottom: 17px; }
  .ddz-hand-tools { display: none; }
  .ddz-actions {
    bottom: calc(clamp(112px, 16.9vw, 142px) + env(safe-area-inset-bottom));
    width: 100%;
    left: 0;
    transform: none;
    display: none;
    justify-content: center;
  }
  .ddz-actions.visible { display: flex; }
  .ddz-actions .game-actionbar { gap: 8px; justify-content: center; }
  .ddz-actions .action-timer { display: grid; width: 34px; height: 34px; font-size: 12px; }
  .ddz-actions .action-btn { min-width: 68px; height: 36px; font-size: 10.5px; border-radius: 18px; padding: 0 15px; }
  .ddz-actions .action-btn.primary { min-width: 88px; }
  .ddz-actions .kbd { display: none; }
  .ddz-screen.is-bombing .ddz-arena { animation: tableShake .42s cubic-bezier(.36, .07, .19, .97); }
  .ddz-screen.is-bombing::after,
  .wsk-screen.is-bombing::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 84;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 46%, rgba(255, 224, 145, .32), rgba(177, 70, 23, .16) 35%, transparent 68%);
    animation: bombFlash .5s ease-out both;
  }
  .ddz-bomb-fx { z-index: 92; }
  .ddz-bomb-fx span { font-size: clamp(54px, 9vw, 82px); letter-spacing: 6px; }
  .ddz-bomb-fx b { font-size: 9px; padding: 4px 13px; }
  .ddz-mult-pop span { font-size: 18px; }
  .ddz-mult-pop b { font-size: 36px; }
  .ddz-screen .game-actionbar { animation: actionBarIn .22s var(--ease-out) both; }
  .ddz-screen .action-btn.primary::after {
    content: "";
    position: absolute;
    top: -30%;
    left: -25%;
    width: 44%;
    height: 160%;
    transform: rotate(20deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
    animation: buttonShine 2.8s ease-in-out infinite;
    pointer-events: none;
  }
  .ddz-screen .action-btn.primary { position: relative; overflow: hidden; }
  .ddz-screen .result-card .result-rays { opacity: .9; }
  .ddz-screen .result-emblem { animation: emblemPop .55s var(--ease-spring) both; }
  .ddz-screen .result-title { text-shadow: 0 2px 0 rgba(0, 0, 0, .3), 0 0 30px rgba(244, 205, 120, .18); }
  .ddz-screen .result-card.win::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
      radial-gradient(circle at 18% 20%, rgba(255, 229, 158, .8) 0 1px, transparent 2px),
      radial-gradient(circle at 82% 30%, rgba(255, 209, 114, .7) 0 1px, transparent 2px),
      radial-gradient(circle at 28% 78%, rgba(255, 231, 170, .55) 0 1px, transparent 2px),
      radial-gradient(circle at 72% 82%, rgba(255, 212, 117, .55) 0 1px, transparent 2px);
    background-size: 67px 59px, 89px 73px, 103px 83px, 79px 67px;
    animation: sparkleField 3.2s linear infinite;
    opacity: .55;
  }

  /* ---------- 510K：横屏牌桌 ---------- */
  .wsk-screen .game-topbar { height: 48px; flex-basis: 48px; }
  .wsk-screen .game-brand-mini h2 { font-size: 16px; }
  .wsk-arena::before { border-color: rgba(170, 125, 63, .78); }
  .wsk-scoreboard { top: 5px; height: 46px; padding: 4px 14px 8px; border-radius: 10px; }
  .wsk-team .team-score b { font-size: 22px; }
  .wsk-score-mid { width: 110px; }
  .score-kicker { font-size: 5.5px; }
  .score-pot { font-size: 7.5px; }
  .wsk-team .team-label { font-size: 7px; }
  .wsk-seat-top { top: 57px; }
  .wsk-seat-top .seat-avatar-wrap { width: 38px; height: 38px; }
  .wsk-seat-top .seat-name { font-size: 9px; }
  .wsk-seat-left { left: 8px; top: 24%; }
  .wsk-seat-right { right: 8px; top: 24%; }
  .wsk-seat-left .seat-avatar-wrap, .wsk-seat-right .seat-avatar-wrap { width: 46px; height: 46px; }
  .wsk-seat-left .seat-name, .wsk-seat-right .seat-name { font-size: 9.5px; }
  .wsk-seat .seat-meta { font-size: 6.5px; }
  .wsk-status { top: 105px; height: 22px; font-size: 7.5px; transition: opacity .18s ease, visibility .18s; }
  .wsk-play-slot.top { top: 37%; }
  .wsk-play-slot.left { left: 24%; top: 41%; }
  .wsk-play-slot.right { right: 24%; top: 41%; }
  .wsk-screen:has(.wsk-play-slot.top .wsk-slot-cards .pcard) .wsk-status {
    opacity: 0;
    visibility: hidden;
  }
  .wsk-play-slot.bottom { bottom: calc(clamp(160px, 21.8vw, 184px) + env(safe-area-inset-bottom)); }
  .wsk-play-slot .played-cards { --cw: 36px; }
  .wsk-play-slot .played-cards .pcard { --cw: 36px; }
  .wsk-play-slot .played-cards.small { --cw: 32px; }
  .wsk-play-slot .played-cards.small .pcard { --cw: 32px; }
  .wsk-slot-label { font-size: 7px; padding: 2px 6px; }
  .wsk-user-seat {
    left: 7px;
    bottom: calc(7px + env(safe-area-inset-bottom));
    padding: 3px;
    border-radius: 12px;
    border: 1px solid rgba(229, 195, 123, .09);
    background: linear-gradient(115deg, rgba(8, 47, 37, .66), rgba(4, 25, 20, .18)) !important;
  }
  .wsk-user-seat .seat-avatar-wrap { width: 38px; height: 38px; }
  .wsk-user-seat .seat-info { display: none; }
  .wsk-user-seat .level-pill { display: none; }
  .wsk-hand-wrap {
    left: 72px;
    right: 56px;
    bottom: max(2px, env(safe-area-inset-bottom));
    height: calc(clamp(50px, 7.3vw, 64px) * 1.4 + 18px);
    --cw: clamp(50px, 7.3vw, 64px);
  }
  .wsk-hand {
    height: calc(clamp(50px, 7.3vw, 64px) * 1.4 + 18px);
    --cw: clamp(50px, 7.3vw, 64px);
  }
  .wsk-hand .hand-inner { bottom: 0; }
  .wsk-hand .hand-inner .pcard { bottom: 17px; }
  .wsk-actions {
    bottom: calc(clamp(112px, 16.9vw, 142px) + env(safe-area-inset-bottom));
    width: 100%;
    left: 0;
    transform: none;
    display: none;
    justify-content: center;
  }
  .wsk-actions.visible { display: flex; }
  .wsk-actions .game-actionbar { gap: 8px; justify-content: center; }
  .wsk-actions .action-timer { display: grid; width: 34px; height: 34px; font-size: 12px; }
  .wsk-actions .action-btn { min-width: 68px; height: 36px; font-size: 10.5px; border-radius: 18px; padding: 0 15px; }
  .wsk-actions .action-btn.primary { min-width: 88px; }
  .wsk-actions .kbd { display: none; }
  .wsk-screen .game-actionbar { animation: actionBarIn .22s var(--ease-out) both; }
  .wsk-screen.is-bombing .wsk-arena { animation: tableShake .42s cubic-bezier(.36, .07, .19, .97); }
  .wsk-bomb-fx span { font-size: clamp(48px, 7.4vw, 72px); }
  .wsk-bomb-fx b { font-size: 9px; }
  .wsk-screen .result-emblem { animation: emblemPop .55s var(--ease-spring) both; }
  .wsk-screen .result-card.win::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle at 22% 25%, rgba(255, 234, 171, .6) 0 1px, transparent 2px), radial-gradient(circle at 75% 70%, rgba(255, 212, 116, .5) 0 1px, transparent 2px);
    background-size: 83px 61px, 113px 79px;
    animation: sparkleField 3.6s linear infinite;
    opacity: .4;
  }

  /* ---------- 红中血流：横屏牌桌 ---------- */
  .mj-screen .game-topbar { height: 48px; flex-basis: 48px; }
  .mj-screen .game-brand-mini h2 { font-size: 16px; }
  .mj-arena::before { border-color: rgba(170, 125, 63, .78); }
  .mj-seat-top { top: 4px; }
  .mj-seat-left, .mj-seat-right { top: 18%; }
  .mj-seat-left .seat-avatar-wrap, .mj-seat-right .seat-avatar-wrap { width: 46px; height: 46px; }
  .mj-seat .seat-name { font-size: 9.5px; }
  .mj-seat .seat-meta { font-size: 6.5px; }
  .mj-river .mj-tile { --tw: clamp(22px, 2.9vw, 29px); }
  .mj-river .mj-tile:last-child .mj-tile-body { box-shadow: 0 0 0 1px rgba(248, 210, 128, .6), 0 0 12px rgba(243, 194, 95, .18), 0 4px 8px rgba(0, 0, 0, .3); }
  .mj-river-top { top: 15%; }
  .mj-river-bottom { bottom: calc(154px + env(safe-area-inset-bottom)); }
  .mj-river-left, .mj-river-right { top: 43%; }
  .mj-wall { top: 45%; width: 66px; height: 66px; }
  .mj-wall b { font-size: 22px; }
  .mj-wall small { font-size: 6.5px; }
  .mj-hand-wrap { bottom: max(2px, env(safe-area-inset-bottom)); height: 72px; }
  .mj-hand {
    --hand-tw: clamp(34px, 4.8vw, 44px);
    height: 70px;
    min-height: 68px;
  }
  .mj-hand .mj-tile { --tw: clamp(34px, 4.8vw, 44px); }
  .mj-hand .mj-tile .mj-tile-body { box-shadow: 0 8px 15px rgba(0, 0, 0, .3), 0 2px 2px rgba(0, 0, 0, .22), inset 0 2px 0 rgba(255, 255, 255, .65); }
  .mj-hand .mj-tile .mj-tile-face b,
  .mj-hand .mj-tile .mj-tile-face span { text-shadow: 0 1px 0 rgba(255, 255, 255, .45); }
  .mj-hand .mj-wan-num { font-size: calc(var(--tw) * .58); }
  .mj-hand .mj-wan-char { font-size: calc(var(--tw) * .33); }
  .mj-hand .mj-face-wild b { font-size: calc(var(--tw) * .62); }
  .mj-hand .mj-tile.is-selected { transform: translateY(-13px); }
  .mj-screen .mj-actions {
    bottom: calc(102px + env(safe-area-inset-bottom));
    width: 100%;
    left: 0;
    transform: none;
    display: none;
    justify-content: center;
  }
  .mj-screen .mj-actions.visible { display: flex; }
  .mj-screen .game-actionbar { gap: 7px; justify-content: center; animation: actionBarIn .22s var(--ease-out) both; }
  .mj-screen .action-timer { display: grid; width: 33px; height: 33px; font-size: 11px; }
  .mj-screen .action-btn { min-width: 60px; height: 35px; font-size: 10px; border-radius: 18px; padding: 0 13px; }
  .mj-screen .action-btn.primary { min-width: 76px; }
  .mj-screen .kbd { display: none; }
  .mj-hand-info { bottom: calc(78px + env(safe-area-inset-bottom)); right: 14px; font-size: 7px; }
  .mj-user-melds { bottom: calc(76px + env(safe-area-inset-bottom)); left: 12px; }
  .mj-screen .result-emblem { animation: emblemPop .55s var(--ease-spring) both; }
  .mj-screen .result-card.win::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle at 22% 30%, rgba(255, 232, 164, .6) 0 1px, transparent 2px), radial-gradient(circle at 73% 68%, rgba(255, 211, 115, .45) 0 1px, transparent 2px);
    background-size: 89px 67px, 117px 83px;
    animation: sparkleField 3.8s linear infinite;
    opacity: .4;
  }

  /* ---------- 共通动效 ---------- */
  @keyframes tableShake {
    0%, 100% { transform: translate(0, 0); }
    15% { transform: translate(-5px, 2px); }
    30% { transform: translate(5px, -2px); }
    45% { transform: translate(-4px, -1px); }
    60% { transform: translate(3px, 1px); }
    78% { transform: translate(-2px, 0); }
  }
  @keyframes bombFlash {
    0% { opacity: 0; }
    15% { opacity: 1; }
    100% { opacity: 0; }
  }
  @keyframes actionBarIn {
    from { opacity: 0; transform: translateY(8px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  @keyframes emblemPop {
    from { opacity: 0; transform: scale(.55) rotate(-8deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
  }
  @keyframes buttonShine {
    0%, 58% { transform: translateX(-180%) rotate(20deg); opacity: 0; }
    68% { opacity: 1; }
    86%, 100% { transform: translateX(520%) rotate(20deg); opacity: 0; }
  }
  @keyframes sparkleField {
    from { background-position: 0 0, 0 0, 0 0, 0 0; }
    to { background-position: 67px 59px, -89px 73px, 103px -83px, -79px -67px; }
  }
  .action-timer.countdown-warning { color: #ffbf91 !important; animation: timerWarn .75s ease-in-out infinite; }
  @keyframes timerWarn {
    0%, 100% { box-shadow: 0 0 0 0 rgba(228, 100, 65, 0); }
    50% { box-shadow: 0 0 0 5px rgba(228, 100, 65, .12), 0 0 16px rgba(228, 100, 65, .16); }
  }
}

/* 小屏手机的牌面略缩，但排行字仍保证可读 */
@media (max-width: 620px) and (max-height: 380px) and (orientation: landscape) {
  .hand-inner .pcard .card-corner .rank { font-size: calc(var(--cw) * .31); }
  .ddz-actions .action-btn, .wsk-actions .action-btn { min-width: 60px; padding: 0 11px; }
  .ddz-actions .action-btn.primary, .wsk-actions .action-btn.primary { min-width: 76px; }
  .ddz-actions .action-timer, .wsk-actions .action-timer { width: 30px; height: 30px; font-size: 10px; }
}

/* 竖屏兼容牌桌也把牌面字号再放大一档 */
@media (max-width: 560px) and (orientation: portrait) {
  .hand-inner .pcard .card-corner { left: calc(var(--cw) * .055); top: calc(var(--cw) * .035); }
  .hand-inner .pcard .card-corner .rank { font-size: calc(var(--cw) * .30); letter-spacing: -.06em; }
  .hand-inner .pcard .card-corner .suit { font-size: calc(var(--cw) * .24); }
  .hand-inner .pcard .card-corner .rank.ten { letter-spacing: -.155em; }
  .hand-inner .pcard.joker-small .card-corner .rank,
  .hand-inner .pcard.joker-big .card-corner .rank { font-size: calc(var(--cw) * .285); }
  .hand-inner .pcard.joker-small .card-corner .suit,
  .hand-inner .pcard.joker-big .card-corner .suit { font-size: calc(var(--cw) * .22); }
  .hand-inner .pcard .pip { font-size: calc(var(--cw) * .17); }
  .hand-inner .pcard .pip.large { font-size: calc(var(--cw) * .2); }
  .ddz-play-slot .played-cards .pcard .card-corner .rank,
  .wsk-play-slot .played-cards .pcard .card-corner .rank { font-size: calc(var(--cw) * .33); }
  .ddz-play-slot .played-cards .pcard .card-corner .suit,
  .wsk-play-slot .played-cards .pcard .card-corner .suit { font-size: calc(var(--cw) * .26); }
  .mj-hand .mj-wan-num { font-size: calc(var(--tw) * .58); }
  .mj-hand .mj-wan-char { font-size: calc(var(--tw) * .33); }
  .mj-hand .mj-face-wild b { font-size: calc(var(--tw) * .62); }
}
