/* The winner's handicap and the tiebreak coin: the main screen first, then the phones. */

/* ================= main screen ================= */

/* ---------- the vote ---------- */
.host .v-vote { display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
.v-vote .mini-rules b { color: var(--brass-light); }
.hc-cards { grid-template-columns: repeat(4, 1fr); gap: 1.4rem; align-content: center; align-items: stretch; }
.hc-card { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; justify-items: center; text-align: center; gap: 0.4rem; padding: 1.4rem 1.2rem 1rem; min-height: 24rem; }
.hc-card h3 { margin: 0.2rem 0 0; font-size: 3rem; line-height: 1.05; color: var(--cream); }
.hc-card p { margin: 0; font-size: 1.75rem; line-height: 1.25; }
.hc-card .badge { width: 7rem; height: 7rem; }
.hc-card .hc-count { font-size: 1.8rem; font-weight: 700; color: var(--brass-light); min-height: 1.3em; }
.hc-card.dim { opacity: 0.3; filter: saturate(0.4); }
.hc-card.in-draw { box-shadow: 0 0 0 3px var(--brass-light); }
.hc-card.chosen { border-color: var(--brass-light); box-shadow: 0 0 0 4px var(--brass-light), 0 0 3rem rgba(230, 198, 92, 0.75); transform: scale(1.06); }
.hc-card.chosen .hc-count::before { content: ''; }

/* The card draw sits over the cards until the result lands, then tucks into the corner. */
.hc-draw { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 0.8rem; z-index: 4; padding: 1.4rem 3rem 1.6rem; background: rgba(20, 17, 15, 0.94); border: 2px solid var(--brass); border-radius: 0.6rem; box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.7); transition: transform 0.6s cubic-bezier(0.3, 0.7, 0.3, 1), opacity 0.6s; }
.hc-draw:empty { display: none; }
.hc-draw.done { transform: translate(-50%, -50%) scale(0.5) translate(150%, 115%); opacity: 0.0; pointer-events: none; }
.hc-draw-say { margin: 0; font-family: var(--font-display); font-size: 3rem; color: var(--brass-light); }
.hc-draw-card { margin: 0; font-size: 2rem; font-weight: 700; min-height: 1.3em; text-transform: capitalize; }
.hc-deck { position: relative; width: 26rem; height: 17rem; }
.hc-deck > .pcard { --w: 10rem; position: absolute; left: 1rem; top: 1rem; }
.hc-deck > .pcard:nth-child(2) { left: 1.25rem; top: 0.8rem; }
.hc-deck > .pcard:nth-child(3) { left: 1.5rem; top: 0.6rem; }
.hc-pull { --p: 0; position: absolute; left: 1.75rem; top: 0.4rem; transform: translateX(calc(var(--p) * 12.5rem)) rotate(calc(var(--p) * 4deg)); }
.hc-pull .pcard { --w: 10rem; }

/* ---------- the coin toss ---------- */
.host .v-coin { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.6rem; }
.hc-coin-names { margin: 0; font-size: 2rem; color: var(--smoke); }
.hc-coin-stage { height: 22rem; display: grid; place-items: end center; perspective: 60rem; padding-bottom: 1rem; }
.hc-coin { position: relative; width: 12rem; height: 12rem; transform-style: preserve-3d; }
.hc-coin .face { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: radial-gradient(circle at 35% 30%, #fff3b8, #E6C65C 35%, #C9A227 60%, #8A6C14);
  box-shadow: inset 0 0 0 0.6rem rgba(138, 108, 20, 0.85), inset 0 0 0 0.85rem rgba(255, 243, 184, 0.6), 0 0.8rem 2rem rgba(0, 0, 0, 0.6); }
.hc-coin .face span { font-family: var(--font-display); font-size: 6rem; color: #5b4510; text-shadow: 0 2px 0 rgba(255, 243, 184, 0.6); }
.hc-coin .tails { transform: rotateX(180deg); }
.hc-coin-who { display: flex; align-items: center; gap: 2rem; min-height: 6rem; }
.hc-side { display: flex; flex-direction: column; align-items: center; padding: 0.6rem 2rem; border-radius: 0.5rem; border: 2px solid rgba(201, 162, 39, 0.4); background: rgba(20, 17, 15, 0.8); font-size: 2.6rem; font-weight: 700; transition: all 0.4s; }
.hc-side b { font-size: 1.2rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass); }
.hc-side.won { border-color: var(--brass-light); box-shadow: 0 0 0 3px var(--brass-light), 0 0 2rem rgba(230, 198, 92, 0.6); color: var(--brass-light); }
.hc-vs { font-family: var(--font-display); font-size: 2.2rem; color: var(--smoke); }
.hc-coin-say { margin: 0; min-height: 1.2em; font-size: 4rem; color: var(--brass-light); text-shadow: 0 0 2rem rgba(230, 198, 92, 0.4); }
.v-coin:not(.crowned) #coinNextBtn { opacity: 0.6; }

/* ---------- banners ---------- */
.hc-banner { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; padding: 0.7rem 1rem; border: 1.5px solid var(--brass); border-radius: 0.5rem; background: rgba(43, 29, 20, 0.92); font-size: 1.35rem; line-height: 1.3; }
.hc-banner b { color: var(--brass-light); }
.hc-banner-kicker { flex: none; font-size: 1rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); font-weight: 700; max-width: 7rem; }
.hc-banner .btn { flex: none; margin-left: auto; }
.hc-tag { color: var(--cream); font-size: 1.1rem; border: 1px solid rgba(201, 162, 39, 0.5); border-radius: 1em; padding: 0.15em 0.8em; }
.hc-tag b { color: var(--brass-light); margin-right: 0.3em; }
.chip-name.hc { border-style: dashed; border-color: var(--brass-light); }
.chip-name.hc::before { content: '⚑ '; color: var(--brass-light); }
.chip-name.in.hc::before { color: var(--ink); }
.chip-name small { font-weight: 600; opacity: 0.85; }
.tile .pickers .pigeon { background: var(--brass-light); color: var(--ink); box-shadow: 0 0 1rem rgba(230, 198, 92, 0.8); }

