:root { --ink: #151b2e; --paper: #f4f0e8; --paper-2: #ebe4d7; --line: #d7cfbf; --muted: #697084; --red: #ba3e3e; --red-dark: #8b2d34; --gold: #b8893b; --green: #2f7d65; --blue: #315c84; --shadow: 0 18px 40px rgba(26, 29, 41, .12); font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; color: var(--ink); background: #dad7d0; }
* { box-sizing: border-box; } body { margin: 0; min-width: 320px; background: radial-gradient(circle at 10% 0%, #ece9e1, #d7d3ca 70%); } button, input, select { font: inherit; } button { cursor: pointer; touch-action: manipulation; } button:disabled { cursor: not-allowed; opacity: .46; }
.app-shell { width: min(100%, 1120px); min-height: 100vh; margin: 0 auto; padding: 20px 18px 54px; } .dm-shell { max-width: 1180px; } .player-shell { max-width: 760px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 8px 0 24px; } h1, h2, h3, p { margin: 0; } h1 { font-size: clamp(23px, 4vw, 36px); letter-spacing: .02em; } h2 { font-size: 20px; } h3 { font-size: 17px; line-height: 1.4; } .eyebrow { color: var(--red); font-size: 11px; letter-spacing: .16em; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; } .muted { color: var(--muted); font-size: 13px; line-height: 1.6; }
.phase-pill, .event-status, .target-availability { border: 1px solid var(--line); background: rgba(255,255,255,.45); padding: 8px 11px; border-radius: 99px; color: var(--muted); font-size: 12px; white-space: nowrap; } .phase-pill.active { color: var(--red-dark); border-color: #e1a8a8; background: #f8e2df; } .phase-pill.selecting { color: #765620; border-color: #dbc38f; background: #f6eedb; } .phase-pill.final { color: var(--green); border-color: #9bc9b9; background: #dfefe8; }
.landing { min-height: 100vh; padding: 38px 18px; width: min(100%, 720px); margin: auto; } .landing-mark { display: inline-grid; place-items: center; border: 1px solid var(--ink); width: 52px; height: 52px; border-radius: 50%; font-weight: 900; font-size: 12px; margin-bottom: 54px; } .landing h1 { font-size: clamp(38px, 10vw, 78px); line-height: 1.02; margin-bottom: 20px; } .landing-copy { max-width: 490px; font-size: 16px; line-height: 1.8; color: #4e5667; } .home-panel { margin-top: 42px; background: rgba(250,248,243,.88); padding: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); } .panel-title { font-weight: 800; margin-bottom: 18px; } .home-panel > label { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 16px; font-weight: 700; } select, input { min-height: 42px; border: 1px solid var(--line); background: #fffdf8; color: var(--ink); padding: 8px 10px; border-radius: 8px; } .share-inputs { display: grid; gap: 8px; margin-bottom: 18px; } .share-input { display: grid; grid-template-columns: 1fr 86px 42px; gap: 8px; align-items: center; font-size: 14px; } .share-input small { color: var(--muted); font-weight: 400; margin-left: 5px; } .share-input em { color: var(--muted); font-size: 12px; font-style: normal; } .landing-foot { color: var(--muted); font-size: 12px; margin-top: 14px; }
.dm-hero, .player-hero { display: flex; justify-content: space-between; gap: 18px; align-items: end; background: var(--ink); color: #f8f5eb; padding: 22px; box-shadow: var(--shadow); } .player-hero { display: block; } .player-hero .countdown { margin-top: 22px; } .label, .hero-stats span { display: block; color: #aeb5c7; font-size: 11px; letter-spacing: .08em; margin-bottom: 7px; } .price-large { display: block; font-size: clamp(42px, 10vw, 68px); line-height: 1; letter-spacing: -.04em; } .hero-stats { display: flex; gap: 24px; margin-top: 20px; } .hero-stats strong { display: block; font-size: 20px; } .countdown { min-width: 116px; text-align: right; } .countdown span { display: block; font-size: 11px; color: #aeb5c7; margin-bottom: 3px; } .countdown strong { font-variant-numeric: tabular-nums; font-size: 28px; line-height: 1; } .countdown.static strong { font-size: 15px; white-space: nowrap; }
.dm-actions { display: flex; flex-wrap: wrap; gap: 9px; padding: 14px 0 20px; } .button { border: 1px solid var(--line); background: #fffdf8; color: var(--ink); padding: 11px 14px; border-radius: 7px; font-weight: 700; font-size: 13px; } .button:hover { transform: translateY(-1px); } .button.primary { background: var(--red); border-color: var(--red); color: white; } .button.secondary { background: #e5eee9; border-color: #b5d2c5; color: #24614f; } .button.danger { background: #f4dedb; border-color: #d69e9b; color: #8f2d34; } .button.wide { width: 100%; } .button.small { padding: 8px 10px; font-size: 12px; } .button-icon { margin-right: 6px; } .text-button { border: 0; background: transparent; color: var(--red-dark); padding: 3px 0; font-weight: 700; font-size: 12px; } .icon-button { border: 1px solid var(--line); background: #fffdf8; border-radius: 6px; padding: 7px 9px; font-size: 11px; color: var(--red-dark); }
.button.is-loading { opacity: 1; cursor: wait; }
.button-spinner { display: inline-block; width: 14px; height: 14px; margin-right: 7px; border: 2px solid rgba(255,255,255,.42); border-top-color: white; border-radius: 50%; vertical-align: -2px; animation: button-spin .65s linear infinite; }
@keyframes button-spin { to { transform: rotate(360deg); } }
.section { margin-top: 18px; background: rgba(250,248,243,.9); border: 1px solid var(--line); padding: 20px; box-shadow: 0 8px 20px rgba(26,29,41,.05); } .section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; } .section-count { color: var(--muted); font-size: 12px; } .player-table { display: grid; gap: 7px; } .player-row { display: grid; grid-template-columns: 38px minmax(0,1fr) auto auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); background: #fffdf8; } .player-avatar, .hero-avatar { display: grid; place-items: center; border-radius: 50%; font-weight: 900; } .player-avatar { width: 34px; height: 34px; color: white; font-size: 13px; } .hero-avatar { width: 56px; height: 56px; color: white; font-size: 22px; } .rose { background: #b84d54; } .plum { background: #7f416a; } .gold { background: #b58738; } .teal { background: #34796b; } .sky { background: #4a789a; } .orange { background: #bf6639; } .violet { background: #655491; } .lime { background: #699052; } .player-main, .player-metrics { min-width: 0; } .player-main strong, .player-main span, .player-main small, .player-metrics b, .player-metrics small { display: block; } .player-main span { color: var(--muted); font-size: 12px; margin-top: 3px; } .player-main small, .player-metrics small { color: #8a8d96; font-size: 10px; margin-top: 3px; } .player-metrics { text-align: right; } .player-metrics b { font-size: 12px; color: var(--red-dark); } .dm-link-line { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 9px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; font-size: 11px; } .dm-link-line a { color: var(--blue); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-players-section { padding: 16px; }
.dm-player-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.dm-player-card { position: relative; min-width: 0; overflow: hidden; padding: 10px; border: 1px solid #ddd5c8; border-radius: 7px; background: #fffdf8; }
.dm-player-card-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.dm-player-avatar { width: 40px; height: 44px; object-fit: contain; object-position: 50% 14%; }
.dm-player-identity { min-width: 0; }
.dm-player-identity strong, .dm-player-identity span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-player-identity strong { font-size: 13px; }
.dm-player-identity span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.dm-copy-button { min-width: 38px; min-height: 34px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; background: #f7f2e8; color: var(--red-dark); font-size: 10px; font-weight: 800; }
.dm-player-card-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 8px; }
.dm-player-card-metrics > span { min-width: 0; padding: 6px 7px; border-radius: 5px; background: #f1ede5; color: var(--muted); font-size: 9px; }
.dm-player-card-metrics strong { display: block; margin-top: 2px; overflow: hidden; color: var(--ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.dm-player-card-foot { display: flex; align-items: center; gap: 5px; margin-top: 7px; color: var(--green); font-size: 9px; font-weight: 700; }
.dm-player-card-foot i { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.dm-player-card-foot.is-busy { color: var(--red-dark); }
.dm-player-card.event-complete { border-color: #89b9a6; background: #f3faf6; }
.dm-deal-card-button { display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; min-height: 34px; margin-top: 7px; padding: 6px 8px; border: 1px solid #d5bc7a; border-radius: 6px; background: #fbf3df; color: #765620; font-size: 10px; font-weight: 900; }
.dm-deal-card-button b { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #765620; color: white; font-size: 13px; line-height: 1; }
.dm-deal-card-button span { margin-left: auto; color: #9b7a3d; font-size: 9px; }
.dm-deal-card-button:disabled { opacity: .55; }
.dm-link-line.compact { display: flex; justify-content: space-between; }
.dm-player-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.target-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; } .target-strip span, .target-button { border: 1px solid #d9c58f; color: #765620; background: #fbf3df; border-radius: 7px; padding: 10px 15px; font-weight: 800; } .target-buttons { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; margin: 20px 0; } .target-button { font-size: 18px; min-height: 54px; }
.dm-event-compact { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; margin-bottom: 10px; padding: 10px 11px; border: 1px solid #d7b96f; border-radius: 7px; background: #fff5d7; }
.dm-event-compact-copy { min-width: 0; }
.dm-event-compact-copy > span { display: block; margin-bottom: 2px; color: var(--red-dark); font-size: 9px; font-weight: 900; }
.dm-event-compact-copy strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.dm-event-compact-copy p { display: -webkit-box; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.dm-event-compact-status { display: flex; gap: 8px; }
.dm-event-compact-status b { color: #765620; font-size: 10px; white-space: nowrap; }
.dm-player-card.has-event { min-height: 208px; border-color: #d7b96f; }
.dm-player-event-overlay { position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; padding: 9px; color: white; background: rgba(20, 24, 39, .97); }
.dm-player-event-head { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.dm-player-event-head strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.dm-player-event-head span { flex: 0 0 auto; padding: 3px 5px; border: 1px solid #7f8798; border-radius: 99px; color: #c4cad6; font-size: 8px; font-weight: 900; }
.dm-player-event-head span.reported { border-color: #e9c76f; color: #f2d487; }
.dm-player-event-label { margin-top: 8px; color: #e9c76f; font-size: 8px; font-weight: 900; }
.dm-player-event-overlay p { display: -webkit-box; overflow: hidden; margin: 3px 0 5px; color: #f5f0e5; font-size: 10px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.dm-player-event-phrase { display: -webkit-box; overflow: hidden; margin-bottom: 5px; color: #f2d487; font-size: 8px; line-height: 1.35; font-weight: 800; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.dm-player-event-action { width: 100%; min-height: 38px; margin-top: auto; padding: 7px 6px; }
.waiting-mark { color: var(--green); font-size: 12px; font-weight: 800; white-space: nowrap; }
.player-shell .topbar { padding-bottom: 16px; } .identity { display: flex; align-items: center; gap: 13px; } .identity h2 { color: white; margin-bottom: 4px; } .identity p { color: #b6bbca; font-size: 12px; line-height: 1.5; max-width: 360px; } .nickname-line { display: flex; gap: 8px; align-items: center; margin-top: 15px; max-width: 310px; } .nickname-line input { min-height: 34px; flex: 1; background: #252c3f; border-color: #41495e; color: white; font-size: 12px; } .nickname-line input::placeholder { color: #aeb5c7; } .trade-heading { display: flex; justify-content: space-between; gap: 12px; align-items: start; } .price-chip { font-size: 17px; font-weight: 900; color: var(--red-dark); background: #f5e2dd; padding: 9px 11px; border-radius: 7px; white-space: nowrap; } .trade-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; } .trade-button { min-height: 102px; border: 0; color: white; border-radius: 8px; font-weight: 900; } .trade-button span, .trade-button small { display: block; } .trade-button span { font-size: 24px; } .trade-button small { margin-top: 8px; opacity: .85; font-size: 12px; } .trade-button.buy { background: #2c7965; } .trade-button.sell { background: #b34a4b; } .big-trade { border-top: 1px solid var(--line); padding-top: 17px; display: flex; justify-content: space-between; align-items: center; gap: 12px; } .big-trade strong, .big-trade span { display: block; } .big-trade span { color: var(--muted); font-size: 11px; margin-top: 4px; line-height: 1.4; } .big-buttons { display: flex; gap: 6px; } .big-buttons button { border: 1px solid var(--line); background: #fffdf8; color: var(--ink); border-radius: 6px; padding: 8px 9px; font-size: 11px; font-weight: 800; } .trade-note { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 16px; }
.cards-section { padding-bottom: 18px; } .skill-card { border: 1px solid var(--line); background: #fffdf8; padding: 15px; position: relative; } .personal-card { border-color: #d4b5b5; background: #fff5f2; } .card-kicker { font-size: 10px; color: var(--red-dark); letter-spacing: .08em; margin-bottom: 9px; font-weight: 800; } .skill-card p { color: var(--muted); line-height: 1.6; font-size: 12px; margin: 8px 0 13px; } .card-state { color: var(--green); font-size: 12px; font-weight: 800; } .public-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 8px; } .public-card h3 { font-size: 14px; } .public-card .button { margin-top: 2px; }
.effects-bar { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; } .effects-bar span { border: 1px solid #d9c58f; background: #fbf3df; color: #765620; border-radius: 99px; padding: 6px 9px; font-size: 11px; }
.final-panel { background: #f7f5ef; } .final-price { color: var(--red-dark); font-weight: 900; font-size: 14px; } .ranking-list { display: grid; gap: 7px; } .ranking-row { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 10px; align-items: center; border: 1px solid var(--line); padding: 11px; background: #fffdf8; } .ranking-row.mine { border-color: #be7777; background: #fff0ed; } .rank-number { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: white; font-size: 13px; } .ranking-row div span, .ranking-row div strong { display: block; } .ranking-row div span { color: var(--muted); font-size: 11px; margin-top: 4px; } .shares-final { font-size: 12px; color: var(--red-dark); white-space: nowrap; } .ended-note { color: var(--green); font-size: 13px; font-weight: 800; padding: 11px 0; }
.dm-tools { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; color: var(--muted); font-size: 11px; } .dm-tools span { text-align: right; } .modal { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(13, 17, 30, .7); } .ad-box, .event-box { width: min(100%, 430px); background: #fbf7ed; padding: 28px 22px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.25); } .ad-box { background: var(--ink); color: white; min-height: 290px; display: flex; flex-direction: column; align-items: center; justify-content: center; } .ad-tag, .event-tag { display: inline-block; color: var(--gold); border: 1px solid currentColor; border-radius: 99px; padding: 5px 8px; font-size: 10px; letter-spacing: .08em; } .ad-box h2 { font-size: 32px; margin: 23px 0 7px; } .ad-box p { color: #c4c9d5; } .ad-box strong { font-size: 62px; line-height: 1; margin: 19px 0; color: #f0c86c; } .skip-ad { border: 1px solid #7a8090; color: #e5e7ed; background: transparent; padding: 7px 12px; border-radius: 5px; font-size: 11px; } .ad-box small { color: #8e95a6; font-size: 10px; margin-top: 10px; } .event-box { border-top: 6px solid var(--red); text-align: left; } .event-box > p { margin-top: 20px; color: var(--muted); line-height: 1.8; font-size: 13px; } .event-call { border: 1px solid var(--line); background: #fffdf8; padding: 12px; margin: 16px 0; font-size: 12px; line-height: 1.6; } .event-call strong { color: var(--red-dark); } .event-box .button { display: block; margin-top: 13px; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: none; background: #151b2e; color: white; padding: 11px 14px; border-radius: 6px; font-size: 12px; max-width: calc(100vw - 36px); text-align: center; } .toast.show { opacity: 1; transform: translate(-50%, 0); } .is-jittering .trade-button { animation: jitter .4s infinite alternate; } @keyframes jitter { from { transform: translate(-3px, 2px) rotate(-1deg); } to { transform: translate(3px, -2px) rotate(1deg); } }
.landing { position: relative; isolation: isolate; width: 100%; max-width: none; overflow: hidden; color: white; }
.landing::before { content: ""; position: absolute; z-index: -2; inset: 0 0 auto; height: 560px; background: url("/ximen-boardroom.png") center 48% / cover no-repeat; }
.landing::after { content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 560px; background: rgba(11, 15, 25, .68); }
.landing > .eyebrow, .landing > h1, .landing > .landing-copy, .landing > .home-panel, .landing > .landing-foot { width: min(100%, 720px); margin-left: auto; margin-right: auto; }
.landing .landing-mark { margin-left: max(0px, calc((100% - 720px) / 2)); }
.landing .eyebrow { color: #f0c86c; }
.landing-copy { color: #e3e5ec; }
.landing .home-panel { color: var(--ink); margin-top: 128px; }
.landing .landing-foot { color: #535a6c; }
.dm-hero, .player-hero { position: relative; isolation: isolate; overflow: hidden; background: transparent; }
.dm-hero::before, .player-hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background: url("/ximen-boardroom.png") center 56% / cover no-repeat; }
.dm-hero::after, .player-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: rgba(15, 20, 35, .82); }
.ad-box { position: relative; }
.skip-ad { position: absolute; top: 14px; right: 14px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ad-copy { animation: ad-punch .9s ease-out both; }
.ad-copy h2 { max-width: 340px; line-height: 1.12; }
.ad-copy p { max-width: 330px; line-height: 1.7; }
@keyframes ad-punch { from { opacity: 0; transform: scale(.88) rotate(-2deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
.choice-box { width: min(100%, 420px); max-height: min(80vh, 620px); overflow: auto; background: #fbf7ed; border-top: 6px solid var(--red); padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.choice-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.choice-close { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: #fffdf8; font-size: 22px; line-height: 1; }
.choice-list { display: grid; gap: 7px; }
.choice-list button { display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: #fffdf8; color: var(--ink); padding: 12px; border-radius: 7px; }
.choice-list button:active { border-color: var(--red); background: #fff0ed; }
.choice-list strong, .choice-list span { display: block; }
.choice-list span { color: var(--muted); font-size: 11px; margin-top: 4px; }
@media (min-width: 760px) { .player-shell { padding-top: 34px; } .player-hero { padding: 28px; } .player-hero .countdown { float: right; margin-top: -26px; } .public-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .app-shell { padding: 15px 12px 42px; } .dm-shell .topbar { align-items: center; padding: 2px 0 10px; } .dm-shell .topbar .eyebrow { margin-bottom: 3px; } .dm-shell .topbar h1 { font-size: 21px; } .dm-shell .phase-pill { padding: 6px 8px; font-size: 10px; } .dm-hero { align-items: center; flex-direction: row; padding: 14px; } .dm-hero .price-large { font-size: 34px; letter-spacing: 0; } .dm-hero .muted { font-size: 10px; } .dm-hero .countdown { min-width: 90px; text-align: right; } .dm-hero .countdown strong { font-size: 23px; } .dm-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 9px 0 12px; } .dm-actions .button { min-height: 46px; padding: 8px; } .dm-actions .ended-note { grid-column: 1 / -1; } .dm-players-section { margin-top: 12px; padding: 12px; } .dm-players-section .section-heading { align-items: center; margin-bottom: 10px; } .dm-players-section .eyebrow { display: none; } .dm-players-section h2 { font-size: 16px; } .dm-event-compact { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; padding: 8px; } .dm-event-compact-copy p { -webkit-line-clamp: 1; } .dm-event-compact-status { grid-column: 1; gap: 6px; } .dm-event-compact > .button { grid-column: 2; grid-row: 1 / span 2; min-height: 44px; max-width: 92px; padding: 6px; } .dm-player-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; } .dm-player-card { padding: 8px; } .dm-player-card.has-event { min-height: 214px; } .dm-player-card-head { grid-template-columns: 31px minmax(0, 1fr) 36px; gap: 5px; } .dm-player-avatar { width: 31px; height: 36px; } .dm-player-identity strong { font-size: 12px; } .dm-copy-button { min-width: 36px; min-height: 32px; padding: 4px; } .dm-player-card-metrics > span { padding: 5px; } .dm-player-card-metrics strong { font-size: 13px; } .dm-deal-card-button { min-height: 36px; padding: 5px 6px; } .dm-player-event-overlay { padding: 8px; } .dm-player-event-overlay p { font-size: 9px; line-height: 1.38; } .dm-player-event-action { min-height: 42px; } .dm-link-line.compact { grid-template-columns: none; } .player-row { grid-template-columns: 32px minmax(0,1fr) auto; } .player-row .player-metrics { display: none; } .big-trade { align-items: flex-start; flex-direction: column; } .big-buttons { width: 100%; } .big-buttons button { flex: 1; } .target-buttons { grid-template-columns: repeat(4, 1fr); } .target-button { padding: 8px 4px; } .dm-tools { flex-direction: column; } .dm-tools span { text-align: left; } .public-card-grid { grid-template-columns: 1fr; } }

body:has(.player-shell) { overflow: hidden; background: #e8e4dc; }
.app-shell.player-shell { height: 100dvh; min-height: 0; max-width: 760px; padding: 10px 12px max(8px, env(safe-area-inset-bottom)); display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto; gap: 8px; overflow: hidden; }
.player-topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; }
.player-mini-id { display: flex; align-items: center; gap: 9px; min-width: 0; }
.player-mini-id .player-avatar { flex: 0 0 34px; }
.player-mini-id p { color: var(--muted); font-size: 10px; line-height: 1.2; }
.player-mini-id h1 { margin-top: 2px; font-size: 18px; line-height: 1.15; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-topbar .phase-pill { flex: 0 0 auto; padding: 6px 8px; font-size: 10px; }
.player-status-grid { display: grid; grid-template-columns: 1.35fr .8fr .8fr 1fr; gap: 1px; background: #394055; border: 1px solid #394055; box-shadow: var(--shadow); }
.player-status-grid > div { min-width: 0; background: var(--ink); color: white; padding: 10px 8px; }
.player-status-grid span, .player-status-grid strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-status-grid span { color: #aeb5c7; font-size: 9px; margin-bottom: 5px; }
.player-status-grid strong { font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.player-status-grid .status-price strong { color: #f1cb73; font-size: 17px; }
.player-shell .effects-bar { flex-wrap: nowrap; overflow-x: auto; margin: 0; padding-bottom: 1px; scrollbar-width: none; }
.player-shell .effects-bar::-webkit-scrollbar { display: none; }
.player-shell .effects-bar span { flex: 0 0 auto; }
.player-effects-slot { min-height: 0; overflow: hidden; }
.player-workspace { min-height: 0; overflow: hidden; }
.player-panel { height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.player-panel > .section { min-height: 100%; margin: 0; box-shadow: none; }
.player-panel-trade { overflow-y: auto; overflow-x: hidden; }
.player-panel-trade > .trading-stage { display: flex; flex-direction: column; }
.player-panel .section { padding: 15px; }
.player-panel .section-heading { margin-bottom: 12px; }
.player-panel .trade-heading h2 { font-size: 16px; }
.player-panel .eyebrow { letter-spacing: 0; margin-bottom: 4px; }
.player-panel .trade-buttons { margin: 12px 0; }
.player-panel .trade-button { min-height: 84px; }
.player-panel .trade-button span { font-size: 21px; }
.player-panel .big-trade { padding-top: 11px; }
.trade-feed { min-height: 0; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.trade-feed-head { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--muted); font-size: 10px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #d24a4a; box-shadow: 0 0 0 4px rgba(210,74,74,.12); }
.trade-feed-list { display: grid; gap: 5px; }
.trade-feed-list > p { padding: 14px 0; color: var(--muted); font-size: 11px; text-align: center; }
.trade-feed-item { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; align-items: center; gap: 7px; min-height: 31px; padding: 6px 8px; border: 1px solid var(--line); background: #fffdf8; font-size: 11px; }
.trade-feed-item .trade-feed-arrow { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: white; font-weight: 900; }
.trade-feed-item.buy .trade-feed-arrow { background: var(--green); }
.trade-feed-item.sell .trade-feed-arrow { background: var(--red); }
.trade-feed-item > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trade-feed-item > span:not(.trade-feed-arrow), .trade-feed-item > small { color: var(--muted); }
.trade-feed-item > b { white-space: nowrap; }
.trade-feed-item.buy > b { color: var(--green); }
.trade-feed-item.sell > b { color: var(--red); }
.trade-feed-item.is-new { animation: feed-slide .45s ease-out both; }
@keyframes feed-slide { from { opacity: 0; transform: translateX(28px); background: #fff2cd; } to { opacity: 1; transform: translateX(0); background: #fffdf8; } }
.dm-trade-feed { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; margin: 0 0 18px; padding: 10px 12px; border: 1px solid var(--line); background: rgba(250,248,243,.9); overflow: hidden; }
.dm-trade-feed .trade-feed-head { margin: 0; white-space: nowrap; }
.dm-trade-feed .trade-feed-list { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.dm-trade-feed .trade-feed-list::-webkit-scrollbar { display: none; }
.dm-trade-feed .trade-feed-item { flex: 0 0 auto; grid-template-columns: 22px auto auto auto auto; }
.player-shell .modal { z-index: 20; }

@media (max-width: 560px) {
  .app-shell.player-shell { padding: 8px 8px max(6px, env(safe-area-inset-bottom)); }
  .player-panel .section { padding: 13px; }
  .player-panel .public-card-grid { grid-template-columns: 1fr; }
  .player-panel .big-trade { align-items: center; flex-direction: row; }
  .player-panel .big-buttons { width: auto; }
  .player-panel .big-buttons button { padding: 7px; }
  .trade-feed-item { grid-template-columns: 22px minmax(0, 1fr) auto auto; }
  .trade-feed-item > small { display: none; }
}

@media (max-height: 720px) {
  .app-shell.player-shell { gap: 5px; }
  .player-status-grid > div { padding: 7px 6px; }
  .player-panel .trade-button { min-height: 68px; }
  .player-panel .trade-buttons { margin: 8px 0; }
  .trade-feed-item:nth-child(n+4) { display: none; }
  .player-tabs { min-height: 48px; }
}

/* 交易桌第二版：固定触控区、全员头像与扑克牌手牌 */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
body:has(.player-shell-v2) { overscroll-behavior: none; }
.player-shell-v2, .player-shell-v2 * { letter-spacing: 0; }
.player-shell-v2 button, .player-shell-v2 .skill-card, .player-shell-v2 .player-pawn {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.app-shell.player-shell-v2 {
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 7px;
  padding: max(7px, env(safe-area-inset-top)) 7px max(7px, env(safe-area-inset-bottom));
}
.market-hud { overflow: hidden; color: white; background: #111827; border: 1px solid #323a50; box-shadow: var(--shadow); }
.hud-identity { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-height: 32px; padding: 7px 10px 5px; border-bottom: 1px solid rgba(255,255,255,.1); }
.hud-identity span { overflow: hidden; color: #aeb5c7; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.hud-identity strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.market-stats { display: grid; grid-template-columns: 1.28fr 1fr .78fr .9fr; }
.market-stats > div { min-width: 0; min-height: 62px; padding: 8px 8px 7px; border-right: 1px solid rgba(255,255,255,.13); }
.market-stats > div:last-child { border-right: 0; }
.market-stats span, .market-stats strong { display: block; overflow: hidden; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.market-stats span { margin-bottom: 5px; color: #aeb5c7; font-size: 9px; }
.market-stats strong { font-size: 17px; line-height: 1.05; }
.market-stats .primary strong { color: #f1cb73; font-size: 23px; }
.market-stats .target strong { color: #fff; font-size: 22px; }
.player-shell-v2 .player-workspace, .player-shell-v2 .player-panel { min-height: 0; overflow: hidden; }
.player-shell-v2 .player-panel > .section { min-height: 0; height: 100%; }
.player-shell-v2 .game-table { display: grid; grid-template-rows: minmax(238px, 1fr) 254px; gap: 8px; padding: 8px; background: #efeae0; }
.market-arena { position: relative; min-height: 0; overflow: hidden; }
.player-orbit { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.player-pawn { position: absolute; left: var(--orbit-x); top: var(--orbit-y); width: 70px; height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0; padding: 0; border: 0; border-radius: 0; background: transparent; transform: translate(-50%, -50%); pointer-events: auto; transition: filter .15s ease, transform .15s ease; }
.player-pawn.mine { filter: drop-shadow(0 0 5px rgba(217,166,45,.9)); }
.player-pawn b { position: absolute; top: 2px; right: 5px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #bd353d; color: white; font-size: 9px; box-shadow: 0 2px 6px rgba(108,23,28,.3); }
.pawn-portrait { width: 62px; height: 66px; border: 0; border-radius: 0; object-fit: contain; object-position: center bottom; background: transparent; filter: drop-shadow(0 3px 3px rgba(30,24,18,.2)); }
.player-pawn span { display: block; width: 100%; overflow: hidden; color: #343a4b; font-size: 8px; font-weight: 900; line-height: 1.15; text-align: center; text-overflow: ellipsis; text-shadow: 0 1px 0 rgba(255,255,255,.9); white-space: nowrap; }
.player-pawn small { display: block; width: 100%; color: #a13b40; font-size: 7px; font-weight: 900; line-height: 1.2; text-align: center; text-shadow: 0 1px 0 rgba(255,255,255,.9); white-space: nowrap; }
.trade-center { position: absolute; z-index: 1; left: 50%; top: 50%; width: min(66%, 264px); min-width: 230px; display: flex; flex-direction: column; justify-content: center; transform: translate(-50%, -50%); }
.round-caption { display: flex; justify-content: space-between; gap: 6px; align-items: center; margin-bottom: 7px; }
.round-caption strong { font-size: 13px; }
.round-caption span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.player-shell-v2 .trade-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 0; }
.player-shell-v2 .trade-button {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 126px;
  min-height: 126px;
  max-height: 126px;
  padding: 16px 6px 44px;
  border-radius: 7px;
  touch-action: manipulation;
  appearance: none;
  -webkit-appearance: none;
  transform: none;
}
.player-shell-v2 .trade-button:active { filter: brightness(.93); transform: none; }
.player-shell-v2 .trade-button.tap-feedback { animation: trade-tap-feedback .11s ease-out; }
@keyframes trade-tap-feedback { 0% { filter: brightness(1); } 45% { filter: brightness(1.24); } 100% { filter: brightness(1); } }
.player-shell-v2 .trade-button .trade-label { font-size: 26px; line-height: 1; }
.player-shell-v2 .trade-button small { font-size: 12px; }
.player-shell-v2 .trade-participants { left: 5px; right: 5px; bottom: 8px; min-height: 29px; flex-wrap: nowrap; }
.player-shell-v2 .trade-participant-avatar { width: 29px; height: 29px; margin-left: -9px; }
.player-shell-v2 .trade-participant-avatar:first-child { margin-left: 0; }
.big-trade.compact { display: block; padding-top: 8px; margin-top: 8px; }
.big-trade.compact > span { margin: 0 0 6px; font-size: 9px; text-align: center; }
.big-trade.compact .big-buttons { width: 100%; }
.big-trade.compact .big-buttons button { flex: 1; min-height: 34px; touch-action: manipulation; }
.card-dock { min-height: 0; overflow: hidden; border-top: 1px solid #d4caba; }
.card-dock-head { height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 2px 4px; }
.card-dock-head strong { font-size: 13px; }
.card-dock-head span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.card-hand { height: 220px; display: flex; align-items: stretch; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 1px 2px 6px; scroll-snap-type: x proximity; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.card-hand::-webkit-scrollbar { display: none; }
.skill-card.poker-card { flex: 0 0 146px; width: 146px; height: 210px; min-height: 0; overflow: hidden; padding: 0; border: 1px solid #9b7a3e; border-radius: 7px; background: #171827; box-shadow: 0 7px 16px rgba(23,24,39,.22); scroll-snap-align: start; touch-action: pan-x; }
.poker-card .skill-card-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.poker-card .skill-card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,16,.05) 0 38%, rgba(7,8,16,.72) 62%, rgba(7,8,16,.97) 100%); pointer-events: none; }
.poker-card .card-kicker { position: absolute; z-index: 2; top: 7px; left: 7px; max-width: calc(100% - 14px); margin: 0; padding: 4px 6px; border-radius: 4px; color: #fff4c9; background: rgba(11,13,23,.72); font-size: 8px; }
.poker-card .skill-copy { position: absolute; z-index: 2; left: 8px; right: 8px; bottom: 30px; color: white; }
.poker-card .skill-copy h3 { display: -webkit-box; overflow: hidden; color: white; font-size: 13px; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.poker-card .skill-copy p { display: -webkit-box; overflow: hidden; margin: 4px 0 3px; color: #e5e7ef; font-size: 9px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.poker-card .skill-guidance { min-height: 0; color: #f2ca72; font-size: 8px; line-height: 1.3; }
.poker-card .drag-handle, .poker-card .double-tap-cue, .poker-card .card-state { position: absolute; z-index: 3; inset: auto 0 0; width: 100%; min-height: 25px; display: grid; place-items: center; margin: 0; border: 0; border-top: 1px solid rgba(240,200,108,.45); background: rgba(20,16,11,.88); color: #f2ca72; font-size: 9px; font-weight: 900; }
.poker-card .drag-handle { touch-action: none; }
.poker-card.is-self-use { cursor: pointer; touch-action: pan-x; }
.poker-card.is-self-use.tap-armed { outline: 3px solid #f0c86c; outline-offset: -3px; }
.poker-card.is-locked { opacity: .48; filter: grayscale(.35); }
.poker-card.is-locked .card-state { color: #d6d8df; }
.skill-drag-ghost.poker-card { width: 146px !important; height: 210px !important; }
.skill-dragging .trade-button.is-valid-target { outline: 3px solid #f0c86c; outline-offset: -3px; transform: none; }
.skill-dragging .trade-button.is-valid-target.is-drop-hover { outline-color: white; box-shadow: 0 0 0 4px rgba(240,200,108,.35); transform: none; }
.skill-dragging .player-pawn.is-valid-target,
.skill-dragging .player-pawn.is-valid-target.is-drop-hover { outline: 0; box-shadow: none; transform: translate(-50%, -50%); }
.skill-dragging .player-pawn.is-valid-target .pawn-portrait { filter: drop-shadow(0 0 7px #f0c86c); }
.skill-dragging .player-pawn.is-valid-target.is-drop-hover .pawn-portrait { filter: drop-shadow(0 0 10px white); }
.prepare-modal { z-index: 45 !important; background: rgba(8,11,20,.82); backdrop-filter: blur(3px); }
.prepare-box { display: grid; place-items: center; color: white; text-align: center; }
.prepare-box span { color: #f0c86c; font-size: 13px; font-weight: 800; }
.prepare-box strong { margin: 8px 0 2px; color: #e63d45; font-size: 124px; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 5px 30px rgba(230,61,69,.5); }
.prepare-box strong.is-ticking { animation: count-pulse .82s ease both; }
.prepare-box p { font-size: 20px; font-weight: 900; }
@keyframes count-pulse { 0% { opacity: .2; transform: scale(.72); } 55% { opacity: 1; transform: scale(1.08); } 100% { transform: scale(1); } }

@media (max-width: 420px) {
  .player-pawn { width: 66px; }
  .pawn-portrait { width: 58px; height: 62px; }
  .trade-center { width: 68%; min-width: 226px; }
  .player-shell-v2 .trade-button { height: 118px; min-height: 118px; max-height: 118px; }
  .skill-card.poker-card { flex-basis: 139px; width: 139px; }
}
@media (max-height: 720px) {
  .app-shell.player-shell-v2 { grid-template-rows: auto auto minmax(0, 1fr); gap: 5px; }
  .hud-identity { min-height: 26px; padding-top: 4px; padding-bottom: 3px; }
  .market-stats > div { min-height: 52px; padding-top: 6px; }
  .market-stats .primary strong { font-size: 20px; }
  .market-stats .target strong { font-size: 19px; }
  .player-shell-v2 .game-table { grid-template-rows: minmax(218px, 1fr) 216px; gap: 5px; padding: 6px; }
  .player-pawn { width: 58px; height: 64px; }
  .pawn-portrait { width: 48px; height: 44px; }
  .player-pawn span { font-size: 7px; }
  .player-pawn small { font-size: 6px; }
  .trade-center { width: 66%; min-width: 218px; }
  .player-shell-v2 .trade-button { height: 102px; min-height: 102px; max-height: 102px; padding-bottom: 37px; }
  .player-shell-v2 .trade-participant-avatar { width: 24px; height: 24px; }
  .card-dock-head { height: 28px; }
  .card-hand { height: 184px; }
  .skill-card.poker-card { flex-basis: 121px; width: 121px; height: 178px; }
  .poker-card .skill-copy h3 { font-size: 11px; }
  .poker-card .skill-copy p { font-size: 8px; }
  .skill-drag-ghost.poker-card { width: 121px !important; height: 178px !important; }
}

/* 角色立绘与拖拽技能 */
.portrait-avatar { display: block; object-fit: cover; object-position: 50% 12%; border: 2px solid rgba(255,255,255,.88); background: #ece5d9; }
.app-shell.player-shell { grid-template-rows: 178px auto minmax(0, 1fr) auto; }
.character-hero { position: relative; isolation: isolate; min-width: 0; height: 178px; overflow: hidden; color: white; background: #171d30; border: 1px solid #394055; box-shadow: var(--shadow); transition: .18s ease; }
.character-hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background: linear-gradient(110deg, #131928 0 44%, #352127 100%); }
.character-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(13,18,31,.96) 0%, rgba(13,18,31,.7) 43%, rgba(13,18,31,.08) 78%), linear-gradient(0deg, rgba(13,18,31,.92) 0 48px, transparent 49px); pointer-events: none; }
.character-portrait { position: absolute; z-index: -1; top: -35px; right: 4px; width: 176px; height: 264px; object-fit: contain; object-position: center top; filter: drop-shadow(0 12px 16px rgba(0,0,0,.28)); user-select: none; }
.character-hero .phase-pill { position: absolute; z-index: 2; top: 10px; right: 10px; color: #fff; border-color: rgba(255,255,255,.35); background: rgba(13,18,31,.68); }
.character-name { position: absolute; z-index: 2; left: 13px; top: 16px; width: 54%; }
.character-name small { display: block; color: #c8cedb; font-size: 10px; margin-bottom: 3px; }
.character-name h1 { color: white; font-size: 22px; line-height: 1.1; letter-spacing: 0; }
.character-stats { position: absolute; z-index: 2; inset: auto 0 0; height: 49px; display: grid; grid-template-columns: 1.3fr .72fr .72fr .9fr; align-items: center; background: rgba(12,17,29,.84); backdrop-filter: blur(5px); }
.character-stats > div { min-width: 0; padding: 0 8px; border-right: 1px solid rgba(255,255,255,.12); }
.character-stats > div:last-child { border-right: 0; }
.character-stats span, .character-stats strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.character-stats span { color: #aeb5c7; font-size: 8px; margin-bottom: 3px; }
.character-stats strong { color: white; font-size: 12px; font-variant-numeric: tabular-nums; }
.character-stats .stock strong { color: #f1cb73; font-size: 16px; }

.trade-button { position: relative; overflow: hidden; padding: 12px 8px 41px; }
.trade-button .trade-label { font-size: 23px; line-height: 1; }
.trade-participants { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex !important; align-items: center; justify-content: center; min-height: 27px; }
.trade-participants:empty { display: none !important; }
.trade-participant-avatar { width: 27px; height: 27px; margin-left: -6px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; border: 2px solid rgba(255,255,255,.88); background: #eee7db; box-shadow: 0 2px 7px rgba(0,0,0,.2); }
.trade-participant-avatar:first-child { margin-left: 0; }
.trade-participants em { color: rgba(255,255,255,.66); font-size: 9px; font-style: normal; font-weight: 600; }

.skill-heading { margin-bottom: 8px !important; }
.skill-drop-board { position: sticky; z-index: 5; top: -15px; margin: 0 -15px 10px; padding: 8px 15px 9px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(244,240,232,.97); backdrop-filter: blur(8px); }
.direction-drop-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 7px; }
.skill-direction-target { min-height: 48px; display: grid; align-content: center; padding: 7px 11px; color: white; border: 2px solid transparent; border-radius: 7px; transition: .18s ease; }
.skill-direction-target.buy { background: #2c7965; }
.skill-direction-target.sell { background: #b34a4b; }
.skill-direction-target strong, .skill-direction-target span { display: block; }
.skill-direction-target strong { font-size: 15px; }
.skill-direction-target span { margin-top: 2px; font-size: 8px; opacity: .76; }
.player-drop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.skill-player-target { min-width: 0; min-height: 51px; display: grid; justify-items: center; align-content: center; gap: 2px; padding: 3px 2px; border: 1px solid var(--line); border-radius: 7px; background: #fffdf8; transition: .18s ease; }
.skill-target-portrait { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: #ece5d9; }
.skill-player-target span { display: block; width: 100%; overflow: hidden; color: var(--muted); font-size: 8px; font-weight: 800; text-align: center; text-overflow: ellipsis; white-space: nowrap; }

.cards-section .skill-card { overflow: hidden; border-radius: 8px; box-shadow: 0 8px 18px rgba(37,39,49,.08); }
.inline-skills { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.inline-skills .skill-drop-board { position: sticky; top: -15px; }
.cards-section .skill-card + .public-card-grid { margin-top: 9px; }
.skill-card.is-draggable { border-color: #b99c67; background: #fffaf0; }
.skill-card.is-drag-source { opacity: .35; }
.skill-card.is-locked { filter: saturate(.7); }
.skill-guidance { display: block; min-height: 18px; color: var(--red-dark); font-size: 10px; line-height: 1.5; font-weight: 800; }
.drag-handle { width: calc(100% + 30px); min-height: 35px; margin: 10px -15px -15px; border: 0; border-top: 1px dashed #cdb887; background: #f1e5c8; color: #6f5126; font-size: 11px; font-weight: 900; cursor: grab; touch-action: none; user-select: none; }
.drag-handle:active { cursor: grabbing; }
.drag-handle span { margin-right: 5px; font-size: 17px; vertical-align: -1px; }
.skill-drag-ghost { position: fixed !important; z-index: 60; max-height: 190px; overflow: hidden; margin: 0 !important; pointer-events: none; transform: rotate(2deg) scale(.98); opacity: .94; box-shadow: 0 22px 45px rgba(15,18,28,.35) !important; }
.skill-drag-ghost .drag-handle { display: none; }
.skill-dragging { cursor: grabbing; user-select: none; }
.skill-dragging [data-drop-type] { transition: opacity .15s ease, transform .15s ease, outline-color .15s ease; }
.skill-dragging .is-invalid-target { opacity: .3; }
.skill-dragging .is-valid-target { outline: 2px dashed #f0c86c; outline-offset: -3px; transform: scale(.98); }
.skill-dragging .is-valid-target.is-drop-hover { outline-style: solid; outline-color: #fff0a8; transform: scale(1.03); box-shadow: 0 0 0 4px rgba(240,200,108,.22); }
.skill-dragging .character-hero.is-valid-target { outline-offset: -5px; }


@media (max-width: 560px) {
  .app-shell.player-shell { grid-template-rows: 174px auto minmax(0, 1fr) auto; }
  .character-hero { height: 174px; }
  .character-portrait { top: -31px; right: -1px; width: 170px; height: 255px; }
  .skill-drop-board { margin-left: -13px; margin-right: -13px; padding-left: 13px; padding-right: 13px; }
}

@media (max-height: 720px) {
  .app-shell.player-shell { grid-template-rows: 145px auto minmax(0, 1fr) auto; }
  .character-hero { height: 145px; }
  .character-portrait { top: -39px; width: 153px; height: 230px; }
  .character-name { top: 11px; }
  .character-name h1 { font-size: 19px; }
  .character-stats { height: 43px; }
  .skill-player-target { min-height: 45px; }
  .skill-target-portrait { width: 27px; height: 27px; }
  .skill-drop-board { padding-top: 6px; padding-bottom: 6px; }
}

/* 保证新版交易桌覆盖旧版角色头图布局 */
.app-shell.player-shell-v2 { grid-template-rows: auto auto minmax(0, 1fr); }
.skill-card.poker-card, .skill-card.poker-card.is-draggable { background: #171827; border-color: #9b7a3e; }
@media (max-width: 560px) {
  .app-shell.player-shell-v2 { grid-template-rows: auto auto minmax(0, 1fr); }
}
@media (max-height: 720px) {
  .app-shell.player-shell-v2 { grid-template-rows: auto auto minmax(0, 1fr); }
}

/* 生图版豪门股东会交易桌 */
body:has(.player-shell-v2) { background: #0c0908; }
.market-hud {
  border-color: #9d783e;
  background-color: #0d0d12;
  background-image: url("/ui-art/market-hud.webp");
  background-position: center 45%;
  background-size: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.dm-hero::before { background-image: url("/ui-art/market-hud.webp"); background-position: center 45%; }
.hud-identity { border-bottom-color: rgba(211,169,94,.42); background: rgba(5,7,12,.72); }
.hud-identity span { color: #d6c7aa; }
.hud-identity strong { color: #fff6df; }
.market-stats > div { border-right-color: rgba(211,169,94,.34); background: rgba(5,7,12,.68); }
.market-stats span { color: #d6c7aa; }
.market-stats .primary strong { color: #f5d070; text-shadow: 0 2px 8px rgba(245,208,112,.2); }
.player-shell-v2 .game-table {
  gap: 7px;
  padding: 6px;
  border-color: #806032;
  background: #130d0a;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
.market-arena {
  border: 1px solid #8a6735;
  border-radius: 6px;
  background: #1b0f0a;
  box-shadow: inset 0 0 28px rgba(0,0,0,.4);
}
.player-pawn { width: 86px; height: 112px; }
.pawn-portrait {
  width: 82px;
  height: 91px;
  filter: drop-shadow(0 5px 5px rgba(0,0,0,.55));
}
.player-pawn.mine { filter: drop-shadow(0 0 8px #f2c45b) drop-shadow(0 0 16px rgba(196,49,46,.75)); }
.player-pawn b { top: 5px; right: 5px; width: 21px; height: 21px; border: 1px solid #ffd77a; background: #b5262d; font-size: 10px; }
.player-pawn span { color: #fff7df; font-size: 9px; text-shadow: 0 1px 3px #000, 0 0 5px #000; }
.player-pawn small { color: #f3ce70; font-size: 8px; text-shadow: 0 1px 3px #000, 0 0 5px #000; }
.trade-center { z-index: 3; width: min(58%, 236px); min-width: 212px; pointer-events: none; }
.trade-center button, .trade-center .big-trade { pointer-events: auto; }
.round-caption {
  min-height: 25px;
  margin: 0 7px 1px;
  padding: 4px 6px;
  border-bottom: 1px solid rgba(226,188,111,.58);
  color: #fff5dc;
  background: rgba(19,10,7,.78);
}
.round-caption strong { color: #f4d17c; font-size: 13px; }
.round-caption span { color: #d7c8ac; }
.player-shell-v2 .trade-buttons { grid-template-columns: 1fr; gap: 1px; }
.player-shell-v2 .trade-button {
  height: 88px;
  min-height: 88px;
  max-height: 88px;
  padding: 11px 9px 34px;
  border-radius: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  filter: drop-shadow(0 5px 6px rgba(0,0,0,.38));
}
.player-shell-v2 .trade-button.buy { background-color: transparent; background-image: url("/ui-art/trade-buy.webp"); }
.player-shell-v2 .trade-button.sell { background-color: transparent; background-image: url("/ui-art/trade-sell.webp"); }
.player-shell-v2 .trade-button:active { filter: brightness(.9) drop-shadow(0 3px 4px rgba(0,0,0,.34)); }
.player-shell-v2 .trade-button .trade-label { color: #fff9e7; font-size: 27px; text-shadow: 0 2px 4px rgba(0,0,0,.75); }
.player-shell-v2 .trade-button small { margin-top: 3px; color: #fff5d8; font-size: 11px; text-shadow: 0 1px 3px #000; }
.player-shell-v2 .trade-participants { bottom: 7px; min-height: 26px; }
.player-shell-v2 .trade-participant-avatar { width: 27px; height: 27px; border-color: #f2d487; background: #20120d; }
.big-trade.compact { margin: 2px 9px 0; border-top-color: rgba(226,188,111,.45); background: rgba(19,10,7,.82); }
.big-trade.compact > span { color: #d7c8ac; }
.big-trade.compact .big-buttons button { border-color: #9b7842; background: #21150f; color: #f2d487; }
.card-dock { padding: 0 5px 3px; border-top-color: #9b7842; background: #100c0a; }
.card-dock-head strong { color: #f3d687; }
.card-dock-head span { color: #cbbd9f; }

@media (max-width: 420px) {
  .player-pawn { width: 80px; height: 106px; }
  .pawn-portrait { width: 76px; height: 85px; }
  .trade-center { width: 57%; min-width: 208px; }
  .player-shell-v2 .trade-button { height: 84px; min-height: 84px; max-height: 84px; }
}

@media (max-height: 720px) {
  .player-shell-v2 .game-table { grid-template-rows: minmax(250px, 1fr) 210px; }
  .player-pawn { width: 74px; height: 94px; }
  .pawn-portrait { width: 70px; height: 74px; }
  .player-pawn span { font-size: 8px; }
  .player-pawn small { font-size: 7px; }
  .trade-center { min-width: 204px; }
  .player-shell-v2 .trade-button { height: 76px; min-height: 76px; max-height: 76px; padding-top: 8px; padding-bottom: 31px; }
  .player-shell-v2 .trade-button .trade-label { font-size: 23px; }
  .card-hand { height: 178px; }
}

/* 交易桌第三版：干净桌面、K 线、统一交易框与可横滑手牌 */
.player-shell-v2 .market-stats { grid-template-columns: 1.5fr .78fr .7fr .88fr; }
.player-shell-v2 .market-stats .primary { padding-right: 5px; }
.price-chart-row { display: grid; grid-template-columns: minmax(82px, auto) minmax(42px, 1fr); align-items: end; gap: 4px; }
.market-stats .primary .stock-number { display: flex; align-items: baseline; gap: 2px; overflow: visible; text-overflow: clip; }
.market-stats .primary .stock-number em { color: #d6c7aa; font-size: 9px; font-style: normal; font-weight: 700; }
.mini-kline { position: relative; height: 32px; display: flex; align-items: stretch; justify-content: flex-end; gap: 2px; padding: 2px 1px; border-left: 1px solid rgba(229,199,125,.28); border-bottom: 1px solid rgba(229,199,125,.28); overflow: hidden; }
.kline-candle { position: relative; flex: 1 1 5px; max-width: 7px; min-width: 3px; height: 100%; }
.kline-candle::before { content: ""; position: absolute; left: 50%; top: var(--wick-top); bottom: calc(100% - var(--wick-bottom)); width: 1px; background: currentColor; transform: translateX(-50%); }
.kline-candle span { position: absolute; left: 1px; right: 1px; top: var(--body-top); bottom: calc(100% - var(--body-bottom)); min-height: 2px; border: 1px solid currentColor; background: currentColor; }
.kline-candle.up { color: #55c89b; }
.kline-candle.down { color: #ef6d6d; }
.player-shell-v2 .game-table { grid-template-rows: minmax(310px, 1fr) 190px; }
.market-arena {
  border-color: #704528;
  background: #2a0e08 url("/ui-art/wood-table-opulent-clean.webp?v=20261012-1") center / cover no-repeat;
  box-shadow: inset 0 0 24px rgba(0,0,0,.34);
}
.trade-center {
  z-index: 3;
  width: min(56%, 230px);
  min-width: 204px;
  padding: 7px;
  border: 1px solid rgba(236,202,127,.8);
  border-radius: 6px;
  background: rgba(18,9,7,.9);
  box-shadow: 0 8px 20px rgba(0,0,0,.38), inset 0 0 0 1px rgba(255,245,212,.08);
  pointer-events: auto;
}
.round-caption { margin: 0 2px 5px; padding: 2px 3px 5px; background: transparent; }
.player-shell-v2 .trade-buttons { gap: 4px; }
.player-shell-v2 .trade-button { height: 82px; min-height: 82px; max-height: 82px; padding-top: 9px; }
.player-shell-v2 .trade-button .trade-label { font-size: 25px; }
.card-dock { padding: 0 4px 2px; }
.card-dock-head { height: 28px; }
.card-hand {
  height: 158px;
  gap: 7px;
  padding: 1px 2px 5px;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
}
.skill-card.poker-card,
.poker-card.is-self-use { flex: 0 0 108px; width: 108px; height: 154px; touch-action: pan-x; }
.poker-card .card-kicker { top: 5px; left: 5px; max-width: calc(100% - 10px); padding: 3px 5px; font-size: 7px; }
.poker-card .skill-copy { left: 6px; right: 6px; bottom: 27px; }
.poker-card .skill-copy h3 { font-size: 11px; }
.poker-card .skill-copy p { margin: 3px 0 2px; font-size: 7px; }
.poker-card .skill-guidance { font-size: 7px; }
.poker-card .drag-handle,
.poker-card .double-tap-cue,
.poker-card .card-state { inset: auto 8px 4px; width: auto; min-height: 21px; border: 1px solid rgba(240,200,108,.45); border-radius: 4px; font-size: 8px; }
.poker-card .drag-handle {
  left: 50%;
  right: auto;
  bottom: 4px;
  width: min(58px, calc(100% - 14px));
  min-height: 19px;
  margin: 0;
  padding: 1px 5px;
  border: 1px solid rgba(240,200,108,.42);
  border-radius: 4px;
  background: rgba(11,9,8,.76);
  color: #f2d487;
  font-size: 8px;
  line-height: 1;
  transform: translateX(-50%);
  touch-action: none;
}
.poker-card .drag-handle span { margin-right: 2px; font-size: 10px; }
.skill-drag-ghost.poker-card { width: 108px !important; height: 154px !important; }

@media (max-width: 420px) {
  .player-shell-v2 .market-stats { grid-template-columns: 1.48fr .78fr .68fr .88fr; }
  .price-chart-row { grid-template-columns: minmax(80px, auto) minmax(38px, 1fr); }
  .trade-center { width: 55%; min-width: 202px; }
  .player-shell-v2 .trade-button { height: 80px; min-height: 80px; max-height: 80px; }
}

@media (max-height: 720px) {
  .mini-kline { height: 26px; }
  .player-shell-v2 .game-table { grid-template-rows: minmax(270px, 1fr) 148px; }
  .trade-center { min-width: 194px; padding: 5px; }
  .player-shell-v2 .trade-button { height: 69px; min-height: 69px; max-height: 69px; padding-top: 6px; padding-bottom: 27px; }
  .card-dock-head { height: 23px; }
  .card-hand { height: 122px; }
  .skill-card.poker-card,
  .poker-card.is-self-use { flex-basis: 82px; width: 82px; height: 118px; }
  .poker-card .skill-copy { bottom: 24px; }
  .poker-card .skill-copy h3 { font-size: 9px; }
  .poker-card .skill-copy p { font-size: 6px; }
  .poker-card .skill-guidance { display: none; }
  .skill-drag-ghost.poker-card { width: 82px !important; height: 118px !important; }
}

/* 玩家行情区第四版：三项关键信息与大幅实时 K 线 */
.market-hud-player {
  height: 154px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 66px 88px;
  background-position: center 38%;
}
.market-key-row {
  display: grid;
  grid-template-columns: 1.08fr .9fr 1.2fr;
  min-width: 0;
  border-bottom: 1px solid rgba(226,188,111,.56);
}
.market-key {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7px 11px 6px;
  border-right: 1px solid rgba(211,169,94,.34);
  background: rgba(4,7,12,.76);
}
.market-key:last-child { border-right: 0; }
.market-key > span {
  display: block;
  margin-bottom: 4px;
  color: #cfc4ae;
  font-size: 10px;
  font-weight: 800;
}
.market-key > strong {
  display: block;
  overflow: hidden;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.market-key.current-price > strong { color: #f5d070; font-size: 32px; text-shadow: 0 0 12px rgba(245,208,112,.34); }
.market-key.current-price > strong.is-live-tick { animation: live-price-tick .16s ease-out; }
@keyframes live-price-tick {
  0% { color: #fffbe8; text-shadow: 0 0 18px rgba(255,238,132,.95); }
  100% { color: #f5d070; text-shadow: 0 0 12px rgba(245,208,112,.34); }
}
.market-key.current-price em { margin-left: 3px; color: #f6ead0; font-size: 11px; font-style: normal; }
.market-key.target-price > strong { color: #6fe1ff; font-size: 30px; text-shadow: 0 0 12px rgba(74,198,232,.32); }
.market-key.current-stage > strong { color: #ff9387; font-size: 20px; text-shadow: 0 0 12px rgba(255,83,83,.24); }
.market-key.current-stage small { display: block; margin-top: 4px; color: #cabfa9; font-size: 9px; }
.market-key.current-stage small b { margin-left: 2px; color: #fff4d4; font-size: 12px; font-variant-numeric: tabular-nums; }
.market-hud-player .mini-kline {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 22px minmax(0, 1fr);
  justify-content: stretch;
  gap: 0;
  padding: 4px 9px 7px;
  border: 0;
  background: rgba(3,6,11,.82);
  overflow: hidden;
}
.kline-meta { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; color: #b9af9f; font-size: 9px; }
.kline-meta strong { margin-right: auto; color: #f2d487; font-size: 11px; }
.kline-plot {
  position: relative;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  border-left: 1px solid rgba(229,199,125,.34);
  border-bottom: 1px solid rgba(229,199,125,.34);
  background-image: linear-gradient(rgba(229,199,125,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(229,199,125,.07) 1px, transparent 1px);
  background-size: 100% 50%, 12.5% 100%;
}
.kline-candles { position: absolute; z-index: 2; inset: 3px 6px; display: flex; align-items: stretch; justify-content: space-around; gap: 4px; }
.market-hud-player .kline-candle { flex: 1 1 12px; max-width: 18px; min-width: 6px; height: 100%; }
.market-hud-player .kline-candle::before { width: 2px; box-shadow: 0 0 5px currentColor; }
.market-hud-player .kline-candle span { left: 12%; right: 12%; min-height: 5px; border-width: 2px; box-shadow: 0 0 5px color-mix(in srgb, currentColor 62%, transparent); }
.kline-trend { position: absolute; z-index: 3; inset: 2px 6px; width: calc(100% - 12px); height: calc(100% - 4px); overflow: visible; pointer-events: none; }
.kline-trend polyline { fill: none; stroke: #f5d070; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 3px rgba(245,208,112,.75)); }

.player-shell-v2 .trade-button:disabled { opacity: 1; cursor: not-allowed; }
.player-shell-v2 .trade-button { height: 96px; min-height: 96px; max-height: 96px; padding: 9px 9px 35px; }
.player-shell-v2 .trade-button::after { content: ""; position: absolute; z-index: 1; inset: 4px; border-radius: 8px; background: rgba(3,5,7,0); pointer-events: none; transition: background .16s ease; }
.player-shell-v2 .trade-button:disabled::after { background: rgba(3,5,7,.42); }
.player-shell-v2 .trade-button .trade-label,
.player-shell-v2 .trade-button small { position: relative; z-index: 2; }
.player-shell-v2 .trade-button .trade-label,
.player-shell-v2 .trade-button small { transform: translateY(8px); }
.player-shell-v2 .trade-button .trade-participants { z-index: 2; }
.player-shell-v2 .trade-button .trade-label { color: #fffdf2; font-size: 31px; font-weight: 1000; line-height: 1; text-shadow: 0 2px 4px #000, 0 0 9px rgba(255,245,210,.52); }
.player-shell-v2 .trade-button small { margin-top: 5px; color: #fff3c5; font-size: 13px; font-weight: 900; opacity: 1; text-shadow: 0 2px 3px #000; }
.player-shell-v2 .trade-button .trade-participants { bottom: 4px; min-height: 27px; }
.player-shell-v2 .trade-button.buy .trade-label { color: #eafff4; }
.player-shell-v2 .trade-button.sell .trade-label { color: #fff0ea; }

@media (max-width: 420px) {
  .market-hud-player { height: 146px; grid-template-rows: 62px 84px; }
  .market-key { padding: 6px 8px 5px; }
  .market-key > span { font-size: 9px; }
  .market-key.current-price > strong { font-size: 28px; }
  .market-key.target-price > strong { font-size: 28px; }
  .market-key.current-stage > strong { font-size: 17px; }
  .market-hud-player .mini-kline { height: 84px; }
  .player-shell-v2 .trade-button { height: 92px; min-height: 92px; max-height: 92px; padding-top: 8px; padding-bottom: 34px; }
  .player-shell-v2 .trade-button .trade-label { font-size: 29px; }
  .player-shell-v2 .trade-button small { font-size: 12px; }
}

@media (max-height: 720px) {
  .market-hud-player { height: 122px; grid-template-rows: 54px 68px; }
  .market-key { padding: 4px 7px; }
  .market-key > span { margin-bottom: 2px; font-size: 8px; }
  .market-key.current-price > strong { font-size: 24px; }
  .market-key.target-price > strong { font-size: 24px; }
  .market-key.current-stage > strong { font-size: 15px; }
  .market-key.current-stage small { margin-top: 2px; font-size: 8px; }
  .market-hud-player .mini-kline { height: 68px; grid-template-rows: 17px minmax(0, 1fr); padding-top: 2px; padding-bottom: 4px; }
  .kline-meta { font-size: 7px; }
  .kline-meta strong { font-size: 9px; }
  .player-shell-v2 .trade-button { height: 82px; min-height: 82px; max-height: 82px; padding-top: 5px; padding-bottom: 30px; }
  .player-shell-v2 .trade-button .trade-label { font-size: 25px; }
  .player-shell-v2 .trade-button small { font-size: 10px; }
}

/* 交易桌第五版：分时走势、左右交易区与分批事件时间表 */
.market-hud-player {
  height: 196px;
  grid-template-rows: 68px 128px;
}
.market-hud-player .mini-kline {
  height: 128px;
  grid-template-rows: 24px minmax(0, 1fr);
}
.minute-chart .kline-trend polygon { fill: rgba(245, 208, 112, .12); stroke: none; }
.minute-chart .kline-trend polyline { stroke-width: 2.6; }

.player-shell-v2 .game-table { grid-template-rows: minmax(0, 1fr) 160px; }
.market-arena {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 5px;
  padding: 7px;
}
.market-arena > .round-caption { margin: 0; }
.trade-sides { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trade-side { min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: stretch; }
.player-shell-v2 .trade-side .trade-button {
  flex: 0 0 auto;
  width: 100%;
  height: 94px;
  min-height: 94px;
  max-height: 94px;
}
.big-trade-button {
  min-height: 38px;
  margin-top: 4px;
  border: 1px solid #a47b42;
  border-radius: 5px;
  background: rgba(20, 12, 9, .92);
  color: #f2d487;
  font-size: 12px;
  font-weight: 900;
  touch-action: manipulation;
}
.big-trade-button small { display: block; margin-top: 1px; color: #cbbd9f; font-size: 8px; }
.big-trade-button:disabled { opacity: .42; }
.trade-standees,
.waiting-standees {
  min-height: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 1px 2px;
}
.trade-standees { flex: 1 1 auto; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 4px; overflow: hidden; }
.trade-standees.dense { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.waiting-standees { grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 73px; max-height: 105px; padding-top: 1px; }
.player-pawn.trade-standee {
  position: relative;
  left: auto;
  top: auto;
  width: 76px;
  max-width: 100%;
  height: 91px;
  transform: none;
}
.trade-standees.dense .player-pawn.trade-standee,
.waiting-standees .player-pawn.trade-standee { width: 58px; height: 72px; }
.trade-standee .pawn-portrait { width: 68px; height: 70px; }
.trade-standees.dense .pawn-portrait,
.waiting-standees .pawn-portrait { width: 53px; height: 52px; }
.trade-standee span { font-size: 8px; }
.trade-standee small { min-height: 9px; font-size: 7px; }
.trade-standee b { top: 0; right: 1px; }
.skill-dragging .player-pawn.trade-standee.is-valid-target,
.skill-dragging .player-pawn.trade-standee.is-valid-target.is-drop-hover { transform: none; }
.skill-dragging .trade-standee.is-valid-target .pawn-portrait { filter: drop-shadow(0 0 8px #f0c86c); }
.skill-dragging .trade-standee.is-valid-target.is-drop-hover .pawn-portrait { filter: drop-shadow(0 0 11px white); }

.skill-card.poker-card.is-draggable { cursor: grab; touch-action: pan-x; }
.skill-card.poker-card.is-draggable:active { cursor: grabbing; }
.poker-card .drag-handle { pointer-events: none; touch-action: auto; }

.dm-event-schedule {
  margin: 0 0 12px;
  padding: 11px 12px;
  border: 1px solid #d3b66f;
  border-radius: 7px;
  background: #fff9e9;
}
.dm-event-schedule-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.dm-event-schedule-head strong { font-size: 13px; }
.dm-event-schedule-head span { color: var(--muted); font-size: 9px; }
.dm-event-schedule-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 6px; }
.dm-event-schedule-item { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 7px 8px; border: 1px solid #e3d6b5; border-radius: 5px; background: #fffdf8; }
.dm-event-schedule-item b { color: #7d5a24; font-size: 9px; }
.dm-event-schedule-item span { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.dm-event-schedule-item > strong { color: var(--red-dark); font-size: 9px; white-space: nowrap; }
.dm-event-schedule-item.active { border-color: #bc6262; background: #fff0ed; }
.dm-event-schedule-item.completed { border-color: #88b9a7; background: #eef8f3; }
.dm-event-schedule-item.completed > strong { color: var(--green); }
.round-ranking { margin: 0 0 12px; }
.ranking-row .reward-shares { color: var(--red-dark); font-size: 13px; white-space: nowrap; }
.ranking-row > small { color: var(--muted); font-size: 9px; white-space: nowrap; }
.round-ranking .ranking-row,
.round-result-player .ranking-row { grid-template-columns: 34px minmax(0, 1fr) auto auto; }
.waiting-next { margin-top: 14px; color: var(--muted); font-size: 12px; text-align: center; }

@media (max-width: 420px) {
  .market-hud-player { height: 188px; grid-template-rows: 64px 124px; }
  .market-hud-player .mini-kline { height: 124px; }
  .player-shell-v2 .trade-side .trade-button { height: 88px; min-height: 88px; max-height: 88px; }
  .player-pawn.trade-standee { width: 70px; }
  .trade-standee .pawn-portrait { width: 64px; }
  .dm-event-schedule-list { grid-template-columns: 1fr; }
}

@media (max-height: 720px) {
  .market-hud-player { height: 150px; grid-template-rows: 56px 94px; }
  .market-hud-player .mini-kline { height: 94px; grid-template-rows: 18px minmax(0, 1fr); }
  .player-shell-v2 .game-table { grid-template-rows: minmax(0, 1fr) 124px; }
  .market-arena { padding: 4px; }
  .player-shell-v2 .trade-side .trade-button { height: 70px; min-height: 70px; max-height: 70px; }
  .big-trade-button { min-height: 32px; font-size: 10px; }
  .waiting-standees { min-height: 58px; max-height: 68px; }
  .player-pawn.trade-standee { width: 58px; height: 68px; }
  .trade-standee .pawn-portrait { width: 52px; height: 50px; }
  .trade-standees.dense .player-pawn.trade-standee,
  .waiting-standees .player-pawn.trade-standee { width: 48px; height: 59px; }
  .trade-standees.dense .pawn-portrait,
  .waiting-standees .pawn-portrait { width: 44px; height: 42px; }
}

/* 交易桌第六版：放大分时图，并为候场立绘预留完整高度 */
.market-hud-player {
  height: 220px;
  grid-template-rows: 72px 148px;
}
.market-hud-player .mini-kline {
  height: 148px;
  grid-template-rows: 28px minmax(0, 1fr);
  padding: 8px 9px 9px;
}
.market-hud-player .kline-plot { margin-top: 3px; }

.waiting-standees {
  min-height: 0;
  max-height: none;
  grid-auto-rows: 92px;
  row-gap: 4px;
  padding: 2px 4px 8px;
  overflow: visible;
}
.waiting-standees .player-pawn.trade-standee {
  width: 78px;
  height: 92px;
}
.waiting-standees .pawn-portrait {
  width: 72px;
  height: 70px;
}
.waiting-standees .trade-standee span { font-size: 9px; }
.waiting-standees .trade-standee small { font-size: 8px; }

@media (max-width: 420px) {
  .market-hud-player {
    height: 216px;
    grid-template-rows: 70px 146px;
  }
  .market-hud-player .mini-kline { height: 146px; }
  .waiting-standees { grid-auto-rows: 88px; padding-bottom: 7px; }
  .waiting-standees .player-pawn.trade-standee { width: 74px; height: 88px; }
  .waiting-standees .pawn-portrait { width: 68px; height: 66px; }
}

@media (max-height: 720px) {
  .market-hud-player {
    height: 170px;
    grid-template-rows: 58px 112px;
  }
  .market-hud-player .mini-kline {
    height: 112px;
    grid-template-rows: 20px minmax(0, 1fr);
    padding: 5px 7px 7px;
  }
  .waiting-standees {
    min-height: 0;
    max-height: none;
    grid-auto-rows: 76px;
    row-gap: 2px;
    padding: 1px 2px 5px;
  }
  .waiting-standees .player-pawn.trade-standee { width: 64px; height: 76px; }
  .waiting-standees .pawn-portrait { width: 58px; height: 56px; }
  .player-shell-v2 .game-table { grid-template-rows: minmax(0, 1fr) 145px; }
  .card-hand { height: 118px; }
  .player-shell-v2 .trade-side .trade-button {
    height: 76px;
    min-height: 76px;
    max-height: 76px;
    padding-top: 7px;
    padding-bottom: 29px;
  }
  .player-shell-v2 .trade-button .trade-label,
  .player-shell-v2 .trade-button small { transform: translateY(7px); }
}

/* 个人技能卡完整说明：移除拖动底栏后，把整张牌留给效果说明 */
.player-shell-v2 .game-table { grid-template-rows: minmax(0, 1fr) 190px; }
.personal-card .skill-card-shade {
  background: linear-gradient(180deg, rgba(7,8,16,.04) 0 27%, rgba(7,8,16,.68) 43%, rgba(7,8,16,.98) 100%);
}
.personal-card .skill-copy {
  top: 40px;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4px 5px 3px;
  border: 1px solid rgba(240,200,108,.24);
  border-radius: 5px;
  background: rgba(8,9,15,.78);
}
.personal-card .skill-copy h3 {
  display: block;
  overflow: visible;
  color: #fff;
  font-size: 10px;
  line-height: 1.18;
  -webkit-line-clamp: unset;
}
.personal-card .skill-copy p {
  display: block;
  overflow: visible;
  margin: 4px 0 3px;
  color: #f0f1f5;
  font-size: 7.5px;
  line-height: 1.25;
  -webkit-line-clamp: unset;
}
.personal-card .skill-guidance {
  display: block;
  color: #f4d27d;
  font-size: 6.8px;
  line-height: 1.22;
}
.personal-card.is-draggable .skill-copy { bottom: 5px; }

@media (max-height: 720px) {
  .player-shell-v2 .game-table { grid-template-rows: minmax(0, 1fr) 174px; }
  .card-hand { height: 146px; }
  .skill-card.poker-card,
  .poker-card.is-self-use { height: 140px; }
  .poker-card.personal-card { height: 140px; }
  .personal-card .skill-copy {
    top: 30px;
    bottom: 24px;
  }
  .personal-card.is-draggable .skill-copy { bottom: 4px; }
  .personal-card .skill-copy h3 { font-size: 9px; }
  .personal-card .skill-copy p { font-size: 7px; }
  .personal-card .skill-guidance { display: block; font-size: 6.2px; }
}
