/* «Бункер» (0.46, bunker-game.js): its entry in «Игры» («Для компании»), the start dialog and what the card adds to the
   hall game's (hall-game.css gives the card, the countdown and the podium; who-game.css the faces, the vote's buttons and
   the stacks of votes; write-games.css the «Играю / Смотрю» buttons). Motion makes the moments land — the trailer, the
   dossier dealt, the door closing on the exile, the epilogue told sentence by sentence — and stays off for reduced motion
   and for a repaint of the same moment (.bunk-again). */
.bunk-entry { margin-top: 16px; padding-top: 4px; border-top: 1px solid var(--line); }
.bunk-entry[hidden], .bunk-entry-btn[hidden] { display: none; }
.bunk-entry-btn { width: 100%; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; min-height: 56px; margin-top: 8px; padding: 8px 12px; text-align: left; border-radius: 11px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; cursor: pointer; }
.hg-others > .bunk-entry-btn { margin-top: 0; }
.bunk-entry-btn:hover { border-color: rgba(229, 160, 13, .6); }
.bunk-entry-ico { font-size: 26px; line-height: 1; }
.bunk-entry-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bunk-entry-text small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.bunk-how { list-style: none; margin: 4px 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bunk-how li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: start; font-size: 14.5px; line-height: 1.4; }
.bunk-how li span { font-size: 20px; line-height: 1.2; text-align: center; }

