html:has(body.session-mode),body.session-mode{overflow:hidden!important;height:100%;margin:0!important}body.session-mode .room-connection-status:not([hidden]){position:fixed;z-index:46;top:76px;left:12px;right:12px;margin:0;padding:8px!important;font-size:12px!important}body.session-mode :is(.room-quick-dock,.room-turn-toast,.room-turn-panel,.room-section-nav,.room-score-summary,.room-team-board){display:none!important}.game-session-shell{position:fixed;inset:0;z-index:30;height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#faf7ef;color:#302444;font-family:system-ui,'Microsoft Yahei',sans-serif;overflow:hidden;isolation:isolate;animation:stage-enter .25s ease}.stage-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 24px;border-bottom:1px solid #e7dbee;background:#5d46b7;color:#fff;min-height:76px}.stage-header>div{display:flex;flex-direction:column;gap:4px;min-width:0}.stage-header small{font-size:10px;color:#d8c9f2;letter-spacing:1px}.stage-header strong{font-size:20px}.stage-header nav{display:flex;gap:8px}.game-session-shell button,.stage-dialog button{font:600 13px system-ui;min-height:40px;padding:10px 15px;border-radius:10px;border:1px solid #d9c9ed;cursor:pointer;box-shadow:none!important;white-space:normal}.stage-primary{background:#7054cb;color:#fff;border-color:#7054cb!important}.stage-secondary{background:#f2ecfb;color:#7755ae}.stage-header .stage-secondary{background:#735dc5;border-color:#a18add;color:#fff;min-height:36px;padding:8px 12px}.game-session-shell button:disabled,.stage-dialog button:disabled{opacity:.5;cursor:default}.game-session-shell button:focus-visible,.stage-dialog button:focus-visible{outline:3px solid #d5b2f1;outline-offset:2px}.stage-main{min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px 24px;scrollbar-width:thin}.stage-card{max-width:960px;margin:auto;border:1px solid #e0d3ee;border-radius:20px;background:#fff;padding:22px}.stage-card h2,.stage-reveal h2{font-size:23px;margin:0 0 10px}.stage-muted{font-size:12px;color:#a18bac;line-height:1.6}.stage-toggles{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.stage-toggles label{padding:10px 12px;border:1px solid #e2d6ef;border-radius:12px;background:#f8f4ff;font-size:13px;display:flex;align-items:center;gap:8px;flex-direction:row-reverse}.stage-settings-row{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;margin-bottom:18px}.stage-settings-row label,.stage-bots label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#9678a5}.stage-settings-row input[type=number],.stage-bots input{width:110px;padding:9px;border:1px solid #dcccE9;border-radius:8px;font:14px system-ui}.stage-member-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.stage-member-heading h3{font-size:16px}.stage-members{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:220px;overflow:auto;padding:3px;scrollbar-width:thin}.stage-member{display:flex;align-items:center;gap:9px;background:#f8f4fc;border-radius:12px;padding:10px;min-width:0}.stage-member img{border-radius:50%;object-fit:cover;flex-shrink:0}.stage-member>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.stage-member strong{font-size:13px;overflow-wrap:anywhere}.stage-member small{font-size:10px;color:#a18aaf}.stage-member select{max-width:105px;border:1px solid #dccaE8;border-radius:8px;padding:6px;min-width:0;font:12px system-ui}.stage-member button{padding:5px 8px;min-height:30px;font-size:10px}.stage-ready{font-size:11px;color:#47855a;white-space:nowrap}.stage-bots,.stage-invite{display:flex;align-items:flex-end;gap:12px;margin-top:16px;flex-wrap:wrap}.stage-invite{align-items:center;justify-content:space-between;padding-top:14px;border-top:1px solid #eee5f5;font-size:12px}.stage-footer{display:flex;justify-content:center;align-items:center;gap:12px;padding:12px 24px;border-top:1px solid #e6d9ec;background:#fff;flex-wrap:wrap;max-height:160px;overflow:auto;font-size:12px}.stage-error{width:100%;margin:0;text-align:center;color:#b54a53;font-size:12px}.stage-choice-buttons{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.stage-choice-buttons button{min-height:75px;font-size:15px}.stage-reveal{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px}.stage-random-card{width:min(460px,95%);min-height:190px;background:linear-gradient(135deg,#f5e5ff,#fff0c7);border:2px solid #ddc593;border-radius:22px;padding:25px;display:flex;flex-direction:column;justify-content:center;gap:12px}.stage-random-card>span{font-size:42px;color:#9977c6}.stage-random-card strong{font-size:26px}.stage-random-card p{margin:0}.stage-random-card[data-settled=true]{border-color:#9872c7;box-shadow:0 0 26px #d6b7ef66}.stage-turn{margin:0;text-align:center;color:#896c9e;font:14px system-ui}.session-playing .stage-main{padding:12px}.session-playing .stage-footer{min-height:104px}.stage-pack-pages{display:flex;align-items:center;gap:12px}.stage-pack-pages button{min-height:32px;padding:5px 12px}.stage-own-ability{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}.stage-own-ability strong{font-size:13px;color:#77539f}.stage-own-ability small{font-size:11px;color:#a383ac}html body.session-playing .portal .shared-rack{position:fixed!important;z-index:31!important;top:var(--stage-rack-top,116px)!important;bottom:var(--stage-rack-bottom,126px)!important;left:max(20px,calc((100vw - 1100px)/2))!important;right:max(20px,calc((100vw - 1100px)/2))!important;width:auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:12px!important;border:0!important;box-sizing:border-box!important;display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;grid-auto-rows:minmax(0,1fr)!important;gap:12px!important;overflow:hidden!important;background:transparent!important;transform:none!important}.shared-rack>.stage-hidden-bag{display:none!important}html body.session-playing .portal .shared-rack>button{width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;box-sizing:border-box!important;padding:10px!important;overflow:hidden!important;border-radius:14px!important;transform:none!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;font-size:12px!important}html body.session-playing .portal .shared-rack>.stage-hidden-bag{display:none!important}html body.session-playing .portal .shared-rack>button>i{font-size:42px!important;line-height:1!important}html body.session-playing .portal .shared-rack>button>div{min-height:0!important;max-height:75%!important;overflow:hidden!important;width:100%!important}html body.session-playing .portal .shared-rack>button img,html body.session-playing .portal .shared-rack>button svg{max-height:100%!important;max-width:100%!important;object-fit:contain!important}html body.session-playing .portal .shared-rack>button b{font-size:11px!important;line-height:1.4!important}html body.session-playing .portal .shared-rack>button>small{font-size:10px!important;position:static!important}.stage-dialog{width:min(780px,calc(100vw - 24px));max-height:85dvh;border:1px solid #dacbe9;border-radius:20px;padding:22px;background:#fffaf5;color:#362647;font-family:system-ui;overflow:auto;box-sizing:border-box}.stage-dialog::backdrop{background:#241b3b99}.stage-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.stage-dialog-heading h2{font-size:21px;margin:0}.stage-dialog-body{max-height:58dvh;overflow:auto;overscroll-behavior:contain}.stage-dialog-body p{font-size:13px;line-height:1.8}.stage-dialog-body table{width:100%;border-collapse:collapse;font-size:13px}.stage-dialog-body th,.stage-dialog-body td{text-align:left;padding:12px 8px;border-bottom:1px solid #ecdfef}.stage-dialog-body article{background:#f5effb;padding:14px;border-radius:12px;margin-bottom:12px}.stage-dialog-body h3{font-size:16px}.stage-battle-tabs{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap}.stage-pick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-height:55dvh;overflow:auto;margin:16px 0}.stage-pick-grid button{display:flex;flex-direction:column;gap:7px;align-items:center;min-width:0;min-height:115px;padding:10px;font-size:11px}.stage-pick-grid img,.stage-pick-grid svg{height:85px;width:100%;object-fit:contain;max-width:100%}.stage-pick-grid span{overflow-wrap:anywhere}.stage-pick-paging{display:flex;align-items:center;justify-content:center;gap:16px}.stage-dialog>input{width:100%;font:14px system-ui;padding:11px;border:1px solid #dccaea;border-radius:10px}@keyframes stage-enter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}@media(max-width:650px){.stage-header{padding:12px;min-height:76px;gap:8px}.stage-header strong{font-size:18px}.stage-header nav{gap:5px}.stage-header nav button{font-size:11px;padding:8px 9px}.stage-main{padding:12px}.stage-card{padding:16px;border-radius:16px}.stage-card h2{font-size:20px}.stage-toggles{gap:7px;margin:12px 0}.stage-toggles label{font-size:11px;padding:9px}.stage-settings-row{gap:10px;margin-bottom:12px}.stage-members{grid-template-columns:1fr;max-height:190px}.stage-footer{padding:10px;gap:8px}.stage-footer button{font-size:12px;padding:10px 12px}.stage-choice-buttons{gap:8px}.stage-choice-buttons button{font-size:12px;min-height:65px}.stage-invite{font-size:11px}.stage-random-card strong{font-size:23px}.stage-random-card{min-height:200px;padding:20px}.stage-reveal h2{font-size:21px}.stage-reveal>small{font-size:11px}.stage-pick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.stage-dialog{padding:16px}.stage-battle-tabs button{font-size:12px;padding:8px 10px}.stage-dialog-heading h2{font-size:19px}html body.session-playing .portal .shared-rack{top:var(--stage-rack-top,114px)!important;bottom:var(--stage-rack-bottom,154px)!important;left:10px!important;right:10px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;padding:6px!important}.session-playing .stage-footer{min-height:132px;display:flex;flex-direction:column;gap:8px}.stage-own-ability{gap:5px}.stage-own-ability button{font-size:11px;min-height:32px;padding:7px 9px}.stage-own-ability strong{font-size:12px}.stage-own-ability small{font-size:10px}.stage-pack-pages{gap:10px}.stage-pack-pages button{padding:7px 12px;min-height:32px}html body.session-playing .portal .shared-rack>button>i{font-size:36px!important}}@media(max-height:650px){.stage-header{min-height:60px;padding:8px 12px}.stage-main{padding:8px}.stage-card{padding:12px}.stage-members{max-height:110px}.stage-footer{padding:7px;max-height:110px}.session-playing .stage-footer{min-height:100px}html body.session-playing .portal .shared-rack{top:var(--stage-rack-top,90px)!important;bottom:var(--stage-rack-bottom,120px)!important}.stage-random-card{min-height:140px;padding:14px}.stage-random-card>span{font-size:24px}.stage-reveal{gap:6px}}@media(prefers-reduced-motion:reduce){.game-session-shell{animation:none}}

html body.session-playing .portal .shared-rack{animation:stage-pack-arrive .4s ease-out}@keyframes stage-pack-arrive{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}@media(max-height:650px){.stage-reveal{height:auto;min-height:100%;justify-content:flex-start}}@media(prefers-reduced-motion:reduce){html body.session-playing .portal .shared-rack{animation:none}}

.stage-dialog[open]{position:fixed;inset:0;margin:auto!important;height:fit-content;max-height:85dvh;max-width:calc(100vw - 24px)}
.session-playing .stage-footer{padding:10px 18px;gap:8px;max-height:180px}.stage-own-ability{position:relative;flex-basis:100%;width:min(760px,100%);max-width:760px;margin:0 auto;padding:12px 16px;border:1px solid #bf99e2;border-radius:16px;background:linear-gradient(120deg,#ede0fa,#f8ecff 60%,#fff1cf);box-shadow:inset 0 1px 0 #fff,0 3px 12px #79509b14;box-sizing:border-box}.stage-ability-label{font-size:10px;letter-spacing:1px;color:#9762b3;border-right:1px solid #cbb0df;padding-right:10px}.stage-own-ability .stage-primary{background:linear-gradient(120deg,#8b4ec3,#6846ba);border-color:#9967c9!important;box-shadow:0 3px 8px #7946b12e!important}.stage-own-ability strong{font-size:15px;color:#66358f}.stage-own-ability button{min-height:34px}.stage-confirm-progress{font-size:12px;color:#977da5}
@media(max-width:650px){.session-playing .stage-footer{min-height:140px;padding:8px 10px;max-height:190px}.stage-own-ability{flex-basis:auto;gap:7px;padding:10px;border-radius:13px}.stage-own-ability strong{font-size:13px}.stage-ability-label{font-size:9px;padding-right:6px}html body.session-playing .portal .shared-rack>button{padding:5px!important;border-radius:10px!important}html body.session-playing .portal .shared-rack>button>i{font-size:28px!important}html body.session-playing .portal .shared-rack>button b{font-size:10px!important}.stage-random-card p{max-height:35dvh;overflow:auto}.stage-reveal{height:auto;min-height:100%;gap:10px}}
@media(max-height:650px){.session-playing .stage-footer{min-height:105px;padding:5px;gap:4px}.stage-own-ability{padding:5px 9px}.stage-pack-pages button{min-height:28px;padding:4px 10px}}

/* Native gameplay stays behind the session, while its existing rack remains interactive. */
body.session-mode .portal{visibility:hidden!important}body.session-playing .portal .shared-rack{visibility:visible!important}body.session-mode dialog[open],body.session-mode [role="dialog"][data-state="open"]{visibility:visible!important}
html body.session-playing .portal .shared-rack{left:20px!important;right:20px!important;grid-template-columns:repeat(var(--stage-columns,8),minmax(0,1fr))!important;grid-template-rows:repeat(var(--stage-rows,4),minmax(0,1fr))!important}
.stage-team-dialog{width:min(1080px,calc(100vw - 24px))}.stage-team-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-height:62dvh}.stage-team-note{grid-column:1/-1;margin:0;color:#9b83a6}.stage-dialog-body .stage-team-card{background:#fff;border:1px solid #e6d9ef;border-top:5px solid var(--team-accent);border-radius:16px;padding:18px;margin:0;min-width:0}.stage-team-card h3{margin:0 0 10px;font-size:15px}.stage-team-score{font-size:30px;line-height:1.2}.stage-team-meta{color:#9678a1;font-size:11px!important}.stage-task-card{border:1px solid #e4d5f2;background:#f6f0fd;padding:13px;border-radius:12px}.stage-task-card h4{margin:0;font-size:14px}.stage-task-card p{margin:7px 0;font-size:12px!important}.stage-task-card strong{font-size:12px}.stage-task-card progress{width:100%;height:9px;display:block;margin:12px 0;accent-color:var(--team-accent,#8255c8)}.stage-task-card details{font-size:11px;color:#9278a0}.stage-task-card summary{cursor:pointer}.stage-team-members{display:grid;gap:10px;margin-top:16px}.stage-team-members>div{display:flex;align-items:center;gap:9px;font-size:12px}.stage-team-members img{border-radius:50%;flex-shrink:0}.stage-team-members>div>span:not(.stage-character-portrait){flex:1;min-width:0;overflow-wrap:anywhere}.stage-team-members strong{white-space:nowrap}
@media(max-width:650px){html body.session-playing .portal .shared-rack{left:10px!important;right:10px!important}.stage-team-grid{grid-template-columns:1fr}.stage-team-card{padding:13px!important}.stage-team-score{font-size:25px}.stage-pack-pages{font-size:11px;gap:8px}}

.stage-task-notice{width:min(480px,calc(100vw - 24px));border-top:5px solid #9869ce}.stage-task-notice>.stage-primary{width:100%;margin-top:16px}.stage-task-notice .stage-dialog-body h3{color:#79509b}.stage-task-notice .stage-dialog-body p{font-size:15px;line-height:1.8}

html body.session-playing .portal .shared-rack>.opened-slot{display:grid!important;grid-template-rows:minmax(0,1fr) auto auto!important;gap:3px!important;padding:8px!important}
html body.session-playing .portal .shared-rack>.opened-slot>div{width:100%!important;height:100%!important;max-height:none!important;min-height:0!important;overflow:hidden!important}
html body.session-playing .portal .shared-rack>.opened-slot>div>div{display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;height:100%!important;min-height:0!important;gap:3px!important}
html body.session-playing .portal .shared-rack>.opened-slot img,html body.session-playing .portal .shared-rack>.opened-slot svg,html body.session-playing .portal .shared-rack>.opened-slot .sprite-art{width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;object-fit:contain!important;margin:0!important}
html body.session-playing .portal .shared-rack>button small,html body.session-playing .portal .shared-rack>button span{margin:0!important;line-height:1.3!important}
html body.session-playing .portal .shared-rack>.sealed-slot i{height:auto!important;min-height:0!important;width:44px!important;margin:2px 0!important;line-height:1.2!important;font-size:32px!important;flex-shrink:1!important}
body.session-mode .bot-result-dialog,body.session-mode [role="dialog"][data-state="open"]:is(.round-popup,:has(.personal-result-heading)){position:fixed!important;inset:0!important;margin:auto!important;translate:none!important;transform:none!important;width:min(760px,calc(100vw - 24px))!important;height:fit-content!important;max-height:85dvh!important;overflow:auto!important;border:1px solid #d9c9ed!important;border-radius:20px!important;padding:24px!important;background:#fffaf5!important;box-sizing:border-box!important}
body.session-mode .bot-result-items>div{background:#f5effb!important}body.session-mode .bot-result-items img{height:260px;max-height:38dvh}body.session-mode .bot-result-crop{max-width:220px;margin:auto}body.session-mode .bot-result-round{color:#9982ab;font-size:13px}.stage-header nav{flex-wrap:wrap;justify-content:flex-end}.stage-broadcast-toggle[aria-pressed="true"]{border-color:#cfb7f5!important}
@media(max-width:650px){.stage-header nav{max-width:230px;gap:4px}.stage-header nav button{font-size:10px;padding:6px 8px;min-height:30px}.stage-header{min-height:80px}.stage-header strong{font-size:16px}body.session-mode .bot-result-dialog,body.session-mode [role="dialog"][data-state="open"]:is(.round-popup,:has(.personal-result-heading)){padding:18px!important}html body.session-playing .portal .shared-rack>.opened-slot{padding:5px!important}}

body.session-mode .bot-result-crop img{max-height:none!important}

/* Pagination must outrank both opened and sealed card layouts. */
html body.session-playing .portal .shared-rack>button.stage-hidden-bag{display:none!important}
.stage-bots select,.stage-bot-editor input,.stage-bot-editor select{max-width:100%;min-width:0;border:1px solid #dccbe9;border-radius:8px;padding:7px;font:12px system-ui;background:#fff}.stage-bot-editor{display:flex!important;flex-wrap:wrap;gap:6px;flex:1;min-width:150px}.stage-bot-editor input{width:110px}.stage-members:has(.stage-bot-editor){grid-template-columns:1fr;max-height:260px}.stage-member:has(.stage-bot-editor){flex-wrap:wrap}.stage-bots{align-items:flex-end}.stage-bots select{min-height:35px}

.stage-bot-fairness{margin-top:12px;padding:11px 14px;border:1px solid #e2d6ef;border-radius:11px;background:#f8f4fc}.stage-bot-fairness strong{font-size:12px;color:#77539f}.stage-bot-fairness p{margin:5px 0 0;font-size:12px;line-height:1.6;color:#947fa1}

.session-playing .stage-footer{display:grid;grid-template-columns:auto minmax(0,1fr) auto;max-height:200px}.stage-own-ability{width:100%;flex-basis:auto}.stage-mini-ranks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 12px;padding:10px;border:1px solid #e5d7ef;border-radius:12px;max-width:370px;background:#faf5ff}.stage-mini-ranks>div{display:flex;align-items:center;gap:6px;font-size:11px;min-width:0}.stage-mini-ranks small{color:#b68ad3}.stage-mini-ranks span{max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stage-mini-ranks strong{white-space:nowrap;color:#7950a0}.stage-benefit-card{max-width:1050px}.stage-benefit-envelopes{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:20px 0}.stage-benefit-envelopes button{white-space:pre-line;min-height:95px!important;background:linear-gradient(135deg,#f0e5ff,#fff0c9);border:1px solid #dbc8ed;font-size:16px;color:#9069b8}.stage-benefit-status{display:flex;gap:10px;flex-wrap:wrap}.stage-benefit-status>div{display:flex;align-items:center;gap:7px;padding:8px;border-radius:9px;background:#f8f3fc;font-size:12px}.stage-benefit-status img{border-radius:50%}.stage-benefit-status small{color:#a28aa9}.stage-received-gifts,.stage-collection-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:15px 0}.stage-received-gifts figure,.stage-collection-grid figure{margin:0;padding:10px;min-width:0;text-align:center;background:#f6f0fb;border-radius:11px}.stage-received-gifts :is(img,svg),.stage-collection-grid :is(img,svg){width:100%;height:110px;object-fit:contain}.stage-received-gifts figcaption,.stage-collection-grid figcaption{font-size:11px;overflow-wrap:anywhere}.stage-collection-grid{max-height:55dvh;overflow:auto}.stage-gift-result{text-align:center;display:grid;gap:15px}.stage-gift-result :is(img,svg){width:100%;height:260px;object-fit:contain}.stage-recap{max-width:1050px;background:#fff9df}.stage-recap-tabs{display:flex;gap:10px;margin:20px 0;flex-wrap:wrap}.stage-recap-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.stage-recap-stats article{background:#fff;padding:20px;border-radius:13px;display:grid;gap:10px}.stage-recap-stats strong{font-size:25px;color:#7551ad}.stage-recap-stats small{color:#9b82aa}.stage-highlight-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.stage-highlight-grid figure{margin:0}.stage-highlight-grid :is(img,svg){height:120px;max-width:100%;object-fit:contain}.stage-highlight-grid figcaption{font-size:12px}.stage-dialog select,.stage-benefit-card select{width:100%;padding:10px;border:1px solid #d9cae9;border-radius:9px;background:#fff;color:#78558f}
@media(max-width:650px){.session-playing .stage-footer{display:grid;grid-template-columns:1fr;gap:5px;max-height:220px;min-height:170px}.stage-mini-ranks{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;box-sizing:border-box;padding:5px 10px;margin:auto}.stage-mini-ranks span{max-width:90px}.stage-own-ability{padding:6px 10px}.stage-benefit-envelopes{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.stage-benefit-envelopes button{min-height:65px!important;font-size:13px}.stage-recap-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stage-recap-stats article{padding:13px}.stage-recap-stats strong{font-size:21px}.stage-highlight-grid{grid-template-columns:1fr}.stage-received-gifts,.stage-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.stage-received-gifts :is(img,svg),.stage-collection-grid :is(img,svg){height:80px}}

.stage-gift-pack{width:min(300px,75%);height:min(350px,45dvh);margin:20px auto;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:25px;border:1px solid #d7c2ea;border-radius:16px;background:repeating-linear-gradient(90deg,#f4edfc,#f4edfc 12px,#eee4f9 13px);box-shadow:0 8px 0 #d5c3e5;color:#9a7ac1}.stage-gift-pack>strong{font-size:60px}.stage-gift-pack small{font-size:14px}.stage-gift-tearing{animation:stage-gift-tear 1.08s ease forwards}.stage-gift-unpack>.stage-primary{width:100%;margin-top:12px}.stage-gift-unpack .unpack-settings{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.stage-recap-own{background:#f1e8fd;border-radius:16px;padding:18px;margin:18px 0}.stage-recap-player{display:flex;align-items:center;gap:12px;margin:12px 0}.stage-recap-player img{border-radius:50%;flex-shrink:0;width:40px;height:40px}.stage-recap-player p{font-size:12px;line-height:1.6}.stage-recap-teams{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.stage-recap-team{border-left:5px solid var(--team-accent);border-radius:14px;background:#fff;padding:18px}.stage-recap-team h3{margin:0 0 10px;font-size:17px}.stage-recap-team>strong{font-size:28px}.stage-recap-team p{font-size:12px}.stage-recap .stage-task-card{background:#fff}.stage-all-player-stats{margin-top:18px;border:1px solid #e4d6ed;padding:15px;border-radius:14px;background:#fff}.stage-all-player-stats summary{cursor:pointer;font-weight:600}.stage-all-player-stats .stage-recap-player{flex-wrap:wrap;font-size:12px}.stage-recap{max-width:1180px}.stage-recap h2{margin-top:0}@keyframes stage-gift-tear{0%{rotate:0deg}35%{rotate:-3deg}65%{rotate:3deg}100%{opacity:.25;scale:.96}}
@media(max-width:650px){.stage-recap-teams{grid-template-columns:1fr}.stage-recap-own{padding:12px}.stage-recap-player{gap:8px}.stage-recap-player strong{font-size:13px}.stage-highlight-grid{grid-template-columns:1fr}.stage-recap{padding:14px}.stage-gift-pack{height:260px}}

.stage-highlight-grid figure{margin:14px 0 0;display:flex;flex-direction:column;align-items:flex-start;gap:9px}.stage-highlight-grid figure :is(img,svg){display:block;margin:0;border-radius:10px}.stage-highlight-grid figcaption{display:inline-block;margin:0;padding:6px 11px;border-radius:8px;background:#f4edf9;color:#79509b;font-size:13px;font-weight:600;line-height:1.5;letter-spacing:.3px;max-width:100%;overflow-wrap:anywhere;box-sizing:border-box}

.stage-chat-messages{max-height:45dvh;min-height:120px;overflow:auto;margin-bottom:12px}.stage-chat-messages article{background:#f4eefb;padding:10px 12px;border-radius:10px;margin:8px 0}.stage-chat-messages small{font-size:11px;color:#79569a}.stage-chat-messages p{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0}.stage-chat-emojis{display:flex;gap:6px;margin-bottom:10px;flex-wrap:wrap}.stage-dialog textarea{width:100%;resize:vertical;min-height:65px;max-height:150px;padding:10px;border:1px solid #d9c9ed;border-radius:10px;font:14px system-ui;box-sizing:border-box}.stage-header nav{max-width:75%}

.stage-chat-panel{position:fixed;z-index:40;right:12px;top:var(--chat-top,110px);bottom:var(--chat-bottom,175px);width:330px;box-sizing:border-box;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#fffaf5;border:1px solid #d9cae9;border-radius:15px;box-shadow:0 4px 20px #59446f12;padding:12px;color:#302444;font:14px system-ui}.stage-chat-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #eee3f5;padding-bottom:8px}.stage-chat-panel button{border:1px solid #d8c5eb;border-radius:8px;padding:7px 10px;min-height:32px;font:12px system-ui;cursor:pointer}.stage-chat-panel .stage-chat-messages{min-height:0;max-height:none;overflow:auto;margin:5px 0}.stage-chat-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;border-top:1px solid #eee3f5;padding-top:10px}.stage-chat-composer textarea{width:100%;box-sizing:border-box;resize:none;border:1px solid #d9c9ec;border-radius:8px;padding:8px;font:13px system-ui;color:#302444;background:#fff}.stage-chat-emojis{grid-column:1/-1;margin:0;gap:5px}.stage-chat-emojis button{flex:1;padding:5px;font-size:17px}.stage-chat-status{grid-column:1/-1;margin:0;min-height:15px;font-size:11px;color:#77559e}.stage-chat-panel button:disabled{opacity:.45}.stage-copy-toast{position:fixed;z-index:10001;top:105px;left:50%;translate:-50% 0;max-width:calc(100vw - 32px);box-sizing:border-box;padding:12px 20px;border-radius:12px;background:#fff;color:#29232f;border:1px solid #c7addc;box-shadow:0 6px 24px #4c33532a;font:600 14px system-ui;pointer-events:none}

@media(max-width:650px){.stage-chat-panel{left:12px;right:12px;width:auto;padding:10px}.stage-copy-toast{top:115px}}
@media(max-width:650px) and (max-height:650px){.stage-chat-panel{bottom:10px!important}}

.stage-chat-backdrop{position:fixed;inset:0;z-index:39;background:rgba(28,21,40,.38)}.stage-chat-panel{z-index:40;box-shadow:0 12px 45px #28173645}
.stage-draw-progress{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;padding:8px 14px;margin:0 0 4px;background:#f0e8ff;border:1px solid #d5c5ef;border-radius:12px;font-size:12px;color:#706181}.stage-draw-progress strong{font-size:17px;color:#5435ad}.stage-draw-progress.final-stretch{background:#fff0cc;border-color:#e8cd84}.stage-draw-progress small{flex-basis:100%;text-align:center;color:#8b6321;line-height:1.5}.stage-danmaku{position:fixed;left:0;right:0;top:155px;height:106px;overflow:hidden;pointer-events:none;z-index:10030}.stage-danmaku-line{position:absolute;left:100%;white-space:nowrap;max-width:520px;overflow:hidden;text-overflow:ellipsis;border-radius:30px;padding:5px 13px;background:rgba(255,255,255,.9);border:1px solid #bda7e0;color:#37234e;box-shadow:0 2px 7px #44265815;font:600 13px system-ui;animation:stage-danmaku-fly 10s linear forwards;pointer-events:none}.stage-chat-open .stage-danmaku{opacity:.45}.stage-chat-backdrop{z-index:10020!important}.stage-chat-panel{z-index:10021!important}.stage-header nav{flex-wrap:wrap}.stage-header .stage-danmaku-toggle{min-width:70px}@keyframes stage-danmaku-fly{to{transform:translateX(calc(-100vw - 100%))}}@media(max-width:650px){.stage-draw-progress{gap:5px 10px;padding:6px 10px}.stage-draw-progress strong{font-size:15px}.stage-draw-progress span{font-size:10px}.stage-draw-progress small{font-size:10px}.stage-danmaku-line{font-size:12px;max-width:280px}}
.game-session-shell[data-phase=config] .stage-card{max-width:1180px;padding:16px 20px}.game-session-shell[data-phase=config] .stage-members{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));max-height:none!important;overflow:visible!important;gap:8px}.game-session-shell[data-phase=config] .stage-member{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:6px;padding:9px}.game-session-shell[data-phase=config] .stage-member>select{grid-column:2;grid-row:2;max-width:100%;width:100%;padding:5px}.game-session-shell[data-phase=config] .stage-member>button{grid-column:3;grid-row:1/3;align-self:center}.game-session-shell[data-phase=config] .stage-member>div{gap:2px}.game-session-shell[data-phase=config] .stage-member strong{font-size:12px;line-height:1.3}.game-session-shell[data-phase=config] .stage-member>img,.game-session-shell[data-phase=config] .stage-character-portrait{grid-row:1/3}.game-session-shell[data-phase=config] .stage-toggles{margin:10px 0}.game-session-shell[data-phase=config] .stage-settings-row{margin:8px 0}.game-session-shell[data-phase=config] .stage-bots{margin-top:12px}.stage-dialog>label{display:grid;gap:7px;margin:14px 0;font-size:13px}.stage-dialog>label :is(input,select){min-height:40px;border:1px solid #d6c4eb;border-radius:9px;padding:8px;background:#fff;color:#302444}.stage-dialog>button{margin:6px}@media(max-width:650px){.game-session-shell[data-phase=config] .stage-card{padding:12px}.game-session-shell[data-phase=config] .stage-members{grid-template-columns:repeat(2,minmax(0,1fr))!important}.game-session-shell[data-phase=config] .stage-member{grid-template-columns:26px minmax(0,1fr);padding:7px;gap:4px}.game-session-shell[data-phase=config] .stage-member>button{grid-column:1;grid-row:3;min-height:25px;padding:3px;font-size:10px}.game-session-shell[data-phase=config] .stage-member>select{grid-column:2;grid-row:3;font-size:11px}.game-session-shell[data-phase=config] .stage-member>img,.game-session-shell[data-phase=config] .stage-character-portrait{grid-row:1/3;width:26px!important;height:26px!important}.game-session-shell[data-phase=config] .stage-member strong{font-size:11px}}
html body.session-playing .portal .shared-rack>.opened-slot b{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden!important;max-height:2.8em!important;min-height:0!important;word-break:break-word!important;margin:0!important}html body.session-playing .portal .shared-rack>.opened-slot.stage-multi-bag>.opened-pair{display:grid!important;gap:4px!important;height:100%!important;min-height:0!important;overflow:hidden!important}html body.session-playing .portal .shared-rack>.opened-slot.stage-multi-bag>.opened-pair>div{display:grid!important;grid-template-rows:minmax(0,1fr) 14px!important;height:100%!important;min-height:0!important;overflow:hidden!important}html body.session-playing .portal .shared-rack>.opened-slot.stage-multi-bag b{-webkit-line-clamp:1!important;max-height:14px!important;font-size:9px!important;line-height:14px!important;white-space:nowrap!important;text-overflow:ellipsis}.shared-rack>.opened-slot{cursor:zoom-in!important}.stage-opened-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px}.stage-opened-details figure{margin:0;min-width:0;text-align:center}.stage-opened-details :is(img,svg){width:100%;height:180px;object-fit:contain}.stage-opened-details figcaption{margin-top:8px;font-size:13px;overflow-wrap:anywhere;line-height:1.5}.stage-dialog details{margin-top:16px;padding:12px;background:#f4edff;border-radius:12px}.stage-dialog details>summary{cursor:pointer;font-size:13px;color:#6750b8}.stage-dialog details>p{white-space:pre-line;font-size:13px;line-height:1.7}@media(max-width:650px){.stage-opened-details{grid-template-columns:repeat(2,minmax(0,1fr))}.stage-opened-details :is(img,svg){height:150px}}

.stage-grade-stock{display:flex;gap:6px;align-items:center;overflow-x:auto;max-width:100%;padding:4px 0 8px;scrollbar-width:thin}.stage-grade-badge{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;flex-shrink:0;padding:5px 9px;border:1px solid #d7c4ee;border-radius:9px;background:#fff;color:#4b3673;font-size:12px}.stage-grade-badge.sold-out{opacity:.5;background:#eee9f2}.stage-grade-last{font-size:11px;white-space:nowrap;color:#8267a1}.stage-dialog>input[type=search],.stage-dialog>select{max-width:100%;box-sizing:border-box;min-height:38px;padding:8px 10px;margin:10px 8px 10px 0;border:1px solid #d6c4eb;border-radius:9px;background:#fff;color:#302444}.stage-dialog .stage-pack-pages{justify-content:center;margin-top:12px}

.stage-random-card .stage-last-art{display:block;width:100%;height:min(26dvh,190px);object-fit:contain;margin-top:12px}.game-session-shell[data-phase=last-prize] .stage-random-card{min-height:210px}

.stage-kuji-last{display:grid;grid-template-columns:minmax(0,1fr) 140px;gap:8px;padding:18px;background:#fff;border:1px solid #e0d3ee;border-radius:16px;margin:16px 0}.stage-kuji-last h3,.stage-kuji-last p,.stage-kuji-last small{margin:0}.stage-kuji-last strong{font-size:24px;color:#7150b2}.stage-kuji-last :is(img,svg){grid-column:2;grid-row:1/5;width:100%;height:140px;object-fit:contain}.stage-kuji-players{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.stage-kuji-players p{font-size:13px;line-height:1.6}.stage-kuji-recap .stage-recap-stats{margin-top:14px}@media(max-width:650px){.stage-kuji-last{grid-template-columns:minmax(0,1fr) 100px}.stage-kuji-last :is(img,svg){height:120px}}

.stage-team-config-grid{display:grid;grid-template-columns:repeat(var(--team-columns,2),minmax(220px,1fr));gap:12px;align-items:start;overflow-x:auto}.stage-team-config-column{border:1px solid #d5c3eb;border-top:4px solid #8660bf;border-radius:14px;padding:10px;background:#f8f4ff;min-width:0}.stage-team-config-column:nth-child(even){border-top-color:#39979e}.stage-team-config-column>header{display:flex;align-items:center;gap:8px;margin-bottom:10px}.stage-team-config-column input{width:100%;min-width:0;padding:7px;border:1px solid #d6c4eb;border-radius:8px;font:600 13px system-ui;color:#352249;background:#fff}.stage-team-config-column small{white-space:nowrap}.stage-team-config-list{display:grid;gap:8px;min-height:70px}.stage-team-config-column.drag-over{outline:3px solid #a180d0;background:#eee1fc}.stage-team-config-list .stage-member{background:#fff!important;border:1px solid #e5d7f2;grid-template-columns:26px minmax(0,1fr)!important;padding:9px!important;cursor:grab}.stage-team-config-list .stage-member.dragging{opacity:.4}.stage-team-config-list .stage-member>select{grid-column:1/3!important;grid-row:auto!important}.stage-team-config-list .stage-member>button{grid-column:1/3!important;grid-row:auto!important;min-height:28px;padding:5px;font-size:11px}.stage-order-editor{margin-top:14px;border:1px solid #e0d3ee;border-radius:12px;padding:10px}.stage-order-editor>summary{cursor:pointer;font-size:13px;color:#604294}.stage-order-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:6px;margin:10px 0}.stage-order-list>div{display:flex;gap:5px;align-items:center;background:#f6f0fc;border-radius:9px;padding:6px}.stage-order-list span{flex:1;font-size:12px}.stage-order-list button{min-height:26px;padding:2px 9px}.stage-bot-role-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.stage-bot-role-grid button{display:grid;gap:5px;min-width:0;padding:7px}.stage-bot-role-grid :is(img,svg){width:100%;height:80px;object-fit:contain}.stage-bot-role-grid span{font-size:11px;line-height:1.4;overflow-wrap:anywhere}.stage-bot-role-grid [aria-pressed=true]{border:2px solid #8b5bcc;background:#eaddfa}@media(max-width:750px){.stage-team-config-grid{grid-template-columns:repeat(var(--team-columns,2),minmax(185px,1fr));overflow-x:auto;padding-bottom:8px}.stage-bot-role-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

.stage-drag-handle{grid-column:1/-1;display:block;font-size:10px;color:#795a9d;cursor:grab;touch-action:none;user-select:none;text-align:center;padding:4px;border-top:1px dashed #e2d4ec}

.stage-prediction-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}.stage-prediction-fields label{display:grid;gap:8px;padding:14px;border:1px solid #dccbed;border-radius:12px;background:#f8f3ff;font-size:14px}.stage-prediction-fields select{width:100%;min-width:0;padding:9px;border:1px solid #d1bce5;border-radius:8px;background:#fff;color:#302444}.stage-prediction-fields button{min-height:32px;font-size:12px;padding:7px 10px;background:#7752b9;color:#fff}.stage-spectator-list{display:grid;gap:8px}.stage-spectator-list>div{padding:10px;border:1px solid #e0d0ee;border-radius:10px;background:#f5effb;font-size:14px}.stage-prediction-card{max-width:950px}@media(max-width:650px){.stage-prediction-fields{grid-template-columns:1fr;gap:8px}.stage-prediction-fields label{padding:10px}}

/* Compact room toolbar and live standings */
.stage-header{gap:18px;align-items:center}.stage-header>div{flex-shrink:0}.stage-header .stage-toolbar{display:flex;align-items:center;gap:8px;max-width:none;flex-wrap:nowrap}.stage-toolbar-primary{display:flex;gap:8px;align-items:center}.stage-header .stage-toolbar button,.stage-toolbar-menu summary{min-height:40px;border-radius:12px;font-size:12px;font-weight:650;padding:9px 13px;transition:background .15s,border-color .15s}.stage-header .stage-toolbar-primary button{background:#ffffff13;border:1px solid #ffffff38;color:#fff}.stage-header .stage-toolbar-primary button:hover{background:#ffffff25;border-color:#ffffff80}.stage-toolbar-primary button[data-tool=battle]{background:#fff1c9!important;border-color:#fff1c9!important;color:#563779!important}.stage-toolbar-menu{position:relative}.stage-toolbar-menu summary{cursor:pointer;list-style:none;border:1px solid #ffffff38;background:#ffffff0d;color:#fff;box-sizing:border-box;display:flex;align-items:center;white-space:nowrap}.stage-toolbar-menu summary::-webkit-details-marker{display:none}.stage-toolbar-menu summary:focus-visible{outline:3px solid #e0c9fa;outline-offset:2px}.stage-toolbar-panel{position:absolute;right:0;top:calc(100% + 10px);width:320px;max-width:calc(100vw - 28px);max-height:65dvh;overflow:auto;padding:14px;border:1px solid #dfd1ef;border-radius:16px;background:#fffaf7;box-shadow:0 16px 45px #25113840;display:grid;grid-template-columns:1fr 1fr;gap:8px;z-index:90}.stage-toolbar-caption{grid-column:1/-1;color:#826d97;font-size:11px;margin:0 0 4px}.stage-header .stage-toolbar-panel button{background:#f3edf9;color:#543b78;border:1px solid #e3d6ef;min-height:42px}.stage-header .stage-toolbar-panel button:hover{background:#e9def7}.stage-battle-tabs button[aria-pressed=true]{background:#7054cb;color:#fff;border-color:#7054cb}.stage-ranking-note{color:#7d6c89;font-size:12px!important;margin:0 0 12px;line-height:1.6}.stage-ranking-list{display:grid;gap:8px}.stage-dialog-body .stage-ranking-row{display:flex;align-items:center;gap:13px;background:#fff;border:1px solid #e8ddef;border-radius:14px;margin:0;padding:13px 15px}.stage-ranking-row.is-me{background:#f4edff;border-color:#b79bdc}.stage-ranking-place{font-size:17px;font-weight:800;color:#a798b2;min-width:28px;font-variant-numeric:tabular-nums}.stage-ranking-row[data-place="1"] .stage-ranking-place{color:#b88118}.stage-ranking-row[data-place="2"] .stage-ranking-place{color:#7c88a2}.stage-ranking-row[data-place="3"] .stage-ranking-place{color:#ad765b}.stage-ranking-identity{display:flex;align-items:center;gap:11px;flex:1;min-width:0}.stage-ranking-identity>img{width:32px;height:32px;object-fit:cover;border-radius:50%;flex-shrink:0}.stage-ranking-identity>div{min-width:0}.stage-ranking-identity strong{font-size:14px;overflow-wrap:anywhere;display:block}.stage-ranking-identity small,.stage-ranking-score small{font-size:11px;color:#867293;display:block;margin-top:4px}.stage-ranking-score{text-align:right;flex-shrink:0}.stage-ranking-score strong{font-size:22px;color:#624096;font-variant-numeric:tabular-nums}.stage-dialog-body>select{font:13px system-ui;border:1px solid #dbcaea;border-radius:10px;padding:10px;width:100%;background:#fff;color:#362647;margin-bottom:14px}.stage-activity-card .activity-history-head{display:flex;align-items:center;gap:10px}.stage-activity-card .activity-history-head>div{flex:1;min-width:0}.stage-activity-card small{display:block;color:#826c92;font-size:11px}.stage-activity-card img,.stage-activity-card svg{max-width:100%;object-fit:contain}.stage-activity-card .activity-prizes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.stage-activity-card figure{margin:0;min-width:0}.stage-activity-card .activity-art{height:100px;display:flex;justify-content:center}.stage-activity-card .activity-art img,.stage-activity-card .activity-art svg{width:100%;height:100%;object-fit:contain}.stage-activity-card figcaption{font-size:12px;text-align:center;color:#362647}.stage-activity-card figcaption strong{color:#362647}.stage-activity-card .activity-history-head>img{width:32px;height:32px;border-radius:50%}
@media(max-width:650px){.stage-header{display:flex;flex-direction:column;align-items:stretch;padding:10px 12px;gap:9px}.stage-header>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.stage-header .stage-toolbar{width:100%;max-width:none;gap:6px;justify-content:space-between}.stage-toolbar-primary{flex:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.stage-header .stage-toolbar-primary button{font-size:10px;min-height:35px;padding:6px 4px;border-radius:9px}.stage-toolbar-menu summary{font-size:11px;min-height:35px;padding:6px 9px;border-radius:9px}.stage-toolbar-panel{width:300px}.stage-dialog-body .stage-ranking-row{padding:11px 10px;gap:8px}.stage-ranking-place{font-size:14px;min-width:22px}.stage-ranking-score strong{font-size:19px}.stage-ranking-identity strong{font-size:13px}.stage-ranking-identity small,.stage-ranking-score small{font-size:10px}.stage-activity-card .activity-prizes{grid-template-columns:repeat(2,minmax(0,1fr))}}

.stage-toolbar-panel[popover]{position:fixed;inset:auto 24px auto auto;margin:0;z-index:10040}.stage-toolbar-panel[popover]:not(:popover-open){display:none}.stage-toolbar-panel::backdrop{background:transparent}@media(max-width:650px){.stage-toolbar-panel[popover]{right:12px}.stage-header>div{flex-direction:row}}

.stage-dialog.stage-comeback-notice{width:min(580px,calc(100vw - 24px));background:linear-gradient(145deg,#fffaf3,#fff0d4);border:2px solid #dab477;box-shadow:0 22px 90px #3c24445c}.stage-comeback-notice .stage-dialog-body{text-align:center}.stage-comeback-emblem{width:64px;height:64px;display:grid;place-items:center;margin:0 auto 12px;border-radius:20px;background:#6a459d;color:#ffe3a4;font-size:40px;font-weight:800;box-shadow:0 7px 0 #d6bc93}.stage-comeback-eyebrow{font-size:10px;color:#947045;letter-spacing:2px}.stage-comeback-notice .stage-dialog-body h3{font-size:23px;margin:12px 0 8px;color:#493265}.stage-comeback-notice .stage-dialog-body p{color:#665575}.stage-comeback-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:20px}.stage-comeback-stats article{background:#ffffffd9!important;border:1px solid #ebd5ac;padding:14px 8px!important;margin:0!important}.stage-comeback-stats small{display:block;font-size:11px;color:#8b7656;margin-bottom:7px}.stage-comeback-stats strong{display:block;font-size:23px;color:#674495}.stage-comeback-notice>.stage-primary{display:block;width:100%;margin-top:16px;background:#674495;color:#fff}@media(max-width:650px){.stage-comeback-stats{gap:6px}.stage-comeback-stats strong{font-size:19px}.stage-comeback-notice .stage-dialog-body h3{font-size:20px}}@media(prefers-reduced-motion:no-preference){.stage-comeback-emblem{animation:stage-enter .3s ease-out}}

.stage-game-atlas{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stage-game-atlas .stage-atlas-card{margin:0;background:#fff;border:1px solid #e6d9ee}.stage-atlas-card h3{margin:0 0 9px;color:#674495}.stage-atlas-card p{margin:0 0 8px}.stage-atlas-card strong{font-size:12px;color:#7658a0}.stage-atlas-card summary{font-size:12px;color:#7f6598;cursor:pointer;margin-top:12px}.stage-bulk-gift-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-height:56dvh;overflow:auto}.stage-bulk-gift-results figure{margin:0;padding:10px;background:#f6effc;border-radius:12px;min-width:0}.stage-bulk-gift-results img,.stage-bulk-gift-results svg{height:130px;max-width:100%;width:100%;object-fit:contain}.stage-bulk-gift-results figcaption{font-size:12px;text-align:center;margin-top:8px;overflow-wrap:anywhere}.stage-endgame-notice{width:min(620px,calc(100vw - 24px));background:linear-gradient(135deg,#fff9ee,#f4ecff);border:2px solid #d5b477}.stage-endgame-notice .stage-dialog-body{text-align:center}.stage-endgame-number{font-size:58px;font-weight:850;line-height:1.1;color:#7050a6;letter-spacing:3px}.stage-endgame-gaps{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.stage-endgame-gaps article{background:#fff;border:1px solid #e0d0ec;margin:0}.stage-endgame-gaps small{display:block;color:#967caf;font-size:11px}.stage-endgame-gaps strong{display:block;font-size:23px;color:#674495;margin-top:8px}.stage-endgame-gaps p{font-size:12px!important;overflow-wrap:anywhere}.stage-endgame-notice>.stage-primary{width:100%;margin-top:14px}@media(max-width:650px){.stage-game-atlas{grid-template-columns:1fr}.stage-bulk-gift-results{grid-template-columns:repeat(2,minmax(0,1fr))}.stage-endgame-gaps{gap:8px}.stage-endgame-gaps strong{font-size:19px}}

.stage-mini-ranks{grid-template-columns:repeat(2,minmax(0,1fr))}.stage-mini-bottom{color:#97798b}.stage-export-preview{display:block;width:100%;height:auto;border:1px solid #e3d4ee;border-radius:12px;margin:12px 0;max-width:100%}.stage-dialog:has(.stage-export-preview){width:min(880px,calc(100vw - 24px))}

.stage-character-portrait{flex:0 0 auto!important;aspect-ratio:1 / 1;vertical-align:middle}.stage-team-members>div>.stage-character-portrait{width:32px;height:32px}.stage-character-portrait>img{max-width:none!important;border-radius:0!important}

@media(max-width:650px){.stage-toolbar-primary{grid-template-columns:repeat(5,minmax(0,1fr))}.stage-header .stage-toolbar-primary button{font-size:10px;padding:6px 3px}}

.stage-order-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:8px}.stage-order-list .stage-order-row{display:flex;align-items:center;gap:6px;padding:9px;border:1px solid transparent}.stage-order-row.drag-over{border-color:#9872c6;background:#e8daf8}.stage-order-row.dragging{opacity:.65}.stage-order-identity{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.stage-order-identity>img{width:32px;height:32px;object-fit:cover;border-radius:50%;flex:0 0 auto}.stage-order-identity>span:not(.stage-character-portrait){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.stage-order-drag{touch-action:none;cursor:grab;flex:0 0 auto;font-size:22px;color:#9671c4;padding:4px}.stage-order-row select{width:64px;padding:6px 3px;font:11px system-ui;border:1px solid #dbcbea;border-radius:8px;background:#fff;color:#6b4e8c}.stage-order-row button{min-height:30px;padding:5px 8px}.stage-order-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.prediction-result-card{background:#fff8f0;border:1px solid #e3d1ec;border-radius:12px;padding:12px;margin:8px 0}.prediction-result-card summary{cursor:pointer;font-size:13px;font-weight:650;color:#644382}.prediction-result-card p{font-size:12px;line-height:1.7;margin:9px 0 0}.prediction-hit{color:#2f785d}.prediction-miss{color:#927f9b}@media(max-width:650px){.stage-order-list{grid-template-columns:1fr}.stage-order-list .stage-order-row{gap:4px;padding:7px}.stage-order-row button{padding:4px 7px}.stage-order-identity{gap:5px;font-size:12px}}

.stage-order-row input[type=number]{width:64px;min-width:0;padding:6px 3px;font:11px system-ui;border:1px solid #dbcbea;border-radius:8px;background:#fff;color:#6b4e8c;box-sizing:border-box}

.stage-mini-tabs{grid-column:1/-1;display:flex;gap:5px}.stage-mini-tabs button{padding:3px 12px!important;min-height:24px!important;font:600 11px system-ui!important;background:#f1e8fc;color:#735091;border:1px solid #ddcdee;border-radius:7px;box-shadow:none!important}.stage-mini-tabs button[aria-pressed=true]{background:#7251b3;color:#fff}.stage-mini-team-list{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;max-height:70px;overflow:auto}.stage-mini-team-row{display:flex;align-items:center;gap:6px;min-width:0;font-size:11px}.stage-mini-team-row strong{margin-left:auto}

.stage-mini-rank-column{min-width:0;display:grid;gap:5px;align-content:start}.stage-mini-rank-column+ .stage-mini-rank-column{border-left:1px solid #e5d7ef;padding-left:10px}.stage-mini-rank-column h4{margin:0 0 3px;font:600 11px system-ui;color:#7251a1}.stage-mini-rank-row{display:flex;align-items:center;gap:5px;min-width:0;font-size:11px}.stage-mini-rank-row strong{margin-left:auto}.stage-export-preview{-webkit-touch-callout:default;user-select:auto;-webkit-user-select:auto}

.stage-mobile-social{display:none}.stage-team-members small{display:block;font-size:10px;color:#886b9b;margin-top:3px}.stage-settlement-scores{margin-top:15px}.stage-settlement-scores .stage-ranking-row{display:flex;align-items:center;gap:12px;border:1px solid #e4d8ee;border-radius:12px;background:#fff;padding:10px}.stage-settlement-scores .stage-ranking-row>strong{white-space:nowrap;color:#6d4998}.stage-ranking-identity .equipped-title{display:inline-flex;font-size:10px;color:#67401a}.stage-recap-player .equipped-title{font-size:10px}@media(max-width:650px){.game-session-shell[data-phase=config] .stage-member{grid-template-columns:32px minmax(0,1fr);align-items:center;gap:7px;padding:9px;min-height:70px}.game-session-shell[data-phase=config] .stage-member>div{min-width:0;grid-column:2;grid-row:1}.game-session-shell[data-phase=config] .stage-member>img,.game-session-shell[data-phase=config] .stage-character-portrait{grid-row:1;width:32px!important;height:32px!important}.game-session-shell[data-phase=config] .stage-member>button{grid-column:1/-1;grid-row:2;min-height:32px;padding:5px 8px;white-space:nowrap;writing-mode:horizontal-tb;width:100%}.game-session-shell[data-phase=config] .stage-member>select{grid-column:1/-1;grid-row:3}.game-session-shell[data-phase=config] .stage-member strong{font-size:12px;overflow-wrap:anywhere}.stage-mobile-social{display:grid;grid-template-columns:1fr 1fr;gap:8px;order:-1;width:100%}.stage-mobile-social button{min-height:38px;padding:6px 12px;touch-action:manipulation}.session-playing .stage-header [data-tool=chat],.session-playing .stage-header [data-tool=danmaku]{display:none}.session-playing .stage-toolbar-primary{grid-template-columns:repeat(3,minmax(0,1fr))}.session-playing .stage-footer{max-height:270px;padding-bottom:max(8px,env(safe-area-inset-bottom));gap:5px}.stage-settlement-scores .stage-ranking-row{padding:8px}.stage-settlement-scores .stage-ranking-identity strong{font-size:12px}.stage-settlement-scores .stage-ranking-identity small{font-size:10px}}

.stage-header{flex-wrap:wrap}.stage-header .stage-toolbar{margin-left:auto}.stage-header .stage-toolbar-primary{display:flex;flex:0 0 auto}.stage-header-task{order:3;flex-basis:100%;display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:12px;background:#ffffff16;border:1px solid #ffffff30}.stage-header-task select{max-width:170px;min-width:70px;border:1px solid #ffffff45;border-radius:8px;background:#fff;color:#5c3a90;padding:7px;font:12px system-ui;touch-action:manipulation}.stage-compact-task{display:grid;gap:4px;min-width:0}.stage-compact-task strong{font:600 12px system-ui;overflow-wrap:anywhere}.stage-compact-task small{font:11px/1.4 system-ui}.stage-compact-task progress{width:100%;height:6px;accent-color:#a88ce6;border-radius:9px}.stage-compact-task.complete progress{accent-color:#3a9b84}.stage-header-task .stage-compact-task{flex:1;color:#fff}.stage-header-task .stage-compact-task strong{color:#fff;font-size:12px}.stage-header-task .stage-compact-task small{color:#eee4ff}.stage-mini-tabs{gap:4px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.stage-mini-tabs button{padding:3px 8px!important}.stage-mini-task-list,.stage-mini-members{grid-column:1/-1;max-height:82px;overflow:auto;width:100%;min-width:0}.stage-mini-task-list{display:grid;gap:7px}.stage-mini-task-list .stage-compact-task{padding:5px 2px;border-bottom:1px solid #e5d7ef;color:#65437e}.stage-mini-members select{width:100%;box-sizing:border-box;background:#fff;border:1px solid #d7c5e8;border-radius:7px;color:#65437e;font:11px system-ui;padding:3px;touch-action:manipulation}.stage-mini-member-list{display:grid;gap:5px;padding-top:5px}.stage-mini-members .stage-mini-team-row span{max-width:160px}@media(max-width:650px){.stage-header{flex-direction:row;gap:7px;align-items:center}.stage-header>div{min-width:0;flex:1;flex-direction:column;align-items:flex-start;gap:3px}.stage-header .stage-toolbar{width:auto;flex:0 0 auto;margin-left:auto}.stage-header-task{padding:6px 8px;gap:7px}.stage-header-task select{max-width:100px;min-width:60px;font-size:10px;padding:5px}.stage-header-task .stage-compact-task strong{font-size:11px}.stage-header-task .stage-compact-task small{font-size:10px}.stage-mini-task-list,.stage-mini-members{max-height:70px}.stage-header .stage-toolbar-primary button{min-height:35px;padding:6px 9px;font-size:11px}.stage-header .stage-toolbar-primary{display:flex}.stage-header strong{font-size:15px}}

.stage-mini-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}

.stage-ability-confirm{border:2px solid #b699df;background:#fffaf4}.stage-confirm-status{background:#f0e6ff;padding:10px;border-radius:10px;font-weight:650;color:#62438b}.stage-confirm-waiting{font-size:12px;line-height:1.7;overflow-wrap:anywhere}.stage-ability-confirm>[data-ability-confirm]{width:100%;min-height:44px;touch-action:manipulation}.stage-ability-waiting{grid-column:1/-1;color:#704992;text-align:center}

.stage-presentation-art{display:grid;justify-items:center;gap:10px;padding:16px 12px;margin-bottom:12px;border-radius:18px;background:radial-gradient(ellipse,#fff3c9,#f2e9ff);color:#533d7b;overflow:hidden}.stage-presentation-identity{display:flex;align-items:center;gap:8px;font-size:13px}.stage-presentation-motif{position:relative;display:flex;justify-content:center;align-items:center;gap:16px;min-height:100px}.stage-presentation-symbol{font-size:64px;color:#8a59c6;animation:stage-power-rise .8s ease both;filter:drop-shadow(0 4px 8px #9a6cba33)}.stage-presentation-art[data-effect=opening] .stage-presentation-symbol{color:#ce7550}.stage-presentation-seal{font:bold 11px system-ui;padding:8px 20px;border:2px solid #d7a757;background:#fff0c2;transform:rotate(-12deg);animation:stage-seal-open .8s ease both}.stage-presentation-card{display:grid;gap:9px;justify-items:center;background:#fff;border:2px solid #c8b0e5;padding:14px;border-radius:12px;min-width:70px;animation:stage-card-turn .8s ease both}.stage-presentation-card:last-child{border-color:#cca859;background:#fff9df;animation-delay:.15s}.stage-presentation-card small{font-size:11px}.stage-presentation-card strong{font-size:22px}.stage-presentation-caption{font-size:19px;color:#654498;animation:stage-power-rise .9s ease both}.stage-presentation-score{font-size:24px;font-weight:750;color:#6b4999;margin:0}.stage-presentation-team{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}.stage-presentation-team img{width:32px;height:32px;border-radius:50%;object-fit:cover}.stage-presentation-art[data-effect=team-comeback]{background:linear-gradient(135deg,#e9efff,#fff2cf)}.stage-presentation-art[data-effect=team-complete]{background:linear-gradient(135deg,#e3f3ec,#fff4cc)}.stage-presentation-art[data-effect=team-complete] .stage-presentation-symbol{color:#b28c36}.stage-presentation-art.simple *{animation:none!important}.stage-final-review{text-align:center;display:grid;gap:12px;align-content:center;min-height:45dvh;background:linear-gradient(135deg,#fff8dc,#f3eafd)}.stage-final-count{font:750 48px system-ui;color:#7452b8}.stage-presentation-dialog .stage-confirm-waiting{font-size:11px}@keyframes stage-power-rise{from{opacity:0;transform:translateY(18px) scale(.75)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes stage-card-turn{from{opacity:0;transform:perspective(400px) rotateY(90deg)}to{opacity:1;transform:perspective(400px) rotateY(0)}}@keyframes stage-seal-open{from{opacity:1;transform:rotate(-12deg) scale(1.15)}to{opacity:.4;transform:rotate(12deg) translateX(12px)}}@media(max-width:650px){.stage-presentation-dialog{max-height:85dvh;overflow:auto}.stage-presentation-art{gap:7px;padding:12px 8px}.stage-presentation-motif{min-height:85px;gap:8px}.stage-presentation-symbol{font-size:50px}.stage-presentation-caption{font-size:17px}.stage-presentation-card{min-width:55px;padding:10px}.stage-final-count{font-size:38px}}@media(prefers-reduced-motion:reduce){.stage-presentation-art *{animation:none!important}}

.stage-presentation-card:last-child{border-color:#c8b0e5;background:#fff}.stage-presentation-card.kept{border-color:#cca859;background:#fff9df;box-shadow:0 0 18px #edcd7540}.stage-presentation-card:not(.kept){opacity:.65}.stage-chase-route{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:20px;background:#fff;border:1px solid #cfb9e6;font:600 12px system-ui;color:#70529c}

.game-session-shell[data-phase=benefits] .stage-benefit-card{animation:stage-benefit-enter .45s ease both}@keyframes stage-benefit-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.game-session-shell[data-phase=benefits] .stage-benefit-card{animation:none}}

.stage-effect-slots{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:7px;max-width:100%}.stage-effect-slots>span{display:grid;place-items:center;min-width:35px;min-height:35px;padding:5px;border:1px dashed #cbb7de;background:#fff9;border-radius:10px;font:650 13px system-ui;color:#9d87ae;box-sizing:border-box}.stage-effect-slots>.filled{border-style:solid;border-color:#a37acb;background:#eee0ff;color:#63358d;animation:stage-slot-light .5s ease both;animation-delay:calc(var(--slot)*.06s)}.stage-effect-slots>.failed{background:#f4e3e8;border-color:#b98497;color:#884454}.stage-effect-slots[data-pattern=chase]>span{clip-path:polygon(0 0,80% 0,100% 50%,80% 100%,0 100%,15% 50%);padding:7px 14px;min-width:58px}.stage-effect-slots[data-pattern=stairs]>span:nth-child(2){transform:translateY(-7px)}.stage-effect-slots[data-pattern=stairs]>span:nth-child(3){transform:translateY(-14px)}.stage-effect-slots[data-pattern=bank-stamps]>span{border-radius:50%;min-width:32px;min-height:32px;background:#fff}.stage-effect-slots[data-pattern=bank-stamps]>.filled{color:#a4752b;border:2px solid #cba458;animation:stage-ledger-stamp .5s ease both;animation-delay:calc(var(--slot)*.05s)}.stage-effect-slots[data-pattern=wish-stars]>span{border:0;background:none;color:#b58d42;font-size:27px}.stage-effect-goods{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;width:100%}.stage-effect-goods figure{margin:0;min-width:0;width:90px;padding:7px;background:#fff;border:1px solid #dac9e9;border-radius:10px;box-sizing:border-box}.stage-effect-goods :is(img,svg){display:block;width:100%;height:72px;object-fit:contain}.stage-effect-goods figcaption{font:10px/1.4 system-ui;color:#634a78;overflow-wrap:anywhere;text-align:center;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:5px}.stage-effect-wish-target{position:relative;border:2px solid #a17aca;border-radius:50%;padding:13px;animation:stage-target-lock .8s ease both}.stage-effect-wish-target:before,.stage-effect-wish-target:after{content:'';position:absolute;background:#9d71c9;pointer-events:none}.stage-effect-wish-target:before{width:calc(100% + 20px);height:1px;left:-10px;top:50%;opacity:.3}.stage-effect-wish-target:after{height:calc(100% + 20px);width:1px;top:-10px;left:50%;opacity:.3}.stage-effect-wish-target .stage-effect-goods{position:relative;z-index:1}.stage-effect-placeholder{display:grid;place-items:center;min-width:75px;min-height:75px;color:#856499;background:#fff;border-radius:12px}.stage-effect-bank-book{display:grid;gap:12px;text-align:center;padding:15px 18px;background:linear-gradient(90deg,#f0e2c1 0 6%,#fff7df 6%);border:1px solid #d3b76b;border-radius:7px 15px 15px 7px;box-shadow:3px 5px 0 #d4c5a540}.stage-effect-bank-book>b{font-size:24px;color:#937035}.stage-effect-prediction{display:flex;gap:12px}.stage-effect-prediction>div{display:grid;place-items:center;gap:8px;padding:15px 20px;border:1px dashed #c1aed6;border-radius:12px;background:#fff;color:#9f8cab;min-width:60px;animation:stage-card-turn .7s ease both}.stage-effect-prediction [data-selected=true]{border:2px solid #ad86d6;background:#eee2fb;color:#61408a}.stage-effect-prediction small{font-size:11px}.stage-effect-alchemy{max-width:100%}.stage-effect-alchemy figure:first-child{animation:stage-alchemy-left .9s ease both}.stage-effect-alchemy figure:last-child{animation:stage-alchemy-right .9s ease both}.stage-effect-tier-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:240px;width:100%}.stage-effect-tier-grid>span{padding:10px;text-align:center;border:1px dashed #cdbbdc;border-radius:9px;background:#fff8;color:#a592b2;font-weight:700}.stage-effect-tier-grid>.filled{border-style:solid;background:#e9d8fd;border-color:#a77cce;color:#6c4295;animation:stage-slot-light .6s ease both}.stage-effect-final-seal{padding:10px 22px;border:3px double #c09b51;border-radius:12px;background:#fff1c7;color:#967028;font:750 16px system-ui;letter-spacing:2px;animation:stage-final-stamp .9s ease both}.stage-presentation-art[data-effect=finale]{background:radial-gradient(ellipse,#fff1b0,#f4e9ff)}.stage-effect-base-change{font:650 14px system-ui;margin:0;color:#69508a}.stage-effect-reward{font-size:23px;color:#9b7727;animation:stage-power-rise .8s ease both}.stage-effect-open-team{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}.stage-effect-open-team>span{padding:7px;background:#e4f4ec;border:1px solid #9dcbb8;border-radius:20px;font:11px system-ui;color:#3a7963;animation:stage-slot-light .6s ease both}.stage-effect-slots[data-pattern=ace-cards]>span{border-color:#c8a45c;background:#fff3cb;color:#9b7228;transform:rotate(-4deg)}.stage-effect-link{padding:6px 12px;border-top:3px solid #b49bd2;border-bottom:3px solid #b49bd2;color:#755492;font:12px system-ui;animation:stage-link-join .8s ease both}.stage-effect-atlas{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;padding:12px;border:2px solid #b497d3;border-radius:10px;background:#fff6}.stage-effect-atlas>span{padding:5px 9px;background:#eee1fa;border-radius:4px;color:#8358a9;animation:stage-slot-light .5s ease both;animation-delay:calc(var(--slot)*.035s)}.stage-effect-energy{width:min(250px,90%);height:20px;padding:4px;box-sizing:border-box;background:#fff;border:1px solid #be9cdd;border-radius:20px;overflow:hidden}.stage-effect-energy>i{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,#82c7bc,#b192e4,#e1c16c);animation:stage-energy-fill 1s ease both}.stage-effect-balance{font-size:46px;color:#887144;transform-origin:50% 65%;animation:stage-balance-settle 1s ease both}.stage-effect-finish-line{padding:9px 15px;border-radius:12px;background:repeating-linear-gradient(90deg,#f8f0db 0 12px,#fff 12px 24px);border:1px solid #d1b371;font:600 12px system-ui;color:#947136}.stage-presentation-art[data-task-kind=wish]{background:linear-gradient(135deg,#fff2d1,#fbe4ed)}.stage-presentation-art[data-task-kind=relay]{background:linear-gradient(135deg,#e0f3ef,#efe1ff)}.stage-presentation-art[data-status=failure]{background:linear-gradient(135deg,#f7eff4,#efedf6)}.stage-compact-task progress::-webkit-progress-value{transition:width .35s ease}.stage-compact-task progress::-moz-progress-bar{transition:width .35s ease}@keyframes stage-slot-light{from{opacity:.4;scale:.8}to{opacity:1;scale:1}}@keyframes stage-ledger-stamp{from{scale:1.5;opacity:0;rotate:-15deg}to{scale:1;opacity:1;rotate:-5deg}}@keyframes stage-target-lock{from{scale:1.2;opacity:.4;rotate:12deg}to{scale:1;opacity:1;rotate:0deg}}@keyframes stage-alchemy-left{from{transform:translateX(-12px);opacity:.6}to{transform:translateX(8px);opacity:1}}@keyframes stage-alchemy-right{from{transform:translateX(12px);opacity:.6}to{transform:translateX(-8px);opacity:1}}@keyframes stage-final-stamp{from{scale:1.4;opacity:0;rotate:-15deg}to{scale:1;opacity:1;rotate:0deg}}@keyframes stage-link-join{from{clip-path:inset(0 50%)}to{clip-path:inset(0 0)}}@keyframes stage-energy-fill{from{width:0}to{width:100%}}@keyframes stage-balance-settle{0%{rotate:-9deg}50%{rotate:5deg}100%{rotate:0deg}}@media(max-width:650px){.stage-effect-goods figure{width:73px;padding:5px}.stage-effect-goods :is(img,svg){height:58px}.stage-effect-slots{gap:5px}.stage-effect-slots>span{min-width:29px;min-height:29px;font-size:11px}.stage-effect-bank-book{padding:12px}.stage-effect-prediction>div{padding:12px}.stage-effect-tier-grid{max-width:200px}.stage-effect-reward{font-size:20px}}

.stage-effect-atlas>span:not(.filled){background:#fff8;color:#c1b5cf;animation:none}

.stage-effect-charm-balance{display:flex;align-items:center;justify-content:center;gap:1rem;padding:1rem;font-size:clamp(1.5rem,5vw,2.5rem);font-weight:800;color:#6650ae;animation:balance-settle .8s ease-out both}.stage-presentation-art[data-effect="charm"]{background:linear-gradient(135deg,#edf7f5,#f3edff)}

.stage-effect-night-sky{position:relative;width:min(100%,340px);height:230px;margin:1rem auto;border-radius:24px;background:radial-gradient(ellipse at center,#66558e 0%,#2d294c 70%);overflow:hidden;box-shadow:inset 0 0 40px #afa1d633}.stage-sky-orbit{position:absolute;inset:20% 18%;border:1px dashed #e5d6a980;border-radius:50%;animation:sky-orbit 1.2s ease-out both}.stage-sky-star{position:absolute;left:var(--sx);top:var(--sy);transform:translate(-50%,-50%);min-width:28px;padding:5px;border-radius:50%;background:#fff7d4;color:#27213c;font-weight:800;font-size:14px;box-shadow:0 0 14px #f2de89aa;animation:sky-reveal .5s ease-out both;animation-delay:calc(var(--stellar-index)*60ms)}.stage-sky-clues{display:grid;grid-template-columns:repeat(auto-fit,minmax(95px,1fr));gap:10px;margin:16px 0}.shared-rack>button.stage-sky-hint{outline:2px solid #b69750;outline-offset:-3px}.stage-presentation-art[data-effect="nightSky"]{background:linear-gradient(145deg,#f7f0ff,#fff8dd)}.stage-effect-charm-balance{position:relative;isolation:isolate;min-height:120px;border-radius:24px;background:linear-gradient(110deg,#e1f4ef,#f0e4ff);overflow:hidden;animation:charm-unfold .8s ease-out both}.stage-charm-ring{position:absolute;width:150px;height:150px;border-radius:50%;border:2px solid #7bb6ac66;left:calc(50% - 75px);top:calc(50% - 75px);z-index:-1;animation:charm-ring .9s ease-out both}.stage-charm-ring.second{width:110px;height:110px;left:calc(50% - 55px);top:calc(50% - 55px);border-color:#a283d080;animation-delay:100ms}.stage-presentation-art[data-effect="charm"][data-status="cancelled"] .stage-charm-ring{animation:charm-close .8s ease-out both}@keyframes sky-reveal{from{opacity:0;filter:blur(3px);scale:.6}to{opacity:1;filter:blur(0);scale:1}}@keyframes sky-orbit{from{opacity:0;transform:rotate(-30deg) scale(.6)}to{opacity:1;transform:rotate(0) scale(1)}}@keyframes charm-unfold{from{opacity:0;transform:scale(.85)}to{opacity:1;transform:scale(1)}}@keyframes charm-ring{from{opacity:0;transform:scale(.3)}to{opacity:1;transform:scale(1)}}@keyframes charm-close{from{opacity:1;transform:scale(1)}to{opacity:.2;transform:scale(.7)}}.stage-presentation-art.simple .stage-sky-star,.stage-presentation-art.simple .stage-sky-orbit,.stage-presentation-art.simple .stage-charm-ring,.stage-presentation-art.simple .stage-effect-charm-balance{animation:none!important}@media(prefers-reduced-motion:reduce){.stage-sky-star,.stage-sky-orbit,.stage-charm-ring,.stage-effect-charm-balance{animation:none!important}}@media(max-width:650px){.stage-effect-night-sky{height:210px}.stage-sky-star{font-size:13px}.stage-sky-clues{grid-template-columns:repeat(3,minmax(0,1fr))}}

.stage-danmaku-tools .interaction-tools button{min-height:40px!important;padding:8px 12px!important;font-size:13px!important}.stage-danmaku-tools .interaction-tools{margin-top:12px}

.stage-team-skill-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:center;padding:8px 12px;margin:6px 12px;border-radius:14px;background:#efe7fb;border:1px solid #d2bfeb}.stage-team-skill-motion{font-size:64px;color:#7251af;text-align:center;animation:team-skill-exchange 1.1s ease-out both}.stage-presentation-art[data-team-skill="team-skill-roulette"] .stage-team-skill-motion{animation:team-skill-wheel 1.5s ease-out both}.stage-presentation-art[data-team-skill="team-skill-gamble"] .stage-team-skill-motion{animation:team-skill-fold 1s ease-out both}.stage-team-duel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stage-team-duel>article,.stage-team-preview{min-width:0;padding:12px;border:1px solid #d9c7ec;border-radius:14px;background:#fff}.stage-duel-pack{animation:team-duel-reveal .6s ease-out both;animation-delay:calc(var(--duel-index)*180ms)}@keyframes team-skill-exchange{from{opacity:0;transform:translateX(-30px) scale(.7)}to{opacity:1;transform:translateX(0) scale(1)}}@keyframes team-skill-wheel{from{transform:rotate(-300deg) scale(.6);opacity:0}to{transform:rotate(0) scale(1);opacity:1}}@keyframes team-skill-fold{from{transform:rotateY(80deg);opacity:0}to{transform:rotateY(0);opacity:1}}@keyframes team-duel-reveal{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}.stage-presentation-art.simple .stage-team-skill-motion,.stage-presentation-art.simple .stage-duel-pack{animation:none!important}@media(prefers-reduced-motion:reduce){.stage-team-skill-motion,.stage-duel-pack{animation:none!important}}@media(max-width:650px){.stage-team-duel{gap:6px}.stage-team-duel>article{padding:6px}.stage-team-duel .stage-effect-goods{grid-template-columns:minmax(0,1fr)}}

dialog[data-kind="team-skills"] button{touch-action:manipulation;min-height:44px}@media(hover:none){dialog[data-kind="team-skills"] button:hover{transform:none!important}}
/* Shared after-gift award stage. Bright surfaces keep every name and detail readable. */
.game-session-shell[data-phase=awards] .stage-main{background:radial-gradient(ellipse at 50% 12%,#fff0bc 0,transparent 56%),linear-gradient(155deg,#fbf7ef,#f1eaff);padding:clamp(18px,4vw,48px)}
.stage-awards{position:relative;isolation:isolate;width:min(1100px,100%);margin:0 auto;padding:12px 0 30px;text-align:center;color:#282135;overflow:hidden}
.stage-award-heading{position:relative;z-index:1;display:flex;align-items:center;flex-direction:column;gap:10px;background:none!important;color:#282135!important}
.stage-award-heading>small{letter-spacing:.16em;font-size:12px;color:#756283}.stage-award-step{font-size:13px;color:#74637e;border:1px solid #d8c9e8;border-radius:30px;padding:3px 14px;background:#fff9}
.stage-award-heading h1{font-size:clamp(29px,5vw,52px);line-height:1.25;margin:0;color:#392456}.stage-award-symbol{display:grid;place-items:center;margin:15px auto 6px;width:110px;height:110px;border-radius:50%;background:linear-gradient(135deg,#fff6c7,#e3bc58);color:#63441d;font-size:70px;box-shadow:0 0 0 9px #ffe9ad66,0 12px 35px #96774724}.stage-awards[data-place="2"] .stage-award-symbol{background:linear-gradient(135deg,#fff,#c4bbd7);color:#635572}.stage-awards[data-place="3"] .stage-award-symbol{background:linear-gradient(135deg,#ffe6ce,#c18d68);color:#67442e}.stage-awards[data-kind=highlight] .stage-award-symbol{background:linear-gradient(135deg,#f4e8ff,#ccaff0);color:#7046a0}.stage-award-subtitle{margin:0 0 20px;color:#72617c}
.stage-award-winners{position:relative;z-index:1;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:18px;max-width:850px;margin:0 auto}.stage-award-winner{display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px 22px;border:1px solid #dfd0ee;background:#fffefb;border-radius:24px;box-shadow:0 12px 34px #5640760d;min-width:0;overflow-wrap:anywhere}.stage-award-winner h2{font-size:clamp(22px,3vw,30px);margin:0;color:#2d233a}.stage-award-winner p{margin:0;line-height:1.8;color:#51465b;white-space:pre-line}.stage-award-portrait{display:grid;place-items:center;width:92px;height:92px;border:4px solid #eedba6;border-radius:50%;overflow:hidden;background:#f3ebfc}.stage-award-portrait>img,.stage-award-portrait>.stage-character-portrait{width:84px!important;height:84px!important;flex-basis:84px!important;border-radius:50%;object-fit:cover}.stage-award-score{font-size:clamp(32px,5vw,48px);color:#7448a6;line-height:1.2}.stage-award-team-badge{padding:3px 12px;border-radius:20px;background:#f0e8fb;color:#624a7c}.stage-award-team-names{position:relative;z-index:1;display:flex;justify-content:center;flex-wrap:wrap;gap:18px;margin:0 auto 22px}.stage-award-team-names article{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:8px 18px;padding:16px 25px;background:#fff5d2;border:1px solid #e5d19c;border-radius:18px}.stage-award-team-names strong{font-size:26px}.stage-award-team-names span{font-size:30px;color:#714d22;font-weight:800}.stage-award-team-names small{flex:1 0 100%;color:#806740}.stage-award-note{font-size:13px;color:#82748d;margin:24px 0 0}.stage-award-goods{display:flex;justify-content:center;flex-wrap:wrap;gap:14px;margin-top:20px}.stage-award-goods figure{margin:0;padding:12px;background:white;border:1px solid #e4d7ef;border-radius:16px;max-width:200px}.stage-award-goods img{display:block;width:160px;height:160px;object-fit:contain}.stage-award-goods figcaption{color:#51455c;font-size:14px;margin-top:8px}.stage-award-status{font-size:14px;color:#6d5e7c;line-height:1.6;overflow-wrap:anywhere;max-width:650px}.game-session-shell[data-phase=awards] .stage-footer{justify-content:center;gap:12px;flex-wrap:wrap;padding-bottom:max(16px,env(safe-area-inset-bottom))}.stage-award-next{min-width:230px;min-height:48px;touch-action:manipulation}
.stage-award-sparks{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}.stage-award-sparks i{position:absolute;left:calc(var(--i)*4.2%);top:-20px;width:7px;height:14px;background:#c19cda;opacity:0;border-radius:2px;transform:rotate(calc(var(--i)*33deg))}.stage-award-sparks i:nth-child(3n){background:#d8ad49}.stage-award-sparks i:nth-child(3n+1){background:#6ca5a2}.stage-awards.is-revealing .stage-award-sparks i{animation:stage-award-confetti 2.5s calc(var(--i)*.025s) ease-out both}.stage-awards.is-revealing .stage-award-symbol{animation:stage-award-medal 1.1s ease-out both}.stage-awards.is-revealing .stage-award-winner,.stage-awards.is-revealing .stage-award-team-names{animation:stage-award-entrance .8s .25s ease-out both}
@keyframes stage-award-medal{0%{opacity:0;transform:scale(.5) rotate(-15deg)}65%{opacity:1;transform:scale(1.08) rotate(3deg)}100%{transform:scale(1)}}@keyframes stage-award-entrance{from{opacity:0;transform:translateY(25px)}to{opacity:1;transform:none}}@keyframes stage-award-confetti{0%{opacity:0;transform:translateY(0) rotate(0)}15%{opacity:.8}100%{opacity:0;transform:translateY(600px) rotate(480deg)}}
.stage-awards[data-simple=true] *{animation:none!important}.stage-awards[data-simple=true] .stage-award-sparks{display:none}@media(prefers-reduced-motion:reduce){.stage-awards *{animation:none!important}.stage-award-sparks{display:none}}@media(max-width:540px){.game-session-shell[data-phase=awards] .stage-main{padding:20px 14px}.stage-award-heading>small{font-size:10px}.stage-award-winner{padding:22px 16px}.stage-award-symbol{width:88px;height:88px;font-size:55px}.game-session-shell[data-phase=awards] .stage-footer{flex-direction:column;align-items:stretch;text-align:center}.stage-award-next{width:100%}.stage-award-winners{grid-template-columns:1fr}.stage-award-heading{gap:8px}}
/* Mobile game: restore the package-first 4 x 3 layout. */
@media(max-width:650px){
.session-playing .stage-header{min-height:0!important;padding:8px 10px;gap:6px 10px}.session-playing .stage-header>div{gap:2px}.session-playing .stage-header strong{font-size:15px}.session-playing .stage-header small{font-size:9px;letter-spacing:.4px}.session-playing .stage-header .stage-toolbar{max-width:none;gap:4px}.session-playing .stage-header .stage-toolbar-primary{gap:4px}.session-playing .stage-header .stage-toolbar-primary button,.session-playing .stage-toolbar-menu>summary{min-height:34px;padding:6px 8px;font-size:11px;white-space:nowrap;box-sizing:border-box}.session-playing .stage-header-task{margin:0;padding:4px 7px;gap:7px;min-height:0;border-radius:9px}.session-playing .stage-header-task select{width:70px;min-width:60px;max-width:80px;padding:4px;font-size:10px}.session-playing .stage-header-task .stage-compact-task{gap:2px;overflow:hidden}.session-playing .stage-header-task .stage-compact-task strong{font-size:10px;line-height:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.session-playing .stage-header-task .stage-compact-task small{font-size:9px;line-height:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.session-playing .stage-header-task progress{height:3px}.stage-team-pending-dot{color:#ffe083;font-size:9px}.session-playing .stage-team-skill-tools{display:none}.session-playing .stage-main{padding:6px 10px}.session-playing .stage-draw-progress{margin:0 0 5px;padding:6px 8px;gap:3px 9px;border-radius:10px;min-height:0}.session-playing .stage-draw-progress strong{font-size:13px}.session-playing .stage-draw-progress span{font-size:9px}.session-playing .stage-turn{font-size:11px;line-height:16px;margin:0}
.session-playing .stage-footer{display:grid!important;grid-template-columns:minmax(0,1fr) 116px;grid-template-areas:"pages social" "ability ability" "ranks ranks";align-items:center;justify-content:stretch;gap:5px 8px;padding:6px 10px max(6px,env(safe-area-inset-bottom));min-height:0!important;max-height:none!important;overflow:visible;font-size:10px}.session-playing .stage-footer>.stage-pack-pages{grid-area:pages;gap:4px;justify-content:flex-start;white-space:nowrap;min-width:0;font-size:10px}.session-playing .stage-footer>.stage-pack-pages button{min-height:34px;padding:4px 7px;font-size:11px;white-space:nowrap}.session-playing .stage-footer>.stage-mobile-social{grid-area:social;display:grid;grid-template-columns:1fr 1fr;gap:4px;width:auto;order:0;min-width:0}.session-playing .stage-mobile-social button{min-width:0;min-height:34px;padding:4px 2px;font-size:11px;white-space:nowrap}.session-playing .stage-footer>.stage-own-ability{grid-area:ability;width:100%;min-width:0;max-width:none;flex-basis:auto;margin:0;padding:7px 8px;gap:4px 6px;border-radius:12px}.session-playing .stage-own-ability .stage-ability-label{display:none}.session-playing .stage-own-ability strong{font-size:12px}.session-playing .stage-own-ability small{font-size:9px}.session-playing .stage-own-ability button{font-size:10px;min-height:34px;padding:5px 7px}.session-playing .stage-footer>small{grid-area:ability;text-align:center;line-height:20px}.session-playing .stage-footer>.stage-mini-ranks{grid-area:ranks;width:100%;margin:0;padding:5px 8px;gap:3px 8px}.session-playing .stage-mini-tabs{gap:4px}.session-playing .stage-mini-tabs button{min-height:22px!important;padding:2px 7px!important;font-size:10px!important}.session-playing .stage-mini-rank-column{gap:3px}.session-playing .stage-mini-rank-column h4{font-size:9px;line-height:11px;margin:0}.session-playing .stage-mini-rank-row,.session-playing .stage-mini-team-row{font-size:10px;line-height:13px;gap:4px}.session-playing .stage-mini-ranks span{max-width:none;flex:1;min-width:0}.session-playing .stage-mini-rank-column+.stage-mini-rank-column{padding-left:8px}.session-playing .stage-mini-members,.session-playing .stage-mini-team-list{max-height:63px}.session-playing .stage-footer>.stage-error{grid-column:1/-1}
html body.session-playing .portal .shared-rack{gap:8px!important;padding:4px!important}html body.session-playing .portal .shared-rack>button{aspect-ratio:auto!important;margin:0!important;align-self:stretch!important;min-block-size:0!important;max-block-size:100%!important;box-shadow:0 3px 0 #d7c8e9!important;overflow:hidden!important}html body.session-playing .portal .shared-rack>.sealed-slot{gap:4px!important}html body.session-playing .portal .shared-rack>.sealed-slot i{font-size:30px!important;width:36px!important;flex:0 0 auto!important}html body.session-playing .portal .shared-rack>.sealed-slot b{font-size:10px!important}html body.session-playing .portal .shared-rack>.sealed-slot small{font-size:9px!important}
}
.stage-presentation-steps{display:flex;justify-content:center;gap:8px;width:100%;font:600 12px system-ui}.stage-presentation-steps span{padding:5px 14px;border-radius:20px;background:#fff8;color:#9d8aaa;border:1px solid #deceeb}.stage-presentation-steps [aria-current=true]{background:#7251ad;color:white;border-color:#7251ad}.stage-presentation-name{margin:4px 0;font-size:24px;color:#57327e}.stage-presentation-step-copy{margin:0;text-align:center;line-height:1.7;font-size:14px;color:#654b7d;max-width:540px}.stage-presentation-process{display:grid;justify-items:center;gap:10px;width:100%;min-width:0}.stage-presentation-result{text-align:center;padding:12px;background:#fff9;border:1px solid #d9c5ed;border-radius:14px;width:100%;box-sizing:border-box}.stage-presentation-art[data-step=intro] .stage-presentation-process,.stage-presentation-art:not([data-step=result]) .stage-presentation-result{display:none}.stage-presentation-dialog .stage-dialog-body>p:not(.stage-confirm-status):not(.stage-confirm-waiting){display:none}.stage-presentation-art[data-step=intro]{min-height:240px;align-content:center}.stage-presentation-art .stage-presentation-symbol,.stage-presentation-process .stage-team-skill-motion{animation-duration:calc(var(--scene-duration,5500ms)*.45)!important}.stage-presentation-art[data-step=process] .stage-presentation-card small:last-child{visibility:hidden}.stage-presentation-art[data-step=result] .stage-presentation-result{animation:stage-award-entrance .6s ease-out both}@media(max-width:650px){.stage-presentation-name{font-size:22px}.stage-presentation-step-copy{font-size:13px}.stage-presentation-steps span{padding:4px 12px}.stage-presentation-art[data-step=intro]{min-height:220px}}@media(prefers-reduced-motion:reduce){.stage-presentation-art[data-step=result] .stage-presentation-result{animation:none}}
.stage-presentation-process .stage-duel-pack{animation-duration:.8s;animation-delay:calc(var(--duel-index)*900ms)}.stage-presentation-art[data-step=process] .stage-team-duel article>h3,.stage-presentation-art[data-step=process] .stage-team-duel article>p{visibility:hidden}.stage-presentation-art[data-step=process] .stage-presentation-card.kept{border-color:#d8c8e6;background:#fff;box-shadow:none}
/* Stable score panel geometry: tabs never change rack size or pagination. */
@media(min-width:901px){.session-playing .stage-footer{height:174px;min-height:174px!important;max-height:174px;box-sizing:border-box;grid-template-columns:minmax(145px,1fr) minmax(280px,2.4fr) 320px;grid-template-rows:minmax(0,1fr);align-items:center;overflow:hidden}.session-playing .stage-own-ability{min-width:0;width:100%;max-width:none}}
.session-playing .stage-mini-ranks{width:320px;max-width:320px;height:140px;min-height:140px;box-sizing:border-box;align-self:center;align-content:start;grid-template-rows:minmax(0,1fr);overflow:hidden}.session-playing .stage-mini-ranks:has(.stage-mini-tabs){grid-template-rows:26px minmax(0,1fr)}.session-playing .stage-mini-tabs{height:26px;min-height:0;align-self:start}.session-playing .stage-mini-rank-column,.session-playing .stage-mini-members,.session-playing .stage-mini-team-list{min-height:0;max-height:none;height:100%;box-sizing:border-box;overflow:auto;align-content:start}.session-playing .stage-mini-members{display:grid;grid-template-rows:24px minmax(0,1fr)}.session-playing .stage-mini-member-list{min-height:0;overflow:auto}.session-playing .stage-mini-team-list{grid-auto-rows:min-content}
@media(min-width:651px) and (max-width:900px){.session-playing .stage-footer{height:212px;min-height:212px!important;max-height:212px;box-sizing:border-box;grid-template-columns:minmax(0,1fr) 280px;grid-template-rows:80px minmax(0,1fr);overflow:hidden}.session-playing .stage-mini-ranks{width:280px;max-width:280px;grid-column:2;grid-row:1/3}.session-playing .stage-own-ability{grid-column:1;grid-row:2;width:100%;min-width:0}}
@media(max-width:650px){.session-playing .stage-mini-ranks{width:100%;max-width:none;height:88px;min-height:88px;padding:5px 8px;grid-template-rows:minmax(0,1fr)}.session-playing .stage-mini-ranks:has(.stage-mini-tabs){grid-template-rows:22px minmax(0,1fr)}.session-playing .stage-mini-tabs{height:22px}.session-playing .stage-mini-members,.session-playing .stage-mini-team-list{max-height:none;height:100%}.session-playing .stage-mini-members{grid-template-rows:22px minmax(0,1fr)}.session-playing .stage-mini-members select{height:22px;min-height:0;padding:2px 4px}}
.stage-team-skill-draw-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;width:min(760px,100%);text-align:left}.stage-team-skill-draw-list article{display:grid;gap:6px;padding:14px;border:1px solid #dfd0ee;border-radius:14px;background:#fff}.stage-team-skill-draw-list span{font-weight:750;color:#704ba2}.stage-team-skill-draw-list small{font-size:12px;color:#846c96}.stage-team-captain-rule{padding:12px;border:1px solid #dcc9ed;background:#f5edff;border-radius:12px;color:#62467f;font-size:13px;line-height:1.7}.game-session-shell[data-phase=team-skills] .stage-random-card p{white-space:pre-line;line-height:1.7}@media(max-width:650px){.game-session-shell[data-phase=team-skills] .stage-reveal{height:auto;min-height:100%;padding:12px 0}.stage-team-skill-draw-list{grid-template-columns:1fr 1fr;gap:8px}.stage-team-skill-draw-list article{padding:10px}.stage-team-skill-draw-list small{font-size:10px}}

/* Personal preparation preferences: readable options on phones and desktop. */
.stage-preferences{max-width:1000px;margin-inline:auto}
.stage-preference-group{min-width:0;margin:18px 0;padding:16px;border:1px solid #dfd2f4;border-radius:18px}
.stage-preference-group legend{font-weight:700;padding:0 8px;color:#292334}
.stage-preference-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.stage-preference-option{display:flex;align-items:flex-start;gap:10px;padding:14px;border:1px solid #e3daf0;border-radius:12px;background:#fff;color:#292334;cursor:pointer;touch-action:manipulation}
.stage-preference-option:has(input:checked){background:#f1e9ff;border-color:#7751bd}
.stage-preference-option input{flex:0 0 auto;width:20px;height:20px;margin:2px 0;accent-color:#7350bb}
.stage-preference-option strong,.stage-preference-option small{display:block}
.stage-preference-option small{margin-top:5px;line-height:1.6;color:#5b5269;font-size:14px}
.stage-preference-note{padding:14px;background:#fff6da;border-radius:12px;color:#51432b;line-height:1.7}
@media(max-width:650px){.stage-preference-options{grid-template-columns:1fr}.stage-preference-group{padding:12px;margin:14px 0}.stage-preferences h2{font-size:24px}}

.stage-game-guide{margin:18px 0;padding:16px;background:#f6f1ff;border:1px solid #dfd2f4;border-radius:16px;color:#302444}
.stage-game-guide h3{margin:0 0 10px;font-size:18px}
.stage-guide-important{margin:0 0 12px;line-height:1.7;font-size:14px}
.stage-game-guide details{border-top:1px solid #dfd2f4;padding:12px 0}
.stage-game-guide details:last-child{padding-bottom:0}
.stage-game-guide summary{cursor:pointer;font-weight:700;line-height:1.6;touch-action:manipulation}
.stage-game-guide dl{margin:12px 0 0}.stage-game-guide dt{font-weight:700;margin-top:12px}.stage-game-guide dd{margin:5px 0 0;font-size:14px;line-height:1.8;color:#51465f}

.stage-effect-feed{position:fixed;z-index:66;right:18px;top:100px;width:min(380px,calc(100vw - 28px));display:grid;gap:10px;pointer-events:none}.stage-effect-toast{pointer-events:auto;background:#fffaf0;border:2px solid #9977d0;border-radius:16px;padding:14px;box-shadow:0 8px 30px #30244430;color:#302444}.stage-effect-toast strong{display:block;font-size:16px}.stage-effect-toast p{font-size:14px;line-height:1.6;margin:6px 0}.stage-effect-score{font-size:22px;color:#713fb0}.stage-effect-actions{display:flex;gap:8px;justify-content:flex-end}.stage-effect-actions button{min-height:34px!important;padding:6px 10px!important}.stage-award-pager{display:flex;align-items:center;justify-content:center;gap:12px}.stage-award-status{text-align:center}.game-session-shell[data-phase="awards"] .stage-footer{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px}
@media(max-width:650px){.stage-effect-feed{top:12px;right:10px;width:calc(100vw - 20px)}.stage-effect-toast{padding:10px}.stage-effect-feed .stage-effect-toast:nth-child(n+2){display:none}.game-session-shell[data-phase="awards"] .stage-footer{padding:10px 12px calc(10px + env(safe-area-inset-bottom));height:auto}.stage-award-status{width:100%;font-size:12px}.stage-award-pager{width:100%}}

.stage-award-unread[hidden]{display:none!important}

.game-session-shell[data-phase="awards"] .stage-footer{max-height:none!important;overflow:visible!important;box-sizing:border-box;flex-shrink:0}
.stage-award-pager-inline{position:relative;z-index:2;margin:12px auto 18px;display:flex!important;flex-wrap:wrap}
.stage-award-pager-inline button{min-height:42px;background:#fff7df;color:#563a84;border:1px solid #c9b4e8;touch-action:manipulation}
.stage-award-pager-inline span{font:600 13px system-ui;color:#5c4974}

/* Header task sits beside the controls; notifications stay above the shelf. */
.session-playing .stage-header{flex-wrap:nowrap;gap:14px}
.session-playing .stage-header>div:first-child{flex:1;min-width:130px}
.session-playing .stage-header .stage-header-task{order:0;flex:0 1 350px;flex-basis:350px;width:350px;min-width:160px;max-width:36vw;margin:0;padding:7px 10px;box-sizing:border-box}
.session-playing .stage-header .stage-toolbar{flex:0 0 auto;margin-left:0}
.session-playing .stage-header-task .stage-compact-task{overflow:hidden}
.session-playing .stage-header-task .stage-compact-task strong,.session-playing .stage-header-task .stage-compact-task small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stage-ability-empty{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:48px;padding:12px 24px;border:1px solid #dfd2f0;border-radius:14px;background:#f6f1fb;color:#655277;font-size:16px;font-weight:600;letter-spacing:.04em}
.stage-effect-feed{width:min(390px,calc(100vw - 24px));right:12px;gap:0;overflow:hidden;pointer-events:none}
.stage-effect-feed[hidden]{display:none!important}
.stage-effect-toast{box-sizing:border-box;max-height:var(--notice-space,110px);overflow:auto;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px 12px;box-shadow:0 3px 12px #30244420;border-width:1px}
.stage-effect-toast strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stage-effect-toast p{font-size:12px;line-height:1.5;margin:4px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.stage-effect-actions{flex-direction:column;gap:4px;justify-content:center}
.stage-effect-actions button{font-size:11px!important;min-height:30px!important;padding:4px 8px!important;white-space:nowrap}
.stage-effect-score{font-size:15px}
.stage-effect-feed[data-compact=true] .stage-effect-toast{padding:6px 10px}
.stage-effect-feed[data-compact=true] .stage-effect-toast p{-webkit-line-clamp:1}
.stage-effect-feed[data-compact=true] .stage-effect-actions{flex-direction:row;align-items:center}
@media(max-width:650px){.session-playing .stage-header{flex-wrap:wrap;gap:6px}.session-playing .stage-header>div:first-child{flex:1 0 100%;min-width:0;flex-direction:row;justify-content:space-between;align-items:center}.session-playing .stage-header .stage-header-task{flex:1 1 100px;min-width:0;width:auto;max-width:none;padding:4px 6px;gap:5px}.session-playing .stage-header .stage-toolbar{flex:0 0 auto}.session-playing .stage-header-task select{width:54px;min-width:44px;max-width:62px;padding:4px;font-size:10px}.session-playing .stage-header-task .stage-compact-task strong{font-size:11px}.session-playing .stage-footer>.stage-ability-empty{grid-area:ability;min-height:36px;font-size:14px;padding:6px 10px;width:100%}.stage-effect-feed{right:8px;width:min(360px,calc(100vw - 16px))}}

.stage-kuji-score-guide{margin:14px 0;padding:12px 14px;border:1px solid #ddccec;border-radius:12px;background:#f7f1fd;color:#463253;max-width:100%;box-sizing:border-box}
.stage-kuji-score-guide summary{font:700 14px/1.5 system-ui;cursor:pointer}.stage-kuji-score-guide table{width:100%;border-collapse:collapse;font:13px/1.6 system-ui;margin:10px 0}.stage-kuji-score-guide :is(th,td){text-align:left;padding:6px;border-bottom:1px solid #e5d9ee}.stage-kuji-score-guide td:last-child{white-space:nowrap;font-weight:700}
.stage-kuji-scoreboard{display:grid;gap:8px;margin:16px 0}.stage-kuji-scoreboard .stage-ranking-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px}.stage-kuji-scoreboard :is(img,svg){width:36px!important;height:36px!important;object-fit:cover;flex:0 0 36px}

html body.super-wheel-active .portal .shared-rack{display:none!important;visibility:hidden!important;pointer-events:none!important}
body.super-wheel-active .stage-main{overflow:hidden!important;pointer-events:auto!important;min-height:0;padding-bottom:10px!important}
.stage-super-wheel{display:flex;flex-direction:column;align-items:center;gap:10px;max-width:700px;margin:12px auto;padding:18px 20px 24px;border:1px solid #ccb9e9;border-radius:22px;background:linear-gradient(150deg,#f2e9ff,#fff4d7);box-sizing:border-box;text-align:center}
.stage-super-wheel h2{font-size:24px;margin:6px 0}.stage-super-wheel p{margin:5px 0}.stage-super-wheel .stage-wheel-host{max-width:420px}.stage-super-wheel button{min-height:44px}.stage-wheel-selected{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:5px;padding:6px;font-size:13px}
@media(max-width:650px){.stage-super-wheel{margin:8px 0;padding:12px;gap:8px}.stage-super-wheel h2{font-size:20px}.stage-super-wheel .mag-random-wheel{width:min(300px,72vw)}.stage-wheel-selected{font-size:12px}.stage-super-wheel>.stage-turn{font-size:14px}}

.stage-super-wheel{padding:12px 16px;gap:6px}.stage-super-wheel .mag-random-wheel{width:min(70vw,clamp(170px,calc(100dvh - 530px),300px))}.stage-super-wheel h2{font-size:22px}

.shared-rack.stage-auto-package{grid-template-columns:minmax(130px,220px)!important;grid-template-rows:minmax(160px,300px)!important;justify-content:center!important;align-content:center!important}.stage-stock-note{padding:12px 16px;border:1px solid #d6c5ef;border-radius:12px;background:#f4eefc;color:#63438b;font-size:14px;line-height:1.6}

.stage-night-routes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0;padding:14px;border:1px solid #bba1e2;border-radius:16px;background:#f6f0ff}.stage-night-routes>h3,.stage-night-routes>p{grid-column:1/-1;margin:0}.stage-night-routes>button{display:flex;flex-direction:column;gap:10px;align-items:center;min-width:0;padding:16px 8px;white-space:normal}.stage-night-routes [data-tier="高"] b{color:#8a4d13}.stage-night-routes [data-tier="中"] b{color:#6442a4}.stage-night-routes [data-tier="低"] b{color:#416b7d}@media(max-width:650px){.stage-night-routes{gap:7px;padding:10px}.stage-night-routes>button{font-size:14px;padding:14px 5px}.stage-night-routes>p{font-size:12px;line-height:1.6}}

.stage-wheel-charm{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;padding:10px 14px;margin:8px 0;border:1px solid #c7b2e5;border-radius:14px;background:#f7f0ff;color:#604282}.stage-wheel-charm p{margin:0;font-weight:600}.stage-wheel-charm small{color:#81669c}.stage-wheel-charm button{margin-left:auto}@media(max-width:650px){.stage-wheel-charm{font-size:13px;gap:5px 8px;padding:9px 10px}.stage-wheel-charm strong,.stage-wheel-charm p{width:100%}.stage-wheel-charm small{font-size:12px}}
/* Every wheel uses the same viewport and footer footprint. */
.game-session-shell:has(.stage-super-wheel) .stage-main,.game-session-shell:has(.stage-reveal .stage-wheel-host) .stage-main{overflow:hidden!important;container-type:size;padding:10px 16px!important;display:flex;flex-direction:column;gap:6px}
.stage-super-wheel{min-height:0;max-height:100%;margin:0 auto;flex:1;width:min(700px,100%);justify-content:center;gap:4px;padding:8px 12px}
.stage-super-wheel .mag-random-wheel{width:min(66vw,clamp(100px,calc(100cqh - 225px),330px));margin:0 auto 4px}
.stage-super-wheel h2{font-size:clamp(16px,2.5vw,22px);margin:2px 0}.stage-super-wheel p{font-size:12px;margin:2px 0}.stage-super-wheel .stage-team-skill-tools{display:none}
.stage-super-wheel .stage-wheel-host{flex:0 1 auto;min-height:0}.stage-super-wheel button{min-height:36px;padding:7px 12px}.stage-super-wheel>small{font-size:11px}
.game-session-shell:has(.stage-reveal .stage-wheel-host) .stage-reveal{height:100%;min-height:0!important;padding:0;gap:5px;justify-content:center;overflow:hidden}
.stage-reveal:has(.stage-wheel-host) h2{font-size:20px;margin:3px 0}.stage-reveal:has(.stage-wheel-host)>p{margin:2px 0}
.stage-random-card:has(.stage-wheel-host){flex:0 1 auto!important;min-height:0!important;max-height:calc(100% - 85px)!important;padding:6px 12px!important;overflow:hidden!important;display:flex;flex-direction:column;gap:4px;align-items:center}
.stage-random-card:has(.stage-wheel-host) .mag-random-wheel{width:min(65vw,clamp(100px,calc(100cqh - 260px),330px));margin:0 auto 3px}
.stage-random-card:has(.stage-wheel-host)>strong{font-size:21px}.stage-random-card:has(.stage-wheel-host)>p{font-size:12px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;max-width:100%;margin:2px 0}
.stage-random-card .stage-last-art{max-height:70px}.stage-wheel-start[hidden]{display:none!important}
@media(max-width:650px){.game-session-shell:has(.stage-super-wheel) .stage-main{padding:8px!important}.stage-super-wheel .mag-random-wheel{width:min(65vw,clamp(100px,calc(100cqh - 210px),290px))}.stage-reveal:has(.stage-wheel-host)>small{font-size:10px}.stage-random-card:has(.stage-wheel-host)>strong{font-size:18px}}

.stage-endgame-reminders{padding:14px;border:1px solid #e1d2ee;border-radius:14px;background:#faf6ff;margin:14px 0}.stage-endgame-reminders h3{margin:0 0 12px;font-size:16px}.stage-endgame-reminders article+article{border-top:1px solid #e5d9f0;margin-top:12px;padding-top:12px}.stage-endgame-reminders article>strong{font-size:13px;color:#6842a1}.stage-endgame-reminders p{font-size:13px;line-height:1.7;margin:6px 0;overflow-wrap:anywhere}.stage-endgame-reminders small{display:block;font-size:11px;color:#8a749b;margin-top:12px;line-height:1.7}

.game-session-shell .stage-wheel-start,.stage-super-wheel [data-wheel-action]{min-height:48px!important;min-width:180px;font-size:17px!important;padding:12px 28px!important;background:#6c43bd!important;color:#fff!important;border:2px solid #e8ce83!important;box-shadow:0 4px 0 #4b2e8b!important;font-weight:800!important}.stage-wheel-host .mag-random-wheel{position:relative}.game-session-shell .mag-wheel-trigger{position:absolute;left:50%;top:calc((100% - 28px)*.5);transform:translate(-50%,-50%);width:24%;aspect-ratio:1;min-height:0!important;border-radius:50%;padding:2px!important;font-size:clamp(10px,2vw,14px);border:0!important;background:#fff7e5;color:#633e91;font-weight:800;cursor:pointer}.mag-wheel-trigger[hidden]{display:none!important}

.stage-award-winner.has-evidence{display:grid;grid-template-columns:minmax(160px,1fr) minmax(230px,1.35fr);column-gap:24px;align-content:center}.stage-award-winner.has-evidence>:not(.stage-award-evidence){grid-column:1}.stage-award-winner.has-evidence>.stage-award-evidence{grid-column:2;grid-row:1/span 8;border-left:1px solid #e7d9ef;padding-left:20px;text-align:left;min-width:0}.stage-award-evidence h3{font-size:16px;margin:0 0 12px;color:#765499}.stage-award-evidence-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:10px;max-height:340px;overflow:auto;overscroll-behavior:contain;padding:3px}.stage-award-evidence-grid figure{margin:0;padding:10px;border:1px solid #e5d9ef;border-radius:12px;background:#faf7fd;text-align:center;min-width:0}.stage-award-evidence-grid figure>img,.stage-award-evidence-grid figure>.stage-art,.stage-award-evidence-grid figure>svg{width:100%!important;height:76px!important;max-width:100%!important;object-fit:contain}.stage-award-evidence-grid figcaption{font-size:12px;line-height:1.5;overflow-wrap:anywhere;margin:6px 0}.stage-award-evidence-grid figure>strong{font-size:16px;color:#6842a0}
@media(max-width:650px){.stage-award-winner.has-evidence{display:flex;flex-direction:column;gap:6px}.stage-award-winner.has-evidence>.stage-award-evidence{border-left:0;border-top:1px solid #e7d9ef;padding:12px 0 0;width:100%;box-sizing:border-box}.stage-award-evidence-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:260px;gap:7px}.stage-award-evidence-grid figure{padding:7px}.stage-award-evidence-grid figure>img,.stage-award-evidence-grid figure>.stage-art,.stage-award-evidence-grid figure>svg{height:65px!important}}

/* Reserve real layout space for the wheel and controls, including Safari's dynamic viewport. */
.game-session-shell .stage-super-wheel{overflow:hidden;min-height:0;gap:5px}
.game-session-shell .stage-super-wheel>:not(.stage-wheel-host){flex-shrink:0;position:relative;z-index:1}
.game-session-shell .stage-super-wheel>.stage-wheel-host{flex:1 1 0;min-height:0;max-height:none;display:flex;justify-content:center;width:100%;max-width:460px;overflow:hidden}
.game-session-shell .stage-super-wheel .mag-random-wheel{display:grid;grid-template-rows:minmax(0,1fr) auto;width:100%!important;height:100%;min-height:0;max-height:100%;margin:0!important}
.game-session-shell .stage-super-wheel .mag-random-wheel>svg{width:100%;height:100%;min-height:0;max-height:100%;overflow:hidden;filter:none}
.game-session-shell .stage-super-wheel .mag-wheel-status{margin:3px 0 0;font-size:12px;line-height:20px}
.game-session-shell .stage-super-wheel>.stage-primary{min-height:46px!important;position:relative;z-index:2;flex:0 0 auto;touch-action:manipulation}
/* A square surface must occupy a real row; never squeeze it behind the lookup. */
.game-session-shell .stage-random-card:has(.stage-wheel-host){flex:0 0 auto!important;max-height:none!important;overflow:visible!important;width:min(620px,100%);padding:12px!important;gap:10px}
.game-session-shell .stage-random-card>.stage-wheel-host{flex:0 0 auto;min-height:0;display:block;overflow:visible;width:100%;max-width:430px}
.game-session-shell .stage-random-card .mag-random-wheel{display:block;width:min(100%,clamp(180px,42dvh,360px))!important;height:auto;max-height:none;margin:0 auto!important}
.game-session-shell .stage-random-card .mag-wheel-surface{height:auto;aspect-ratio:1;width:100%;overflow:visible}
.game-session-shell .stage-random-card .mag-wheel-lookup{position:relative;margin:12px 0 0;clear:both}
.game-session-shell .stage-random-card>.stage-wheel-start{flex-shrink:0;position:relative;z-index:2;touch-action:manipulation}
@media(max-width:650px){.game-session-shell .stage-super-wheel>small:first-child{display:none}.game-session-shell .stage-super-wheel h2{font-size:17px}.game-session-shell .stage-super-wheel>p{font-size:11px;line-height:16px}.game-session-shell .stage-super-wheel>button{min-height:34px;padding:6px 10px}.game-session-shell .stage-super-wheel .mag-wheel-status{font-size:11px}}

.stage-awards:has(.stage-award-evidence) .stage-award-heading{gap:7px}.stage-awards:has(.stage-award-evidence) .stage-award-symbol{width:64px;height:64px;font-size:42px;margin:8px auto}.stage-awards:has(.stage-award-evidence) .stage-award-heading h1{font-size:clamp(25px,3vw,38px)}.stage-awards:has(.stage-award-evidence) .stage-award-subtitle{margin-bottom:12px}.stage-awards:has(.stage-award-evidence) .stage-award-portrait{width:58px;height:58px}.stage-awards:has(.stage-award-evidence) .stage-award-portrait>:is(img,.stage-character-portrait){width:54px!important;height:54px!important;flex-basis:54px!important}.stage-awards:has(.stage-award-evidence) .stage-award-winner{padding:18px 20px;gap:7px}.stage-awards:has(.stage-award-evidence) .stage-award-winner h2{font-size:22px}
@media(max-width:650px){.stage-awards:has(.stage-award-evidence){padding-top:3px}.stage-awards:has(.stage-award-evidence) .stage-award-heading{gap:5px}.stage-awards:has(.stage-award-evidence) .stage-award-symbol{width:42px;height:42px;font-size:28px;margin:5px auto}.stage-awards:has(.stage-award-evidence) .stage-award-subtitle{font-size:12px;margin-bottom:8px}.stage-awards:has(.stage-award-evidence) .stage-award-winner{padding:12px 14px;gap:5px}.stage-awards:has(.stage-award-evidence) .stage-award-winner h2{font-size:18px}.stage-awards:has(.stage-award-evidence) .stage-award-winner>p{font-size:12px;line-height:1.5}.stage-awards:has(.stage-award-evidence) .stage-award-portrait{width:40px;height:40px;border-width:2px}.stage-awards:has(.stage-award-evidence) .stage-award-portrait>:is(img,.stage-character-portrait){width:38px!important;height:38px!important;flex-basis:38px!important}.stage-award-evidence-grid{max-height:170px}.stage-award-evidence h3{font-size:13px;margin-bottom:7px}.stage-award-winner.has-evidence>.stage-award-evidence{padding-top:8px}}

.stage-speed-vote{width:min(800px,100%);box-sizing:border-box;margin:auto}.stage-speed-vote>small{color:#8b6da6;letter-spacing:1px}.stage-speed-vote h2{margin:10px 0}.stage-speed-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0}.stage-speed-options>button{display:flex;flex-direction:column;align-items:center;gap:10px;padding:22px 10px;border:2px solid #dfd2ee;background:#fbf8ff}.stage-speed-options>button>b{font-size:30px}.stage-speed-options>button>strong{font-size:16px}.stage-speed-options>button>small{font-size:11px}.stage-speed-options>button[aria-pressed=true]{background:#6b48bd;color:#fff;border-color:#e6c56f;box-shadow:0 0 0 3px #ead9ac44!important}.stage-speed-voters{display:flex;gap:8px;flex-wrap:wrap;max-height:180px;overflow:auto}.stage-speed-voters span{font-size:12px;padding:7px 10px;border-radius:9px;background:#f1ecf7;color:#897495}.stage-speed-voters .is-voted{background:#eaf5ee;color:#44795a}@media(max-width:650px){.stage-speed-vote{padding:18px 14px}.stage-speed-options{gap:7px;margin:18px 0}.stage-speed-options>button{padding:16px 5px;gap:8px}.stage-speed-options>button>b{font-size:25px}.stage-speed-vote h2{font-size:21px}}

.stage-kuji-rank-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin:14px 0}.stage-kuji-rank-grid>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:132px;min-width:0;padding:12px;border:2px solid #d8c5ec;border-radius:16px;background:#faf6ff;color:#4a3268;white-space:normal;overflow-wrap:anywhere}.stage-kuji-rank-grid>button strong{font-size:28px;line-height:1.2}.stage-kuji-rank-grid>button span{font-size:14px}.stage-kuji-rank-grid>button[aria-pressed=true]{border:3px solid #7042ba;background:#eee0ff;box-shadow:0 0 0 3px #7042ba22}.stage-kuji-rank-grid .stage-kuji-rank-check{font-weight:800;color:#6832a5}.stage-kuji-rank-status{padding:12px;border-radius:12px;background:#f2e9ff;font-size:17px;font-weight:700;color:#4e287c}@media(max-width:480px){.stage-kuji-rank-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stage-kuji-rank-grid>button{min-height:124px}}

.stage-kuji-sky-picker .stage-dialog-body{display:flex;flex-direction:column;gap:8px;max-height:calc(80dvh - 95px);overflow:hidden}.stage-kuji-sky-picker .stage-dialog-body>p{flex:none;margin:0}.stage-kuji-sky-picker .stage-kuji-rank-grid{flex:1 1 auto;min-height:0;max-height:40dvh;overflow-y:auto;overscroll-behavior:contain;margin:2px 0;padding:3px}.stage-kuji-sky-actions{display:flex;flex-wrap:wrap;gap:8px;flex:none}.stage-kuji-sky-actions button{flex:1;min-height:46px}.stage-kuji-sky-picker .stage-kuji-rank-status{font-size:15px}.stage-kuji-sky-picker .stage-kuji-rank-grid>button{min-height:106px;gap:4px}

.stage-team-skill-timing{flex-basis:100%;margin:4px 0 0;font-size:14px;line-height:1.5;color:#624184;overflow-wrap:anywhere}.stage-team-skill-available{border-color:#8a59c2;background:#f0e4ff}.stage-team-skill-available .stage-team-skill-timing{font-weight:700;color:#61359b}

.stage-award-winner.has-evidence{box-sizing:border-box;max-width:100%}.stage-award-winner.has-evidence>*{min-width:0;max-width:100%;box-sizing:border-box}.stage-award-winner.has-evidence>.stage-award-evidence{width:100%;box-sizing:border-box}.stage-award-evidence-grid{box-sizing:border-box;max-width:100%;overflow-x:hidden;grid-template-columns:repeat(auto-fit,minmax(min(100%,90px),1fr))}.stage-award-evidence-grid figure{box-sizing:border-box;max-width:100%}.stage-award-winners[data-multiple=true] .stage-award-winner.has-evidence{grid-template-columns:minmax(0,1fr);align-content:start;justify-items:center}.stage-award-winners[data-multiple=true] .stage-award-winner.has-evidence>.stage-award-evidence{grid-column:1;grid-row:auto;border-left:0;border-top:1px solid #e7d9ef;padding:14px 0 0;margin-top:5px}.stage-award-winners[data-multiple=true] .stage-award-evidence-grid{max-height:260px}.stage-award-winners[data-multiple=true] .stage-award-winner.has-evidence>p{font-size:15px;line-height:1.6}@media(max-width:650px){.stage-award-winners[data-multiple=true] .stage-award-evidence-grid{max-height:170px}.stage-award-winners[data-multiple=true] .stage-award-winner.has-evidence>p{font-size:12px}}

/* Public draft shares the game shell; all controls remain in normal flow. */
.stage-public-draft{width:100%;min-width:0;box-sizing:border-box}.stage-draft-goods{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:16px}.stage-draft-good{min-width:0;display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px;border:1px solid #ddcff3;border-radius:18px;background:#fff}.stage-draft-good>img,.stage-draft-good>.stage-art{width:112px;height:112px;object-fit:contain}.stage-draft-good strong{overflow-wrap:anywhere;text-align:center}.stage-draft-packs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:14px;padding:16px 0}.stage-draft-packs article{display:flex;flex-direction:column;gap:8px;min-width:0}.stage-draft-packs button{min-height:64px;width:100%;white-space:normal}.stage-draft-packs [aria-pressed=true]{background:#6b40ac;color:white;outline:3px solid #edc571}.stage-draft-ability,.stage-draft-private{padding:16px;margin-top:20px;border:1px solid #d8c6ef;border-radius:16px;background:#f5efff;min-width:0}.stage-draft-ability button,.stage-draft-private button{margin:6px;white-space:normal}.stage-draft-private{border:2px solid #986bc6}.stage-draft-private img{max-width:140px;max-height:140px;object-fit:contain}.stage-draft-lucky{text-align:center}.stage-draft-lucky>.stage-wheel-host{position:relative;margin:18px auto;width:min(100%,420px);min-height:250px}.stage-public-draft .stage-art{flex:none}.stage-public-draft .stage-turn{margin:14px 0}@media(max-width:600px){.stage-draft-goods{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stage-draft-good{padding:12px 8px}.stage-draft-good>img,.stage-draft-good>.stage-art{width:84px;height:84px}.stage-draft-packs{grid-template-columns:repeat(2,minmax(0,1fr))}.stage-draft-ability button{display:block;width:100%;margin:8px 0}.stage-public-draft{padding:16px}.stage-draft-ability{padding:12px}.stage-draft-good p{font-size:13px}}

.stage-draft-good>svg,.stage-draft-goods button>svg{width:112px;height:112px;flex:none}.stage-draft-private>svg{width:140px;height:140px}.stage-draft-goods>button{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0}.stage-draft-goods>button>img{width:112px;height:112px;object-fit:contain}@media(max-width:600px){.stage-draft-good>svg{width:84px;height:84px}}

body.public-draft-active .mag-room-frame{visibility:hidden!important;pointer-events:none!important}body.public-draft-active .mag-room-frame *{pointer-events:none!important}

body.public-draft-active .shared-rack,body.public-draft-active .shared-rack *{visibility:hidden!important;pointer-events:none!important}

/* Clear choices, compact timing, and a wheel whose size is independent of copy. */
.stage-setting-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0;padding:0;border:0;min-width:0}.stage-setting-cards legend{font-size:16px;font-weight:750;color:#4d3473;margin-bottom:10px}.stage-setting-card{display:flex;align-items:flex-start;gap:10px;min-width:0;padding:16px;border:2px solid #dfd3ef;border-radius:15px;background:#faf7ff;cursor:pointer;box-sizing:border-box}.stage-setting-card input{accent-color:#6b42b7;width:19px;height:19px;flex:none;margin:2px 0 0}.stage-setting-card>span{display:flex;flex-direction:column;gap:6px;min-width:0}.stage-setting-card strong{font-size:16px;color:#503276}.stage-setting-card small{font-size:13px;line-height:1.6;color:#79668a;overflow-wrap:anywhere}.stage-setting-card:has(input:checked){border-color:#7749bb;background:#eee2ff;box-shadow:0 0 0 2px #7749bb19}.stage-setting-card:has(input:focus-visible){outline:3px solid #d5b46a;outline-offset:3px}.stage-setting-card:has(input:disabled){cursor:default}.stage-setting-note{margin:10px 0 18px;font-size:13px;line-height:1.7;color:#79668a;overflow-wrap:anywhere}.stage-wheel-wish-picker{padding:18px;margin:18px 0;border:2px solid #b393d7;border-radius:18px;background:linear-gradient(135deg,#f3eaff,#fff6df)}.stage-wheel-wish-picker h3{margin:0;font-size:20px;color:#513576}.stage-wheel-wish-picker .stage-setting-cards{grid-template-columns:repeat(3,minmax(0,1fr));margin:14px 0}.stage-wheel-wish-picker .stage-setting-card{background:#fff;padding:12px}.stage-wheel-wish-picker .stage-setting-card:has(input:checked){background:#eadeff}.stage-wish-selection{display:block;color:#62379c;font-size:15px}.stage-wish-current{color:#69459a;font-size:13px;font-weight:700}
.game-session-shell:has(.stage-super-wheel) .stage-team-skill-tools{display:flex;flex:0 0 auto;margin:0;padding:5px 10px;gap:6px 12px;min-height:38px;box-sizing:border-box}.game-session-shell:has(.stage-super-wheel) .stage-team-skill-timing{flex-basis:auto;margin:0;font-size:12px;line-height:18px}.game-session-shell:has(.stage-super-wheel) .stage-team-skill-tools button{min-height:32px;padding:5px 10px}.game-session-shell .stage-wheel-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(230px,.85fr);width:min(1040px,100%);max-width:1040px;gap:18px;padding:14px 20px;align-items:center}.game-session-shell .stage-wheel-layout>.stage-wheel-host{width:100%;height:100%;max-height:520px;max-width:520px;min-height:0;justify-self:center;align-self:stretch}.game-session-shell .stage-wheel-layout>.stage-wheel-copy{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;flex-shrink:1}.stage-wheel-copy h2{font-size:24px!important;line-height:1.4;margin:0}.stage-wheel-copy>strong{overflow-wrap:anywhere;font-size:17px}.stage-wheel-copy>.stage-primary{min-height:46px!important;min-width:150px;font-size:16px}.stage-wheel-copy>small{font-size:12px}.stage-wheel-copy>p{line-height:1.5}.game-session-shell .stage-wheel-layout .mag-wheel-status{line-height:1.4;min-height:18px}
@media(max-width:650px){.stage-setting-cards{grid-template-columns:minmax(0,1fr);gap:9px}.stage-setting-card{padding:13px}.stage-wheel-wish-picker{padding:12px}.stage-wheel-wish-picker .stage-setting-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stage-wheel-wish-picker .stage-setting-card strong{font-size:14px}.stage-wheel-wish-picker .stage-setting-card small{font-size:11px}.game-session-shell:has(.stage-super-wheel) .stage-team-skill-tools{gap:4px 8px;justify-content:center;padding:4px 6px;min-height:0;font-size:11px}.game-session-shell:has(.stage-super-wheel) .stage-team-skill-tools strong{font-size:12px}.game-session-shell:has(.stage-super-wheel) .stage-team-skill-timing{font-size:10px;line-height:14px}.game-session-shell .stage-wheel-layout{display:flex;gap:3px;padding:8px;flex-direction:column}.game-session-shell .stage-wheel-layout>.stage-wheel-copy{display:contents}.stage-wheel-copy>*{order:2}.stage-wheel-copy>small,.stage-wheel-copy>h2,.stage-wheel-copy>.stage-turn{order:0}.game-session-shell .stage-wheel-layout>.stage-wheel-host{order:1;flex:1 1 0;max-width:340px;width:100%;align-self:center}.stage-wheel-copy h2{font-size:17px!important}.stage-wheel-copy>strong{font-size:13px}.stage-wheel-copy>p{font-size:11px;line-height:15px}.stage-wheel-copy>.stage-primary{min-height:40px!important;padding:8px 16px}.stage-wheel-copy>small{display:none}}

@media(max-width:650px) and (max-height:740px){.game-session-shell:has(.stage-super-wheel) .stage-footer{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:50px 72px;gap:4px 8px;height:138px!important;min-height:138px!important;max-height:138px!important;padding:6px 10px!important;box-sizing:border-box;overflow:hidden}.game-session-shell:has(.stage-super-wheel) .stage-footer>.stage-ability-empty{display:none}.game-session-shell:has(.stage-super-wheel) .stage-footer>.stage-mini-ranks{grid-column:1/-1;grid-row:2;height:72px;min-height:72px;margin:0}.game-session-shell:has(.stage-super-wheel) .stage-footer>.stage-mobile-social{grid-column:2;grid-row:1;margin:0;gap:4px}.game-session-shell:has(.stage-super-wheel) .stage-mobile-social button{padding:5px 7px;font-size:11px;min-height:32px}.game-session-shell:has(.stage-super-wheel) .stage-footer>.stage-wheel-ability{grid-column:1;grid-row:1;margin:0;padding:5px 7px;min-height:0;width:100%;height:auto;gap:4px}.game-session-shell:has(.stage-super-wheel) .stage-wheel-ability>.stage-wish-current{display:none}.game-session-shell:has(.stage-super-wheel) .stage-team-skill-timing{display:none}.game-session-shell:has(.stage-super-wheel) .stage-team-skill-tools{flex-wrap:nowrap;gap:5px}.game-session-shell:has(.stage-super-wheel) .stage-team-skill-tools strong{min-width:0;font-size:11px}.game-session-shell:has(.stage-super-wheel) .stage-team-skill-tools button{font-size:10px;padding:5px 7px}.game-session-shell:has(.stage-super-wheel) .stage-team-skill-tools small{font-size:10px;white-space:nowrap}}

/* Draft pacing and the same stitched pastel envelopes used by the normal rack. */
.stage-draft-intro,.stage-draft-own-result{padding:18px 20px;border:2px solid #c5a6e8;border-radius:18px;background:linear-gradient(120deg,#f0e7ff,#fff3d0);margin:14px 0 22px;line-height:1.75}.stage-draft-intro>strong,.stage-draft-own-result>strong{font-size:19px;color:#593980}.stage-draft-steps{padding-left:24px;line-height:1.8}.stage-draft-steps li{padding:6px 0}.stage-draft-own-result{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px}.stage-draft-own-result>strong{flex-basis:100%}.stage-draft-own-result p{margin:0}.stage-draft-own-result>b{font-size:21px;color:#6339a2}.stage-draft-pick-notice{padding:12px 16px;border-radius:12px;background:#fff2cb;color:#654a22;font-weight:700}.stage-draft-packs{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:18px;max-width:850px;margin:auto}.stage-draft-packs .stage-draft-package{min-height:205px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:25px 12px 14px;border:1px solid #d8cfee;border-radius:14px;background:repeating-linear-gradient(90deg,#fff0 0 5px,#c8bfea25 5px 6px),#eee9ff;color:#8e7bcc;box-shadow:0 5px 0 #ddd2ee;overflow:hidden;opacity:1}.stage-draft-package:before,.stage-draft-package:after{content:'';position:absolute;left:0;right:0;border-top:5px dashed #ffffffb0;top:12px}.stage-draft-package:after{top:auto;bottom:10px;border-width:3px}.stage-draft-packs article:nth-child(3n+1) .stage-draft-package{background-color:#e7f3ee;color:#538c82}.stage-draft-packs article:nth-child(3n+2) .stage-draft-package{background-color:#fff4d8;color:#987a49}.stage-draft-package i{width:64px;height:64px;border:1px dashed currentColor;border-radius:50%;display:grid;place-items:center;font-size:38px;font-weight:800;font-style:normal}.stage-draft-package b{font-size:15px}.stage-draft-package small{font-weight:750;font-size:16px;background:#ffffff90;border-radius:9px;padding:3px 10px}.stage-draft-package[data-picked=true]{filter:saturate(.45);box-shadow:none;border-style:dashed}.stage-draft-package[data-picked=true] i{font-size:0}.stage-draft-package[data-picked=true] i:after{content:'✓';font-size:32px}.stage-draft-package:enabled:hover,.stage-draft-package:enabled:focus-visible{outline:3px solid #8852c7;outline-offset:3px;transform:translateY(-3px)}.stage-draft-package:disabled{cursor:default}.stage-draft-packs article>button:not(.stage-draft-package){min-height:44px;font-size:12px}.stage-draft-reveal-status{font-weight:750;color:#6b4398}.stage-draft-results .stage-draft-good{min-height:290px;justify-content:flex-start}.stage-draft-results h3{margin:5px 0 8px;font-size:19px;text-align:center}.stage-draft-results p{margin:8px 0;text-align:center;font-size:14px}.stage-draft-results [data-mine=true]{border:2px solid #a275d1;background:#fbf7ff}.stage-draft-results [data-revealed=false]{background:#f7f3fc;border-style:dashed}.stage-draft-unrevealed{font-size:65px;color:#baabd0;display:grid;place-items:center;min-height:124px}.stage-draft-good.is-new-reveal{animation:draft-result-appear .65s ease-out}.stage-draft-packs.is-shuffling{animation:draft-seal .7s ease-in-out infinite alternate}.stage-draft-ability:has(+*){min-width:0}
@keyframes draft-result-appear{from{opacity:.2;transform:translateY(15px) scale(.96)}to{opacity:1;transform:none}}@keyframes draft-seal{from{opacity:.65;transform:translateX(-3px)}to{opacity:1;transform:translateX(3px)}}
@media(max-width:600px){.stage-draft-packs{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stage-draft-packs .stage-draft-package{min-height:175px}.stage-draft-intro,.stage-draft-own-result{padding:14px}.stage-draft-intro>strong,.stage-draft-own-result>strong{font-size:16px}.stage-draft-own-result>button{width:100%}.stage-draft-results .stage-draft-good{min-height:265px}.stage-draft-results h3{font-size:16px}.stage-draft-results .stage-draft-good>small{font-size:11px;text-align:center}.stage-draft-results p{font-size:12px;line-height:1.6}.stage-public-draft[data-draft-phase=result] .stage-draft-ability{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.stage-public-draft[data-draft-phase=result] .stage-draft-ability button{width:auto;margin:0}}
@media(prefers-reduced-motion:reduce){.stage-draft-good.is-new-reveal,.stage-draft-packs.is-shuffling{animation:none}}

.stage-draft-packs{grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),180px));justify-content:center;width:100%}.stage-draft-confirmations{margin-top:20px;padding:16px;border:1px solid #d8c6ef;border-radius:14px;background:#f7f2ff}.stage-draft-confirmations>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.stage-draft-confirmations span{padding:6px 10px;border-radius:9px;background:#fff;border:1px solid #dfd1ee;font-size:13px;color:#826e99}.stage-draft-confirmations [data-confirmed=true]{color:#287763;background:#e9f6ef;border-color:#aed3c3}.stage-draft-reveal-upcoming{text-align:center;padding:20px 16px;margin:14px 0 20px;border:2px solid #ddc179;border-radius:18px;background:#fff3d1}.stage-draft-reveal-upcoming strong{display:block;font-size:22px;color:#674891}.stage-draft-reveal-upcoming b{color:#8b6534}.stage-draft-reveal-upcoming p{line-height:1.7;margin:10px 0}@media(max-width:600px){.stage-draft-packs{grid-template-columns:repeat(2,minmax(0,1fr))}.stage-draft-reveal-upcoming strong{font-size:18px}.stage-draft-reveal-upcoming p{font-size:13px}}

/* Greed Island: cards and commissions stay in overlays; the rack keeps its layout. */
.stage-gi-controls{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;min-width:0;max-width:100%}.stage-gi-controls>small{flex-basis:100%;text-align:center;color:#79638e;font-size:11px}.stage-gi-controls button{min-height:42px;padding:9px 14px;font-size:13px}.stage-gi-hand-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:18px;margin:18px 0}.stage-gi-hand-card{display:flex;flex-direction:column;align-items:center;gap:9px;white-space:normal;background:#f6f0ff!important;padding:12px!important;min-width:0}.stage-gi-card-art{display:block;width:min(100%,220px);height:auto;max-height:300px;object-fit:contain;margin:0 auto;border-radius:8px}.stage-gi-hand-card .stage-gi-card-art{max-height:230px}.stage-gi-hand-card small{font-size:11px;color:#78648d}.stage-gi-card-back{aspect-ratio:63/88;max-height:270px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:25px;border:8px solid #272547;border-radius:12px;background:radial-gradient(circle,#ddd7a8 0 13%,#678d80 14% 19%,#ded6b9 20% 25%,#232b4b 26% 52%,#313361 53%);color:#fff7cf;font-size:33px;font-weight:800;box-shadow:0 7px 18px #30234330}.stage-gi-card-back small{font-size:14px}.stage-gi-card-dealt{animation:gi-card-dealt .7s ease-out both}.stage-gi-card-dealt:nth-child(2){animation-delay:.2s}.stage-gi-opening-team{margin-top:14px;padding:14px;border:1px solid #dccced;border-radius:12px}.stage-gi-opening-team>div{padding:12px;display:grid;grid-template-columns:90px 1fr;gap:10px}.stage-gi-opening-team img{grid-row:1/3;max-height:125px}.stage-gi-opening-team p{margin:0;font-size:13px;line-height:1.6}.stage-gi-card-form{display:grid;gap:14px;margin-top:18px}.stage-gi-card-form label{display:grid;gap:7px;font-size:14px}.stage-gi-card-form select{width:100%;min-height:44px;max-width:100%;padding:9px;border:1px solid #cdb8e5;border-radius:10px;background:#fff;font:inherit;color:#443052}.stage-gi-card-form p{font-size:13px;line-height:1.7}.stage-gi-commission-list{display:grid;gap:14px;margin-top:12px}.stage-gi-commission{border:1px solid #dccbeb;border-left:5px solid #8aa99c;border-radius:14px;padding:16px;background:#fff}.stage-gi-commission[data-level=normal]{border-left-color:#9a78c5}.stage-gi-commission[data-level=hard]{border-left-color:#ce9e4d}.stage-gi-commission h3{font-size:19px;margin:7px 0}.stage-gi-commission p{font-size:13px;line-height:1.7;margin:7px 0}.stage-gi-commission strong{font-size:14px;color:#684390}.stage-gi-commission small{color:#8c6d38}.stage-gi-commission details{margin-top:12px;font-size:13px}.stage-gi-protected{display:inline-block;padding:4px 8px;margin:4px;border-radius:8px;background:#e5f3ee;color:#397b69;font-size:12px}.stage-gi-scale-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.stage-gi-scale-grid article{display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0;padding:12px;border:1px solid #d9c7e9;border-radius:14px;background:#fff}.stage-gi-scale-grid :is(img,svg){width:100%;height:140px;object-fit:contain}.stage-gi-scale-grid p{text-align:center;font-size:13px}.stage-gi-auto-body{display:grid;gap:14px}.stage-gi-auto-body p{line-height:1.7;font-size:14px}.stage-gi-die{width:150px;height:160px;display:grid;place-items:center;margin:15px auto;background:conic-gradient(from 30deg,#25233c,#575275,#27243d,#726984,#25233c);clip-path:polygon(50% 0,95% 25%,95% 75%,50% 100%,5% 75%,5% 25%);color:#ffe9a3;font-size:34px;font-weight:850;text-shadow:0 2px #000;filter:drop-shadow(0 5px 5px #30234350)}.stage-gi-die.rolling{animation:gi-die-roll .8s linear infinite}.stage-gi-clue{margin:5px auto;font-size:12px;color:#78599d;position:relative;z-index:2;max-width:90%;text-align:center}.stage-dialog[data-kind=gi-card]>.stage-gi-card-art,.stage-dialog[data-kind=gi-team]>.stage-gi-card-art{max-height:270px}.stage-dialog[data-kind=gi-card]>p,.stage-dialog[data-kind=gi-team]>p{font-size:14px;line-height:1.8}.greed-island-mode .stage-footer .stage-gi-controls{flex:1 1 320px}.greed-island-mode .stage-footer{max-height:160px}.stage-gi-opening{max-width:780px!important}
@keyframes gi-card-dealt{from{opacity:0;transform:translateY(-22px) rotateY(90deg)}to{opacity:1;transform:none}}@keyframes gi-die-roll{0%{transform:rotate(0) scale(.95)}50%{transform:rotate(180deg) scale(1.08)}100%{transform:rotate(360deg) scale(.95)}}
@media(max-width:650px){.stage-gi-controls{gap:6px}.stage-gi-controls button{min-height:38px;padding:7px 10px;font-size:12px}.stage-gi-controls>small{font-size:10px}.stage-gi-hand-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stage-gi-hand-card{padding:8px!important;font-size:13px}.stage-gi-hand-card .stage-gi-card-art{max-height:190px}.stage-gi-hand-card small{font-size:10px}.stage-gi-opening .stage-gi-card-art{max-height:180px}.stage-gi-card-back{max-height:190px}.stage-gi-commission{padding:12px}.stage-gi-commission h3{font-size:17px}.stage-gi-scale-grid :is(img,svg){height:100px}.stage-gi-scale-grid button{font-size:12px;padding:9px}.greed-island-mode .stage-footer .stage-gi-controls{grid-column:1/-1;display:flex;flex-basis:auto}.greed-island-mode .stage-footer{max-height:170px}.stage-gi-die{width:125px;height:135px}}
@media(prefers-reduced-motion:reduce){.stage-gi-card-dealt,.stage-gi-die.rolling{animation:none}}

/* Draft duels keep the six reserve packs and confirmation on the main stage. */
.stage-draft-duel{width:min(100%,960px);box-sizing:border-box;padding:20px;min-width:0}.stage-draft-duel>h2{margin:6px 0 10px}.stage-draft-duel>.stage-muted{margin:8px 0 14px;line-height:1.5}.stage-draft-duel-teams{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.stage-draft-duel-team{min-width:0;border:1px solid #d8c6ed;border-radius:18px;background:#fff;padding:14px}.stage-draft-duel-team>h3{margin:0 0 5px;color:#5e3a90}.stage-draft-duel-team>p{margin:4px 0 8px}.stage-draft-duel-team>strong{font-size:14px}.stage-draft-duel-pack{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 8px;min-height:74px;padding:8px 0;border-top:1px solid #ece3f6;margin-top:8px;font-size:14px}.stage-draft-duel-pack>small{grid-column:1/-1;color:#82689c}.stage-draft-duel-items{display:flex;gap:6px;min-width:0;flex-wrap:wrap}.stage-draft-duel-items>figure{display:flex;align-items:center;gap:8px;min-width:0;margin:0}.stage-draft-duel-items svg,.stage-draft-duel-items img{width:54px!important;height:54px!important;flex:0 0 54px;object-fit:contain}.stage-draft-duel-items figcaption{overflow-wrap:anywhere;line-height:1.4;font-size:13px}.stage-draft-duel-sealed{font-style:normal;font-size:28px;color:#9d81c3;text-align:center;background:#f1e9fc;border:1px dashed #b99ed8;border-radius:10px;padding:7px}.stage-draft-duel-pack[data-revealed=false]{grid-template-columns:50px 1fr}.stage-draft-duel-pack>small{font-size:12px}.stage-draft-duel-bonus{display:block;margin-top:10px;color:#6840a4}.stage-draft-duel-result{text-align:center;font-size:20px;font-weight:700;color:#624094}.public-draft-active .stage-footer>button{white-space:normal}
@media(max-width:600px){.stage-draft-duel{padding:12px}.stage-draft-duel-teams{gap:8px}.stage-draft-duel-team{padding:9px;border-radius:12px}.stage-draft-duel-team>h3{font-size:17px}.stage-draft-duel-team>p{font-size:12px}.stage-draft-duel-team>strong{font-size:12px}.stage-draft-duel-pack{font-size:12px;grid-template-columns:1fr;min-height:80px}.stage-draft-duel-pack>b{justify-self:end}.stage-draft-duel-items>figure{gap:4px;flex-wrap:wrap}.stage-draft-duel-items svg,.stage-draft-duel-items img{width:42px!important;height:42px!important;flex-basis:42px}.stage-draft-duel-items figcaption{font-size:12px}.stage-draft-duel-result{font-size:17px}.stage-draft-duel-pack[data-revealed=false]{grid-template-columns:36px 1fr}}

.stage-room-editor{width:min(960px,calc(100vw - 24px));max-height:90dvh;box-sizing:border-box}.stage-room-edit-search,.stage-room-edit-pager{display:flex;align-items:center;gap:10px;margin:14px 0}.stage-room-edit-search>input{flex:1;min-width:0}.stage-room-edit-item{display:grid;grid-template-columns:84px minmax(0,1fr);gap:16px;padding:14px 0;border-top:1px solid #e5daf0}.stage-room-edit-item>svg,.stage-room-edit-item>img{width:84px!important;height:100px!important;object-fit:contain}.stage-room-edit-item label{display:flex;align-items:center;gap:12px;margin:8px 0}.stage-room-edit-item input{flex:1;min-width:0;width:100%}.stage-room-edit-item select{min-height:44px}.stage-room-edit-log{padding:14px;border:1px solid #ddccef;border-radius:14px;margin:12px 0}.stage-room-edit-log>small{display:block;margin-top:5px}.stage-room-edit-toast{position:fixed;z-index:5000;top:12px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 40px);padding:12px 18px;border-radius:14px;color:#fff;background:#62419b;box-shadow:0 6px 20px #30244433;pointer-events:none}.stage-room-edit-preview{padding:12px 18px;background:#f5effb;border-radius:14px;margin:14px 0}@media(max-width:600px){.stage-room-edit-item{grid-template-columns:60px minmax(0,1fr);gap:10px}.stage-room-edit-item>svg,.stage-room-edit-item>img{width:60px!important;height:80px!important}.stage-room-edit-item label{display:block}.stage-room-edit-item input,.stage-room-edit-item select{margin-top:5px;width:100%;box-sizing:border-box}.stage-room-editor{padding:14px!important}.stage-room-edit-search{flex-wrap:wrap}}

.stage-room-edit-item input,.stage-room-edit-search input{min-height:44px;box-sizing:border-box;padding:10px 12px;border:1px solid #d8c6ed;border-radius:12px;background:#fff;color:#302444;font:inherit}.stage-room-edit-item input:focus-visible,.stage-room-edit-search input:focus-visible{outline:3px solid #bda8ee;outline-offset:2px}

.stage-early-vote{width:min(100%,820px);box-sizing:border-box;min-width:0}.stage-early-status{font-weight:700;color:#65429b}.stage-early-rules{line-height:1.7;overflow-wrap:anywhere}.stage-early-voters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}.stage-early-voter{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #dccdef;border-radius:14px;background:#fbf8ff;min-width:0}.stage-early-voter strong{flex:1;min-width:0;overflow-wrap:anywhere}.stage-early-voter span:last-child{font-size:13px;color:#957fa9}.stage-early-voter[data-agreed=true]{background:#f0f8f3;border-color:#bfd9c8}.stage-early-voter[data-agreed=true] span:last-child{color:#337952}.stage-early-voter img,.stage-early-voter .stage-character-portrait{flex-shrink:0}.stage-early-vote~*{min-width:0}@media(max-width:600px){.stage-early-vote{padding:16px}.stage-early-voters{grid-template-columns:1fr;gap:8px}.stage-early-rules{font-size:14px}.stage-early-voter{padding:10px}.stage-early-vote h2{font-size:23px}}

.stage-room-score-lock{display:block;margin:8px 0;line-height:1.5;color:#8b5d24;font-size:13px}.stage-early-scope{margin:10px 0;color:#745496}.stage-early-scope>summary{cursor:pointer;font-size:14px}

/* GI action cues use the existing footer and dialog surfaces. */
.stage-gi-controls .stage-gi-draw-ready,.stage-dialog .stage-gi-draw-ready{background:#fff0af;color:#503278;border:2px solid #b58a33!important;font-weight:800;box-shadow:0 0 0 3px #f4d98655!important}.stage-gi-draw-ready:not(:disabled){animation:gi-ready-glow 1.8s ease-in-out 3}.stage-gi-action-hint{padding:12px 14px;border:1px solid #c9b2e8;border-left:4px solid #7850b1;border-radius:10px;background:#f4edff;color:#4b326f;font-size:14px!important;line-height:1.6!important;overflow-wrap:anywhere}.stage-gi-action-hint[data-urgent=true]{background:#fff1ce;border-color:#bd8c30;color:#65441c;font-weight:700}.stage-gi-steps{font-size:13px;color:#705093}.stage-gi-card-inputs{display:grid;gap:14px}.stage-gi-card-inputs>div{display:grid;gap:14px}.stage-gi-use-preview,.stage-gi-use-confirm{padding:14px;border:1px solid #d0b7e8;border-radius:12px;background:#fbf7ff;overflow-wrap:anywhere}.stage-gi-use-preview>strong{color:#67428f}.stage-gi-use-preview small{font-size:12px;color:#785d8a}.stage-gi-use-confirm{border:2px solid #a783c8;background:#fff8e7}.stage-gi-use-confirm h3{margin:0;font-size:18px}.stage-gi-use-confirm button{display:block;width:100%;margin-top:10px;min-height:44px}.stage-gi-card-form [hidden]{display:none!important}.stage-gi-card-form>[data-gi-use]{min-height:46px}.stage-gi-card-tag,.stage-gi-new-card{font-size:11px;color:#5b4378;background:#e9ddf8;border-radius:7px;padding:4px 7px}.stage-gi-new-card{background:#fff0b6;color:#76531b}.stage-gi-notice{position:fixed;z-index:69;right:16px;top:94px;width:min(360px,calc(100vw - 32px));box-sizing:border-box;padding:14px;border:2px solid #aa83c9;border-radius:16px;background:#fff9e9;color:#45315f;box-shadow:0 6px 25px #33214424;overflow-wrap:anywhere}.stage-gi-notice strong{font-size:16px}.stage-gi-notice p{font-size:13px;line-height:1.6;margin:7px 0}.stage-gi-notice>div{display:flex;justify-content:flex-end;gap:8px}.stage-gi-notice button{font:600 12px system-ui;padding:7px 10px;min-height:36px;border-radius:9px;border:1px solid #c7afdf;cursor:pointer}.stage-dialog[data-kind=gi-card]>.stage-gi-card-art{max-height:175px}.stage-dialog[data-kind=gi-card] .stage-dialog-heading{position:sticky;top:-1px;background:#fffcf6;z-index:2}.stage-gi-controls>small{color:#5e427b;font-weight:600}.stage-gi-controls .stage-primary:focus-visible,.stage-gi-notice button:focus-visible{outline:3px solid #ad81db;outline-offset:3px}
@keyframes gi-ready-glow{50%{box-shadow:0 0 0 5px #e8bc4766}}
@media(max-width:650px){.stage-gi-controls button{min-height:40px;padding:7px 9px}.stage-gi-controls>small{line-height:1.45}.stage-gi-notice{top:12px;padding:12px}.stage-gi-action-hint{padding:10px;font-size:13px!important}.stage-gi-card-form{gap:11px}.stage-dialog[data-kind=gi-card]>.stage-gi-card-art{max-height:135px}.stage-gi-use-preview,.stage-gi-use-confirm{padding:11px}.stage-gi-steps{font-size:12px}}
@media(prefers-reduced-motion:reduce){.stage-gi-draw-ready:not(:disabled){animation:none}}

.stage-gi-commission>progress{display:block;width:100%;height:12px;margin:10px 0;accent-color:#8960bb}.stage-gi-commission[data-level=hard]>progress{accent-color:#b88b38}

.stage-gi-use-preview>strong,.stage-gi-use-preview>small{display:block}.stage-gi-use-preview>small{margin-top:10px;line-height:1.7}.stage-dialog[data-kind=gi-drawn]>.stage-gi-hand-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),220px));justify-content:center}

@media(max-width:650px){.greed-island-mode.session-playing .stage-footer>.stage-gi-controls{grid-area:ability}.stage-gi-controls>small{min-height:2.9em;line-height:1.45}}

.stage-dialog[data-kind=gi-card] .stage-dialog-heading{top:0;box-shadow:0 -24px 0 24px #fffcf6}
.stage-final-awards-notice{display:grid;gap:12px;padding:clamp(20px,5vw,40px);margin:0 0 24px;border:2px solid #d9ae48;border-radius:24px;background:linear-gradient(135deg,#fff0c7,#f0e4ff);text-align:center;overflow-wrap:anywhere}.stage-final-awards-notice strong,.stage-final-awards-notice b{display:block;font-size:clamp(26px,5vw,46px);line-height:1.35;color:#563a91}.stage-final-awards-notice b{color:#a36a13}.stage-final-awards-notice span{font-size:clamp(16px,2.3vw,21px);line-height:1.6;color:#65517b}
.stage-recap-report{margin:24px 0;padding:20px;border:1px solid #e3d4ef;border-radius:18px;background:#fcf9ff;min-width:0}.stage-recap-report h3{margin-top:0}.stage-recap-report p{overflow-wrap:anywhere;line-height:1.7}.stage-recap-table-scroll{max-width:100%;overflow-x:auto}.stage-recap-table-scroll table{border-collapse:collapse;width:100%;font-size:15px}.stage-recap-table-scroll th,.stage-recap-table-scroll td{padding:12px 10px;border-bottom:1px solid #e7ddf1;text-align:left;white-space:nowrap}.stage-recap-table-scroll th{background:#f0e7fb;color:#674293}.stage-recap-table-scroll td:nth-child(2){white-space:normal;overflow-wrap:anywhere;min-width:88px}.stage-recap-table-scroll tr[data-mine=true]{background:#fff0c6}.stage-recap-report details{margin-top:16px}.stage-recap-report summary{font-weight:700;color:#71509f;cursor:pointer}@media(max-width:650px){.stage-recap-report{padding:14px;margin:18px 0}.stage-recap-table-scroll th,.stage-recap-table-scroll td{padding:10px 8px;font-size:13px}}

/* Prominent preparation-stage pool ban selector. */
.stage-ban-field{margin-top:24px;padding:22px;border:2px solid #9270d7;border-radius:18px;background:#f2eaff;box-shadow:0 4px 16px #6040a012}.stage-ban-label{display:block;font-size:21px;font-weight:800;color:#4f2c87}.stage-ban-hint{margin:8px 0 16px;color:#665477;line-height:1.6}.stage-ban-field .stage-ban-select{display:block;width:100%;min-height:60px;padding:14px 44px 14px 16px;border:2px solid #8055c1;border-radius:12px;background-color:#fff;color:#392550;font-size:17px;font-weight:650;cursor:pointer;touch-action:manipulation;box-sizing:border-box}.stage-ban-select:focus-visible{outline:3px solid #c59b3a;outline-offset:3px}@media(max-width:600px){.stage-ban-field{padding:16px}.stage-ban-label{font-size:19px}.stage-ban-hint{font-size:14px}.stage-ban-field .stage-ban-select{min-height:58px;font-size:16px}}

/* Keep game dialogs centered independently of global reset margins. */
dialog.stage-dialog[open],dialog.relay-dialog[open]{position:fixed!important;inset:auto!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;margin:0!important;box-sizing:border-box;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain}
dialog.relay-dialog .result-top{display:flex;align-items:center;justify-content:space-between;gap:16px}
dialog.relay-dialog .result-top button{min-width:56px;min-height:44px;flex-shrink:0}
dialog.relay-dialog .primary-button{display:block;width:min(100%,480px);margin:16px auto;min-height:48px}

/* Ban controls belong to their form, not the gameplay footer grid. */
.stage-ban-card{width:min(100%,900px);box-sizing:border-box;min-width:0}
.stage-ban-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:18px}
.stage-ban-actions>button{box-sizing:border-box;flex:0 1 260px!important;width:100%;height:auto!important;min-height:48px!important;max-height:none!important;padding:12px 18px!important;white-space:normal;line-height:1.5;touch-action:manipulation}
.stage-ban-players{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px;max-height:150px;overflow:auto}
.stage-ban-players>p{margin:0;padding:8px 12px;border-radius:10px;background:#f6f2fc;font-size:14px;overflow-wrap:anywhere}
.game-session-shell:has(.stage-ban-card) .stage-footer{display:none!important}
.game-session-shell:has(.stage-ban-card) .stage-main{min-height:0;overflow-y:auto!important;overflow-x:hidden!important}
@media(max-width:650px){.stage-ban-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}.stage-ban-actions>button{flex:none!important;height:auto!important;min-height:48px!important;max-width:100%}.stage-ban-card{padding:18px!important}.stage-ban-card h2{font-size:22px;line-height:1.5}.stage-ban-field{padding:14px}.stage-ban-players{max-height:120px}}

/* Manual awards: paired navigation stays compact on narrow screens. */
.stage-footer .stage-award-navigation{display:flex;justify-content:center;gap:12px;width:min(100%,460px);flex:0 0 auto}.stage-footer .stage-award-navigation>button{flex:1 1 0;min-width:0;width:auto;min-height:48px;height:auto;max-height:80px;margin:0}.stage-footer .stage-award-status{flex:0 0 100%;text-align:center}

/* Action controls must never inherit card-like heights or a vertical flex basis. */
.game-session-shell .stage-footer>button{flex:0 0 auto!important;height:auto!important;min-height:44px!important;max-height:88px!important;box-sizing:border-box;white-space:normal}.game-session-shell .stage-footer>.stage-error{flex:0 0 auto;max-width:100%;line-height:1.5;overflow-wrap:anywhere}

/* Three-pool wheel and deliberate veto selection, 2026-10-20. */
.stage-veto-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;width:100%}
.stage-veto-option{min-width:0;padding:16px;border:2px solid #e5d8fa;border-radius:18px;background:#fff;overflow-wrap:anywhere}
.stage-veto-option[data-selected="true"]{border-color:#6744cf;background:#f2ecff;box-shadow:0 0 0 2px #6744cf33}
.stage-veto-option[data-removed="true"]{opacity:.55;background:#eeedf2}
.stage-veto-option[data-winner="true"]{border-color:#c59b28;background:#fff9e6}
.stage-veto-status{padding:16px;text-align:center;font-weight:700;background:#eee7ff;border-radius:14px;color:#493183}
.stage-veto-actions{display:flex;flex-direction:column;align-items:center;gap:12px;margin:24px auto 8px;text-align:center;width:100%;max-width:600px}
.stage-veto-actions button,.stage-veto-option button,.stage-veto-gallery button{min-height:48px;height:auto!important;max-height:96px;flex:0 0 auto!important;padding:12px 18px!important;width:100%;max-width:480px;white-space:normal}
.stage-veto-badge{display:block;font-weight:700;color:#6744cf;margin-bottom:8px}
.stage-veto-picked{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:16px auto;max-width:960px}.stage-veto-picked span{padding:10px 14px;border-radius:12px;background:#eee7ff;max-width:100%;overflow-wrap:anywhere}
dialog.stage-veto-gallery{position:fixed!important;inset:0!important;margin:auto!important;box-sizing:border-box;width:min(900px,92vw);height:fit-content;max-height:85dvh;overflow:auto;padding:20px;border:1px solid #dcd0f4;border-radius:18px}
dialog.stage-veto-gallery::backdrop{background:#20163899}
@media(max-width:700px){.stage-veto-grid{grid-template-columns:minmax(0,1fr)}.stage-veto-option{padding:14px}.stage-veto-actions{position:static}.stage-veto-status{padding:12px}.stage-veto-option h3{font-size:18px}}
/* Awards controls must not wrap into off-screen columns on narrow phones. */
@media(max-width:650px){.game-session-shell[data-phase=awards] .stage-footer{display:grid!important;grid-template-columns:minmax(0,1fr);gap:8px;align-items:center;justify-items:stretch}.game-session-shell[data-phase=awards] .stage-footer>*{min-width:0;max-width:100%;width:100%;box-sizing:border-box}.game-session-shell[data-phase=awards] .stage-footer .stage-award-status{font-size:12px;line-height:1.4}.game-session-shell[data-phase=awards] .stage-footer>button{margin:0;min-width:0;min-height:44px!important}.game-session-shell[data-phase=awards] .stage-footer .stage-award-navigation{width:100%;margin:0}}

/* A stable identity layout for default and equipped nameplates. */
.stage-members:has(.stage-identity-card){grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr))!important;align-items:start!important}
.stage-member.stage-identity-card{display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;align-items:center!important;gap:12px!important;padding:18px!important;min-width:0;max-width:100%;height:auto!important;box-sizing:border-box;border:1px solid #e6ddef;border-radius:18px!important}
.stage-identity-card>.stage-identity-avatar{grid-column:1;position:relative!important;width:72px!important;height:72px!important;display:grid;place-items:center;flex:none;min-width:0}
.stage-identity-card>.stage-identity-copy{grid-column:2;min-width:0!important;width:100%!important;display:flex;flex-direction:column;gap:8px}
.stage-identity-plaque{display:flex;flex-direction:column;align-items:center;min-width:0;position:relative;padding:4px 0;border-radius:14px;background:#fffdf3ba}
.stage-identity-plaque>.cos-plate{width:100%!important;max-width:340px!important;flex:none;order:0}
.stage-identity-plaque>.wd-art{max-width:100%;order:0}
.stage-default-plaque{padding:16px 12px;background:#fffdf6;border:1px solid #ded1ee;box-shadow:inset 3px 0 #ad98d5}
.stage-default-name{font-size:17px!important;line-height:1.5!important;text-align:center;overflow-wrap:anywhere;max-width:100%}
.stage-identity-meta{display:flex;flex-wrap:wrap;justify-content:center;gap:5px;order:1;padding:5px 4px}
.stage-identity-meta span{font:600 11px/1.4 system-ui;color:#68567f;background:#eee7f7;border-radius:6px;padding:3px 7px}
.stage-identity-plaque>.cos-theme-entry{order:2;align-self:center;width:auto!important;max-width:100%;min-height:32px!important;padding:5px 10px!important;font-size:11px!important;margin:4px!important;box-shadow:none!important}
.stage-identity-copy>.equipped-title{align-self:center;width:auto!important;max-width:100%;box-sizing:border-box;font-size:12px;white-space:normal;overflow-wrap:anywhere}
.stage-identity-card>:is(button,select,.stage-drag-handle,.stage-ready,.stage-muted){grid-column:1/-1;justify-self:end;max-width:100%;margin:0!important}
.stage-identity-card>.cos-personal-art{position:absolute!important;inset:0;z-index:-1}
@media(max-width:420px){.stage-member.stage-identity-card{grid-template-columns:60px minmax(0,1fr)!important;gap:8px!important;padding:12px!important}.stage-identity-card>.stage-identity-avatar{width:60px!important;height:60px!important}.stage-identity-avatar>*{transform:scale(.8333);transform-origin:center}.stage-default-name{font-size:15px!important}}

/* r13: keep the winner identity together, independent of evidence. */
.stage-award-identity{display:flex;align-items:center;gap:14px;width:100%;min-width:0;text-align:left}
.stage-award-nameblock{flex:1;min-width:0}.stage-award-nameblock>h2[hidden]{display:none}
.stage-award-nameblock .cos-plate{width:100%;max-width:280px}
.stage-award-identity>.stage-award-portrait{flex-shrink:0}
.stage-award-winner>.cos-theme-entry{width:auto!important;justify-self:start;align-self:flex-start;min-height:40px;padding:6px 12px}
.stage-award-winner>.equipped-title{width:auto;max-width:100%;justify-self:start}
@media(max-width:540px){.stage-award-identity{gap:10px}.stage-award-nameblock .cos-plate{min-width:0}}

/* r15: use the requested avatar size, not the legacy 40px member cap. */
.stage-member.stage-identity-card .stage-identity-avatar>.wd-member-avatar{width:72px!important;height:72px!important;max-width:none!important;max-height:none!important;margin:0!important;display:block;flex:none}
@media(max-width:420px){.stage-member.stage-identity-card .stage-identity-avatar>.wd-member-avatar{width:60px!important;height:60px!important;transform:none!important}}

/* Reserve gameplay regions: network updates and results must not resize the rack. */
body.session-playing.stage-stable-rack .game-session-shell{grid-template-rows:var(--stage-stable-header,84px) minmax(0,1fr) var(--stage-stable-footer,164px)!important;animation:none!important}
body.session-playing.stage-stable-rack .stage-header{height:100%!important;min-height:0!important;box-sizing:border-box;overflow:auto}
body.session-playing.stage-stable-rack .stage-footer{height:100%!important;min-height:0!important;max-height:100%!important;box-sizing:border-box;overflow:auto!important;align-content:start}
body.session-playing.stage-stable-rack .stage-main{overflow-anchor:none;scroll-behavior:auto}
html body.session-playing.stage-stable-rack .portal .shared-rack{animation:none!important;transition:none!important;translate:none!important;overflow-anchor:none!important}
html body.session-playing.stage-stable-rack .portal .shared-rack>button{transform:none!important;translate:none!important;transition:none!important;animation:none!important;overflow-anchor:none}
body.session-mode .stage-main,body.session-mode .stage-footer{overflow-anchor:none}


/* r20-award-order:start */
.stage-award-winner .stage-award-identity{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%;text-align:center}
.stage-award-winner .stage-award-nameblock{flex:0 0 auto!important;width:min(100%,320px);min-width:0!important;margin-inline:auto}
.stage-award-winner .stage-award-nameblock .cos-plate{width:100%;max-width:320px}
.stage-award-winner>.cos-theme-entry,.stage-award-winner>.equipped-title{align-self:center!important;justify-self:center!important;margin-inline:auto!important}
.stage-order-list .stage-order-drag{flex:0 0 auto}
.stage-order-identity>.wd-member-avatar,.stage-order-identity>.cos-avatar,.stage-order-identity>.stage-character-portrait{flex:0 0 40px!important;width:40px!important;height:40px!important;max-width:40px!important;min-width:40px!important;padding:0!important;margin:0!important;overflow:hidden}
.stage-order-identity .wd-member-face{flex:none!important}
.stage-order-identity>span:not(.wd-member-avatar):not(.cos-avatar):not(.stage-character-portrait){flex:1;min-width:0}
/* r20-award-order:end */
