/* Next bindings for the owner-requested original visual system. */
.mm-arena-home .mn-grid{display:grid}.mm-arena-home .mn-card{min-width:0;padding:22px;border:1px solid var(--mm-border);border-radius:24px;background:var(--mm-surface);color:var(--mm-text)}.mm-arena-home .mn-card :is(h2,h3){margin:0 0 12px;font-weight:600}.mm-arena-home .mn-card p{color:var(--mm-text-secondary);line-height:1.55}.mm-arena-home .mn-card-title-row,.mm-arena-home .mn-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.mm-arena-home .mn-list,.mm-arena-home .mn-ach{display:grid;gap:12px;margin-top:16px}.mm-arena-home .mn-empty{padding:16px;border:1px dashed var(--mm-border);border-radius:var(--mm-radius-md);color:var(--mm-text-secondary);font-size:14px}.mm-arena-home .mn-row{display:block;padding:16px;border:1px solid var(--mm-border);border-radius:var(--mm-radius-md);text-decoration:none;color:var(--mm-text);background:var(--mm-bg)}.mm-arena-home .mn-row-top{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.mm-arena-home .mn-row-name{overflow-wrap:anywhere}.mm-arena-home .mn-row-sub{font-size:12px;color:var(--mm-text-secondary);line-height:1.6;margin-top:8px}.mm-arena-home .mn-state{font-size:12px;color:var(--mm-success-text)}.mm-arena-home .mn-rating-row{display:grid;grid-template-columns:28px 40px minmax(0,1fr) auto;gap:9px;align-items:center}.mm-arena-home .mn-avatar{position:relative;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--mm-green-soft);overflow:hidden;color:var(--mm-text)}.mm-arena-home .mn-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.mm-arena-home .mn-rating-place{display:grid;text-align:center;font-family:var(--mm-font-data)}.mm-arena-home .mn-rating-crown .mm-shell-icon{width:16px;height:16px}.mm-arena-home .mn-rating-person{min-width:0}.mm-arena-home .mn-rating-name{overflow-wrap:anywhere;min-width:0}.mm-arena-home .mn-rating-meta{font-size:12px;color:var(--mm-text-secondary);margin-top:4px}.mm-arena-home .mn-rating-points{font:600 16px var(--mm-font-data);white-space:nowrap}.mm-arena-home .mn-thesis{display:grid}.mm-arena-home .mn-thesis-btn{padding:16px;border:1px solid var(--mm-border);border-radius:var(--mm-radius-md);background:var(--mm-bg)}.mm-arena-home .mn-thesis-btn summary{cursor:pointer;list-style:none}.mm-arena-home .mn-thesis-title{display:block}.mm-arena-home .mn-thesis-note{font-size:13px}.mm-arena-home .mn-home-rules{margin-top:16px}.mm-arena-home .mn-home-rules section{display:grid;gap:8px;padding-top:12px}.mm-arena-home .mn-home-rules .mn-discipline-card{min-height:0;border:0;padding:0}.mm-arena-home .mn-ach-item{border-bottom:1px solid var(--mm-border);padding-bottom:12px}.mm-arena-home .mn-ach-meta{font-size:12px;color:var(--mm-text-secondary);line-height:1.6;margin-top:8px}.mm-arena-home .mn-home-source-note{font-size:12px;color:var(--mm-text-secondary);line-height:1.6;margin-top:20px}.mm-arena-home .mn-history-search{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.mm-arena-home .mn-history-search label{min-width:0}.mm-arena-home .mn-history-search :is(input,select){box-sizing:border-box;max-width:100%;min-width:0;width:100%;min-height:44px;background:var(--mm-surface);color:var(--mm-text);border:1px solid var(--mm-border);padding:8px;border-radius:8px}.mm-arena-home [hidden]{display:none!important}.mm-shell-theme-toggle{display:inline-flex!important;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:10px!important}.mm-shell-theme-toggle .mm-shell-icon{width:20px;height:20px}.mm-theme-icon-sun{display:none}html[data-mm-theme=dark] .mm-theme-icon-sun{display:inline-flex}html[data-mm-theme=dark] .mm-theme-icon-moon{display:none}@media(max-width:600px){.mm-arena-home .mn-history-search{grid-template-columns:minmax(0,1fr)}}
/* roomScene/participantSeat layout from the source; all values/actions remain
   owned by the protected phase projection and existing command client. */
.mm-shell-page .mn-live-phase{min-width:0;margin:20px 0}.mn-live-phase .duelSceneTable{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0}.mn-live-phase .mn-live-seats{display:contents;list-style:none;padding:0;margin:0;min-width:0}.mn-live-phase .mn-live-seats>li{min-width:0;display:flex;justify-content:center}.mm-shell-page .mn-live-phase .duelSeat.mm-participant-card{width:min(100%,380px);max-width:100%;position:static;transform:none;display:grid;gap:12px}.mn-live-phase .duelSeatHead{display:grid;grid-template-columns:40px minmax(0,1fr);gap:8px;align-items:center}.mn-live-phase .duelSeatAvatar{display:grid;place-items:center}.mn-live-phase .duelSeatStats{display:grid;gap:8px}.mm-shell-page .mn-live-phase .duelSceneBoard{width:min(100%,760px);margin:0 auto;min-width:0;box-sizing:border-box}.mn-live-phase .duelSceneBoardTitle{font-weight:600}.mn-live-phase .duelSceneBoardText:empty,.mn-live-phase .mm-table-discipline:empty{display:none}.mn-live-phase .duelSceneActions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:12px;max-width:100%;min-width:0}.mn-live-phase .duelSceneStake{display:grid;gap:8px;text-align:left;max-width:100%;font-weight:600}.mn-live-phase .duelSceneStake input{box-sizing:border-box;min-width:0;width:160px;max-width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--mm-border);border-radius:var(--mm-radius-md);background:var(--mm-surface);color:var(--mm-text);font:500 20px var(--mm-font-data)}.mn-live-phase :is(.duelSceneActions,.duelSceneTools)>button,.mn-live-phase .duelSceneActions>a{margin:0;min-height:44px;max-width:100%;padding:10px 18px;border:1px solid var(--mm-border);border-radius:var(--mm-radius-button);font:600 var(--mm-type-sm)/1.4 var(--mm-font-interface);background:var(--mm-surface);color:var(--mm-text);overflow-wrap:anywhere}.mn-live-phase .duelSceneActions>button:not(:disabled),.mn-live-phase .duelSceneActions>a{background:var(--mm-action-bg);color:var(--mm-action-text)}.mn-live-phase button:disabled{opacity:.55}.mn-live-phase .duelSceneTools{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end;margin-top:16px}.mm-shell-page .mn-live-phase [hidden]{display:none!important}.mn-live-phase[data-incident=true] .duelSceneBoard{border:2px solid var(--mm-danger)}@media(max-width:600px){.mn-live-phase .duelSceneTable{grid-template-columns:minmax(0,1fr)}.mm-shell-page .mn-live-phase .duelSceneBoard{border-radius:var(--mm-radius-lg)!important;padding:24px 16px}.mn-live-phase .duelSceneActions{flex-direction:column;align-items:stretch}.mn-live-phase .duelSceneStake input{width:100%}.mn-live-phase .duelSceneTools>button{flex:1}}
.mm-shell-page .mn-next-room .mn-round-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0;min-width:0;border:1px solid var(--mm-border);border-radius:var(--mm-radius-lg);background:var(--mm-surface);padding:24px;box-sizing:border-box}.mn-round-settings>legend{font:600 22px/1.4 var(--mm-font-interface);color:var(--mm-text);padding:0 8px}.mm-shell-page .mn-round-settings .settings-label{display:flex;flex-direction:column;justify-content:space-between;gap:10px;min-width:0;margin:0;font:600 15px/1.5 var(--mm-font-interface);overflow-wrap:anywhere}.mm-shell-page .mn-round-settings .settings-input{width:100%;height:52px;min-width:0;margin:0;box-sizing:border-box;font:500 16px/1.4 var(--mm-font-interface);border-radius:var(--mm-radius-md)}.mm-shell-page .mn-round-settings .mm-settings-group{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:0;padding:20px;border:1px solid var(--mm-border);border-radius:var(--mm-radius-md);min-width:0;background:var(--mm-bg)}.mn-round-settings .mm-settings-group>legend{font:600 16px/1.4 var(--mm-font-interface);padding:0 8px}.mm-shell-page .mn-round-settings>button{grid-column:1/-1;justify-self:start;margin:0;min-height:44px}.mm-shell-page .mn-next-room .mn-round-settings[hidden],.mm-shell-page .mn-round-settings [hidden]{display:none!important}@media(max-width:600px){.mm-shell-page .mn-next-room{padding:16px}.mm-shell-page .mn-next-room .mn-round-settings{grid-template-columns:minmax(0,1fr);padding:16px;gap:16px}.mm-shell-page .mn-round-settings .mm-settings-group{grid-template-columns:minmax(0,1fr);padding:12px;gap:16px}}
.mm-shell-page .mn-original-shell{background:var(--mm-bg);color:var(--mm-text);min-height:100vh;--mn-bg:var(--mm-surface);--mn-fg:var(--mm-text);--mn-muted:var(--mm-text-secondary);--mn-shell-border:var(--mm-border);--mn-brand:var(--mm-action-bg);--mn-brand-soft:var(--mm-green-soft);--mn-panel:var(--mm-surface)}
.mm-shell-page .mn-original-shell .mn-content{margin-left:264px;padding:24px;box-sizing:border-box;min-width:0}.mm-shell-page .mm-brand img{width:238px;max-width:100%;height:48px;object-fit:contain}.mm-shell-account{margin-left:auto;display:flex;align-items:center;gap:10px}.mm-shell-icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;flex-shrink:0}.mm-shell-account .mm-ds-button{gap:8px;display:inline-flex;align-items:center;text-decoration:none}.mm-shell-page .mn-original-shell main{font-family:var(--mm-font-interface)}.mm-shell-page .mn-original-shell main.mm-arena-home{padding:0;border:0;background:transparent}.mn-next-shortcuts{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0 24px}.mm-arena-home .mn-disciplines{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.mm-arena-home .mn-discipline-card{display:flex;flex-direction:column;min-width:0}.mm-arena-home .mn-discipline-card a{margin-top:auto;color:var(--mm-action-bg);font-weight:600}.mm-shell-page .mn-original-shell .mn-site-footer{margin-left:264px}.mm-shell-page .mn-content main:not(.mm-arena-home){border-color:var(--mm-border);border-radius:var(--mm-radius-lg)}
:root[data-appearance=dark]{--mm-bg:#202426;--mm-surface:#2B3032;--mm-text:#F2F4EF;--mm-text-secondary:#BAC3B5;--mm-border:#535D50;--mm-green-soft:#34412B;--mm-action-bg:#A7C957;--mm-action-text:#1F2937}
@media(prefers-color-scheme:dark){:root:not([data-appearance=light]){--mm-bg:#202426;--mm-surface:#2B3032;--mm-text:#F2F4EF;--mm-text-secondary:#BAC3B5;--mm-border:#535D50;--mm-green-soft:#34412B;--mm-action-bg:#A7C957;--mm-action-text:#1F2937}}
@media(max-width:900px){.mm-shell-page .mn-original-shell .mn-content{margin-left:0;padding:16px}.mm-shell-page .mm-shell-sidebar{display:flex;position:static;max-height:none;width:auto;box-sizing:border-box;margin:12px 16px;gap:8px}.mm-shell-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.mm-shell-sidebar-bottom{flex-direction:row;flex-wrap:wrap}.mm-shell-page .mn-original-shell .mn-site-footer{margin-left:0}.mm-shell-page .mm-brand img{width:190px;height:42px}.mm-shell-account .mm-ds-button{font-size:12px}.mm-arena-home .mn-disciplines{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.mm-shell-page .mm-shell-header{height:auto;min-height:72px;padding:12px;gap:8px;flex-wrap:wrap}.mm-shell-page .mm-brand img{width:155px;height:36px}.mm-shell-account{gap:6px}.mm-shell-account .mm-ds-button:first-child{display:none}.mm-shell-page .mn-original-shell .mn-content{padding:10px}.mm-shell-page .mm-shell-sidebar{margin:10px}.mm-shell-page .mm-arena-home .mn-disciplines{grid-template-columns:repeat(2,minmax(0,1fr))}.mm-shell-page .mm-arena-home .mn-card{padding:14px}}

.mm-shell-page .mn-content main.mm-live-lobby{background:transparent;border:0;padding:0}.mn-next-room{padding:24px;background:var(--mm-surface);border:1px solid var(--mm-border);border-radius:var(--mm-radius-lg)}.mn-next-room>div>section>h2{margin-bottom:16px}.mn-next-room button,.mn-room-extra button{margin:6px 8px 6px 0;padding:10px 16px;border:1px solid var(--mm-border);border-radius:var(--mm-radius-button);background:var(--mm-surface);color:var(--mm-text)}.mn-next-room a[href^="/play"]{display:inline-flex;align-items:center;min-height:44px;padding:10px 20px;background:var(--mm-action-bg);color:var(--mm-action-text);font-weight:600;text-decoration:none;border-radius:var(--mm-radius-button);margin:12px 0}.mn-next-room input[aria-label="Приглашение в вашу комнату"]{display:block;box-sizing:border-box;width:min(100%,46rem);font:12px var(--mm-font-mono);padding:12px;margin:12px 0}.mn-next-room fieldset{background:var(--mm-bg);padding:20px}.mn-room-extra{border:1px solid var(--mm-border);border-radius:var(--mm-radius-lg);padding:16px 24px;background:var(--mm-surface);min-width:0}.mn-room-extra>summary{font-weight:600;cursor:pointer}.mn-room-extra[open]>summary{margin-bottom:16px}.mn-original-play .mn-private-game{font-family:var(--mm-font-interface);background:var(--mm-surface);color:var(--mm-text)}.mn-original-play :is(.mn-memorize-card,.mn-recall-card){border:1px solid var(--mm-border);border-radius:var(--mm-radius-md);padding:16px;background:var(--mm-surface)}.mn-original-play .mn-digit-blocks{font-family:var(--mm-font-mono)}.mn-original-play .mn-private-game button{border-color:var(--mm-border);background:var(--mm-surface);color:var(--mm-text)}

:root[data-appearance=dark] .mm-brand .mm-brand-image--light{display:none}:root[data-appearance=dark] .mm-brand .mm-brand-image--dark{display:block}@media(prefers-color-scheme:dark){:root:not([data-appearance=light]) .mm-brand .mm-brand-image--light{display:none}:root:not([data-appearance=light]) .mm-brand .mm-brand-image--dark{display:block}}

.mm-shell-page .mm-brand .mm-brand-image--dark{display:none}
:root[data-appearance=dark] .mm-brand .mm-brand-image--dark{display:block}@media(prefers-color-scheme:dark){:root:not([data-appearance=light]) .mm-brand .mm-brand-image--dark{display:block}}

body.mm-shell-page[data-mm-game-focus] .mn-original-shell .mn-content{margin:0;padding:12px}body.mm-shell-page[data-mm-game-focus] .mn-original-play{max-width:none;border:0;padding:0;background:var(--mm-bg)}body.mm-shell-page[data-mm-game-focus] .mn-original-play>h1,body.mm-shell-page[data-mm-game-focus] .mn-original-play>a,body.mm-shell-page[data-mm-game-focus] .mn-rehearsal-note,body.mm-shell-page[data-mm-game-focus] .mn-appearance{display:none}.mn-source-game-hud{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 24px;padding:12px 20px;border-radius:var(--mm-radius-md);background:var(--mm-bg);margin-bottom:20px}.mn-source-game-hud .phase-title{font:600 18px/1.35 var(--mm-font-interface);margin:0}.mn-source-game-hud [role=timer]{font:600 clamp(28px,4vw,40px)/1.1 var(--mm-font-data);font-variant-numeric:tabular-nums;margin:0;grid-column:2;grid-row:1/3}.mn-source-game-hud .memorize-counter{font:500 14px/1.4 var(--mm-font-data);color:var(--mm-text-secondary);margin:0}.mn-source-recall-content{max-width:100%;min-width:0}.mn-original-play #screenRecall{max-width:none}.mn-original-play #screenMemorize .memorize-stage{min-width:0;width:100%;display:flex;align-items:center;justify-content:center;min-height:calc(100dvh - 240px)}.mn-original-play #screenMemorize .memorize-stage>.mn-memorize-grid{width:100%}@media(max-width:480px){.mn-source-game-hud{padding:10px;gap:8px}.mn-source-game-hud .phase-title{font-size:16px}.mn-source-game-hud [role=timer]{font-size:28px}}

.mn-original-play #screenMemorize .memorize-layout{display:flex;flex-direction:column;align-items:stretch}.mm-shell-page[data-mm-game-focus] .mn-own-round-root>button{position:fixed;bottom:max(12px,env(safe-area-inset-bottom));right:12px;z-index:1200;box-shadow:var(--mm-shadow-soft)}

.mn-original-play :is(#screenMemorize,#screenRecall,.memorize-layout,.memorize-stage,.recall-wrapper){box-sizing:border-box;min-width:0;max-width:100%}

.mn-original-play .mn-source-game-hud .memorize-counter{position:static;inset:auto;display:block;width:auto;transform:none;font-size:12px}.mn-original-play .mn-source-game-hud .mm-memorize-meta{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}.mn-original-play .mn-source-game-hud .phase-title{position:static;inset:auto;transform:none}.mn-clock-label{display:block;font:500 12px/1.4 var(--mm-font-interface);color:var(--mm-text-secondary)}.mn-clock-value{display:block;font:600 clamp(28px,4vw,40px)/1.1 var(--mm-font-data);white-space:nowrap}.mn-source-game-hud [data-clock-state=message]{font:500 14px/1.5 var(--mm-font-interface);white-space:normal;max-width:26rem}@media(max-width:430px){.mn-original-play .mn-source-game-hud .phase-title{font-size:16px}.mn-clock-value{font-size:28px}}

.mm-shell-page .mn-content main.mm-solo-page{padding:0;border:0;background:transparent;max-width:1440px}.mm-solo-page>.mm-shell{padding:0;border:0;background:none;box-shadow:none}.mm-solo-hero__selection button{border:0;background:none;padding:0;cursor:pointer}.mm-solo-disciplines__grid button{text-align:left;font-family:var(--mm-font-interface);color:var(--mm-text);cursor:pointer}.mm-solo-disciplines__grid button[aria-pressed=true]{outline:2px solid var(--mm-action-bg);outline-offset:-2px}.mm-solo-page .mn-solo-presets{grid-column:1/-1;margin:0;grid-template-columns:repeat(4,minmax(0,1fr))}.mm-solo-page .mn-solo-presets .preset-card{display:flex;flex-direction:column;gap:8px;text-align:left;min-width:0;margin:0;color:var(--mm-text);background:var(--mm-surface);border-color:var(--mm-border);font-family:var(--mm-font-interface)}.mm-solo-page .mn-solo-presets .preset-card-title{font-size:18px;overflow-wrap:anywhere}.mm-solo-page .mn-solo-presets button:disabled{opacity:.55;cursor:not-allowed}.mm-solo-page .mn-solo-presets .is-selected{background:var(--mm-green-soft);border-color:var(--mm-action-bg)}.mn-single-game [hidden]{display:none!important}.mn-practice-phase{text-align:center;max-width:720px;padding:40px 24px;margin:20px auto;border:1px solid var(--mm-border);border-radius:var(--mm-radius-lg);background:var(--mm-surface);box-sizing:border-box}.mn-practice-phase .countdown-value{font-family:var(--mm-font-data);font-size:clamp(64px,12vw,120px);color:var(--mm-action-bg);margin:24px 0}.mm-solo-page .settings-help{color:var(--mm-text-secondary);line-height:1.6}@media(max-width:650px){.mm-solo-page .mn-solo-presets{grid-template-columns:repeat(2,minmax(0,1fr))}.mm-solo-page .mm-solo-hero__copy{width:100%}.mm-solo-page .mm-solo-hero{min-height:300px}}

.mm-shell-page .mn-live-phase .duelSceneClock{margin:0;line-height:var(--mm-line-heading)}

.mm-badge-description{display:block;font-size:12px;color:var(--mm-text-secondary);margin-top:8px;line-height:1.5}.mm-badge-goals{display:grid;gap:12px;margin-top:16px}.mn-home .mm-badge-catalog{margin-top:16px}

@media(max-width:900px){.mm-shell-page .mm-shell-sidebar{display:none!important}.mm-shell-page[data-mm-nav-open] .mm-shell-sidebar{display:flex!important}.mm-shell-menu-toggle{display:inline-flex;min-width:44px;min-height:44px;align-items:center;justify-content:center}.mm-shell-nav{display:flex;flex-direction:column}}

/* Canonical room controls remain available before an assignment exists. */
.mn-original-play [hidden]{display:none!important}.mn-room-membership{min-width:0;margin:20px 0}.mn-room-seats{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:16px;padding:0;list-style:none}.mn-room-seat{display:flex;flex-direction:column;gap:8px;padding:16px;border:1px solid var(--mm-border);border-radius:var(--mm-radius-md);background:var(--mm-surface);min-width:0}.mn-room-seat strong{overflow-wrap:anywhere;font-size:13px}.mn-room-seat span{color:var(--mm-text-secondary)}.mn-room-seat.is-host{border-color:var(--mm-action-bg)}.mn-room-membership fieldset{display:flex;gap:12px;flex-wrap:wrap;min-width:0;border:1px solid var(--mm-border);border-radius:var(--mm-radius-md);padding:16px}.mn-room-membership select{min-width:0;max-width:100%}.mn-original-play [aria-label="Игровая комната"]>section>ul{list-style:none;padding:0}.mn-original-play [aria-label="Игровая комната"]>section>ul>li{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0}.mn-original-play [aria-label="Игровая комната"]{min-width:0}.mn-original-play [aria-label="Игровая комната"]>label{display:block;margin:16px 0}.mn-original-play button{min-height:44px}

.mn-room-table{position:relative;min-height:540px;display:grid;place-items:center}.mn-room-table>.duelSceneBoard{box-sizing:border-box;position:relative;width:85%;min-height:210px;aspect-ratio:3/1;text-align:center;display:flex;flex-direction:column;justify-content:center;gap:8px}.mn-room-table>.duelSceneBoard p{font-size:14px;max-width:45ch;margin:0 auto}.mn-room-table>.mn-room-seats{position:absolute;inset:0;margin:0;display:block}.mn-room-table:not(.is-configured) .mn-room-seat{position:absolute;left:var(--seat-left,50%);top:var(--seat-top,15%);transform:translate(-50%,-50%);width:190px;box-sizing:border-box;box-shadow:var(--mm-shadow-soft)}.mn-room-table.is-configured{display:block;min-height:0}.mn-room-table.is-configured>.duelSceneBoard{display:none}.mn-room-table.is-configured>.mn-room-seats{position:static;display:grid}@media(max-width:700px){.mn-room-table{display:flex;flex-direction:column;gap:20px;min-height:0}.mn-room-table>.duelSceneBoard{order:1;width:100%;min-height:170px;aspect-ratio:auto}.mn-room-table>.mn-room-seats{order:2;position:static;display:grid;width:100%}.mn-room-table:not(.is-configured) .mn-room-seat{position:static;transform:none;width:auto}}

body.mm-shell-page[data-mm-game-focus] .mn-original-play :is(.mn-room-membership,[aria-label="Игровая комната"]){display:none}

/* Before configuration retain the real configure action, without a second empty table. */
.mn-original-play .mn-live-phase[data-phase=unconfigured] .duelSceneTable{display:block}.mm-shell-page .mn-original-play .mn-live-phase[data-phase=unconfigured] .duelSceneBoard{width:100%;aspect-ratio:auto;min-height:0;border:0;border-radius:0;padding:0;background:none!important}.mn-original-play .mn-live-phase[data-phase=unconfigured] .duelSceneBoard::before{display:none!important}.mn-original-play .mn-live-phase[data-phase=unconfigured] :is(.duelSceneBoardKicker,.duelSceneBoardTitle,.mm-table-discipline,.duelSceneClock,.mn-live-seats,.mm-table-perimeter){display:none!important}

/* Current source layout: two participant cards before the table, the rest after. */
.mn-members-table>.mn-room-seats{display:contents;list-style:none;padding:0;margin:0}.mn-members-table>.mn-room-seats>li{display:contents}.mn-members-table>.duelSceneBoard{grid-column:1/-1;grid-row:2;box-sizing:border-box;position:relative;text-align:center;min-height:210px;aspect-ratio:3/1;display:flex;flex-direction:column;justify-content:center;gap:8px}.mn-members-table .duelSeatHead{display:grid;gap:8px;align-items:center}.mn-members-table .duelSeatStats{display:grid}.mn-member-actions{border:1px solid var(--mm-border);border-radius:var(--mm-radius-lg);padding:16px;margin:16px 0;background:var(--mm-surface)}.mn-member-actions>summary{font-weight:600;cursor:pointer}.mn-member-action-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--mm-border)}.mn-member-action-row>strong{flex:1 1 200px;overflow-wrap:anywhere}.mn-member-action-row>span{color:var(--mm-text-secondary);font-size:12px}.mn-member-action-row>button{min-height:44px}.mn-member-actions fieldset{margin-top:16px}.duelSeatAvatar{position:relative}.duelSeatAvatar>img{position:absolute;inset:0}.mn-members-table .duelSeatRole{text-transform:uppercase;font-weight:600}@media(max-width:600px){.mn-members-table>.duelSceneBoard{aspect-ratio:auto;min-height:170px;grid-row:auto;order:-1}.mn-member-action-row{align-items:stretch}.mn-member-action-row>button{flex:1 1 100%}}

/* Source live lobby fields stay inside their grid cell on narrow devices. */
.mn-source-lobby .ml-live-input{box-sizing:border-box;width:100%;min-width:0;max-width:100%}
.mn-source-lobby .ml-live-room-title{overflow-wrap:anywhere}
.mn-source-lobby .ml-live-create,.mn-source-lobby .ml-lobby-grid>*{min-width:0}

/* One source room scene owns table/roster/action/video hosts. */
.mn-unified-scene{min-width:0}.mn-unified-scene>.duelSceneHead{display:flex;align-items:start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}.mn-unified-scene>.duelSceneHead h2{margin:0}.mn-unified-scene .duelSceneBoardInner{min-width:0}.mn-unified-scene .duelSceneActions{display:flex;gap:12px;justify-content:center;align-items:center;flex-wrap:wrap}.mn-unified-scene .duelSceneActions:empty,.mn-unified-scene [role=status]:empty{display:none}.mn-unified-scene .duelSceneActions button,.mn-unified-scene .duelSceneTools button{min-height:44px;border:1px solid var(--mm-border);border-radius:var(--mm-radius-button);padding:10px 16px;color:var(--mm-text);background:var(--mm-surface)}.mn-unified-scene .duelSceneStake{display:grid;gap:6px}.mn-unified-scene .duelSceneStake input{box-sizing:border-box;max-width:100%;width:160px;min-height:44px;font:inherit}.mn-unified-scene .duelSceneWaiting{padding:16px;border:1px solid var(--mm-border);border-radius:var(--mm-radius-card);margin:16px 0}.mn-unified-scene .duelSceneWaitingItem{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap}.mn-unified-scene .duelAdminDetails{padding:16px;border:1px solid var(--mm-border);border-radius:var(--mm-radius-card);margin:12px 0}.mn-unified-scene .mn-embedded-room-controls>h2,.mn-unified-scene .mn-embedded-room-controls>p{display:none}.mn-unified-scene .mn-room-seats>li{display:contents}.mn-unified-scene .mm-participant-card{display:grid;gap:10px;min-width:0}.mn-unified-scene .duelSeatHead{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:8px}.mn-unified-scene .duelSeatStats{display:grid}.mn-unified-scene .duelSeatAvatar{display:grid;place-items:center}.mn-unified-scene .duelSeatProgress{height:6px;border-radius:6px;overflow:hidden;background:var(--mm-green-soft)}.mn-unified-scene .duelSeatProgressBar{height:100%;background:var(--mm-green)}.mn-unified-scene .mm-video-slot:empty{display:none!important}.mn-unified-scene .mm-video-slot{min-width:0;aspect-ratio:auto!important}.mn-unified-scene .mm-video-slot>section{min-width:0}.mn-unified-scene .mn-room-planning input{max-width:100%;box-sizing:border-box;min-height:44px}.mn-unified-scene .mn-room-planning button{margin:8px;padding:10px;min-height:44px}.mn-unified-scene [hidden]{display:none!important}
@media(max-width:600px){.mn-unified-scene .mm-participant-card{grid-column:1!important;grid-row:auto!important}.mn-unified-scene .duelSceneBoard{grid-row:auto!important;order:-1}.mn-unified-scene .duelSceneActions{align-items:stretch;flex-direction:column}.mn-unified-scene .duelSceneStake input{width:100%}.mn-unified-scene .duelSceneWaitingItem{display:grid}}

.mn-unified-scene .mm-video-slot iframe{display:block;width:100%!important;height:auto!important;aspect-ratio:16/9}

.mn-unified-scene .duelSceneDisciplineRow{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}.mn-unified-scene .duelSceneMeta{display:flex;gap:8px;flex-wrap:wrap}.mn-unified-scene .duelScenePill{padding:4px 10px;border-radius:999px;background:var(--mm-green-soft);font-size:14px}.mn-unified-scene .duelSceneHead .duelSceneTitle{min-width:0}.mn-unified-scene .duelSceneHead h2{overflow-wrap:anywhere}

/* The source table keeps a light surface in both page themes. */
.mn-unified-scene .duelSceneBoard .duelSceneActions button{background:#fff;color:#1f2937;border-color:#d2dbc7}

.mn-bid-dialog{box-sizing:border-box;max-width:min(520px,calc(100vw - 32px));width:100%;border:1px solid var(--mm-border);border-radius:16px;padding:24px;background:var(--mm-surface);color:var(--mm-text)}.mn-bid-dialog::backdrop{background:#0009}.mn-bid-dialog label{display:grid;gap:8px}.mn-bid-dialog input{box-sizing:border-box;width:100%;max-width:100%;padding:12px;font:inherit}.mn-bid-dialog button{margin:8px 8px 0 0;min-height:44px;padding:10px;border-radius:8px;border:1px solid var(--mm-border);background:var(--mm-action-bg);color:var(--mm-action-text)}.mn-bid-dialog[hidden],.mn-bid-dialog [hidden]{display:none!important}.mn-unified-scene .is-urgent{outline:2px solid #b63737}

.mn-room-workflow{margin-top:20px;min-width:0}.mn-room-workflow details,.mn-invitation-inbox{border:1px solid var(--mm-border);border-radius:12px;padding:16px;margin:12px 0;background:var(--mm-surface);color:var(--mm-text)}.mn-room-workflow summary{cursor:pointer;font-weight:600}.mn-room-workflow :is(button,input,select,textarea),.mn-invitation-inbox button{box-sizing:border-box;max-width:100%;min-height:44px;margin:8px 8px 8px 0;padding:10px;font:inherit;border:1px solid var(--mm-border);border-radius:8px;background:var(--mm-surface);color:var(--mm-text)}.mn-room-workflow textarea{display:block;width:100%}.mn-workflow-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.mn-workflow-row strong{overflow-wrap:anywhere}.mn-chat-log{max-height:340px;overflow:auto;padding:16px 16px 16px 28px}.mn-chat-log p{white-space:pre-wrap;overflow-wrap:anywhere;margin:4px 0 12px}.mn-room-workflow [hidden],.mn-invitation-inbox [hidden]{display:none!important}@media(max-width:600px){.mn-room-workflow :is(input,textarea){width:100%}.mn-workflow-row{display:grid}}

dialog.mn-bid-dialog:not([open]){display:none!important}.mn-personal-preferences fieldset{border:0;display:grid;gap:12px;padding:0}.mn-personal-preferences label{display:grid;gap:6px}.mn-personal-preferences :is(input,select,button){box-sizing:border-box;max-width:100%;min-height:44px;padding:10px;font:inherit}.mn-personal-preferences [role=status]{overflow-wrap:anywhere}

.mn-unified-scene .mn-workflow-embedded{border:0!important;padding:0!important;margin:0!important}.mn-chat-suggest{list-style:none;padding:8px;border:1px solid var(--mm-border);border-radius:8px;max-height:240px;overflow:auto}.mn-chat-suggest [aria-selected=true]{outline:2px solid var(--mm-action-bg);border-radius:8px}.mn-chat-suggest button{width:100%;text-align:left}

/* A host explicitly asks for players; reuse the ordinary room join controls. */
.mn-recruitments{display:grid;gap:12px;margin:18px 0}.mn-recruitments[hidden]{display:none}
.mn-recruitment-card{border:2px solid #78952e;border-radius:16px;padding:18px;background:linear-gradient(120deg,#eef6d7,#fff9d9);color:#253318;box-shadow:0 3px 14px #58751f22}
.mn-recruitment-card>strong{display:inline-block;border-radius:20px;background:#526f19;color:#fff;padding:5px 12px}.mn-recruitment-card h3{margin:12px 0 6px}.mn-recruitment-card p{margin:6px 0 14px}.mn-recruitment-card a{display:inline-flex;max-width:100%;white-space:normal}
.mn-recruitment-target{outline:3px solid #95b342;outline-offset:4px}.duelBtn.is-recruiting{background:#526f19!important;color:white!important;border-color:#91ad42!important}
html[data-appearance="dark"] .mn-recruitment-card,html[data-mm-theme="dark"] .mn-recruitment-card{background:linear-gradient(120deg,#263518,#363318);color:#edf4de;border-color:#9eb751}

.mn-public-result-dialog{color:var(--mm-text,#1f2937);background:var(--mm-surface,#fff);width:min(760px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box;border:1px solid #b9c7a4;border-radius:20px;padding:24px}.mn-public-result-dialog::backdrop{background:#111b28aa}.mn-public-result-dialog table{width:100%;border-collapse:collapse;font-size:clamp(11px,2.6vw,16px)}.mn-public-result-dialog th,.mn-public-result-dialog td{padding:10px 6px;text-align:left;border-bottom:1px solid #9bac7e55;overflow-wrap:anywhere}.mn-public-result-dialog caption{font-weight:700;text-align:left;margin:16px 0}.mn-public-result-dialog h2{font-size:clamp(20px,5vw,28px);overflow-wrap:anywhere}.mn-public-result-dialog>button{float:right}html[data-mm-theme="dark"] .mn-public-result-dialog,html[data-appearance="dark"] .mn-public-result-dialog{background:#18211b;color:#edf1e9}@media(max-width:420px){.mn-public-result-dialog{padding:14px}}