body.bunk-on.lobby-on .video-wrap { overflow: hidden; } /* the lobby does not scroll away under the game */
.bunk-card { background: #101218; width: min(760px, calc(100% - 20px)); } /* opaque: the lobby must not show through (game-cards.test.js) */
.bunk-card .hg-body { gap: 12px; }
.bunk-k { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bunk-card .hg-kicker { white-space: nowrap; }
.bunk-card .hg-step { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bunk-dhead { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bunk-legend { font-size: 11.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
/* The screen's main button and its count stay in sight while the card scrolls (the brief's dossier, the talk's table). */
.bunk-sticky { position: sticky; bottom: -14px; z-index: 2; display: flex; flex-direction: column; gap: 8px; margin: 0 -14px; padding: 10px 14px 14px; background: #101218; border-top: 1px solid var(--line); }
.bunk-big { font-size: 22px; line-height: 1.25; }
.bunk-you { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.bunk-year { font-weight: 500; color: var(--muted); }
.bunk-go { min-height: 46px; padding: 0 22px; border: 0; border-radius: 11px; background: var(--accent); color: #111; font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; }
.bunk-go:disabled { opacity: .55; cursor: default; }
.bunk-go:focus-visible, .bunk-play:focus-visible, .bunk-c.can-open:focus-visible, .bunk-tbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bunk-act { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.bunk-ask { font-size: 15px; font-weight: 700; line-height: 1.35; }
.bunk-ask small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.bunk-ask.fan { color: var(--accent); }
.bunk-ask.done { color: var(--ok); font-size: 14px; }
.bunk-more > summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--muted); list-style: none; }
.bunk-more > summary::-webkit-details-marker { display: none; }
.bunk-more > summary::after { content: '▾'; margin-left: auto; font-size: 12px; }
.bunk-more[open] > summary::after { content: '▴'; }

/* The disaster: a trailer's first line, the name, the situation, «Как в фильмах:», the bunker. */
.bunk-scene { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 13px; background: #07080b; border: 1px solid rgba(255, 255, 255, .07); }
.bunk-trailer { display: flex; align-items: center; gap: 12px; }
.bunk-demoji { flex: none; font-size: 46px; line-height: 1; animation: bunk-zoom 1.6s cubic-bezier(.2, .8, .2, 1) both; }
.bunk-tline { font-size: 15px; font-style: italic; letter-spacing: .02em; color: var(--muted); line-height: 1.4; animation: bunk-fade 1.2s .5s ease-out both; }
.bunk-dname { margin: 2px 0 0; font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; animation: bunk-rise .6s 1.1s ease-out both; }
.bunk-dtext { margin: 0; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; animation: bunk-fade .6s 1.4s ease-out both; }
.bunk-films { display: flex; flex-direction: column; gap: 6px; animation: bunk-fade .6s 1.7s ease-out both; }
.bunk-frow { display: flex; gap: 10px; flex-wrap: wrap; }
.bunk-film { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 220px; font-size: 13px; line-height: 1.3; }
.bunk-ftitle { min-width: 0; overflow-wrap: anywhere; }
.bunk-poster { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: #1a1d24; color: var(--muted); }
.bunk-films .bunk-poster { width: 46px; }
.bunk-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bunk-poster i { font-style: normal; font-size: 16px; }
.bunk-bunker { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 10px 16px; align-items: start; margin-top: 4px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .07); animation: bunk-fade .6s 2s ease-out both; }
.bunk-stat { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bunk-stat b { font-size: 22px; line-height: 1.15; color: var(--accent); overflow-wrap: anywhere; }
.bunk-stat small { font-size: 12px; color: var(--muted); }
.bunk-feats { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.bunk-feats ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.bunk-feats li { padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 12.5px; line-height: 1.3; overflow-wrap: anywhere; }
.bunk-strip { border-radius: 11px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); }
.bunk-strip > summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 42px; padding: 6px 12px; cursor: pointer; list-style: none; font-size: 13.5px; }
.bunk-strip > summary::-webkit-details-marker { display: none; }
.bunk-sdis { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.bunk-chip { margin-left: auto; padding: 3px 9px; border-radius: 999px; background: rgba(229, 160, 13, .14); color: var(--accent); font-size: 12px; font-weight: 700; white-space: nowrap; }
.bunk-strip .bunk-scene { margin: 0 8px 8px; }
.bunk-strip .bunk-scene * { animation: none !important; }

/* The dossier: one's own cards dealt face down, then turned over; the hidden ones marked; the action card apart. */
.bunk-dossier { display: flex; flex-direction: column; gap: 8px; }
.bunk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.bunk-c { display: flex; flex-direction: column; gap: 5px; min-width: 0; min-height: 74px; padding: 8px 9px; text-align: left; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: var(--text); font: inherit; }
.bunk-c.mine.is-hidden { border-style: dashed; background: rgba(255, 255, 255, .025); }
.bunk-c.mine.is-open { border-color: rgba(62, 207, 122, .45); }
.bunk-c.can-open { cursor: pointer; border-color: rgba(229, 160, 13, .55); }
.bunk-c.can-open:hover { background: rgba(229, 160, 13, .1); }
.bunk-chead { display: flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bunk-cstate { margin-left: auto; font-size: 12px; letter-spacing: 0; }
.bunk-ctext { font-size: 13.5px; line-height: 1.3; overflow-wrap: anywhere; }
.bunk-cfilm { display: flex; align-items: center; gap: 7px; font-size: 13px; line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }
.bunk-c.big { min-height: 84px; }
.bunk-c.big .bunk-ctext { font-size: 15.5px; font-weight: 600; }
.bunk-card[data-phase="brief"] .bunk-grid .bunk-c { animation: bunk-deal .5s cubic-bezier(.2, .8, .3, 1.2) both; }
.bunk-grid .bunk-c:nth-child(2) { animation-delay: .08s; } .bunk-grid .bunk-c:nth-child(3) { animation-delay: .16s; } .bunk-grid .bunk-c:nth-child(4) { animation-delay: .24s; }
.bunk-grid .bunk-c:nth-child(5) { animation-delay: .32s; } .bunk-grid .bunk-c:nth-child(6) { animation-delay: .4s; } .bunk-grid .bunk-c:nth-child(7) { animation-delay: .48s; } .bunk-grid .bunk-c:nth-child(8) { animation-delay: .56s; }
.bunk-action { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; background: rgba(229, 160, 13, .08); border: 1px solid rgba(229, 160, 13, .45); }
.bunk-action.used { background: rgba(255, 255, 255, .03); border-color: var(--line); opacity: .75; }
.bunk-aemoji { font-size: 28px; line-height: 1; }
.bunk-abody { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bunk-abody b { font-size: 15px; overflow-wrap: anywhere; }
.bunk-abody small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.bunk-play { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--accent); background: transparent; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }
.bunk-play:disabled { opacity: .5; }
.bunk-used { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.bunk-when { grid-column: 2 / -1; font-size: 12px; color: var(--muted); }
.bunk-pick-target, .bunk-confirm { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; }
.bunk-confirm { flex-direction: row; flex-wrap: wrap; align-items: center; }
.bunk-confirm span { flex: 1 1 100%; font-weight: 700; }
.bunk-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.bunk-tbtn { --fs: 32px; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 10px; text-align: left; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); color: var(--text); font: inherit; cursor: pointer; }
.bunk-tbtn:hover { border-color: var(--accent); }
.bunk-tbtn span:last-child { min-width: 0; overflow-wrap: anywhere; }
.bunk-watchnote { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); font-size: 14px; }

/* The table: everybody with what is open of them. */
.bunk-table { display: flex; flex-direction: column; gap: 6px; }
.bunk-table ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.bunk-p { --fs: 30px; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 8px 10px; border-radius: 11px; background: rgba(255, 255, 255, .04); border: 1px solid transparent; }
.bunk-p.me { border-color: rgba(229, 160, 13, .4); }
.bunk-p.out { opacity: .55; }
.bunk-ph { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.bunk-pn { min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.bunk-out { font-size: 12px; color: var(--bad); }
.bunk-hid { margin-left: auto; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.bunk-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.bunk-badges span { padding: 2px 7px; border-radius: 999px; background: rgba(229, 160, 13, .14); color: var(--accent); font-size: 11.5px; font-weight: 700; }
.bunk-pcards { display: flex; flex-wrap: wrap; gap: 4px; }
.bunk-chip2 { max-width: 100%; padding: 3px 8px; border-radius: 8px; background: rgba(255, 255, 255, .06); font-size: 12.5px; line-height: 1.3; overflow-wrap: anywhere; }

/* The speeches: the speaker in the light, their open cards big. */
.bunk-spot { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 13px; background: #07080b; border: 1px solid rgba(255, 255, 255, .08); animation: bunk-rise .45s ease-out both; }
.bunk-spot.mine { border-color: var(--accent); background: rgba(229, 160, 13, .1); }
.bunk-spot.wait { justify-content: center; min-height: 92px; animation: none; }
.bunk-sface { --fs: 64px; font-size: 26px; box-shadow: 0 0 0 3px var(--accent); }
.bunk-stext { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bunk-stext b { font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.bunk-stext small { font-size: 13px; color: var(--muted); }
.bunk-scards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 7px; }
.bunk-queue { font-size: 13px; color: var(--muted); text-align: center; overflow-wrap: anywhere; }
.bunk-talk { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0 2px; text-align: center; }
.bunk-talk span { font-size: 14px; color: var(--muted); }

/* The vote. */
.bunk-vpick.immune { border-style: dotted; }
.bunk-tie { padding: 10px 12px; border-radius: 11px; background: rgba(229, 160, 13, .12); border: 1px solid rgba(229, 160, 13, .5); font-size: 14.5px; font-weight: 700; animation: bunk-rise .4s ease-out both; }

/* The exile: the door's two leaves meet over their face (--door), the crash, then the dossier opens. */
.bunk-reveal { display: flex; flex-direction: column; gap: 12px; }
.bunk-door { position: relative; height: 150px; border-radius: 13px; overflow: hidden; background: radial-gradient(circle at 50% 45%, #232733, #07080b 70%); }
.bunk-dface { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 16px; animation: bunk-dim .4s ease-out both; animation-delay: var(--door); }
.bunk-xface { --fs: 72px; font-size: 28px; }
.bunk-leaf { position: absolute; top: 0; bottom: 0; width: 50%; background: repeating-linear-gradient(0deg, #3a3f4b 0 14px, #343844 14px 16px); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35); animation: bunk-shut var(--door) cubic-bezier(.6, 0, .9, .4) both; }
.bunk-leaf.l { left: 0; --from: -100%; }
.bunk-leaf.r { right: 0; --from: 100%; }
.bunk-leaf.r::before { content: '☢'; position: absolute; left: -14px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent); color: #111; font-size: 17px; font-weight: 800; }
.bunk-verdict { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; font-size: 17px; animation: bunk-rise .45s ease-out both; animation-delay: calc(var(--door, 1500ms) + 150ms); }
.bunk-verdict small { font-size: 13px; color: var(--muted); }
.bunk-xdossier { display: flex; flex-direction: column; gap: 6px; animation: bunk-fade .5s 1.9s ease-out both; }
.bunk-xdossier .bunk-c { animation: bunk-deal .45s cubic-bezier(.2, .8, .3, 1.2) both; animation-delay: 2s; }
.bunk-spared { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 12px; border-radius: 13px; text-align: center; background: rgba(62, 207, 122, .08); border: 1px solid rgba(62, 207, 122, .4); animation: bunk-rise .45s ease-out both; }
.bunk-spared span { font-size: 14px; color: var(--muted); }
.bunk-last { padding: 8px 12px; border-radius: 10px; background: rgba(62, 207, 122, .1); color: var(--ok); font-size: 14px; font-weight: 700; text-align: center; }
.bunk-tally { display: flex; flex-direction: column; gap: 6px; }
.bunk-plays { font-size: 13px; color: var(--muted); }
.bunk-fans { font-size: 13px; }

/* The end: the door shut, the epilogue sentence by sentence, the survivors, the fates, the vote. */
.bunk-closed { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.bunk-closed span { font-size: 13.5px; color: var(--muted); }
.bunk-story { margin: 0; padding: 14px 16px; border-radius: 13px; background: #07080b; border-left: 3px solid var(--accent); font-size: 15.5px; line-height: 1.6; overflow-wrap: anywhere; }
.bunk-story span { animation: bunk-fade .7s ease-out both; animation-delay: calc(var(--n, 0) * 700ms + 200ms); }
.bunk-story.wait { display: flex; align-items: center; gap: 10px; border-left-color: var(--line); color: var(--muted); font-size: 14px; }
.bunk-story.wait .hg-spin { width: 22px; height: 22px; border-width: 2px; }
.bunk-ai { display: block; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.bunk-inside ul, .bunk-fates ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.bunk-inside li { border-radius: 11px; background: rgba(62, 207, 122, .07); }
.bunk-inside li.me { box-shadow: inset 0 0 0 1px rgba(229, 160, 13, .5); }
.bunk-inside summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px; cursor: pointer; list-style: none; }
.bunk-inside summary::-webkit-details-marker { display: none; }
.bunk-inside .bunk-pcards { padding: 0 10px 10px; }
.bunk-fates li { --fs: 28px; display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 6px 10px; border-radius: 9px; background: rgba(255, 255, 255, .04); font-size: 13.5px; line-height: 1.35; }
.bunk-fates li > span:not(.wh-face):not(.hg-place) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.bunk-fates li.me { background: rgba(229, 160, 13, .12); }
.bunk-convince { display: flex; flex-direction: column; gap: 8px; }
.bunk-podium { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 8px; }
.bunk-podium div.hg-step { flex: 1 1 130px; max-width: 200px; }
.bunk-podium .bunk-in { background: rgba(229, 160, 13, .16); }
.bunk-mic { font-size: 12px; font-weight: 700; color: var(--accent); }
.bunk-mvp { padding: 8px 12px; border-radius: 10px; background: rgba(229, 160, 13, .1); font-size: 14px; text-align: center; overflow-wrap: anywhere; }
.bunk-epi > summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; font-weight: 700; }
.bunk-card[data-phase="podium"] .bunk-story span { animation: none; }

/* A card played: on everybody's card for a few seconds. */
.bunk-banner { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; margin: -2px 0 0; padding: 10px 14px; border-radius: 12px; background: #1c1a10; border: 1px solid var(--accent); box-shadow: 0 10px 28px rgba(0, 0, 0, .5); animation: bunk-drop .45s cubic-bezier(.2, .9, .3, 1.25) both; }
.bunk-banner.gone { animation: bunk-away .5s ease-in both; pointer-events: none; }
.bunk-bemoji { font-size: 34px; line-height: 1; }
.bunk-btext { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bunk-btext b { font-size: 15.5px; overflow-wrap: anywhere; }
.bunk-btext small, .bunk-bdetail { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.bunk-bdetail { color: var(--text); }

@keyframes bunk-zoom { from { opacity: 0; transform: scale(2.2); } to { opacity: 1; transform: none; } }
@keyframes bunk-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bunk-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes bunk-deal { from { opacity: 0; transform: perspective(600px) rotateY(80deg) translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes bunk-shut { from { transform: translateX(var(--from)); } to { transform: none; } }
@keyframes bunk-dim { to { opacity: .2; filter: grayscale(1); } }
@keyframes bunk-drop { from { opacity: 0; transform: translateY(-16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes bunk-away { to { opacity: 0; transform: translateY(-10px); height: 0; padding-top: 0; padding-bottom: 0; margin: 0; border-width: 0; } }
.bunk-still .hg-body *, .bunk-again .hg-body * { animation: none !important; } /* the banner (the card's own child) keeps its entrance */
.bunk-again .bunk-dface, .bunk-still .bunk-dface { opacity: .2; filter: grayscale(1); }
.bunk-still .bunk-banner { animation: none; }
.bunk-still .bunk-banner.gone { display: none; }
@media (prefers-reduced-motion: reduce) {
  .bunk-card *, .bunk-banner { animation: none !important; }
  .bunk-dface { opacity: .2; filter: grayscale(1); }
  .bunk-banner.gone { display: none; }
}
@media (max-width: 760px) {
  .bunk-card { width: 100%; }
  .bunk-sticky { bottom: calc(-14px - env(safe-area-inset-bottom, 0px)); margin: 0 -12px; padding: 10px 12px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .bunk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bunk-table ul { grid-template-columns: minmax(0, 1fr); }
  .bunk-bunker { grid-template-columns: auto minmax(0, 1fr); }
  .bunk-feats { grid-column: 1 / -1; }
  .bunk-scene { padding: 12px; }
  .bunk-demoji { font-size: 38px; }
  .bunk-dname { font-size: 21px; }
  .bunk-spot { padding: 12px; gap: 12px; }
  .bunk-sface { --fs: 54px; }
  .bunk-stext b { font-size: 17px; }
  .bunk-scards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bunk-door { height: 130px; }
  .bunk-card .hg-btn, .bunk-card .hg-min, .bunk-card .gseat-btn { min-height: 44px; } /* phones first: 44-px targets */
  .bunk-card .wh-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bunk-card .wh-pick { min-height: 52px; }
  .bunk-action { grid-template-columns: auto minmax(0, 1fr); }
  .bunk-action > .bunk-play, .bunk-action > .bunk-used { grid-column: 1 / -1; }
  .bunk-tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bunk-story { font-size: 15px; padding: 12px 13px; }
}
@media (max-width: 300px) {
  .bunk-grid, .bunk-scards { grid-template-columns: minmax(0, 1fr); }
  .bunk-card .wh-picks, .bunk-tgrid { grid-template-columns: minmax(0, 1fr); }
}
/* 0.66 «Темп»: the name on top, the hint under it, two equal chips */
.bunk-paces { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bunk-paces .hg-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; min-height: 44px; }
.bunk-paces .hg-chip small { font-size: 12px; line-height: 1.3; color: var(--muted); font-weight: 400; }
