@font-face {
  font-family: "ZCOOL KuaiLe";
  src: url("./scene/fonts/ZCOOLKuaiLe.ttf") format("truetype");
  font-display: swap;
}

:root {
  --paper: #fffdf7;
  --paper-warm: #f6efe0;
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
  --ink: #24140d;
  --red: #d92626;
  --gold: #ffd257;
  --stage-accent: #16a34a;
  --stage-accent-2: #22c55e;
  --stage-accent-dark: #14532d;
  --stage-ribbon-text: #ffffff;
  --font-display: "ZCOOL KuaiLe", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
}
body[data-stage="forest"] {
  --stage-accent: #16a34a;
  --stage-accent-2: #4ade80;
  --stage-accent-dark: #14532d;
}
body[data-stage="dusk"] {
  --stage-accent: #ea580c;
  --stage-accent-2: #fb923c;
  --stage-accent-dark: #7c2d12;
}
body[data-stage="backstage"] {
  --stage-accent: #2563eb;
  --stage-accent-2: #60a5fa;
  --stage-accent-dark: #1e3a8a;
}

* { box-sizing: border-box; user-select: none; -webkit-user-select: none; }
html, body {
  margin: 0; width: 100%; height: 100%; height: 100dvh; overflow: hidden;
  background: #140906; color: var(--ink); font-family: var(--font-body);
  -webkit-text-size-adjust: 100%; touch-action: manipulation;
}
.hidden { display: none !important; }

