/* Transparentné pozadie — v OBS Browser Source uvidíš len obsah, nie biely obdĺžnik */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: transparent;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #fff;
  overflow: hidden;
  width: 1920px;
  height: 1080px;
}

.hidden { display: none !important; }

/* Samostatný reveal zdroj: vyplní celý zdroj (nie fixných 1920×1080), nech sa dá umiestniť kamkoľvek */
body.revealonly { width: 100vw; height: 100vh; }
.reveal-fit { transform-origin: center center; }

/* prompt na odomknutie zvuku – nenápadný, dole v strede */
.sound-hint {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  background: rgba(15,16,28,.9); color: #ffe9a8; border: 2px solid rgba(255,210,74,.6);
  padding: 12px 22px; border-radius: 30px; font-size: 20px; font-weight: 700;
  cursor: pointer; z-index: 50; animation: hintpulse 1.4s ease-in-out infinite;
}
@keyframes hintpulse { 0%,100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.05); } }

.panel {
  position: absolute;
  background: rgba(15, 16, 28, 0.82);
  border: 2px solid rgba(120, 90, 255, 0.55);
  border-radius: 16px;
  padding: 18px 22px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.label {
  font-size: 15px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #b9a8ff;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* Aktuálna objednávka — dole vľavo */
.current { left: 40px; bottom: 40px; min-width: 360px; }
.current .name { font-size: 38px; font-weight: 800; }
.current .items { font-size: 20px; color: #cdd2ff; margin-top: 4px; }

/* Fronta — vpravo hore */
.queue { right: 40px; top: 40px; min-width: 280px; }
.queue ol { list-style: none; }
.queue li { font-size: 22px; padding: 5px 0; color: #e7e9ff; display: flex; gap: 10px; }
.queue li .pos { color: #7c6bff; font-weight: 800; }

/* Battle — vľavo hore */
.battle { left: 40px; top: 40px; min-width: 340px; border-color: rgba(255, 90, 90, 0.6); }
.battle .label { color: #ff9b9b; }
.battle .pool {
  font-size: 30px; font-weight: 900; color: #7dff9b; margin-bottom: 10px;
  text-shadow: 0 0 16px rgba(125,255,155,.4);
}
.battle .pool .pool-cap { font-size: 13px; color: #9aa0c8; letter-spacing: 2px; display: block; font-weight: 700; }
.battle .leader {
  font-size: 24px; font-weight: 800; padding: 10px 12px; margin-bottom: 10px;
  background: linear-gradient(90deg, rgba(255,180,0,.25), transparent);
  border-left: 4px solid gold; border-radius: 8px;
}
.battle ol { list-style: none; }
.battle li { font-size: 20px; padding: 4px 0; display: flex; justify-content: space-between; gap: 14px; }
.battle li .val { color: #ffd479; font-weight: 700; }

/* HIT REVEAL — cez stred, veľká animácia */
.reveal {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.reveal-card { text-align: center; animation: pop 0.6s cubic-bezier(.2,1.5,.4,1) both; }
.reveal-burst {
  position: absolute; left: 50%; top: 50%; width: 600px; height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,215,0,.45), transparent 60%);
  animation: burst 1.2s ease-out both; z-index: -1;
}
.reveal-imgwrap {
  position: relative; display: inline-block; margin: 0 auto 14px;
  border-radius: 14px; overflow: hidden;
  animation: cardin 0.45s cubic-bezier(.2,1.4,.4,1) both, cardfloat 3s ease-in-out .45s infinite;
}
.reveal-img {
  display: block; max-height: 420px; max-width: 320px;
  border-radius: 14px;
  filter: drop-shadow(0 0 26px rgba(255,215,0,.55)) drop-shadow(0 8px 20px rgba(0,0,0,.6));
}
/* holografický lesk – šikmý pruh prejde cez kartu */
.reveal-shine {
  position: absolute; top: -60%; left: -80%; width: 60%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent);
  transform: rotate(18deg);
  animation: shine-sweep 1s ease-in-out .3s 2;
}
@keyframes shine-sweep { 0% { left: -80%; } 100% { left: 160%; } }
@keyframes cardin { from { transform: translateY(30px) scale(.8) rotate(-4deg); opacity: 0; }
  to { transform: translateY(0) scale(1) rotate(0); opacity: 1; } }
@keyframes cardfloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* BIG HIT odznak + zatrasenie */
.big-tag {
  display: none; font-size: 26px; font-weight: 900; letter-spacing: 2px;
  color: #1a1230; background: linear-gradient(90deg,#ffd24a,#fff3b0,#ffd24a);
  padding: 6px 20px; border-radius: 30px; margin: 0 auto 14px; width: fit-content;
  box-shadow: 0 0 24px rgba(255,210,74,.8); animation: bigpulse .8s ease-in-out infinite;
}
.reveal.big .big-tag { display: block; }
.reveal.big .reveal-card { animation: pop .6s cubic-bezier(.2,1.5,.4,1) both, shake .5s .35s both; }
@keyframes bigpulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes shake { 10%,90% { transform: translateX(-2px); } 20%,80% { transform: translateX(4px); }
  30%,50%,70% { transform: translateX(-8px); } 40%,60% { transform: translateX(8px); } }

/* konfety */
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i {
  position: absolute; top: -20px; width: 10px; height: 14px; opacity: 0;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  0% { transform: translateY(-20px) rotate(0); opacity: 1; }
  100% { transform: translateY(1120px) rotate(720deg); opacity: 1; }
}
.reveal-name { font-size: 30px; font-weight: 700; color: #ffe9a8; text-shadow: 0 2px 12px #000; }
.reveal-hit { font-size: 46px; font-weight: 800; color: #fff;
  text-shadow: 0 0 22px gold, 0 3px 12px #000; margin: 2px 0 4px; }
.reveal-value {
  font-size: 120px; font-weight: 900; color: #7dff9b; line-height: 1;
  text-shadow: 0 0 40px rgba(125,255,155,.7), 0 4px 18px #000;
}

@keyframes pop { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes burst { from { transform: translate(-50%,-50%) scale(0.2); opacity: .9; }
  to { transform: translate(-50%,-50%) scale(1.6); opacity: 0; } }

/* ===== Víťazný reveal (finále battlu) ===== */
.reveal-congrats { font-size: 30px; font-weight: 900; letter-spacing: .04em;
  color: #ffe07a; text-shadow: 0 0 24px rgba(255,207,74,.7); margin-bottom: 8px;
  animation: pop .5s ease both; }
.reveal-loot { margin-top: 8px; font-size: 26px; font-weight: 800; color: #63e58e;
  text-shadow: 0 0 18px rgba(99,229,142,.5); }
.reveal.winner .reveal-card { border-color: rgba(255,207,74,.85); box-shadow: 0 0 60px rgba(255,207,74,.5); }
.reveal.winner .reveal-name { color: #fff; }