/* ================= phones ================= */

.phone .hc-pill { margin: 0; align-self: stretch; padding: 0.35rem 0.8rem; border: 1.5px dashed var(--brass-light); border-radius: 0.5rem; font-size: 0.85rem; color: var(--cream); text-align: left; }
.phone .hc-pill b { color: var(--brass-light); }
.phone .q-pigeon { margin: 0; min-height: 0; font-size: 0.9rem; color: var(--brass-light); }

/* Under the Table: the whole question view upside down. */
.v-question.hc-underTable { rotate: 180deg; } /* rotate, not transform: the view's fade-in animates transform */

/* Had Too Many: no letters, no colors, scrambled. */
.answers .ans.plain { --tile: var(--walnut-2); justify-content: center; text-align: center; }
.answers .ans.plain .label { font-size: 1.1rem; }

/* Tipsy: play.js moves each button every frame. */
.answers.tipsy .ans { transition: none; will-change: transform; }

/* Beer Goggles: everything a bit soft, and a ghost copy of each button that does nothing. */
.answers { position: relative; }
.answers.goggles .ans:not(.ghost) { filter: blur(1.4px); }
.ghosts { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.ans.ghost { position: absolute; pointer-events: auto; opacity: 0.5; filter: blur(2.2px); border-color: rgba(242, 230, 201, 0.35); }

/* Sticky Fingers: press and hold; a bar fills across the button. */
.answers.sticky .ans::before { content: ''; position: absolute; left: 0; bottom: 0; height: 6px; width: 0; border-radius: 0 0 0.5rem 0.5rem; background: var(--brass-light); }
.answers.sticky .ans.holding::before { width: 100%; transition: width 1s linear; }

/* Hangover: the buttons wake up after 5 seconds. */
.answers.groggy .ans { opacity: 0.35; filter: grayscale(0.8); pointer-events: none; }

/* Hold Your Drink: keep a thumb on the glass. */
.glass { flex: none; width: 100%; max-width: 420px; min-height: 72px; display: flex; align-items: center; justify-content: center; gap: 0.6rem; border-radius: 0.6rem; border: 2px dashed var(--brass); background: rgba(20, 17, 15, 0.85); color: var(--brass-light); font-weight: 700; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.glass svg { width: 34px; height: 46px; }
.glass.held { border-style: solid; background: rgba(201, 162, 39, 0.25); color: var(--cream); }
.glass.spill { animation: spill 0.5s; border-color: var(--oxblood); }
@keyframes spill { 0%, 100% { transform: none; } 25% { transform: rotate(-6deg); } 75% { transform: rotate(5deg); } }
.ans.nudge { animation: spill 0.35s; }

/* The vote on the phone. */
.v-vote .hc-buttons { width: 100%; max-width: 460px; display: grid; gap: 0.6rem; }
.v-vote .hc-btn { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 0.2rem 0.8rem; text-align: left; min-height: 76px; }
.v-vote .hc-btn .badge { grid-row: span 2; }
.v-vote .hc-btn b { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; }
.v-vote .hc-btn small { font-weight: 600; font-size: 0.85rem; opacity: 0.9; line-height: 1.25; }
.v-vote .hc-buttons.has-pick .ans:not(.picked) { opacity: 0.6; }
.v-vote .hc-result { font-size: 1.1rem; line-height: 1.4; }
.v-vote .hc-result b { color: var(--brass-light); }
.v-vote .pcard { --w: 6.5rem; margin: 0.4rem auto; }
