/* ---------- Games ---------- */
.game__top { display: flex; align-items: center; gap: 6px; }
.game { display: flex; flex-direction: column; gap: 12px; }
.gtile { align-items: flex-start; text-align: left; gap: 6px; }
.gstage { position: relative; width: 100%; max-width: 420px; margin: 0 auto; border-radius: 20px; overflow: hidden; border: 1px solid var(--border-strong, var(--border)); background: #000; touch-action: none; user-select: none; -webkit-user-select: none; }
.gcanvas { display: block; width: 100%; height: auto; aspect-ratio: 360 / 520; }
.goverlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.goverlay > * { pointer-events: auto; }
.gresult { text-align: center; padding: 22px 20px; margin: 16px; border-radius: 20px; background: rgba(8, 8, 12, .86); color: #fff; border: 1px solid rgba(255, 255, 255, .18); display: flex; flex-direction: column; gap: 10px; align-items: center; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gresult.is-good { border-color: #4ade80; box-shadow: 0 0 24px rgba(74, 222, 128, .35); }
.gbtn { min-height: 48px; padding: 0 22px; border-radius: 16px; border: 1px solid var(--border-strong, var(--border)); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.gbtn:disabled { opacity: .45; cursor: default; }
.gbtn--primary { background: linear-gradient(135deg, var(--primary), var(--primary-2, var(--primary))); color: var(--on-primary, #1a1204); border-color: transparent; }
.gbtn--ghost { background: transparent; }
.gbtn:active { transform: scale(.97); }
.ghold { width: 100%; max-width: 420px; align-self: center; min-height: 72px; font-size: 1.15rem; letter-spacing: .06em; touch-action: none; }
.ghold.is-down { filter: brightness(1.2); transform: scale(.98); }
.gpad { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 420px; width: 100%; margin: 0 auto; }
.gpad .ghold { min-height: 64px; font-size: 1.6rem; }
.grow { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gcenter { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 8px 0; }
.gcenter > .gbtn { min-width: 220px; }
.gcard { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 20px; background: var(--gloss, none), var(--surface); border: 1px solid var(--border); width: 100%; }
.gcard--big { padding: 24px 18px; font-size: 1.2rem; line-height: 1.45; align-items: center; text-align: center; min-height: 140px; justify-content: center; }
.gcard--big.is-truth { border-color: #38bdf8; box-shadow: 0 0 22px rgba(56, 189, 248, .25); }
.gcard--big.is-dare { border-color: #f43f5e; box-shadow: 0 0 22px rgba(244, 63, 94, .25); }
.gcard--big.is-good { border-color: #4ade80; }
.gcard--big.is-bad { border-color: #f87171; }
.gturn { font-size: 1.5rem; }
.gpass { font-size: 3rem; }
.gplayers { display: flex; flex-direction: column; gap: 8px; }
.gplayers__row { display: flex; align-items: center; gap: 8px; }
.gplayers__no { width: 24px; text-align: center; color: var(--muted); font-weight: 700; }
.gplayers__row .input { flex: 1; min-width: 0; }
.gscore { gap: 6px; }
.gscore__row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 4px; border-bottom: 1px solid var(--border); }
.gscore__row:last-child { border-bottom: 0; }
.gopt { display: block; width: 100%; text-align: left; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.gopt.is-selected { border-color: var(--primary); box-shadow: 0 0 0 2px var(--glow); }
.gopt.is-lie { border-color: #f87171; background: rgba(248, 113, 113, .14); }
.gopt.is-true { border-color: #4ade80; background: rgba(74, 222, 128, .1); }
.gstate { display: flex; flex-direction: column; gap: 6px; }
.role-card__emoji { font-size: 3.2rem; }
.bottle { font-size: 5.5rem; line-height: 1; display: inline-block; transform-origin: 50% 50%; margin: 10px 0; }
.ginfo { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.gmsg { text-align: center; min-height: 1.5em; color: var(--accent-text); font-weight: 600; }
.gstage--grid { background: linear-gradient(180deg, #1e3a5f, #0f2a1c); padding: 14px; touch-action: manipulation; }
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mgrid.shake { animation: gshake .35s; }
@keyframes gshake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.hole { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 22px; overflow: hidden; cursor: pointer; touch-action: manipulation;
  background: radial-gradient(ellipse 46% 17% at 50% 86%, #020402 0 94%, transparent 100%), radial-gradient(ellipse 54% 22% at 50% 88%, #5a3d22 0 100%, transparent 100%), rgba(255, 255, 255, .05); }
.mole { position: absolute; left: 10%; bottom: 10%; width: 80%; height: 80%; object-fit: contain; transform: translateY(120%); transition: transform .14s ease-out; pointer-events: none; -webkit-user-drag: none; }
.hole::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 3%; height: 15%; border-radius: 50%; background: #5a3d22; z-index: 2; pointer-events: none; }
.hole.is-up .mole { transform: translateY(0); }
.hole.is-bad .mole { filter: drop-shadow(0 0 8px #ef4444); }
.hole.is-hit .mole { transform: translateY(0) scale(1.25) rotate(8deg); opacity: 0; transition: transform .2s, opacity .2s; }
/* the canvas games must fit on one screen together with the control buttons */
.gstage:not(.gstage--grid) { width: min(100%, calc((100dvh - 250px) * .692)); }
.game > .muted.small { margin: 0; }
