/* Stream surfaces never replace the game iframe. All layout overrides are scoped to an active console game. */
.cm-toolbar,.cm-panel-close { display:none; }
.cm-peers { display:flex; flex-direction:column; flex:1 1 0; min-width:0; min-height:0; gap:10px; margin-bottom:14px; }
.cm-heading { display:flex; align-items:center; justify-content:space-between; flex:none; min-height:28px; gap:8px; }
.cm-heading h2 { min-width:0; margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:600 17px/1.3 var(--font-display); }
.cm-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-width:48px; min-height:48px; padding:8px 15px; border:1px solid var(--console-edge,#faf7f21c); border-radius:999px; background:var(--bg-2,#232331); color:var(--ivory); font:600 13px/1.25 var(--font); cursor:pointer; transition:background .16s,border-color .16s,transform .16s; }
.cm-button:hover:not(:disabled) { border-color:var(--lime); transform:translateY(-1px); }
.cm-button:active:not(:disabled) { transform:scale(.97); }
.cm-button:focus-visible,.cm-peer:focus-visible,.cm-button.console-pad-target,.cm-peer.console-pad-target { outline:3px solid var(--lime); outline-offset:3px; }
.cm-icon { display:inline-flex; flex:none; width:22px; height:22px; }
.cm-icon svg { display:block; width:100%; height:100%; }
.cm-icon-button { width:48px; padding:0; }
.cm-icon-button .cm-button-label { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
.cm-share[aria-pressed="true"] { color:var(--night); background:var(--lime); border-color:var(--lime); }
.cm-share-row { display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; }
.cm-capture-state { flex:1 1 95px; margin:0; color:var(--tx-lo); font:400 11px/1.4 var(--font); }
.cm-capture-state[data-state="sharing"] { color:var(--lime); }
.cm-pager { display:flex; flex:none; align-items:center; gap:4px; }
.cm-pager .cm-button { width:48px; min-width:48px; }
.cm-pager .cm-icon { width:17px; height:17px; }
.cm-page { color:var(--tx-lo); font-size:11px; white-space:nowrap; }
.cm-grid { display:grid; grid-template-rows:repeat(var(--cm-visible-count,3),minmax(0,1fr)); gap:10px; flex:1 1 0; min-height:0; min-width:0; }
.cm-peer { display:block; position:relative; width:100%; height:100%; min-height:64px; padding:0; overflow:hidden; border:1px solid #a47bff40; border-radius:18px; background:#0c0c14; color:var(--ivory); text-align:left; cursor:pointer; isolation:isolate; }
.console-page .cm-peer:disabled { opacity:1; cursor:default; }
.cm-peer:is(:hover,[aria-pressed="true"]):not(:disabled) { border-color:var(--lime); box-shadow:inset 0 0 0 2px var(--lime); }
.cm-peer video { display:block; width:100%; height:100%; object-fit:contain; pointer-events:none; }
.cm-placeholder { position:absolute; inset:0; display:grid; place-items:center; padding-bottom:24px; background:radial-gradient(ellipse at 50% 45%,#a47bff18,transparent 65%),#15141f; }
.cm-placeholder .pab-av { opacity:.65; }
.cm-caption { position:absolute; left:0; right:0; bottom:0; display:flex; align-items:center; gap:8px; min-height:53px; padding:14px 10px 8px; background:linear-gradient(transparent,#0e0e18ee 30%); pointer-events:none; }
.cm-face { display:flex; flex:none; }
.cm-peer-copy { display:grid; min-width:0; gap:2px; }
.cm-peer-copy strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; line-height:1.2; }
.cm-peer-status { color:var(--tx-lo); font-size:10px; line-height:1.2; }
.cm-peer[data-status="live"] .cm-peer-status { color:var(--lime); }
.cm-caption>.cm-icon { margin-left:auto; width:16px; height:16px; color:var(--violet-soft); }
.cm-peer:disabled .cm-caption>.cm-icon { visibility:hidden; }
.cm-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; flex:1; min-height:100px; gap:14px; padding:20px; border:1px dashed #a47bff40; border-radius:20px; background:radial-gradient(ellipse at 50% 40%,#a47bff0d,transparent 70%); }
.cm-empty p { max-width:240px; margin:0; color:var(--tx-lo); text-align:center; font-size:13px; line-height:1.5; }
.cm-watch { position:absolute; z-index:20; inset:0; overflow:hidden; display:flex; align-items:center; justify-content:center; background:#0a0a10; border-radius:inherit; }
.cm-watch>video { width:100%; height:100%; object-fit:contain; }
.cm-watch-top { position:absolute; top:0; left:0; right:0; display:flex; align-items:center; gap:14px; padding:12px; background:linear-gradient(#13131be6,transparent); }
.cm-return { color:var(--night); background:var(--lime); border-color:var(--lime); box-shadow:0 4px 16px #0004; }
.cm-watch-title { color:var(--ivory); font-size:13px; text-shadow:0 1px 5px #000; }
.has-console-mirror #console-social { overflow:visible; }
.has-console-mirror #console-social :is(.pr-head,.pr-left,.console-row-resizer) { display:none!important; }
.has-console-mirror #console-social #page { display:flex; flex:0 1 clamp(180px,32%,280px); min-height:150px; }
.has-console-mirror #console-social .pr-main { flex:1 1 0; min-height:0; }
.has-console-mirror #console-social .pr-chat { display:flex; flex:1 1 0; min-height:0; }
.has-console-mirror #console-social .console-social-nav { display:none!important; }
/* Nobody to watch yet (no party, or nobody sharing): the empty note takes one compact row and the party's card below takes the
   rest of the column, never a squeezed box with its own scroll under a large empty frame (the user, 2026-11-25: «no pueden pasar
   esas cosas donde se crean scrolls dejando espacios muertos»; tools/console-check.mjs › squeezed, dead) */
.has-console-mirror .cm-peers:has(.cm-empty) { flex:0 0 auto; }
.has-console-mirror .cm-peers:has(.cm-empty) .cm-grid { flex:0 0 auto; }
.has-console-mirror .cm-empty { flex:0 0 auto; flex-direction:row; justify-content:flex-start; min-height:0; gap:12px; padding:12px 16px; }
.has-console-mirror .cm-empty p { max-width:none; text-align:left; }
.has-console-mirror .cm-empty .pab-av { width:40px!important; height:40px!important; flex:none; }
.has-console-mirror:has(.cm-peers .cm-empty) #console-social #page { flex:1 1 auto; max-height:none; }
/* (and the invitation card fills it, its words in the middle: no empty strip under it) */
.has-console-mirror #console-social .pr-main .pr-chat.console-idle-chat { flex:1 1 auto; max-height:none; }
.has-console-mirror .console-game-stage { isolation:isolate; }
/* (the round's live board over the game: the friends' live cards and the standings button say it here) */
.has-console-mirror .stage.is-docked .plive { display:none!important; }
/* a friend's live card (video on demand): their points and combo, their judgments popping over their face */
.cm-live { display:grid; justify-items:end; flex:none; margin-left:auto; gap:1px; text-align:right; }
.cm-live-points { font:600 15px/1.1 var(--font-display); color:var(--ivory); font-variant-numeric:tabular-nums; }
.cm-live-combo { font-size:10px; line-height:1.2; color:var(--lime); }
.cm-peer.has-live .cm-caption>.cm-icon { margin-left:6px; }
.cm-judge { position:absolute; z-index:3; left:50%; top:42%; transform:translate(-50%,-50%); opacity:0; padding:4px 12px; border-radius:999px;
  font:600 18px/1.2 var(--font-display); white-space:nowrap; pointer-events:none; background:#13131bd9; color:var(--ivory); box-shadow:0 4px 14px #0006; }
.cm-judge[data-tier="perfect"] { background:var(--lime); color:var(--night); }
.cm-judge[data-tier="great"] { background:var(--violet,#a47bff); color:var(--night); }
.cm-judge[data-tier="good"] { background:#ffb86b; color:var(--night); }
.cm-judge[data-tier="miss"] { background:#2a2a36; color:#ff8a8a; }
.cm-peer[data-status="asking"] .cm-peer-status { color:var(--violet-soft,#c7b0ff); }
.cm-peer[data-status="tapToWatch"] .cm-peer-status { color:var(--ivory); }
.cm-peer[aria-pressed="true"][data-status="asking"] { border-color:var(--violet,#a47bff); box-shadow:inset 0 0 0 2px var(--violet,#a47bff); }
.cm-follow { display:flex; align-items:center; gap:8px; flex:none; margin:0; color:var(--tx-lo); font:600 12px/1.35 var(--font); }
.cm-follow .crew-inparty-f { display:inline-flex; }
.cm-follow .crew-inparty-f > * + * { margin-left:-6px; }
.cm-sum { gap:6px; border-color:#ffd34d80; color:#ffd34d; }
.cm-sum svg { width:20px; height:20px; }
.cm-sum.is-lead { background:#ffd34d; color:var(--night); border-color:#ffd34d; }
.cm-judge:empty { display:none; }
.cm-peer.has-live .cm-rank-points { display:none; }
.cm-peer > .cm-rank-badge { right:auto; width:max-content; }   /* (the card says the points itself, under the name's line) */
.cm-emote { position:absolute; z-index:4; right:12px; top:12px; width:40px; height:40px; pointer-events:none; filter:drop-shadow(0 3px 6px #0008); }
.cm-emote svg { width:100%; height:100%; }
@media(prefers-reduced-motion:reduce) { .cm-judge { opacity:1; } }
@media(max-width:1180px), (pointer:coarse) and (max-width:1400px) {
  .has-console-mirror { --cm-toolbar-height:calc(60px + env(safe-area-inset-top,0px)); --cm-rail-height:clamp(104px,16dvh,164px); }
  /* nobody is sharing yet: the rail only says so, in one row, and the game takes the rest of the height (an iPad's upright game was 290 px short) */
  .has-console-mirror:has(.cm-peers .cm-empty) { --cm-rail-height:76px; }
  .has-console-mirror :is(.console-top,.console-mobile-tabs,.console-column-resizer,.console-pad-hint,.console-pad-help) { display:none!important; }
  .has-console-mirror .cm-toolbar { position:absolute; z-index:250; top:0; left:0; right:0; display:flex; align-items:center; gap:10px; min-height:var(--cm-toolbar-height); padding:calc(6px + env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) 6px max(12px,env(safe-area-inset-left,0px)); background:linear-gradient(#13131bf0,#13131bdb); border-bottom:1px solid #ffffff0d; backdrop-filter:blur(12px); }
  .cm-toolbar-actions { display:flex; align-items:center; gap:8px; margin-left:auto; }
  .cm-toolbar .cm-button { padding:8px 14px; }
  .cm-toolbar .cm-icon-button { padding:0; }
  .cm-toolbar .cm-button[aria-expanded="true"] { border-color:var(--lime); color:var(--lime); }
  .cm-game-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:600 17px/1.3 var(--font-display); }
  .has-console-mirror .console-layout { display:grid; position:absolute; inset:0; width:100%; height:100%; max-width:none; margin:0; grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,1fr); gap:0; padding:calc(var(--cm-toolbar-height) + var(--cm-rail-height) + 20px) 0 0; overflow:hidden; transition:none; }
  .console-page.has-console-mirror #console-games { display:flex; grid-area:1/1/2/2; width:100%; height:100%; min-height:0; padding:0; }
  .console-page.has-console-mirror #console-social { display:contents; padding:0; container-type:normal; }
  .has-console-mirror .console-game-stage { width:100%; height:100%; flex:1 1 0; border-radius:0; overflow:hidden; }
  .has-console-mirror .stage.is-docked { border-radius:0; }
  .has-console-mirror .stage.is-docked[open] { grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,1fr); grid-template-areas:none; gap:0; padding:0; }
  .has-console-mirror .stage.is-docked :is(.stage-top,.stage-dock-mode,.stage-bottom,.stage-corner,.stage-foot,.stage-guest,.stage-pme,.stage-pbot,.stage-pside) { display:none!important; }
  .has-console-mirror .stage.is-docked>.stage-x { display:none!important; }
  .has-console-mirror .stage.is-docked .stage-frame { grid-area:1/1/2/2; place-self:end center; margin:0; width:min(100cqw,calc(100cqh * 9 / 16)); height:auto; aspect-ratio:9/16; max-width:100%; max-height:100%; }
  .has-console-mirror .stage.is-docked.is-land:not(.is-phone) .stage-frame { width:min(100cqw,calc(100cqh * 16 / 9)); aspect-ratio:16/9; }
  .has-console-mirror .stage.is-docked.is-scaled:not(.is-phone) .stage-frame { width:min(100cqw,calc(100cqh * var(--gw) / var(--gh))); aspect-ratio:var(--gw)/var(--gh); }
  .has-console-mirror .stage.is-docked.is-scaled.is-land:not(.is-phone) .stage-frame { width:min(100cqw,calc(100cqh * var(--glw) / var(--glh))); aspect-ratio:var(--glw)/var(--glh); }
  .has-console-mirror .stage.is-docked.is-phone .stage-frame { grid-area:1/1/2/2; width:100%; height:100%; aspect-ratio:auto; margin:0; }
  .has-console-mirror .stage.is-docked .stage-frame iframe { border-radius:0!important; box-shadow:none; }
  .has-console-mirror .stage.is-docked .stage-screen { border-radius:0!important; box-shadow:none; }
  .has-console-mirror .cm-peers { position:absolute; top:calc(var(--cm-toolbar-height) + 10px); left:max(12px,env(safe-area-inset-left,0px)); right:max(12px,env(safe-area-inset-right,0px)); height:var(--cm-rail-height); margin:0; z-index:30; gap:0; }
  .has-console-mirror .cm-heading,.has-console-mirror .cm-share-row,.has-console-mirror .cm-follow { display:none; }
  .has-console-mirror[data-console-mirror-panel="crew"] .cm-follow:not([hidden]) { display:flex; margin-bottom:6px; }
  .has-console-mirror .cm-grid { grid-template-columns:repeat(var(--cm-visible-count,3),minmax(0,1fr)); grid-template-rows:minmax(0,1fr); height:100%; gap:12px; }
  .has-console-mirror .cm-peer { min-height:0; border-radius:14px; }
  .has-console-mirror .cm-caption { padding:13px 8px 6px; min-height:45px; }
  .has-console-mirror .cm-peer-copy strong { font-size:12px; }
  .has-console-mirror .cm-peer-status { font-size:10px; }
  .has-console-mirror .cm-caption .pab-av { width:26px!important; height:26px!important; }
  .has-console-mirror .cm-empty { flex-direction:row; min-height:0; gap:12px; padding:10px; }
  .has-console-mirror .cm-empty p { max-width:360px; text-align:left; font-size:12px; }
  .console-page.has-console-mirror #console-social :is(#page,#console-friends,.console-friends-placeholder) { display:none!important; }
  .console-page.has-console-mirror[data-console-mirror-panel] #console-social { position:absolute; z-index:260; top:calc(var(--cm-toolbar-height) + 6px); right:10px; left:auto; display:flex; width:min(720px,calc(100% - 20px)); height:min(350px,46dvh); min-height:190px; padding:50px 12px 12px; border:1px solid #a47bff65; border-radius:22px; background:#1b1b26fa; box-shadow:0 14px 44px #0007; overflow:hidden; }
  .has-console-mirror[data-console-mirror-panel] .cm-panel-close { position:absolute; top:4px; right:5px; z-index:2; display:inline-flex; }
  .has-console-mirror[data-console-mirror-panel="crew"] .cm-peers { position:static; display:flex; flex:1 1 0; height:100%; min-height:0; }
  .has-console-mirror[data-console-mirror-panel="crew"] .cm-heading { display:flex; position:absolute; left:14px; right:60px; top:6px; min-height:42px; }
  .has-console-mirror[data-console-mirror-panel="crew"] .cm-heading h2 { font-size:15px; }
  .has-console-mirror[data-console-mirror-panel="crew"] .cm-pager .cm-button { min-height:48px; height:48px; }
  .has-console-mirror[data-console-mirror-panel="crew"] .cm-share-row { display:block; flex:none; margin-bottom:8px; }
  .has-console-mirror[data-console-mirror-panel="crew"] .cm-desktop-share { display:none; }
  .has-console-mirror[data-console-mirror-panel="chat"] .cm-peers { display:none; }
  .console-page.has-console-mirror[data-console-mirror-panel="chat"] #console-social #page { display:flex!important; flex:1 1 0; min-height:0; }
  .has-console-mirror[data-console-mirror-panel="chat"] .pr-chat { border-radius:16px; }
  .has-console-mirror[data-console-mirror-panel="chat"] .pr-chat-h { display:none!important; }
  .has-console-mirror .cm-watch { border-radius:0; }
  .has-console-mirror .cm-watch-top { top:0; padding:10px; }
  .has-console-mirror .cm-watch-title { font-size:12px; }
  .has-console-mirror .console-keyboard { align-self:start; margin-top:calc(var(--cm-toolbar-height) + 8px); margin-bottom:auto; max-height:calc(100dvh - var(--cm-toolbar-height) - 20px); }
}
@media(max-width:600px), (max-width:950px) and (max-height:500px) {
  .has-console-mirror .console-layout { padding:0; }
  .has-console-mirror .cm-toolbar { gap:6px; background:linear-gradient(#13131bde,#13131b9e); border-bottom:0; padding-left:max(8px,env(safe-area-inset-left,0px)); padding-right:max(8px,env(safe-area-inset-right,0px)); }
  .has-console-mirror .cm-toolbar .cm-button { min-width:48px; min-height:48px; font-size:12px; padding:8px 10px; gap:6px; border-radius:14px; }
  .has-console-mirror .cm-toolbar .cm-icon-button { padding:0; }
  .has-console-mirror .cm-toolbar-actions { gap:6px; }
  .has-console-mirror .cm-game-name { display:none; }
  .has-console-mirror .cm-touch-share { padding:0!important; width:48px; }
  .has-console-mirror .cm-touch-share .cm-button-label { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
  .has-console-mirror .cm-touch-share[aria-pressed="true"]::after { content:''; position:absolute; width:6px; height:6px; border-radius:50%; background:var(--night); transform:translate(14px,-14px); }
  .has-console-mirror .cm-peers { display:none; }
  .has-console-mirror .cm-sum .crew-sum-w { display:none; }
  /* Let the game's responsive renderer use the whole phone viewport, including narrow desktop windows. */
  .has-console-mirror .stage.is-docked .stage-frame { place-self:stretch; width:100%!important; height:100%!important; aspect-ratio:auto; }
  /* An upright game starts under the toolbar, never beneath it (the user, 2026-11-25, the party's results glued to the toolbar: «trata de
     que no se peguen esas 2 cosas»); sideways the toolbar stays over the game, as 60 px of a 390 px screen are too many to give up. */
  .has-console-mirror .stage.is-docked:not(.is-land) .stage-frame { margin-top:calc(var(--cm-toolbar-height) + var(--cm-strip,0px)); height:calc(100% - var(--cm-toolbar-height) - var(--cm-strip,0px))!important; }
  .console-page.has-console-mirror[data-console-mirror-panel] #console-social { width:min(600px,calc(100% - 16px)); left:auto; right:8px; height:min(300px,43dvh); min-height:170px; padding:48px 8px 8px; border-radius:18px; }
  .has-console-mirror[data-console-mirror-panel="crew"] .cm-grid { gap:7px; }
  .has-console-mirror[data-console-mirror-panel="crew"] .cm-caption { padding:12px 6px 5px; gap:5px; }
  .has-console-mirror[data-console-mirror-panel="crew"] .cm-caption>.cm-icon { display:none; }
  .has-console-mirror[data-console-mirror-panel="crew"] .cm-caption .pab-av { width:22px!important; height:22px!important; }
  .has-console-mirror[data-console-mirror-panel="crew"] .cm-peer-copy strong { font-size:11px; }
  .has-console-mirror[data-console-mirror-panel="crew"] .cm-peer-status { font-size:9px; }
  .has-console-mirror .cm-watch-top { top:var(--cm-toolbar-height); padding:6px 8px; }
  .has-console-mirror .cm-return { min-height:48px; font-size:12px; }
  .has-console-mirror .cm-watch-title { max-width:140px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; }
  .has-console-mirror .cm-empty .pab-av { width:38px!important; height:38px!important; }
  .has-console-mirror .cm-empty p { font-size:11px; }
}
@media(prefers-reduced-motion:reduce) { .cm-button { transition:none; } }
/* (a phone up to 440 px wide: Team and Chat as icons too, so the toolbar's six buttons fit — 393 px of them ran past a 375 px
   iPhone and cut Settings off; tools/console-check.mjs › edge) */
@media(max-width:440px) {
  .has-console-mirror .cm-toolbar-actions .cm-button { width:48px; padding:0; }
  html .has-console-mirror .cm-game-name, html .has-console-mirror .cm-game-name:has(+ .cm-mode-chip:not([hidden])) { display:none; }   /* (no room for more than «Ly…»: the game itself is on screen) */
  .has-console-mirror .cm-toolbar-actions .cm-button-label { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
}

/* Scores come from the current party round. No score or place is created by these surfaces. */
.cm-rank-badge { position:absolute; z-index:2; top:10px; left:10px; display:inline-flex; align-items:center; gap:7px; min-height:30px; padding:5px 9px; border:1px solid #ffffff38; border-radius:11px; color:var(--ivory); background:#13131be8; box-shadow:0 2px 10px #0004; backdrop-filter:blur(6px); pointer-events:none; }
.cm-rank-place { font:700 15px/1 var(--font); font-variant-numeric:tabular-nums; }
.cm-rank-badge[data-place="1"] { border-color:#d2ff4d9c; }
.cm-rank-badge[data-place="1"] .cm-rank-place { color:var(--lime); }
.cm-rank-badge[data-place="2"] .cm-rank-place { color:#d8c6ff; }
.cm-rank-badge[data-place="3"] .cm-rank-place { color:#ffb39c; }
.cm-rank-points { font:500 11px/1 var(--font); color:#d3cedf; white-space:nowrap; font-variant-numeric:tabular-nums; }
.cm-rank-stars { position:absolute; left:50%; top:45%; width:0; height:0; pointer-events:none; color:var(--lime); }
.cm-rank-stars>span { display:block; position:absolute; top:0; left:-5px; width:10px; height:10px; opacity:0; }
.cm-rank-stars svg { display:block; width:100%; height:100%; }
.cm-own-place,.cm-position-button { position:relative; flex:none; white-space:nowrap; border-color:#d2ff4d65; color:var(--lime); background:#d2ff4d12; }
.cm-own-place { margin-left:6px; min-height:48px; padding:8px 12px; font-size:12px; }
.cm-own-place .cm-icon { width:19px; height:19px; }
.cm-standings { position:absolute; z-index:45; top:0; left:14px; right:0; display:flex; flex-direction:column; max-height:min(420px,45dvh); padding:16px 12px 12px; border:1px solid #a47bff70; border-radius:22px; background:var(--bg-1); box-shadow:0 16px 48px #0007; }
.cm-standings h2 { flex:none; margin:0 48px 12px 2px; min-height:32px; display:flex; align-items:center; font:600 17px/1.3 var(--font-display); }
.cm-standings-list { display:flex; flex-direction:column; gap:7px; min-height:0; padding:0; margin:0; overflow-y:auto; overscroll-behavior:contain; list-style:none; scrollbar-width:thin; scrollbar-color:#a47bff65 transparent; }
.cm-standings-row { position:relative; display:flex; align-items:center; gap:11px; min-height:48px; padding:7px 10px; border:1px solid transparent; border-radius:13px; background:#ffffff04; }
.cm-standings-row.is-me { background:#d2ff4d0c; border-color:#d2ff4d30; }
.cm-standings-row:focus-visible,.cm-standings-row.console-pad-target { outline:3px solid var(--lime); outline-offset:-3px; }
.cm-standings-row>.cm-rank-badge { position:relative; flex:none; top:auto; left:auto; justify-content:center; min-width:38px; padding:6px; box-shadow:none; }
.cm-standings-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:600 13px/1.3 var(--font); }
.cm-standings-points { flex:none; margin-left:auto; white-space:nowrap; font:600 12px/1.3 var(--font); font-variant-numeric:tabular-nums; color:var(--tx-mid); }
.has-console-mirror[data-console-mirror-panel="standings"] #console-social { position:relative; }
.has-console-mirror[data-console-mirror-panel="standings"] #console-social>.cm-peers,
.has-console-mirror[data-console-mirror-panel="standings"] #console-social>#page { visibility:hidden; pointer-events:none; }
.has-console-mirror[data-console-mirror-panel="standings"] .cm-panel-close { position:absolute; z-index:46; top:5px; right:5px; display:inline-flex; }
@media(max-width:1180px), (pointer:coarse) and (max-width:1400px) {
  .has-console-mirror .cm-own-place { display:none; }
  .has-console-mirror .cm-position-button { margin-left:0; font-size:12px; min-height:48px; }
  .has-console-mirror .cm-position-button>.cm-icon { display:none; }
  .has-console-mirror .cm-rank-badge { top:7px; left:7px; min-height:26px; padding:5px 7px; gap:6px; border-radius:9px; }
  .has-console-mirror .cm-rank-place { font-size:13px; }
  .has-console-mirror .cm-rank-points { font-size:10px; }
  .console-page.has-console-mirror[data-console-mirror-panel="standings"] #console-social { position:absolute; }
  .has-console-mirror[data-console-mirror-panel="standings"] .cm-peers { display:none; }
  .has-console-mirror .cm-standings { position:static; display:flex; flex:1 1 0; min-height:0; max-height:none; padding:0; border:0; border-radius:0; box-shadow:none; background:transparent; }
  .has-console-mirror .cm-standings h2 { position:absolute; top:8px; left:14px; right:60px; min-height:36px; margin:0; font-size:16px; }
  .has-console-mirror .cm-standings-row>.cm-rank-badge { top:auto; left:auto; }
}
@media(max-width:600px), (max-width:950px) and (max-height:500px) {
  .has-console-mirror .cm-position-button { position:absolute; top:calc(var(--cm-toolbar-height) + 6px); left:max(8px,env(safe-area-inset-left,0px)); min-width:68px; min-height:48px; padding:8px 11px; color:var(--lime); background:#1b1b26f0; border-radius:14px; box-shadow:0 3px 14px #0005; }
  .has-console-mirror[data-console-mirror-panel] .cm-position-button { visibility:hidden; }
  .has-console-mirror .cm-rank-badge { top:5px; left:5px; right:5px; justify-content:space-between; gap:4px; padding:5px 6px; }
  .has-console-mirror .cm-rank-points { font-size:9px; }
  .has-console-mirror .cm-standings-row { min-height:48px; padding:6px 8px; gap:8px; }
  .has-console-mirror .cm-standings-row>.cm-rank-badge { inset:auto; min-width:34px; justify-content:center; }
  .has-console-mirror .cm-standings-name { font-size:12px; }
  .has-console-mirror .cm-standings-points { font-size:11px; }
}
@media(prefers-reduced-motion:reduce) { .cm-rank-stars { display:none; } }

/* THE MODE BAND (./console-mode.js; the user, 2026-11-25: every mode its own look, and «en PC todo debe verse más especial»): the mode's
   colour (--mode), icon and rule, who I am, what is going on in it. A computer shows the band over the live cards; a phone, the chip. */
.cm-mode { --mode:#a47bff; position:relative; display:flex; flex-direction:column; flex:none; gap:10px; padding:14px 16px 14px; overflow:hidden; border:1px solid color-mix(in srgb,var(--mode) 55%,transparent); border-radius:24px;
  background:radial-gradient(120% 140% at 0% 0%,color-mix(in srgb,var(--mode) 24%,transparent),transparent 60%),#16151f; box-shadow:inset 0 0 0 1px #ffffff08; }
.cm-mode[hidden],.cm-mode-chip[hidden],.cm-tag[hidden] { display:none; }
.cm-mode-head { display:flex; align-items:center; gap:12px; min-width:0; }
.cm-mode-ic { display:grid; place-items:center; flex:none; width:44px; height:44px; padding:10px; border-radius:50%; background:var(--mode); color:var(--night); }
.cm-mode-ic svg { width:100%; height:100%; display:block; }
.cm-mode-title { min-width:0; flex:1; }
.cm-mode-title h3 { margin:0; font:600 21px/1.15 var(--font-display); color:var(--ivory); }
.cm-mode-title p { margin:2px 0 0; color:var(--tx-mid,#cfcad8); font:400 12px/1.35 var(--font); }
.cm-mode-badge { flex:none; max-width:42%; padding:6px 12px; border-radius:999px; background:color-mix(in srgb,var(--mode) 22%,transparent); border:1px solid color-mix(in srgb,var(--mode) 60%,transparent); color:var(--ivory); font:600 12px/1.2 var(--font); text-align:center; }
.cm-mode-badge:empty,.cm-mode-me[hidden] { display:none; }
.cm-mode-me { margin:0; color:var(--tx-mid,#cfcad8); font:600 13px/1.35 var(--font); }
.cm-mode-me.is-you { color:var(--lime); }
/* just the avatar with the frame chosen in its profile, no ring around it (the user, 2026-11-25: «no uses un container circular») */
.cm-mode-av { display:flex; flex:none; }
.cm-mode-n { display:inline-flex; align-items:center; gap:6px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:600 13px/1.3 var(--font); color:var(--ivory); }
.cm-mode-you { padding:1px 8px; border-radius:999px; background:var(--lime); color:var(--night); font:700 10px/1.5 var(--font); font-style:normal; }
/* versus: the live race — a lane per player, ordered by place */
.cm-lanes { display:flex; flex-direction:column; gap:6px; margin:0; padding:0; list-style:none; }
.cm-lane { display:flex; align-items:center; gap:10px; min-height:40px; padding:4px 10px 4px 8px; border-radius:16px; background:#ffffff08; border:1px solid transparent; }
.cm-lane.is-me { background:#d2ff4d10; border-color:#d2ff4d55; }
.cm-lane-place { flex:none; width:26px; color:var(--tx-mid,#cfcad8); font:600 13px/1 var(--font-display); text-align:center; }
.cm-lane-main { display:flex; flex-direction:column; flex:1; gap:4px; min-width:0; }
.cm-lane-track { display:block; height:8px; border-radius:99px; background:#ffffff12; overflow:hidden; }
.cm-lane-fill { display:block; height:100%; width:0; border-radius:inherit; background:var(--seat); transition:width .5s cubic-bezier(.2,.75,.3,1); }
.cm-lane-pts { flex:none; min-width:68px; text-align:right; color:var(--ivory); font:600 15px/1.1 var(--font-display); font-variant-numeric:tabular-nums; }
/* co-op: one team, one meter */
.cm-team { display:flex; flex-direction:column; gap:8px; }
.cm-team-top { display:flex; align-items:center; gap:10px; }
.cm-team-tag { padding:3px 12px; border-radius:999px; background:var(--lime); color:var(--night); font:700 12px/1.5 var(--font); }
.cm-team-l { color:var(--tx-mid,#cfcad8); font:400 12px/1.3 var(--font); }
.cm-team-big { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 14px; }
.cm-team-n { color:var(--ivory); font:600 44px/1 var(--font-display); font-variant-numeric:tabular-nums; }
.cm-team-p { color:var(--mode); font:600 13px/1.3 var(--font); }
.cm-meter { display:flex; gap:3px; height:14px; padding:2px; border-radius:99px; background:#ffffff10; }
.cm-meter > i { display:block; min-width:6px; flex:1 1 0; border-radius:99px; background:var(--seat); transition:flex-grow .5s cubic-bezier(.2,.75,.3,1),opacity .3s; }
.cm-team-crew { display:flex; flex-wrap:wrap; gap:8px; margin:0; padding:0; list-style:none; }
.cm-team-crew li { display:flex; align-items:center; gap:8px; padding:5px 12px 5px 6px; border-radius:99px; background:#ffffff0a; border:1px solid transparent; }
.cm-team-crew li.is-me { border-color:#d2ff4d66; background:#d2ff4d12; }
.cm-team-who { display:flex; flex-direction:column; min-width:0; }
.cm-team-who small { color:var(--tx-lo); font:400 11px/1.2 var(--font); font-variant-numeric:tabular-nums; }
/* contest and survivor: the turns */
.cm-pips { display:flex; gap:8px; margin:0; padding:0; list-style:none; }
.cm-pips li { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; border:2px solid #ffffff2a; color:var(--tx-lo); font:600 13px/1 var(--font-display); }
.cm-pips li.is-done { background:var(--mode); border-color:var(--mode); color:var(--night); }
.cm-pips li.is-now { border-color:var(--mode); color:var(--ivory); box-shadow:0 0 0 4px color-mix(in srgb,var(--mode) 30%,transparent); }
.cm-turns { display:flex; flex-wrap:wrap; gap:8px; margin:0; padding:0; list-style:none; }
.cm-turn { display:flex; align-items:center; gap:10px; flex:1 1 150px; min-width:0; padding:7px 12px 7px 8px; border-radius:18px; background:#ffffff0a; border:1px solid transparent; }
.cm-turn.is-me { border-color:#d2ff4d66; background:#d2ff4d12; }
.cm-turn.is-picker { border-color:var(--mode); background:color-mix(in srgb,var(--mode) 22%,transparent); }
.cm-turn.is-out { opacity:.5; }
.cm-turn.is-out .cm-mode-av { filter:grayscale(1); }
.cm-turn.is-out .cm-mode-n { text-decoration:line-through; }
.cm-turn.is-champ { border-color:#ffd34d; background:#ffd34d1c; }
.cm-turn-who { display:flex; flex-direction:column; flex:1; min-width:0; }
.cm-turn-tag { color:var(--mode); font:600 11px/1.2 var(--font); }
.cm-turn.is-out .cm-turn-tag { color:var(--tx-lo); }
.cm-turn.is-champ .cm-turn-tag { color:#ffd34d; }
.cm-turn-tag:empty,.cm-turn-pab:empty { display:none; }
.cm-turn-pab { flex:none; color:var(--tx-mid,#cfcad8); font:600 12px/1 var(--font); font-variant-numeric:tabular-nums; }
/* the live cards wear the player's mark in the mode */
.cm-tag { display:inline-block; margin-top:1px; color:var(--lime); font:600 10px/1.2 var(--font); }
.cm-peers.has-mode .cm-peer { border-color:color-mix(in srgb,var(--seat,#a47bff) 55%,transparent); }
.cm-peers.has-mode .cm-peer.is-out { opacity:.55; filter:grayscale(.7); }
.cm-peers.has-mode .cm-heading { display:none; }
.cm-peers.has-mode .cm-heading:has(.cm-pager:not([hidden])) { display:flex; }
.cm-peers.has-mode .cm-heading h2 { display:none; }
/* a computer has the room: the band takes its height, the cards share what is left (a short window: compact band) */
@media(min-width:1181px) {
  .cm-peers.has-mode { gap:12px; overflow:auto; }
  .cm-peers.has-mode .cm-grid { flex:1 1 0; min-height:min(120px,18dvh); }
  .cm-peers.has-mode .cm-share-row { display:none; }
}
@media(min-width:1181px) and (max-height:780px) {
  .cm-mode { gap:8px; padding:10px 14px; }
  .cm-mode-title p { display:none; }
  .cm-mode-ic { width:36px; height:36px; padding:8px; }
  .cm-team-n { font-size:34px; }
  .cm-team-crew li { padding:3px 10px 3px 4px; }
  .cm-lane { min-height:34px; }
}
/* the phone's toolbar: the mode's colour, name and its one number — never over the game */
.cm-mode-chip { --mode:#a47bff; display:none; align-items:center; gap:6px; min-width:0; min-height:44px; padding:4px 12px 4px 6px; border:1.5px solid var(--mode); border-radius:999px; background:color-mix(in srgb,var(--mode) 22%,#13131b); color:var(--ivory); font:600 13px/1.1 var(--font); cursor:pointer; }
.cm-mode-chip b { font-weight:600; white-space:nowrap; }
.cm-mode-chip small { color:var(--mode); font:600 11px/1.1 var(--font); white-space:nowrap; }
.cm-mode-chip .cm-mode-ic { width:28px; height:28px; padding:6px; }
@media(max-width:1180px), (pointer:coarse) and (max-width:1400px) {
  .cm-toolbar .cm-mode-chip { display:inline-flex; flex:0 1 auto; }
  .cm-mode { display:none; }
  .has-console-mirror[data-console-mirror-panel="crew"] .cm-mode { display:flex; flex:none; padding:8px 12px; gap:6px; margin-bottom:6px; }
  .has-console-mirror[data-console-mirror-panel="crew"] .cm-mode-title p,.has-console-mirror[data-console-mirror-panel="crew"] .cm-mode-ic { display:none; }
  .has-console-mirror[data-console-mirror-panel="crew"] .cm-mode-title h3 { font-size:16px; }
  .has-console-mirror[data-console-mirror-panel="crew"] .cm-mode-head { padding-right:46px; }
  .has-console-mirror[data-console-mirror-panel="crew"] .cm-team-n { font-size:26px; }
  .has-console-mirror[data-console-mirror-panel="crew"] .cm-peers.has-mode .cm-heading { display:none; }
  .has-console-mirror .cm-game-name:has(+ .cm-mode-chip:not([hidden])) { flex:0 1 auto; max-width:30%; }
}
@media(max-width:600px), (max-width:950px) and (max-height:500px) {
  .cm-toolbar .cm-mode-chip { min-height:48px; padding-right:10px; }
  .cm-toolbar .cm-mode-chip small { display:none; }
  .has-console-mirror .cm-game-name:has(+ .cm-mode-chip:not([hidden])) { display:none; }
}
/* a phone upright: the toolbar is full, so the mode has its own thin strip under it, and the game starts under that strip (never beneath it) */
@media(max-width:600px) {
  .has-console-mirror.has-console-mode { --cm-strip:34px; }
  .has-console-mirror .cm-toolbar .cm-mode-chip { position:absolute; top:100%; left:max(8px,env(safe-area-inset-left,0px)); right:max(8px,env(safe-area-inset-right,0px)); height:30px; min-height:30px; margin-top:2px; padding:0 14px 0 3px; gap:8px; }
  .has-console-mirror .cm-toolbar .cm-mode-chip small { display:inline; margin-left:auto; }
  .has-console-mirror .cm-toolbar .cm-mode-chip .cm-mode-ic { width:24px; height:24px; padding:5px; }
  .has-console-mirror .cm-game-name:has(+ .cm-mode-chip:not([hidden])) { display:block; flex:1 1 0; min-width:0; max-width:none; }   /* (it gives way to the buttons, never under them) */
  .has-console-mirror .cm-position-button { top:calc(var(--cm-toolbar-height) + var(--cm-strip,0px) + 6px); }
}
@media(prefers-reduced-motion:reduce) { .cm-lane-fill,.cm-meter > i { transition:none; } }

/* ---- the race, the reactions, a friend who dropped (2026-11-25: «1, 2 y 4») ---- */
/* the gap to the one just ahead, beside my place in the toolbar */
.cm-race { display:inline-flex; align-items:center; min-height:32px; padding:4px 12px; border-radius:999px; background:#faf7f20f; color:var(--ivory); font:600 12px/1.2 var(--font); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:220px; font-variant-numeric:tabular-nums; }
.cm-race[data-lead="true"] { color:var(--night); background:var(--lime); }
/* the same line under the mode's band: on a computer beside the cards, on a phone at the top of its Team panel */
.cm-race-line { display:flex; justify-content:center; flex:none; max-width:none; min-height:36px; margin:0; font-size:13px; }
.cm-race-line[hidden] { display:none; }
.cm-toolbar .cm-race[hidden] { display:none; }
/* who passed whom: a pill over the top of my game */
.cm-toast { position:absolute; z-index:25; left:50%; top:76px; transform:translate(-50%,0); margin:0; max-width:calc(100% - 32px); padding:10px 18px; border-radius:999px; background:var(--bg-2,#232331); color:var(--ivory); font:600 15px/1.2 var(--font-display); box-shadow:0 6px 22px #0007; pointer-events:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cm-toast[data-kind="up"] { background:var(--lime); color:var(--night); }
.cm-toast[data-kind="down"] { background:#ff7a59; color:var(--night); }
.cm-toast[data-kind="sent"] { font:600 13px/1.2 var(--font); }
/* the leader's card glows */
.cm-peer.is-leading { border-color:#ffd84d; box-shadow:inset 0 0 0 2px #ffd84d, 0 0 18px #ffd84d33; }
/* a friend whose connection dropped: their last score, dimmed, until they are back */
.cm-peer.is-away .cm-placeholder,.cm-peer.is-away .cm-live { opacity:.45; }
.cm-peer[data-status="away"] .cm-peer-status { color:#ffb86b; }
/* the reactions row: over the bottom left of my game, the controller's LB / RB or a tap */
.cm-react { position:absolute; z-index:25; left:16px; bottom:16px; display:grid; gap:6px; padding:8px; border:1px solid #a47bff40; border-radius:24px; background:#13131bee; box-shadow:0 8px 28px #0008; }
.cm-react-keys { display:flex; gap:6px; }
.cm-react-key { display:grid; place-items:center; width:48px; height:48px; padding:8px; border:2px solid transparent; border-radius:999px; background:#faf7f20d; cursor:pointer; }
.cm-react-key svg { width:100%; height:100%; }
.cm-react-key:hover,.cm-react-key.is-lit { border-color:var(--lime); background:#d2ff4d1f; }
.cm-react-key:focus-visible { outline:3px solid var(--lime); outline-offset:2px; }
.cm-react-hint { color:var(--tx-lo); font:400 11px/1.2 var(--font); text-align:center; }
body:not(.console-pad-mode) .cm-react-hint { display:none; }
/* a phone's bar has no room for them: its chat's tray reacts there */
@media (max-width:600px), (max-width:950px) and (max-height:500px) { .cm-toolbar .cm-race,.cm-toolbar .cm-react-button { display:none; } .cm-react-key { width:44px; height:44px; } .cm-react { left:8px; bottom:8px; } }
@media (prefers-reduced-motion:reduce) { .cm-peer.is-leading { box-shadow:inset 0 0 0 2px #ffd84d; } }
/* the toolbar's buttons are pills on every screen, as on a computer (the user, 2026-11-26: «trata de que los estilos que hacemos en
   desktop se trasladen igual a los otros formatos siempre»): a phone keeps their size and shows the icon alone, round */
.has-console-mirror .cm-toolbar .cm-button { border-radius:999px; }
/* a tablet upright (441–900 px): the right-hand actions as round icons too, as on a phone, so the game's name keeps its room and
   «Share my game» never breaks in two lines (docs/DEVICE-PARITY.md › Space; tools/console-check.mjs on an iPad, 2026-11-26) */
@media(min-width:441px) and (max-width:900px) {
  .has-console-mirror .cm-toolbar-actions .cm-button { width:48px; padding:0; }
  .has-console-mirror .cm-toolbar-actions .cm-button-label { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
}
/* the console's power button in the party's toolbar, left of Games (console-mirror-view.js), the header's own look: a round
   lime-lit button, its LED, its blink when it closes the console (console.css .console-power …) */
.cm-toolbar .cm-power { position:relative; flex:none; display:grid; place-items:center; width:48px; height:48px; padding:0; border-radius:50%; color:var(--lime);
  border:2px solid rgba(250,247,242,.14); background:radial-gradient(circle at 50% 32%, #2C2C3C, #15151E 70%);
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.4), inset 0 1px 0 rgba(250,247,242,.08), 0 0 0 4px rgba(250,247,242,.03); transition:border-color .16s, transform .12s, box-shadow .16s; }
.cm-toolbar .cm-power:focus-visible { outline:3px solid var(--lime); outline-offset:3px; }
/* the toolbar's buttons, a little cuter (the user, 2026-11-26, Spin Pop's buttons as the idea): a soft lip under each round button,
   the icons a touch bigger (the two-tone shapes: console-mirror-view.js ICON); pressed, the lip goes in */
.has-console-mirror .cm-toolbar :is(.cm-button, .cm-power) { box-shadow:inset 0 -3px 0 rgba(0,0,0,.38), inset 0 1px 0 rgba(250,247,242,.08); }
.has-console-mirror .cm-toolbar .cm-button:active:not(:disabled) { box-shadow:inset 0 1px 0 rgba(0,0,0,.4); }
.has-console-mirror .cm-toolbar .cm-icon { width:24px; height:24px; }
.has-console-mirror .cm-toolbar .cm-button:disabled .cm-icon { opacity:.45; filter:saturate(.4); }
/* a phone: «Games» shows its gamepad alone, round, so the power button fits beside it (tools/console-check.mjs: the trophy covered it) */
@media(max-width:440px) {
  .has-console-mirror .cm-toolbar .cm-button.cm-back-games { width:48px; padding:0; }
  .has-console-mirror .cm-toolbar .cm-button.cm-back-games .cm-button-label { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
}
/* the narrowest phones (≤ 390 px): the toolbar's seven round buttons a little closer, so Settings is never cut by the edge
   (tools/console-check.mjs on an iPhone SE, 2026-11-26) */
@media(max-width:390px) {
  .has-console-mirror .cm-toolbar { gap:3px; padding-left:max(6px,env(safe-area-inset-left,0px)); padding-right:max(6px,env(safe-area-inset-right,0px)); }
  .has-console-mirror .cm-toolbar-actions { gap:3px; }
}
/* the party's toolbar is the same row of round, two-tone buttons on every screen (the user, 2026-11-26: «quiero esos botones en
   todos los devices y en todas las pantallas»): Games and the actions show their icons alone, their words kept for screen readers
   and in their tooltips; the trophy keeps its points */
.has-console-mirror .cm-toolbar :is(.cm-back-games, .cm-toolbar-actions .cm-button) { width:48px; min-width:48px; padding:0; }
.has-console-mirror .cm-toolbar :is(.cm-back-games, .cm-toolbar-actions .cm-button) .cm-button-label { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
/* «Games» a wide pill with its word wherever there is room (the user, 2026-11-26: «aquí quiero que hagas más grande el pill y
   coloques la palabra Games»); a phone (≤ 440 px) keeps it round — the seven buttons would run past a 375 px screen with the word */
.has-console-mirror .cm-toolbar .cm-button.cm-back-games { width:auto; min-width:48px; padding:8px 20px 8px 16px; gap:10px; }
.has-console-mirror .cm-toolbar .cm-button.cm-back-games .cm-button-label { position:static; width:auto; height:auto; clip-path:none; overflow:visible; font-size:15px; font-weight:700; }
@media(max-width:440px) {
  .has-console-mirror .cm-toolbar .cm-button.cm-back-games { width:48px; padding:0; gap:0; }
  .has-console-mirror .cm-toolbar .cm-button.cm-back-games .cm-button-label { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
}
/* the trophy's points on one line («0 pts» broke in two on an iPad, tools/console-check.mjs 2026-11-26) */
.has-console-mirror .cm-toolbar .cm-sum, .has-console-mirror .cm-toolbar .cm-sum * { white-space:nowrap; }
/* The party's windows on a phone or a tablet (the user, 2026-11-26: «esas ventanas que estén mejor centradas, mira los márgenes,
   el de la derecha se sale; agrégale animaciones cartoon a todos como las demás» and «cuando no hay player ese contenido es
   diferente; en la versión de desktop es mucho más friendly, usa el mismo»):
   - centred, the same 12 px margin on both sides (they sat 38 px from the left and 10 from the right on an iPad);
   - Team with nobody in it shows the computer's own card — «Your crew belongs here», Invite your friends, Friends, Join with a
     code — under the friends' note, the window as tall as what it holds;
   - each window pops in like the console's others: from a little above, squashed, with an overshoot. */
@media(max-width:1180px), (pointer:coarse) and (max-width:1400px) {
  .console-page.has-console-mirror[data-console-mirror-panel] #console-social { left:0; right:0; margin-inline:auto; width:min(720px, calc(100% - 24px)); transform-origin:50% 0;
    animation:cm-window-pop .46s cubic-bezier(.2,.9,.3,1) both; }
  .console-page.has-console-mirror[data-console-mirror-panel="crew"] #console-social:has(.cm-peers .cm-empty) { height:auto; max-height:calc(100dvh - var(--cm-toolbar-height) - 24px); overflow:auto; }
  .console-page.has-console-mirror[data-console-mirror-panel="crew"] #console-social:has(.cm-peers .cm-empty) #page { display:flex!important; flex:0 0 auto; min-height:0; }
  .console-page.has-console-mirror[data-console-mirror-panel="crew"] #console-social:has(.cm-peers .cm-empty) #page :is(.pr-left, .console-row-resizer, .pr-chat-h) { display:none!important; }
  .console-page.has-console-mirror[data-console-mirror-panel="crew"] #console-social:has(.cm-peers .cm-empty) #page .pr-chat { display:flex; flex:1 1 auto; min-height:0; }
  .has-console-mirror .cm-react:not([hidden]) { transform-origin:0 100%; animation:cm-window-pop-up .42s cubic-bezier(.2,.9,.3,1) both; }
}
.has-console-mirror .cm-standings:not([hidden]) { transform-origin:50% 0; animation:cm-window-pop .46s cubic-bezier(.2,.9,.3,1) both; }
@keyframes cm-window-pop { 0% { opacity:0; translate:0 -14px; scale:.92 .86; } 55% { opacity:1; translate:0 3px; scale:1.02 1.03; } 78% { scale:.995 .99; } 100% { opacity:1; translate:0 0; scale:1 1; } }
@keyframes cm-window-pop-up { 0% { opacity:0; translate:0 14px; scale:.86 .92; } 55% { opacity:1; translate:0 -3px; scale:1.03 1.02; } 100% { opacity:1; translate:0 0; scale:1 1; } }
@media(prefers-reduced-motion:reduce) { .console-page.has-console-mirror[data-console-mirror-panel] #console-social, .has-console-mirror .cm-react, .has-console-mirror .cm-standings { animation:none; } }
@media(max-width:1180px), (pointer:coarse) and (max-width:1400px) {
  /* (its boxes as tall as the card: the room's own flex: 1 1 0 left them 0 px high inside a window sized by its content) */
  .console-page.has-console-mirror[data-console-mirror-panel="crew"] #console-social:has(.cm-peers .cm-empty) #page { flex-direction:column; overflow:visible; }
  .console-page.has-console-mirror[data-console-mirror-panel="crew"] #console-social:has(.cm-peers .cm-empty) #page :is(.pr-main, .pr-chat) { flex:0 0 auto; height:auto; min-height:0; overflow:visible; }
}
@media(max-width:1180px), (pointer:coarse) and (max-width:1400px) {
  .console-page.has-console-mirror[data-console-mirror-panel="crew"] #console-social:has(.cm-peers .cm-empty) .cm-peers { flex:0 0 auto; height:auto; }
  .console-page.has-console-mirror[data-console-mirror-panel="crew"] #console-social:has(.cm-peers .cm-empty) #page { margin-top:10px; }
}
/* the party's windows come in the same way as every popup of the platform (../shared/ui/popkit.js IN: from a little below, squashed,
   an overshoot) — one animation for all (the user, 2026-11-26: «usa un mismo tipo de animación para todo») */
@keyframes cm-window-pop { 0% { opacity:0; translate:0 16px; scale:.9 .86; } 60% { opacity:1; translate:0 -3px; scale:1.02 1.03; } 82% { translate:0 1px; scale:.995 .99; } 100% { opacity:1; translate:0 0; scale:1 1; } }
@keyframes cm-window-pop-up { 0% { opacity:0; translate:0 16px; scale:.9 .86; } 60% { opacity:1; translate:0 -3px; scale:1.02 1.03; } 82% { translate:0 1px; scale:.995 .99; } 100% { opacity:1; translate:0 0; scale:1 1; } }
/* Games and Chat in a game's toolbar: the console header's very tabs (console.css .console-top .console-mobile-tab at a phone's width) — the
   same icons, word, size, pill, lip and the lime ring on the one you are on: Games while the game shows, Chat while its panel is open (the
   user, 2026-11-27: «cuando le doy play a un juego debo ver los botones de Games y Chat como se ven en la consola», «deja los 2 botones
   iguales como se ve en el home de la consola») */
.has-console-mirror .cm-toolbar .cm-tabs { display:flex; flex:none; align-items:center; gap:4px; }
.has-console-mirror .cm-toolbar .cm-tabs .cm-button.cm-tab { width:auto; min-width:48px; min-height:48px; padding:8px 14px 8px 12px; gap:6px; border:1px solid var(--console-edge,rgba(250,247,242,.11));
  border-radius:999px; background:#232331; color:var(--ivory,#FAF7F2); font:700 14px/1 var(--font,Outfit),system-ui,sans-serif;
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.38), inset 0 1px 0 rgba(250,247,242,.08); }
.has-console-mirror .cm-toolbar .cm-tabs .cm-button.cm-tab .cm-button-label { position:static; width:auto; height:auto; clip-path:none; overflow:visible; font:inherit; }
.has-console-mirror .cm-toolbar .cm-tabs .cm-tab .cm-icon { display:grid; width:22px; height:22px; }
.has-console-mirror .cm-toolbar .cm-tabs .cm-tab .cm-icon svg { width:22px; height:22px; }
.has-console-mirror .cm-toolbar .cm-tabs:not(:has(.cm-tab-chat[aria-expanded="true"])) .cm-back-games,
.has-console-mirror .cm-toolbar .cm-tabs .cm-tab-chat[aria-expanded="true"] { border-color:var(--lime); color:var(--ivory); box-shadow:0 0 0 2px rgba(210,255,77,.35), inset 0 -3px 0 rgba(0,0,0,.38); }
.has-console-mirror .cm-toolbar .cm-tabs .cm-button.cm-tab:disabled { opacity:.5; }
/* no Team button in a game's toolbar: Chat opens the same room (the user, 2026-11-27: «quita ese botón porque hace lo mismo que el chat»);
   with it gone the two tabs keep their icons and words, and Share its place, on a 375 px phone alone or in a party */
.has-console-mirror .cm-toolbar .cm-toolbar-actions > .cm-button[aria-controls="console-mirror-peers"] { display:none !important; }
/* nor «Share my game» (the user, 2026-11-27: «quita ese botón también»): the toolbar is power, Games, Chat and Settings */
.has-console-mirror .cm-toolbar .cm-touch-share { display:none !important; }

/* (the user, 2026-11-27: «si le doy al botón de Games quiero que me muestre un popup con la lista de todos los juegos con un buscador y los tabs de All games, Recent y Favorites… cuando entro en un juego el botón de apagar la consola se transformaría en un botón de back que me lleva al home de la consola… que ninguno de los dos botones esté marcado por defecto, solo cuando esté prendido cualquiera de los dos popups, y centra esos dos botones»):
   - the toolbar's corner button is Back to the console's home (an arrow in the power button's round look, no LED)
   - Games and Lobby centred in the bar, neither lit by default: each only while its popup is open */
.cm-toolbar .cm-power.cm-home-back { color: var(--ivory); cursor: pointer; }
.cm-toolbar .cm-power.cm-home-back::after { content: none; }
.has-console-mirror .cm-toolbar { position: relative; }
.has-console-mirror .cm-toolbar .cm-tabs { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 1; }
.has-console-mirror .cm-toolbar .cm-tabs:not(:has(.cm-tab-chat[aria-expanded="true"])) .cm-back-games:not([aria-expanded="true"]) { border-color: var(--console-edge, rgba(250,247,242,.11));
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.38), inset 0 1px 0 rgba(250,247,242,.08); }
.has-console-mirror .cm-toolbar .cm-tabs .cm-tab[aria-expanded="true"] { border-color: var(--lime); box-shadow: 0 0 0 2px rgba(210,255,77,.35), inset 0 -3px 0 rgba(0,0,0,.38); }
