/* «Нарисуй и обмани» (0.34, draw-bluff.js): the mode switch of «Нарисуй фильм»'s start dialog and what the card adds
   for the mode — the artist's «Готово», the fake title, the vote with ♥, the reveal one option after another, the
   podium's funniest fake. The card, the paper, the countdown and the board are draw-game.css's and hall-game.css's. */
.dg-modal [data-for][hidden] { display: none; }
.dg-modes .hg-chip { min-height: 56px; }

.dg-bluff .dgb-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dg-card.dg-bluff .dgb-side { max-height: none !important; } /* beside the paper (draw-game.js caps it at the paper's height): the options and the truth are never cut — the card scrolls */
.dgb-done { align-self: flex-start; min-height: 48px; padding: 0 24px; border-radius: 11px; border: 0; background: var(--accent); color: #111; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.dgb-film { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--ok); }
.dgb-ask { font-size: 15px; font-weight: 700; line-height: 1.35; }
.dgb-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "input send" "left left"; gap: 4px 8px; align-items: center; }
.dgb-input { grid-area: input; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .35); color: var(--text); font: inherit; font-size: 16px; } /* 16 px: no zoom on a phone */
.dgb-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(229, 160, 13, .2); }
.dgb-send { grid-area: send; min-height: 48px; padding: 0 18px; border-radius: 11px; border: 0; background: var(--accent); color: #111; font: inherit; font-weight: 700; cursor: pointer; }
.dgb-left { grid-area: left; justify-self: end; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dgb-left.low { color: var(--bad); }
.dgb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The vote: big buttons, a ♥ beside each option that is not one's own. */
.dgb-opts { display: flex; flex-direction: column; gap: 8px; }
.dgb-opt { display: flex; align-items: stretch; gap: 6px; }
.dgb-pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; text-align: left; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: var(--text); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.dgb-pick:hover:not(:disabled) { border-color: var(--accent); }
.dgb-pick:disabled { cursor: default; }
.dgb-opt.mine .dgb-pick { border-color: var(--accent); background: rgba(229, 160, 13, .16); opacity: 1; }
.dgb-opt.own .dgb-pick { opacity: .62; border-style: dashed; }
.dgb-n { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); font-size: 13px; font-weight: 700; color: var(--muted); }
.dgb-t { min-width: 0; overflow-wrap: anywhere; }
.dgb-own { margin-left: auto; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.dgb-like { flex: none; width: 48px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: var(--muted); font-size: 20px; cursor: pointer; }
.dgb-like[aria-pressed="true"] { color: #ff6b8b; border-color: rgba(255, 107, 139, .6); background: rgba(255, 107, 139, .12); }

/* The reveal: one option after another (the truth last), the artist, then the board. */
.dgb-rv { display: flex; flex-direction: column; gap: 8px; }
.dgb-mine { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dgb-mine small { font-size: 13px; color: var(--muted); }
.dgb-reveal { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dgb-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text pts" "who likes" "picks likes"; column-gap: 10px; padding: 8px 11px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid transparent; }
.dgb-row, .dgb-artist, .dgb-board { animation: dgb-in .4s ease-out both; animation-delay: calc(var(--i, 0) * var(--dgb-step, 1.8s)); }
.dgb-rtext { grid-area: text; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.dgb-rwho { grid-area: who; font-size: 12.5px; color: var(--muted); }
.dgb-rpicks { grid-area: picks; font-size: 12.5px; color: var(--muted); }
.dgb-pts { grid-area: pts; justify-self: end; font-size: 16px; color: var(--ok); font-variant-numeric: tabular-nums; }
.dgb-likes { grid-area: likes; justify-self: end; align-self: center; font-size: 13px; font-weight: 700; color: #ff6b8b; }
.dgb-row.truth { border-color: var(--ok); background: rgba(62, 207, 122, .12); }
.dgb-row.truth .dgb-rwho { color: var(--ok); font-weight: 700; }
.dgb-row.own { box-shadow: inset 3px 0 0 var(--accent); }
.dgb-row.picked:not(.truth) { border-color: rgba(255, 107, 107, .55); }
/* 0.38 «Голоса зрителей»: the spectators' count under a ballot, 👥 and «Приз зрителей» at the reveal, the podium's line. */
.dgb-fans { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dgb-rfans { grid-column: 1; grid-row: 4; font-size: 12.5px; color: var(--muted); }
.dgb-rfans b { color: var(--accent); }
.dgb-row.prize { border-color: var(--accent); }
.dgb-row.fav { box-shadow: inset -3px 0 0 var(--accent); }
.dgb-fans-podium { font-size: 13.5px; }
.dgb-fans-podium b { color: var(--accent); }
.dgb-fans-podium .me { font-weight: 700; }
@keyframes dgb-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* The podium's funniest fake. */
.dgb-funny { display: flex; flex-direction: column; gap: 6px; }
.dgb-fbox { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; background: rgba(255, 107, 139, .08); border: 1px solid rgba(255, 107, 139, .35); }
.dgb-fbox img { flex: none; width: 72px; aspect-ratio: 4 / 3; border-radius: 6px; background: #fff; object-fit: contain; }
.dgb-ftext { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dgb-ftext b { font-size: 16px; overflow-wrap: anywhere; }
.dgb-ftext small { font-size: 12.5px; color: var(--muted); }

@media (max-width: 760px) {
  .dgb-done { align-self: stretch; }
  /* The phone's keyboard is open: the sheet sits on it and fits what is left of the screen (the paper shrinks). */
  .dg-card.dgb-kb { bottom: var(--dgb-kb, 0px); max-height: calc(var(--dgb-vh, 60vh) - 8px); padding-bottom: 10px; }
  .dg-card.dgb-kb .dgb-ask, .dg-card.dgb-kb[data-phase="write"] .dg-top { display: none; }
}
@media (prefers-reduced-motion: reduce) { .dgb-row, .dgb-artist, .dgb-board { animation: none; } }
