:root { --hlavicka: #1f7a4a; --pozadie: #2f8a5a; --pozadie2: #256f48; }
html, body, div, span, h1, h2, h3, h4, h5, h6 {
  border: 0;
  outline: 0;
}

body, div, p {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  background-color: black;
  font-size: 11px;
  overflow: hidden;
  padding: 0;
  width: 1920px;
  height: 1080px;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

#container {
  position: relative;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--hlavicka) 0, var(--hlavicka) 190px, var(--pozadie) 190px, var(--pozadie2) 100%);
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: #3b2a6b;
}

#navrat {
  position: absolute;
  top: 35px;
  left: 50px;
  z-index: 40;
  width: 120px;
  height: 120px;
  background-image: url('../images/navrat.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#btn_reset {
  position: absolute;
  left: 220px;
  top: 35px;
  height: 120px;
  width: 120px;
  z-index: 40;
  background-image: url('../images/reload.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#napis {
  position: absolute;
  left: 560px;
  top: 25px;
  height: 140px;
  width: 800px;
  z-index: 40;
}

#hviezdy {
  position: absolute;
  right: 60px;
  top: 50px;
  z-index: 40;
  padding: 0 34px;
  height: 90px;
  font: 900 64px/90px Inter, Arial, Helvetica, sans-serif;
  color: #3b2a6b;
  background: rgba(255, 255, 255, 0.85);
  border: 6px solid #3b2a6b;
  border-radius: 45px;
}
#hviezdy::before {
  content: "\2605";
  color: #ff9d00;
  -webkit-text-stroke: 2px #3b2a6b;
  margin-right: 14px;
}

#zadanie { position: absolute; left: 60px; top: 208px; width: 1200px; white-space: nowrap; overflow: hidden; font: 900 54px/66px Inter, Arial, Helvetica, sans-serif; }

/* pokrok k odznaku: 5 bodiek */
#pokrok { position: absolute; right: 70px; top: 214px; width: 560px; display: flex; justify-content: flex-end; gap: 16px; }
#pokrok span { width: 54px; height: 54px; box-sizing: border-box; border: 6px solid #3b2a6b; border-radius: 50%; background: #fff; transition: background-color 0.3s ease, transform 0.3s ease; }
#pokrok span.hotovo { background: #ffb000; transform: scale(1.15); }

/* odznak po 5 spravnych */
#odznak {
  position: absolute;
  left: 560px;
  top: 300px;
  width: 800px;
  box-sizing: border-box;
  padding: 36px 20px 40px;
  text-align: center;
  font: 900 72px/84px Inter, Arial, Helvetica, sans-serif;
  color: #3b2a6b;
  background: #fff6c9;
  border: 10px solid #ffb000;
  border-radius: 60px;
  box-shadow: 0 16px 0 rgba(0, 0, 0, 0.25);
  z-index: 60;
  display: none;
  animation: hIn 0.5s ease;
}
#odznak .hviezda { display: block; margin: 0 auto 10px; width: 160px; height: 160px; }
@keyframes hIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }


#stol { position: absolute; left: 30px; top: 205px; width: 1860px; height: 855px; border-radius: 60px; background: radial-gradient(ellipse at 50% 45%, #3da06b, #2a7f53 70%); border: 8px solid #174d33; box-sizing: border-box; z-index: 1; }
#psik { position: absolute; left: 40px; top: 225px; width: 310px; height: 450px; z-index: 3; }
#psik img { width: 100%; height: 100%; object-fit: contain; }
#psik.radost { animation: skok 0.5s ease 2; }
@keyframes skok { 0%, 100% { margin-top: 0; } 50% { margin-top: -30px; } }
#sup { position: absolute; left: 330px; top: 225px; width: 350px; height: 260px; z-index: 5; }
#sup .n { position: absolute; left: 0; right: 0; bottom: -6px; text-align: center; font: 900 40px/46px Inter, Arial, sans-serif; color: #fff; text-shadow: 0 3px 0 #174d33; }
.karta { position: absolute; width: 170px; height: 278px; border-radius: 12px; box-shadow: 0 6px 10px rgba(0, 0, 0, 0.45); background-size: 100% 100%; touch-action: manipulation; }
.karta img { width: 100%; height: 100%; display: block; border-radius: 12px; pointer-events: none; }
.sup { width: 124px; height: 203px; top: 20px; }
#balik, #odhod { position: absolute; top: 250px; width: 170px; height: 278px; z-index: 3; }
#balik { left: 700px; cursor: pointer; }
#odhod { left: 1050px; }
#balik .karta { box-shadow: 3px 3px 0 #1c1c1c, 6px 6px 0 #3c3c3c, 9px 9px 0 #1c1c1c, 0 10px 12px rgba(0, 0, 0, 0.5); }
@keyframes poloz { from { transform: translateY(-80px) scale(1.2); opacity: 0.4; } to { transform: none; opacity: 1; } }
#farba { position: absolute; left: 1290px; top: 330px; width: 130px; height: 130px; z-index: 3; display: none; background: #fff; border: 6px solid #3b2a6b; border-radius: 50%; padding: 18px; box-sizing: border-box; }
#farba svg { width: 100%; height: 100%; }
#trest { position: absolute; left: 1290px; top: 240px; z-index: 6; min-width: 120px; height: 70px; padding: 0 26px; line-height: 70px; box-sizing: border-box; text-align: center; font: 900 46px/62px Inter, Arial, sans-serif; color: #fff; background: #e0402f; border: 6px solid #3b2a6b; border-radius: 35px; display: none; }
#ruka { position: absolute; left: 0; top: 690px; width: 1920px; height: 340px; z-index: 4; }
#ruka .karta { top: 0; width: 200px; height: 326px; cursor: pointer; touch-action: none; transition: transform 0.15s ease, left 0.25s ease; }
#ruka .karta.ok:hover, #ruka .karta.ok:active { transform: translateY(-26px); }
#ruka .karta.ok { transform: translateY(-14px); }
#ruka .karta.nie { filter: brightness(0.55); }
#hlaska { position: absolute; left: 420px; top: 560px; width: 1080px; height: 50px; line-height: 50px; text-align: center; font: 900 40px/50px Inter, Arial, sans-serif; color: #fff; text-shadow: 0 3px 0 #174d33; z-index: 7; }
#pravidla { position: absolute; right: 70px; top: 250px; width: 340px; padding: 14px 20px; box-sizing: border-box; font: 800 28px/38px Inter, Arial, sans-serif; color: #fff; background: rgba(0, 0, 0, 0.25); border-radius: 24px; z-index: 3; }
#vyber { position: absolute; left: 560px; top: 420px; width: 800px; height: 280px; z-index: 30; display: none; background: #fff; border: 8px solid #3b2a6b; border-radius: 48px; padding: 20px; box-sizing: border-box; text-align: center; font: 900 42px/50px Inter, Arial, sans-serif; color: #3b2a6b; }
#vyber .btns { display: flex; justify-content: center; gap: 24px; margin-top: 16px; }
#vyber .fb { width: 150px; height: 150px; border-radius: 28px; border: 6px solid #3b2a6b; background: #f4f0ff; padding: 20px; box-sizing: border-box; cursor: pointer; touch-action: manipulation; }
#vyber .fb:active { transform: scale(0.94); }
#vyber .fb svg { width: 100%; height: 100%; }

