:root { --hlavicka: #d98a00; --pozadie: #fff3d6; --pozadie2: #fffaf0; }
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; }
#pole { position: absolute; left: 90px; top: 325px; width: 880px; height: 660px; z-index: 4; touch-action: none; background: #7a4a2a; border: 8px solid #3b2a6b; border-radius: 28px; box-sizing: content-box; margin: -8px; overflow: hidden; background-image: linear-gradient(45deg, rgba(255,255,255,.07) 25%, transparent 25% 75%, rgba(255,255,255,.07) 75%), linear-gradient(45deg, rgba(255,255,255,.07) 25%, transparent 25% 75%, rgba(255,255,255,.07) 75%); background-size: 220px 220px; background-position: 0 0, 110px 110px; }
.dlazdica { position: absolute; width: 110px; height: 110px; box-sizing: border-box; padding: 8px; transition: left 0.25s ease, top 0.28s ease, transform 0.2s ease, opacity 0.2s ease; touch-action: none; cursor: pointer; }
.dlazdica svg { width: 100%; height: 100%; display: block; pointer-events: none; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.35)); }
.dlazdica.vybrata { transform: scale(1.15); z-index: 3; }
.dlazdica.moz { transition: left 0.25s ease, top 0.25s ease, transform 0.25s ease, opacity 0.25s ease; transform: scale(0); opacity: 0; }
.dlazdica.trasie { animation: tr 0.3s ease; }
@keyframes tr { 0%, 100% { margin-left: 0; } 25% { margin-left: -10px; } 75% { margin-left: 10px; } }
#panel { position: absolute; left: 1050px; top: 318px; width: 780px; height: 676px; z-index: 4; box-sizing: border-box; padding: 30px 40px; background: #fff; border: 8px solid #3b2a6b; border-radius: 40px; text-align: center; font-family: Inter, Arial, sans-serif; color: #3b2a6b; }
#pLevel { font: 900 40px/48px Inter, Arial, sans-serif; color: #b87000; }
#pCiel { font: 900 56px/70px Inter, Arial, sans-serif; margin-top: 8px; }
#pMeter { margin: 22px auto 0; width: 640px; height: 54px; box-sizing: border-box; border: 7px solid #3b2a6b; border-radius: 27px; background: #fff; overflow: hidden; position: relative; }
#pNapln { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #ffb000, #ffd23f); transition: width 0.4s ease; }
#pBody { font: 900 90px/110px Inter, Arial, sans-serif; margin-top: 18px; }
#pTahy { font: 800 48px/60px Inter, Arial, sans-serif; margin-top: 4px; color: #6a5a9a; }
#hlaska { margin-top: 28px; min-height: 120px; display: flex; align-items: center; justify-content: center; font: 900 50px/58px Inter, Arial, sans-serif; color: #1f9d3d; }
#hlaska.zle { color: #d9372b; }
