/* Durak-only styles (loaded after shared/style.css). */

/* ---- announcer ---- */
.felt { position: relative; }
.vic { position: absolute; left: 8px; right: 8px; top: 6px; z-index: 4; display: flex; align-items: flex-start; gap: .4rem;
  padding: .35rem .6rem .35rem .4rem; border-radius: 14px; background: #120d20e6; border: 1px solid #ffffff22;
  box-shadow: 0 6px 18px #0008; color: #fff; font-size: .8rem; line-height: 1.25; pointer-events: none;
  opacity: 0; transform: translateY(-8px) scale(.97); transition: opacity .25s, transform .25s; }
.vic.on { opacity: 1; transform: none; animation: vicin .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes vicin { from { transform: translateY(-10px) scale(.9); } }
.vic .mic { font-size: 1.05rem; flex: none; filter: drop-shadow(0 1px 2px #000); animation: mic 1.2s ease-in-out infinite; }
@keyframes mic { 50% { transform: rotate(-12deg) scale(1.08); } }
.vic .vt { font-family: var(--fun); font-weight: 500; }

/* ---- the round that just ended, held then swept away ---- */
.fx-resolve { position: fixed; z-index: 30; pointer-events: none; display: flex; }
.fx-resolve .table-cards { width: 100%; height: 100%; }
.fx-verdict { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; z-index: 2;
  font-family: var(--fun); font-weight: 700; font-size: clamp(1.4rem, 7vw, 2.1rem); padding: .15em .6em; border-radius: 14px;
  color: #fff; text-shadow: 0 2px 0 #0008; box-shadow: 0 8px 24px #000a; animation: verdict .5s cubic-bezier(.3, 1.7, .5, 1) .15s both; }
.fx-verdict.beaten { background: linear-gradient(180deg, #4da3ff, #2b6fc0); }
.fx-verdict.took { background: linear-gradient(180deg, #ff6b9a, #c43c6c); }
.fx-verdict.bye { animation: verdictbye .35s ease-in forwards; }
@keyframes verdict { from { transform: translate(-50%, -50%) scale(.2) rotate(-10deg); opacity: 0; } }
@keyframes verdictbye { to { transform: translate(-50%, -80%) scale(.8); opacity: 0; } }

/* ---- dealing ---- */
.fx-back { position: fixed; z-index: 31; pointer-events: none; width: var(--cw); height: var(--ch); border-radius: 7px; border: 2px solid #fff;
  background: repeating-linear-gradient(45deg, #e0457b, #e0457b 4px, #a92b5a 4px, #a92b5a 8px); box-shadow: 0 4px 10px #0008; }
.hand .pc.incoming { visibility: hidden; }

/* ---- comic stickers ---- */
.fx-sticker { position: fixed; z-index: 45; pointer-events: none; font-size: 64px; line-height: 1; transform: translate(-50%, -50%);
  filter: drop-shadow(0 6px 10px #000a); animation: sticker 1.45s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes sticker {
  0%   { transform: translate(-50%, -50%) scale(0) rotate(-30deg); opacity: 0; }
  20%  { transform: translate(-50%, -50%) scale(1.35) rotate(10deg); opacity: 1; }
  35%  { transform: translate(-50%, -50%) scale(1) rotate(-6deg); }
  50%  { transform: translate(-50%, -50%) scale(1.06) rotate(4deg); }
  80%  { transform: translate(-50%, -70%) scale(1) rotate(0); opacity: 1; }
  100% { transform: translate(-50%, -110%) scale(.8); opacity: 0; } }

/* ---- Done button with an auto-pass timer ---- */
.donebtn { position: relative; overflow: hidden; }
.donebtn .timer { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: #0006; transform-origin: left;
  animation-name: drain; animation-timing-function: linear; animation-fill-mode: both; }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.pile .deckinfo { font-size: .62rem; opacity: .75; }

/* ---- action row: sort toggle · buttons · reactions ---- */
.dk-actions { justify-content: space-between; gap: .4rem; position: relative; }
.dk-actions .mid { display: flex; gap: .5rem; justify-content: center; flex: 1; min-width: 0; }
.dk-actions .tool { flex: none; padding: .35em .6em; font-size: .78rem; border-radius: 999px; background: #ffffff0d; }
.dk-actions #emo { font-size: 1.05rem; padding: .2em .45em; }
.dk-actions .tool-sp { width: 1px; }
.dk-emotes { position: fixed; left: 50%; bottom: calc(var(--ch, 90px) + 70px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 8px; width: min(92vw, 340px);
  background: #2e2548f2; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px #000a; animation: up .18s ease-out; }
.dk-emotes[hidden] { display: none; }
.dk-emotes button { font-size: 1.55rem; width: 46px; height: 46px; padding: 0; border-radius: 12px; background: #ffffff10; border: none; }
.fx-emote { position: fixed; z-index: 46; pointer-events: none; font-size: 2.4rem; line-height: 1; transform: translate(-50%, -50%);
  filter: drop-shadow(0 4px 8px #000a); animation: fxemote 2.6s ease-out forwards; }
@keyframes fxemote {
  0%   { transform: translate(-50%, -30%) scale(.2); opacity: 0; }
  14%  { transform: translate(-50%, -60%) scale(1.35); opacity: 1; }
  24%  { transform: translate(-50%, -60%) scale(1) rotate(-8deg); }
  36%  { transform: translate(-50%, -70%) rotate(8deg); }
  80%  { opacity: 1; }
  100% { transform: translate(-50%, -190%) scale(.9); opacity: 0; } }
