/* Party games: calm until you join, then one clear card at a time. */
.heat.h1, .heat-chip.h1, .game-card.h1 { --h: #2456d6; --h-soft: #eef3fe; --h-2: #5b8def; }
.heat.h2, .heat-chip.h2, .game-card.h2 { --h: #c4307a; --h-soft: #fdeef5; --h-2: #f0679f; }
.heat.h3, .heat-chip.h3, .game-card.h3 { --h: #d1461f; --h-soft: #fff0ea; --h-2: #f5842f; }
.heat.h4, .heat-chip.h4, .game-card.h4 { --h: #7a2bb8; --h-soft: #f5edfc; --h-2: #c0359a; }

#gameBar { flex: none; border-bottom: 1px solid var(--line); background: var(--soft); }
#gameBar.invite { display: flex; align-items: center; gap: 10px; padding: 7px 12px; }
#gameBar.invite .grow { flex: 1; min-width: 0; line-height: 1.35; }
#gameBar.invite b, #gameBar.invite small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#gameBar.invite b { font-size: 13px; }
#gameBar.invite small { font-size: 12px; color: var(--muted); }
#gameBar.table { display: flex; flex-direction: column; max-height: 62%; overflow-y: auto; }

.game-ico { font-size: 20px; line-height: 1; }
.game-head { display: flex; align-items: center; gap: 8px; padding: 5px 8px 3px 12px; }
.game-head b { font-size: 13.5px; white-space: nowrap; }
.game-head .grow { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-head .icon-btn { width: 30px; height: 30px; }
.heat-chip { padding: 2px 9px; border-radius: 999px; background: var(--h-soft); color: var(--h); font-size: 11.5px; font-weight: 700; white-space: nowrap; }

.seats { display: flex; gap: 4px; padding: 3px 12px 6px; overflow-x: auto; scrollbar-width: none; flex: none; }
.seat { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 48px; flex: none; opacity: .75; transition: opacity .15s, transform .15s; }
.seat .av { border: 2px solid transparent; }
.seat small { max-width: 100%; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seat.turn { opacity: 1; transform: translateY(-1px) scale(1.08); }
.seat.turn .av { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.seat.turn small { color: var(--text); font-weight: 700; }
.seat.done::after { content: '✓'; position: absolute; top: -2px; right: 5px; width: 15px; height: 15px; border-radius: 50%; background: #12b76a; color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.game-body { padding: 0 12px 10px; }
.game-body.spinning > * { visibility: hidden; }
.game-say { padding: 6px 0 8px; text-align: center; font-size: 13.5px; color: var(--body); }
.game-card { position: relative; overflow: hidden; padding: 12px 16px 14px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--h), var(--h-2)); box-shadow: 0 8px 20px -8px var(--h); text-align: center; animation: deal .35s cubic-bezier(.2, .8, .3, 1.15); }
.game-card::after { content: ''; position: absolute; right: -40px; top: -50px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.card-tag { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .92; }
.card-tag i { font-style: normal; white-space: nowrap; }
.game-card p { position: relative; z-index: 1; margin: 10px 0 2px; color: #fff; font-size: 17.5px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
html[data-text="large"] .game-card p { font-size: 19px; }
html[data-text="larger"] .game-card p { font-size: 21px; }
@keyframes deal { from { opacity: 0; transform: perspective(700px) rotateX(-35deg) translateY(8px) scale(.96); } }

.game-acts { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.game-btn { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--body); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.game-btn:hover { border-color: var(--accent); }
.game-btn.main { background: var(--accent); border-color: var(--accent); color: #fff; }
.game-btn.main:hover { background: var(--accent-hover); }
.game-btn.big { padding: 10px 24px; font-size: 14px; }
.game-btn.ghost { background: transparent; }
.game-hint { font-size: 12px; color: var(--muted); }
.game-hint.wide { padding: 0 12px 6px; text-align: center; }
.game-reacts { display: flex; gap: 3px; }
.game-reacts button { display: inline-flex; align-items: center; gap: 3px; min-width: 34px; justify-content: center; padding: 3px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 14px; }
.game-reacts button:active { transform: scale(1.25); }
.game-reacts b { font-size: 11px; color: var(--muted); }
.game-agree { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 12px 8px; padding: 7px 10px; border-radius: 10px; background: var(--accent-soft); font-size: 12.5px; }

.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 420px; margin: 0 auto; }
.choose > button:not(.game-btn) { display: grid; gap: 2px; padding: 13px 8px; border-radius: 14px; color: #fff; text-align: center; transition: transform .1s, box-shadow .15s; }
.choose > button:not(.game-btn):hover { transform: translateY(-2px); }
.choose b { font-size: 18px; }
.choose small { font-size: 11.5px; opacity: .9; }
.pick-truth { background: linear-gradient(135deg, #2456d6, #5b8def); box-shadow: 0 8px 18px -9px #2456d6; }
.pick-dare { background: linear-gradient(135deg, #c4307a, #f5842f); box-shadow: 0 8px 18px -9px #c4307a; }
.choose .game-btn { grid-column: 1 / -1; justify-self: center; }

.votes { display: grid; gap: 6px; margin-top: 9px; grid-template-columns: 1fr 1fr; }
.votes.mlt { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.vote { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 40px; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 11px; background: var(--panel); text-align: center; }
.vote:not(:disabled):hover { border-color: var(--accent); }
.vote i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent-soft); transition: width .6s ease; }
.vote span { position: relative; font-size: 13px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.vote small { position: relative; font-size: 11.5px; color: var(--muted); }
.vote.mine { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.vote:disabled { cursor: default; color: var(--text); }
.vote.got small { color: var(--text); font-weight: 600; }

.game-list { display: grid; gap: 7px; }
.game-list button { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 12px; text-align: left; }
.game-list button > span:first-child { font-size: 24px; }
.game-list b, .game-list small { display: block; }
.game-list b { font-size: 14px; }
.game-list small { font-size: 12px; color: var(--muted); }
.game-list button.on { border-color: var(--accent); background: var(--accent-soft); }
.heat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 6px; }
.heat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; border: 1.5px solid var(--line); border-radius: 11px; font-size: 12px; font-weight: 700; color: var(--body); }
.heat span { font-size: 18px; }
.heat.on { border-color: var(--h); background: var(--h-soft); color: var(--h); }
.heat:disabled { opacity: .35; cursor: default; }

/* no ads beside a Spicy or Kinky table */
#app.no-ads .ad { display: none !important; }

html[data-theme="dark"] .heat-chip, html[data-theme="dark"] .heat.on { background: rgba(255, 255, 255, .08); color: #fff; }

@media (max-width: 760px) {
  #gameBar.table { max-height: 68%; }
  .game-body { padding: 0 8px 8px; }
  .game-card p { font-size: 16.5px; }
  .votes.wyr { grid-template-columns: 1fr; }
  .game-btn { padding: 8px 14px; }
}
#app.mini #gameBar.table { max-height: 50%; }
