/* ============================================================
   抽奖活动系统样式
   玩家页 (lt-): 与站点 pg_common.css 同一视觉语言 —— 白卡片 + 12px 圆角
                + 软阴影 + 主色 #2f6fa8; 金色仅用于抽奖 CTA 与稀有高亮
   管理页 (lta-): 浅色后台风格
   ============================================================ */

/* ---------- 玩家页通用 ---------- */
.lt-wrap {
    max-width: 980px;
    margin: 0 auto 40px;
    padding: 0 4px;
    color: #34495e;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
.lt-head { text-align: center; margin-bottom: 14px; }
.lt-head h2 {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 6px;
    color: #2c3e50;
}
.lt-head .lt-sub { color: #97a3b0; font-size: 12px; letter-spacing: 1px; margin-bottom: 14px; }
.lt-balance {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 20px;
    background: #fff7e6;
    border: 1px solid #f2dfc0;
    border-radius: 999px;
    font-size: 13px;
    color: #8a5a10;
}
.lt-balance b { font-size: 18px; color: #c87f0a; }
/* 集换卡册入口(余额胶囊旁, 翡翠绿呼应卡册卷一主题) */
.lt-album-link {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 7px 18px; border-radius: 999px; text-decoration: none;
    background: #eefaf3; border: 1px solid #cfe8da; color: #1e7a4a;
    font-size: 13px; font-weight: 700; letter-spacing: .5px;
    transition: filter .15s ease, transform .15s ease;
}
.lt-album-link:hover { filter: brightness(1.05); transform: translateY(-1px); }

.lt-toolbar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 6px 0 20px; }

/* ---------- 大厅活动卡 ---------- */
.lt-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.lt-event {
    position: relative;
    padding: 18px 16px 14px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f6;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
    overflow: hidden;
}
.lt-event:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(31, 74, 111, 0.14); }
.lt-event.running { border-top: 3px solid #2f6fa8; }
.lt-event.upcoming { border-top: 3px dashed #b8c9d8; }
.lt-event.ended { opacity: 0.62; filter: grayscale(0.35); cursor: default; border-top: 3px solid #d8dee5; }
.lt-event.draft { border: 1px dashed #b8a6e0; border-top: 3px dashed #8f7bc4; background: #fbfaff; }
.lt-event .lt-ev-icon { font-size: 28px; }
.lt-ev-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lt-ev-countdown { font-size: 12px; color: #2f6fa8; font-family: Consolas, monospace; font-weight: 600; background: #e8f1f8; border-radius: 6px; padding: 2px 8px; }
.lt-event.ended .lt-ev-countdown { color: #97a3b0; background: #f0f2f5; }
.lt-ev-cta {
    display: block; width: 100%; margin-top: 12px;
    padding: 8px 0;
    border: none; border-radius: 9px;
    background: linear-gradient(180deg, #3d84c6, #2f6fa8);
    color: #fff; font-size: 14px; font-weight: bold; letter-spacing: 2px;
    cursor: pointer;
    transition: filter 0.15s;
}
.lt-event:hover .lt-ev-cta { filter: brightness(1.1); }
.lt-ev-cta.muted { background: #eef2f6; color: #7b8894; letter-spacing: 0; }
.lt-ev-cta:disabled { cursor: default; }
.lt-event h3 { margin: 6px 0 6px; font-size: 17px; color: #2c3e50; }
.lt-event .lt-ev-desc { min-height: 40px; color: #97a3b0; font-size: 12px; line-height: 1.6; }
.lt-ev-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.lt-tag {
    display: inline-block;
    font-size: 11px;
    line-height: 1;
    padding: 4px 7px;
    border-radius: 5px;
    background: #f0f3f6;
    color: #7b8894;
    white-space: nowrap;
    font-weight: 600;
}
.lt-tag.gold { background: #fff4e5; color: #c87f0a; }
.lt-tag.blue { background: #e8f1f8; color: #2f6fa8; }
.lt-tag.gray { background: #f0f2f5; color: #97a3b0; }
.lt-tag.card { background: #eefaf3; color: #1e7a4a; font-weight: 700; }   /* 掉集换卡(翡翠绿) */
.lt-ev-time { margin-top: 10px; color: #97a3b0; font-size: 12px; }
.lt-empty { grid-column: 1 / -1; text-align: center; color: #97a3b0; padding: 46px 0; font-size: 13px; background: #fff; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }

/* 我的记录 */
.lt-log-toggle {
    display: block;
    margin: 20px auto 0;
    padding: 8px 24px;
    background: #e8f1f8;
    color: #2f6fa8;
    border: 1px solid #cfe2f0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
}
.lt-log-toggle:hover { background: #dcebf7; }
.lt-log-box { display: none; margin-top: 14px; }
.lt-log-box.open { display: block; }
.lt-log-item {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: #f7fafc;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #34495e;
}
.lt-log-item .lt-log-meta { color: #97a3b0; font-size: 12px; margin-top: 3px; }
.lt-log-item .win { color: #c87f0a; font-weight: bold; }
.lt-log-item .lose { color: #97a3b0; }

/* 记录分类页签 (全部 / 碎片 / 物品 / 未中奖) */
.lt-fchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.lt-fchips button {
    border: 1px solid #d8dee5;
    background: #fff;
    color: #7b8894;
    font-size: 12px;
    padding: 5px 13px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
}
.lt-fchips button:hover { border-color: #7fb3d5; color: #2f6fa8; }
.lt-fchips button.on { background: #2f6fa8; border-color: #2f6fa8; color: #fff; font-weight: bold; }
.lt-fchips .lt-fchip-count { font-size: 12px; color: #97a3b0; margin-left: auto; }
.lt-tip-line { font-size: 12px; color: #97a3b0; line-height: 1.8; margin: -2px 0 10px; }
.lt-tip-line code { background: #f0f4f8; padding: 1px 6px; border-radius: 4px; color: #2f6fa8; }
.lt-tip-line a { color: #2f6fa8; }
.lt-more-btn {
    margin-top: 4px;
    padding: 7px 24px;
    background: #e8f1f8;
    color: #2f6fa8;
    border: 1px solid #cfe2f0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
}
.lt-more-btn:hover { background: #dcebf7; }
.lt-cdkey-chip {
    font-family: Consolas, monospace;
    background: #fff;
    border: 1px dashed #c87f0a;
    color: #b06a00;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 12px;
    cursor: pointer;
}
.lt-cdkey-chip:hover { background: #fff7e6; }

/* ---------- 玩法页 ---------- */
.lt-play-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 18px 16px 16px;
}
.lt-note {
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 14px;
    background: #e8f1f8;
    color: #23517a;
    border: 1px solid #cfe2f0;
}
.lt-note.warn { background: #fff4e5; color: #8a5a10; border-color: #f2dfc0; }
.lt-play-head { text-align: center; margin-bottom: 10px; }
.lt-play-head h2 { margin: 0 0 4px; font-size: 20px; color: #2c3e50; }
.lt-play-head .lt-desc { color: #97a3b0; font-size: 12px; max-width: 640px; margin: 0 auto; line-height: 1.7; white-space: pre-line; }
.lt-countdown { margin-top: 8px; font-size: 13px; color: #7b8894; }
.lt-countdown b { color: #2f6fa8; font-family: Consolas, monospace; font-size: 15px; }

.lt-infobar {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center;
    margin: 12px 0;
    font-size: 13px; color: #34495e;
}
.lt-infobar .seg {
    background: #f7fafc;
    border: 1px solid #eef2f6;
    padding: 5px 14px;
    border-radius: 9px;
}
.lt-infobar .gold { color: #c87f0a; font-weight: bold; }

/* ---- 留存经济: 全服大奖池横幅 + 保底进度 ---- */
.lt-jackpot {
    margin: 10px auto;
    max-width: 760px;
    text-align: center;
    padding: 10px 16px;
    border-radius: 12px;
    background:
        radial-gradient(80% 130% at 50% 0%, rgba(255,214,110,0.22), transparent 60%),
        linear-gradient(90deg, #3a2a10, #5c421a 50%, #3a2a10);
    border: 2px solid #e7b93c;
    color: #ffe9a8;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(231,185,60,0.30), inset 0 0 20px rgba(0,0,0,0.38);
    animation: lt-jackpot-glow 2.4s ease-in-out infinite;
}
.lt-jackpot b { color: #ffd76e; font-size: 18px; text-shadow: 0 0 8px rgba(255,190,60,0.8); }
@keyframes lt-jackpot-glow {
    0%, 100% { box-shadow: 0 4px 16px rgba(231,185,60,0.30), inset 0 0 20px rgba(0,0,0,0.38); }
    50% { box-shadow: 0 4px 26px rgba(255,214,110,0.55), inset 0 0 20px rgba(0,0,0,0.38); }
}
#lt-pity-seg { color: #1e8449; }
#lt-pity-seg .gold { color: #c87f0a; }

/* 中奖滚动 */
.lt-wins {
    height: 38px;
    margin: 0 auto 16px;
    max-width: 620px;
    overflow: hidden;
    background: #e8f1f8;
    border: 1px solid #cfe2f0;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.4s ease;
    font-size: 13px;
    color: #23517a;
}
.lt-wins.fade { opacity: 0; }
.lt-wins .name { color: #2c3e50; font-weight: bold; margin: 0 6px; }
.lt-wins .rw { color: #c87f0a; margin-left: 6px; font-weight: 600; }

/* ---- 九宫格 ---- */
.lt-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(90px, 150px));
    grid-auto-rows: 118px;
    gap: 10px;
    justify-content: center;
    margin: 8px auto 4px;
}
.lt-cell {
    border-radius: 12px;
    background: #f7fafc;
    border: 2px solid #e2e9f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px;
    transition: transform 0.08s ease, box-shadow 0.08s ease, border-color 0.08s ease, background 0.08s ease;
    overflow: hidden;
}
.lt-cell .lt-cell-icon { font-size: 22px; margin-bottom: 4px; }
.lt-cell .lt-cell-img {
    height: 42px;
    max-width: 82%;
    object-fit: contain;
    margin-bottom: 4px;
    filter: drop-shadow(0 2px 3px rgba(40, 60, 90, 0.25));
}
.lt-cell .lt-cell-name {
    font-size: 13px;
    color: #34495e;
    line-height: 1.35;
    word-break: break-all;
    max-width: 100%;
    font-weight: 600;
}
.lt-cell .lt-cell-pct { margin-top: 4px; font-size: 11px; color: #97a3b0; font-family: Consolas, monospace; }
.lt-cell.rare .lt-cell-name { color: #c87f0a; }
.lt-cell.on {
    border-color: #f0a500;
    background: #fff7e6;
    box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.22);
    transform: scale(1.05);
}
.lt-cell.on .lt-cell-name { color: #a06500; }
.lt-center {
    border-radius: 12px;
    background: linear-gradient(180deg, #ffd76e, #ffb830);
    border: 2px solid #ffe9a8;
    color: #7a4c00;
    font-size: 17px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(217, 119, 6, 0.25);
    animation: lt-pulse 1.8s ease-in-out infinite;
}
.lt-center:disabled { animation: none; filter: grayscale(0.6); cursor: not-allowed; opacity: 0.75; }
.lt-center .lt-cost { display: block; font-size: 11px; font-weight: normal; letter-spacing: 0; margin-top: 3px; }
@keyframes lt-pulse {
    0%, 100% { box-shadow: 0 3px 10px rgba(217, 119, 6, 0.22); }
    50% { box-shadow: 0 3px 18px rgba(217, 119, 6, 0.45); }
}

/* ---- 转盘 ---- */
.lt-wheel-zone { text-align: center; padding: 6px 0 2px; }
.lt-wheel-wrap { position: relative; width: min(340px, 86vw); height: min(340px, 86vw); margin: 0 auto; }
.lt-wheel-pointer {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 26px solid #c87f0a;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
    z-index: 5;
}
.lt-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid #e7b93c;
    box-shadow: 0 0 0 4px #f5e3b0, 0 8px 24px rgba(31, 74, 111, 0.18);
    transition: transform 4.6s cubic-bezier(0.2, 0.65, 0.16, 1);
    position: relative;
}
.lt-wheel-label {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(min(340px, 86vw) / -2 + 44px));
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 2px #000;
    white-space: nowrap;
    pointer-events: none;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lt-wheel-hub {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 74px; height: 74px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffd76e, #ffb830);
    border: 4px solid #fff2cf;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: bold; color: #7a4c00;
    z-index: 4;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}
.lt-wheel-hub:disabled { filter: grayscale(0.6); cursor: not-allowed; }

.lt-play-btn {
    display: block;
    margin: 16px auto 4px;
    padding: 11px 44px;
    font-size: 16px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffd76e, #ffb830);
    color: #7a4c00;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.28);
}
.lt-play-btn:disabled { filter: grayscale(0.7); opacity: 0.7; cursor: not-allowed; }

/* ---- 神秘翻牌 ---- */
.lt-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(72px, 118px));
    gap: 10px;
    justify-content: center;
    margin: 10px auto 6px;
}
.lt-card3d { perspective: 700px; aspect-ratio: 3/4.2; cursor: default; }
.lt-card3d-inner {
    position: relative; width: 100%; height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.55s cubic-bezier(0.3, 0.9, 0.4, 1.1);
}
.lt-card3d.peek .lt-card3d-inner { transform: rotateY(24deg) scale(1.04); }
/* 翻面 = 2D 收拢-换面-展开(同集换卡: 不依赖 rotateY/backface, 部分浏览器 3D 合成不可靠会渲成镜像/空白) */
.lt-card3d.flip .lt-card3d-inner { animation: lt-card-sq .55s ease both; }
@keyframes lt-card-sq {
    0%, 40%   { transform: scaleX(1); }
    52%       { transform: scaleX(.03); }
    66%, 100% { transform: scaleX(1); }
}
.lt-card3d.flip .lt-card3d-front { animation: lt-card-fv .55s linear both; }
@keyframes lt-card-fv { 0%, 51% { visibility: hidden; } 52%, 100% { visibility: visible; } }
.lt-card3d.flip .lt-card3d-back { animation: lt-card-bv .55s linear both; }
@keyframes lt-card-bv { 0%, 51% { visibility: visible; } 52%, 100% { visibility: hidden; } }
.lt-card3d.flip { animation: lt-card-win 0.7s ease 0.55s; }
@keyframes lt-card-win {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.1); }
}
.lt-card3d-face {
    position: absolute; inset: 0;
    border-radius: 12px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 6px; overflow: hidden;
}
.lt-card3d-face.lt-card3d-front { visibility: hidden; }   /* 初始藏正面(亮牌背) */
.lt-card3d-back {
    background: linear-gradient(150deg, #35548e, #24345f 60%, #1b2748);
    border: 2px solid #51709f;
    box-shadow: inset 0 0 0 4px rgba(255,255,255,0.06), 0 3px 10px rgba(31,74,111,0.25);
}
.lt-card3d-back span { font-size: 26px; color: #9db6dd; }
.lt-card3d.peek .lt-card3d-back { border-color: #f0a500; box-shadow: 0 0 14px rgba(240,165,0,0.5); }
.lt-card3d-front {
    background: #fff;
    border: 2px solid #d8dee5;
}
.lt-card3d-front.rare { border-color: #f0a500; background: #fffdf7; box-shadow: 0 0 16px rgba(240,165,0,0.35); }
.lt-card3d-front img { height: 46px; max-width: 88%; object-fit: contain; margin-bottom: 4px; }
.lt-card3d-ico { font-size: 24px; margin-bottom: 4px; }
.lt-card3d-name { font-size: 11px; color: #34495e; font-weight: 600; line-height: 1.35; word-break: break-all; }

/* ---- 老虎机 = 街机柜 (跑马灯顶牌 + 暗屏三列×3格 + 控制台大红钮) ---- */
.lt-slot.lt-cab {
    --lt-cell: clamp(46px, 13vw, 62px);
    position: relative;
    display: block;
    width: fit-content;
    margin: 12px auto 10px;
    padding: 10px 14px 12px;
    background:
        radial-gradient(120% 60% at 50% 0%, rgba(231,185,60,0.16), transparent 60%),
        linear-gradient(180deg, #3a2f18, #241a0a 55%, #1a1206);
    border-radius: 20px 20px 12px 12px;
    border: 3px solid #e7b93c;
    box-shadow: 0 10px 30px rgba(10,16,34,0.45), inset 0 0 46px rgba(0,0,0,0.55);
}
/* 顶牌跑马灯: 左右两排闪烁灯泡 */
.lt-cab-marquee {
    position: relative;
    text-align: center;
    padding: 6px 54px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: linear-gradient(180deg, #6b1d1d, #3a0f0f);
    border: 2px solid #e7b93c;
    box-shadow: inset 0 0 14px rgba(0,0,0,0.6);
}
.lt-cab-marquee b {
    font-size: 15px; letter-spacing: 1px;
    color: #ffd76e;
    text-shadow: 0 0 8px rgba(255,190,60,0.85), 0 1px 0 #000;
}
.lt-cab-marquee::before, .lt-cab-marquee::after {
    content: ''; position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 12px;
    background-image: radial-gradient(circle, #ffe9a8 2.6px, rgba(255,214,110,0.25) 3.6px, transparent 4.4px);
    background-size: 14px 12px;
    animation: lt-cab-blink 1s steps(2, jump-none) infinite;
}
.lt-cab-marquee::before { left: 5px; }
.lt-cab-marquee::after { right: 5px; animation-delay: .5s; }
@keyframes lt-cab-blink { 0% { opacity: 1; } 100% { opacity: .28; } }
/* 屏幕: 内凹暗屏 + 边框 */
.lt-cab-screen {
    background: linear-gradient(180deg, #0a0f1d, #101830);
    border-radius: 10px;
    border: 2px solid #5a3f14;
    padding: 12px 12px 14px;
    box-shadow: inset 0 0 26px rgba(0,0,0,0.8), inset 0 2px 6px rgba(0,0,0,0.7);
}
.lt-cab-reels { position: relative; display: flex; gap: 10px; justify-content: center; }
.lt-cab-panel {
    margin-top: 10px;
    padding: 9px 10px 6px;
    text-align: center;
    background: linear-gradient(180deg, #2b2009, #3a2a10);
    border-radius: 8px 8px 12px 12px;
    border: 2px solid #5a3f14;
    box-shadow: inset 0 2px 0 rgba(255,214,110,0.18), inset 0 -8px 14px rgba(0,0,0,0.5);
}
/* 控制台大红钮 → 已改为右侧拉杆(见 .lt-cab-lever); 保留旧类兼容 */
.lt-slot .lt-cab-btn {
    font-size: 16px; font-weight: 800; letter-spacing: 1px;
    padding: 10px 40px;
    border-radius: 999px;
    color: #fff;
    background: radial-gradient(circle at 50% 30%, #ff9b76, #e03131 62%, #a11212);
    border: 3px solid #7a1414;
    text-shadow: 0 1px 2px rgba(0,0,0,0.7);
    box-shadow: 0 5px 0 #7a1414, 0 9px 16px rgba(0,0,0,0.5), inset 0 2px 3px rgba(255,255,255,0.45);
    transition: transform .06s ease, box-shadow .06s ease;
}
/* ★ 经典拉杆: 机台右侧竖轨 + 红球把手, 点击压下、开奖结束弹回 */
.lt-cab-lever {
    position: absolute;
    right: -46px; top: 30%;
    width: 46px; height: 190px;
    padding: 0; border: 0; background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.lt-cab-lever .lt-cab-lever-rail {
    position: absolute; left: 50%; transform: translateX(-50%);
    top: 56px; width: 12px; height: 118px;
    background: linear-gradient(90deg, #101418, #3a4148 45%, #14181c);
    border-radius: 6px;
    box-shadow: inset 0 0 6px #000, 0 2px 6px rgba(0,0,0,0.5);
    border: 1px solid #000;
}
.lt-cab-lever .lt-cab-lever-arm {
    position: absolute; left: 50%; transform: translateX(-50%);
    top: 8px; width: 8px; height: 62px;
    background: linear-gradient(90deg, #565f69, #c3ccd6 45%, #4a525c);
    border-radius: 4px;
    transform-origin: bottom center;
    transition: transform .2s cubic-bezier(.35,1.6,.5,1);
}
.lt-cab-lever .lt-cab-lever-knob {
    position: absolute; left: 50%; top: -20px; transform: translateX(-50%);
    width: 26px; height: 26px; border-radius: 50%;
    background: radial-gradient(circle at 36% 30%, #ff9b76, #e03131 55%, #8e0f0f);
    box-shadow: 0 3px 7px rgba(0,0,0,0.55), inset 0 2px 3px rgba(255,255,255,0.5);
    border: 2px solid #6d0d0d;
}
.lt-cab-lever .lt-cab-lever-tag {
    position: absolute; left: 50%; transform: translateX(-50%);
    bottom: 2px; width: 84px;
    font-size: 10px; line-height: 1.25; text-align: center;
    color: #ffd76e; text-shadow: 0 1px 0 #000;
}
.lt-cab-lever .lt-cab-lever-tag b { font-size: 11px; }
.lt-cab-lever .lt-cab-lever-arm { top: 8px; }
.lt-cab-lever.pulled .lt-cab-lever-arm { transform: translateX(-50%) translateY(66px) rotate(3deg); transition-duration: .12s; }
.lt-cab-lever:not(:disabled):hover .lt-cab-lever-knob { filter: brightness(1.15); }
.lt-cab-lever:disabled { cursor: not-allowed; }
.lt-cab-lever:disabled .lt-cab-lever-knob { filter: grayscale(0.8) brightness(0.8); }
.lt-cab-lever:disabled .lt-cab-lever-arm { filter: brightness(0.75); }
@media (max-width: 720px) {
    .lt-cab-lever { right: -30px; }
}
@media (max-width: 420px) {
    .lt-cab-lever { right: -22px; }
    .lt-cab-lever .lt-cab-lever-tag { display: none; }
}
.lt-cab-coin { margin-top: 7px; font: 10px/1.4 Consolas, monospace; letter-spacing: 2px; color: #c9a06a; text-transform: uppercase; }
/* 卷轴窗 */
.lt-slot-reel {
    width: min(96px, 24vw); height: calc(var(--lt-cell) * 3);
    background: linear-gradient(180deg, #22304f, #16203400 22%, #16203400 78%, #162034);
    background-color: #162034;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 10px 16px rgba(0,0,0,0.45), inset 0 -10px 16px rgba(0,0,0,0.45);
}
/* 图鉴渲染图 = 黑底全息图: 全站(抽奖页)统一 screen 混合, 黑底融入背景、物品发光; 穿戴图(照片)不受影响 */
img[src*="/item_preview/"] { mix-blend-mode: screen; }
/* 物件图鉴式暗底图砖: 黑底全息渲染图配深色砖才好看(白底会糊成一片) */
img.lt-pr-img, .lt-cell .lt-cell-img, .lt-box-inside img, .lt-card3d img {
    background: radial-gradient(circle at 50% 40%, #2a3a63, #131b31 80%);
}
.lt-slot-strip { will-change: transform; }
.lt-slot-face {
    height: var(--lt-cell);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; padding: 0 4px;
    box-sizing: border-box;
    border-bottom: 1px dashed rgba(255,255,255,0.08);
}
.lt-slot-face img { height: calc(var(--lt-cell) * 0.62); max-width: 86%; object-fit: contain; display: block; border-radius: 6px; }
.lt-slot-face .lt-slot-face-ico { display: block; font-size: calc(var(--lt-cell) * 0.44); line-height: 1.1; }
.lt-slot-face i { font-style: normal; display: block; font-size: 10px; color: #9fb2cc; line-height: 1.1; }
/* 中线(派彩行)高亮 */
.lt-slot-payline {
    position: absolute; left: 0; right: 0;
    top: calc(50% - var(--lt-cell) / 2); height: var(--lt-cell);
    border-top: 2px solid #f0a500; border-bottom: 2px solid #f0a500;
    box-shadow: 0 0 10px rgba(240,165,0,0.5);
    border-radius: 4px;
    pointer-events: none;
}
.lt-slot-reel.spin .lt-slot-strip { filter: blur(1.2px); opacity: 0.9; }
.lt-slot-reel.stopped { border: 2px solid #f0a500; animation: lt-reel-pop 0.4s ease; }
.lt-slot-reel.stopped .lt-slot-strip { filter: none; opacity: 1; }
@keyframes lt-reel-pop { 0% { transform: scale(1); } 45% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* ---- 神秘宝箱 ---- */
.lt-boxes {
    display: grid;
    grid-template-columns: repeat(3, minmax(84px, 128px));
    gap: 10px;
    justify-content: center;
    margin: 10px auto 6px;
}
.lt-box { position: relative; aspect-ratio: 1/1.05; cursor: default; }
.lt-box-lid, .lt-box-inside {
    position: absolute; inset: 0;
    border-radius: 14px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 6px; overflow: hidden;
}
.lt-box-lid {
    background: linear-gradient(160deg, #ffd76e, #e7a520 70%);
    border: 2px solid #ffe9a8;
    font-size: 34px;
    box-shadow: 0 4px 14px rgba(217,119,6,0.3);
    transition: transform 0.45s cubic-bezier(0.5, -0.3, 0.6, 1.4), opacity 0.35s;
    z-index: 2;
}
.lt-box.shake { animation: lt-box-shake 0.16s linear infinite; }
@keyframes lt-box-shake {
    0%, 100% { transform: rotate(-2.4deg); }
    50% { transform: rotate(2.4deg); }
}
.lt-box.open .lt-box-lid { transform: translateY(-72%) rotate(-16deg); opacity: 0; pointer-events: none; }
.lt-box-inside {
    background: #fff;
    border: 2px solid #d8dee5;
}
.lt-box.open .lt-box-inside { border-color: #f0a500; box-shadow: 0 0 18px rgba(240,165,0,0.4); animation: lt-reel-pop 0.5s ease; }
.lt-box-inside img { height: 44px; max-width: 86%; object-fit: contain; margin-bottom: 4px; }
.lt-box-ico { font-size: 26px; margin-bottom: 4px; }
.lt-box-name { font-size: 11px; color: #34495e; font-weight: 600; line-height: 1.35; word-break: break-all; }

/* ---- 热血梦幻之星 (自动) ---- */
.lt-race-join { text-align: center; padding: 10px 0 4px; }
.lt-race-avatars { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 12px 0; }
.lt-race-av {
    padding: 6px; border: 2px solid #e2e9f0; border-radius: 12px; cursor: pointer; background: #fff;
    display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: #7b8894;
    transition: border-color .12s, transform .12s;
}
.lt-race-av canvas { width: 64px; height: 64px; image-rendering: pixelated; }
.lt-race-av:hover { transform: translateY(-2px); }
.lt-race-av.on { border-color: #d9483a; box-shadow: 0 0 0 3px rgba(217,72,58,.15); }
.lt-race-colors { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 10px 0 14px; }
.lt-race-col { width: 26px; height: 26px; border-radius: 50%; cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1px #d8dee5; }
.lt-race-col.on { box-shadow: 0 0 0 3px rgba(217,72,58,.4); }
/* 关卡地图条: 6 段彩色关卡 + 像素道具 (flex 比例=关卡长度) */
.ltc-map { display: flex; gap: 4px; margin: 10px 0; }
.ltc-map-seg {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 6px 2px 4px; border-radius: 9px; font-size: 11px; color: #44506a; font-weight: 600;
    min-width: 0; overflow: hidden; white-space: nowrap;
}
.ltc-map-seg canvas { width: 32px; height: 32px; image-rendering: pixelated; }
.ltc-seg-0 { background: #22304f; color: #9db8e8; }
.ltc-seg-1 { background: #1b2a4a; color: #67e8ff; }
.ltc-seg-2 { background: #2a2340; color: #b9a8e8; }
.ltc-seg-3 { background: #1e3040; color: #8fd8c8; }
.ltc-seg-4 { background: #2c2a3a; color: #ffb84d; }
.ltc-seg-5 { background: #16263c; color: #9df1ff; }
/* 报名界面 */
.ltc-join { text-align: center; }
.ltc-countdown { font-size: 15px; color: #34495e; margin-bottom: 4px; }
.ltc-countdown b { color: #c87f0a; font-family: Consolas, monospace; font-size: 18px; }
.ltc-tip { font-size: 12.5px; color: #7b8894; margin: 8px 0; line-height: 1.7; }
.ltc-roster { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0 4px; }
.ltc-roster-item {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    background: #f7fafc; border: 2px solid #eef2f6; border-radius: 10px; padding: 4px 8px 2px;
    font-size: 11px; color: #44506a;
}
.ltc-roster-item.me { border-color: #2f6fa8; background: #eef6fd; }
.ltc-roster-item canvas { width: 32px; height: 32px; image-rendering: pixelated; }
/* 同场景卷轴赛道: 所有选手同一条横向世界, 镜头跟随 */
.ltc-status { font-size: 13px; color: #34495e; margin: 8px 2px 6px; }
.ltc-scene {
    position: relative; overflow: hidden;
    height: 380px; border-radius: 14px;
    background: #0b1020;
    border: 1px solid #24304c;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, .5);
}
.ltc-world { position: absolute; left: 0; top: 0; bottom: 0; will-change: transform; }
.ltc-zone { position: absolute; top: 0; bottom: 0; overflow: hidden; }
.ltc-zone-bg {
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 100%; width: 100%; object-fit: cover;
    image-rendering: pixelated; opacity: .92;
}
.ltc-zone-name {
    position: absolute; top: 10px; left: 12px; z-index: 3;
    font-size: 13px; font-weight: 700; color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,.85), 0 0 2px #000;
    letter-spacing: 2px;
}
.ltc-zone canvas.ltc-prop {
    position: absolute; bottom: 96px; left: 46%;
    width: 48px; height: 48px; image-rendering: pixelated; z-index: 2;
    filter: drop-shadow(0 3px 4px rgba(0,0,0,.55));
}
/* 起点终点线 */
.ltc-finishline {
    position: absolute; top: 40px; bottom: 0; width: 14px; z-index: 2;
    background: repeating-linear-gradient(0deg, #fff 0 10px, #1d2029 10px 20px);
    border-left: 3px solid #ffd76e; border-right: 3px solid #ffd76e;
    opacity: .95;
}
/* 选手 (同场景, 各占一条高度层) */
.ltc-hero { position: absolute; z-index: 5; width: 64px; transition: none; }
.ltc-hero canvas { width: 64px; height: 64px; image-rendering: pixelated; display: block; }
.ltc-hero::after {             /* 接地阴影: 跳跃时缩小变淡 */
    content: ''; position: absolute; left: 50%; bottom: -2px; width: 44px; height: 8px;
    transform: translateX(-50%); border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0,0,0,.42) 0%, rgba(0,0,0,.18) 55%, transparent 75%);
    transition: transform .12s, opacity .12s; pointer-events: none;
}
.ltc-hero.air::after { transform: translateX(-50%) scale(.55); opacity: .5; }
.ltc-hero-name {
    position: absolute; top: -17px; left: 50%; transform: translateX(-50%);
    font-size: 10px; color: #fff; font-weight: 700; white-space: nowrap;
    background: rgba(12,16,28,.78); border: 1px solid rgba(255,255,255,.35);
    border-radius: 3px; padding: 0 5px; line-height: 15px;
}
.ltc-hero.me .ltc-hero-name { color: #ffd76e; border-color: #ffd76e; }
.ltc-hero.lead .ltc-hero-name { color: #ffe9a8; border-color: #ffb020; }
.ltc-hero.lead .ltc-hero-name::before { content: '★'; color: #ffb020; margin-right: 2px; font-size: 9px; }
.ltc-hero-pos {
    position: absolute; top: -17px; left: calc(100% + 2px);
    font-size: 9px; color: #ffe9a8; font-weight: 700; white-space: nowrap;
    background: rgba(12,16,28,.78); border-radius: 3px; padding: 0 4px; line-height: 15px;
    font-family: Consolas, monospace;
}
.ltc-ai { font-style: normal; font-size: 9px; color: #cdd6e4; border: 1px solid rgba(255,255,255,.35); border-radius: 3px; padding: 0 2px; margin-left: 2px; }
.ltc-hero.me { z-index: 7; }
/* 飘字 (挂在选手上) */
.ltc-float {
    position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
    font-size: 11.5px; font-weight: 800; color: #0a1224; white-space: nowrap; pointer-events: none;
    background: linear-gradient(180deg, #9df1ff, #67e8ff); border: 1px solid #e8fbff; border-radius: 4px; padding: 1px 8px; letter-spacing: 1px;
    animation: ltc-float-up 1.5s ease-out forwards;
}
/* 关卡切换横幅 */
.ltc-stage-swap {
    position: absolute; top: 0; left: 0; right: 0; z-index: 9;
    display: flex; align-items: center; gap: 10px;
    padding: 8px 14px; pointer-events: none;
    opacity: 0; transform: translateY(-100%);
    transition: opacity .35s, transform .35s;
}
.ltc-stage-swap.show { opacity: 1; transform: translateY(0); }
.ltc-stage-swap img {
    width: 132px; height: 44px; object-fit: cover; border-radius: 8px;
    border: 2px solid rgba(255,215,110,.75); image-rendering: pixelated;
    box-shadow: 0 4px 14px rgba(0,0,0,.6);
}
.ltc-stage-swap span {
    font-size: 18px; font-weight: 800; color: #fff; letter-spacing: 3px;
    text-shadow: 0 2px 8px rgba(0,0,0,.9), 0 0 20px rgba(103,232,255,.5);
}
/* 小地图 (全场鸟瞰: 分段彩条 = 6 关, 圆点 = 选手) */
.ltc-minimap {
    position: absolute; left: 12px; right: 12px; top: 6px; height: 12px; z-index: 9;
    background: rgba(10, 14, 26, .55); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
    overflow: hidden;
}
.ltc-mini {
    position: absolute; top: 1px; width: 10px; height: 10px; margin-left: -5px;
    border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .55);
    transition: left .3s linear;
}
.ltc-mini.me { background: #ffd76e; width: 13px; height: 13px; top: 0; z-index: 2; box-shadow: 0 0 0 2px #fff, 0 0 8px rgba(255, 255, 255, .8); }
.ltc-mini-zone { position: absolute; top: 0; bottom: 0; opacity: .4; }
.ltc-mini-zone.z0 { background: #6f9fd8; } .ltc-mini-zone.z1 { background: #67e8ff; }
.ltc-mini-zone.z2 { background: #b9a8e8; } .ltc-mini-zone.z3 { background: #8fd8c8; }
.ltc-mini-zone.z4 { background: #ffb84d; } .ltc-mini-zone.z5 { background: #ffd76e; }
.ltc-mini-zone.cur { opacity: .95; }
@keyframes ltc-float-up { 0% { opacity: 0; top: 10px; } 15% { opacity: 1; } 100% { opacity: 0; top: -22px; } }
/* 实况播报 */
.ltc-feed {
    margin: 10px 0 2px; max-height: 220px; overflow-y: auto;
    background: #fffaf0; border: 1px solid #e3c98f; border-radius: 10px;
    padding: 8px 12px 6px; font-size: 12.5px; color: #6b4e0e; line-height: 1.9;
}
.ltc-feed:not(:empty)::before {
    content: '📣 实况播报'; display: block; font-size: 10.5px; font-weight: 800;
    color: #b07a1e; letter-spacing: 2px; margin-bottom: 2px;
}
.ltc-feed:empty { display: none; }
/* 结算: 领奖台 + 成绩表 */
.ltc-podium { display: flex; gap: 10px; justify-content: center; align-items: flex-end; margin: 10px 0 4px; }
.ltc-pod-card {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    background: #fff; border: 2px solid #eef2f6; border-radius: 12px; padding: 8px 12px 6px; min-width: 104px;
}
.ltc-pod-card.p1 { border-color: #f0c34e; box-shadow: 0 4px 14px rgba(240,195,78,.35); transform: translateY(-6px); }
.ltc-pod-card.p2 { border-color: #c8d3e0; }
.ltc-pod-card.p3 { border-color: #d8b48a; }
.ltc-pod-card.me { outline: 2px solid rgba(47,111,168,.35); outline-offset: 1px; }
.ltc-pod-medal { font-size: 22px; line-height: 1; }
.ltc-pod-cv { width: 64px; height: 64px; image-rendering: pixelated; }
.ltc-pod-name { font-size: 12.5px; color: #34495e; font-weight: 700; }
.ltc-pod-time { font-size: 11px; color: #97a3b0; font-family: Consolas, monospace; }
.ltc-mystatus { text-align: center; font-size: 14px; color: #34495e; margin: 8px 0 4px; }
.ltc-mystatus b { color: #c87f0a; font-size: 17px; }
.ltc-results { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.ltc-res-row {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid #eef2f6; border-radius: 8px; padding: 3px 12px; font-size: 13px; color: #34495e;
}
.ltc-res-row.me { background: #eef6fd; border-color: #bcd8f2; }
.ltc-res-row b { min-width: 36px; color: #7b8894; }
.ltc-res-row canvas { width: 32px; height: 32px; image-rendering: pixelated; }
.ltc-res-row span { flex: 1; }
.ltc-res-row i { font-style: normal; color: #97a3b0; font-family: Consolas, monospace; }
.lt-step-float {
    position: absolute; transform: translate(-50%, -100%);
    color: #c87f0a; font-weight: bold; font-size: 15px; pointer-events: none;
    animation: lt-float-up 0.9s ease forwards; text-shadow: 0 1px 2px #fff;
}
@keyframes lt-float-up { from { opacity: 1; } to { opacity: 0; margin-top: -26px; } }

/* 槽位布局实时预览 (奖品编辑弹窗) */
.lta-slot-preview { background: #f7fafc; border: 1px solid #e2e9f0; border-radius: 9px; padding: 10px; }
.lta-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 320px; margin: 0 auto; }
.lta-mini-cell {
    min-height: 52px; border: 2px solid #d8dee5; border-radius: 8px; background: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 11px; color: #34495e; padding: 4px; text-align: center; word-break: break-all; line-height: 1.3;
}
.lta-mini-cell img { height: 26px; max-width: 80%; object-fit: contain; margin-bottom: 2px; }
.lta-mini-cell.cur { border-color: #f0a500; box-shadow: 0 0 0 2px rgba(240,165,0,.3); background: #fffdf7; font-weight: bold; }
.lta-mini-cell.off { opacity: .4; }
.lta-mini-cell.empty { color: #b8c4d0; }
.lta-mini-center { background: linear-gradient(180deg,#ffd76e,#ffb830); color: #7a4c00; font-weight: bold; }
.lta-mini-list { display: flex; flex-direction: column; gap: 4px; }
.lta-mini-row {
    display: flex; align-items: center; gap: 10px; padding: 5px 10px; background: #fff;
    border: 2px solid #e2e9f0; border-radius: 7px; font-size: 12px; color: #34495e;
}
.lta-mini-row b { color: #7b8894; min-width: 66px; font-size: 11px; }
.lta-mini-row span { flex: 1; word-break: break-all; }
.lta-mini-row small { color: #97a3b0; }
.lta-mini-row.cur { border-color: #f0a500; box-shadow: 0 0 0 2px rgba(240,165,0,.3); background: #fffdf7; }
.lta-mini-row.off { opacity: .4; }
.lt-prize-card .lt-pr-rule { font-size: 10px; background: #e8f1f8; color: #2f6fa8; border-radius: 4px; padding: 1px 5px; margin-left: 4px; }

/* 奖品池 & 说明 */
.lt-section { margin-top: 18px; }
.lt-section h4 {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: bold;
    color: #7b8894;
    letter-spacing: 2px;
    display: flex; align-items: center; gap: 8px;
}
.lt-section h4::after { content: ""; flex: 1; height: 1px; background: #edf1f5; }
.lt-prizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.lt-prize-card {
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.04);
}
.lt-pr-img {
    height: 44px;
    width: 44px;
    object-fit: contain;
    flex: none;
    background: #f7fafc;
    border-radius: 8px;
}
.lt-pr-ico { display: flex; align-items: center; justify-content: center; font-size: 22px; background: #f7fafc; }
.lt-prize-card .lt-pr-name { color: #34495e; word-break: break-all; font-weight: 600; }
/* ================= 开箱寻宝 (case, CSGO式横向滚动) ================= */
.lt-case { max-width: 720px; margin: 0 auto; }
.lt-case-screen {
    position: relative; overflow: hidden;
    border-radius: 10px; margin: 10px 0;
    background:
        radial-gradient(ellipse at 50% 120%, rgba(200,127,10,.10), transparent 60%),
        linear-gradient(180deg, #141b31, #0d1425 70%, #101a30);
    box-shadow: inset 0 0 26px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05);
    height: 148px;
}
.lt-case-strip-wrap { position: absolute; inset: 0; }
.lt-case-strip { position: absolute; top: 10px; left: 0; display: flex; will-change: transform; }
.lt-case-cell {
    width: 96px; height: 118px; flex: none; margin-right: 8px;
    background: linear-gradient(180deg, #1c2742, #131b31);
    border: 1px solid rgba(255,255,255,.07); border-radius: 8px;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    padding-top: 8px; position: relative; overflow: hidden;
}
.lt-case-cell .lt-case-bar { position: absolute; top: 0; left: 0; right: 0; height: 5px; }
.lt-case-cell img { height: 62px; max-width: 84px; object-fit: contain; margin-top: 10px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.5)); }
.lt-case-cell .lt-case-ico { font-size: 40px; margin-top: 16px; }
.lt-case-cell i {
    font-style: normal; font-size: 11px; color: #c8d4e6; margin-top: 8px;
    max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 稀有度光晕: 底光 + 边缘色随档位 */
.lt-case-cell.r-gray { box-shadow: inset 0 -34px 34px -28px rgba(130,143,158,.5); }
.lt-case-cell.r-blue { box-shadow: inset 0 -34px 34px -28px rgba(45,111,175,.85); border-color: rgba(125,182,255,.35); }
.lt-case-cell.r-pink { box-shadow: inset 0 -34px 34px -28px rgba(214,51,132,.8); border-color: rgba(255,158,207,.4); }
.lt-case-cell.r-purple { box-shadow: inset 0 -34px 34px -28px rgba(125,60,152,.9); border-color: rgba(201,160,255,.45); }
.lt-case-cell.r-gold { box-shadow: inset 0 -34px 34px -28px rgba(200,127,10,.95); border-color: rgba(255,223,142,.55); }
/* 中线金标(上下箭头 + 竖线) */
.lt-case-marker { position: absolute; left: 50%; top: 0; bottom: 0; width: 0; pointer-events: none; z-index: 3; }
.lt-case-marker::before {
    content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 2px;
    background: linear-gradient(180deg, #ffe9ad, #c87f0a); box-shadow: 0 0 8px rgba(255,214,120,.8);
}
.lt-case-marker i, .lt-case-marker b {
    position: absolute; left: -7px; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent;
}
.lt-case-marker i { top: 0; border-top: 9px solid #ffdf8e; }
.lt-case-marker b { bottom: 0; border-bottom: 9px solid #ffdf8e; }
/* ================= 开箱揭晓弹窗 ================= */
.lt-reveal { text-align: center; padding: 6px 4px 2px; }
.lt-reveal-tier {
    display: inline-block; font-weight: 800; font-size: 17px; letter-spacing: 1px;
    padding: 5px 18px; border: 2px solid; border-radius: 999px; margin-bottom: 12px;
    background: rgba(13, 20, 37, .6);
}
.lt-reveal-img {
    width: 190px; height: 150px; margin: 0 auto; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 50% 42%, #26335c, #101830 78%);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: inset 0 -46px 46px -34px rgba(200,127,10,.35);
}
.lt-reveal-img img { max-width: 168px; max-height: 132px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.55)); }
.lt-reveal-ico { font-size: 68px; }
.lt-reveal-name { font-size: 22px; font-weight: 800; margin-top: 12px; word-break: break-all; }
.lt-reveal-pop .swal2-title { color: #ffe9ad; }
.lt-reveal-pop .swal2-confirm {
    background: linear-gradient(180deg, #e8a33d, #c87f0a) !important;
    border-radius: 9px; font-weight: 700;
}
/* 金档揭晓: 整弹窗呼吸金光
   ★★ 必须带 :not(.swal2-hide) —— 本选择器(=0,4,0)压过 SweetAlert2 自带的
   .swal2-popup.swal2-hide{animation:swal2-hide .15s}(=0,2,0) ⇒ 关窗动画被无限呼吸光顶掉,
   弹窗永远停在屏幕上、容器(全屏 fixed/z1060)吃掉整页点击 = "中奖弹窗关不掉"。 */
.lt-reveal-pop:has(.lt-reveal.r-gold):not(.swal2-hide) { animation: lt-reveal-goldpulse 1.6s ease-in-out infinite; }
@keyframes lt-reveal-goldpulse { 0%,100% { box-shadow: 0 0 0 rgba(255,214,120,0); } 50% { box-shadow: 0 0 38px rgba(255,214,120,.55); } }

/* 手机端: 开箱条缩小一档 (605 以下两格半可见, 保证滚动观感) */
@media (max-width: 640px) {
    .lt-case-screen { height: 118px; }
    .lt-case-cell { width: 72px; height: 92px; margin-right: 6px; padding-top: 6px; }
    .lt-case-cell img { height: 46px; margin-top: 6px; }
    .lt-case-cell .lt-case-ico { font-size: 30px; margin-top: 8px; }
    .lt-case-cell i { font-size: 10px; max-width: 66px; margin-top: 5px; }
    .lt-reveal-img { width: 160px; height: 126px; }
    .lt-reveal-name { font-size: 19px; }
}

/* 滚动中: 两侧渐隐遮罩 + 轻微速度感 */
.lt-case-screen.spinning::before, .lt-case-screen.spinning::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.lt-case-screen.spinning::before { left: 0; background: linear-gradient(90deg, #0d1425, transparent); }
.lt-case-screen.spinning::after { right: 0; background: linear-gradient(270deg, #0d1425, transparent); }
/* 落定: 中奖格爆发光柱 + 弹跳 */
.lt-case-cell.landed { animation: lt-case-pop .55s cubic-bezier(.2,1.6,.4,1); }
.lt-case-cell.landed::after {
    content: ""; position: absolute; inset: -2px; border-radius: 9px; z-index: -1;
    background: radial-gradient(ellipse at 50% 60%, rgba(255,224,150,.55), transparent 70%);
    animation: lt-case-flash .8s ease-out forwards;
}
@keyframes lt-case-pop { 0% { transform: scale(1); } 45% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes lt-case-flash { 0% { opacity: 1; } 100% { opacity: 0; } }
.lt-case .lt-play-btn { display: block; margin: 12px auto 0; }

/* ================= 全屏开箱舞台 (点击开箱 → 滚动条搬到悬浮幕上, CS 味的大场景) =================
   幕覆盖整屏(毛玻璃暗底+顶部紫气+底部金光), 舞台里放被搬进来的 .lt-case-screen 并放大尺寸;
   揭晓弹窗(Swal, z~1060)会浮在幕之上。手机端收窄成贴边全宽、格子按屏宽缩放。 */
.lt-case-veil {
    position: fixed; inset: 0; z-index: 1050;
    display: flex; align-items: center; justify-content: center;
    padding: max(14px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom));
    background:
        radial-gradient(ellipse at 50% 30%, rgba(120,90,255,.12), transparent 60%),
        radial-gradient(ellipse at 50% 118%, rgba(200,127,10,.18), transparent 62%),
        rgba(5, 8, 16, .88);
    backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
    opacity: 0; transition: opacity .3s ease;
    box-sizing: border-box;
}
.lt-case-veil.in { opacity: 1; }
.lt-case-veil-stage { width: min(1180px, 96vw); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lt-case-veil-slot { width: 100%; align-self: stretch; }   /* 不写会因 flex 列中"百分比宽度对 auto 宽度"循环解析成 0 ⇒ 幕里滚动条被裁成不可见 */
.lt-case-veil-head { color: #ffd98a; font-size: 16px; font-weight: 800; letter-spacing: 4px; text-shadow: 0 2px 14px rgba(0,0,0,.7), 0 0 26px rgba(255,200,90,.25); }
.lt-case-veil-tip { color: #7f93b2; font-size: 12px; letter-spacing: 1px; }
/* 被搬进来的屏幕: 放大成主角 */
.lt-case-veil .lt-case-screen {
    width: 100%; margin: 0; height: 244px; border-radius: 18px;
    box-shadow:
        0 34px 90px -24px rgba(0,0,0,.8),
        0 0 0 1px rgba(255,255,255,.07),
        0 0 70px rgba(120,90,255,.14),
        inset 0 0 70px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);
}
.lt-case-veil .lt-case-strip { top: 18px; }
.lt-case-veil .lt-case-cell { width: 176px; height: 208px; margin-right: 12px; border-radius: 12px; padding-top: 14px; }
.lt-case-veil .lt-case-cell img { height: 114px; max-width: 158px; margin-top: 16px; }
.lt-case-veil .lt-case-cell .lt-case-ico { font-size: 64px; margin-top: 26px; }
.lt-case-veil .lt-case-cell i { font-size: 13.5px; margin-top: 12px; max-width: 164px; }
.lt-case-veil .lt-case-cell .lt-case-bar { height: 6px; }
/* 中线金标在幕上更亮更粗 */
.lt-case-veil .lt-case-marker::before { width: 3px; left: -1.5px; box-shadow: 0 0 14px rgba(255,214,120,.95), 0 0 44px rgba(255,190,80,.6); }
.lt-case-veil .lt-case-marker i, .lt-case-veil .lt-case-marker b { left: -10px; border-left-width: 9px; border-right-width: 9px; }
.lt-case-veil .lt-case-marker i { border-top-width: 13px; }
.lt-case-veil .lt-case-marker b { border-bottom-width: 13px; }
/* 落定: 中奖格亮起并轻微呼吸(在原有弹跳/爆闪之上) */
.lt-case-veil .lt-case-cell.landed { animation: lt-case-pop .55s cubic-bezier(.2,1.6,.4,1), lt-veil-win 1.1s ease-in-out .6s infinite alternate; }
@keyframes lt-veil-win { from { filter: brightness(1); } to { filter: brightness(1.3) saturate(1.15); } }
/* 滚动中的两侧渐隐要跟着放大 */
.lt-case-veil .lt-case-screen.spinning::before, .lt-case-veil .lt-case-screen.spinning::after { width: 160px; }
@media (max-width: 640px) {
    .lt-case-veil { padding-left: 0; padding-right: 0; }
    .lt-case-veil-stage { width: 100vw; gap: 12px; }
    .lt-case-veil-head { font-size: 13px; letter-spacing: 2px; }
    .lt-case-veil .lt-case-screen { height: 168px; border-radius: 0; }
    .lt-case-veil .lt-case-strip { top: 11px; }
    .lt-case-veil .lt-case-cell { width: 112px; height: 140px; margin-right: 8px; padding-top: 10px; border-radius: 9px; }
    .lt-case-veil .lt-case-cell img { height: 70px; max-width: 98px; margin-top: 10px; }
    .lt-case-veil .lt-case-cell .lt-case-ico { font-size: 40px; margin-top: 16px; }
    .lt-case-veil .lt-case-cell i { font-size: 11px; margin-top: 8px; max-width: 104px; }
    .lt-case-veil .lt-case-screen.spinning::before, .lt-case-veil .lt-case-screen.spinning::after { width: 64px; }
}

/* 自动抽取栏 (指定次数 / 抽光碎片) */
.lt-auto {
    margin: 14px auto 0; max-width: 620px;
    background: #fffdf7; border: 1px solid #f2dfc0; border-radius: 12px;
    padding: 12px 16px; font-size: 13px; color: #34495e;
}
.lt-auto-head { font-weight: 700; color: #c87f0a; margin-bottom: 8px; }
.lt-auto-ctrl, .lt-auto-run { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lt-auto-ctrl label { color: #7b8894; }
.lt-auto-ctrl input {
    width: 68px; padding: 5px 8px; border: 1px solid #e3d9c2; border-radius: 7px;
    font-size: 13px; text-align: center; color: #34495e; background: #fff;
}
.lt-auto button {
    padding: 6px 14px; border-radius: 8px; border: 0; cursor: pointer; font-size: 13px; font-weight: 600;
}
.lt-auto-go { background: linear-gradient(180deg, #e8a33d, #c87f0a); color: #fff; }
.lt-auto-all { background: #2f6fa8; color: #fff; }
.lt-auto-stop { background: #c0392b; color: #fff; padding: 5px 12px; }
.lt-auto button:hover { filter: brightness(1.06); }
.lt-auto button:disabled { opacity: .5; cursor: default; }
.lt-auto-run { color: #34495e; }
.lt-auto-run b.up { color: #1e9e5a; }
.lt-auto-run b.down { color: #c0392b; }
.lt-auto-stat { margin-top: 8px; color: #7b5a10; }
.lt-auto-tip { margin-top: 8px; color: #97a3b0; font-size: 12px; }
/* 物品名 = 点开全站物品详情弹窗(ItemPopup 委托 data-item-code), 下划虚线作可点提示 */
.lt-item-link { cursor: pointer; border-bottom: 1px dashed #c9d4e0; }
.lt-item-link:hover { color: #2b6f9e; border-bottom-color: #2b6f9e; }
.lt-prize-card.rare { border-color: #f2dfc0; background: #fffdf7; }
.lt-prize-card.rare .lt-pr-name { color: #c87f0a; }
.lt-prize-card .lt-pr-meta { margin-top: 4px; color: #97a3b0; font-size: 12px; font-family: Consolas, monospace; }
.lt-prize-card .off { color: #b8c4d0; }

/* ---------- GM 管理页 ---------- */
.lta-wrap { max-width: 1180px; margin: 0 auto 40px; }
.lta-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 16px 0; }
.lta-stat {
    background: #fff;
    border-radius: 10px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    padding: 14px 16px;
}
.lta-stat .v { font-size: 24px; font-weight: bold; color: #1c2b3e; }
.lta-stat .t { color: #7b8894; font-size: 13px; }
.lta-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.lta-tab {
    padding: 8px 20px;
    border: 1px solid #cdd6e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}
.lta-tab.active { background: #2456a6; border-color: #2456a6; color: #fff; }
.lta-panel { display: none; }
.lta-panel.active { display: block; }
.lta-table { width: 100%; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.07); font-size: 13px; }
.lta-table th { background: #f0f4fa; color: #44506a; padding: 10px 8px; text-align: left; white-space: nowrap; }
.lta-table td { padding: 9px 8px; border-top: 1px solid #eef2f8; vertical-align: middle; }
.lta-btn {
    display: inline-block;
    padding: 5px 12px;
    margin: 2px 2px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    color: #fff;
    background: #5b7bb4;
}
.lta-btn.blue { background: #2f6fd0; }
.lta-btn.green { background: #2e9e5b; }
.lta-btn.orange { background: #e08a1e; }
.lta-btn.red { background: #d64545; }
.lta-btn.gray { background: #7b8894; }
.lta-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; color: #fff; }
.lta-badge.run { background: #2e9e5b; }
.lta-badge.up { background: #e08a1e; }
.lta-badge.draft { background: #95a1b1; }
.lta-badge.end { background: #6a7280; }
.lta-modal-bg {
    display: none;
    position: fixed; inset: 0;
    background: rgba(10, 15, 35, 0.6);
    z-index: 3000;
    align-items: flex-start; justify-content: center;
    overflow-y: auto;
    padding: 40px 12px;
}
.lta-modal-bg.open { display: flex; }
.lta-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 640px;
    padding: 22px 24px 18px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}
.lta-modal h3 { margin: 0 0 16px; font-size: 18px; color: #1c2b3e; }
.lta-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.lta-form .full { grid-column: 1 / -1; }
.lta-form label { display: block; font-size: 13px; color: #44506a; margin-bottom: 4px; }
.lta-form input, .lta-form select, .lta-form textarea {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #cdd6e0;
    border-radius: 7px;
    font-size: 13px;
    box-sizing: border-box;
}
.lta-form textarea { resize: vertical; min-height: 60px; }
.lta-form .inline { display: flex; align-items: center; gap: 6px; }
.lta-form .inline input[type="checkbox"] { width: auto; }
.lta-modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.lta-item-pick { position: relative; }
.lta-item-drop {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #cdd6e0;
    border-radius: 0 0 8px 8px;
    z-index: 50;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.lta-item-row {
    display: flex; justify-content: space-between; gap: 8px;
    padding: 7px 10px;
    cursor: pointer;
    font-size: 13px;
}
.lta-item-row:hover { background: #eef4ff; }
.lta-item-row code { color: #8a94a8; font-size: 12px; }
.lta-searchbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.lta-searchbar input, .lta-searchbar select { padding: 7px 10px; border: 1px solid #cdd6e0; border-radius: 7px; font-size: 13px; }
.lta-tip { font-size: 12px; color: #95a1b1; margin-top: 6px; line-height: 1.7; }
.lta-pager { display: flex; gap: 6px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.lta-thumbs { height: 34px; width: 34px; object-fit: contain; vertical-align: middle; }
.lta-preview-box { text-align: center; margin-top: 6px; min-height: 50px; }
.lta-preview-box img { height: 88px; max-width: 140px; object-fit: contain; }

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
    .lt-head h2 { font-size: 20px; letter-spacing: 4px; }
    .lt-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 96px; gap: 7px; }
    .lt-cell .lt-cell-name { font-size: 11px; }
    .lt-cell .lt-cell-icon { font-size: 17px; }
    .lt-cell .lt-cell-img { height: 34px; }
    .lta-form { grid-template-columns: 1fr; }
    .lta-table { font-size: 12px; }
    /* 热血梦幻之星: 手机上压一档场景高度 (精灵保持整数像素不缩放) */
    .ltc-scene { height: 320px; }
    .ltc-track { height: 112px; }
}

/* ---- 幸运大逃杀 ---- */
.lt-roy-status { text-align: center; font-size: 14px; color: #34495e; margin: 6px 0; }
.lt-roy-status b { color: #c87f0a; font-size: 17px; }
.lt-roy-mystatus { text-align: center; font-size: 15px; font-weight: bold; margin-bottom: 10px; }
.lt-roy-mystatus.alive { color: #1e8449; }
.lt-roy-mystatus.dead { color: #97a3b0; }
.lt-roy-mystatus.ranked { color: #c87f0a; }
.lt-roy-roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 10px 0; }
.lt-roy-card {
    background: #fff; border: 2px solid #e2e9f0; border-radius: 10px;
    display: flex; flex-direction: column; align-items: center; padding: 8px 4px 6px; gap: 3px;
    transition: filter .3s, opacity .3s;
}
.lt-roy-card.me { border-color: #2f6fa8; box-shadow: 0 0 0 2px rgba(47,111,168,.18); }
.lt-roy-card.dead { filter: grayscale(1); opacity: .45; }
.lt-roy-card canvas { width: 32px; height: 32px; image-rendering: pixelated; }
.lt-roy-name { font-size: 11px; color: #34495e; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-roy-tag { font-size: 10px; padding: 1px 6px; border-radius: 4px; background: #f0f3f6; color: #97a3b0; }
.lt-roy-tag.ok { background: #e6f4f1; color: #1d7a6f; }
.lt-roy-tag.rk { background: #fff4e5; color: #c87f0a; font-weight: bold; }
.lt-gold-txt { color: #c87f0a; font-family: Consolas, monospace; }

/* ---- 协力 Boss 战 ---- */
.lt-boss-zone { text-align: center; padding: 6px 0; }
.lt-boss-sprite { font-size: 84px; line-height: 1.2; display: inline-block; transition: filter .4s, transform .4s; }
.lt-boss-sprite.hit { animation: lt-boss-shake .11s linear 3; }
.lt-boss-sprite.dead { filter: grayscale(1); opacity: .5; transform: rotate(90deg); }
@keyframes lt-boss-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.lt-boss-hpbar { position: relative; height: 30px; background: #f0f4f8; border: 2px solid #d8dee5; border-radius: 999px; overflow: hidden; max-width: 480px; margin: 8px auto; }
.lt-boss-hpfill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg,#2e9e5b,#63c78a); transition: width .5s ease; }
.lt-boss-hpbar span { position: relative; z-index: 2; font-size: 13px; font-weight: bold; color: #2c3e50; line-height: 27px; text-shadow: 0 1px 2px #fff; }
.lt-boss-status { font-size: 14px; color: #34495e; margin-bottom: 4px; }
.lt-boss-me { font-size: 13px; color: #7b8894; margin-bottom: 8px; }
.lt-boss-me b { color: #c87f0a; }
.lt-boss-board { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.lt-boss-row { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid #eef2f6; border-radius: 8px; padding: 5px 12px; font-size: 13px; color: #34495e; }
.lt-boss-row.me { border-color: #2f6fa8; background: #e8f1f8; }
.lt-boss-row b { min-width: 34px; color: #7b8894; }
.lt-boss-row b.top { color: #c87f0a; }
.lt-boss-row span { flex: 1; }
.lt-boss-row i { font-style: normal; color: #97a3b0; font-family: Consolas, monospace; }

/* ---- 应援 & 终点摄影 ---- */
.ltc-cheer-btn {
    float: right; border: none; border-radius: 999px; cursor: pointer;
    background: linear-gradient(180deg, #37c6e8, #1f9dc4); color: #04101c;
    font-size: 12.5px; font-weight: 800; padding: 4px 14px;
    box-shadow: 0 2px 10px rgba(55,198,232,.45);
    transition: transform .08s;
}
.ltc-cheer-btn:active { transform: scale(0.92); }
.ltc-cheer {
    position: absolute; z-index: 20; pointer-events: none;
    animation: ltc-cheer-pop 1.5s ease-out forwards;
    box-shadow: 0 0 6px rgba(103, 232, 255, .8);
}
@keyframes ltc-cheer-pop {
    0% { opacity: 0; transform: translateY(6px) scale(.6); }
    18% { opacity: 1; transform: translateY(-6px) scale(1.15); }
    100% { opacity: 0; transform: translateY(-64px) scale(1); }
}
.ltc-scene.photo { animation: ltc-photo-flash .5s ease-out 4; }
@keyframes ltc-photo-flash {
    0%, 100% { filter: none; }
    50% { filter: brightness(1.35) saturate(1.2); }
}

/* ---- 热血进行曲式: 障碍物 / GO / 震屏 / 加速拖尾 / 跳跃 ---- */
.ltc-ob { position: absolute; bottom: 6px; z-index: 3; display: none; }
.ltc-ob.on { display: block; }
.ltc-thug { display: none; }
.ltc-thug.on { display: block; }
.ltc-ob canvas { image-rendering: pixelated; display: block; }
.ob-laser canvas { width: 64px; height: 64px; filter: drop-shadow(0 3px 5px rgba(0,0,0,.5)); }
.ob-laser.hit { filter: grayscale(1) brightness(.5); transition: filter .2s; }
.ob-drone canvas { width: 64px; height: 64px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); }
.ob-drone.hit { animation: ltc-drone-blow .9s ease-in forwards; }
@keyframes ltc-tyre-roll {
    0% { transform: translateX(0) rotate(0); }
    100% { transform: translate(-140px, -70px) rotate(-380deg); opacity: .25; }
}
.ob-sandbag { bottom: auto; top: -30px; transform-origin: top center; }
.ob-arm canvas { width: 64px; height: 64px; filter: drop-shadow(0 3px 5px rgba(0,0,0,.45)); }
.ob-arm.swing0 { animation: ltc-swing 1.7s ease-in-out infinite alternate; }
.ob-arm.swing1 { animation: ltc-swing 1.7s .6s ease-in-out infinite alternate-reverse; }
@keyframes ltc-swing { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }
.ob-charge canvas { width: 72px; height: 72px; filter: drop-shadow(0 4px 7px rgba(0,0,0,.5)); }
/* 起跑 GO 横幅 */
.ltc-go {
    position: absolute; left: 50%; top: 42%; z-index: 15;
    transform: translate(-50%, -50%) scale(2.4);
    font-size: 46px; font-weight: 900; color: #ffd76e; letter-spacing: 10px;
    text-shadow: 0 0 18px rgba(255,183,49,.95), 0 0 44px rgba(255,150,20,.55), 0 4px 0 #7a2f14;
    opacity: 0; pointer-events: none;
    transition: opacity .2s;
}
.ltc-go.show { opacity: 1; animation: ltc-go-pulse .5s ease-out; }
@keyframes ltc-go-pulse { 0% { transform: translate(-50%, -50%) scale(3.4); } 100% { transform: translate(-50%, -50%) scale(2.4); } }
/* 震屏 */
.ltc-scene.shake { animation: ltc-shake .34s linear; }
@keyframes ltc-shake {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(-7px, 4px); } 40% { transform: translate(6px, -5px); }
    60% { transform: translate(-5px, -3px); } 80% { transform: translate(4px, 4px); }
}
/* 爆星 */
.ltc-boom {
    position: absolute; top: 26px; left: 50%; transform: translateX(-50%);
    font-size: 38px; pointer-events: none; z-index: 30;
    animation: ltc-boom-pop .65s ease-out forwards;
    text-shadow: 0 2px 8px rgba(0,0,0,.7);
}
@keyframes ltc-boom-pop {
    0% { opacity: 0; transform: translateX(-50%) scale(.4); }
    30% { opacity: 1; transform: translateX(-50%) scale(1.3); }
    100% { opacity: 0; transform: translateX(-50%) scale(1.6); }
}
/* 加速拖尾 */
.ltc-hero.dash::before {
    content: ''; position: absolute; right: 100%; top: 30%; bottom: 18%;
    width: 58px; pointer-events: none;
    background: repeating-linear-gradient(90deg, rgba(255, 215, 110, .9) 0 3px, transparent 3px 9px);
    mask-image: linear-gradient(90deg, transparent, #000);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000);
    animation: ltc-dash-blink .18s linear infinite;
}
@keyframes ltc-dash-blink { 50% { opacity: .35; } }
/* 跳跃时影子缩小 */
.ltc-hero.air canvas { filter: drop-shadow(0 18px 6px rgba(0, 0, 0, .35)); }

/* ---- 切换式小场景: 满屏场景图 + 入口/出口门 + 百叶窗过场 ---- */
.ltc-scene-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; image-rendering: pixelated;
    filter: brightness(.92);
}
.ltc-scene-name {
    position: absolute; top: 26px; left: 14px; z-index: 8;
    font-size: 15px; font-weight: 800; color: #fff; letter-spacing: 3px;
    text-shadow: 0 2px 6px rgba(0,0,0,.9), 0 0 2px #000;
    background: rgba(13, 19, 36, .55); border-left: 4px solid #ffd76e;
    padding: 4px 12px; border-radius: 0 8px 8px 0;
}
.ltc-gate-in, .ltc-gate-out { position: absolute; bottom: 6px; z-index: 4; text-align: center; }
.ltc-gate-in { left: 8px; }
.ltc-gate-out { right: 8px; }
.ltc-gate-in canvas, .ltc-gate-out canvas { width: 84px; height: 84px; image-rendering: pixelated; filter: drop-shadow(0 4px 8px rgba(0,0,0,.55)); }
.ltc-gate-in span, .ltc-gate-out span {
    display: block; font-size: 11px; font-weight: 700; color: #fff; letter-spacing: 4px;
    text-shadow: 0 1px 4px #000; margin-top: 2px;
}
.ltc-gate-out span { color: #ffd76e; }
/* 百叶窗过场 */
.ltc-wipe {
    position: absolute; inset: 0; z-index: 24; pointer-events: none; opacity: 0;
    background: repeating-linear-gradient(90deg, #141a2c 0 12.5%, #1f2740 12.5% 25%);
}
.ltc-wipe.run { animation: ltc-wipe-run .54s linear; }
@keyframes ltc-wipe-run {
    0% { opacity: 0; transform: scaleY(0); } 45% { opacity: 1; transform: scaleY(1); }
    55% { opacity: 1; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(0); }
}
/* 小地图: 当前场景高亮 (分段色见上方 z0..z5) */

/* ---- 热血进行曲跑道: FC 暖土跑道(红白缘石+沙土面+白虚线车道), 配原作实机背景 ---- */
.ltc-scene-bg { filter: brightness(.98) saturate(1.12) contrast(1.05); }
.ltc-track {
    position: absolute; left: 0; right: 0; bottom: 0; height: 136px; z-index: 2;
    background:
        linear-gradient(180deg, #b07040 0%, #9a5c34 40%, #834a28 100%);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, .4), inset 0 10px 22px rgba(0, 0, 0, .28);
}
.ltc-track::before { /* 顶部红白缘石 (curb) */
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 9px;
    background: repeating-linear-gradient(90deg, #d94b3a 0 26px, #f2ede4 26px 52px);
    border-bottom: 2px solid rgba(0, 0, 0, .35);
}
.ltc-track::after { /* 沙土颗粒 + 白虚线车道 */
    content: ''; position: absolute; inset: 0;
    background:
        repeating-linear-gradient(90deg, transparent 0 128px, rgba(255, 250, 238, .55) 128px 168px),
        repeating-linear-gradient(105deg, transparent 0 22px, rgba(0, 0, 0, .07) 22px 24px),
        repeating-linear-gradient(80deg, transparent 0 31px, rgba(255, 240, 210, .08) 31px 33px);
    background-position: 0 60px, 0 0, 0 0;
}
/* 拦路对手: 站在跑道上晃, 被打飞后旋转飞出 */
.ltc-thug { position: absolute; bottom: 8px; z-index: 4; width: 64px; }
.ltc-thug canvas { width: 64px; height: 64px; image-rendering: pixelated; display: block; }
.ltc-thug .ltc-thug-nm { color: #ff9d9d;
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    font-size: 10px; color: #ffd3d3; font-weight: 700; white-space: nowrap;
    text-shadow: 0 1px 3px #000;
}
.ltc-thug.idle canvas { animation: ltc-thug-bob .7s ease-in-out infinite alternate; }
@keyframes ltc-thug-bob { from { transform: translateY(0); } to { transform: translateY(-6px); } }
.ltc-thug.hit { animation: ltc-thug-fly .95s cubic-bezier(.2,.6,.6,1) forwards; z-index: 9; }
@keyframes ltc-thug-fly {
    0% { transform: translate(0, 0) rotate(0); filter: brightness(2.5); }
    40% { filter: brightness(1.5); }
    100% { transform: translate(320px, -250px) rotate(-720deg); opacity: 0; }
}
/* 出拳特效 */
.ltc-punch {
    position: absolute; top: 30px; left: 70%; transform: translateX(-50%);
    font-size: 34px; pointer-events: none; z-index: 30;
    animation: ltc-punch-pop .5s ease-out forwards;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .6);
}
@keyframes ltc-punch-pop {
    0% { opacity: 0; transform: translateX(-50%) scale(.4) rotate(-30deg); }
    40% { opacity: 1; transform: translateX(-50%) scale(1.25) rotate(8deg); }
    100% { opacity: 0; transform: translateX(-50%) scale(1.4) rotate(0); }
}


/* ---- 科幻光子特效(像素风) + 场景冷调 ---- */
.ltc-scene::before {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(10, 12, 20, .22) 0%, rgba(10, 12, 20, 0) 30%, rgba(8, 10, 16, .30) 100%);
}
.ltc-fx-burst { position: absolute; top: 46px; left: 50%; width: 0; height: 0; z-index: 30; pointer-events: none; }
.ltc-fx-burst::before {
    content: ''; position: absolute; left: -14px; top: -14px; width: 28px; height: 28px;
    background: radial-gradient(circle, #ffffff 0%, rgba(103,232,255,.9) 40%, transparent 70%);
    animation: ltc-burst-core .5s ease-out forwards;
}
.ltc-fx-pixel { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; animation: ltc-burst-fly .6s ease-out forwards; }
@keyframes ltc-burst-core { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes ltc-burst-fly {
    0% { transform: translate(0, 0); opacity: 1; }
    100% { transform: translate(var(--dx, 30px), var(--dy, -30px)); opacity: 0; }
}
.ltc-fx-beam {
    position: absolute; top: 52px; left: 70%; width: 90px; height: 10px; z-index: 29;
    background: linear-gradient(90deg, rgba(255,255,255,.95), rgba(103,232,255,.8) 40%, transparent);
    clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 60%);
    animation: ltc-beam-flash .26s ease-out forwards;
    pointer-events: none;
}
@keyframes ltc-beam-flash { 0% { opacity: 0; transform: scaleX(.3); } 30% { opacity: 1; } 100% { opacity: 0; transform: scaleX(1.15); } }
@keyframes ltc-drone-blow {
    0% { transform: translate(0,0) rotate(0); }
    100% { transform: translate(-140px, -70px) rotate(-380deg); opacity: .25; }
}

/* ---- 房间弯道: 地面箭头 + 出口门方向变位 + 垂直段层级 ---- */
.ltc-arr { position: absolute; bottom: 34px; z-index: 3; width: 44px; height: 44px; display: none; pointer-events: none; }
.ltc-arr.on { display: block; }
.ltc-arr .rot { width: 100%; height: 100%; }
.ltc-arr canvas { width: 44px; height: 44px; image-rendering: pixelated; opacity: .92; filter: drop-shadow(0 2px 3px rgba(0,0,0,.55)); animation: ltc-arr-blink 1s steps(2) infinite; }
@keyframes ltc-arr-blink { 50% { opacity: .45; } }
/* 出口门三个方向 */
.ltc-gate-out.to-right { right: 8px; bottom: 6px; left: auto; top: auto; }
.ltc-gate-out.to-up { left: 50%; margin-left: -42px; top: 4px; bottom: auto; right: auto; }
.ltc-gate-out.to-left { left: 8px; bottom: 60px; right: auto; top: auto; }
/* 垂直爬升段: 选手走房间内部, 抬高层级 */
.ltc-hero.vert { z-index: 6; }

/* ---- 检查点墙 (原作「X番チェック」: 按通过顺序记分) ---- */
.ltc-ckpt { position: absolute; bottom: 10px; z-index: 3; display: none; transform: translateX(-50%); }
.ltc-ckpt.on { display: block; }
.ltc-ckpt canvas { width: 64px; height: 64px; image-rendering: pixelated; filter: drop-shadow(0 3px 5px rgba(0,0,0,.5)); }
.ltc-ckpt.flash canvas { animation: ltc-ckpt-flash .5s ease-out 2; }
@keyframes ltc-ckpt-flash { 50% { filter: brightness(1.6) drop-shadow(0 0 10px rgba(255,215,110,.8)); } }

/* ---- 砂坑 (原作障碍: 跳过去, 踩坑=陷一下) ---- */
.ob-pit canvas { width: 64px; height: 64px; image-rendering: pixelated; filter: none; }
.ob-pit { bottom: 0; }

/* ================= 集换卡掉落表现 (重做: 图鉴同款小卡, 弹窗与右下角提示共用) ================= */
/* ---- 翻面容器: 掉落先以卡背亮相(集换卡开包仪式感), ~1s 后翻到正面停住 ----
   ★翻面 = 2D 收拢-换面-展开, 完全不依赖 rotateY/backface(部分浏览器 3D 合成不可靠 ⇒ 会渲成镜像/空白);
   帧: 0-30% 卡背亮相 → 30-47% 收拢到侧立 → 47% 换面 → 47-64% 展开成正面 → 停住 */
.lt-dc-flip {
    position: relative; width: 96px; flex: none; aspect-ratio: 3/4.3;
    animation: lt-flip-sq 1.5s cubic-bezier(.35,1.1,.4,1) 1.05s both;
}
@keyframes lt-flip-sq {
    0%, 30%   { transform: scaleX(1); }
    47%       { transform: scaleX(.02); }
    64%, 100% { transform: scaleX(1); }
}
.lt-dc-flip .lt-dc { animation: lt-flip-front 1.5s linear 1.05s both; }
@keyframes lt-flip-front { 0%, 46% { visibility: hidden; } 47%, 100% { visibility: visible; } }
.lt-dc-flip .lt-dc-back { animation: lt-flip-back 1.5s linear 1.05s both; }
@keyframes lt-flip-back { 0%, 46% { visibility: visible; } 47%, 100% { visibility: hidden; } }
/* 卡背: 卡册卷一同款语言(翡翠斜纹+鎏金 logo 浮雕+底部铭条) */
.lt-dc-back {
    position: absolute; inset: 0; border-radius: 10px; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    border: 2px solid #487a58;
    background:
        radial-gradient(circle at 50% 36%, rgba(130,220,160,.16), transparent 56%),
        repeating-linear-gradient(45deg, #123020 0 12px, #0e2618 12px 24px);
    box-shadow: 0 5px 14px rgba(0,0,0,.5), inset 0 0 0 2px rgba(10,26,18,.9);
}
.lt-dcb-frame { position: absolute; inset: 6px; border: 1.5px solid rgba(150,220,175,.5); border-radius: 7px;
    box-shadow: inset 0 0 12px rgba(120,220,160,.12); }
.lt-dcb-ico { font-size: 11px; line-height: 1; color: #a8d8b8; text-shadow: 0 1px 0 #1d4a2e, 0 2px 4px rgba(0,0,0,.6); }
.lt-dcb-ico::before { content: "❦"; }
.lt-dcb-logo { width: 78%; filter:
    drop-shadow(0 1px 0 rgba(122,92,30,.95)) drop-shadow(0 2px 0 rgba(109,81,25,.9))
    drop-shadow(0 4px 8px rgba(0,0,0,.65))
    sepia(1) saturate(2.4) hue-rotate(-8deg) brightness(1.02); }
.lt-dcb-bottom {
    position: absolute; bottom: 7px; left: 8px; right: 8px; text-align: center;
    color: #6f9a7c; font-size: 6.5px; font-weight: 600; letter-spacing: .9px; text-indent: .9px; white-space: nowrap;
    text-shadow: 0 1px 0 rgba(0,0,0,.6);
}
/* ---- 卡包撕开封口(toast): 顶部封条撕飞 → 包装两半外翻消失 → 中缝徽记裂开 → 卡翻面 ---- */
.lt-pack { position: relative; width: 96px; flex: none; aspect-ratio: 3/4.3; transform-style: preserve-3d; }
.lt-pack .lt-dc-flip { position: relative; z-index: 1; }
.lt-pack-seal {                     /* 顶部封口条, 底边锯齿; 撕开=向上翻飞 */
    position: absolute; top: -3px; left: 2px; right: 2px; height: 16px; z-index: 4; pointer-events: none;
    background: linear-gradient(180deg, #1a3a2a, #123020);
    box-shadow: inset 0 0 0 1.5px rgba(72,122,88,.9), inset 0 1px 0 rgba(168,216,184,.35);
    border-radius: 7px 7px 0 0;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 93% 100%, 86% 50%, 79% 100%, 72% 50%, 65% 100%, 58% 50%, 51% 100%, 44% 50%, 37% 100%, 30% 50%, 23% 100%, 16% 50%, 9% 100%, 2% 50%, 0 100%);
    animation: lt-pack-seal .42s cubic-bezier(.5,.1,.8,.5) .55s both;
}
@keyframes lt-pack-seal { to { transform: translateY(-30px) rotateX(64deg); opacity: 0; } }
.lt-pack-half {                      /* 包装两半 = 卡背同款翡翠斜纹各显一半, 中缝锯齿; 撕开=向外翻卷 */
    position: absolute; top: 0; bottom: 0; width: 51%; z-index: 3; pointer-events: none;
    background:
        radial-gradient(circle at 50% 36%, rgba(130,220,160,.16), transparent 56%),
        repeating-linear-gradient(45deg, #123020 0 12px, #0e2618 12px 24px);
    background-size: 200% 100%;
    box-shadow: inset 0 0 0 2px rgba(10,26,18,.9), inset 0 0 0 3px rgba(72,122,88,.55);
    transform-origin: left center;
    animation: lt-pack-tearL .6s cubic-bezier(.55,.05,.7,.4) .92s both;
}
.lt-pack-half.L {
    left: 0; border-radius: 10px 0 0 10px; background-position: left;
    clip-path: polygon(0 0, 100% 0, 100% 12%, 95% 25%, 100% 37%, 95% 50%, 100% 62%, 95% 75%, 100% 87%, 95% 100%, 0 100%);
}
.lt-pack-half.R {
    right: 0; border-radius: 0 10px 10px 0; background-position: right; transform-origin: right center;
    animation-name: lt-pack-tearR;
    clip-path: polygon(100% 0, 0 0, 0 12%, 5% 25%, 0 37%, 5% 50%, 0 62%, 5% 75%, 0 87%, 5% 100%, 100% 100%);
}
@keyframes lt-pack-tearL { to { transform: translateX(-15px) rotateY(-115deg); opacity: 0; } }
@keyframes lt-pack-tearR { to { transform: translateX(15px) rotateY(115deg); opacity: 0; } }
.lt-pack-crest {                     /* 中缝圆徽(❦), 撕开时从中间裂开 */
    position: absolute; left: 50%; top: 42%; z-index: 5; width: 34px; height: 34px; margin: -17px 0 0 -17px;
    border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle at 42% 34%, #2e5a42, #16341f 70%);
    box-shadow: 0 2px 8px rgba(0,0,0,.55), inset 0 0 0 1.5px rgba(111,174,136,.85), inset 0 1px 0 rgba(200,240,215,.25);
    animation: lt-pack-crest .32s ease .95s both;
}
.lt-pack-crest::before {
    content: "❦"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #a8d8b8; font-size: 17px; text-shadow: 0 1px 0 #1d4a2e, 0 2px 5px rgba(0,0,0,.6);
}
@keyframes lt-pack-crest { to { transform: scaleX(.06); opacity: 0; } }
/* ---- 掉落卡本体: 金属框 + 稀有度镀边 + 艺术窗 + 铭牌 + 星级 + 宝石 (与卡册 .tc-mini 同语言) ---- */
.lt-dc {
    position: relative; width: 96px; flex: none; aspect-ratio: 3/4.3; border-radius: 10px; overflow: hidden;
    border: 2px solid color-mix(in srgb, var(--rc, #4a90d9) 42%, #ccd4e2);
    background: linear-gradient(165deg, #26334f 0%, #131c30 60%, #0d1425);
    box-shadow: 0 5px 14px rgba(0,0,0,.5), inset 0 0 0 2px rgba(16,24,40,.9), inset 0 -26px 24px -20px var(--rg, rgba(74,144,217,.55));
}
.lt-dc.r2 { box-shadow: 0 5px 14px rgba(0,0,0,.5), 0 0 0 1px rgba(142,91,217,.3), inset 0 0 0 2px rgba(16,24,40,.9), inset 0 -26px 24px -20px var(--rg); }
.lt-dc.r3 { box-shadow: 0 5px 14px rgba(0,0,0,.5), 0 0 0 1px rgba(224,79,158,.4), 0 0 15px rgba(224,79,158,.3), inset 0 0 0 2px rgba(16,24,40,.9), inset 0 -26px 24px -20px var(--rg); }
.lt-dc.r4 { box-shadow: 0 5px 14px rgba(0,0,0,.5), 0 0 0 1.5px rgba(232,163,61,.65), 0 0 19px rgba(232,163,61,.38), inset 0 0 0 2px rgba(16,24,40,.9), inset 0 -26px 24px -20px var(--rg); }
.lt-dc-art {
    position: absolute; left: 8px; right: 8px; top: 8%; height: 52%;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(ellipse at 50% 68%, rgba(120,150,220,.12), transparent 65%);
    border-radius: 5px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), inset 0 -10px 16px -10px rgba(0,0,0,.55);
}
.lt-dc-art img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 4px 7px rgba(0,0,0,.55)); }
.lt-dc-nm {
    position: absolute; left: 5px; right: 5px; bottom: 22px; text-align: center;
    padding: 4px 3px 3px; border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, rgba(190,200,216,.24), rgba(60,70,92,.32));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
    color: #f3f6ff; font-size: 11px; font-weight: 700; letter-spacing: .4px;
    text-shadow: 0 1px 0 rgba(0,0,0,.7);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lt-dc-st { position: absolute; left: 0; right: 0; bottom: 9px; text-align: center; color: var(--rc); font-size: 8.5px; letter-spacing: 1.6px; text-shadow: 0 0 5px var(--rg); }
.lt-dc-gem {
    position: absolute; top: 6px; right: 6px; width: 21px; height: 21px;
    transform: rotate(45deg); border-radius: 4px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--rc) 135%, #fff) 0%, var(--rc) 55%, color-mix(in srgb, var(--rc) 60%, #000) 100%);
    box-shadow: 0 2px 5px rgba(0,0,0,.5), inset 0 1px 1px rgba(255,255,255,.5);
    display: flex; align-items: center; justify-content: center; z-index: 4;
}
.lt-dc-gem i { transform: rotate(-45deg); font-style: normal; color: #fff; font-weight: 800; font-size: 9px; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.lt-dc-ico { font-size: 32px; }
.lt-dc::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background: linear-gradient(118deg, transparent 30%, rgba(255,255,255,.09) 42%, transparent 60%); }
.lt-dc.r3::after, .lt-dc.r4::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
    background: linear-gradient(115deg, transparent 32%, rgba(255,220,130,.26) 46%, rgba(255,255,255,.16) 52%, transparent 68%);
    background-size: 240% 100%; animation: lt-dc-sheen 3s ease-in-out infinite; }
@keyframes lt-dc-sheen { 0% { background-position: 130% 0; } 60%,100% { background-position: -60% 0; } }
.lt-dc-ring { position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none; z-index: 5;
    background: conic-gradient(from var(--lt-fa, 0deg), #ff5f9e, #ffc46b, #7dffb0, #5fd0ff, #a78bfa, #ff7ad9, #ff5f9e);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
    animation: lt-fa-spin 4s linear infinite;
}
@keyframes lt-fa-spin { to { --lt-fa: 360deg; } }
@keyframes lt-ct-spark { 0%,100% { opacity: 0; transform: scale(.4) rotate(0); } 45% { opacity: 1; transform: scale(1.15) rotate(20deg); } 70% { opacity: .5; } }
.lt-dc-spark { position: absolute; color: #ffe9a8; pointer-events: none; z-index: 3; text-shadow: 0 0 8px rgba(255,220,120,.9); animation: lt-ct-spark 2.2s ease-in-out infinite; }
.lt-dc-spark.s1 { left: -7px; top: 13%; font-size: 15px; }
.lt-dc-spark.s2 { right: -8px; top: 46%; font-size: 11px; animation-delay: .7s; }
.lt-dc-spark.s3 { left: -5px; bottom: 15%; font-size: 12px; animation-delay: 1.3s; }

/* ---- 弹窗展示块: 卡 + 右侧说明 (perspective 供卡背翻面用) ---- */
.lt-dropblock {
    position: relative; margin: 12px auto 0; padding: 12px 16px; border-radius: 12px;
    display: flex; align-items: center; gap: 14px; text-align: left; max-width: 340px;
    perspective: 820px;
    background: linear-gradient(180deg, rgba(24,33,57,.95), rgba(13,20,37,.95));
    border: 1px solid color-mix(in srgb, var(--rc, #4a90d9) 42%, #2a3654);
    box-shadow: 0 6px 18px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
}
.lt-dropblock.hi { box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 22px var(--rg, rgba(74,144,217,.5)), inset 0 1px 0 rgba(255,255,255,.06); }
.lt-dropblock.secret { background: linear-gradient(180deg, rgba(40,30,74,.95), rgba(20,14,40,.95)); border-color: rgba(160,130,240,.5); }
.lt-dc-side { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.lt-dc-cap { font-size: 11px; color: #8fa2c4; letter-spacing: 1.5px; }
.lt-dc-name { font-size: 17px; letter-spacing: .5px; line-height: 1.3; }
.lt-dc-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.lt-dc-badges em { font-style: normal; font-size: 11px; border-radius: 5px; padding: 1px 7px; line-height: 1.7; }
.lt-dc-badges .b-r { background: color-mix(in srgb, var(--rc) 78%, #10182c); color: #fff; font-weight: 800; letter-spacing: .5px; }
.lt-dc-badges .b-new { background: linear-gradient(180deg,#ffd76e,#e8a33d); color: #4a3000; font-weight: 800; animation: lt-ct-newpulse 1.1s ease-in-out infinite; }
.lt-dc-badges .b-dup { background: rgba(255,255,255,.12); color: #aab8cc; }
.lt-dc-badges .b-pity { background: rgba(30,158,90,.24); color: #7ddf9f; }
.lt-dc-badges .b-foil { background: conic-gradient(from 210deg, #ff5f9e, #ffc46b, #6bffb0, #6bc8ff, #b06bff, #ff5f9e); color: #1b2440; font-weight: 800; }
.lt-dc-badges .b-secret { background: rgba(120,90,220,.32); color: #c9b3ff; }
.lt-dc-go { font-size: 12px; color: #6ea8d8; text-decoration: none; }
.lt-dc-go:hover { text-decoration: underline; }
@keyframes lt-ct-newpulse { 0%,100% { box-shadow: 0 0 0 rgba(255,200,90,0); } 50% { box-shadow: 0 0 10px rgba(255,200,90,.85); } }

/* ---- 右下角掉落提示: 卡单次翻入亮相 + 稀有度光柱 ---- */
.lt-card-toast {
    position: fixed; right: 18px; bottom: calc(18px + var(--lt-idx, 0) * 208px); z-index: 9500;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    text-decoration: none; perspective: 820px;
    transform: translateX(150%); opacity: 0;
    transition: transform .5s cubic-bezier(.2,1.35,.35,1), opacity .4s ease, bottom .35s ease;
}
.lt-card-toast.in { transform: translateX(0); opacity: 1; }
.lt-card-toast-inner { position: relative; animation: lt-toast-in .5s cubic-bezier(.2,1.15,.3,1) both; }
/* 入场只做缩放 —— 翻面交给卡背容器(两层 rotateY 叠加会互相打架) */
@keyframes lt-toast-in { from { transform: scale(.82); } to { transform: scale(1); } }
.lt-ct-beam {
    position: absolute; left: 50%; bottom: -10px; width: 150px; height: 190px; transform: translateX(-50%);
    pointer-events: none; z-index: 0;
    background: radial-gradient(ellipse 46% 58% at 50% 100%, var(--rg, rgba(74,144,217,.55)), transparent 72%);
    filter: blur(3px);
}
.lt-card-toast-cap {
    display: inline-flex; align-items: center; gap: 5px; max-width: 270px; white-space: nowrap;
    background: rgba(13,20,37,.94); color: #cfe0f5; font-size: 12px;
    border: 1px solid color-mix(in srgb, var(--rc, #4a90d9) 38%, transparent);
    border-radius: 999px; padding: 6px 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
.lt-card-toast-cap b, .lt-card-toast-cap em { font-style: normal; }
.lt-ct-nm { max-width: 118px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f2f6ff; }
.lt-ct-new { background: linear-gradient(180deg,#ffd76e,#e8a33d); color: #4a3000; font-size: 10.5px; font-weight: 800; border-radius: 5px; padding: 1px 6px; animation: lt-ct-newpulse 1.1s ease-in-out infinite; }
.lt-ct-dup { color: #8fa2c4; font-size: 11.5px; }
.lt-ct-pity { color: #7ddf9f; font-size: 11.5px; }
.lt-ct-go { color: #7f93b2; font-size: 11px; margin-left: 2px; }
.lt-card-toast.secret .lt-card-toast-cap { background: linear-gradient(180deg, rgba(74,48,140,.95), rgba(40,24,86,.95)); color: #e4d9ff; }
.lt-card-toast.ssr .lt-dc { animation: lt-ssr-pulse 2.4s ease-in-out infinite; }
@keyframes lt-ssr-pulse {
    0%,100% { box-shadow: 0 5px 14px rgba(0,0,0,.5), 0 0 0 1.5px rgba(232,163,61,.65), 0 0 19px rgba(232,163,61,.38), inset 0 0 0 2px rgba(16,24,40,.9), inset 0 -26px 24px -20px var(--rg); }
    50% { box-shadow: 0 5px 14px rgba(0,0,0,.5), 0 0 0 1.5px rgba(255,205,110,.9), 0 0 34px rgba(255,205,100,.62), inset 0 0 0 2px rgba(16,24,40,.9), inset 0 -26px 24px -20px var(--rg); }
}

/* ======================================================================
   开箱寻宝 升级层 (2026-10-03): 稀有度格面 / 宝箱仪式 / 落定爆发 / 揭晓光幅 / 连开
   —— 追加于文件末尾, 靠"后来居上"覆盖上方同名规则(不动老规则, 便于回退)
   ====================================================================== */
/* ---- 1. 格面稀有度着色 + 数值徽章 + 名字两行 ---- */
.lt-case-cell.r-gray   { --fx: 176,190,205; background: linear-gradient(180deg, #1b2334, #131b31 72%); }
.lt-case-cell.r-blue   { --fx: 125,182,255; background: linear-gradient(180deg, #1d3257, #131b31 72%); }
.lt-case-cell.r-pink   { --fx: 255,158,207; background: linear-gradient(180deg, #3d1f37, #131b31 72%); }
.lt-case-cell.r-purple { --fx: 201,160,255; background: linear-gradient(180deg, #33204d, #131b31 72%); }
.lt-case-cell.r-gold   { --fx: 255,223,142; background: linear-gradient(180deg, #4a3810, #221a06 76%, #131b31); border-color: rgba(255,223,142,.5);
    box-shadow: inset 0 0 20px rgba(255,214,120,.18), inset 0 -34px 34px -28px rgba(200,127,10,.95); }
.lt-case-cell i { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    white-space: normal; overflow: hidden; line-height: 1.25; max-height: 2.55em; word-break: normal; overflow-wrap: break-word; }
.lt-case-val { position: absolute; right: 4px; top: 9px; font-style: normal; font-size: 10px; font-weight: 800; color: #eaf4ff;
    background: rgba(9,14,27,.74); border: 1px solid rgba(125,182,255,.4); border-radius: 6px; padding: 0 4px; }
.lt-case-cell.r-gold .lt-case-val { color: #ffe9ad; border-color: rgba(255,223,142,.5); }

/* ---- 2. 开箱仪式: 宝箱抖动 → 白光爆开 ---- */
.lt-case-chest { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
    background: radial-gradient(circle at 50% 60%, rgba(16,23,42,.94), rgba(7,10,20,.99)); }
.lt-case-chest .lt-chest-box { font-size: 44px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.65)); animation: lt-chest-shake .32s ease-in-out infinite; }
.lt-case-chest b { color: #c9a06a; font-size: 11.5px; letter-spacing: 3px; margin-top: 2px; }
.lt-case-chest .lt-chest-light { position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, rgba(255,240,200,.72) 34%, transparent 70%); opacity: 0; }
@keyframes lt-chest-shake { 0%,100% { transform: rotate(-5deg) scale(1); } 50% { transform: rotate(5deg) scale(1.07); } }
.lt-case-chest.burst { animation: lt-chest-fade .42s ease-in forwards; }
.lt-case-chest.burst .lt-chest-box { animation: lt-chest-pop .42s ease-out forwards; }
.lt-case-chest.burst .lt-chest-light { animation: lt-chest-light .42s ease-out forwards; }
@keyframes lt-chest-fade { 0%,60% { opacity: 1; } 100% { opacity: 0; } }
@keyframes lt-chest-pop { 0% { transform: scale(1); } 55% { transform: scale(1.4); opacity: 1; } 100% { transform: scale(1.85); opacity: 0; } }
@keyframes lt-chest-light { 0% { opacity: 0; transform: scale(.5); } 35% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }

/* ---- 3. 落定爆发: 冲击波 + 爆闪 + (金/紫)光幅 + 震屏 + 星屑 ---- */
.lt-case-fx { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.lt-case-fx .fx-burst { position: absolute; inset: 0; opacity: 0;
    background: radial-gradient(circle at 50% 52%, rgba(var(--fx),.85), rgba(var(--fx),.2) 36%, transparent 64%);
    animation: lt-fx-burst .8s ease-out forwards; }
@keyframes lt-fx-burst { 0% { opacity: 0; transform: scale(.4); } 22% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }
.lt-case-fx.fx-big .fx-burst { background: radial-gradient(circle at 50% 52%, rgba(var(--fx),1), rgba(var(--fx),.32) 40%, transparent 68%); }
.lt-case-fx .fx-ring { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%;
    border: 3px solid rgba(var(--fx),.85); opacity: 0; animation: lt-fx-ring .95s cubic-bezier(.1,.8,.3,1) forwards; }
.lt-case-fx .fx-ring.r2 { animation-delay: .15s; border-width: 2px; }
@keyframes lt-fx-ring { 0% { opacity: .95; transform: scale(.3); } 100% { opacity: 0; transform: scale(5.6); } }
.lt-case-fx .fx-rays { position: absolute; inset: -70%; opacity: 0;
    background: repeating-conic-gradient(from 0deg, rgba(var(--fx),.5) 0 4deg, transparent 4deg 24deg);
    -webkit-mask: radial-gradient(circle, #000 20%, transparent 60%); mask: radial-gradient(circle, #000 20%, transparent 60%);
    animation: lt-fx-rays 1.15s ease-out forwards; }
@keyframes lt-fx-rays { 0% { opacity: 0; transform: scale(.6) rotate(0deg); } 28% { opacity: .95; } 100% { opacity: 0; transform: scale(1.06) rotate(30deg); } }
.lt-case.lt-shake { animation: lt-case-shake .55s cubic-bezier(.36,.07,.19,.97); }
@keyframes lt-case-shake { 0%,100% { transform: translate(0,0); } 12% { transform: translate(-5px,2px); } 26% { transform: translate(4px,-2px); }
    40% { transform: translate(-4px,-1px); } 55% { transform: translate(3px,2px); } 70% { transform: translate(-2px,-1px); } 85% { transform: translate(1px,1px); } }
.lt-case-spark { position: absolute; top: -12px; z-index: 5; color: #ffe9a8; pointer-events: none; font-style: normal;
    text-shadow: 0 0 9px rgba(255,220,120,.95); animation: lt-case-fall 1.7s ease-in forwards; }
@keyframes lt-case-fall { 0% { opacity: 0; transform: translateY(0) rotate(0); } 14% { opacity: 1; } 100% { opacity: 0; transform: translateY(160px) rotate(150deg); } }
/* 中奖格: 高亮描边(用格自己的 --fx 稀有度色) + 爆闪光斑; 原来 z-index:-1 会被格子底图盖住, 提到 4 并叠 screen */
.lt-case-cell.landed { z-index: 2; border-color: rgba(var(--fx),.75);
    box-shadow: 0 0 0 2px rgba(var(--fx),.6), 0 0 28px rgba(var(--fx),.5), inset 0 -34px 34px -28px rgba(var(--fx),.9); }
.lt-case-cell.landed::after { z-index: 4; mix-blend-mode: screen; inset: -2px; border-radius: 9px;
    background: radial-gradient(ellipse at 50% 58%, rgba(var(--fx),.6), transparent 72%); }
.lt-case-cell.landed img, .lt-case-cell.landed .lt-case-ico, .lt-case-cell.landed i, .lt-case-cell.landed .lt-case-val { position: relative; z-index: 5; }

/* ---- 4. 揭晓弹窗: 旋转光幅 + 浮空 + 星屑 + 掉率徽章 + 铭牌流光 ---- */
/* 光幅舞台: 只在这块裁剪区里转, 否则 340px 的光幅会把 Swal 撑出滚动条 */
.lt-reveal-stage { position: relative; height: 208px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lt-reveal-img { position: relative; box-shadow: inset 0 -46px 46px -34px rgba(var(--tcr,200,127,10),.45), 0 0 30px rgba(var(--tcr,200,127,10),.22); }
.lt-reveal-stage::before { content: ""; position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%; z-index: 0;
    background: repeating-conic-gradient(from 0deg, rgba(var(--tcr,200,127,10),.40) 0 5deg, transparent 5deg 26deg);
    -webkit-mask: radial-gradient(circle, #000 22%, transparent 60%); mask: radial-gradient(circle, #000 22%, transparent 60%);
    animation: lt-rays-spin 15s linear infinite; pointer-events: none; }
@keyframes lt-rays-spin { to { transform: rotate(360deg); } }
.lt-reveal.r-gray .lt-reveal-stage::before, .lt-reveal.r-blue .lt-reveal-stage::before { display: none; }
.lt-reveal-stage > .lt-reveal-img { z-index: 1; }
.lt-reveal-img img, .lt-reveal-ico { position: relative; z-index: 1; }
.lt-reveal-img img { animation: lt-reveal-float 2.8s ease-in-out infinite; }
@keyframes lt-reveal-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.lt-reveal-spark { position: absolute; bottom: 4px; z-index: 2; font-style: normal; font-size: 13px; color: #fff6d8; opacity: 0; pointer-events: none;
    text-shadow: 0 0 9px rgba(var(--tcr,255,223,142),.95); animation: lt-rv-spark 1.9s ease-out infinite; }
@keyframes lt-rv-spark { 0% { opacity: 0; transform: translateY(0) scale(.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-66px) scale(1.05) rotate(24deg); } }
.lt-reveal-tier { position: relative; overflow: hidden; }
.lt-reveal-tier::after { content: ""; position: absolute; top: 0; bottom: 0; width: 55%; left: -70%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent); animation: lt-tier-shine 2.8s ease-in-out infinite; }
@keyframes lt-tier-shine { 0% { left: -70%; } 60% { left: 125%; } 100% { left: 125%; } }
.lt-reveal-pct { font-size: 14px; opacity: .95; background: rgba(0,0,0,.3); border-radius: 999px; padding: 1px 10px; margin-left: 6px; white-space: nowrap; }
/* 紫档(物品/珍稀)呼吸紫光 —— 同样必须 :not(.swal2-hide), 否则关不掉弹窗(见上方金档注释) */
.lt-reveal-pop:has(.lt-reveal.r-purple):not(.swal2-hide) { animation: lt-reveal-purplepulse 2s ease-in-out infinite; }
@keyframes lt-reveal-purplepulse { 0%,100% { box-shadow: 0 0 0 rgba(201,160,255,0); } 50% { box-shadow: 0 0 30px rgba(201,160,255,.45); } }

/* ---- 5. 操作行: 连开按钮 + 快速开箱开关 ---- */
.lt-case-ops { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.lt-multi-btn { background: linear-gradient(180deg, #2c3c66, #1b2440); color: #dbe8ff; border: 1px solid #4a5f96; border-radius: 8px;
    padding: 7px 15px; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: filter .15s, transform .1s; }
.lt-multi-btn:hover:not(:disabled) { filter: brightness(1.2); }
.lt-multi-btn:active:not(:disabled) { transform: translateY(1px); }
.lt-multi-btn:disabled { opacity: .45; cursor: not-allowed; }
.lt-case-fast { display: inline-flex; align-items: center; gap: 5px; color: #6b7683; font-size: 12.5px; cursor: pointer; user-select: none; }
.lt-case-fast input { width: auto; cursor: pointer; }

/* ---- 6. 连开进度仪式(盖在长条上) ---- */
.lt-multi-live { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    background: radial-gradient(circle at 50% 45%, rgba(22,30,54,.9), rgba(9,13,24,.97)); opacity: 0; transition: opacity .28s; }
.lt-multi-live.in { opacity: 1; }
.lt-ml-box { font-size: 38px; animation: lt-ml-pulse .68s ease-in-out infinite; }
@keyframes lt-ml-pulse { 0%,100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.15) rotate(3deg); } }
.lt-ml-bar { width: 56%; height: 8px; border-radius: 999px; background: rgba(255,255,255,.13); overflow: hidden; }
.lt-ml-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #e8a33d, #ffd76e); transition: width .35s ease; }
.lt-ml-txt { color: #cfe0f5; font-size: 13px; }
.lt-ml-txt b { color: #ffd76e; }
.lt-ml-got { display: flex; gap: 4px; min-height: 10px; max-width: 76%; flex-wrap: wrap; justify-content: center; }
.lt-ml-got i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; background: #8a97a5; }
.lt-ml-got i.r-blue { background: #4a90d9; } .lt-ml-got i.r-pink { background: #e04f9e; }
.lt-ml-got i.r-purple { background: #a06bd9; box-shadow: 0 0 6px rgba(160,107,217,.8); }
.lt-ml-got i.r-gold { background: #ffd76e; box-shadow: 0 0 7px rgba(255,215,110,.95); }

/* ---- 7. 连开结果网格弹窗 ---- */
.lt-multi-res { text-align: center; }
.lt-mg-sum { display: flex; flex-wrap: wrap; justify-content: center; gap: 13px; font-size: 13.5px; color: #c8d4e6; margin-bottom: 8px; }
.lt-mg-sum b { color: #ffd76e; }
.lt-mg-sum b.up { color: #7ddf9f; } .lt-mg-sum b.down { color: #ff9ecf; }
.lt-mg-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 12px; }
.lt-mg-chip { font-size: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(13,20,37,.55); color: #c8d4e6; }
.lt-mg-chip.r-gold { color: #ffe9ad; border-color: rgba(255,223,142,.5); }
.lt-mg-chip.r-purple { color: #e3ccff; border-color: rgba(201,160,255,.45); }
.lt-mg-chip.r-pink { color: #ffd6ea; border-color: rgba(255,158,207,.45); }
.lt-mg-chip.r-blue { color: #cfe6ff; border-color: rgba(125,182,255,.4); }
.lt-mg-chip.jack { color: #ffd76e; border-color: rgba(255,215,110,.6); background: rgba(80,58,10,.5); }
.lt-mg-chip.pity { color: #7ddf9f; border-color: rgba(125,223,159,.5); }
.lt-mg-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.lt-mg-cell { position: relative; border-radius: 9px; padding: 10px 4px 6px; overflow: hidden; opacity: 0;
    background: linear-gradient(180deg, #1c2742, #131b31); border: 1px solid rgba(255,255,255,.08);
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    animation: lt-mg-in .42s cubic-bezier(.2,1.4,.4,1) forwards; }
@keyframes lt-mg-in { from { opacity: 0; transform: translateY(14px) scale(.86); } to { opacity: 1; transform: none; } }
.lt-mg-bar { position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.lt-mg-art { height: 42px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.lt-mg-art img { max-height: 42px; max-width: 64px; object-fit: contain; }
.lt-mg-name { font-size: 11px; color: #e6eeff; line-height: 1.25; word-break: break-all; max-height: 2.6em; overflow: hidden; font-weight: 600; }
.lt-mg-cell.is-loss { opacity: .7; }
.lt-mg-cell.is-loss .lt-mg-name { color: #93a1b5; }
.lt-mg-cell.r-gold { border-color: rgba(var(--tcr),.55); box-shadow: 0 0 14px rgba(var(--tcr),.4), inset 0 -26px 26px -22px rgba(var(--tcr),.75); }
.lt-mg-cell.r-purple { border-color: rgba(var(--tcr),.4); box-shadow: inset 0 -26px 26px -22px rgba(var(--tcr),.65); }
.lt-mg-cell.r-pink { border-color: rgba(var(--tcr),.35); box-shadow: inset 0 -24px 24px -20px rgba(var(--tcr),.6); }
.lt-mg-cell.r-blue { box-shadow: inset 0 -24px 24px -20px rgba(var(--tcr),.55); }
.lt-mg-mk { font-size: 10px; font-style: normal; border-radius: 4px; padding: 0 5px; background: rgba(0,0,0,.35); }
.lt-mg-mk.jack { color: #ffd76e; border: 1px solid rgba(255,215,110,.5); }
.lt-mg-mk.pity { color: #7ddf9f; }
.lt-mg-mk.dbg { color: #ff8a8a; }
.lt-mg-key { font-size: 10px; border: 1px solid rgba(120,150,220,.4); background: rgba(13,20,37,.7); color: #cfe0f5;
    border-radius: 5px; padding: 1px 6px; cursor: pointer; }
.lt-mg-key:hover { background: rgba(30,45,80,.9); }
.lt-mg-key.done { color: #7ddf9f; border-color: rgba(125,223,159,.6); background: rgba(16,48,32,.75); }
.lt-mg-stop { color: #ffb86b; font-size: 12.5px; margin: 10px 0 0; }
.lt-mg-cards { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #c8d4e6; }
.lt-mg-cards > b { color: #ffd76e; }
.lt-mg-cards a { color: #9fc8ff; text-decoration: none; margin-left: 6px; }
.lt-mg-cardrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.lt-mg-card { position: relative; width: 54px; height: 72px; border-radius: 6px; border: 2px solid var(--rc, #4a90d9);
    background: linear-gradient(180deg, #1b2440, #101830); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lt-mg-card img { width: 88%; height: 64%; object-fit: contain; }
.lt-mg-card i { font-size: 20px; }
.lt-mg-card em { position: absolute; left: 2px; bottom: 1px; font-style: normal; font-size: 9px; font-weight: 800; color: #fff; background: var(--rc, #4a90d9); border-radius: 3px; padding: 0 3px; }
.lt-mg-card u { position: absolute; right: 2px; top: 1px; text-decoration: none; font-size: 8.5px; font-weight: 800; color: #4a3000; background: #ffd76e; border-radius: 3px; padding: 0 3px; }
.lt-mg-card.foil { box-shadow: 0 0 10px rgba(255,120,200,.55); }

/* ---- 8. 手机端适配 ---- */
@media (max-width: 640px) {
    /* 顶牌一行放下(原 15px + 两侧 54px 内边距在小屏会折成两行还断词) */
    .lt-cab-marquee { padding: 6px 30px; margin-bottom: 7px; }
    .lt-cab-marquee b { font-size: 12.5px; letter-spacing: .5px; white-space: nowrap; }
    .lt-cab-marquee::before, .lt-cab-marquee::after { width: 24px; }
    .lt-mg-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .lt-case-ops { gap: 7px; }
    .lt-multi-btn { padding: 6px 11px; font-size: 12.5px; }
    .lt-ml-bar { width: 76%; }
    .lt-reveal-stage { height: 176px; }
    .lt-reveal-stage::before { width: 300px; height: 300px; margin: -150px 0 0 -150px; }
    .lt-reveal-tier { font-size: 15px; padding: 4px 13px; }
    .lt-reveal-pct { font-size: 12.5px; }
    .lt-case-chest .lt-chest-box { font-size: 38px; }
}



/* ================= 物品详情终端风 (用户钦定: 与图鉴/商店的 PSU 终端弹窗同款语言) =================
   配方 = css/item_codex.css 的 .codex-info: 深青绿底 #052b2b + 白色2px外框 + 青色内衬线(outline -6px #00ffff)
   + 橙色渐变标题条(#ff8800→#cc7000 黑字 + 青底线) + 青色辉光。页面里不再摆滚动机台 —— 滚动屏收进
   .lt-case-stash 暗袋(display:none), 点"开箱"时整块搬进全屏悬浮幕; 页面上只剩一个可点击的大宝箱终端。
   稀有度仍按 PSO 掉落盒: r-blue=绿盒(普通) / r-pink=蓝盒(优良) / r-purple=紫盒(珍稀) / r-gold=金盒(传说)。 */

/* --- 终端窗体(直接复用 codex-info 配方) --- */
.lt-case.lt-cab { background: none; border: 0; box-shadow: none; padding: 0; }
.lt-pso-win {
    background-color: #052b2b;
    background-image:
        radial-gradient(ellipse at 50% -20%, rgba(0,255,255,.06), transparent 60%),
        repeating-linear-gradient(0deg, rgba(0,255,255,.025) 0 1px, transparent 1px 4px);
    border: 2px solid #fff;
    outline: 2px solid #00ffff;
    outline-offset: -6px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    border-radius: 16px;
    padding: 0 0 14px;
    color: #e0ffff;
}

/* --- 标题条 = 橙色渐变终端题头(黑字 + 青底线), 替换原跑马灯 --- */
.lt-case .lt-cab-marquee {
    margin: 0 0 14px;
    padding: 10px 20px;
    background: linear-gradient(90deg, #ff8800 0%, #cc7000 100%);
    border: 0; border-bottom: 2px solid #00ffff;
    border-radius: 12px 12px 0 0;
    box-shadow: none;
    clip-path: none;
}
.lt-case .lt-cab-marquee b {
    display: block; text-align: center;
    font-size: 15px; font-weight: 800; letter-spacing: 3px;
    color: #000; text-shadow: none;
}
.lt-case .lt-cab-marquee::before, .lt-case .lt-cab-marquee::after { display: none; }

/* --- 滚动屏暗袋: 页面上隐藏, 幕要展示时把 .lt-case-screen 搬走(离开本袋自然可见) --- */
.lt-case-stash { display: none; }

/* --- 主按钮 = 大宝箱本体(点它开箱): 青虚线内框 + 大箱子 + 悬停晃动增辉 --- */
.lt-case .lt-play-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    width: min(430px, 100%); margin: 4px auto 0;
    padding: 22px 20px 16px;
    border: 1px dashed rgba(0, 255, 255, .55); border-radius: 12px;
    background:
        radial-gradient(ellipse at 50% 78%, rgba(255, 136, 0, .13), transparent 62%),
        rgba(0, 40, 40, .55);
    cursor: pointer;
    transition: box-shadow .15s ease, background .15s ease;
}
.lt-case .lt-play-btn .lt-chest-ico {
    font-style: normal; font-size: 58px; line-height: 1;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)) drop-shadow(0 0 16px rgba(255,170,60,.45));
    transition: transform .15s ease;
}
.lt-case .lt-play-btn b { font-size: 17px; font-weight: 800; letter-spacing: 4px; color: #ffe9c2; text-shadow: 0 1px 0 rgba(0,0,0,.7); }
.lt-case .lt-play-btn .lt-cost { font-size: 12.5px; color: #7fd4d4; letter-spacing: 1px; }
.lt-case .lt-play-btn:hover:not(:disabled) {
    box-shadow: 0 0 0 1px rgba(0,255,255,.4), 0 0 22px rgba(0,255,255,.18);
    background:
        radial-gradient(ellipse at 50% 78%, rgba(255, 136, 0, .22), transparent 62%),
        rgba(0, 52, 52, .6);
}
.lt-case .lt-play-btn:hover:not(:disabled) .lt-chest-ico { transform: rotate(-7deg) scale(1.06); }
.lt-case .lt-play-btn:active:not(:disabled) .lt-chest-ico { transform: scale(.92); }
.lt-case .lt-play-btn:disabled { filter: grayscale(.7) brightness(.72); cursor: not-allowed; }

/* --- 连开/开关行: 终端小按钮(青字/青框) --- */
.lt-case .lt-case-ops { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.lt-case .lt-multi-btn {
    padding: 8px 18px; border: 1px solid rgba(0,255,255,.45); border-radius: 8px; cursor: pointer;
    background: rgba(0, 45, 45, .7);
    color: #aef2f2; font-size: 13px; font-weight: 700; letter-spacing: 1px;
    transition: filter .12s ease;
}
.lt-case .lt-multi-btn:hover:not(:disabled) { filter: brightness(1.3); }
.lt-case .lt-multi-btn:disabled { opacity: .4; cursor: not-allowed; }
.lt-case .lt-case-fast { color: #7fd4d4; font-size: 12px; }
.lt-case .lt-case-fast input { accent-color: #00cccc; }

/* --- 滚动屏(全屏幕里展示): 终端视窗 + 扫描线 --- */
.lt-case .lt-case-screen {
    height: 150px; margin: 0; border-radius: 8px;
    border: 1px solid rgba(0,255,255,.35);
    background:
        repeating-linear-gradient(0deg, rgba(0,255,255,.035) 0 1px, transparent 1px 4px),
        linear-gradient(180deg, #063434, #04201f 72%, #053030);
    box-shadow: inset 0 0 34px rgba(0,10,10,.9), inset 0 1px 0 rgba(0,255,255,.12);
}
.lt-case .lt-case-screen.spinning::before, .lt-case .lt-case-screen.spinning::after { background: linear-gradient(90deg, #04201f, transparent); }
.lt-case .lt-cab-panel { display: none; }   /* INSERT COIN 随机台退役 */

/* --- 滚动格: PSO 掉落盒配色(青绿基调) --- */
.lt-case .lt-case-cell {
    border-radius: 4px;
    border: 1px solid rgba(0,255,255,.14);
    background: linear-gradient(180deg, #0a3838, #052424 72%);
}
.lt-case .lt-case-cell i { color: #d5ffff; }
.lt-case .lt-case-cell.r-gray { box-shadow: inset 0 -34px 34px -28px rgba(140,170,170,.4); }
.lt-case .lt-case-cell.r-blue { --fx: 110,230,150; background: linear-gradient(180deg,#0d3a26,#052424 72%); border-color: rgba(110,230,150,.36); box-shadow: inset 0 -34px 34px -28px rgba(46,160,92,.85); }
.lt-case .lt-case-cell.r-pink { --fx: 125,182,255; background: linear-gradient(180deg,#10335c,#052424 72%); border-color: rgba(125,182,255,.42); box-shadow: inset 0 -34px 34px -28px rgba(45,111,175,.9); }
.lt-case .lt-case-cell.r-purple { --fx: 201,160,255; background: linear-gradient(180deg,#2c1c46,#052424 72%); border-color: rgba(201,160,255,.46); box-shadow: inset 0 -34px 34px -28px rgba(125,60,152,.92); }
.lt-case .lt-case-cell.r-gold { --fx: 255,223,142; background: linear-gradient(180deg,#41320e,#1a1305 76%,#052424); border-color: rgba(255,223,142,.6); box-shadow: inset 0 -34px 34px -28px rgba(200,127,10,.95), 0 0 18px rgba(255,205,100,.2); }

/* --- 连开网格色点/筹码 同步 --- */
.lt-ml-got i.r-blue { background: #2ea05c; }
.lt-ml-got i.r-pink { background: #4a90d9; }
.lt-ml-got i.r-purple { background: #a06bd9; box-shadow: 0 0 6px rgba(160,107,217,.8); }
.lt-ml-got i.r-gold { background: #ffd76e; box-shadow: 0 0 7px rgba(255,215,110,.95); }
.lt-mg-chip.r-blue { color: #c8f5d8; border-color: rgba(110,230,150,.4); }
.lt-mg-chip.r-pink { color: #cfe6ff; border-color: rgba(125,182,255,.4); }
.lt-mg-chip.r-green { color: #c8f5d8; border-color: rgba(110,230,150,.4); }
.lt-mg-chip.r-red { color: #ffc9c0; border-color: rgba(255,120,100,.5); }

/* --- 全屏开箱幕: 终端同款(青绿底 + 橙色题头 + 官网 logo) --- */
.lt-case-veil {
    background:
        repeating-linear-gradient(0deg, rgba(0,255,255,.022) 0 1px, transparent 1px 5px),
        radial-gradient(ellipse at 50% 22%, rgba(0,160,160,.18), transparent 58%),
        radial-gradient(ellipse at 50% 122%, rgba(255,136,0,.10), transparent 62%),
        rgba(2, 14, 14, .93);
}
.lt-case-veil-stage::before {
    content: ""; display: block; width: min(280px, 60vw); height: 62px;
    background: url("../images/psobb_logo.all_version.png") center / contain no-repeat;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,.7)) drop-shadow(0 0 22px rgba(0,255,255,.3));
}
.lt-case-veil-head {
    padding: 8px 34px;
    background: linear-gradient(90deg, #ff8800 0%, #cc7000 100%);
    border-bottom: 2px solid #00ffff;
    border-radius: 10px;
    color: #000; font-size: 15px; font-weight: 800; letter-spacing: 3px;
}
.lt-case-veil-tip { color: #6fbcbc; }
.lt-case-veil .lt-case-screen { border-radius: 10px; }

@media (max-width: 640px) {
    .lt-case-veil-stage::before { width: min(210px, 56vw); height: 48px; }
    .lt-case-veil-head { font-size: 12.5px; padding: 7px 22px; letter-spacing: 2px; }
    .lt-case .lt-cab-marquee b { font-size: 12.5px; letter-spacing: 1.5px; }
    .lt-case .lt-play-btn { padding: 16px 14px 12px; }
    .lt-case .lt-play-btn .lt-chest-ico { font-size: 46px; }
    .lt-case .lt-play-btn b { font-size: 15px; letter-spacing: 3px; }
    .lt-case .lt-case-screen { height: 138px; }
}

/* 老手机浏览器兼容（不认 aspect-ratio）：卡面/礼盒比例盒兜底 —— 说明见 npc_codex.css 末尾同款注释。
   三层嵌套（pack > dz-flip > dc）同比例：各自 height:0+padding-top 撑高、子层绝对定位填满父层，
   不会叠加（绝对定位脱流）。 */
@supports not (aspect-ratio: 3 / 4.2) {
    .lt-card3d { height: 0; padding-top: 140%; }
    .lt-card3d-inner { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
}
@supports not (aspect-ratio: 1 / 1.05) {
    .lt-box { height: 0; padding-top: 105%; }
}
@supports not (aspect-ratio: 3 / 4.3) {
    .lt-pack, .lt-dc-flip, .lt-dc { height: 0; padding-top: 143.333%; }
    .lt-pack .lt-dc-flip, .lt-dc-flip > .lt-dc { position: absolute; top: 0; left: 0; width: 100%; }
}
