/* Corner HUD and a card table inside the fixed 16:9 mobile stage. */
.fixed-mobile-stage .experience-game.mobile-table{isolation:isolate;overflow:hidden;background:#091624 url('/src/assets/ui-v8/shinobi-courtyard.webp') center/cover}
.mobile-table .mt-backdrop{position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#040b1688,transparent 40%,#040b1655),linear-gradient(0deg,#030b16d9,transparent 50%)}
.mobile-table button{cursor:pointer;touch-action:manipulation;font-family:KaiTi,serif;color:#ffe7ba}.mobile-table button:disabled{cursor:default;opacity:.45}.mobile-table button:focus-visible{outline:2px solid #ffe290;outline-offset:2px}
.mobile-table .mt-opponents{position:absolute;top:12px;left:12px;display:grid;gap:7px;width:158px;z-index:5}
.mobile-table .mt-hud{display:flex;align-items:center;gap:8px;width:100%;border:0;background:linear-gradient(90deg,#102236e8,#0c182699,transparent);padding:5px;text-align:left;border-radius:35px 6px 6px 35px}
.mobile-table .mt-hud>img{width:43px;height:43px;object-fit:cover;object-position:center 12%;border:2px solid #b08a59;border-radius:50%;background:#1b3145}
.mobile-table .mt-hud>span{flex:1;min-width:0}.mobile-table .mt-hud strong{display:block;font-size:17px;line-height:19px;white-space:nowrap}.mobile-table .mt-hud b{font-size:12px}.mobile-table .mt-life{display:block;height:5px;background:#181f2d;margin:4px 0;border:1px solid #796a55;overflow:hidden;border-radius:5px}.mobile-table .mt-life i{display:block;height:100%;background:linear-gradient(90deg,#ab3229,#ffb86c)}
.mobile-table .mt-self{position:absolute;bottom:14px;left:12px;width:166px;z-index:35}.mobile-table .mt-self>img{width:51px;height:51px}.mobile-table .mt-self small{display:block;color:#7ed8df;font-size:12px;line-height:17px}.mobile-table .mt-self strong{font-size:18px}.mobile-table .mt-hud.is-out{filter:grayscale(1);opacity:.6}
.mobile-table .mt-round{position:absolute;top:10px;left:30%;right:30%;display:flex;align-items:center;flex-direction:column;color:#ffe0a9;text-shadow:0 2px 4px #000;z-index:5;pointer-events:none}.mobile-table .mt-round b{font:700 18px KaiTi,serif}.mobile-table .mt-round span{font-size:12px;color:#c1d1cd}
.mobile-table .mobile-match-menu{top:10px!important;right:12px!important}
.mobile-table .mt-resource-dice{position:absolute;top:47px;left:30%;right:30%;z-index:45;display:flex;justify-content:center}.mobile-table .mt-resource-dice>button{border:1px solid #829e9d77;background:#102234d9;border-radius:16px;font-size:13px;padding:4px 12px}.mobile-table .mt-dice-pop{position:absolute;top:32px;padding:12px;display:grid;gap:8px;justify-items:center;background:#0d2235;border:1px solid #ab986b;border-radius:8px;box-shadow:0 10px 25px #0009}.mobile-table .mt-dice-pop .die{width:39px;height:39px}.mobile-table .mt-dice-pop small{color:#a4ccc9;font-size:13px}.mobile-table .mt-dice-pop>button{background:#304a55;border:1px solid #9aa184;padding:4px 12px}
.mobile-table .mt-board{position:absolute;left:22%;right:18%;top:19%;bottom:22%;display:flex;flex-direction:column;gap:5px;z-index:10}.mobile-table .mt-board>header{display:flex;justify-content:space-between;align-items:center;height:22px;color:#ffe4b1;padding:0 5px;text-shadow:0 2px 3px #000}.mobile-table .mt-board>header strong{font:700 16px KaiTi,serif}.mobile-table .mt-board>header span{font-size:11px;color:#a6c2c6}
.mobile-table .mt-slots{display:flex;gap:6px;flex:1;min-height:0;align-items:stretch}.mobile-table .mt-slot{position:relative;min-width:0;flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;border:1px solid #b7b38d66;border-radius:8px;background:linear-gradient(#102436bb,#0a1729b0);padding:3px;container-type:size}.mobile-table .mt-slot.has-combo{border-color:#f2c666;box-shadow:0 0 15px #ffd06655}.mobile-table .mt-slot-no{position:absolute;z-index:9;left:4px;top:4px;background:#253746;border:1px solid #b09b72;padding:1px 5px;color:#fbd694;font:13px Georgia,serif}.mobile-table .mt-empty{display:flex;height:100%;width:100%;justify-content:center;align-items:center;flex-direction:column;gap:14px;color:#abb6a5;border:1px dashed #b9ae7177;border-radius:5px}.mobile-table .mt-empty b{font-size:17px}.mobile-table .mt-empty small{font-size:13px;text-align:center;line-height:1.6}
/* A dedicated card face avoids inheriting the previous sliced frame layout. */
.experience-game.mobile-table .skill-card.mt-card{display:block;position:relative;isolation:isolate;flex:none;width:112px;height:168px!important;min-height:0!important;max-height:none!important;aspect-ratio:2/3;padding:0;overflow:hidden;background:linear-gradient(135deg,#193b4f,#071726);border:1px solid #c4a675!important;border-radius:8px;box-shadow:0 5px 16px #0008;color:#e9e6d8;touch-action:none;text-align:left}
.experience-game.mobile-table .mt-card:before,.experience-game.mobile-table .mt-card:after{display:none!important}
.experience-game.mobile-table .mt-card>img{display:block;position:absolute;inset:0 0 auto;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;object-position:center;pointer-events:none;background:#0b1c2b;border-bottom:1px solid #b99b6677}
.mobile-table .mt-rank{position:absolute;top:4px;right:4px;z-index:3;display:grid;place-items:center;width:24px;height:25px;border:1px solid #efca82;border-radius:5px;background:#192731dd;color:#ffe8b8;font:700 15px Georgia,serif;box-shadow:0 2px 5px #0009}
.experience-game.mobile-table .mt-card-copy{position:absolute;inset:39% 7% 4%;display:flex;flex-direction:column;gap:2px;overflow:hidden}.mobile-table .mt-card-copy>strong{font:700 16px KaiTi,serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#ffe5a8;line-height:18px}.mobile-table .mt-card-copy>small{font-size:10px;color:#9edcde;line-height:12px;display:flex;justify-content:space-between}.mobile-table .mt-card-copy>span{font-size:11px;line-height:13px;color:#f1e5d1}.mobile-table .mt-card-copy>em{font-size:9px;font-style:normal;line-height:11px;color:#a9c1c7}.mobile-table .mt-card-copy>.mt-value{margin-top:auto;font-size:11px;color:#ffe2a2;line-height:13px}
.experience-game.mobile-table .mt-slot .mt-card{width:min(100%,112px,calc((100cqh - 62px)*2/3));height:auto!important;aspect-ratio:2/3;min-width:0}.mobile-table .mt-slot .mt-card-copy>em{display:none}.mobile-table .mt-slot-tools{width:100%;display:flex;gap:2px;justify-content:center;flex:none}.mobile-table .mt-slot-tools button{font-size:11px;padding:2px 3px;min-height:23px;border:1px solid #a39770;background:#203e4f;border-radius:3px}.mobile-table .mt-targets{display:flex;gap:3px;width:100%;flex:none}.mobile-table .mt-targets button{flex:1;min-width:0;padding:2px 0;border:1px solid #a18461;background:#19394c;font-size:12px;min-height:24px;border-radius:4px}.mobile-table .mt-targets button[aria-pressed=true]{background:#a65831;border-color:#efc789;color:#fff1c7}
.mobile-table .mt-combo{flex:none;min-height:22px;font-size:12px;line-height:20px;text-align:center;color:#afc2c1;background:#071a2ade;border-radius:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-table .mt-combo.is-active{background:linear-gradient(90deg,#584425e8,#122e3be8);color:#ffe594;border:1px solid #dcb761;box-shadow:0 0 12px #dab24a44}
.mobile-table .mt-hand{position:absolute;bottom:0;left:22%;right:18%;height:103px;z-index:30;border-radius:12px 12px 0 0;background:linear-gradient(0deg,#071727f0,#112b37aa,transparent);transition:height .2s ease;overflow:hidden;padding:0 5px;box-sizing:border-box}.mobile-table.mt-hand-open .mt-hand{height:228px;background:linear-gradient(0deg,#071727fa,#142c3ef2);box-shadow:0 -10px 30px #0006;border:1px solid #83927688;border-bottom:0}
.mobile-table .mt-hand-toggle{display:block;margin:0 auto 4px;background:#153245e8;border:1px solid #b29c6f;border-radius:12px;padding:3px 15px;min-height:25px;font-size:13px;white-space:nowrap}.mobile-table .mt-hand-row{display:flex;gap:0;justify-content:center;align-items:flex-start}.mobile-table .mt-held{display:flex;flex-direction:column;align-items:center;flex:0 0 112px;min-width:0;margin-left:-19px}.mobile-table .mt-held:first-child{margin-left:0}.mobile-table .mt-held:nth-child(even){padding-top:3px}.mobile-table:not(.mt-hand-open) .mt-held .mt-card{transform:rotate(-3deg);transform-origin:center bottom}.mobile-table:not(.mt-hand-open) .mt-held:nth-child(even) .mt-card{transform:rotate(3deg)}.mobile-table .mt-hand-actions{display:flex;gap:2px;justify-content:center;margin-top:4px}.mobile-table .mt-hand-actions button{font-size:11px;padding:2px 3px;min-height:23px;background:#243e4c;border:1px solid #9c9976;border-radius:4px}.mobile-table:not(.mt-hand-open) .mt-hand-actions{visibility:hidden}.mobile-table .mt-hand-empty{font-size:14px;line-height:1.7;text-align:center;color:#9db5bd;padding:8px}
.mobile-table .mt-hand-pager{position:absolute;right:5px;top:3px;display:flex;gap:3px;align-items:center;color:#cce0dc;font-size:11px}.mobile-table .mt-hand-pager button{background:#24404b;border:1px solid #8da09c;padding:0 4px;font-size:17px}
.mobile-table .mt-bottom-actions{position:absolute;right:10px;bottom:12px;width:124px;z-index:40;display:grid;gap:7px}.mobile-table .mt-shop-toggle{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;border:1px solid #d6bd83;border-radius:24px;background:radial-gradient(ellipse at top,#39556a,#102335);box-shadow:0 3px 12px #0008;font-size:17px}.mobile-table .mt-shop-toggle>span{font:700 24px KaiTi,serif;color:#fcd890}.mobile-table .mt-shop-toggle.active{border-color:#ffe094;background:#735030}.mobile-table .mt-lock{background:linear-gradient(120deg,#b16434,#7c362a);border:1px solid #e6b77a;border-radius:6px;padding:7px 4px;min-height:47px;font:700 17px KaiTi,serif;box-shadow:0 4px 14px #0008}.mobile-table .mt-lock small{display:block;font:11px sans-serif;line-height:16px;color:#e9d8ae}
.mobile-table .mt-shop{position:absolute;left:2%;right:2%;top:18%;bottom:24%;z-index:25;display:flex;flex-direction:column;padding:7px 9px;background:linear-gradient(150deg,#172c3bf7,#0b1c2bee);border:1px solid #c8aa71;border-radius:12px;box-shadow:0 12px 40px #000a,0 0 0 100vmax #0004}.mobile-table:not(.mt-shop-open) .mt-shop{display:none}.mobile-table .mt-shop>header{display:flex;align-items:center;gap:12px;color:#ffe0a6;height:23px;flex:none}.mobile-table .mt-shop>header strong{font:700 18px KaiTi,serif}.mobile-table .mt-shop>header small{font-size:12px;color:#bad0ce}.mobile-table .mt-shop>header button{margin-left:auto;background:transparent;border:0;font-size:22px;width:28px;height:25px;padding:0}.mobile-table .mt-shop-body{display:flex;gap:8px;flex:1;min-height:0;padding-top:5px}.mobile-table .mt-offers{flex:1;display:flex;justify-content:space-around;gap:5px;min-width:0}.mobile-table .mt-offer{display:flex;flex-direction:column;gap:3px;align-items:center;min-width:0}.mobile-table .mt-offer-detail{min-height:22px;padding:0 15px;font-size:12px;background:#264452;border:1px solid #938768;border-radius:4px}.mobile-table .mt-shop-tools{width:68px;display:flex;flex-direction:column;gap:7px;flex:none;justify-content:center}.mobile-table .mt-shop-tools button{background:linear-gradient(#31505d,#193343);border:1px solid #b19d71;border-radius:9px;font-size:16px;min-height:48px;padding:3px}.mobile-table .mt-shop-tools b{display:block;font:12px sans-serif;color:#e7d7ad}.mobile-table .mt-shop>footer{color:#acc6c5;font-size:11px;line-height:18px;flex:none}
.mobile-table .mt-ready{position:absolute;top:22%;left:24%;right:20%;bottom:25%;background:#102439e8;border:1px solid #aa9164;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:10px;z-index:20}.mobile-table .mt-ready .style-options{display:grid;grid-template-columns:1fr 1fr;gap:6px}.mobile-table .mt-ready .style-options button{min-height:60px;padding:5px}.mobile-table .mt-ready .style-options b{font-size:22px;width:32px;height:32px}.mobile-table .mt-ready .style-options strong{font-size:16px}.mobile-table .mt-ready .style-options small{font-size:11px}.mobile-table .mt-ready .style-select-title{margin:0 0 5px}.mobile-table .mt-ready .style-select-title strong{font-size:19px}.mobile-table .mt-ready .style-select-title small{font-size:11px}.mobile-table .mt-ready>.primary-button{margin-top:auto;font-size:19px;min-height:39px;padding:4px}
@media(prefers-reduced-motion:reduce){.mobile-table .mt-hand{transition:none}}

.mobile-table .mt-hud>.mt-avatar{display:block;flex:none;width:43px;height:43px;background-color:#1b3145;background-size:300% auto;background-position:var(--avatar-x) 7%;border:2px solid #b08a59;border-radius:50%}
.mobile-table .mt-self>.mt-avatar{width:51px;height:51px}
/* Expand the hand above the corner HUD so every card and action is unobstructed. */
.mobile-table.mt-hand-open .mt-hand{left:2%;right:2%;bottom:105px;height:257px;border-radius:12px}
.mobile-table.mt-hand-open .mt-hand-row{gap:12px}
.mobile-table.mt-hand-open .mt-held{flex:0 0 128px;margin-left:0;padding-top:0}
.experience-game.mobile-table.mt-hand-open .mt-held .mt-card{width:128px;height:192px!important}
.mobile-table.mt-hand-open .mt-hand-actions button{font-size:12px;padding:3px 6px;min-height:25px}
.experience-game.mobile-table .mt-card.card-drag-ghost{height:auto!important}
.mobile-table .mt-hand-toggle{padding-left:24px;padding-right:24px}
.mobile-table.mt-hand-open .mt-card-copy>span{font-size:12px;line-height:14px}
.mobile-table.mt-hand-open .mt-card-copy>em{font-size:10px;line-height:12px}
.mobile-table.mt-hand-open .mt-card-copy>strong{font-size:18px;line-height:20px}

.mobile-table.mt-hand-open .mt-hand-actions button{white-space:nowrap;letter-spacing:0;padding:3px;line-height:17px}
.mobile-table .mt-slot-tools button{white-space:nowrap;letter-spacing:0;line-height:16px}
.mobile-table .mt-ready>.primary-button{transform:none!important;transition:filter .15s;clip-path:none;border-radius:6px}

.mobile-table .mt-ready-dice{display:flex;gap:14px;justify-content:center;margin:auto 0 0}
.mobile-table .mt-ready-dice .die{width:48px;height:48px;font-size:22px}
.mobile-table .mt-ready>p{text-align:center;font-size:13px;color:#b6c8c9;margin:0}
.mobile-table .mt-ready .style-chosen strong{font-size:19px}
.mobile-table .mt-ready .style-chosen small{font-size:12px}
.mobile-table .mt-ready .style-emblem{width:35px;height:35px;font-size:24px}

/* Single-card inspection; the hand remains a partial fan. */
.mobile-table .mt-inspection{position:absolute;z-index:38;left:22%;right:18%;top:18%;bottom:24%;display:flex;gap:16px;padding:12px;background:linear-gradient(135deg,#183346fa,#081c2df5);border:1px solid #d3b879;border-radius:12px;box-shadow:0 12px 35px #000a;box-sizing:border-box}
.mobile-table .mt-inspection[hidden]{display:none}
.experience-game.mobile-table .mt-inspection>.mt-card{width:148px;height:222px!important;flex:none;align-self:center}
.mobile-table .mt-inspect-copy{flex:1;min-width:0;overflow:auto;padding:0 9px 0 0;color:#f0e3cc}
.mobile-table .mt-inspect-copy h2{margin:0 0 6px;font:700 23px KaiTi,serif;color:#ffe1a4}
.mobile-table .mt-inspect-copy p{font-size:15px;line-height:1.45;margin:8px 0}
.mobile-table .mt-inspect-copy .mt-inspect-meta{color:#8ed9e1;font-size:13px}
.mobile-table .mt-inspect-copy .mt-inspect-trait{color:#bdd1d4}
.mobile-table .mt-inspect-copy .mt-inspect-combo{color:#ffe28c}
.mobile-table .mt-inspect-copy>small{display:block;color:#97b8be;font-size:11px;line-height:1.6;margin-top:12px}
.mobile-table .mt-inspect-close{position:absolute;top:3px;right:3px;background:#142b3b;border:0;border-radius:5px;font-size:24px;z-index:4;width:26px;height:26px;padding:0}
.mobile-table .mt-recycle{min-height:35px;border:1px dashed #a9babc;border-radius:7px;background:#142d39c9;text-align:center;color:#c5dadd;display:flex;justify-content:center;align-items:center;gap:6px;transition:background .15s}
.mobile-table .mt-recycle strong{font:16px KaiTi,serif}.mobile-table .mt-recycle small{font-size:10px}
.mobile-table .mt-recycle.drop-highlight{background:#9b4933;border:2px solid #ffcf81;box-shadow:0 0 18px #ff9d4a99}
.experience-game.mobile-table .mt-slot .mt-card{width:min(100%,112px,calc((100cqh - 34px)*2/3))}
.experience-game.mobile-table .mt-offer>.mt-card{width:126px;height:189px!important}
.mobile-table .mt-hand-toggle{width:max-content;max-width:100%;box-sizing:border-box;text-align:center}
.mobile-table .mt-card{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
/* Shop controls occupy this corner; dragging a held card closes the shop and
   reveals the recycle destination before the drop is evaluated. */
.mobile-table.mt-shop-open .mt-recycle{visibility:hidden}

/* Dice stay visible throughout preparation, including after rerolls and while
   shopping. No hidden popover is required to reach the reroll controls. */
.mobile-table .mt-resource-dice{left:22%;right:18%;top:45px}
.mobile-table .mt-dice-strip{display:flex;align-items:center;justify-content:center;gap:10px;padding:3px 12px;border:1px solid #8b9d8e88;border-radius:10px;background:#0b2032ed;box-shadow:0 3px 12px #0006}
.mobile-table .mt-dice-strip .dice-row{display:flex;gap:6px;margin:0}
.mobile-table .mt-dice-strip .die{width:34px;height:34px;min-width:34px;min-height:34px;margin:0;touch-action:manipulation}
.mobile-table .mt-dice-strip>span{display:flex;flex-direction:column;gap:2px;white-space:nowrap}
.mobile-table .mt-dice-strip strong{font:12px KaiTi,serif;color:#ffe2aa}
.mobile-table .mt-dice-strip small{font-size:11px;color:#a8d5d8}
.mobile-table .mt-dice-prompt{font-size:13px;color:#bbd2d5}
.mobile-table .mt-board{top:21%}

/* Status badges share one visual language in the arena and mobile table. */
.rule-status-list{display:flex;flex-wrap:wrap;gap:5px;align-items:flex-start}
.rule-status{--status-tone:#d5ba87;display:inline-flex;align-items:center;gap:5px;padding:4px 6px;border:1px solid var(--status-tone);border-radius:6px;background:#102236ee;color:#f5ead6;line-height:1.15}
.rule-status.element-fire{--status-tone:#f09b62}.rule-status.element-lightning{--status-tone:#b9a0ff}.rule-status.element-water{--status-tone:#87c9e9}.rule-status.element-earth{--status-tone:#d2b084}.rule-status.element-wind{--status-tone:#8cd6bc}.rule-status.element-light{--status-tone:#ead999}.rule-status.element-dark{--status-tone:#b899cc}
.rule-status-icon{display:grid;place-items:center;flex:none;width:21px;height:21px;border:1px solid var(--status-tone);border-radius:50%;color:var(--status-tone);font:700 12px KaiTi,serif}
.rule-status.is-negative .rule-status-icon{border-style:dashed}.rule-status.is-positive .rule-status-icon{box-shadow:0 0 4px var(--status-tone)}
.rule-status-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.rule-status-copy b{font-size:12px}.rule-status-copy small{font-size:10px;color:#d2dce5;white-space:normal}
.mobile-table .mt-rule-status{position:absolute;left:12px;bottom:103px;width:186px;max-height:104px;overflow:auto;z-index:35;overscroll-behavior:contain}
.mobile-table .mt-opponent-states{max-height:78px;overflow:auto;overscroll-behavior:contain}
.mobile-table .mt-opponent-states:empty,.mobile-table .mt-rule-status:empty{display:none}
.mobile-table .rule-status{max-width:100%;box-sizing:border-box;padding:3px 5px}.mobile-table .rule-status-copy b{font-size:11px}
.card-protection-badge{display:inline-block!important;width:fit-content;font-size:10px!important;line-height:1.15;padding:2px 4px;border:1px solid #ead999;border-radius:4px;background:#34311de8;color:#ffedac}

/* Offers scroll natively; offer buttons omit data-skill and cannot start a drag. */
.mobile-table .mt-offers{justify-content:flex-start;gap:10px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;touch-action:pan-x;scroll-snap-type:x proximity;padding:2px 2px 6px;-webkit-overflow-scrolling:touch}
.mobile-table .mt-offer{flex:0 0 126px;scroll-snap-align:start}
.experience-game.mobile-table .mt-offer .mt-card,.experience-game.mobile-table .mt-card[data-table-offer]{touch-action:pan-x}
.mobile-table .mt-inspect-copy h2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mobile-table .mt-inspect-buy{display:block;width:100%;min-height:36px;margin:12px 0 0;border:1px solid #d8bd83;border-radius:7px;background:linear-gradient(#38535d,#173444);font-size:16px;color:#ffe5ab}
