/* 牌桌教程弹层：斗地主与麻将共用，画静态示例，不碰真实牌局。 */
.tut{position:absolute;inset:0;z-index:26;display:flex;align-items:center;justify-content:center;padding:14px;
  background:rgba(6,18,13,.68);backdrop-filter:blur(3px)}
.tut[hidden]{display:none}
.tut-sheet{display:flex;flex-direction:column;gap:10px;width:min(440px,94vw);max-height:88vh;overflow:auto;
  padding:15px 17px 13px;border-radius:20px;background:linear-gradient(180deg,#fffdf7,#f5eddc);color:#243024;
  box-shadow:0 20px 44px rgba(0,0,0,.44)}
.tut-head{display:flex;align-items:center;gap:10px}
.tut-kicker{flex:1;min-width:0;font-size:11.5px;font-weight:700;letter-spacing:.06em;color:#7d6b4c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tut-title{font-size:17px;line-height:1.3}
.tut-close{padding:5px 10px;border-radius:9px;border:1px solid #d8cdb6;background:#f1e8d6;color:#3a4a40;font-size:12px;font-weight:600}
.tut-stage{display:flex;align-items:center;justify-content:center;min-height:104px;padding:10px 8px;border-radius:14px;
  background:radial-gradient(120% 100% at 50% 0%,#2f6b57,#1d4738);border:1px solid rgba(20,60,44,.5)}
.tut-stage[hidden]{display:none}
.tut-stack{display:flex;flex-direction:column;gap:8px;width:100%;align-items:center}
.tut-row{display:flex;align-items:center;gap:8px}
.tut-row-note{flex:0 0 auto;min-width:52px;font-size:10.5px;font-weight:700;color:#ffe6b0;text-align:right}
.tut-cards{display:flex;gap:3px}
.tut-cards:empty::after{content:'不出';padding:4px 10px;border-radius:999px;background:rgba(8,24,17,.85);color:#ffe6b0;font-size:11px;font-weight:700}
.tut-card{display:flex;flex-direction:column;align-items:center;justify-content:center;width:30px;height:42px;border-radius:6px;
  background:linear-gradient(170deg,#fffefb,#f4ecda);border:1px solid #cdbfa2;color:#22303c;font-weight:700;line-height:1.05;
  box-shadow:0 2px 3px rgba(0,0,0,.28)}
.tut-card b{font-size:14px}
.tut-card i{font-size:12px;font-style:normal}
.tut-card.is-red{color:#c0392b}
.tut-tiles{display:flex;gap:2px;align-items:center}
.tut-tiles .mj-tile{--mj-w:24px}
.tut-text{margin:0;font-size:13px;line-height:1.6;color:#3a4a40}
.tut-dots{display:flex;gap:5px;justify-content:center;flex-wrap:wrap}
.tut-dots button{width:24px;height:24px;border-radius:8px;border:1px solid #d8cdb6;background:#f1e8d6;color:#6a5c44;font-size:11px;font-weight:700}
.tut-dots button[aria-current='step']{background:linear-gradient(180deg,#3a7a5f,#2b5c47);border-color:#2b5c47;color:#fff}
.tut-foot{display:flex;align-items:center;gap:8px}
.tut-count{flex:1;text-align:center;font-size:12px;color:#7d6b4c;font-variant-numeric:tabular-nums}
.tut-foot button{min-width:88px;padding:9px 12px;border-radius:11px;border:1px solid #d8cdb6;background:#f1e8d6;color:#2b3a31;font-size:13px;font-weight:700}
.tut-foot button.primary{background:linear-gradient(180deg,#3a7a5f,#2b5c47);border-color:#2b5c47;color:#fff}
@media (max-width:420px){
  .tut-sheet{padding:13px 14px 11px;gap:9px}
  .tut-kicker{font-size:10.5px;letter-spacing:.02em;flex:0 1 auto}
  .tut-head{gap:8px}
  .tut-title{font-size:15px}
  .tut-close{padding:5px 8px;font-size:11.5px}
  .tut-tiles .mj-tile{--mj-w:20px}
  .tut-card{width:27px;height:38px}
  .tut-foot button{min-width:74px;padding:8px 10px;font-size:12.5px}
}
@media (max-height:640px){
  .tut-stage{min-height:86px;padding:8px 6px}
  .tut-text{font-size:12.5px}
}
