/* Bākas sarga stils: tumšs, neona, minimāls. Kanva aizņem visu ekrānu;
   HTML pārklājumi (izvēlne, beigas) ir tikai pāri tai. */

:root {
  --fons: #0B1020;
  --core: #F2E9D8;
  --stars: #FFD166;
  --ui: #FFFFFF;
  --akcents: #EF476F;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--fons);
  color: var(--ui);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  overscroll-behavior: none;
}

#app {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ekrans {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 209, 102, 0.06), transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(131, 56, 236, 0.08), transparent 60%),
    var(--fons);
}

.ekrans.aktiivs {
  display: flex;
}

#ekrans-spele {
  padding: 0;
  background: var(--fons);
}

#kanva {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.panelis {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.virsraksts {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--stars);
  text-shadow: 0 0 24px rgba(255, 209, 102, 0.35);
  text-transform: uppercase;
}

.apaksts {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  max-width: 380px;
  margin: 0 auto;
}

.sekcija {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
}

.modifikatori {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mod-poga {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ui);
  font-size: 13px;
  line-height: 1.35;
  padding: 12px 14px;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.mod-poga:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mod-poga.izveles {
  background: rgba(255, 209, 102, 0.14);
  border-color: var(--stars);
  color: var(--stars);
}

.poga {
  background: var(--stars);
  color: #0B1020;
  border: none;
  padding: 16px 24px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 32px rgba(255, 209, 102, 0.28);
  transition: transform 0.1s, box-shadow 0.15s;
}

.poga:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(255, 209, 102, 0.4);
}

.poga:active {
  transform: translateY(0);
}

.kontroles {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.42);
}

.kontrole {
  margin: 2px 0;
}

.liels {
  font-size: 32px;
  font-weight: 800;
  color: var(--stars);
  letter-spacing: 0.02em;
}

.rekordu {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
}

.rekordu.jauns {
  color: var(--akcents);
  font-weight: 700;
}

@media (max-width: 380px) {
  .virsraksts { font-size: 26px; }
  .liels { font-size: 26px; }
}


/* Skārienmērķi: 48 px, nevis 44 — uz robežas mērījums reizēm dod 43,99. */
button, .poga, .mod-poga { min-height: 48px; }
