:root { --hlavicka: #2a7de1; --pozadie: #eaf2fc; --pozadie2: #f6faff; }
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; } }


#ramik { position: absolute; left: 40px; top: 285px; width: 1840px; height: 760px; box-sizing: border-box; border: 8px solid #3b2a6b; border-radius: 44px; background: rgba(255, 255, 255, 0.7); z-index: 2; }

/* zakaznik, bublina a tovar */
#zakaznik { position: absolute; left: 70px; top: 520px; width: 260px; height: 330px; z-index: 4; }
#zakaznik svg { width: 100%; height: 100%; }
#zakaznik.radost { animation: skok 0.55s ease 2; }
@keyframes skok { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-40px); } }
#bublina { position: absolute; left: 90px; top: 320px; width: 460px; box-sizing: border-box; padding: 18px 26px; text-align: center; font: 900 46px/54px Inter, Arial, Helvetica, sans-serif; background: #fff; border: 7px solid #3b2a6b; border-radius: 40px; z-index: 5; }
#bublina::after { content: ""; position: absolute; left: 60px; bottom: -34px; width: 40px; height: 40px; background: #fff; border-right: 7px solid #3b2a6b; border-bottom: 7px solid #3b2a6b; transform: skewY(40deg) rotate(10deg); }
#bublina small { display: block; font: 700 30px/36px Inter, Arial, sans-serif; color: #6a5a9a; }
#tovar { position: absolute; left: 350px; top: 560px; width: 250px; height: 270px; z-index: 4; text-align: center; }
#tovar svg { width: 210px; height: 190px; display: block; margin: 0 auto; }
#tovar .cena { display: inline-block; margin-top: 8px; padding: 2px 22px; font: 900 48px/62px Inter, Arial, sans-serif; color: #fff; background: #e0402f; border: 6px solid #3b2a6b; border-radius: 22px; }

/* podnos na vydavok */
#podnos { position: absolute; left: 640px; top: 320px; width: 610px; height: 450px; box-sizing: border-box; border: 8px solid #3b2a6b; border-radius: 36px; background: #fff7d6; z-index: 3; }
#podnosNapis { position: absolute; left: 0; right: 0; top: 14px; text-align: center; font: 800 36px/44px Inter, Arial, sans-serif; color: #8a7a4a; }
#podnosMince { position: absolute; left: 20px; right: 20px; top: 66px; bottom: 16px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 10px; }
#suma { position: absolute; left: 640px; top: 790px; width: 330px; height: 90px; line-height: 90px; text-align: center; font: 900 52px/90px Inter, Arial, sans-serif; color: #3b2a6b; background: #fff; border: 7px solid #3b2a6b; border-radius: 28px; z-index: 3; }
#hotovo { position: absolute; left: 1000px; top: 790px; width: 250px; height: 90px; line-height: 76px; text-align: center; font: 900 48px/76px Inter, Arial, sans-serif; color: #fff; background: #1f9d3d; border: 7px solid #17692a; border-radius: 28px; cursor: pointer; z-index: 3; touch-action: manipulation; }
#hotovo:active { transform: scale(0.97); }
#hlaska { position: absolute; left: 640px; top: 900px; width: 610px; height: 110px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; text-align: center; font: 800 40px/46px Inter, Arial, sans-serif; color: #3b2a6b; z-index: 3; }
#hlaska.dobre { color: #1f9d3d; }
#hlaska.tip { color: #d9372b; }

/* zasuvka s peniazmi */
#zasuvka { position: absolute; left: 1290px; top: 320px; width: 560px; height: 690px; box-sizing: border-box; padding: 18px; border: 8px solid #3b2a6b; border-radius: 36px; background: #d9e4f2; z-index: 3; display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: center; gap: 14px 16px; }
.pen { cursor: pointer; touch-action: none; flex: none; display: flex; align-items: center; justify-content: center; box-sizing: border-box; font-family: Inter, Arial, sans-serif; font-weight: 900; color: #3b2a6b; filter: drop-shadow(0 5px 3px rgba(0, 0, 0, 0.3)); }
.pen:active { transform: scale(0.94); }
.minca { border-radius: 50%; border: 6px solid rgba(0, 0, 0, 0.28); }
.m1c, .m2c, .m5c { background: radial-gradient(circle at 35% 30%, #e8a06c, #b86a38); }
.m10c, .m20c, .m50c { background: radial-gradient(circle at 35% 30%, #f6dc86, #d4a436); }
.m1e { background: radial-gradient(circle, #f0d27a 0 58%, #cfd5da 59%); border-color: #a9b0b6; }
.m2e { background: radial-gradient(circle, #d7dde2 0 58%, #e6c25e 59%); border-color: #c09a2e; }
.bankovka { border-radius: 10px; border: 5px solid rgba(0, 0, 0, 0.22); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.3); }
.b5 { background: linear-gradient(135deg, #b9c1c5, #8f999e); }
.b10 { background: linear-gradient(135deg, #f0705f, #c9372b); }
.b20 { background: linear-gradient(135deg, #5b9bec, #2a66c4); }
#podnosMince .pen { filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.3)); }
