/* «Кинокоды» (0.46, codes-game.js): the entry in «Игры» («Для компании»), the start dialog, the card — a board of
   posters over the whole window (the key in a captain's frames, the flips, the fingers), the clue, the lobby and the
   team podium. hall-game.css's .hg-* is the base; the team colours are this game's own. */
.cx-card, .cx-modal { --cx-red: #e5484d; --cx-blue: #3e8ef7; --cx-green: #30a46c; --cx-neutral: #c9b48c; --cx-fail: #15161a; }
.cx-entry-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.cx-entry-btn:hover { border-color: var(--muted); }
.cx-entry-ico { font-size: 24px; line-height: 1; }
.cx-entry-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cx-entry-text small { color: var(--muted); font-size: 12.5px; }
.cx-how { margin: 0 0 4px; padding-left: 20px; display: grid; gap: 4px; font-size: 13.5px; line-height: 1.4; color: var(--text); }
.cx-modal .hg-chip { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cx-modal .hg-chip small { font-size: 11.5px; color: var(--muted); font-weight: 400; }

/* The card: over the page (a board needs the window), centred; narrower for the lobby and the podium. */
.cx-card { background: #101218; position: fixed; inset: 12px; margin: auto; z-index: 1800; width: min(1180px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
.cx-card[data-phase="prep"], .cx-card[data-phase="podium"] { width: min(720px, calc(100vw - 24px)); }
.cx-card[data-phase="lead"]:not(:has(.cx-grid)) { width: min(560px, calc(100vw - 24px)); }
.cx-body { gap: 8px; }
.cx-card .hg-kicker { white-space: nowrap; }
.cx-card .hg-head .hg-step { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-pill { z-index: 1801; }

/* The play: the team panels left and right of the board (the agents left, the people, the clues so far — or the
   captain's clue box), the clue above it, the clock, what this viewer does under it. */
.cx-play { display: grid; grid-template-columns: 200px minmax(0, 1fr) 200px; grid-template-areas: "left mid right" "left bar right" "left board right" "left act right"; gap: 8px 14px; align-items: start; }
.cx-play > .cx-mid { grid-area: mid; } .cx-play > .cx-bar { grid-area: bar; } .cx-play > .cx-main { grid-area: board; } .cx-play > .cx-act { grid-area: act; }
.cx-side { --team: var(--muted); align-self: stretch; contain: size; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; border: 2px solid transparent; background: rgba(255, 255, 255, .035); min-width: 0; }
.cx-side.cx-red, .cx-side.cx-green { grid-area: left; } .cx-side.cx-blue, .cx-side.cx-clues { grid-area: right; }
.cx-side.cx-red { --team: var(--cx-red); } .cx-side.cx-blue { --team: var(--cx-blue); } .cx-side.cx-green { --team: var(--cx-green); } .cx-side.cx-clues { --team: var(--accent); }
.cx-side.cx-turn { border-color: var(--team); background: color-mix(in srgb, var(--team) 13%, transparent); }
.cx-shead { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 6px; }
.cx-tname { font-size: 14px; font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-left { grid-row: 1 / span 2; grid-column: 2; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--team); }
.cx-lefts { color: var(--muted); font-size: 11.5px; }
.cx-people { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.cx-people li { display: flex; align-items: center; gap: 7px; min-height: 30px; font-size: 13px; }
.cx-people li.away { opacity: .45; }
.cx-people .cx-face { width: 26px; height: 26px; font-size: 11px; }
.cx-people .cx-lname { font-size: 13px; }
.cx-key { font-size: 13px; }
.cx-side.cx-mine .cx-shead::after { content: ''; grid-column: 1; height: 3px; width: 26px; border-radius: 2px; background: var(--team); margin-top: 3px; }
.cx-mid { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 52px; } /* the same height whatever it holds: the board does not jump between the phases */
.cx-clue.cx-done { opacity: .5; box-shadow: none; }
.cx-clue { --team: var(--accent); display: inline-flex; align-items: center; gap: 12px; max-width: 100%; padding: 5px 6px 5px 18px; border-radius: 12px; background: #f4efe4; color: #15161a; border: 3px solid var(--team);
  font-size: clamp(18px, 2.6vw, 30px); font-weight: 900; letter-spacing: .05em; text-transform: uppercase; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.cx-clue.cx-red { --team: var(--cx-red); } .cx-clue.cx-blue { --team: var(--cx-blue); } .cx-clue.cx-green { --team: var(--cx-green); }
.cx-cword { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-cnum { flex: none; display: grid; place-items: center; min-width: 1.55em; height: 1.55em; border-radius: 10px; background: var(--team); color: #fff; font-size: .9em; letter-spacing: 0; }
.cx-slam { animation: cx-slam .6s cubic-bezier(.2, 1.4, .45, 1) both; }
@keyframes cx-slam { 0% { transform: scale(1.9) rotate(-3deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
.cx-wait { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--muted); }
.cx-wait span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-dots { display: inline-flex; gap: 3px; } .cx-dots b { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: cx-dot 1.2s infinite ease-in-out; }
.cx-dots b:nth-child(2) { animation-delay: .15s; } .cx-dots b:nth-child(3) { animation-delay: .3s; }
@keyframes cx-dot { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.cx-sum { --team: var(--muted); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; font-size: 14px; text-align: center; }
.cx-sum.cx-red { --team: var(--cx-red); } .cx-sum.cx-blue { --team: var(--cx-blue); } .cx-sum.cx-green { --team: var(--cx-green); }
.cx-sword { font-weight: 900; text-transform: uppercase; letter-spacing: .04em; color: var(--team); }
.cx-stext { font-weight: 700; }
.cx-sum small { flex-basis: 100%; color: var(--muted); font-size: 12.5px; }
.cx-marks { display: inline-flex; gap: 3px; }
.cx-mk { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; font-size: 11px; font-style: normal; font-weight: 900; background: rgba(255, 255, 255, .1); }
.cx-mk-agent { background: var(--cx-green); color: #fff; } .cx-mk-other { background: var(--bad); color: #fff; } .cx-mk-neutral { background: var(--cx-neutral); color: #15161a; } .cx-mk-fail { background: #000; }
.cx-bar { height: 4px; }
.cx-card.hg-hurry .cx-bar i { background: var(--bad); }

/* The board. */
.cx-main { display: flex; gap: 12px; align-items: flex-start; justify-content: center; min-width: 0; }
.cx-grid { display: grid; grid-template-columns: repeat(var(--side, 5), minmax(0, 1fr)); gap: var(--gap, 6px); flex: none; margin: 4px auto 2px; max-width: 100%; }
.cx-c { position: relative; aspect-ratio: 3 / 4; border-radius: 9px; container-type: inline-size; min-width: 0; }
.cx-pick { position: absolute; inset: 0; display: block; width: 100%; padding: 0; margin: 0; border: 0; border-radius: inherit; background: none; color: #fff; font: inherit; cursor: pointer; perspective: 800px; transition: transform .15s ease, box-shadow .15s ease; }
.cx-pick[aria-disabled="true"] { cursor: default; }
.cx-pick:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cx-in { position: absolute; inset: 0; border-radius: inherit; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3, 1.35, .5, 1); }
.cx-front, .cx-back { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: #1d212b; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.cx-front img, .cx-back img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.cx-back { transform: rotateY(180deg); display: grid; place-items: center; }
.cx-back img { position: absolute; inset: 0; opacity: .22; filter: grayscale(1) contrast(1.1); }
.cx-ico { position: relative; font-size: 34cqw; line-height: 1; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .45)); }
.cx-c.open .cx-in { transform: rotateY(180deg); }
.cx-c.open.cx-red .cx-back { background: var(--cx-red); } .cx-c.open.cx-blue .cx-back { background: var(--cx-blue); } .cx-c.open.cx-green .cx-back { background: var(--cx-green); }
.cx-c.open.cx-neutral .cx-back { background: var(--cx-neutral); } .cx-c.open.cx-fail .cx-back { background: var(--cx-fail); box-shadow: inset 0 0 0 3px var(--cx-red); }
.cx-t { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 16% 5px 5px; border-radius: 0 0 9px 9px; background: linear-gradient(transparent, rgba(0, 0, 0, .88) 55%);
  font-size: clamp(9px, 9.4cqw, 13.5px); line-height: 1.15; font-weight: 700; text-align: center; color: #fff; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; pointer-events: none; }
.cx-c.open .cx-t { background: linear-gradient(transparent, rgba(0, 0, 0, .55) 55%); }
.cx-c.open.cx-neutral .cx-t { color: #15161a; background: linear-gradient(transparent, rgba(255, 255, 255, .55) 55%); }
.cx-tag { position: absolute; top: 4px; right: 4px; z-index: 2; padding: 1px 3px; border-radius: 999px; background: rgba(0, 0, 0, .62); font-size: clamp(9px, 11cqw, 14px); line-height: 1.2; pointer-events: none; }
/* The key (a captain's copy, everybody's at the end): a frame of the colour and a tint. */
.cx-c.keyed { --k: var(--cx-neutral); }
.cx-c.cx-k-red { --k: var(--cx-red); } .cx-c.cx-k-blue { --k: var(--cx-blue); } .cx-c.cx-k-green { --k: var(--cx-green); } .cx-c.cx-k-fail { --k: #000; }
.cx-c.keyed .cx-front::after { content: ''; position: absolute; inset: 0; background: var(--k); opacity: .18; pointer-events: none; }
.cx-c.keyed::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: 9px; box-shadow: inset 0 0 0 4px var(--k); pointer-events: none; }
.cx-c.cx-k-neutral::after { box-shadow: inset 0 0 0 2px var(--k); }
.cx-c.cx-k-fail::after { box-shadow: inset 0 0 0 4px #000, inset 0 0 0 6px var(--cx-red); }
.cx-c.cx-k-fail .cx-front img { filter: grayscale(.7) brightness(.7); }
.cx-card[data-phase="over"] .cx-c.keyed .cx-front img { filter: saturate(.55) brightness(.75); }
/* Fingers: the faces of who points at a card; a spectator's ghost. */
.cx-fingers { position: absolute; top: -7px; left: -5px; z-index: 4; display: flex; pointer-events: none; }
.cx-face { position: relative; flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; background: #2a2f3b; color: var(--text); font-size: 13px; font-weight: 700; }
.cx-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cx-face i { font-style: normal; }
.cx-fing { width: 27px; height: 27px; font-size: 12px; box-shadow: 0 0 0 2px var(--accent), 0 2px 6px rgba(0, 0, 0, .5); }
.cx-fing + .cx-fing { margin-left: -9px; }
.cx-fing.ghost { opacity: .55; box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); filter: grayscale(.6); }
.cx-more { align-self: center; margin-left: 3px; padding: 0 4px; border-radius: 6px; background: rgba(0, 0, 0, .7); font-size: 11px; font-weight: 700; }
.cx-c.pointed .cx-pick { box-shadow: 0 0 0 3px var(--accent); transform: translateY(-3px); }
.cx-c.mine .cx-pick { box-shadow: 0 0 0 4px var(--accent); }
.cx-c.ghosted .cx-pick { box-shadow: 0 0 0 2px rgba(255, 255, 255, .45); }
.cx-open { position: absolute; left: 50%; bottom: 24%; z-index: 5; transform: translateX(-50%); min-height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--accent); color: #111; font: inherit; font-size: 13.5px; font-weight: 800; white-space: nowrap; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .45); }
.cx-open:disabled { opacity: .6; cursor: default; }
/* Motion: the deal, a flip, the key turning up at the end. */
.cx-grid.cx-deal .cx-c { animation: cx-deal .5s calc(var(--i, 0) * 26ms) cubic-bezier(.2, .8, .3, 1.15) both; }
@keyframes cx-deal { from { opacity: 0; transform: translateY(22px) scale(.82) rotate(-5deg); } }
.cx-c.cx-flip .cx-in { animation: cx-flip .8s cubic-bezier(.25, .9, .35, 1.15) both; }
@keyframes cx-flip { 0% { transform: rotateY(0) scale(1); } 45% { transform: rotateY(95deg) scale(1.16); } 100% { transform: rotateY(180deg) scale(1); } }
.cx-c.cx-flip.cx-fail { animation: cx-shake .5s .45s both; }
.cx-c.cx-flip.cx-fail .cx-ico { animation: cx-boom .7s .4s both; }
@keyframes cx-shake { 0%, 100% { transform: none; } 20% { transform: translate(-4px, 2px) rotate(-2deg); } 40% { transform: translate(4px, -2px) rotate(2deg); } 60% { transform: translate(-3px, 1px); } 80% { transform: translate(2px, -1px); } }
@keyframes cx-boom { 0% { transform: scale(.3); } 55% { transform: scale(1.5); } 100% { transform: none; } }
.cx-grid.cx-reveal .cx-c.keyed { animation: cx-pop .5s calc(var(--i, 0) * 45ms) both; }
.cx-grid.cx-reveal .cx-c.keyed::after { animation: cx-fade .5s calc(var(--i, 0) * 45ms) both; }
@keyframes cx-pop { 40% { transform: scale(1.09); } }
@keyframes cx-fade { from { opacity: 0; } }
.cx-grid.cx-tiny .cx-t { display: none; }
.cx-grid.cx-tiny .cx-c.cx-peek .cx-t { display: -webkit-box; }
.cx-grid.cx-small .cx-fing { width: 20px; height: 20px; font-size: 10px; }
.cx-grid.cx-small .cx-fing + .cx-fing { margin-left: -11px; }
.cx-grid.cx-small .cx-tag { top: 2px; right: 2px; }
/* The clues so far, in the team's panel. */
.cx-log { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.cx-log li { --team: var(--muted); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 6px; align-items: center; padding: 5px 7px; border-radius: 8px; background: rgba(255, 255, 255, .05); border-left: 3px solid var(--team); }
.cx-log li.cx-red { --team: var(--cx-red); } .cx-log li.cx-blue { --team: var(--cx-blue); } .cx-log li.cx-green { --team: var(--cx-green); }
.cx-log b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; letter-spacing: .03em; }
.cx-log .cx-marks { grid-column: 1 / -1; }
.cx-log .cx-mk { width: 15px; height: 15px; font-size: 9px; }
.cx-hacts { display: flex; gap: 6px; margin-left: auto; }
.cx-hacts .hg-btn { min-height: 34px; padding: 0 10px; font-size: 12.5px; }
.cx-hacts + .hg-min { margin-left: 0; }
.cx-hacts .cx-start { min-height: 34px; padding: 0 14px; font-size: 13.5px; }

/* Under the board: what this viewer does. */
.cx-act { display: flex; justify-content: center; align-items: center; min-height: 40px; }
.cx-hint { margin: 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.cx-go { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; width: 100%; }
.cx-pnote { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; color: var(--text); }
.cx-pt { font-weight: 700; }
.cx-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cx-open-m, .cx-start, .cx-send { min-height: 44px; padding: 0 22px; border-radius: 11px; border: 0; background: var(--accent); color: #111; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.cx-open-m:disabled, .cx-start:disabled, .cx-send:disabled { opacity: .5; cursor: default; }
.cx-stop:disabled { opacity: .45; cursor: default; }
.cx-err { color: var(--bad); font-size: 13px; font-weight: 600; }
.cx-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; width: 100%; max-width: 680px; margin: 0 auto; }
.cx-side .cx-form { gap: 7px; }
.cx-side .cx-frow { flex-direction: column; align-items: stretch; gap: 4px; }
.cx-side .cx-word { font-size: 17px; padding: 0 10px; }
.cx-side .cx-nums { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cx-side .cx-fend { flex-direction: column; align-items: stretch; gap: 6px; }
.cx-side .cx-fend .cx-err { margin: 0; }
.cx-frow { display: flex; align-items: center; gap: 10px; }
.cx-flabel { flex: none; font-size: 13px; font-weight: 700; color: var(--muted); }
.cx-word { flex: 1; width: 100%; min-width: 0; box-sizing: border-box; min-height: 46px; padding: 0 14px; border-radius: 11px; border: 2px solid var(--line); background: #0b0d12; color: var(--text); font: inherit; font-size: 20px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.cx-word:focus { outline: none; border-color: var(--accent); }
.cx-word::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.cx-nums { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 5px; }
.cx-num { min-height: 40px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.cx-num[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: #111; }
.cx-fend { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.cx-fend .cx-err { margin-right: auto; }
.cx-rule { color: var(--muted); font-size: 12px; }

/* The lobby. */
.cx-lobby { display: grid; gap: 10px; }
.cx-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cx-cols.cx-one { grid-template-columns: minmax(0, 1fr); }
.cx-col { --team: var(--muted); border-radius: 12px; border: 2px solid color-mix(in srgb, var(--team) 55%, transparent); background: color-mix(in srgb, var(--team) 9%, transparent); padding: 8px; min-width: 0; }
.cx-col.cx-red { --team: var(--cx-red); } .cx-col.cx-blue { --team: var(--cx-blue); } .cx-col.cx-green { --team: var(--cx-green); }
.cx-chead { display: flex; align-items: center; gap: 6px; font-size: 15px; margin-bottom: 6px; }
.cx-chead small { margin-left: auto; color: var(--muted); }
.cx-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.cx-col li { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 3px 4px; border-radius: 9px; }
.cx-col li.me { background: rgba(255, 255, 255, .06); }
.cx-lname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.cx-lname small { color: var(--muted); }
.cx-vol { color: var(--accent); font-size: 15px; }
.cx-move { flex: none; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 16px; cursor: pointer; }
.cx-empty { color: var(--muted); font-size: 13px; justify-content: center; }
.cx-lrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.cx-capt[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.cx-card .gseat { margin: 0; }

/* The lead, the end, the podium. */
.cx-leadline { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; font-size: 17px; }
.cx-leadline small { color: var(--muted); font-size: 13px; }
.cx-caps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cx-cap { --team: var(--muted); display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: color-mix(in srgb, var(--team) 18%, transparent); font-size: 13.5px; }
.cx-cap.cx-red { --team: var(--cx-red); } .cx-cap.cx-blue { --team: var(--cx-blue); } .cx-cap.cx-green { --team: var(--cx-green); }
.cx-cap small { color: var(--muted); }
.cx-you { color: var(--accent); font-size: 13px; }
.cx-over { --team: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--team) 24%, #101218); text-align: center; animation: cx-slam .6s cubic-bezier(.2, 1.4, .45, 1) both; }
.cx-over.cx-red { --team: var(--cx-red); } .cx-over.cx-blue { --team: var(--cx-blue); } .cx-over.cx-green { --team: var(--cx-green); } .cx-over.cx-lost { --team: #555; }
.cx-over b { font-size: clamp(19px, 2.6vw, 26px); font-weight: 900; }
.cx-over small { color: var(--text); opacity: .85; font-size: 13.5px; }
.cx-podium { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cx-podium.cx-one { grid-template-columns: minmax(0, 340px); justify-content: center; }
.cx-podium .cx-step { gap: 5px; }
.cx-found { font-size: 13px; font-weight: 700; }
.cx-step.cx-red { box-shadow: inset 0 3px 0 var(--cx-red); } .cx-step.cx-blue { box-shadow: inset 0 3px 0 var(--cx-blue); } .cx-step.cx-green { box-shadow: inset 0 3px 0 var(--cx-green); }
.cx-step.me.cx-red, .cx-step.me.cx-blue, .cx-step.me.cx-green { outline: 2px solid var(--accent); outline-offset: -2px; }
.cx-faces { display: flex; flex-wrap: wrap; justify-content: center; }
.cx-faces .cx-face { width: 28px; height: 28px; font-size: 12px; box-shadow: 0 0 0 2px #101218; }
.cx-faces .cx-face + .cx-face { margin-left: -6px; }
.cx-faces .cx-capf { box-shadow: 0 0 0 2px var(--accent); }
.cx-pnames { max-width: 100%; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.cx-extra { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 11px; background: rgba(255, 255, 255, .05); min-width: 0; }
.cx-xk { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.cx-extra b { font-size: 16px; text-transform: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-extra small { color: var(--muted); font-size: 12.5px; }
.cx-deal { padding: 26px 12px; }

@media (max-width: 760px) {
  .cx-card { inset: auto 0 0 0; width: 100%; max-height: calc(100vh - 4px); max-height: calc(100dvh - 4px); padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
  .cx-card[data-phase="prep"], .cx-card[data-phase="podium"], .cx-card[data-phase="lead"] { width: 100%; }
  .cx-play { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "left right" "mid mid" "bar bar" "board board" "act act"; gap: 6px 8px; }
  .cx-side { contain: none; overflow: visible; padding: 5px 9px; gap: 0; }
  .cx-side .cx-people, .cx-side .cx-log { display: none; }
  .cx-left { font-size: 22px; } .cx-tname { font-size: 13px; }
  .cx-clue { font-size: 20px; padding-left: 14px; }
  .cx-c { border-radius: 7px; } .cx-t { border-radius: 0 0 7px 7px; }
  .cx-c.keyed::after { border-radius: 7px; box-shadow: inset 0 0 0 3px var(--k); }
  .cx-nums { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cx-num { min-height: 44px; }
  .cx-move { width: 44px; height: 44px; }
  .cx-card[data-role="captain"][data-phase="clue"] .cx-act { position: sticky; bottom: calc(-10px - env(safe-area-inset-bottom, 0px)); z-index: 6; margin: 0 -10px -10px; padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px)); background: #101218; border-top: 1px solid var(--line); border-radius: 14px 14px 0 0; box-shadow: 0 -12px 24px rgba(0, 0, 0, .45); }
  .cx-frow { flex-direction: column; align-items: stretch; gap: 4px; }
  .cx-extras { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .cx-in, .cx-pick { transition: none; }
  .cx-c.cx-flip .cx-in, .cx-c.cx-flip.cx-fail, .cx-c.cx-flip.cx-fail .cx-ico, .cx-grid.cx-deal .cx-c, .cx-grid.cx-reveal .cx-c.keyed, .cx-grid.cx-reveal .cx-c.keyed::after, .cx-slam, .cx-over, .cx-dots b { animation: none; }
}
.cx-card.cx-still .cx-in { transition: none; }
/* 0.66 «как играть»: the 20 s lead — the rules and one example above the board; the captain's «+30 с» */
.cx-howto { gap: 8px; max-width: 560px; margin: 0 auto; }
.cx-howto .cx-how { text-align: left; }
.cx-example { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); text-align: left; font-size: 13.5px; line-height: 1.4; }
.cx-example small { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
.cx-more-time { min-height: 44px; padding: 6px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: inherit; font: inherit; font-weight: 700; cursor: pointer; margin-right: 6px; }
.cx-more-time:disabled { opacity: .5; cursor: default; }