/* ---------------- 《转运军团 - Slotbound》式左右双栏旗舰主舞台 ---------------- */
.app-shell {
  position: fixed; top: 52px; left: 0; right: 0; bottom: 0;
  display: flex; overflow: hidden; background: #1c0c07;
}
.theatre-viewport {
  position: relative; flex: 1; min-width: 0; height: 100%; overflow: hidden;
  border-left: 3px solid #140804;
  perspective: 1400px;
  background: radial-gradient(ellipse at 50% 60%, #482012, #1a0b06);
}
.stage-3d-book {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transform-origin: 50% 82%;
  transform-style: preserve-3d;
}
.stage-3d-book.unfolding {
  animation: bookStagePopUp 0.95s cubic-bezier(0.22, 1.32, 0.36, 1) forwards;
}
@keyframes bookStagePopUp {
  0%   { transform: rotateX(56deg) scale(0.84) translateY(54px); opacity: 0.25; filter: brightness(1.3); }
  58%  { transform: rotateX(-5deg) scale(1.02) translateY(-4px); opacity: 1; filter: brightness(1.05); }
  100% { transform: rotateX(0deg) scale(1) translateY(0); opacity: 1; filter: brightness(1); }
}
#theatre-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}

/* ---------------- 顶部《千年之门》招牌彩色厚描边状态胶囊栏 ---------------- */
.ttyd-topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 52px; z-index: 30;
  background: linear-gradient(180deg, #341a10 0%, #1e0d07 100%);
  border-bottom: 3px solid var(--stage-accent); padding: 0 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.ttyd-caps { display: flex; align-items: center; gap: 7px; flex-wrap: nowrap; }

.cap {
  display: inline-flex; align-items: center; gap: 5px;
  height: 36px; padding: 0 11px 0 7px;
  border: 2.5px solid #1f0e06; border-radius: 999px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 3px 0 #140804;
  font-family: var(--font-display); font-size: 15px; color: #fff;
  text-shadow: 0 2px 0 rgba(28, 12, 4, 0.85);
}
.cap-pink    { background: linear-gradient(180deg, #ff7b9c 0%, #d93860 100%); }
/* 顶栏 1~4 人小队成员必杀头像能量徽章（满100%闪金可点击立刻触发 GBA 必杀特写！） */
.party-ult-bar { display: flex; align-items: center; gap: 5px; }
.member-ult-btn {
  position: relative; width: 38px; height: 38px; padding: 2px; border-radius: 11px;
  border: 2.5px solid #1f0e06; background: linear-gradient(180deg, #4b234e, #241029);
  box-shadow: 0 3px 0 #140804; cursor: default; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: transform 0.12s ease, box-shadow 0.18s ease;
}
.member-ult-btn.role-warrior { border-color: #f87171; }
.member-ult-btn.role-mage    { border-color: #c084fc; }
.member-ult-btn.role-support { border-color: #34d399; }
.member-ult-btn img { width: 26px; height: 26px; object-fit: contain; margin-bottom: 3px; filter: drop-shadow(0 1px 0 #fff); }
.member-ult-btn .m-role-dot {
  position: absolute; top: 0; right: 1px; font-size: 9px; line-height: 1; text-shadow: 0 1px 1px #000;
}
.member-ult-btn .m-ult-bar {
  position: absolute; left: 2px; right: 2px; bottom: 2px; height: 4px; border-radius: 99px;
  background: rgba(0, 0, 0, 0.55); overflow: hidden;
}
.member-ult-btn .m-ult-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #fde047, #fb923c); transition: width 0.14s linear; }
.member-ult-btn.ult-ready {
  cursor: pointer; border-color: #fde047 !important;
  background: linear-gradient(180deg, #fef08a 0%, #f59e0b 100%);
  box-shadow: 0 0 0 2px #2b160c, 0 0 14px rgba(253, 224, 71, 0.95), 0 3px 0 #140804;
  animation: hornPulse 0.72s ease-in-out infinite;
}
.member-ult-btn.ult-ready:hover { transform: translateY(-2px) scale(1.08); }
.member-ult-btn.ult-ready::after {
  content: "大招"; position: absolute; left: 0; right: 0; bottom: 0; text-align: center;
  background: #b91c1c; color: #fff8d6; font-family: var(--font-display); font-size: 8.5px; line-height: 1.2;
}
.cap-orange  { background: linear-gradient(180deg, #ffbc58 0%, #dd7816 100%); }
.cap-blue    { background: linear-gradient(180deg, #62b8ff 0%, #2478cc 100%); }
.cap-star-btn { cursor: default; transition: transform 0.14s ease, filter 0.14s ease, box-shadow 0.2s ease; }
.cap-star-btn.horn-ready {
  cursor: pointer;
  background: linear-gradient(180deg, #fde047 0%, #c084fc 48%, #7e22ce 100%);
  border-color: #fff8dc;
  box-shadow: 0 0 0 2.5px #2b160c, 0 0 18px rgba(253, 224, 71, 0.92), 0 3px 0 #140804;
  animation: hornPulse 0.85s ease-in-out infinite;
}
.cap-star-btn.horn-ready:hover { transform: translateY(-2px) scale(1.04); filter: brightness(1.08); }
.cap-star-btn.horn-ready:active { transform: translateY(1px) scale(0.98); }
.horn-cta {
  display: inline-flex; align-items: center; gap: 3px;
  font-family: var(--font-display); font-size: 13.5px; color: #fffef5;
  text-shadow: 0 2px 0 #3b0764; white-space: nowrap;
}
.horn-cta kbd {
  font-family: ui-monospace, monospace; font-size: 10px;
  background: rgba(255, 255, 255, 0.28); border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 4px; padding: 0 4px; color: #fff; text-shadow: none;
}
@keyframes hornPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}
.cap-green   { background: linear-gradient(180deg, #69d456 0%, #2e8f26 100%); }
.cap.bump    { animation: boing 0.26s ease; }
.cap.danger  { animation: shake 0.35s ease; }

.cap-ic { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 1px 0 #fff); }
.cap-ic.sm { width: 22px; height: 22px; }
.cap-sep { opacity: 0.55; margin: 0 2px; }
.cap-star { font-size: 16px; }
.shield-pill {
  background: #2563eb; border: 1.5px solid #dbeafe; border-radius: 999px;
  padding: 0 6px; font-size: 11.5px; font-family: var(--font-body); font-weight: 800; text-shadow: none;
}

.phase-tag {
  font-family: var(--font-body); font-size: 11px; font-weight: 800;
  padding: 2px 7px; border-radius: 999px; border: 1.5px solid #2b1408; text-shadow: none;
}
.phase-tag.prep   { background: #fef08a; color: #5c3100; }
.phase-tag.battle { background: #ef4444; color: #fff8e7; }
.phase-tag.boss   { background: #7f1d1d; color: #ffe57f; }

.cap-bar {
  width: 78px; height: 10px; border-radius: 999px;
  background: rgba(24, 10, 6, 0.58); border: 1.5px solid #241008; overflow: hidden;
}
.cap-bar-fill { height: 100%; width: 0%; transition: width 0.14s linear; }
.cap-bar-fill.blue { background: linear-gradient(90deg, #fff48f, #67e8f9); }

.ttyd-tools { display: flex; align-items: center; gap: 6px; }
/* 任天堂官网同款：切角四铆钉清爽白灰金属牌按钮 + 悬停亮红强调 */
.tool-btn {
  position: relative;
  height: 34px; padding: 0 12px; border: 2.5px solid #19110d; border-radius: 5px;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
  background:
    radial-gradient(circle at 5px 5px, #19110d 1.4px, transparent 1.7px),
    radial-gradient(circle at calc(100% - 5px) 5px, #19110d 1.4px, transparent 1.7px),
    radial-gradient(circle at 5px calc(100% - 5px), #19110d 1.4px, transparent 1.7px),
    radial-gradient(circle at calc(100% - 5px) calc(100% - 5px), #19110d 1.4px, transparent 1.7px),
    linear-gradient(180deg, #ffffff 0%, #eaedf1 100%);
  box-shadow: 0 3px 0 #140804; font-family: var(--font-display); font-size: 13.5px; color: #1f1410;
  cursor: pointer; transition: transform 0.08s ease, background 0.14s ease, color 0.14s ease;
}
.tool-btn:hover { background-color: #fff6d6; color: #b91c1c; transform: translateY(-1px); }
.tool-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #140804; }
.team-btn {
  background:
    radial-gradient(circle at 5px 5px, #19110d 1.4px, transparent 1.7px),
    radial-gradient(circle at calc(100% - 5px) 5px, #19110d 1.4px, transparent 1.7px),
    radial-gradient(circle at 5px calc(100% - 5px), #19110d 1.4px, transparent 1.7px),
    radial-gradient(circle at calc(100% - 5px) calc(100% - 5px), #19110d 1.4px, transparent 1.7px),
    linear-gradient(180deg, #ffe680 0%, #f59e0b 100%);
}

/* ---------------- 左侧任天堂《纸片玛利欧 RPG》实体纸艺玩具盒老虎机（348px 宽！） ---------------- */
.slot-sidebar {
  width: 348px; flex-shrink: 0; height: 100%; z-index: 25;
  padding: 8px 8px 8px 9px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 210, 87, 0.04) 0 12px, transparent 12px 24px),
    linear-gradient(180deg, #6e1c14 0%, #3d100c 100%);
  display: flex; flex-direction: column; overflow-y: auto;
}

.nintendo-machine {
  position: relative; flex: 1; display: flex; flex-direction: column;
  background-color: #fbfaf5;
  background-image:
    var(--paper-grain),
    linear-gradient(180deg, #ffffff 0%, #faf7ee 68%, #f2ead8 100%);
  border: 3.5px solid #19110d;
  border-radius: 14px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 0 2px rgba(25, 17, 13, 0.08),
    0 5px 0 #140804,
    0 12px 24px rgba(0, 0, 0, 0.46);
  overflow: hidden;
  transition: box-shadow 0.22s ease;
}
/* 任天堂官网同款四角黑边黄铜铆钉 */
.pm-rivet {
  position: absolute; width: 7px; height: 7px; border-radius: 50%; z-index: 12; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #fff7c2, #d97706);
  border: 1.5px solid #19110d; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.pm-rivet.lt { top: 6px; left: 6px; }
.pm-rivet.rt { top: 6px; right: 6px; }
.pm-rivet.lb { bottom: 6px; left: 6px; }
.pm-rivet.rb { bottom: 6px; right: 6px; }

.nintendo-machine.golden-ready {
  box-shadow:
    inset 0 0 0 2.5px #fde047,
    0 0 0 3px #f59e0b,
    0 0 24px rgba(253, 224, 71, 0.85),
    0 5px 0 #140804;
}
.nintendo-machine.squish { animation: machineSquish 0.32s cubic-bezier(0.34, 1.56, 0.64, 1); }
.nintendo-machine.win-bounce { animation: machineWin 0.44s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* 任天堂亮红方格剧场大雨棚 + 中央大金星徽章 + 锯齿剪纸下沿 */
.valance {
  position: relative;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.11) 0 16px, transparent 16px 32px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.08) 0 14px, transparent 14px 28px),
    linear-gradient(180deg, #e62b25 0%, #b91815 100%);
  border-bottom: 3px solid #19110d;
  padding: 5px 12px 6px; color: #fffdf5;
  box-shadow: inset 0 2px 0 rgba(255, 235, 210, 0.45), 0 3px 0 var(--stage-accent);
}
.valance::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -7px; height: 7px; pointer-events: none; z-index: 4;
  background:
    linear-gradient(135deg, #19110d 25%, transparent 25%) -5px 0 / 10px 7px repeat-x,
    linear-gradient(225deg, #19110d 25%, transparent 25%) -5px 0 / 10px 7px repeat-x;
  opacity: 0.22;
}
.valance-star-emblem {
  position: absolute; left: 50%; top: 1px; transform: translateX(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(180deg, #fff59d, #f59e0b);
  border: 2px solid #19110d; box-shadow: 0 2px 0 #19110d;
  display: flex; align-items: center; justify-content: center; font-size: 13px; z-index: 3;
}
.marquee-bulbs { display: flex; justify-content: space-around; padding: 0 6px 4px; }
.marquee-bulbs span {
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #fef08a 52%, #f59e0b 100%);
  border: 1.5px solid #2b160c; box-shadow: 0 0 6px rgba(254, 240, 138, 0.9);
  animation: bulbChase 1.05s ease-in-out infinite;
}
.marquee-bulbs span:nth-child(even) { animation-delay: 0.52s; }
.nintendo-machine.win-flash .marquee-bulbs span,
.nintendo-machine.golden-ready .marquee-bulbs span { animation: bulbJackpot 0.2s linear infinite !important; }
.valance-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.valance-left { display: flex; align-items: center; gap: 5px; font-family: var(--font-display); font-size: 16px; text-shadow: 0 2px 0 #5b1010; white-space: nowrap; }
.valance-witch { width: 24px; height: 24px; object-fit: contain; filter: drop-shadow(0 1px 0 #fff); }
.valance-right { display: flex; align-items: center; gap: 3px; }
.aud-ic { width: 23px; height: 23px; object-fit: contain; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.7)); }
.aud-ic.cheer { animation: boing 0.35s ease 2; }
.golden-pill {
  background: linear-gradient(180deg, #fff59d, #f59e0b); color: #451a03;
  border: 1.5px solid #2b160c; border-radius: 999px; padding: 1px 7px;
  font-family: var(--font-display); font-size: 10.5px; white-space: nowrap;
  animation: boing 0.6s ease infinite;
}

.machine-body {
  display: grid; grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center; gap: 5px; padding: 8px 6px 7px 9px;
}

/* 超大 3×3 纸片翻牌滚筒框（每格约 82×82px，视觉面积翻倍！） */
.reel-stage {
  position: relative; padding: 5px;
  background: #532c19;
  border: 2.5px solid #2b160c; border-radius: 13px;
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.42), 0 2px 0 rgba(255, 255, 255, 0.6);
  overflow: hidden;
}
.drum-glare-top, .drum-glare-bottom { position: absolute; left: 4px; right: 4px; height: 14px; pointer-events: none; z-index: 4; }
.drum-glare-top { top: 4px; background: linear-gradient(180deg, rgba(43, 22, 12, 0.25), rgba(43, 22, 12, 0)); }
.drum-glare-bottom { bottom: 4px; background: linear-gradient(0deg, rgba(43, 22, 12, 0.25), rgba(43, 22, 12, 0)); }
.reel-dividers { position: absolute; inset: 5px; pointer-events: none; z-index: 3; display: flex; justify-content: space-evenly; }
.reel-dividers span { width: 2.5px; height: 100%; background: rgba(255, 240, 200, 0.28); }

.reel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; position: relative; z-index: 1; perspective: 520px; }
.reel-cell {
  position: relative; aspect-ratio: 1 / 1; cursor: pointer;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf5 72%, #f4e6c2 100%);
  border: 2.5px solid #19110d; border-radius: 10px;
  box-shadow: inset 0 0 0 2px #fff, 0 3px 0 rgba(25, 17, 13, 0.42);
  display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden;
  transition: transform 0.12s cubic-bezier(0.22, 1.4, 0.36, 1), box-shadow 0.12s ease, border-color 0.12s ease;
}
.reel-cell.spinning { animation: paperCardFlip 0.15s linear infinite; }
@keyframes paperCardFlip {
  0%   { transform: rotateX(0deg) scale(0.97); }
  50%  { transform: rotateX(54deg) scale(0.94); }
  100% { transform: rotateX(0deg) scale(0.97); }
}
/* 任天堂 Action Command 听牌红白星形拍击靶心提示！ */
.reach-target-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 9;
  pointer-events: none;
  padding: 6px 14px; border-radius: 999px;
  background: linear-gradient(180deg, #ff4d4d 0%, #c81e1e 100%);
  border: 3px solid #fffef5; outline: 3px solid #19110d;
  box-shadow: 0 5px 0 #19110d, 0 0 24px rgba(253, 224, 71, 0.95);
  color: #fffef5; font-family: var(--font-display); font-size: 16px; white-space: nowrap;
  animation: reachSlamPop 0.36s ease-in-out infinite alternate;
}
.reach-ring {
  position: absolute; inset: -10px; border-radius: 999px;
  border: 3px solid #fde047; opacity: 0.9;
  animation: reachRingShrink 0.55s linear infinite;
}
@keyframes reachSlamPop { 0% { transform: translate(-50%, -50%) scale(0.95); } 100% { transform: translate(-50%, -50%) scale(1.08); } }
@keyframes reachRingShrink { 0% { transform: scale(1.38); opacity: 0.25; } 100% { transform: scale(0.94); opacity: 1; } }
.reel-cell:hover:not(.spinning):not(.is-frozen):not(.is-blocked) {
  transform: translateY(-2px); border-color: #f59e0b;
  box-shadow: 0 0 0 2.5px #fde047, 0 3px 0 rgba(43, 22, 12, 0.4);
}
.reel-cell img { width: 68%; height: 68%; object-fit: contain; filter: drop-shadow(0 1.5px 0 #fff); margin-bottom: 6px; }
.reel-cell .cell-name {
  position: absolute; bottom: 1px; left: 2px; right: 2px; text-align: center;
  font-size: 10.5px; font-weight: 900; color: #382012; text-shadow: 0 1px 0 #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reel-cell.sym-crown { background: radial-gradient(circle at 50% 35%, #fffce0, #ffd54f); border-color: #b45309; }
.reel-cell.sym-ink { background: radial-gradient(circle at 50% 40%, #5b2c8a, #24103a); }
.reel-cell.sym-ink .cell-name { color: #f3e8ff; text-shadow: none; }
.reel-cell.spinning img { animation: blurSpin 0.085s linear infinite; opacity: 0.78; }
.reel-cell.brake { animation: paperFlipBrake 0.24s cubic-bezier(0.34, 1.56, 0.64, 1); }
.reel-cell.anticipate { border-color: #ef4444 !important; box-shadow: 0 0 0 3px #fde047, inset 0 0 12px rgba(254, 240, 138, 0.85); }
.reel-cell.reach-target {
  border-color: #ef4444 !important;
  background: radial-gradient(circle at 50% 42%, #fffbeb, #fde047 85%) !important;
  box-shadow: 0 0 0 3.5px #ef4444, 0 0 18px rgba(250, 204, 21, 0.95) !important;
  transform: scale(1.07); z-index: 6;
}
.reel-cell.hit { border-color: #f59e0b; box-shadow: 0 0 0 3px #fde047, inset 0 0 12px rgba(253, 224, 71, 0.65); animation: boing 0.34s ease; }
.reel-cell.hit-ink { border-color: #a855f7; box-shadow: 0 0 0 3px #d8b4fe; animation: shake 0.35s ease; }
.cell-smart-badge {
  position: absolute; top: 2px; right: 2px; z-index: 4;
  padding: 0 4px; border-radius: 5px; border: 1.5px solid #2b160c;
  font-size: 8.5px; font-weight: 900; line-height: 1.25; pointer-events: none;
  box-shadow: 0 1px 0 rgba(43, 22, 12, 0.45);
}
.cell-smart-badge.upgrade { background: linear-gradient(180deg, #fef08a, #f59e0b); color: #451a03; }
.cell-smart-badge.synergy { background: linear-gradient(180deg, #bae6fd, #38bdf8); color: #082f49; }
.reel-cell.hold-hint::before {
  content: "📌"; position: absolute; top: 2px; left: 3px; z-index: 4;
  font-size: 10px; opacity: 0.6; animation: holdHintPulse 1.4s ease-in-out infinite;
}
@keyframes holdHintPulse { 0%, 100% { opacity: 0.25; transform: scale(0.9); } 50% { opacity: 0.88; transform: scale(1.12); } }
.reel-cell.is-held {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 2.5px #fde047, 0 2px 8px rgba(245, 158, 11, 0.55);
}
.reel-cell.is-held::before {
  content: "📌锁"; position: absolute; top: 2px; left: 2px; z-index: 5;
  background: #fde047; color: #451a03;
  border: 1.5px solid #2b160c; border-radius: 5px; padding: 0 4px;
  font-size: 8.5px; font-weight: 900; line-height: 1.25;
}
.reel-cell.is-locked::after { content: "🍞"; position: absolute; top: 2px; right: 3px; font-size: 12px; }
.reel-cell.is-frozen { background: linear-gradient(135deg, #e0f2fe, #7dd3fc) !important; border-color: #2563eb !important; }
.reel-cell.is-frozen::after { content: "❄️"; position: absolute; top: 2px; right: 3px; font-size: 13px; }
.reel-cell.is-blocked { border-color: #ef4444 !important; }
.reel-cell.is-blocked img { filter: grayscale(1) brightness(0.62); }
.reel-cell.is-blocked::after {
  content: "✂️"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(-45deg, rgba(185, 28, 28, 0.55) 0 7px, rgba(43, 22, 12, 0.6) 7px 14px);
  font-size: 26px; text-shadow: 0 2px 3px rgba(0, 0, 0, 0.75);
}
.reel-cell.is-emperor { background: radial-gradient(circle, #fff9d6, #facc15) !important; border-style: dashed !important; }
.reel-cell.aimable { cursor: crosshair; box-shadow: 0 0 0 3.5px #4ade80; }
.ink-glyph { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 38% 35%, #9333ea, #1e0b36 75%); border: 2px solid #d8b4fe; display: flex; align-items: center; justify-content: center; font-size: 16px; margin-bottom: 6px; }
.line-svg { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); pointer-events: none; z-index: 4; }
.slot-banner {
  position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); z-index: 6;
  background: #2b160c; color: #ffe57f; border: 2px solid #fde047; border-radius: 999px;
  padding: 2px 10px; font-family: var(--font-display); font-size: 12px; white-space: nowrap;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}

/* 大号剪纸红樱桃拉杆（支持点击与按住往下拽出棘轮声！） */
.lever-mount {
  position: relative; height: 200px; width: 44px; display: flex; align-items: center; justify-content: center;
  cursor: grab; perspective: 230px; touch-action: none;
}
.lever-mount:active { cursor: grabbing; }
.lever-base {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 26px; height: 50px;
  background: linear-gradient(90deg, #e7b944, #fff0a6 55%, #c78f24);
  border: 2.5px solid #2b160c; border-left: none; border-radius: 0 13px 13px 0;
  box-shadow: 0 3.5px 0 #2b160c; z-index: 1;
}
.lever-base::after { content: ""; position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 7px; height: 7px; border-radius: 50%; background: #2b160c; }
.lever-arm { position: absolute; left: 8px; top: 18px; width: 30px; height: 80px; transform-origin: 50% 80px; transform: rotateX(0deg); transition: transform 0.14s ease; z-index: 2; }
.lever-mount.dragging .lever-arm { transition: none; }
.lever-mount:hover:not(.dragging) .lever-arm { transform: rotateX(-22deg) scale(1.06); }
.lever-mount.pulled .lever-arm { animation: leverPullAnim 0.42s cubic-bezier(0.28, 0.08, 0.24, 1.35); }
.lever-shaft { position: absolute; left: 10px; top: 12px; width: 8px; height: 68px; background: linear-gradient(90deg, #cbd5e1, #ffffff 50%, #94a3b8); border: 2px solid #2b160c; border-radius: 5px; }
.lever-knob {
  position: absolute; left: -1px; top: -12px; width: 32px; height: 32px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ff9ea8 0%, #ef4444 48%, #b91c1c 100%);
  border: 2.5px solid #2b160c; box-shadow: 0 4px 0 rgba(43, 22, 12, 0.65);
}
.lever-knob::after { content: ""; position: absolute; left: 6px; top: 5px; width: 8px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); transform: rotate(-28deg); }
.lever-tag {
  position: absolute; bottom: 8px; left: 2px; background: #fffdf5;
  border: 2px solid #2b160c; border-radius: 7px; padding: 1px 5px;
  font-family: var(--font-display); font-size: 10.5px; color: #2b160c;
  box-shadow: 0 2px 0 #2b160c; white-space: nowrap;
}

/* 内嵌宽敞「🎁 收获全貌 & 技能预览窗」（不再飘在舞台上，直接舒展在左侧大机台内！） */
.machine-deck { display: block; padding: 0 9px 7px; }
.loot-inline-box {
  position: relative;
  width: 100%; background-color: #ffffff;
  background-image: var(--paper-grain);
  border: 2.5px solid #19110d; border-radius: 6px;
  box-shadow: 0 3px 0 #19110d; overflow: hidden;
  display: flex; flex-direction: column;
}
/* 任天堂相册四角卡角贴 */
.loot-inline-box::before, .loot-inline-box::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none; z-index: 5;
  background: #2b211b; opacity: 0.72;
}
.loot-inline-box::before { top: -7px; left: -7px; transform: rotate(45deg); }
.loot-inline-box::after  { bottom: -7px; right: -7px; transform: rotate(45deg); }
.chute-awning { height: 6px; width: 100%; background: repeating-linear-gradient(90deg, #ef4444 0px, #ef4444 10px, #fffef8 10px, #fffef8 20px); border-bottom: 1.5px solid #2b160c; }
.chute-tray {
  width: 100%; min-height: 112px; padding: 7px 8px;
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
}
.loot-idle-box { text-align: center; display: flex; flex-direction: column; gap: 3px; padding: 8px 4px; }
.loot-idle-box strong { font-family: var(--font-display); font-size: 13px; color: #451a03; }
.loot-idle-box span { font-size: 10.5px; font-weight: 800; color: #8c6642; }
.inline-loot-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-family: var(--font-display); font-size: 12.5px; color: #b45309; }
.inline-loot-owner { font-size: 10px; font-weight: 900; padding: 0 6px; border-radius: 999px; background: #fef08a; border: 1.5px solid #2b160c; color: #3a1a05; }
.loot-items-grid { display: grid; grid-template-columns: 1fr; gap: 5px; }
.loot-items-grid.dual { grid-template-columns: 1fr 1fr; }
.loot-item-tile {
  display: flex; align-items: center; gap: 8px; padding: 5px 7px;
  background: #fffcf0; border: 2px solid #2b160c; border-radius: 11px;
  box-shadow: 0 2px 0 rgba(43, 22, 12, 0.22);
}
.loot-items-grid.dual .loot-item-tile { flex-direction: column; text-align: center; gap: 3px; padding: 5px 4px; }
.loot-item-art {
  position: relative; width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px;
  background: radial-gradient(circle, #fffdf0 30%, #fce8a8 100%);
  border: 2px solid #2b160c; display: flex; align-items: center; justify-content: center;
}
.loot-item-art.star-2 { background: radial-gradient(circle, #faf5ff 30%, #d8b4fe 100%); border-color: #6b21a8; }
.loot-item-art.star-3 { background: radial-gradient(circle, #fefce8 25%, #facc15 100%); border-color: #b45309; }
.loot-item-art img { width: 30px; height: 30px; object-fit: contain; }
.loot-star-tag {
  position: absolute; top: -6px; left: -5px; padding: 0 4px; border-radius: 999px;
  background: #fde047; color: #451a03; border: 1.5px solid #2b160c;
  font-size: 8.5px; font-weight: 900; line-height: 1.25;
}
.loot-item-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.loot-item-name { font-family: var(--font-display); font-size: 13px; color: #2b160c; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loot-item-syn {
  display: inline-flex; align-items: center; gap: 3px; align-self: flex-start;
  padding: 0 5px; border-radius: 999px; font-size: 9px; font-weight: 900;
  background: #fef3c7; border: 1.5px solid #2b160c; color: #78350f;
}
.loot-items-grid.dual .loot-item-syn { align-self: center; }
.loot-item-skill { font-size: 9.5px; font-weight: 800; color: #6e4a2e; line-height: 1.22; }
.loot-deltas-row { display: flex; flex-wrap: wrap; gap: 4px; }
.loot-delta-pill {
  font-size: 9.5px; font-weight: 900; padding: 1px 6px; border-radius: 999px;
  border: 1.5px solid #2b160c; background: #dcfce7; color: #14532d;
}
.loot-delta-pill.gold { background: #ffedd5; color: #9a3412; }
.loot-delta-pill.skill { background: #fce7f3; color: #9d174d; }
.loot-syn-unlock {
  padding: 3px 7px; border-radius: 8px;
  background: linear-gradient(90deg, #fef08a, #fde047);
  border: 1.5px solid #2b160c; font-size: 10px; font-weight: 900; color: #451a03;
}

.prop-aim-bar {
  margin: 0 9px 6px; padding: 4px 8px; background: #dcfce7; border: 2px solid #166534; border-radius: 9px;
  display: flex; align-items: center; justify-content: space-between; gap: 4px; font-size: 10.5px; font-weight: 700; color: #14532d; flex-wrap: wrap;
}
.prop-aim-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.prop-aim-actions button, .mini-cancel { border: 1.5px solid var(--ink); border-radius: 6px; padding: 1px 6px; background: #fff7e4; font-size: 10.5px; font-weight: 700; cursor: pointer; }
.mini-cancel { background: #fee2e2; color: #991b1b; }

/* 整宽大号主拍键 */
.spin-row { display: block; padding: 0 9px 7px; }
.btn-main {
  width: 100%; border: 2.5px solid #2b160c; border-radius: 13px; padding: 7px 10px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), 0 4px 0 #2b160c;
  font-family: inherit; transition: transform 0.08s ease;
}
.btn-main:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.04); }
.btn-main:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #2b160c; }
.btn-main:disabled { opacity: 0.48; cursor: not-allowed; }
.btn-spin { background: linear-gradient(180deg, #ffe566 0%, #f59e0b 100%); color: #3a1a05; }
.btn-spin.golden { background: linear-gradient(180deg, #fff59d 0%, #ff5e99 100%); color: #fff; text-shadow: 0 1px 0 #5c0c24; animation: pulseGlow 0.9s ease infinite; }
.btn-spin.reach-slam {
  background: linear-gradient(180deg, #ff6b6b 0%, #dc2626 100%); color: #fffef5;
  text-shadow: 0 1.5px 0 #5b1010; animation: pulseGlow 0.4s ease infinite;
}
.spin-btn-top { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.spin-cost-pill {
  background: #fffdf5; color: #3a1a05; border: 2px solid #2b160c; border-radius: 999px;
  padding: 2px 9px; font-family: var(--font-display); font-size: 12px; line-height: 1.15;
  box-shadow: 0 2px 0 rgba(43, 22, 12, 0.35); white-space: nowrap; text-shadow: none; flex-shrink: 0;
}
.spin-cost-pill.escalated { background: #fee2e2; color: #991b1b; border-color: #991b1b; }
.spin-cost-pill.inserted { animation: coinFlash 0.3s ease; }
.btn-curtain { width: auto; background: linear-gradient(180deg, #f05252 0%, #c81e1e 100%); color: #fffdf5; padding: 10px 22px; }
.btn-label { font-family: var(--font-display); font-size: 15px; line-height: 1.15; white-space: nowrap; }
.btn-label kbd { font-family: ui-monospace, monospace; font-size: 9.5px; background: rgba(43, 22, 12, 0.16); padding: 1px 4px; border-radius: 4px; }
.btn-sub { font-size: 10px; font-weight: 800; opacity: 0.92; margin-top: 2px; }

.pity-hint { margin: 0 9px 5px; padding: 3px 6px; text-align: center; background: #fff3b0; border: 1.5px dashed #b77900; border-radius: 8px; font-size: 10px; font-weight: 800; color: #7c4a00; }

/* 底部道具条 & 常驻熔铸暂存袋 */
.props-bar {
  display: flex; gap: 5px; flex-wrap: wrap; padding: 6px 9px 7px;
  border-top: 2px dashed rgba(43, 22, 12, 0.22);
}
.prop-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px 3px 5px;
  background: #fffef9;
  border: 2px solid #2b160c; border-radius: 999px;
  font-size: 11px; font-weight: 800; color: #2b160c; cursor: pointer;
  box-shadow: 0 2px 0 #2b160c;
}
.prop-chip:hover { background: #fef08a; transform: translateY(-1px); }
.prop-chip img { width: 17px; height: 17px; object-fit: contain; }
.prop-chip.active { background: #4ade80; border-color: #14532d; }
.prop-cnt { background: #2b160c; color: #ffe57f; border-radius: 999px; padding: 0 5px; font-size: 9.5px; }

.bench-box {
  margin: 0 9px 8px;
  background: #fffcf0; border: 2px solid #2b160c; border-radius: 11px;
  padding: 5px 8px; box-shadow: inset 0 2px 4px rgba(43, 22, 12, 0.08);
}
.bench-head { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; font-weight: 900; color: #451a03; margin-bottom: 4px; }
.bag-cnt { background: #2b160c; color: #ffe57f; padding: 0 6px; border-radius: 999px; font-size: 9.5px; }
.bench-list { display: flex; flex-wrap: wrap; gap: 4px; }
.bench-chip {
  display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 5px;
  background: #fffef9; color: #2b160c;
  border: 2px solid #2b160c; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; cursor: pointer; box-shadow: 0 2px 0 #2b160c;
}
.bench-chip:hover { background: #fef08a; transform: translateY(-1px); }
.bench-chip img { width: 16px; height: 16px; object-fit: contain; }

/* v8 左栏底部任天堂实体打孔纸板：剧场 BINGO 邮票卡 + 可插拔纸片徽章架！ */
.bingo-badge-rack {
  margin: auto 9px 9px;
  padding: 7px 8px 8px;
  background:
    radial-gradient(circle at 12px 12px, rgba(43, 22, 12, 0.14) 2px, transparent 2.5px) 0 0 / 18px 18px,
    linear-gradient(180deg, #fffdf4 0%, #f9e6b3 100%);
  border: 2.5px solid #19110d; border-radius: 13px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.8), 0 3px 0 #19110d;
  display: flex; flex-direction: column; gap: 7px;
}
.bingo-head, .badge-head {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 4px;
}
.bingo-head strong, .badge-head strong {
  font-family: var(--font-display); font-size: 12.5px; color: #361d10;
}
.bingo-head span, .badge-head span {
  font-size: 9.5px; font-weight: 800; color: #8c5a2b;
}
.bingo-stamps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
.bingo-stamps.need-2 { grid-template-columns: repeat(2, 1fr); }
.bingo-stamp-slot {
  height: 36px; border-radius: 9px;
  border: 2px dashed rgba(54, 29, 16, 0.35);
  background: rgba(255, 255, 255, 0.65);
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-family: var(--font-display); font-size: 11px; color: rgba(92, 54, 24, 0.45);
}
.bingo-stamp-slot.stamped {
  border-style: solid; border-color: #19110d;
  background: linear-gradient(180deg, #fff9c4, #fde047);
  color: #3a1a05; box-shadow: 0 2px 0 #19110d;
  animation: stampSlam 0.38s cubic-bezier(0.22, 1.45, 0.36, 1);
}
@keyframes stampSlam {
  0%   { transform: scale(1.65) rotate(-14deg); opacity: 0.4; }
  65%  { transform: scale(0.92) rotate(3deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.badge-slots {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
.badge-slot-btn {
  position: relative; padding: 5px 4px; border-radius: 10px;
  border: 2px solid #19110d; background: linear-gradient(180deg, #ffffff, #fef3c7);
  box-shadow: 0 2.5px 0 #19110d; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.badge-slot-btn:hover:not(:disabled) { transform: translateY(-2px); background: #fffbeb; }
.badge-slot-btn:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 1px 0 #19110d; }
.badge-slot-btn.locked {
  border-style: dashed; border-color: rgba(54, 29, 16, 0.36);
  background: rgba(255, 255, 255, 0.42); box-shadow: none; cursor: not-allowed;
}
.badge-pin-ic {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid #19110d; display: flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.badge-pin-name {
  font-family: var(--font-display); font-size: 10px; color: #2b160c;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.badge-slot-btn.locked .badge-pin-name { color: #8c6642; font-size: 9px; }

.theatre-bubble.tut-muted { display: none !important; }

/* ---------------- 右栏顶部：4 人小队各自 2 槽独立装备 & 觉醒技能成长栏 ---------------- */
.rpg-build-dock {
  position: absolute; top: 8px; left: 10px; right: 266px; z-index: 24;
  background-color: rgba(255, 254, 250, 0.96);
  background-image: var(--paper-grain);
  border: 3px solid #19110d; border-top: 4px solid var(--stage-accent); border-radius: 10px;
  padding: 5px 8px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.9), 0 4px 0 #19110d, 0 10px 20px rgba(0, 0, 0, 0.28);
  display: flex; flex-direction: column; gap: 5px;
}
.party-equip-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(126px, 1fr)); gap: 6px;
}
.member-eq-card {
  background: #fffef8; border: 2px solid #2b160c; border-radius: 11px;
  padding: 3px 5px 4px; box-shadow: 0 2px 0 rgba(43, 22, 12, 0.28);
  display: flex; flex-direction: column; gap: 3px;
  transition: transform 0.12s ease, box-shadow 0.16s ease, border-color 0.14s ease;
}
.member-eq-card.is-focus {
  border-color: #f59e0b; background: #fffbeb;
  box-shadow: 0 0 0 2px #fde047, 0 2px 0 #2b160c;
}
.member-eq-card.is-awakened {
  background: linear-gradient(180deg, #fffdf4, #fef3c7);
}
.member-eq-head {
  display: flex; align-items: center; justify-content: space-between; gap: 3px;
  cursor: pointer; padding: 0 1px;
}
.member-eq-who { display: flex; align-items: center; gap: 3px; min-width: 0; font-family: var(--font-display); font-size: 11px; color: #2b160c; }
.member-eq-who img { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.member-eq-who span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.focus-badge {
  font-size: 8.5px; font-weight: 900; padding: 0 4px; border-radius: 999px; white-space: nowrap;
  border: 1px solid #2b160c; background: #fef08a; color: #78350f;
}
.awake-badge {
  font-size: 8px; font-weight: 900; padding: 0 4px; border-radius: 999px; white-space: nowrap;
  border: 1px solid #6b21a8; background: #f3e8ff; color: #6b21a8;
}
.member-eq-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.eq-slot {
  position: relative; height: 40px; border-radius: 8px;
  border: 1.5px dashed rgba(43, 22, 12, 0.34); background: rgba(255, 255, 255, 0.65);
  display: flex; align-items: center; justify-content: center; gap: 2px; padding: 0 3px;
  cursor: pointer; transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.16s ease;
}
.eq-slot.filled { border-style: solid; background: linear-gradient(180deg, #ffffff, #fff5d6); border-color: #2b160c; box-shadow: 0 2px 0 #2b160c; flex-direction: column; gap: 0; }
.eq-slot.star-2 { background: linear-gradient(180deg, #faf5ff, #e9d5ff); border-color: #6b21a8; box-shadow: 0 2px 0 #581c87; }
.eq-slot.star-3 { background: linear-gradient(180deg, #fefce8, #fde047); border-color: #b45309; box-shadow: 0 0 8px rgba(250, 204, 21, 0.8), 0 2px 0 #78350f; }
.eq-slot.fuse-pick { outline: 2.5px solid #22c55e; transform: translateY(-2px) scale(1.05); }
.eq-slot.fuse-target { outline: 2px dashed #f59e0b; }
.eq-slot.slot-lit {
  animation: slotPowerPop 0.62s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 0 2.5px #fde047, 0 0 14px rgba(245, 158, 11, 0.85), 0 2px 0 #2b160c !important;
}
.eq-slot img { width: 22px; height: 22px; object-fit: contain; }
.eq-slot .eq-name { font-size: 8px; font-weight: 800; color: #2b160c; line-height: 1; white-space: nowrap; }
.eq-slot .eq-star { position: absolute; top: 0; left: 2px; font-size: 7.5px; color: #d97706; text-shadow: 0 1px 0 #fff; }
.eq-slot .eq-traits { position: absolute; top: 0; right: 1px; display: flex; gap: 1px; }
.eq-slot .eq-traits img { width: 10px; height: 10px; background: #fff; border-radius: 50%; border: 1px solid #2b160c; }
.eq-empty { font-size: 8.5px; color: rgba(74, 42, 22, 0.42); font-weight: 800; }

.rpg-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: nowrap; overflow: hidden; }
.fuse-tip-inline { font-size: 9px; font-weight: 800; color: #7c5230; white-space: nowrap; flex-shrink: 0; }

.hero-stats-pills { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.stat-pill {
  position: relative; display: inline-flex; align-items: center; gap: 2px;
  padding: 1px 6px; border-radius: 999px;
  background: #fffef9; border: 1.5px solid #2b160c;
  box-shadow: 0 1.5px 0 rgba(43, 22, 12, 0.35);
  font-size: 10px; font-weight: 800; color: #382012; white-space: nowrap;
  transition: transform 0.14s ease, background 0.2s ease;
}
.stat-pill b { font-family: var(--font-display); font-size: 11.5px; color: #2b160c; }
.stat-pill.stat-atk { background: #fff1f2; }
.stat-pill.stat-crit { background: #fefce8; }
.stat-pill.stat-spd { background: #f0f9ff; }
.stat-pill.stat-dodge { background: #ecfdf5; }
.stat-pill.stat-pow { background: #fff7ed; }
.stat-pill.bumped {
  animation: statBumpPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: #fef08a !important;
  box-shadow: 0 0 0 2px #f59e0b, 0 2px 0 #2b160c;
}
.fx-delta-pop {
  position: fixed; z-index: 90; pointer-events: none;
  padding: 1px 7px; border-radius: 999px;
  background: #22c55e; color: #fffef5; border: 2px solid #14532d;
  font-family: var(--font-display); font-size: 12px;
  box-shadow: 0 2px 0 #14532d; white-space: nowrap;
}
.fx-delta-pop.syn-pop { background: #f59e0b; color: #fffef5; border-color: #2b160c; font-size: 12.5px; box-shadow: 0 3px 0 #2b160c; }

.synergy-strip { display: flex; gap: 4px; flex-wrap: nowrap; align-items: center; overflow: hidden; }
.syn-pill {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 9.5px; font-weight: 800; padding: 1px 6px; border-radius: 999px;
  border: 1.5px solid rgba(43, 22, 12, 0.3); background: rgba(255, 255, 255, 0.65); color: #6e4e34;
  transition: transform 0.14s ease, box-shadow 0.16s ease;
}
.syn-pill .syn-eff { font-size: 8.5px; opacity: 0.9; margin-left: 1px; }
.syn-pill.tier-1 { background: #fef08a; border-color: #2b160c; color: #451a03; box-shadow: 0 1.5px 0 #2b160c; }
.syn-pill.tier-2 { background: linear-gradient(180deg, #fde047, #fb923c); border-color: #2b160c; color: #2b160c; box-shadow: 0 0 10px rgba(251, 146, 60, 0.7), 0 1.5px 0 #2b160c; }
.syn-pill.syn-lit {
  animation: slotPowerPop 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 0 2.5px #fde047, 0 0 14px rgba(245, 158, 11, 0.9), 0 1.5px 0 #2b160c !important;
}

@keyframes paperFlipBrake {
  0% { transform: scaleY(0.45) translateY(-5px); }
  62% { transform: scaleY(1.08) translateY(1px); }
  100% { transform: scaleY(1) translateY(0); }
}
@keyframes slotPowerPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.16) translateY(-3px); }
  70% { transform: scale(0.96); }
  100% { transform: scale(1); }
}
@keyframes statBumpPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.14) translateY(-2px); }
  100% { transform: scale(1); }
}

/* 选角难度切换胶囊 */
.diff-switch {
  display: inline-flex; padding: 2px; border-radius: 999px;
  background: rgba(15, 6, 8, 0.65); border: 2px solid #d49b38; gap: 2px;
}
.diff-btn {
  border: none; border-radius: 999px; padding: 5px 10px; cursor: pointer;
  background: transparent; color: #e8cfa4; font-family: var(--font-display); font-size: 12px;
  transition: background 0.15s ease, color 0.15s ease;
}
.diff-btn.active { background: linear-gradient(180deg, #ffe066, #f59e0b); color: #361d10; }
.diff-btn[data-diff="nightmare"].active { background: linear-gradient(180deg, #ff6b6b, #b91c1c); color: #fff8dc; }

/* ---------------- 幕间悬浮开演大横幅（斜纹手撕纸胶带标题 + 剧目主题色！） ---------------- */
.prep-cta {
  position: absolute; left: 50%; top: 138px; transform: translateX(-50%); z-index: 23;
  background-color: rgba(255, 253, 246, 0.96);
  background-image: var(--paper-grain);
  border: 3px solid #19110d; border-radius: 6px;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  padding: 11px 18px 12px; text-align: center;
  box-shadow: 0 8px 0 #19110d, 0 14px 28px rgba(0, 0, 0, 0.45);
  max-width: 420px; width: calc(100% - 80px);
}
.prep-cta-title {
  display: inline-block;
  padding: 3px 16px;
  background: repeating-linear-gradient(-45deg, #1d1816 0 7px, #2b2421 7px 14px);
  border-bottom: 3px solid var(--stage-accent);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  font-family: var(--font-display); font-size: 19px; color: #fffef5;
  text-shadow: 0 2px 0 #000;
}
.prep-cta-sub { font-size: 12px; font-weight: 800; color: #3a2314; margin: 6px 0 9px; line-height: 1.32; }
.btn-launch-big {
  width: 100%; padding: 9px 18px; border-radius: 12px;
  background: linear-gradient(180deg, #ff5f52 0%, #c62828 100%); color: #fff8e7;
  animation: pulseGlow 1.3s ease infinite;
}
.btn-launch-big .btn-label { font-size: 17px; }

/* ---------------- 右栏右上角轻量浮层：审判/Boss 警报 + 契约 + 气泡 ---------------- */
.top-right-rail {
  position: absolute; top: 8px; right: 10px; width: 248px; z-index: 24;
  display: flex; flex-direction: column; gap: 6px; pointer-events: none;
}
.trial-card {
  background: linear-gradient(135deg, #2b1e5a, #171232); color: #f5f3ff;
  border: 2.5px solid #ffd257; border-radius: 12px; padding: 6px 10px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.45);
}
.trial-tag { display: block; font-size: 10px; font-weight: 800; color: #fde047; }
.trial-card strong { display: block; font-family: var(--font-display); font-size: 14.5px; }
.trial-card span:last-child { display: block; font-size: 10.5px; color: #ddd6fe; line-height: 1.3; }

.contracts-float { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; pointer-events: auto; }
.contract-tag {
  font-size: 10px; font-weight: 800; padding: 2px 7px;
  background: #3d2118; color: #ffe599; border: 1.5px solid #ffd257; border-radius: 999px;
}

.theatre-bubble {
  background: rgba(255, 251, 240, 0.96); border: 2.5px solid var(--ink); border-radius: 13px;
  padding: 6px 9px; box-shadow: 0 4px 0 var(--ink);
  display: flex; align-items: center; gap: 7px;
}
.theatre-bubble.pop { animation: boing 0.28s ease; }
.theatre-bubble.combo { background: linear-gradient(135deg, #fff5d6, #ffd4e5); border-color: #db2777; }
.toast-avatar { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.toast-speaker { font-family: var(--font-display); font-size: 12px; color: #9a3412; }
.toast-text { font-size: 11px; line-height: 1.3; font-weight: 600; color: var(--ink); }

/* ---------------- 剧场丝绒卡桌弹窗：英雄实体立绘卡 + 技能塔罗大卡牌 + 道具卡牌 ---------------- */
.modal {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(12, 5, 10, 0.78); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center; padding: 12px;
}
.paper-modal {
  background: var(--paper); border: 4px solid var(--ink); border-radius: 22px;
  box-shadow: 0 10px 0 var(--ink), 0 24px 56px rgba(0, 0, 0, 0.65);
  padding: 14px 18px; max-width: 780px; width: 100%; max-height: 95vh; overflow-y: auto;
}
/* 深红丝绒剧场牌桌（衬托 12 张发亮实体英雄卡牌！） */
.velvet-table {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 210, 87, 0.16), transparent 62%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, #3c1718 0%, #240d10 55%, #1a090c 100%);
  border: 3.5px solid #d49b38;
  box-shadow: inset 0 0 0 2px rgba(255, 232, 156, 0.22), 0 10px 0 #140608, 0 28px 64px rgba(0, 0, 0, 0.72);
  color: #fff6e0;
}
/* 暗夜星紫塔罗牌桌（衬托 3 张发亮传说技能大卡牌！） */
.tarot-table {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(192, 132, 252, 0.22), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 210, 87, 0.14), transparent 55%),
    linear-gradient(180deg, #27153d 0%, #170c26 60%, #10071c 100%);
  border: 3.5px solid #e6b64c;
  box-shadow: inset 0 0 0 2px rgba(255, 230, 145, 0.22), 0 10px 0 #0d0517, 0 28px 64px rgba(0, 0, 0, 0.76);
  color: #fff6e0;
}
.team-modal { max-width: 1140px; }
.contract-modal { max-width: 960px; }
.shop-modal { max-width: 820px; }

.modal-badge {
  display: inline-block; background: var(--ink); color: #ffe57f;
  padding: 2px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 800; margin-bottom: 3px;
}
.gold-badge-tag {
  background: linear-gradient(90deg, #6d2809, #a15214); color: #fff3b0;
  border: 1.5px solid #ffd257; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.paper-modal h1 { margin: 1px 0; font-family: var(--font-display); font-size: 22px; }
.paper-modal h2 { margin: 1px 0 4px; font-family: var(--font-display); font-size: 22px; }
.velvet-table h1, .velvet-table h2, .tarot-table h2 { color: #ffe999; text-shadow: 0 2px 0 #1c0806; }
.modal-sub { margin: 0; font-size: 11.5px; color: #6e4f37; }
.velvet-table .modal-sub, .tarot-table .modal-sub { color: #e6d0b5; }

.team-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.team-title-wrap { display: flex; align-items: center; gap: 10px; }
.team-witch { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45)); }

/* 4人小队职业计数徽章（战/法/辅铁三角一目了然） */
.role-summary-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.role-chip {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 4px 10px; border-radius: 999px; border: 2px solid #1b0a06;
  font-family: var(--font-display); font-size: 13px; box-shadow: 0 2.5px 0 #120604;
}
.role-chip.warrior { background: #fee2e2; color: #991b1b; }
.role-chip.mage    { background: #f3e8ff; color: #6b21a8; }
.role-chip.support { background: #dcfce7; color: #166534; }
.role-chip.count   { background: linear-gradient(180deg, #ffe67a, #f59e0b); color: #361d10; }
.role-chip b { font-size: 14px; }

/* 3 套主机级剧场实景缩略图选关卡片 */
.stage-thumb-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.stage-card {
  position: relative; height: 62px; border: 2.5px solid #8a6024; border-radius: 12px;
  overflow: hidden; cursor: pointer; padding: 0; text-align: left;
  box-shadow: 0 3px 0 #140605; transition: transform 0.12s ease;
}
.stage-card img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.75); }
.stage-card:hover { transform: translateY(-2px); border-color: #ffd257; }
.stage-card.active { border-color: #ffd257; box-shadow: 0 0 0 2.5px #ff4d8d, 0 4px 0 #140605; }
.stage-card.active img { filter: brightness(0.98); }
.stage-card-overlay {
  position: absolute; inset: 0; padding: 5px 10px;
  background: linear-gradient(90deg, rgba(18, 7, 4, 0.85) 0%, rgba(18, 7, 4, 0.16) 100%);
  display: flex; flex-direction: column; justify-content: center; color: #fff8e7;
}
.stage-card-overlay strong { font-family: var(--font-display); font-size: 14px; text-shadow: 0 2px 2px #000; }
.stage-card-overlay span { font-size: 10px; color: #fde6c4; }

/* ---------------- 12 张竖版实体童话英雄立绘卡牌（6×2 牌桌！） ---------------- */
.roster-picker { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; margin-bottom: 10px; padding: 2px; }
.hero-tcg {
  --c1: #b91c1c; --c2: #5b1010; --glow: rgba(255, 190, 120, 0.45);
  position: relative; overflow: hidden; cursor: pointer; text-align: center;
  display: flex; flex-direction: column; padding: 5px 5px 6px;
  border-radius: 13px; border: 2.5px solid #d4a446;
  background: linear-gradient(180deg, var(--c1) 0%, var(--c2) 56%, #fff4d8 56.5%, #f5e2b5 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 245, 200, 0.45), 0 5px 0 #120605, 0 8px 16px rgba(0, 0, 0, 0.42);
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.16s ease, border-color 0.16s ease;
}
.hero-tcg:hover {
  transform: translateY(-6px) scale(1.035); z-index: 4;
  border-color: #fff1a8;
  box-shadow: inset 0 0 0 2px #fff, 0 10px 0 #120605, 0 14px 24px rgba(0, 0, 0, 0.58);
}
.hero-tcg.is-hero {
  transform: translateY(-4px); z-index: 3; border-color: #ffe566;
  box-shadow: 0 0 0 3px #ff4d6d, 0 0 20px rgba(255, 210, 87, 0.72), 0 7px 0 #120605;
}
.hero-tcg.is-partner {
  transform: translateY(-3px); z-index: 2; border-color: #e9d5ff;
  box-shadow: 0 0 0 3px #a855f7, 0 0 18px rgba(192, 132, 252, 0.65), 0 7px 0 #120605;
}

/* 12 位角色专属卡面色系 */
.hero-tcg.theme-crimson  { --c1: #dc2626; --c2: #7f1d1d; --glow: rgba(254, 202, 202, 0.55); }
.hero-tcg.theme-amber    { --c1: #ea580c; --c2: #7c2d12; --glow: rgba(254, 215, 170, 0.55); }
.hero-tcg.theme-slate    { --c1: #475569; --c2: #1e293b; --glow: rgba(186, 230, 253, 0.50); }
.hero-tcg.theme-sapphire { --c1: #2563eb; --c2: #1e3a8a; --glow: rgba(147, 197, 253, 0.58); }
.hero-tcg.theme-rose     { --c1: #e11d48; --c2: #881337; --glow: rgba(254, 205, 211, 0.55); }
.hero-tcg.theme-pink     { --c1: #ec4899; --c2: #831843; --glow: rgba(251, 207, 232, 0.58); }
.hero-tcg.theme-gold     { --c1: #d97706; --c2: #78350f; --glow: rgba(254, 240, 138, 0.60); }
.hero-tcg.theme-purple   { --c1: #7e22ce; --c2: #3b0764; --glow: rgba(233, 213, 255, 0.55); }
.hero-tcg.theme-cocoa    { --c1: #a16207; --c2: #451a03; --glow: rgba(253, 230, 138, 0.52); }
.hero-tcg.theme-emerald  { --c1: #16a34a; --c2: #14532d; --glow: rgba(187, 247, 208, 0.52); }
.hero-tcg.theme-flame    { --c1: #c2410c; --c2: #431407; --glow: rgba(253, 186, 116, 0.60); }
.hero-tcg.theme-midnight { --c1: #334155; --c2: #0f172a; --glow: rgba(253, 224, 71, 0.52); }

/* 全息金属扫光层（悬停卡牌滑过一道彩虹金光！） */
.tcg-sheen {
  position: absolute; inset: -40%; pointer-events: none; z-index: 6;
  background: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, 0.36) 48%, rgba(255, 224, 120, 0.25) 52%, transparent 64%);
  transform: translateX(-75%) rotate(10deg); transition: transform 0.55s ease;
}
.hero-tcg:hover .tcg-sheen, .skill-tcg:hover .tcg-sheen, .prop-tcg:hover .tcg-sheen { transform: translateX(75%) rotate(10deg); }

/* 选中丝带印章（精准嵌在顶部 HP 与 ATK 水晶正中，100% 零遮挡角色帽子！） */
.tcg-ribbon {
  position: absolute; top: 4px; left: 50%; transform: translateX(-50%); z-index: 7;
  padding: 1px 7px; border-radius: 999px; border: 1.5px solid #240c06;
  font-family: var(--font-display); font-size: 9.5px; line-height: 1.15; white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}
.tcg-ribbon.hero    { background: linear-gradient(180deg, #ff6b6b, #dc2626); color: #fff8d6; }
.tcg-ribbon.partner { background: linear-gradient(180deg, #c084fc, #7e22ce); color: #fff8ff; }
.tcg-ribbon.role-warrior { background: linear-gradient(180deg, #ef4444, #b91c1c); color: #fff8dc; }
.tcg-ribbon.role-mage    { background: linear-gradient(180deg, #a855f7, #6b21a8); color: #fff8ff; }
.tcg-ribbon.role-support { background: linear-gradient(180deg, #10b981, #047857); color: #fffef5; }
.tcg-role-pill {
  display: inline-block; padding: 0 5px; border-radius: 999px; border: 1px solid #361d10;
  font-size: 8.5px; font-weight: 900; margin-right: 3px;
}
.tcg-role-pill.warrior { background: #fee2e2; color: #991b1b; }
.tcg-role-pill.mage    { background: #f3e8ff; color: #6b21a8; }
.tcg-role-pill.support { background: #dcfce7; color: #166534; }

/* 顶部浮雕 HP / ATK 双水晶徽章 */
.tcg-top-stats { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; position: relative; z-index: 3; }
.stat-gem {
  padding: 1px 5px; border-radius: 999px; border: 1.5px solid #240c06;
  font-family: var(--font-display); font-size: 10px; line-height: 1.15; color: #fff;
  text-shadow: 0 1px 1px #1b0a06; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.stat-gem.hp  { background: linear-gradient(180deg, #fb7185, #be123c); }
.stat-gem.atk { background: linear-gradient(180deg, #fbbf24, #b45309); }

/* 中央拱形剧场画窗 + 破框立绘 + 起手道具圆章 */
.tcg-art-window {
  position: relative; height: 84px; margin: 0 2px;
  border-radius: 42% 42% 10px 10px / 22% 22% 10px 10px;
  border: 2px solid #f4cf6a; overflow: visible;
  background: radial-gradient(circle at 50% 60%, var(--glow) 0%, rgba(20, 8, 12, 0.72) 85%);
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.48);
  display: flex; align-items: flex-end; justify-content: center;
}
.tcg-art-glow {
  position: absolute; inset: 3px; border-radius: inherit; opacity: 0.45; pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.34) 22%, transparent 25%) 0 0 / 12px 12px,
    repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.16) 0 12deg, transparent 12deg 24deg);
}
.tcg-portrait {
  position: relative; z-index: 2; height: 92px; max-width: 92%; object-fit: contain;
  margin-bottom: -4px; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.45));
  transition: transform 0.16s ease;
}
.hero-tcg:hover .tcg-portrait { transform: translateY(-4px) scale(1.06); }
.tcg-prop-orb {
  position: absolute; right: -3px; bottom: -4px; z-index: 4;
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(180deg, #fffdf0, #f5cf72); border: 2px solid #2d1408;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.tcg-prop-orb img { width: 16px; height: 16px; object-fit: contain; }

/* 鎏金卷轴角色大名牌 */
.tcg-nameplate {
  position: relative; z-index: 3; margin: -5px 4px 3px;
  background: linear-gradient(180deg, #5c2d16 0%, #34160a 100%);
  border: 2px solid #f4cf6a; border-radius: 999px; padding: 1px 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.42);
}
.tcg-nameplate strong { font-family: var(--font-display); font-size: 13.5px; color: #fff5cc; letter-spacing: 0.3px; }

/* 卡面底部战斗方式徽章 & 精炼绝技白话 */
.tcg-body { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 2px; }
.tcg-style-badge {
  display: inline-block; padding: 1px 6px; border-radius: 999px;
  background: rgba(140, 45, 25, 0.13); border: 1px solid rgba(140, 45, 25, 0.25);
  color: #7c2d12; font-size: 9px; font-weight: 800; white-space: nowrap;
}
.tcg-desc {
  margin: 0; font-size: 9px; line-height: 1.24; font-weight: 700; color: #54321c;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.team-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 8px; border-top: 2px dashed rgba(255, 210, 87, 0.28); flex-wrap: wrap;
}
.duo-preview-box { flex: 1; min-width: 280px; }
.duo-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 3px; }
.picked-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 6px;
  background: linear-gradient(180deg, #fff5c8, #ffd666); color: #361d10;
  border: 2px solid #240c06; border-radius: 999px; font-family: var(--font-display); font-size: 13.5px;
}
.picked-pill.partner { background: linear-gradient(180deg, #f3e8ff, #d8b4fe); border-color: #4c1d95; }
.picked-pill img { width: 22px; height: 22px; object-fit: contain; }
.combo-preview { font-size: 11.5px; font-weight: 800; color: #ffe57f; text-shadow: 0 1px 2px #140605; }
.team-btns { display: flex; align-items: center; gap: 8px; }

/* ---------------- 幕间三选一：3 张精装塔罗手绘技能大卡牌！ ---------------- */
.modal-witch-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.modal-witch-img { width: 62px; height: 62px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)); }

.contract-choices {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  padding: 8px 6px 10px; perspective: 900px;
}
.skill-tcg {
  --s1: #92400e; --s2: #451a03; --rim: #ffd257;
  position: relative; overflow: hidden; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; padding: 10px 10px 10px;
  border-radius: 18px; border: 3px solid var(--rim);
  background: linear-gradient(180deg, var(--s1) 0%, var(--s2) 48%, #fff6e0 48.6%, #f4dfb2 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 245, 200, 0.35), 0 8px 0 #100614, 0 18px 34px rgba(0, 0, 0, 0.58);
  transform: rotate(calc((var(--card-i, 1) - 1) * 1.8deg));
  animation: cardDealIn 0.42s cubic-bezier(0.22, 1.15, 0.36, 1) backwards;
  animation-delay: calc(var(--card-i, 0) * 0.08s);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}
.skill-tcg:hover {
  transform: translateY(-12px) scale(1.045) rotate(0deg); z-index: 5;
  border-color: #fff6bd;
  box-shadow: 0 0 0 3px #ffd257, 0 0 30px rgba(255, 210, 87, 0.55), 0 14px 0 #100614, 0 26px 46px rgba(0, 0, 0, 0.7);
}
.skill-tcg.theme-gold     { --s1: #b45309; --s2: #451a03; --rim: #fde047; }
.skill-tcg.theme-amber    { --s1: #c2410c; --s2: #431407; --rim: #fdba74; }
.skill-tcg.theme-crimson  { --s1: #be123c; --s2: #4c0519; --rim: #fda4af; }
.skill-tcg.theme-violet   { --s1: #7e22ce; --s2: #2e1065; --rim: #d8b4fe; }
.skill-tcg.theme-emerald  { --s1: #047857; --s2: #022c22; --rim: #6ee7b7; }
.skill-tcg.theme-sapphire { --s1: #1d4ed8; --s2: #172554; --rim: #93c5fd; }

.skill-tcg-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; position: relative; z-index: 2; }
.skill-rarity-gem {
  padding: 2px 9px; border-radius: 999px; background: rgba(16, 6, 20, 0.72);
  border: 1.5px solid var(--rim); font-family: var(--font-display); font-size: 11.5px; color: #fff6cc;
}
.skill-rarity-code {
  font-family: ui-monospace, monospace; font-size: 9.5px; font-weight: 900; letter-spacing: 0.8px;
  color: var(--rim); text-shadow: 0 1px 2px #000;
}

/* 专属手绘童话纸艺插画大画窗 */
.skill-tcg-art {
  position: relative; width: 100%; aspect-ratio: 16 / 11; border-radius: 12px;
  border: 2.5px solid var(--rim); overflow: hidden; background: #1c0b16;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.55), 0 4px 10px rgba(0, 0, 0, 0.35);
}
.skill-tcg-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.skill-tcg:hover .skill-tcg-art img { transform: scale(1.07); }
.skill-tcg-vignette { position: absolute; inset: 0; box-shadow: inset 0 0 18px rgba(16, 6, 20, 0.45); pointer-events: none; }

/* 立体浮雕卡名卷轴横幅 */
.skill-tcg-banner {
  position: relative; z-index: 3; margin: -12px 10px 8px;
  background: linear-gradient(180deg, #5e2c14 0%, #34160a 100%);
  border: 2.5px solid var(--rim); border-radius: 999px; padding: 4px 10px; text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.45);
}
.skill-tcg-banner h3 { margin: 0; font-family: var(--font-display); font-size: 17px; color: #fff7d6; text-shadow: 0 2px 0 #1c0805; }

/* 结构化增益/代价效果槽 */
.skill-tcg-effects { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.eff-box { border-radius: 10px; padding: 6px 8px; border: 1.5px solid; }
.eff-box.gain { background: #ecfdf5; border-color: #16a34a; color: #14532d; }
.eff-box.cost { background: #fef2f2; border-color: #dc2626; color: #7f1d1d; }
.eff-tag { display: inline-block; font-size: 10px; font-weight: 900; margin-bottom: 2px; }
.eff-box p { margin: 0; font-size: 11.5px; font-weight: 800; line-height: 1.32; }

.skill-tcg-quote {
  margin-top: auto; padding: 6px 4px 7px; border-top: 1.5px dashed rgba(56, 32, 18, 0.25);
  font-size: 10.5px; color: #6e4f37; font-style: italic; text-align: center; line-height: 1.3;
}
.skill-tcg-pick {
  margin-top: 2px; padding: 5px 8px; border-radius: 999px; text-align: center;
  background: linear-gradient(180deg, #ffe066, #f59e0b); border: 2px solid #361d10;
  font-family: var(--font-display); font-size: 13px; color: #361d10;
  box-shadow: 0 2px 0 #361d10; transition: filter 0.15s ease;
}
.skill-tcg:hover .skill-tcg-pick { filter: brightness(1.08); }

/* ---------------- 后台商店：6 张迷你道具工具卡牌 ---------------- */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.prop-tcg {
  position: relative; overflow: hidden; cursor: pointer; text-align: center;
  display: flex; flex-direction: column; align-items: center; padding: 8px 8px 9px;
  border-radius: 14px; border: 2.5px solid #d4a446;
  background: linear-gradient(180deg, #613018 0%, #3a1a0d 46%, #fff6e0 46.5%, #f3dea9 100%);
  box-shadow: 0 5px 0 #140605, 0 10px 18px rgba(0, 0, 0, 0.42);
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.prop-tcg:hover:not(:disabled) { transform: translateY(-5px) scale(1.03); border-color: #fff2a6; }
.prop-tcg:disabled { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.5); }
.prop-tcg-price {
  align-self: flex-end; padding: 1px 8px; border-radius: 999px;
  background: linear-gradient(180deg, #ffe066, #f59e0b); border: 1.5px solid #240c06;
  font-family: var(--font-display); font-size: 11.5px; color: #361d10;
}
.prop-tcg-art {
  width: 56px; height: 56px; margin: 2px 0 6px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 160, 0.48), rgba(20, 8, 5, 0.5));
  border: 2px solid #f4cf6a; display: flex; align-items: center; justify-content: center;
}
.prop-tcg-art img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4)); }
.prop-tcg-name { font-family: var(--font-display); font-size: 14.5px; color: #361d10; margin-bottom: 3px; }
.prop-tcg-desc { margin: 0; font-size: 10.5px; font-weight: 700; color: #634128; line-height: 1.3; }

.modal-foot { display: flex; justify-content: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pill-btn {
  border: 2px solid var(--ink); border-radius: 999px; background: #fff9eb; color: var(--ink);
  padding: 6px 14px; font-size: 12.5px; font-weight: 800; cursor: pointer; box-shadow: 0 2px 0 var(--ink);
}
.pill-btn:hover:not(:disabled) { background: #ffe99e; }
.pill-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.pill-btn.dark-pill {
  background: rgba(255, 244, 214, 0.14); color: #ffe9b5; border-color: #d4a446;
  box-shadow: 0 3px 0 #140605;
}
.pill-btn.dark-pill:hover:not(:disabled) { background: rgba(255, 224, 120, 0.28); color: #fff; }

@keyframes cardDealIn {
  0% { opacity: 0; transform: translateY(34px) rotateY(-22deg) scale(0.88); }
  100% { opacity: 1; transform: translateY(0) rotate(calc((var(--card-i, 1) - 1) * 1.8deg)) scale(1); }
}

.end-modal { text-align: center; max-width: 560px; }
.end-stars { font-size: 36px; margin: 4px 0; }
.end-line { font-size: 14px; color: #6e4f37; margin: 6px 0 12px; }
.end-mvp {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: #fff3cc; border: 2.5px solid var(--ink); border-radius: 14px; padding: 10px 14px; margin-bottom: 12px;
}
.mvp-pic { width: 64px; height: 78px; object-fit: contain; }
.end-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.stat-box { background: #fffdf5; border: 2px solid var(--ink); border-radius: 10px; padding: 7px 4px; }
.stat-box strong { display: block; font-family: var(--font-display); font-size: 20px; }
.stat-box span { font-size: 10.5px; color: #7a5c44; }

/* ---------------- 全屏弹射特效层 ---------------- */
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.fx-fly { position: fixed; left: 0; top: 0; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; will-change: transform, opacity; }
.fx-fly img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35)); }
.fx-fly.coin { width: 24px; height: 24px; }
.fx-fly .fx-tag { position: absolute; bottom: -10px; background: #382012; color: #ffe57f; border: 1.5px solid #ffd257; border-radius: 999px; padding: 0 6px; font-family: var(--font-display); font-size: 10px; white-space: nowrap; }
.fx-confetti { position: fixed; width: 9px; height: 7px; border: 1px solid rgba(56, 32, 18, 0.55); border-radius: 2px; will-change: transform, opacity; }
.fx-reward-card {
  position: fixed; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px 5px 7px;
  background: linear-gradient(180deg, #fffdf0 0%, #ffe066 100%);
  border: 2.5px solid var(--ink); border-radius: 999px;
  box-shadow: 0 5px 0 var(--ink), 0 10px 22px rgba(0, 0, 0, 0.36);
  font-family: var(--font-display); font-size: 14px; color: var(--ink); white-space: nowrap;
}
.fx-reward-card.big { background: linear-gradient(180deg, #fff2b2 0%, #ff6b9d 100%); color: #fff; text-shadow: 0 2px 0 #5b1124; font-size: 16px; }
.fx-reward-card img { width: 26px; height: 26px; object-fit: contain; }

@keyframes boing { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes blurSpin { 0% { transform: translateY(-7px); } 100% { transform: translateY(7px); } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 3px 0 var(--ink), 0 0 0 0 rgba(255, 210, 87, 0.7); } 50% { box-shadow: 0 3px 0 var(--ink), 0 0 0 9px rgba(255, 210, 87, 0); } }
@keyframes bulbChase { 0%, 100% { opacity: 0.45; transform: scale(0.86); } 50% { opacity: 1; transform: scale(1.16); } }
@keyframes bulbJackpot { 0%, 100% { opacity: 1; background: #fff; transform: scale(1.22); } 50% { opacity: 0.7; background: #ff5ca8; transform: scale(0.95); } }
@keyframes leverPullAnim { 0% { transform: rotateX(0deg); } 36% { transform: rotateX(-165deg); } 70% { transform: rotateX(12deg); } 100% { transform: rotateX(0deg); } }
@keyframes machineSquish { 0% { transform: scale(1, 1); } 30% { transform: scale(1.03, 0.96); } 68% { transform: scale(0.99, 1.02); } 100% { transform: scale(1, 1); } }
@keyframes machineWin { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-4px) scale(1.03); } 100% { transform: translateY(0) scale(1); } }
@keyframes coinFlash { 0%, 100% { filter: brightness(1); } 45% { filter: brightness(1.45); transform: scale(1.07); } }
@keyframes rewardPopOut { 0% { transform: translateY(-16px) scale(0.45); opacity: 0; } 65% { transform: translateY(2px) scale(1.1); opacity: 1; } 100% { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes reelBrake { 0% { transform: translateY(-6px) scale(1.04, 0.94); } 55% { transform: translateY(2px) scale(0.97, 1.03); } 100% { transform: translateY(0) scale(1); } }

/* ================ v7 任天堂《纸片玛利欧 RPG》立体书开场 + 炫酷八角折纸卡 + 互动教学 ================ */

/* 1) 开场 3D 精装立体童话书封面覆层 */
.book-intro-overlay {
  position: fixed; inset: 0; z-index: 95;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0 18px, transparent 18px 36px),
    radial-gradient(ellipse at 50% 42%, #b91c1c 0%, #6b1114 55%, #2c080a 100%);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
.book-intro-overlay.opening { pointer-events: none; }
.book-intro-overlay.faded { opacity: 0; visibility: hidden; pointer-events: none; }
.book-confetti-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image:
    radial-gradient(circle at 12% 20%, #fde047 0 6px, transparent 7px),
    radial-gradient(circle at 86% 18%, #38bdf8 0 6px, transparent 7px),
    radial-gradient(circle at 22% 82%, #ff6ba9 0 7px, transparent 8px),
    radial-gradient(circle at 78% 76%, #4ade80 0 6px, transparent 7px);
}
.storybook-stage { perspective: 1700px; width: min(760px, 92vw); }
.storybook-3d {
  position: relative; width: 100%; height: min(560px, 84vh);
  transform-style: preserve-3d;
  animation: bookFloatIn 0.65s cubic-bezier(0.22, 1.25, 0.36, 1) both;
}
@keyframes bookFloatIn {
  0%   { opacity: 0; transform: translateY(34px) rotateX(18deg) scale(0.92); }
  100% { opacity: 1; transform: translateY(0) rotateX(4deg) scale(1); }
}
.book-back-pages {
  position: absolute; inset: 10px 6px 10px 18px; border-radius: 10px 22px 22px 10px;
  background: linear-gradient(90deg, #e7d4a8, #fffcf0 12%, #fff8e2 92%, #d8c08e);
  border: 4px solid #19110d;
  box-shadow: 12px 18px 0 rgba(0, 0, 0, 0.42), 0 28px 60px rgba(0, 0, 0, 0.65);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.book-inside-glow { position: relative; width: 92%; height: 88%; border-radius: 14px; overflow: hidden; border: 3px solid #19110d; }
.book-inside-preview { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.06); }
.book-inside-caption {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  padding: 6px 18px; border-radius: 999px; background: #fde047; color: #2b160c;
  border: 3px solid #19110d; font-family: var(--font-display); font-size: 18px;
  box-shadow: 0 4px 0 #19110d;
}
.book-cover {
  position: absolute; inset: 0; border-radius: 12px 24px 24px 12px;
  transform-origin: 0% 50%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 22px, transparent 22px 44px),
    linear-gradient(155deg, #e11d2a 0%, #a5111b 58%, #6d0b14 100%);
  border: 4.5px solid #19110d;
  box-shadow: inset 0 0 0 5px #f5b93b, 0 12px 0 #19110d, 0 28px 54px rgba(0, 0, 0, 0.6);
  padding: 16px 18px 16px 34px;
  display: flex; flex-direction: column;
  transition: transform 0.85s cubic-bezier(0.32, 0.02, 0.24, 1);
}
.storybook-3d.opened .book-cover {
  transform: rotateY(-158deg);
}
.book-spine {
  position: absolute; left: 0; top: 0; bottom: 0; width: 22px;
  background: linear-gradient(90deg, #4b070c, #991b1b 55%, #f5b93b 88%, #19110d 100%);
  border-right: 3px solid #19110d; border-radius: 8px 0 0 8px;
}
.book-cover-frame {
  position: relative; flex: 1; display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, #fffdf4, #fce7aa);
  border: 3.5px solid #19110d; border-radius: 16px;
  padding: 12px 16px 14px; box-shadow: inset 0 0 0 3px #f5b93b;
}
.book-ribbon-top {
  align-self: center; padding: 3px 14px; border-radius: 999px;
  background: #19110d; color: #fde047; border: 2px solid #f5b93b;
  font-family: ui-monospace, monospace; font-size: 11px; font-weight: 900; letter-spacing: 1px;
}
.book-sky-window {
  position: relative; flex: 1; border-radius: 14px; overflow: hidden;
  border: 3.5px solid #19110d;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.42) 22%, transparent 24%) 0 0 / 26px 26px,
    linear-gradient(180deg, #38bdf8 0%, #7dd3fc 65%, #4ade80 65.5%, #22c55e 100%);
  box-shadow: inset 0 6px 18px rgba(0, 0, 0, 0.16);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 10px 12px 4px;
}
.book-logo-stack { position: relative; z-index: 3; text-align: center; }
.book-logo-sub {
  display: inline-block; padding: 2px 12px; border-radius: 999px;
  background: #fffef5; border: 2.5px solid #19110d; color: #b91c1c;
  font-family: var(--font-display); font-size: 14px; box-shadow: 0 3px 0 #19110d;
}
.book-logo-main {
  margin: 4px 0 0; font-family: var(--font-display); font-size: clamp(44px, 6vw, 62px); line-height: 1.02;
  background: linear-gradient(180deg, #fff566 0%, #ff9d1c 56%, #ef2b24 100%);
  -webkit-background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #19110d) drop-shadow(0 0 2px #19110d) drop-shadow(0 7px 0 rgba(25, 17, 13, 0.38));
  letter-spacing: 2px;
}
.book-logo-en {
  display: inline-block; margin-top: 2px; padding: 1px 10px; border-radius: 6px;
  background: #19110d; color: #fffef5; font-size: 11px; font-weight: 900; letter-spacing: 2px;
}
.book-cover-cast {
  position: relative; z-index: 4; display: flex; align-items: flex-end; justify-content: center; gap: 14px;
  height: 165px; width: 100%;
}
.cast-cutout {
  height: 150px; object-fit: contain;
  filter: drop-shadow(0 8px 6px rgba(25, 17, 13, 0.36));
  animation: castBob 2.4s ease-in-out infinite;
}
.cast-cutout.c-left { height: 144px; transform: rotate(-6deg); animation-delay: 0s; }
.cast-cutout.c-mid  { height: 162px; z-index: 2; animation-delay: 0.35s; }
.cast-cutout.c-right { height: 146px; transform: rotate(5deg); animation-delay: 0.7s; }
@keyframes castBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.book-cover-foot { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.book-pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.book-pills span {
  padding: 2px 10px; border-radius: 999px; background: #fffef5; border: 2px solid #19110d;
  font-size: 11.5px; font-weight: 900; color: #361d10; box-shadow: 0 2px 0 #19110d;
}
.btn-open-book {
  max-width: 420px; padding: 11px 22px; border-radius: 14px;
  background: linear-gradient(180deg, #ff5e4d 0%, #d91c1c 100%);
  color: #fffef5; border: 3px solid #19110d;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), 0 5px 0 #19110d, 0 0 24px rgba(253, 224, 71, 0.55);
  animation: pulseGlow 1.3s ease infinite;
}
.btn-open-book .btn-label { font-size: 20px; text-shadow: 0 2px 0 #5b0d0d; }

/* 2) 任天堂官网同款明黄斜纹切角铆钉 ADVICE / ACTION 提示卡（小心女巫破框探出右下角！） */
.nintendo-guide {
  position: fixed; right: 18px; left: auto; bottom: 116px; z-index: 52;
  max-width: 420px; padding: 9px 14px 9px 14px;
  background:
    radial-gradient(circle at 7px 7px, #19110d 1.8px, transparent 2.1px),
    radial-gradient(circle at calc(100% - 7px) 7px, #19110d 1.8px, transparent 2.1px),
    radial-gradient(circle at 7px calc(100% - 7px), #19110d 1.8px, transparent 2.1px),
    radial-gradient(circle at calc(100% - 7px) calc(100% - 7px), #19110d 1.8px, transparent 2.1px),
    repeating-linear-gradient(-45deg, #fde047 0 10px, #f8cc1b 10px 20px);
  border: 3.5px solid #19110d; border-radius: 6px;
  box-shadow: 0 6px 0 #19110d, 0 12px 26px rgba(0, 0, 0, 0.45);
  display: flex; align-items: center; gap: 10px;
  animation: boing 0.34s ease;
}
.guide-avatar {
  order: 3;
  width: 58px; height: 58px; margin: -12px -10px -14px 0;
  object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 4px 4px rgba(0, 0, 0, 0.36));
}
.guide-body { order: 1; flex: 1; min-width: 0; }
.guide-step-tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px; margin-bottom: 4px;
  background: #19110d; color: #fde047; border: none;
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.4px;
}
.guide-text {
  font-size: 13.5px; font-weight: 900; color: #19110d; line-height: 1.32;
  padding-top: 4px; border-top: 2px dotted rgba(25, 17, 13, 0.52);
}
.guide-skip {
  order: 2; align-self: flex-start; border: 2px solid #19110d; border-radius: 4px;
  background: #ffffff; color: #19110d; padding: 2px 7px;
  font-size: 10px; font-weight: 900; cursor: pointer; flex-shrink: 0;
  box-shadow: 0 2px 0 #19110d;
}
.guide-skip:hover { background: #fee2e2; color: #991b1b; }
.nintendo-finger {
  position: fixed; z-index: 56; pointer-events: none;
  font-size: 36px; line-height: 1;
  filter: drop-shadow(0 4px 0 #19110d) drop-shadow(0 0 12px rgba(253, 224, 71, 0.95));
  animation: fingerPoke 0.65s ease-in-out infinite;
}
@keyframes fingerPoke {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  50%      { transform: translate(-50%, -12px) scale(1.14); }
}
.guide-pulse-ring {
  outline: 3.5px solid #fde047 !important;
  box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.85), 0 0 22px rgba(253, 224, 71, 0.95) !important;
}

/* 3) 选角牌桌升级：本幕固定 NPC 尊贵红金折纸卡 + 八角 3D 全息英雄卡 + 未激活火漆封蜡卡 */
.unlock-all-btn {
  padding: 4px 10px; border-radius: 999px; border: 2px solid #d49b38;
  background: rgba(20, 8, 6, 0.72); color: #fde68a;
  font-family: var(--font-display); font-size: 11.5px; cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}
.unlock-all-btn:hover { background: rgba(253, 224, 71, 0.22); transform: translateY(-1px); }
.unlock-all-btn.unlocked { background: linear-gradient(180deg, #4ade80, #16a34a); color: #052e16; border-color: #19110d; }

.npc-stage-bar {
  display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 9px; margin-bottom: 9px; align-items: stretch;
}
.fixed-npc-banner {
  position: relative; display: flex; align-items: center; gap: 9px; padding: 6px 10px;
  border-radius: 13px; border: 2.5px solid #fde047;
  background: linear-gradient(135deg, #7f1d1d 0%, #4c0519 60%, #2e1065 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 240, 180, 0.35), 0 4px 0 #140605;
  overflow: hidden;
}
.fixed-npc-pic { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.45)); }
.fixed-npc-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.fixed-npc-tag {
  align-self: flex-start; padding: 0 7px; border-radius: 999px;
  background: #fde047; color: #3a1a05; border: 1.5px solid #19110d;
  font-family: var(--font-display); font-size: 10px;
}
.fixed-npc-name { font-family: var(--font-display); font-size: 15px; color: #fff8dc; line-height: 1.1; }
.fixed-npc-desc { font-size: 9.5px; color: #fde6c4; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.npc-stage-bar .stage-thumb-row { margin-bottom: 0; }

/* 任天堂官网八角斜切 + 3D 鼠标倾角全息折纸英雄卡！ */
.roster-picker { perspective: 1000px; }
.hero-tcg {
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  border-radius: 4px;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.hero-tcg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 6; opacity: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, 0.52), rgba(253, 224, 71, 0.16) 36%, transparent 64%);
  transition: opacity 0.18s ease;
}
.hero-tcg:hover:not(.is-locked-hero)::after { opacity: 1; }
.hero-tcg:hover:not(.is-locked-hero) {
  transform: translateY(-7px) scale(1.045) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
/* 未激活英雄：牛皮纸暗剪影 + 100% 鲜红亮金立体火漆封蜡印章（不压暗封蜡本身！） */
.hero-tcg.is-locked-hero {
  cursor: not-allowed;
  border-color: #8c6a43;
  background: linear-gradient(180deg, #3e2d24 0%, #241914 56%, #d9cbb0 56.5%, #c5b393 100%);
}
.hero-tcg.is-locked-hero .tcg-top-stats,
.hero-tcg.is-locked-hero .tcg-nameplate,
.hero-tcg.is-locked-hero .tcg-body { opacity: 0.62; filter: saturate(0.35); }
.hero-tcg.is-locked-hero .tcg-portrait { filter: brightness(0.18) contrast(1.4) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5)); }
.hero-tcg.is-locked-hero:hover { transform: translateY(-2px) rotate(-1deg); }
.hero-lock-seal {
  position: absolute; left: 50%; top: 43%; transform: translate(-50%, -50%) rotate(-7deg); z-index: 8;
  padding: 4px 11px; border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #ff5e5e, #dc2626 68%, #991b1b 100%);
  border: 2.5px solid #fde047; color: #fffef5;
  font-family: var(--font-display); font-size: 11.5px; white-space: nowrap;
  text-shadow: 0 1.5px 0 #5b0c0c;
  box-shadow: 0 3px 0 #19110d, 0 5px 14px rgba(0, 0, 0, 0.58);
}
.picked-pill.fixed-npc {
  background: linear-gradient(180deg, #ff7a8a, #be123c); color: #fffef5; border-color: #fde047;
}
.member-eq-card.is-fixed-npc {
  border-color: #e11d48;
  background: linear-gradient(180deg, #fff5f7, #ffe4e6);
}
.npc-mini-badge {
  font-size: 8px; font-weight: 900; padding: 0 4px; border-radius: 999px; white-space: nowrap;
  border: 1px solid #19110d; background: #e11d48; color: #fffef5;
}

/* 4) 幕间「🎉 新伙伴撕封蜡加入剧团！」3D 翻牌仪式弹窗 */
.unlock-modal { max-width: 720px; text-align: center; }
.unlock-cards {
  display: flex; justify-content: center; gap: 22px; flex-wrap: wrap;
  margin: 16px 0 10px; perspective: 1100px;
}
.unlock-card-wrap {
  width: 210px; padding: 12px 10px 12px; border-radius: 16px;
  border: 3.5px solid #fde047;
  background: linear-gradient(180deg, #991b1b 0%, #450a0a 52%, #fff8e7 52.5%, #f5dfb0 100%);
  box-shadow: 0 0 28px rgba(253, 224, 71, 0.55), 0 8px 0 #140605;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: unlockFlipIn 0.72s cubic-bezier(0.22, 1.28, 0.36, 1) both;
}
@keyframes unlockFlipIn {
  0%   { opacity: 0; transform: rotateY(-170deg) scale(0.72); }
  65%  { opacity: 1; transform: rotateY(12deg) scale(1.06); }
  100% { opacity: 1; transform: rotateY(0deg) scale(1); }
}
.unlock-card-wrap img { width: 124px; height: 124px; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.4)); }
.unlock-card-name { font-family: var(--font-display); font-size: 20px; color: #2b160c; }
.unlock-card-ult { font-size: 11.5px; font-weight: 800; color: #7c2d12; line-height: 1.3; }

/* ================ v9 任天堂章回体：顶栏小节豆 + 渐进路线卡 + 初见图鉴卡 + 过剧目英雄专场特写 ================ */

/* 顶栏 4 小节进度豆（● ● ○ 👑） */
.cap-play-progress { gap: 6px; }
.section-dots { display: inline-flex; align-items: center; gap: 3px; }
.sec-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid #2b1208; background: rgba(25, 10, 4, 0.45);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 8.5px; line-height: 1; color: #fde68a; text-shadow: none;
}
.sec-dot.done { background: #4ade80; color: #052e16; font-weight: 900; }
.sec-dot.cur  { background: #fde047; color: #3a1a05; box-shadow: 0 0 8px #fef08a; transform: scale(1.16); font-weight: 900; }
.sec-dot.boss { width: 16px; height: 16px; background: #991b1b; color: #fde047; font-size: 9.5px; }
.sec-dot.boss.cur { background: #ef4444; box-shadow: 0 0 10px #fde047; }

/* 左栏 1-1~1-3 节「渐进解锁路线卡」（防止新手指引前信息过载，同时给出清爽的探索目标！） */
.chapter-roadmap-card {
  margin: auto 9px 9px; padding: 8px 9px;
  background: linear-gradient(180deg, #fffdf5 0%, #fce8b2 100%);
  border: 2.5px solid #19110d; border-radius: 13px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.8), 0 3px 0 #19110d;
}
.roadmap-head {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px;
}
.roadmap-head strong { font-family: var(--font-display); font-size: 12.5px; color: #361d10; }
.roadmap-head span { font-size: 9.5px; font-weight: 900; color: #b45309; background: #fef3c7; border: 1px solid #b45309; border-radius: 999px; padding: 0 6px; }
.roadmap-list { display: flex; flex-direction: column; gap: 4px; }
.roadmap-item {
  display: flex; align-items: center; gap: 6px; padding: 4px 7px; border-radius: 8px;
  border: 1.5px solid rgba(54, 29, 16, 0.24); background: rgba(255, 255, 255, 0.55);
  font-size: 10.5px; font-weight: 800; color: #7c5838;
}
.roadmap-item.done { background: #dcfce7; border-color: #16a34a; color: #14532d; }
.roadmap-item.cur  { background: linear-gradient(90deg, #fef08a, #fde047); border: 2px solid #19110d; color: #3a1a05; box-shadow: 0 2px 0 #19110d; }
.roadmap-code {
  font-family: var(--font-display); font-size: 10.5px; padding: 0 5px; border-radius: 6px;
  background: #2b160c; color: #fde047; flex-shrink: 0;
}
.roadmap-item.done .roadmap-code { background: #15803d; color: #fff; }

/* 任天堂式「✨ 新装备 / 新技能 / 新机制初见图鉴卡」 */
.discovery-modal {
  max-width: 470px; text-align: center; padding: 18px 20px 16px;
  background:
    radial-gradient(circle at 50% 24%, rgba(254, 240, 138, 0.52), transparent 55%),
    linear-gradient(180deg, #fffef6 0%, #fef0c7 100%);
  border: 4px solid #19110d;
  box-shadow: inset 0 0 0 3px #f59e0b, 0 10px 0 #19110d, 0 26px 56px rgba(0, 0, 0, 0.68);
  animation: discoveryPop 0.36s cubic-bezier(0.22, 1.35, 0.36, 1);
}
@keyframes discoveryPop {
  0%   { opacity: 0; transform: scale(0.76) translateY(22px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.disc-badge {
  display: inline-block; padding: 3px 13px; border-radius: 999px;
  background: linear-gradient(180deg, #ff5e4d, #dc2626); color: #fffef5;
  border: 2.5px solid #19110d; box-shadow: 0 3px 0 #19110d;
  font-family: var(--font-display); font-size: 13px; margin-bottom: 10px;
}
.disc-art-stage {
  position: relative; width: 132px; height: 132px; margin: 0 auto 8px;
  border-radius: 50%; border: 3.5px solid #19110d;
  background: radial-gradient(circle, #ffffff 18%, #fde047 68%, #f59e0b 100%);
  box-shadow: 0 5px 0 #19110d, 0 0 26px rgba(253, 224, 71, 0.75);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.disc-sunburst {
  position: absolute; inset: -30%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.36) 0 12deg, transparent 12deg 24deg);
  animation: slowSpin 10s linear infinite;
}
@keyframes slowSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.disc-art-img { position: relative; z-index: 2; width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 5px 6px rgba(0, 0, 0, 0.3)); animation: castBob 2s ease-in-out infinite; }
.disc-title { margin: 2px 0 6px; font-family: var(--font-display); font-size: 25px; color: #2b160c; }
.disc-pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.disc-pill {
  padding: 2px 9px; border-radius: 999px; border: 2px solid #19110d;
  background: #fffef5; font-size: 11px; font-weight: 900; color: #7c2d12;
  box-shadow: 0 2px 0 rgba(25, 17, 13, 0.28);
}
.disc-pill.skill { background: #fef08a; color: #451a03; }
.disc-summary {
  padding: 8px 11px; border-radius: 11px; border: 2px solid #19110d;
  background: #fffef9; color: #2b160c; font-size: 13px; font-weight: 800; line-height: 1.42;
  margin-bottom: 8px; box-shadow: inset 0 2px 0 rgba(253, 224, 71, 0.35);
}
.disc-tips {
  margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; text-align: left;
}
.disc-tips li {
  padding: 4px 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.72);
  border: 1.5px dashed rgba(140, 82, 24, 0.4); font-size: 11.5px; font-weight: 700; color: #5c3618; line-height: 1.35;
}
.disc-tips li::before { content: "★ "; color: #d97706; font-weight: 900; }

/* 过剧目「🌟 新英雄专场特写亮相剧场」（斜切聚光 + 超大破框白边立绘 + 台词 + 招式 + GBA 奥义燃条！） */
.spotlight-modal { max-width: 820px; text-align: center; padding: 16px 20px; }
.spotlight-topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.spotlight-pager {
  padding: 3px 11px; border-radius: 999px; background: #fde047; color: #3a1a05;
  border: 2px solid #19110d; font-family: var(--font-display); font-size: 12.5px;
  box-shadow: 0 2px 0 #19110d;
}
.spotlight-stage {
  margin: 12px 0 10px; padding: 14px 16px; border-radius: 18px;
  border: 3.5px solid #fde047;
  background:
    radial-gradient(circle at 24% 50%, rgba(253, 224, 71, 0.34), transparent 52%),
    linear-gradient(125deg, #5b1024 0%, #2a0d38 55%, #160924 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 245, 200, 0.25), 0 8px 0 #12060f;
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: center;
  text-align: left; overflow: hidden; position: relative;
  animation: spotlightSlide 0.42s cubic-bezier(0.22, 1.25, 0.36, 1);
}
@keyframes spotlightSlide {
  0%   { opacity: 0; transform: translateX(36px) scale(0.95); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
.sp-art-col {
  position: relative; height: 224px; border-radius: 16px;
  border: 3px solid #fde047;
  background: radial-gradient(circle at 50% 55%, rgba(255, 248, 196, 0.38), rgba(24, 8, 28, 0.8));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.sp-art-rays {
  position: absolute; inset: -35%;
  background: repeating-conic-gradient(from 0deg, rgba(254, 240, 138, 0.24) 0 10deg, transparent 10deg 20deg);
  animation: slowSpin 12s linear infinite;
}
.sp-portrait {
  position: relative; z-index: 2; height: 198px; max-width: 92%; object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.55));
  animation: castBob 2.2s ease-in-out infinite;
}
.sp-stats-top {
  position: absolute; top: 7px; left: 7px; right: 7px; z-index: 3;
  display: flex; justify-content: space-between;
}
.sp-info-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sp-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-hero-name { font-family: var(--font-display); font-size: 30px; color: #fff7c2; text-shadow: 0 3px 0 #190905; line-height: 1.05; }
.sp-hero-title {
  padding: 2px 10px; border-radius: 999px; background: #fde047; color: #3a1a05;
  border: 2px solid #19110d; font-family: var(--font-display); font-size: 12.5px;
}
.sp-quote {
  padding: 7px 11px; border-radius: 11px; background: rgba(255, 250, 232, 0.96);
  border: 2.5px solid #19110d; color: #361d10; font-size: 13px; font-weight: 800; line-height: 1.38;
  box-shadow: 0 3px 0 #19110d;
}
.sp-kit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sp-kit-box {
  padding: 7px 9px; border-radius: 11px; background: rgba(255, 255, 255, 0.11);
  border: 1.5px solid rgba(253, 224, 71, 0.45); color: #fff8dc;
}
.sp-kit-box small { display: block; font-size: 10px; color: #fde68a; font-weight: 800; margin-bottom: 2px; }
.sp-kit-box strong { display: flex; align-items: center; gap: 5px; font-size: 12.5px; line-height: 1.3; }
.sp-kit-box img { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
.sp-ult-banner {
  padding: 8px 11px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.92), rgba(220, 38, 38, 0.88));
  border: 2.5px solid #fde047; color: #fffef5; box-shadow: 0 3px 0 #190905;
}
.sp-ult-banner strong { display: block; font-family: var(--font-display); font-size: 16px; text-shadow: 0 2px 0 #450a0a; }
.sp-ult-banner span { font-size: 11.5px; font-weight: 700; color: #fef08a; }
.spotlight-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 6px; }
.sp-dot-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 5px;
  border-radius: 999px; border: 2px solid rgba(253, 224, 71, 0.45);
  background: rgba(255, 255, 255, 0.1); color: #fde68a; cursor: pointer;
  font-family: var(--font-display); font-size: 11.5px; transition: transform 0.12s ease;
}
.sp-dot-btn img { width: 22px; height: 22px; object-fit: contain; }
.sp-dot-btn.active {
  background: linear-gradient(180deg, #fff3a0, #f59e0b); color: #3a1a05;
  border-color: #fffef5; transform: scale(1.07); box-shadow: 0 3px 0 #19110d;
}

/* ================ v10 任天堂极简大立绘选角页（少即是多、大卡呼吸感、高级设置折叠！） ================ */
.slim-team-modal {
  max-width: 780px;
  padding: 18px 22px 16px;
  transition: max-width 0.22s ease;
}
.slim-team-modal.wide-4col { max-width: 960px; }
.slim-team-modal.wide-full { max-width: 1020px; }

.slim-team-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.team-title-stack { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.slim-team-header .modal-badge {
  margin-bottom: 0; font-size: 11.5px; padding: 3px 13px; border-radius: 3px;
  background: repeating-linear-gradient(-45deg, var(--stage-accent) 0 7px, var(--stage-accent-dark) 7px 14px);
  color: #fffef5; border: 2px solid #19110d;
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}
.slim-team-header h1 { margin: 0; font-size: 26px; letter-spacing: 0.5px; }

.team-head-right { display: flex; align-items: center; gap: 8px; }
.npc-inline-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 12px 4px 6px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(153, 27, 27, 0.88), rgba(76, 5, 25, 0.92));
  border: 2px solid #fde047; box-shadow: 0 3px 0 #140605;
  cursor: default;
}
.npc-inline-pic {
  width: 30px; height: 30px; object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}
.npc-inline-text { display: flex; flex-direction: column; line-height: 1.1; }
.npc-inline-text small { font-size: 9px; font-weight: 800; color: #fde68a; }
.npc-inline-text strong { font-family: var(--font-display); font-size: 13.5px; color: #fffef5; }

.settings-toggle-btn {
  padding: 7px 12px; border-radius: 999px;
  border: 2px solid rgba(253, 224, 71, 0.42);
  background: rgba(255, 255, 255, 0.08); color: #fde68a;
  font-family: var(--font-display); font-size: 13px; cursor: pointer;
  box-shadow: 0 3px 0 #140605;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.settings-toggle-btn:hover { background: rgba(253, 224, 71, 0.2); border-color: #fde047; transform: translateY(-1px); }
.settings-toggle-btn.active {
  background: linear-gradient(180deg, #fde047, #f59e0b); color: #3a1a05;
  border-color: #fff8d6;
}

/* 折叠高级设置抽屉 */
.team-adv-drawer {
  margin-bottom: 14px; padding: 11px 14px; border-radius: 14px;
  background: rgba(16, 7, 24, 0.66);
  border: 2px solid rgba(253, 224, 71, 0.34);
  display: flex; flex-direction: column; gap: 10px;
}
.team-adv-drawer.hidden { display: none; }
.team-adv-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
}
.team-adv-group { display: inline-flex; align-items: center; gap: 7px; }
.team-adv-label { font-size: 11px; font-weight: 800; color: #fde68a; opacity: 0.9; white-space: nowrap; }
.team-adv-stage-wrap { display: flex; flex-direction: column; gap: 6px; }
.team-adv-drawer .stage-thumb-row { margin-bottom: 0; }
.team-adv-drawer .stage-card { height: 54px; }
.team-adv-drawer .stage-card-overlay span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 自适应大立绘英雄网格：第一剧目 3 张超大精美大卡！ */
.slim-team-modal .roster-picker {
  gap: 16px; margin-bottom: 12px; padding: 6px 4px;
}
.slim-team-modal .roster-picker.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.slim-team-modal .roster-picker.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

/* 极简大立绘英雄卡（砍掉满卡小字与繁杂数值，只留职业章 + 超大白边纸片立绘 + 大名 + 一句话爽点！） */
.hero-tcg.slim-card {
  padding: 10px 10px 12px;
  border-width: 3px;
  background: linear-gradient(180deg, var(--c1) 0%, var(--c2) 64%, #fff8e6 64.5%, #f6e4bc 100%);
}
.roster-picker.cols-3 .hero-tcg.slim-card {
  padding: 12px 12px 14px;
}
.slim-card-head {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 22px; margin-bottom: 6px; position: relative; z-index: 4;
}
.slim-role-chip {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 9px; border-radius: 999px; border: 1.5px solid #1b0a06;
  font-family: var(--font-display); font-size: 11px; line-height: 1.2;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}
.slim-role-chip.warrior { background: #fee2e2; color: #991b1b; }
.slim-role-chip.mage    { background: #f3e8ff; color: #6b21a8; }
.slim-role-chip.support { background: #dcfce7; color: #166534; }

.slim-pick-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 10px; border-radius: 999px; border: 2px solid #1b0a06;
  background: linear-gradient(180deg, #ffe566, #f59e0b); color: #361d10;
  font-family: var(--font-display); font-size: 11.5px; line-height: 1.2;
  box-shadow: 0 2px 0 #140605;
  animation: pickBadgePop 0.25s cubic-bezier(0.22, 1.35, 0.36, 1) both;
}
@keyframes pickBadgePop {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.slim-card .tcg-art-window {
  height: 122px; margin: 0 2px;
  border-radius: 44% 44% 12px 12px / 22% 22% 12px 12px;
  border-width: 2.5px;
}
.roster-picker.cols-3 .slim-card .tcg-art-window {
  height: 158px;
}
.slim-card .tcg-portrait {
  height: 128px; margin-bottom: -5px;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.48));
}
.roster-picker.cols-3 .slim-card .tcg-portrait {
  height: 164px;
}
.slim-card .tcg-nameplate {
  margin: -7px 8px 6px; padding: 3px 10px;
}
.slim-card .tcg-nameplate strong { font-size: 16px; }
.roster-picker.cols-3 .slim-card .tcg-nameplate strong { font-size: 19px; }

.slim-pitch {
  margin: 0; font-size: 12px; font-weight: 800; color: #54321c; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.roster-picker.cols-3 .slim-pitch { font-size: 13.5px; }

/* 低调未解锁伙伴提示条 */
.locked-roster-teaser {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 12px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 248, 220, 0.07);
  border: 1.5px dashed rgba(253, 224, 71, 0.3);
  font-size: 12px; font-weight: 700; color: #e8d5b7;
}
.locked-roster-teaser.hidden { display: none; }
.teaser-action-btn {
  padding: 2px 10px; border-radius: 999px;
  border: 1.5px solid rgba(253, 224, 71, 0.55);
  background: rgba(253, 224, 71, 0.14); color: #fde68a;
  font-family: var(--font-display); font-size: 11.5px; cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}
.teaser-action-btn:hover { background: rgba(253, 224, 71, 0.28); transform: translateY(-1px); }

/* 极简底栏：干净利落，开演按钮成绝对视觉焦点 */
.slim-team-footer {
  padding-top: 12px; align-items: center;
}
.slim-team-footer .duo-preview-box { min-width: 200px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.slim-team-footer .duo-pills { margin-bottom: 0; }
.slim-team-footer .combo-preview { font-size: 12px; }
.slim-team-footer .combo-preview:empty { display: none; }
.btn-start-hero {
  padding: 12px 30px !important;
  font-size: 18px !important;
  border-radius: 999px !important;
}
.btn-start-hero .btn-label { font-size: 18px; letter-spacing: 0.6px; }

/* ================ v11 全终端手机适配（竖屏上剧场+下老虎机 / 横屏掌机双栏 / 全弹窗零裁切） ================ */
@media (hover: none), (max-width: 960px) {
  kbd { display: none !important; }
}

/* 1) 手机竖屏 & 中小屏主舞台重构 */
@media (max-width: 900px) {
  body {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
  }

  .ttyd-topbar {
    position: relative;
    top: auto; left: auto; right: auto;
    height: auto;
    flex-shrink: 0;
    padding: calc(4px + env(safe-area-inset-top)) 6px 4px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border-bottom-width: 2.5px;
  }
  .ttyd-caps {
    width: 100%;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .ttyd-caps::-webkit-scrollbar { display: none; }
  .cap {
    height: 26px;
    padding: 0 6px 0 4px;
    font-size: 11.5px;
    gap: 3px;
    border-width: 2px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 0 #140804;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .cap strong, .cap span { white-space: nowrap; }
  .cap-sep, #hud-aud { display: none; }
  .section-dots { display: none; }
  .cap-ic { width: 20px; height: 20px; }
  .cap-ic.sm { width: 16px; height: 16px; }
  .cap-bar { width: 32px; height: 8px; }
  .cap-star { font-size: 13px; }
  .horn-cta { font-size: 11.5px; }
  .sec-dot { width: 12px; height: 12px; font-size: 7.5px; }
  .sec-dot.boss { width: 14px; height: 14px; font-size: 8.5px; }
  .phase-tag { font-size: 10px; padding: 1px 5px; white-space: nowrap; }
  .party-ult-bar { gap: 3px; flex-shrink: 0; }
  .member-ult-btn {
    width: 28px; height: 28px; border-radius: 8px; border-width: 2px;
    box-shadow: 0 2px 0 #140804;
  }
  .member-ult-btn img { width: 19px; height: 19px; margin-bottom: 2px; }
  .member-ult-btn .m-role-dot { font-size: 7.5px; }
  .ttyd-tools {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
  }
  .tool-btn {
    flex: 1;
    height: 26px;
    padding: 0 6px;
    font-size: 11.5px;
    border-width: 2px;
    box-shadow: 0 2px 0 #140804;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }

  .app-shell {
    position: relative;
    top: auto; left: auto; right: auto; bottom: auto;
    flex: 1;
    min-height: 0;
    flex-direction: column-reverse;
  }

  /* 上半屏：立体书大剧场（底沿配手撕纸锯齿过渡边） */
  .theatre-viewport {
    flex: 0 0 42%;
    min-height: 205px;
    max-height: 310px;
    width: 100%;
    height: auto;
    border-left: none;
    border-bottom: 3px solid var(--stage-accent);
  }
  .theatre-viewport::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -1px; height: 6px; z-index: 26; pointer-events: none;
    background:
      linear-gradient(135deg, transparent 50%, #3d100c 50%) 0 0 / 12px 6px repeat-x,
      linear-gradient(225deg, transparent 50%, #3d100c 50%) 0 0 / 12px 6px repeat-x;
  }

  .rpg-build-dock {
    top: 4px; left: 5px; right: 5px;
    padding: 3px 5px;
    border-width: 2px;
    border-radius: 10px;
    gap: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 0 #2b160c;
  }
  .party-equip-cards {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 4px;
  }
  .member-eq-card { padding: 2px 4px; border-radius: 8px; gap: 2px; border-width: 1.5px; }
  .member-eq-who { font-size: 10px; }
  .member-eq-who img { width: 14px; height: 14px; }
  .focus-badge, .awake-badge, .npc-mini-badge { font-size: 7.5px; padding: 0 3px; }
  .member-eq-slots { gap: 3px; }
  .eq-slot { height: 24px; border-radius: 6px; }
  .eq-slot img { width: 16px; height: 16px; }
  .eq-slot .eq-name { display: none; }
  .eq-empty { font-size: 8px; }
  .rpg-meta-row { overflow-x: auto; scrollbar-width: none; gap: 4px; }
  .rpg-meta-row::-webkit-scrollbar { display: none; }
  .stat-pill { font-size: 9px; padding: 0 4px; border-width: 1px; }
  .stat-pill b { font-size: 10px; }
  .syn-pill { font-size: 8.5px; padding: 0 4px; }
  .fuse-tip-inline { display: none; }

  .top-right-rail {
    top: 84px; right: 5px; left: auto;
    width: auto; max-width: 178px;
    gap: 4px;
  }
  .trial-card { padding: 4px 7px; border-width: 2px; border-radius: 9px; }
  .trial-card strong { font-size: 11.5px; }
  .trial-card span:last-child { font-size: 9px; }
  .theatre-bubble {
    padding: 3px 6px; gap: 4px;
    border-width: 1.5px; border-radius: 9px;
    background: rgba(255, 251, 240, 0.88);
    box-shadow: 0 2px 0 var(--ink);
  }
  .toast-avatar { width: 20px; height: 20px; }
  .toast-speaker { font-size: 9.5px; line-height: 1.1; }
  .toast-text {
    font-size: 9px; line-height: 1.2;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }

  .prep-cta {
    top: auto; bottom: 8px;
    left: 50%; transform: translateX(-50%);
    width: calc(100% - 16px);
    max-width: 340px;
    padding: 6px 10px;
    border-width: 2.5px;
    border-radius: 13px;
  }
  .prep-cta-title { font-size: 14px; }
  .prep-cta-sub { font-size: 10px; margin: 1px 0 5px; line-height: 1.25; }
  .btn-launch-big { padding: 6px 12px; border-radius: 10px; }
  .btn-launch-big .btn-label { font-size: 14px; }

  /* 下半屏：3×3 纸片转运机控制台（首屏完整见滚筒+拉杆+主拍键，向下平滑看收获/道具/路线/BINGO） */
  .slot-sidebar {
    width: 100%;
    flex: 1;
    min-height: 0;
    height: auto;
    padding: 5px 6px calc(6px + env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nintendo-machine {
    flex: 0 0 auto;
    border-width: 2.5px;
    border-radius: 13px;
    overflow: visible;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 3px 0 #140804;
  }
  .pm-rivet { width: 5px; height: 5px; }
  .valance {
    order: 1;
    padding: 4px 9px;
    border-bottom-width: 2.5px;
    border-radius: 10px 10px 0 0;
  }
  .valance-star-emblem, .marquee-bulbs { display: none; }
  .valance-left { font-size: 13.5px; gap: 4px; }
  .valance-witch, .aud-ic { width: 19px; height: 19px; }
  .golden-pill { font-size: 9.5px; padding: 1px 5px; }

  .machine-body {
    order: 2;
    max-width: 252px;
    width: 100%;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr) 38px;
    gap: 5px;
    padding: 5px 4px 5px 6px;
  }
  .reel-stage { padding: 4px; border-width: 2px; border-radius: 10px; }
  .reel-grid { gap: 4px; }
  .reel-cell { border-width: 2px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px #fff, 0 2px 0 rgba(25, 17, 13, 0.4); }
  .reel-cell img { width: 62%; height: 62%; margin-bottom: 8px; }
  .reel-cell .cell-name { font-size: 9px; bottom: 1px; }
  .cell-smart-badge { font-size: 7.5px; padding: 0 3px; }
  .reach-target-badge { font-size: 13px; padding: 4px 10px; }

  .lever-mount { height: 158px; width: 38px; }
  .lever-base { width: 22px; height: 42px; border-width: 2px; }
  .lever-arm { left: 6px; top: 14px; width: 26px; height: 66px; transform-origin: 50% 66px; }
  .lever-shaft { left: 9px; top: 10px; width: 7px; height: 56px; }
  .lever-knob { left: -1px; top: -10px; width: 28px; height: 28px; border-width: 2px; }
  .lever-tag { bottom: 4px; left: 1px; font-size: 9.5px; padding: 1px 4px; }

  .prop-aim-bar { order: 3; margin: 0 6px 5px; }
  .spin-row { order: 4; padding: 0 6px 6px; }
  .btn-main { padding: 6px 10px; border-radius: 11px; border-width: 2px; box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.55), 0 3px 0 #2b160c; }
  .btn-label { font-size: 14px; }
  .btn-sub { font-size: 9.5px; margin-top: 1px; }
  .spin-cost-pill { font-size: 11px; padding: 1px 7px; border-width: 1.5px; }
  .pity-hint { order: 5; margin: 0 6px 5px; }

  .machine-deck { order: 6; padding: 0 6px 6px; }
  .loot-inline-box { border-width: 2px; border-radius: 10px; box-shadow: 0 2px 0 #2b160c; }
  .chute-tray { min-height: 52px; padding: 5px 7px; gap: 4px; }
  .loot-idle-box { padding: 3px 2px; gap: 2px; }
  .loot-idle-box strong { font-size: 11.5px; }
  .loot-idle-box span { font-size: 9.5px; }

  .props-bar { order: 7; padding: 5px 6px; gap: 4px; }
  .prop-chip { font-size: 10px; padding: 2px 6px 2px 4px; }
  .bench-box { order: 8; margin: 0 6px 6px; }
  .chapter-roadmap-card { order: 9; margin: 0 6px 6px; padding: 6px 7px; }
  .bingo-badge-rack { order: 10; margin: 0 6px 6px; padding: 6px 7px; gap: 5px; }

  /* 教学引导条：手机端明黄斜纹 ADVICE 轻巧横幅，绝不挡老虎机或开演键 */
  .nintendo-guide {
    left: 8px; right: 8px;
    top: calc(70px + env(safe-area-inset-top));
    bottom: auto;
    max-width: none;
    padding: 5px 9px;
    gap: 7px;
    border-width: 2.5px;
    border-radius: 5px;
    box-shadow: 0 4px 0 #19110d, 0 8px 18px rgba(0, 0, 0, 0.38);
  }
  .guide-avatar { width: 38px; height: 38px; margin: -6px -4px -8px 0; }
  .guide-step-tag { font-size: 9.5px; padding: 1px 7px; margin-bottom: 2px; }
  .guide-text { font-size: 11.5px; line-height: 1.25; padding-top: 2px; }
  .guide-skip { font-size: 9.5px; padding: 2px 6px; }
  .nintendo-finger { font-size: 26px; }
}

/* 超矮竖屏（如微信内置浏览器 375×560）极限优化 */
@media (max-width: 900px) and (max-height: 610px) and (orientation: portrait) {
  .theatre-viewport { flex: 0 0 38%; min-height: 184px; }
  .rpg-build-dock { padding: 2px 4px; gap: 2px; }
  .eq-slot { height: 21px; }
  .top-right-rail { top: 76px; max-width: 152px; }
  .theatre-bubble { display: none; }
  .machine-body { max-width: 224px; padding: 4px; }
  .lever-mount { height: 140px; }
  .prep-cta { padding: 4px 8px; bottom: 5px; }
  .prep-cta-sub { display: none; }
}

/* 2) 手机竖屏弹窗与立体书封面全面精调 */
@media (max-width: 760px) {
  .book-intro-overlay { padding: 10px; }
  .storybook-stage { width: 100%; max-width: 420px; }
  .storybook-3d { height: min(560px, calc(100dvh - 22px)); }
  .book-cover {
    padding: 10px 10px 10px 22px;
    border-width: 3.5px;
    box-shadow: inset 0 0 0 3.5px #f5b93b, 0 8px 0 #19110d, 0 18px 36px rgba(0, 0, 0, 0.58);
  }
  .book-spine { width: 15px; }
  .book-cover-frame { padding: 8px 10px 10px; gap: 7px; border-width: 2.5px; }
  .book-ribbon-top { font-size: 9px; padding: 2px 9px; letter-spacing: 0.3px; text-align: center; }
  .book-sky-window { padding: 8px 6px 4px; border-width: 2.5px; }
  .book-logo-sub { font-size: 12px; padding: 1px 10px; border-width: 2px; }
  .book-logo-main { font-size: clamp(32px, 9.5vw, 44px); }
  .book-logo-en { font-size: 9.5px; letter-spacing: 1px; }
  .book-cover-cast { height: auto; gap: 2px; align-items: flex-end; padding-bottom: 4px; }
  .cast-cutout { height: clamp(76px, 16vh, 108px); max-width: 32%; }
  .cast-cutout.c-left { height: clamp(72px, 15vh, 100px); }
  .cast-cutout.c-mid  { height: clamp(86px, 18vh, 118px); }
  .cast-cutout.c-right { height: clamp(72px, 15vh, 100px); }
  .book-cover-foot { gap: 6px; }
  .book-pills { gap: 5px; }
  .book-pills span { font-size: 10px; padding: 2px 7px; border-width: 1.5px; }
  .btn-open-book { width: 100%; max-width: none; padding: 10px 12px; border-width: 2.5px; }
  .btn-open-book .btn-label { font-size: 15px; white-space: normal; line-height: 1.25; }

  .modal { padding: 8px; }
  .paper-modal {
    padding: 12px;
    border-radius: 16px;
    border-width: 3px;
    max-height: calc(100dvh - 16px);
  }
  .paper-modal h1, .paper-modal h2 { font-size: 19px; }

  /* 选角弹窗：头底固定可见，中间卡牌顺畅滚滑；第一剧目 3 卡横排展示绝不竖排挤字！ */
  .slim-team-modal {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 11px 11px calc(10px + env(safe-area-inset-bottom));
  }
  .slim-team-header { flex-shrink: 0; margin-bottom: 8px; gap: 6px; }
  .slim-team-header h1 { font-size: 19px; }
  .team-head-right { width: 100%; justify-content: space-between; }
  .npc-inline-pill { padding: 3px 9px 3px 5px; gap: 5px; }
  .npc-inline-pic { width: 24px; height: 24px; }
  .npc-inline-text strong { font-size: 12px; }
  .settings-toggle-btn { padding: 5px 10px; font-size: 12px; }
  .team-adv-drawer { flex-shrink: 0; margin-bottom: 8px; padding: 8px 10px; gap: 7px; max-height: 36vh; overflow-y: auto; }
  .stage-thumb-row { grid-template-columns: 1fr; gap: 6px; }
  .slim-team-modal .roster-picker {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px;
    margin-bottom: 7px;
  }
  .slim-team-modal .roster-picker.cols-3 {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .slim-team-modal .roster-picker.cols-3 .hero-tcg.slim-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 10px;
    row-gap: 3px;
    align-items: center;
    text-align: left;
    padding: 8px 10px;
    background: linear-gradient(96deg, var(--c1) 0%, var(--c2) 28%, #fff8e6 28.5%, #f6e4bc 100%);
  }
  .slim-team-modal .roster-picker.cols-3 .slim-card .tcg-art-window {
    grid-column: 1; grid-row: 1 / span 3;
    height: 74px; width: 74px; margin: 0;
    border-radius: 14px;
  }
  .slim-team-modal .roster-picker.cols-3 .slim-card .tcg-portrait {
    height: 72px; margin-bottom: -2px;
  }
  .slim-team-modal .roster-picker.cols-3 .slim-card .slim-card-head {
    grid-column: 2; grid-row: 1;
    margin-bottom: 0; min-height: 20px;
  }
  .slim-team-modal .roster-picker.cols-3 .slim-card .tcg-nameplate {
    grid-column: 2; grid-row: 2;
    margin: 0; padding: 2px 10px;
    justify-self: start; max-width: 100%;
  }
  .slim-team-modal .roster-picker.cols-3 .slim-card .tcg-nameplate strong {
    font-size: 15px; white-space: nowrap;
  }
  .slim-team-modal .roster-picker.cols-3 .slim-card .slim-pitch {
    grid-column: 2; grid-row: 3;
    font-size: 11.5px; white-space: normal; line-height: 1.3;
  }
  .slim-team-modal .roster-picker.cols-4,
  .roster-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .slim-team-modal .roster-picker.cols-4 .slim-card .tcg-art-window { height: 84px; }
  .slim-team-modal .roster-picker.cols-4 .slim-card .tcg-portrait { height: 86px; }
  .slim-team-modal .roster-picker.cols-4 .slim-card .tcg-nameplate { margin: -5px 2px 4px; padding: 2px 6px; }
  .slim-team-modal .roster-picker.cols-4 .slim-card .tcg-nameplate strong { font-size: 13px; white-space: nowrap; }
  .slim-team-modal .roster-picker.cols-4 .slim-pitch { font-size: 10.5px; }

  .locked-roster-teaser { flex-shrink: 0; margin-bottom: 6px; padding: 4px 10px; font-size: 10.5px; gap: 6px; }
  .slim-team-footer { flex-shrink: 0; padding-top: 8px; gap: 7px; flex-direction: column; align-items: stretch; }
  .slim-team-footer .duo-preview-box { min-width: 0; width: 100%; justify-content: center; gap: 6px; }
  .picked-pill { font-size: 11.5px; padding: 2px 8px 2px 5px; }
  .picked-pill img { width: 18px; height: 18px; }
  .team-btns { width: 100%; }
  .btn-start-hero { width: 100%; padding: 10px 16px !important; }
  .btn-start-hero .btn-label { font-size: 16px; }

  /* 塔罗三选一 / 商店 / 英雄特写 / 图鉴 / 结算弹窗 */
  .modal-witch-head { gap: 8px; margin-bottom: 8px; }
  .modal-witch-img { width: 42px; height: 42px; }
  .contract-choices { grid-template-columns: 1fr; gap: 11px; padding: 4px 2px; }
  .skill-tcg { transform: none !important; }
  .skill-tcg-art { aspect-ratio: 16 / 8; }
  .skill-tcg-banner h3 { font-size: 15px; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 8px 0; }
  .spotlight-stage { grid-template-columns: 1fr; gap: 10px; padding: 10px; }
  .sp-art-col { height: 146px; }
  .sp-portrait { height: 130px; }
  .sp-hero-name { font-size: 22px; }
  .sp-kit-grid { grid-template-columns: 1fr; gap: 6px; }
  .discovery-modal { padding: 14px 14px 12px; }
  .disc-art-stage { width: 96px; height: 96px; }
  .disc-art-img { width: 70px; height: 70px; }
  .disc-title { font-size: 20px; }
  .end-stats { grid-template-columns: repeat(2, 1fr); gap: 6px; }
}

/* 3) 手机横屏掌机双栏模式（如 iPhone 844×390 横握） */
@media (max-height: 500px) and (orientation: landscape) {
  body {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
  }
  .ttyd-topbar {
    position: relative; top: auto; left: auto; right: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 38px;
    min-height: 38px;
    padding: 0 calc(8px + env(safe-area-inset-right)) 0 calc(8px + env(safe-area-inset-left));
    gap: 5px;
  }
  .ttyd-caps { width: auto; flex: 1; min-width: 0; }
  .ttyd-tools { width: auto; flex-shrink: 0; gap: 3px; }
  .tool-btn { flex: 0 0 auto; height: 26px; padding: 0 7px; font-size: 11px; }

  .app-shell {
    position: relative; top: auto; left: auto; right: auto; bottom: auto;
    flex: 1; min-height: 0;
    flex-direction: row;
  }
  .slot-sidebar {
    width: 258px; flex: 0 0 258px; height: 100%;
    padding: 4px 5px 4px calc(5px + env(safe-area-inset-left));
    overflow-y: auto;
  }
  .theatre-viewport {
    flex: 1; min-width: 0; min-height: 0; max-height: none; height: 100%;
    border-bottom: none;
    border-left: 3px solid #140804;
  }
  .machine-body { max-width: none; grid-template-columns: minmax(0, 1fr) 34px; padding: 4px 4px 4px 6px; }
  .lever-mount { height: 148px; width: 34px; }
  .nintendo-guide { left: auto; right: 10px; top: auto; bottom: 8px; max-width: 340px; }

  /* 横屏封面紧凑一屏展示 */
  .book-intro-overlay { padding: 8px; }
  .storybook-stage { width: min(680px, 94vw); }
  .storybook-3d { height: min(350px, calc(100dvh - 16px)); }
  .book-cover { padding: 8px 10px 8px 22px; }
  .book-spine { width: 15px; }
  .book-cover-frame { padding: 7px 12px 8px; gap: 6px; }
  .book-ribbon-top, .book-pills { display: none; }
  .book-sky-window { flex-direction: row; justify-content: space-around; align-items: center; padding: 6px 12px; gap: 10px; }
  .book-logo-main { font-size: clamp(28px, 4.6vw, 40px); }
  .book-cover-cast { height: 114px; width: auto; gap: 6px; }
  .cast-cutout { height: 96px; }
  .cast-cutout.c-mid { height: 110px; }
  .cast-cutout.c-left, .cast-cutout.c-right { height: 92px; }
  .btn-open-book { padding: 7px 18px; }
  .btn-open-book .btn-label { font-size: 15px; }

  /* 横屏选角弹窗紧凑一屏展示 */
  .slim-team-modal {
    display: flex; flex-direction: column; overflow: hidden;
    max-height: calc(100dvh - 12px); padding: 8px 12px;
  }
  .slim-team-header { flex-shrink: 0; margin-bottom: 6px; }
  .slim-team-header h1 { font-size: 18px; }
  .slim-team-modal .roster-picker { flex: 1; min-height: 0; overflow-y: auto; margin-bottom: 6px; padding: 2px; }
  .slim-team-modal .roster-picker.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .roster-picker.cols-3 .hero-tcg.slim-card { padding: 6px 8px 7px; }
  .roster-picker.cols-3 .slim-card .tcg-art-window { height: 70px; }
  .roster-picker.cols-3 .slim-card .tcg-portrait { height: 74px; }
  .roster-picker.cols-3 .slim-card .tcg-nameplate { margin: -5px 4px 3px; padding: 1px 6px; }
  .roster-picker.cols-3 .slim-card .tcg-nameplate strong { font-size: 13px; }
  .roster-picker.cols-3 .slim-pitch { font-size: 10.5px; }
  .locked-roster-teaser { flex-shrink: 0; margin-bottom: 5px; padding: 3px 10px; font-size: 10.5px; }
  .slim-team-footer { flex-shrink: 0; padding-top: 6px; }
  .btn-start-hero { padding: 7px 20px !important; }
  .btn-start-hero .btn-label { font-size: 14px; }
}