#btn_pravidla { position: absolute; left: 390px; top: 35px; width: 120px; height: 120px; box-sizing: border-box; border: 8px solid #fff; border-radius: 50%; color: #fff; font: 900 80px/100px Inter, Arial, sans-serif; text-align: center; cursor: pointer; z-index: 40; touch-action: manipulation; }
#btn_pravidla:active { transform: scale(0.94); }
#okno { position: absolute; left: 160px; top: 215px; width: 1600px; height: 830px; box-sizing: border-box; padding: 26px 50px; background: #fff; border: 9px solid #3b2a6b; border-radius: 56px; z-index: 50; display: none; color: #3b2a6b; font-family: Inter, Arial, sans-serif; }
#okno h2 { margin: 0 0 8px; font: 900 64px/76px Inter, Arial, sans-serif; text-align: center; }
#okno .r { display: flex; align-items: center; gap: 24px; margin: 4px 0; min-height: 128px; font: 800 38px/46px Inter, Arial, sans-serif; }
#okno .r .k { flex: none; display: flex; gap: 8px; width: 330px; }
#okno .r img { height: 124px; width: auto; border-radius: 9px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); }
#okno .ok { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); min-width: 340px; padding: 0 40px; height: 90px; line-height: 76px; text-align: center; font: 900 50px/76px Inter, Arial, sans-serif; color: #fff; background: #1f9d3d; border: 7px solid #17692a; border-radius: 30px; cursor: pointer; touch-action: manipulation; }

#ruka .karta.tahane { transition: none; z-index: 100; box-shadow: 0 16px 24px rgba(0,0,0,.5); }
#ruka .karta.spat { transition: transform 0.25s ease; }

.tah1 #psik img { filter: drop-shadow(0 0 22px #ffe600) drop-shadow(0 0 8px #fff); }
.tah0 #stol { box-shadow: inset 0 -18px 22px -10px rgba(255, 230, 0, 0.65); }

/* Vojna */
#balikPsik, #balikHrac { position: absolute; width: 170px; height: 278px; z-index: 3; }
#balikPsik { left: 400px; top: 250px; }
#balikHrac { left: 875px; top: 705px; cursor: pointer; touch-action: manipulation; }
#balikHrac.moze { animation: kyv 1s ease-in-out infinite; }
@keyframes kyv { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
#balikPsik .karta, #balikHrac .karta { box-shadow: 3px 3px 0 #1c1c1c, 6px 6px 0 #3c3c3c, 9px 9px 0 #1c1c1c, 0 10px 12px rgba(0, 0, 0, 0.5); }
#skorePsik, #skoreHrac { position: absolute; z-index: 4; min-width: 230px; padding: 0 24px; height: 70px; line-height: 56px; text-align: center; box-sizing: border-box; font: 900 40px/56px Inter, Arial, sans-serif; color: #3b2a6b; background: #fff; border: 6px solid #3b2a6b; border-radius: 35px; }
#skorePsik { left: 370px; top: 550px; }
#skoreHrac { left: 1100px; top: 800px; }
.slot { position: absolute; top: 275px; width: 190px; height: 311px; border: 6px dashed rgba(255, 255, 255, 0.45); border-radius: 18px; box-sizing: border-box; z-index: 2; }
#slotPsik { left: 760px; }
#slotHrac { left: 1030px; }
.slot .karta { width: 190px; height: 311px; left: -6px; top: -6px; }
.slot .karta.vyhra { box-shadow: 0 0 0 8px #ffe600, 0 0 40px 10px rgba(255, 230, 0, 0.8); }
#pot { position: absolute; left: 945px; top: 400px; z-index: 6; min-width: 70px; height: 62px; line-height: 48px; padding: 0 18px; box-sizing: border-box; text-align: center; font: 900 40px/48px Inter, Arial, sans-serif; color: #fff; background: #e0402f; border: 6px solid #3b2a6b; border-radius: 31px; display: none; transform: translateX(0); }
#hlaska { top: 610px !important; left: 420px; }
#pravidla { top: 250px !important; }
