/* Инженерный отдел (Factory Director): Конструктор → Четыре бригады.
   Подключать после общего app.css Фабрики: используются переменные палитры и базовые стили экрана игры.
   Экран фиксирован по высоте доступной области (панели Telegram учтены), вертикальной прокрутки нет. */

/* Серебряный переливающийся фон уровня Factory Director: чертёж инженерного отдела поверх сетки. */
.game-screen[data-game="cipher"] {
  background-color: #E9EDF3;
  background-image: url('assets/cipher-blueprint-background.svg'),
    radial-gradient(40% 30% at 16% 18%, rgba(187,198,213,.55), transparent 70%),
    radial-gradient(44% 34% at 86% 68%, rgba(106,144,255,.16), transparent 70%),
    radial-gradient(34% 26% at 72% 10%, rgba(174,182,240,.28), transparent 70%),
    linear-gradient(200deg, #F4F6FA 0%, #E6EAF1 40%, #D6DDE7 75%, #EBEEF3 100%);
  background-size: cover, 160% 160%, 160% 160%, 160% 160%, 100% 100%;
  background-repeat: no-repeat;
  background-position: center top, 0% 0%, 100% 100%, 50% 0%, 0 0;
  animation: cy-shimmer 18s ease-in-out infinite alternate;
  /* Шестерня выступает за край экрана: обрезаем по горизонтали, чтобы страница не сдвигалась вбок. */
  overflow-x: clip;
}
@keyframes cy-shimmer { to { background-position: center top, 55% 45%, 30% 60%, 15% 40%, 0 0; } }
.game-screen[data-game="cipher"] .game-eyebrow, .game-screen[data-game="cipher"] .game-status { display: none; }
.game-screen[data-game="cipher"] .game-info { background: var(--accent); color: #FCFDFF; border: 0; }

.cipher-game {
  --cy-ink: #10141C; --cy-muted: #575D6B; --cy-surface: #FCFDFF; --cy-blue: #6A90FF; --cy-blue-soft: #EEF3FF;
  --cy-blue-dash: #9DB4FF; --cy-steel: #BBC6D5; --cy-steel-2: #AEB9CA; --cy-line: #DDE2EA;
  --cy-ok: #1F7A45; --cy-ok-led: #2FA564; --cy-bad: #B42323; --cy-bad-led: #E05252;
  position: relative; display: flex; flex-direction: column; width: 100%; max-width: 36rem; height: 100%; min-height: 0; margin: 0 auto;
  color: var(--cy-ink); font-family: Montserrat, sans-serif;
}
.cy-gear { position: absolute; right: -62px; top: 44%; z-index: 0; pointer-events: none; fill: none; stroke: #C9D1DD; animation: cy-spin 34s linear infinite; }
.cy-gear circle:first-child { stroke: #D0D7E2; }
@keyframes cy-spin { to { transform: rotate(360deg); } }
.cy-host { position: relative; z-index: 1; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cy-stage { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; }

/* Плашка задания: общий синий цвет всех игр, весь текст белый. */
.cy-task { flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 14px; border-radius: 26px; background: var(--cy-blue); color: #FCFDFF; }
.cy-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.cy-title { font-size: 22px; font-weight: 500; line-height: 1.25; }
.cy-task-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 2px; }
.cy-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.cy-foot-label { font-size: 12px; font-weight: 600; }
.cy-progress { display: inline-block; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.cy-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--cy-muted); }
.cy-msg { flex-shrink: 0; min-height: 18px; font-size: 13px; font-weight: 600; line-height: 18px; text-align: center; color: #3B4252; }
.cy-msg[data-kind="ok"] { color: var(--cy-ok); }
.cy-msg[data-kind="bad"] { color: var(--cy-bad); }

.cy-actions { flex-shrink: 0; display: flex; gap: 8px; }
.cy-btn { height: 48px; box-sizing: border-box; padding: 0 10px; border-radius: 14px; font: 600 14px/1.1 Montserrat, sans-serif; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .25s, color .25s, border-color .25s, opacity .25s, scale .15s ease; }
.cy-btn:active:not(:disabled) { scale: .97; }
.cy-btn-outline { flex: 1 1 0; border: 1.5px solid var(--cy-ink); background: rgba(252,253,255,.5); color: var(--cy-ink); }
.cy-btn-outline:disabled { opacity: .45; cursor: default; }
.cy-btn-outline svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cy-btn-main { flex: 1.4 1 0; border: none; background: var(--cy-ink); color: #FCFDFF; }
.cy-btn-main:disabled { background: #C9D0DC; color: #3B4252; cursor: default; }
.cy-actions-3 .cy-btn-main { flex: 1.2 1 0; }
.cy-btn:focus-visible, .cy-chip:focus-visible, .cy-piece:focus-visible, .cy-tile:focus-visible, .cy-say:focus-visible { outline: 2px solid var(--cy-blue); outline-offset: 2px; }

/* ---------- Конструктор ---------- */
.cy-pills { display: flex; align-items: center; gap: 8px; }
.cy-pill { height: 20px; box-sizing: border-box; padding: 0 7px; border-radius: 10px; border: 1.5px solid rgba(252,253,255,.85); display: flex; align-items: center; gap: 3px; overflow: hidden; }
.cy-pill i { flex-shrink: 0; width: 6px; height: 6px; border-radius: 3px; background: #FCFDFF; }

.cy-bench { flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; }
.cy-rail { position: relative; min-height: 76px; box-sizing: border-box; padding: 12px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: rgba(252,253,255,.6); border: 2px dashed var(--cy-steel-2); transition: border-color .25s, background-color .25s, box-shadow .3s; }
.cy-rail.has-build { background: var(--cy-surface); border: 2px solid var(--cy-steel); }
.cy-rail.is-bad { border-color: var(--cy-bad-led); box-shadow: 0 0 0 3px rgba(224,82,82,.16); }
.cy-rail-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 16px; font-size: 13px; font-weight: 600; color: var(--cy-muted); text-align: center; pointer-events: none; transition: opacity .25s ease .05s; }
.cy-rail.has-build .cy-rail-hint { opacity: 0; transition-delay: 0s; }
.cy-build { display: flex; align-items: stretch; max-width: 100%; }
.cy-piece { position: relative; height: 50px; box-sizing: border-box; margin: 0; padding: 0 12px; font: 700 22px/1 Montserrat, sans-serif; color: var(--cy-ink); background: var(--cy-blue-soft); border: 2px solid var(--cy-blue); border-left: 1.5px dashed var(--cy-blue-dash); border-right: none; border-radius: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .3s, border-color .3s, color .3s, padding .32s cubic-bezier(.2,.8,.2,1); }
.cy-piece:first-child { border-left: 2px solid var(--cy-blue); border-radius: 12px 0 0 12px; }
.cy-piece:last-child { border-right: 2px solid var(--cy-blue); border-radius: 0 12px 12px 0; }
.cy-piece:only-child { border-radius: 12px; }
.cy-build:has(.cy-piece:nth-child(5)) .cy-piece { padding: 0 8px; font-size: 19px; }
.cy-rail.is-joined .cy-piece { padding: 0 .5px; background: #EAF6EF; border-color: var(--cy-ok-led); border-left-color: transparent; }
.cy-rail.is-joined .cy-piece:first-child { padding-left: 14px; }
.cy-rail.is-joined .cy-piece:last-child { padding-right: 14px; }
.cy-rail.is-joined .cy-piece:first-child { border-left-color: var(--cy-ok-led); }
.cy-rail.is-joined { border-color: var(--cy-ok-led); box-shadow: 0 0 0 3px rgba(47,165,100,.16); }

.cy-parts { flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; }
.cy-pool { display: flex; flex-wrap: wrap; gap: 10px; }
.cy-chip { position: relative; height: 52px; min-width: 56px; box-sizing: border-box; margin: 0; padding: 0 18px; border-radius: 12px; font: 700 18px/1 Montserrat, sans-serif; display: flex; align-items: center; justify-content: center; background: var(--cy-surface); border: 1px solid #D3D9E3; box-shadow: 0 2px 0 #CBD2DD; color: var(--cy-ink); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .25s, border-color .25s, box-shadow .25s, color .25s, opacity .35s; }
.cy-chip:active:not(.is-used) { box-shadow: 0 0 0 #CBD2DD; translate: 0 2px; }
.cy-pin { position: absolute; top: 50%; width: 8px; height: 14px; margin-top: -7px; box-sizing: border-box; background: var(--cy-steel); transition: background-color .25s; }
.cy-pin-l { left: -4px; border-radius: 0 7px 7px 0; }
.cy-pin-r { right: -4px; border-radius: 7px 0 0 7px; }
.cy-chip.is-used { background: transparent; border: 1.5px dashed var(--cy-steel); box-shadow: none; color: #9AA3B5; cursor: default; }
.cy-chip.is-used .cy-pin { background: transparent; }
.cy-chip.is-spent { opacity: .45; }

.cy-collected { position: relative; flex: 1; min-height: 72px; display: flex; flex-direction: column; gap: 8px; }
.cy-label-row { display: flex; align-items: center; justify-content: space-between; }
.cy-count { display: inline-block; font-size: 12px; font-weight: 700; color: var(--cy-muted); font-variant-numeric: tabular-nums; }
.cy-list { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 2px 2px 6px; margin: -2px -2px 0; -webkit-mask-image: linear-gradient(#000 calc(100% - 14px), transparent); mask-image: linear-gradient(#000 calc(100% - 14px), transparent); }
.cy-list::-webkit-scrollbar { display: none; }
.cy-empty { padding: 10px 2px; font-size: 12px; font-weight: 500; color: var(--cy-muted); transition: opacity .3s; }
.cy-list.has-cards .cy-empty { display: none; }
.cy-card { flex-shrink: 0; min-height: 60px; box-sizing: border-box; padding: 8px 8px 8px 16px; border-radius: 16px; background: var(--cy-surface); border: 1px solid var(--cy-line); box-shadow: 0 2px 8px rgba(40,50,80,.06); display: flex; align-items: center; gap: 10px; overflow: hidden; }
.cy-card-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cy-card-word { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.cy-card-ru { font-size: 13px; font-weight: 500; color: var(--cy-muted); overflow-wrap: anywhere; }
.cy-card.is-pending .cy-card-word, .cy-card.is-pending .cy-card-ru, .cy-card.is-pending .cy-say { opacity: 0; }
.cy-card:not(.is-pending) .cy-card-ru { animation: cy-reveal .45s ease .12s both; }
.cy-card:not(.is-pending) .cy-say { animation: cy-pop .4s cubic-bezier(.34,1.45,.64,1) .2s both; }
@keyframes cy-reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes cy-pop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
.cy-say { flex-shrink: 0; width: 44px; height: 44px; border-radius: 22px; border: 1.5px solid #D8DCF0; background: var(--cy-surface); color: #4F6FE8; display: flex; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color .2s, background-color .2s; }
.cy-say svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cy-say.is-playing { border-color: var(--cy-blue); background: var(--cy-blue-soft); }
.cy-say.is-playing svg path + path { animation: cy-wave .9s ease-out; }
@keyframes cy-wave { 0% { opacity: .2; } 60% { opacity: 1; } }

/* ---------- Четыре бригады ---------- */
.cy-helmets { display: flex; gap: 4px; }
.cy-helmet { width: 20px; height: 15px; overflow: visible; transform-origin: 50% 90%; }
.cy-helmet path, .cy-helmet rect { fill: #FCFDFF; stroke: #FCFDFF; stroke-width: 1.5; stroke-linejoin: round; transition: fill .35s ease .15s; }
.cy-helmet.is-lost path, .cy-helmet.is-lost rect { fill: transparent; }

.cy-board { position: relative; flex-shrink: 0; display: flex; flex-direction: column; padding: 10px 10px 0; border-radius: 20px; background: var(--cy-surface); border: 2px solid var(--cy-steel); box-shadow: 0 6px 18px rgba(60,75,100,.10); }
.cy-board-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 8px; }
.cy-picked { display: inline-block; font-size: 11px; font-weight: 600; color: var(--cy-muted); font-variant-numeric: tabular-nums; }
.cy-plan { display: flex; flex-direction: column; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid #E1E6EE; background: radial-gradient(circle, rgba(130,145,170,.28) 1px, transparent 1.4px) 0 0 / 16px 16px, #F5F7FA; }
.cy-rows { display: flex; flex-direction: column; gap: 8px; }
.cy-rows:empty { display: none; }
.cy-row { display: flex; flex-direction: column; gap: 4px; padding: 0 2px 8px; border-radius: 10px; border-bottom: 2px dashed var(--cy-steel); }
.cy-row-head { display: flex; align-items: center; gap: 6px; min-height: 20px; }
.cy-row-head .cy-helmet { width: 18px; height: 14px; }
.cy-row-head .cy-helmet path, .cy-row-head .cy-helmet rect { fill: none; stroke: var(--cy-ink); stroke-width: 1.6; }
.cy-row-name { flex: 1; min-width: 0; font-size: 12px; font-weight: 700; letter-spacing: .05em; overflow-wrap: anywhere; }
.cy-row-badge { flex-shrink: 0; height: 20px; box-sizing: border-box; padding: 0 9px; border-radius: 10px; background: var(--cy-blue); color: #FCFDFF; display: flex; align-items: center; font-size: 11px; font-weight: 700; }
.cy-row.is-revealed .cy-row-badge { background: transparent; color: var(--cy-muted); border: 1.5px solid var(--cy-steel); }
.cy-row.is-revealed .cy-row-name { color: var(--cy-muted); }
.cy-row-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.cy-card-pin { position: relative; height: 34px; box-sizing: border-box; padding: 4px 4px 0; border-radius: 7px; background: var(--cy-surface); border: 1px solid var(--cy-line); box-shadow: 0 1px 2px rgba(16,20,28,.08); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.cy-card-pin > i { position: absolute; left: 50%; top: -4px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 5px; background: var(--cy-ink); }
.cy-row.is-revealed .cy-card-pin { background: #F1F3F7; color: #3B4252; }
.cy-row.is-revealed .cy-card-pin > i { background: #9AA3B5; }
.cy-card-pin.is-pending { visibility: hidden; }
.cy-word { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-align: center; overflow-wrap: normal; line-height: 1.1; }

.cy-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding-top: 4px; }
.cy-grid:empty { display: none; }
.cy-tile { position: relative; height: 58px; box-sizing: border-box; margin: 0; padding: 6px 4px 0; border-radius: 8px; font: 700 14px/1.15 Montserrat, sans-serif; color: var(--cy-ink); background: var(--cy-surface); border: 1px solid var(--cy-line); box-shadow: 0 2px 3px rgba(16,20,28,.08); display: flex; align-items: center; justify-content: center; min-width: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
  rotate: var(--tilt, 0deg); translate: 0 0;
  transition: rotate .4s cubic-bezier(.2,.8,.2,1), translate .28s cubic-bezier(.34,1.45,.64,1), box-shadow .2s ease, background-color .2s ease, border-color .2s ease, opacity .3s; }
.cy-magnet { position: absolute; left: 50%; top: -5px; width: 12px; height: 12px; margin-left: -6px; border-radius: 6px; box-sizing: border-box; background: var(--cy-steel); border: 2px solid #FCFDFF; box-shadow: 0 0 0 1px var(--cy-steel-2); transition: background-color .2s, box-shadow .2s; }
.cy-tile.is-on { rotate: 0deg; translate: 0 -3px; background: var(--cy-blue-soft); border: 2px solid var(--cy-blue); box-shadow: 0 8px 14px rgba(60,90,180,.18); }
.cy-tile.is-on .cy-magnet { background: var(--cy-blue); box-shadow: 0 0 0 1px var(--cy-blue); }
.cy-tile.is-wrong { border-color: var(--cy-bad-led); background: #FFF3F3; }
.cy-tile.is-wrong .cy-magnet { background: var(--cy-bad-led); box-shadow: 0 0 0 1px var(--cy-bad-led); }
.cy-tray { height: 16px; margin: 6px 22px 0; box-sizing: border-box; border-radius: 6px 6px 0 0; background: #E6EAF0; border: 1px solid #D3DAE4; border-bottom: none; display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.cy-tray i { width: 54px; height: 7px; border-radius: 4px; background: var(--cy-blue); }
.cy-tray i + i { width: 34px; height: 9px; border-radius: 3px; background: var(--cy-steel); }
.cy-spacer { flex: 1; min-height: 0; }

.cy-stage.is-over .cy-grid, .cy-stage.is-over .cy-pool, .cy-stage.is-over .cy-rail { pointer-events: none; }
.cy-stage.is-over .cy-pool { opacity: .6; filter: saturate(.6); transition: opacity .4s, filter .4s; }

/* Копии, которые перелетают между местами; JS задаёт позицию от левого верхнего угла сцены. */
.cy-ghost { position: absolute !important; z-index: 20; margin: 0 !important; pointer-events: none; will-change: transform; translate: none !important; rotate: none !important; box-sizing: border-box; }
.cy-word-ghost { display: flex; align-items: center; justify-content: flex-start; padding: 0 6px; border-radius: 10px; background: #EAF6EF; color: var(--cy-ink); font: 700 22px/1 Montserrat, sans-serif; white-space: nowrap; overflow: visible; box-shadow: 0 10px 22px rgba(40,50,80,.18); }
.cy-piece-ghost { border-radius: 12px !important; border: 2px solid var(--cy-blue) !important; }
.cy-tile-ghost { box-shadow: 0 12px 22px rgba(40,60,120,.22) !important; }

/* ---------- Объявление этапа ---------- */
.cy-announce { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: rgba(233,237,243,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.cy-announce[hidden] { display: none; }
.cy-announce-card { width: min(100%, 20rem); box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 18px; border-radius: 26px; background: var(--cy-blue); color: #FCFDFF; box-shadow: 0 18px 40px rgba(60,80,150,.25); }
.cy-announce-step { font-size: 11px; font-weight: 700; letter-spacing: .08em; opacity: .9; }
.cy-announce-name { font-size: 24px; font-weight: 700; line-height: 1.2; }
.cy-announce-rule { font-size: 14px; font-weight: 500; line-height: 1.35; }
.cy-announce-bar { position: relative; height: 4px; margin-top: 6px; border-radius: 2px; background: rgba(252,253,255,.3); overflow: hidden; }
.cy-announce-bar i { position: absolute; inset: 0; border-radius: 2px; background: #FCFDFF; transform-origin: 0 50%; transform: scaleX(0); }

/* Узкие по высоте экраны (Telegram с панелями): компактнее, но всё помещается без прокрутки. */
@media (max-height: 760px) {
  .cy-stage { gap: 10px; }
  .cy-task { gap: 6px; padding: 12px 16px 12px; border-radius: 22px; }
  .cy-title { font-size: 18px; }
  .cy-rail { min-height: 64px; padding: 8px; }
  .cy-piece { height: 44px; font-size: 20px; }
  .cy-chip { height: 46px; padding: 0 15px; font-size: 17px; }
  .cy-pool { gap: 8px; }
  .cy-btn { height: 44px; }
  .cy-tile { height: 52px; }
  .cy-card { min-height: 52px; padding: 6px 6px 6px 14px; }
  .cy-card-word { font-size: 16px; }
}
@media (max-height: 660px) {
  .cy-title { font-size: 16px; }
  .cy-eyebrow { display: none; }
  .cy-rail { min-height: 58px; }
  .cy-piece { height: 40px; font-size: 18px; padding: 0 9px; }
  .cy-chip { height: 42px; padding: 0 13px; font-size: 16px; }
  .cy-tile { height: 46px; font-size: 13px; }
  .cy-row-cards { gap: 4px; }
  .cy-card-pin { height: 32px; }
  .cy-plan { gap: 8px; padding: 8px; }
  .cy-rows { gap: 8px; }
  .cy-row { padding-bottom: 8px; }
}
@media (max-width: 360px) {
  .cy-chip { padding: 0 13px; min-width: 48px; }
  .cy-actions-3 .cy-btn { font-size: 13px; padding: 0 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .game-screen[data-game="cipher"] { animation: none; }
  .cipher-game *, .cipher-game *::before, .cipher-game *::after { animation: none !important; transition: none !important; }
}

/* Fit the actual application header and Telegram insets, not a standalone preview. */
.game-screen[data-game="cipher"] {
  overflow: hidden;
  padding-inline: max(16px, var(--app-safe-left)) max(16px, var(--app-safe-right));
  padding-bottom: calc(12px + var(--app-safe-bottom));
}
.game-screen[data-game="cipher"] .game-header { height: 64px; gap: 6px; }
.game-screen[data-game="cipher"] .game-header > p { min-width: 0; font-size: 12px; line-height: 1.3; }
.game-screen[data-game="cipher"] .timer-badge { min-width: 68px; flex-shrink: 0; background: var(--accent); color: #FCFDFF; border: 0; }
.game-screen[data-game="cipher"] .game-dom { flex: 1 1 0; min-height: 0; container-type: size; }
.game-card[data-game="cipher"]::before {
  background-image: linear-gradient(120deg,#F4F6FA,#D6DDE7 65%,#EBEEF3);
  background-position: center;
  animation: none;
  transform: none;
  will-change: auto;
}
.cy-pool { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.cy-chip { min-width: 0; padding-inline: 4px; font-size: clamp(13px,3.8vw,18px); }
.cy-piece { min-width: 0; flex-shrink: 1; padding-inline: 7px; font-size: clamp(14px,4.6vw,22px); overflow-wrap: anywhere; }
.cy-build { width: 100%; justify-content: center; }
.cy-msg { font-size: 12px; line-height: 16px; min-height: 32px; }
@container (max-height: 580px) {
  .cy-stage { gap: 8px; }
  .cy-task { gap: 6px; padding: 12px 14px; border-radius: 20px; }
  .cy-eyebrow { display: none; }
  .cy-title { font-size: 17px; }
  .cy-bench { gap: 6px; }
  .cy-rail { min-height: 56px; padding: 6px; }
  .cy-piece { height: 40px; }
  .cy-chip { height: 42px; }
  .cy-pool { gap: 8px; }
  .cy-btn { height: 44px; font-size: 13px; }
  .cy-board { padding: 8px 8px 0; }
  .cy-tile { height: 46px; }
  .cy-plan { padding: 8px; gap: 8px; }
  .cy-row { gap: 3px; padding-bottom: 5px; }
  .cy-row-cards { gap: 4px; }
  .cy-card-pin { height: 29px; }
  .cy-rows { gap: 6px; }
  .cy-collected { min-height: 62px; }
}
@container (max-height: 480px) {
  .cy-stage { gap: 6px; }
  .cy-title { font-size: 15px; }
  .cy-task { padding: 10px 12px; }
  .cy-tile { height: 40px; }
  .cy-board-head { padding-bottom: 6px; }
  .cy-grid { gap: 7px; }
  .cy-tray { height: 10px; margin-top: 4px; }
  .cy-chip { height: 36px; }
  .cy-rail { min-height: 48px; }
  .cy-piece { height: 34px; }
  .cy-collected { min-height: 54px; }
  .cy-card-pin { height: 26px; }
  .cy-row-head { min-height: 16px; }
  .cy-row-name { font-size: 10px; }
  .cy-row-badge { height: 17px; font-size: 10px; }
  .cy-rows { gap: 4px; }
}
