:root { --hlavicka: #e8478f; --pozadie: #fdeef5; --pozadie2: #fff8fb; }
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; }
#ciel { position: absolute; left: 80px; top: 310px; width: 1760px; height: 110px; z-index: 6; }
#cielObr { position: absolute; left: 0; top: 0; width: 130px; height: 110px; }
#cielObr svg { width: 100%; height: 100%; }
#cielText { position: absolute; left: 150px; top: 0; width: 540px; height: 110px; line-height: 110px; white-space: nowrap; font: 900 46px/110px Inter, Arial, sans-serif; color: #3b2a6b; }
#meter { position: absolute; left: 700px; top: 20px; width: 1040px; height: 70px; box-sizing: border-box; border: 7px solid #3b2a6b; border-radius: 35px; background: #fff; overflow: hidden; }
#naplnenie { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #ffb000, #ffd23f); transition: width 0.35s ease; }
#meterText { position: absolute; left: 0; right: 0; top: 0; text-align: center; font: 900 40px/56px Inter, Arial, sans-serif; color: #3b2a6b; }
#pole { position: absolute; left: 48px; top: 430px; width: 1824px; height: 607px; overflow: hidden; z-index: 4; touch-action: none; border-radius: 0 0 36px 36px; }
#prasa { position: absolute; left: 0; top: 0; width: 260px; height: 210px; will-change: transform; }
#prasa svg { width: 100%; height: 100%; }
.pad { position: absolute; left: 0; top: 0; will-change: transform; }
.pad .pen { filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.3)); }
.pen { display: flex; align-items: center; justify-content: center; box-sizing: border-box; font-family: Inter, Arial, sans-serif; font-weight: 900; color: #3b2a6b; }
.minca { border-radius: 50%; border: 6px solid rgba(0, 0, 0, 0.28); }
.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; }
.sladkost svg { width: 90px; height: 110px; display: block; }
#hlaska { position: absolute; left: 0; right: 0; top: 40px; text-align: center; font: 900 56px/66px Inter, Arial, sans-serif; color: #d9372b; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; text-shadow: 0 3px 0 #fff, 0 -3px 0 #fff, 3px 0 0 #fff, -3px 0 0 #fff; }
#hlaska.vidno { opacity: 1; }
#hlaska.dobre { color: #1f9d3d; }
#prasa.radost { animation: skok 0.5s ease 2; }
@keyframes skok { 0%, 100% { margin-top: 0; } 50% { margin-top: -40px; } }
