/* The single player's panel beside the game (./console-solo.js): the run, the marks to pass, the recap and the chart's top five.
   Playing alone it takes the place of the party's live cards, which have nothing to show without friends. */
.is-console-solo #console-mirror-peers { display: none !important; }
.cs-solo { flex: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; padding: 18px 20px 20px; border: 1px solid #a47bff38; border-radius: 24px;
  background: radial-gradient(120% 90% at 100% 0%, #a47bff2e, transparent 60%), radial-gradient(90% 70% at 0% 100%, #d2ff4d14, transparent 65%), #181824; color: var(--ivory); }
.cs-solo[hidden] { display: none; }
.cs-head { display: flex; flex-direction: column; gap: 6px; }
.cs-kicker { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: #d2ff4d1f; color: var(--lime); font: 600 12px/1.3 var(--font); }
.cs-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.cs-name h2 { margin: 0; min-width: 0; font: 600 22px/1.15 var(--font-display); overflow-wrap: anywhere; }
.cs-diff { padding: 3px 10px; border-radius: 999px; background: var(--diff, #6e7bff); color: var(--night); font: 600 12px/1.3 var(--font); }
.cs-diff[hidden] { display: none; }

.cs-live { display: flex; flex-direction: column; gap: 6px; }
.cs-live[hidden] { display: none; }
.cs-score { display: flex; align-items: baseline; gap: 10px; }
.cs-points { font: 600 38px/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.cs-combo { color: var(--violet); font: 600 14px/1.2 var(--font); }
.cs-track { position: relative; height: 14px; margin: 26px 0 4px; border-radius: 999px; background: #ffffff14; box-shadow: inset 0 1px 3px #0006; }
.cs-track:has(.is-low:not([hidden])) { margin-bottom: 22px; }
.cs-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #a47bff, var(--lime)); transition: width .25s linear; }
.cs-fill.is-past { box-shadow: 0 0 14px #d2ff4d99; }
.cs-mark { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--ivory); }
.cs-mark[hidden] { display: none; }
.cs-mark small { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ivory); font: 600 11px/1.2 var(--font); }
.cs-mark.is-target { background: #ff7fd3; }
.cs-mark.is-target small { color: #ff7fd3; }
.cs-mark.is-low small { top: calc(100% + 4px); bottom: auto; }
.cs-goal { margin: 4px 0 0; color: var(--tx-lo); font: 400 13px/1.45 var(--font); }
.cs-flash { margin: 0; color: var(--lime); font: 600 15px/1.3 var(--font); }
.cs-flash[data-kind="target"] { color: #ff7fd3; }
.cs-flash[hidden] { display: none; }

.cs-recap { display: flex; flex-direction: column; gap: 6px; }
.cs-recap[hidden] { display: none; }
.cs-recap p { margin: 0; font: 400 14px/1.4 var(--font); }
.cs-recap-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cs-recap-pts { font: 600 42px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.cs-stars { display: inline-flex; gap: 4px; }
.cs-stars i { display: block; width: 24px; height: 24px; color: #ffffff26; }
.cs-stars i.is-on { color: var(--lime); }
.cs-stars svg { display: block; width: 100%; height: 100%; }
.cs-pb b { display: inline-block; margin-right: 4px; padding: 3px 10px; border-radius: 999px; background: var(--lime); color: var(--night); font-weight: 600; }
.cs-pb { color: var(--lime); font-weight: 600; }
.cs-short, .cs-acc, .cs-note { color: var(--tx-lo); }
.cs-place b { font: 600 18px/1.2 var(--font-display); }
.cs-rose { color: var(--lime); font-weight: 600; }
.cs-next { color: #ff7fd3; }

.cs-board-wrap { display: flex; flex-direction: column; gap: 8px; }
.cs-board-wrap[hidden] { display: none; }
.cs-board-wrap h3 { margin: 0; color: var(--tx-lo); font: 600 13px/1.3 var(--font); }
.cs-board { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.cs-row { display: grid; grid-template-columns: 38px 28px 1fr auto; align-items: center; gap: 10px; min-height: 40px; padding: 4px 12px 4px 8px; border-radius: 14px; background: #ffffff08; font: 400 14px/1.2 var(--font); }
.cs-row.is-me { background: #d2ff4d1c; box-shadow: inset 0 0 0 1.5px #d2ff4d80; }
.cs-row.is-gap { margin-top: 6px; }
.cs-rank { color: var(--tx-lo); font-weight: 600; font-variant-numeric: tabular-nums; }
.cs-row.is-top .cs-rank { color: var(--lime); }
.cs-av { display: flex; }
.cs-handle { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-row-pts { font-weight: 600; font-variant-numeric: tabular-nums; }
.cs-board-empty { margin: 0; color: var(--tx-lo); font: 400 13px/1.4 var(--font); }
.cs-board-empty[hidden] { display: none; }

.cs-friend { display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: flex-start; min-height: 48px; padding: 8px 18px; border: 1px solid #faf7f224; border-radius: 999px; background: var(--bg-2); color: var(--ivory); font: 600 15px/1.2 var(--font); cursor: pointer; transition: border-color .15s, transform .15s; }
.cs-friend:hover { border-color: var(--lime); transform: translateY(-1px); }
.cs-friend:active { transform: scale(.97); }
.cs-friend:focus-visible, .cs-chip:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.cs-solo { position: relative; }
.cs-close { display: none; place-items: center; position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; padding: 0; border: 1px solid #faf7f224; border-radius: 14px; background: var(--bg-2); color: var(--ivory); cursor: pointer; }
.cs-close svg { width: 20px; height: 20px; }
.cs-close:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.cs-friend-ic { display: flex; width: 22px; height: 22px; }
.cs-friend-ic svg { width: 100%; height: 100%; }

/* the chip in the game's toolbar: phones and tablets only (a computer has the panel beside the game) */
.cs-chip { display: none; align-items: center; gap: 6px; min-width: 0; min-height: 44px; padding: 4px 14px 4px 8px; border: 1.5px solid #a47bff; border-radius: 999px; background: #a47bff2e; color: var(--ivory); font: 600 13px/1.1 var(--font); cursor: pointer; }
.cs-chip b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.cs-chip-star { display: flex; width: 18px; height: 18px; color: var(--lime); }
.cs-chip-star svg { width: 100%; height: 100%; }
.cs-chip.is-lit { border-color: var(--lime); background: var(--lime); color: var(--night); }
.cs-chip.is-lit .cs-chip-star { color: var(--night); }
@media (max-width: 1180px), (pointer: coarse) and (max-width: 1400px) {
  .cm-toolbar .cs-chip:not([hidden]) { display: inline-flex; flex: 0 1 auto; }
  html .has-console-mirror .cm-game-name:has(+ .cs-chip:not([hidden])) { display: none; }
  /* alone, no rail of friends over the game: the game takes that height back */
  .console-page.has-console-mirror.is-console-solo .console-layout { padding-top: calc(var(--cm-toolbar-height) + 6px); }
  /* the panel is a sheet under the toolbar, opened by the chip (the social column is not beside the game here) */
  .has-console-mirror .cs-solo { display: none; }
  .has-console-mirror.is-solo-open .cs-solo:not([hidden]) { display: flex; position: fixed; z-index: 260; top: calc(var(--cm-toolbar-height) + 6px); right: max(10px, env(safe-area-inset-right, 0px));
    width: min(440px, calc(100% - 20px)); max-height: calc(100dvh - var(--cm-toolbar-height) - 20px); margin: 0; overflow: auto; overscroll-behavior: contain; box-shadow: 0 18px 48px #000a; background-color: #181824; }
  .has-console-mirror .cs-close { display: grid; }
  /* (alone the toolbar keeps Team and Share too, the same buttons as in a party — the user, 2026-11-27: «sí, también cuando juegas»; Share
     stays greyed until there is a party to share with, its tooltip says so) */
}
@media (max-width: 440px) {
  .cs-solo { padding: 16px; }
  .cs-points { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-fill, .cs-friend { transition: none; }
}
.cs-score[hidden], .cs-track[hidden] { display: none; }

/* the player's records on the selected game, beside its favourite star (./console-records.js): stars, best and place, today's Daily */
.console-records { display: flex; flex: 1 1 0; flex-wrap: wrap; justify-content: flex-end; gap: 8px; min-width: 0; }
.console-records[hidden] { display: none; }
/* (the trailer's listen button stands in the card's top right corner: the row ends before it) */
.console-feature:has(.console-listen:not([hidden])) .console-records { padding-right: 64px; }
@media (max-width: 600px) { .console-feature:has(.console-listen:not([hidden])) .console-records { padding-right: 50px; } }
.console-rec { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 1px solid #faf7f224; border-radius: 999px;
  background: #13131bcc; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--ivory); font: 600 13px/1.2 var(--font); white-space: nowrap; font-variant-numeric: tabular-nums; }
.console-rec i { display: flex; width: 16px; height: 16px; }
.console-rec i svg { width: 100%; height: 100%; }
.console-rec-stars i { color: var(--lime); }
.console-rec-stars.is-full { border-color: var(--lime); }
.console-rec-rank { color: var(--lime); }
.console-rec.is-quiet { color: var(--tx-lo); font-weight: 400; }
button.console-rec { min-height: 44px; cursor: pointer; transition: border-color .15s, transform .15s; }
button.console-rec:hover { border-color: var(--lime); transform: translateY(-1px); }
button.console-rec:active { transform: scale(.97); }
button.console-rec:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.console-rec-daily span { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; }
.console-rec-daily.is-here { border-color: var(--lime); background: var(--lime); color: var(--night); }
.console-rec-daily .console-rec-go { width: 14px; height: 14px; }
@media (max-width: 440px) {
  .console-rec { min-height: 32px; padding: 5px 10px; font-size: 12px; }
  button.console-rec { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { button.console-rec { transition: none; } }
/* the records centred on the video (the user, 2026-11-27: «centra esta información mejor con respecto al video»): the row keeps on its right
   the room the favourite star takes on its left, so its middle is the card's, whether or not the listen button shows */
@media (min-height: 501px) {   /* (a phone on its side keeps its own top corner: console.css, max-height 500) */
  .console-feature .console-feature-top { position: relative; }
  .console-feature .console-records, .console-feature:has(.console-listen:not([hidden])) .console-records {
    position: absolute; left: 0; right: 0; top: 16px; justify-content: center; padding: 0 80px; pointer-events: none; }
  .console-feature .console-records > * { pointer-events: auto; }
}
@media (min-height: 501px) and (max-width: 600px) { .console-feature .console-records, .console-feature:has(.console-listen:not([hidden])) .console-records { top: 12px; padding: 0 64px; } }
/* alone on a phone the layout already starts under the toolbar (its padding above), so an upright game takes no second toolbar's room: it
   sat 60 px lower and its bottom ran off the screen (the user, 2026-11-27: «cuando abro cualquier juego… el juego se ve recortado») */
@media (max-width: 600px), (max-width: 950px) and (max-height: 500px) {
  .console-page.has-console-mirror.is-console-solo .stage.is-docked:not(.is-land) .stage-frame { margin-top: 0; height: 100% !important; }
}
