/* =========================
   GLOBAL RESET
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #3b342f;
  color: #000;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;

}

/* =========================
   ZMIENNE GLOBALNE
   ========================= */

:root {
  --bottom-bar-height: 72px;
  --top-bar-height: 56px;
  --accent-color: #f28c18;
  --link-color: #956B39;
}

/* =========================
   EKRANY (SPA)
   ========================= */

.screen {
  display: none;
  height: calc(100vh - var(--bottom-bar-height));
  padding: 16px;
  overflow-y: auto;
  position: relative;
  padding-top: 60px!important;
  padding-bottom: 80px!important;
}

.screen.active {
  display: block;
}

#wprowadzenie,
#przebieggry,
#instrukcja,
#wskazowka,
#miejsca,
#pieczec_open,
#pieczec_task,
#pomoc,
#certyfikat,
#menu,
#ustawienia,
#o_wydawcy,
#o_wersji,
#prawne,
#instaluj {
  background: #f7eedf;
}


/* =========================
   główne img (SPA)
   ========================= */

.hero-img, .hero-img-small {
    width: 100%;
    max-width: 320px;
    display: block;
    margin: 0 auto 10px;
}
.logo-img, .logo-img-small {
    width: 100%;
    max-width: 320px;
    display: block;
    margin: 0px auto 10px;
}

/* =========================
   TOP BAR
   ========================= */

.top-bar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  background: #3b342f;
  z-index: 100;
}

.top-btn {
  background: none;
  border: none;
  padding: 0;
}

.coin-btn img {
  height: 36px;
}

.menu-btn {
  font-size: 22px;
  color: #e6d5b8;
}


/* DOLNE MENU */

.bottom-menu {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 72px;

  background: #e6d5b8;

  display: flex;
  justify-content: space-around;
  align-items: center;

  border-top: 1px solid #c9b89b;
}

.bottom-btn {
  flex: 1;
  height: 72px;
  background: none;
  border: none;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  font-size: 10px;
  color: #000;
}

.bottom-btn img {
  height: 44px;
  margin-bottom: -3px;
}

.bottom-btn.active {
  opacity: 0.6;
  color: #f28c18;
  border-radius: 999px;
}

.bottom-btn svg {
  margin-bottom: 4px;
}

/**menu top**/
#topMenu{background: #FAF9F7!important;padding:8px; margin:2px;border:none!important;}
#topMenu button.top-back-btn{display:none!important;}
.top-back-btn{background:none;border:none;position: absolute;margin-top:2px;}
.top-menu-btn{background:none;border:none;}
.danein{display:flex;justify-content: space-around; margin-bottom:6px;}
.top-back {
    top: 0px;
    left: 12px;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
}

#cert-name{height:40px; width:100%;border:none;text-align:center;font-size:24px;
box-sizing: border-box;margin-bottom:16px;background:#f5f5f5;padding:5px;}

.top-back img {
    width: 62px;
    height: 32px;
    opacity: 0.85;
    transition: 0.2s;
}

.top-back img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* =========================
   PRZYCISKI
   ========================= */

button {
  cursor: pointer;
}

/* ===== MAPA FULLSCREEN ===== */

.map-screen {
  padding: 0;
}

/* obszar roboczy mapy */
#map-wrapper {
  position: fixed;
  top: var(--top-bar-height);
  bottom: var(--bottom-bar-height);
  left: 0;
  right: 0;

  overflow-y: auto;
  overflow-x: auto;
  background: #000;
  margin-top: 8px !important;
  overscroll-behavior: contain;
}


/* kontener mapy */
#map-inner {
  position: relative;
  width: 100%;
  transform-origin: top left;
}

#map-image {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.map-point:active {
  transform: translate(-50%, -50%) scale(0.9);
}





/* =========================
   KONTROLKI MAPY
   ========================= */

#map-controls {
  position: fixed;
  right: 12px;
  top: calc(var(--top-bar-height) + 24px);
  display: flex;
  flex-direction: row;
  gap: 0;
  z-index: 120;
  overflow: hidden;
  border: 1px solid rgba(36, 36, 36, 0.32);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

#map-controls button {
  width: 40px;
  height: 40px;
  font-size: 20px;
  font-weight: 400;
  border: 0;
  border-left: 1px solid rgba(36, 36, 36, 0.22);
  background: #ececec;
  color: #1f1b17;
  line-height: 1;
}

#map-controls button:active {
  background: #d8d8d8;
}

#map-controls button:first-child {
  border-left: 0;
}

#map-controls .map-reset-btn {
  font-size: 18px;
}

/* =========================
   PUNKTY NA MAPIE
   ========================= */

.map-point {
  position: absolute;
  width: 17px;
  height: 17px;
  cursor: pointer;
  border-radius: 50%;
  background: #000;
  border: 2px solid var(--accent-color);
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease;
}

/* ODBITA PIECZĘĆ */
.map-point.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

/* ===============================
   CERTYFIKAT – SIATKA PIECZĘCI
   =============================== */

.journal-screen {
  background: #f7eedf;
  color: #000;
}

#certyfikat.journal-screen {
  padding: 84px 22px 110px !important;
}

.journal-title {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
}

.journal-lead {
  margin: 0 0 42px;
  padding: 0;
  font-size: 18px;
  line-height: 1.25;
}

.journal-cert-btn {
  margin-bottom: 18px;
}

.journal-cert-panel {
  margin: 0 0 30px;
}

.certificate-history {
  margin: 0 0 44px;
}

.certificate-history-empty {
  margin: -8px 0 0;
  color: #6f6254;
  font-size: 14px;
  line-height: 1.35;
}

.certificate-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #d6c9b7;
}

.certificate-history-item strong,
.certificate-history-item span,
.certificate-history-item small {
  display: block;
}

.certificate-history-item strong {
  font-size: 14px;
  font-weight: 800;
}

.certificate-history-item span {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 600;
}

.certificate-history-item small {
  margin-top: 3px;
  color: #6f6254;
  font-size: 12px;
  line-height: 1.25;
}

.certificate-history-btn {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #bdb19f;
  border-radius: 6px;
  background: #fbf7ef;
  color: #2d241d;
  font: 600 12px "DM Sans", sans-serif;
}

.btn.disabled,
.btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.journal-section-title {
  margin: 0 0 22px;
  padding-bottom: 8px;
  border-bottom: 2px solid #d6c9b7;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(6, 57.5px);
  justify-content: center;
  gap: 12px 0;
  max-width: 345px;
  margin: 0 auto 54px;
}

/* pojedyncze pole certyfikatu */
.cert-slot {
  grid-column: span 2;
  width: 115px;
  min-width: 0;
  height: 115px;
  aspect-ratio: 1;
  border: 4px solid #bdb19f;
  border-radius: 50%;
  background: #f1eadf;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #bdb19f;
  box-sizing: border-box;
  overflow: hidden;
}

.cert-slot:nth-child(1),
.cert-slot:nth-child(6) {
  grid-column-start: 1;
}

.cert-slot:nth-child(2),
.cert-slot:nth-child(7) {
  grid-column-start: 3;
}

.cert-slot:nth-child(3),
.cert-slot:nth-child(8) {
  grid-column-start: 5;
}

.cert-slot:nth-child(4),
.cert-slot:nth-child(9) {
  grid-column-start: 2;
}

.cert-slot:nth-child(5),
.cert-slot:nth-child(10) {
  grid-column-start: 4;
}

/* numer pieczęci (gdy brak) */
.cert-slot span {
  opacity: 0.8;
  font-family: inherit;
}


/* zdobyta pieczęć */
.cert-slot.filled {
  background: #fff;
  border-color: #F28C18;
  padding: 0;
}

/* obraz pieczęci */
.cert-slot.filled img {
  width: 108%;
  height: 108%;
  object-fit: contain;
}

#certyfikat {
  padding-bottom: calc(20px + var(--bottom-bar-height));
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px 18px;
  max-width: 430px;
  margin: 0 auto 36px;
}

.badge-tile {
  opacity: 0.4;
  text-align: center;
}

.badge-tile.earned {
  opacity: 1;
}

.badge-tile img {
  width: 100%;
  max-width: 118px;
  aspect-ratio: 1;
  object-fit: contain;
}

.badge-tile span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.15;
}

.badge-tile.featured {
  grid-column: 1 / -1;
}

.badge-tile.featured img {
  max-width: 190px;
}

.badge-tile.featured span {
  font-size: 16px;
}


/* =========================
   UKRYWANIE
   ========================= */

.hidden {
  display: none !important;
}

.audio-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.audio-btn {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 2px solid #b27d31;
  border-radius: 50%;
  background: #f9f3dc;
  color: #000;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.audio-btn img {
  width: 26px;
  height: 26px;
}

.audio-btn.active {
  background: #b27d31;
  color: #fff;
}

.audio-btn.active img {
  filter: brightness(0) invert(1);
}

/* =========================
   USTAWIENIA
   ========================= */

.settings-screen {
  background: #f7eedf;
  color: #000;
}

.settings-title {
  margin: 18px 0 20px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.audio-settings-panel {
  width: 100%;
  max-width: 430px;
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid #c9b89b;
  border-radius: 10px;
  background: #f9f3dc;
}

.audio-settings-panel h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.settings-toggle,
.settings-range {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  font-size: 15px;
}

.settings-toggle input {
  width: 22px;
  height: 22px;
  accent-color: #b27d31;
}

.settings-range {
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.settings-range input {
  width: 100%;
  accent-color: #b27d31;
}

.soft-btn,
.settings-btn {
  width: 100%;
  min-height: 46px;
  align-content:center;
  padding: 12px 14px;
  border: 1px solid #c9b89b;
  border-radius: 10px;
  background: #f9f3dc;
  color: #3b342f;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  box-shadow: none;
  margin-top: 0;
}

.soft-btn:active,
.settings-btn:active {
  opacity: 0.7;
}

.soft-btn {
  display: block;
  width: 80%;
  margin: 16px auto 0;
  text-align: center;
}

.settings-list .settings-btn {
  margin: 0;
}

.settings-btn.danger {
  border-color: #c98b8b;
  color: #9e2f2f;
  box-shadow: none;
}

.settings-btn.update {
  border-color: #7da985;
  background: #edf7ee;
  color: #2f6f3b;
  font-weight: 600;
}

.version-update-btn {
  display: block;
  max-width: 430px;
  margin: 18px auto 10px;
  text-align: center;
}

.version-update-note {
  max-width: 430px;
  margin: 0 auto 24px;
  padding: 0;
  color: #6f6254;
  font-size: 12px;
  line-height: 1.35;
}

.version-identification {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid #d6c9b7;
  color: #6f6254;
  font-size: 12px;
}

.version-identification h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
}

.version-identification .rules-list {
  font-size: 12px;
  line-height: 1.35;
}

.version-info-box {
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid #d6c9b7;
  border-radius: 10px;
  background: #f9f3dc;
  color: #5f5347;
  font-size: 12px;
  line-height: 1.35;
}

.reset-screen .reset-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  gap: 8px;
  align-items: center;
  margin: 8px 0 20px;
}

.reset-screen .hero-img-small {
  max-width: 210px;
  margin-left: 0;
}

.reset-screen .danger-circle {
  width: 126px;
  height: 126px;
  margin: 0;
  justify-self: start;
  font-size: 15px;
}

/* ===== BUTTONY ===== */

.btn {
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 10px;
  border: 1px solid #FFF;
  cursor: pointer;
  text-align: center;
}

/* PRIMARY (metal / główny) */
.btn.primary {
  background: #000;
  color: #fff;
}

.btn.primary:active {
  transform: scale(0.97);
}

/* disabled */
.btn.primary.disabled {
  opacity: 0.4;
  pointer-events: none;
}


/* SECONDARY (outline) */
.btn.secondary {
  background: transparent;
  color: #956B39;
  border: 1px solid #956B39;
  font-size: 14px;
}

.btn.secondary:active {
  background: #ffe2b3;
  color: #000;
  border: 1px solid #000;
}


/* LISTA */
.btn-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#miejsca .btn-list {
  margin-top: 18px;
}


/* LINK BUTTON */
.link-btn {
  margin-top: 16px;
  background: none;
  border: none!important;
  color: #956B39;
  font-weight: 500;
  padding: 16px;
  text-decoration: underline;
}

.link-btn:active {
  opacity: 0.6;
  
}

/* desktop hover */
@media (hover: hover) {
  .btn.primary:hover {
    transform: scale(1.02);
  }

  .btn.secondary:hover {
    background: #ffe2b3;
    color: #000;
    border: 1px solid #000;
  }

  .link-btn:hover {
    text-decoration: none;
    opacity: 0.8;
    background: none!important;
  }
}
/* =========================
   EKRAN BŁĘDU – POMARAŃCZOWY
   ========================= */
.error-screen {
  background: #a90000;
  color: #fff;
}

#error_answer.screen.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  min-height: calc(100vh - var(--bottom-bar-height));
  padding: 42px 18px 96px !important;
}

.error-title {
  align-self: flex-start;
  margin: 34px 0 4px 10px;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.error-hero {
  width: min(70vw, 330px);
  max-height: 340px;
  object-fit: contain;
  margin: -4px auto -10px;
  display: block;
}

.error-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 430px;
  margin: 0 auto 32px;
  padding: 16px;
  background: #F9F3DC;
  border: 3px solid #B27D31;
  border-radius: 16px;
  color: #000;
  text-align: center;
}

.error-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.error-card p {
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.5;
}

.error-screen .btn-list {
  width: 100%;
}

.error-screen .metal-btn {
  margin-bottom: 32px;
  font-size: 24px;
}

.error-screen .error-link,
.error-screen .error-link:hover,
.error-screen .error-link:active {
  color: #fff;
  border: none;
  background: transparent;
  text-decoration: none;
}

.error-link {
  width: auto;
  margin: 0 auto;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 600;
}
/* =========================
   MAPA – PEŁNY EKRAN (OVERRIDE)
   ========================= */

#mapa.screen {
  padding: 0 !important;
  overflow: hidden !important;
  height: 100vh !important;
}

/*---*/
.btn.danger {
  width: 180px;
  height: 180px;
  margin: 24px auto;

  border-radius: 50%;

  background: radial-gradient(circle at top, #e53935, #b71c1c);
  color: #fff;

  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;

  border: none;
  cursor: pointer;

  box-shadow:
    0 8px 0 #7f0000,
    0 12px 24px rgba(0,0,0,0.3);

  display: flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn.danger:active {
  transform: translateY(6px);
  box-shadow:
    0 2px 0 #7f0000,
    0 6px 12px rgba(0,0,0,0.3);
}

.scrollabler{
  margin-top:-44px!important;
}

.obrazek{display:block; margin-top:-60px!important;height:320px;width:320px;margin-bottom:-80px;}

/* ===== Tekst narracyjny ===== */

.story {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #2b2b2b;
}

.italic {
  font-style: italic;
}

/* ===== Dialogi ===== */

.dialog {
  margin: 0.75rem 0 0.75rem 1rem;
  padding-left: 0.75rem;
  border-left: 3px solid #d97a1f; /* kolor Pyrlika */
  font-size: 0.98rem;
  line-height: 1.6;
  color: #1f1f1f;
}

/* ===== Separator ===== */

.story-separator {
  border: none;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin: 1.5rem 0;
}

/* ===== Przypis ===== */

.footnote {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #555;
  background: #f7f5f2;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
}

/* ===== Wyróżnienia ===== */

.story strong,
.dialog strong,
.footnote strong {
  font-weight: 600;
  color: #000;
}

/* ===== Większe ekrany (opcjonalnie) ===== */

@media (min-width: 768px) {
  .story,
  .dialog {
    font-size: 1.05rem;
  }

  .dialog {
    margin-left: 1.5rem;
  }
}
/* === TASK / ZADANIE === */

.task {
  margin: 1.5rem 0;
  padding: 1.2rem 1.2rem 1.3rem;
  background: #f6f3ee;               /* jasny, papierowy */
  border: 1px solid #d06a1c;     /* kowalski pomarańcz */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

/* wprowadzenie */
.task-intro {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #2b2b2b;
}

/* lista kroków */
.task-steps {
  margin: 0.75rem 0 1rem 1.2rem;
  padding: 0;
}

.task-steps li {
  margin-bottom: 0.55rem;
  line-height: 1.45;
  color: #333;
}

/* wynik */
.task-result {
  margin-top: 0.75rem;
  font-weight: 600;
  color: #1f1f1f;
  font-size: 1rem;
}

/* wskazówka */
.task-hint {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: #444;
}

/* przypomnienie o pieczęci */
.task-reminder {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: #555;
  border-top: 1px dashed #d06a1c;
  padding-top: 0.6rem;
}

/* akcenty */
.task strong {
  color: #b55216;
}

/* === TASK – RIDDLE / RYMOWANKA === */

.task--riddle {
  background: #fffdfa;
}

.task-poem {
  margin: 0.9rem 0;
  padding:0.6rem;
  padding-left: 1.2rem;
  background: #fffaf2;
  line-height: 1.5;
  color: #3b2f23;
}

.task-question {
  margin: 0.8rem 0 0.4rem;
  font-weight: 600;
  color: #2a2a2a;
}

.result-screen {
  background: #100a06;
  color: #fff;
  text-align: center;
}

#podpowiedz.screen.active {
  display: block;
  position: fixed;
  top: 60px;
  right: 0;
  bottom: calc(var(--bottom-bar-height) + env(safe-area-inset-bottom, 0px));
  left: 0;
  height: auto !important;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  padding: 0 18px 144px !important;
}

.result-title {
  position: relative;
  z-index: 3;
  margin: 42px 0 -56px 10px;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  text-align: left;
  letter-spacing: 0;
}

.result-plaque {
  position: relative;
  width: min(70vw, 300px);
  aspect-ratio: 1408 / 1800;
  margin: -42px auto 48px;
  transform: translateY(-24px);
  background: url('/assets/illustrations/wynik.png') center/contain no-repeat;
}

.result-number {
  position: absolute;
  left: 50%;
  top: 66%;
  transform: translate(-50%, -50%);
  color: #2a1408;
  font-size: clamp(58px, 16vw, 92px);
  font-weight: 900;
  line-height: 0.9;
}

.result-badge-image {
  position: absolute;
  left: 50%;
  bottom: -8%;
  width: 40%;
  height: auto;
  transform: translateX(-50%);
  object-fit: contain;
}

.result-badge-label {
  margin: 0 auto 28px;
  color: #fff;
  line-height: 1.1;
}

.result-badge-label span {
  display: block;
  font-size: 15px;
}

.result-badge-label strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  font-weight: 900;
}

.result-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 430px;
  margin: 0 auto 56px;
  padding: 22px 22px 84px;
  background: #F9F3DC;
  border: 5px solid #6f6a66;
  border-radius: 28px;
  color: #000;
  text-align: left;
}

.result-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 900;
}

.result {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.green{border-color:#3a7d44;}

.result-intro,
.result-text,
.result-direction,
.result-riddle {
  margin: 0 0 14px;
  padding: 0;
  font-size: 16px;
  line-height: 1.45;
}

.result-riddle.italic {
  margin-left: 0;
  padding-left: 16px;
  border-left: 4px solid #ded0bc;
}

.result-next-icon {
  position: absolute;
  left: 50%;
  bottom: -54px;
  width: 112px;
  height: 112px;
  transform: translateX(-50%);
  border: 6px solid #6f6a66;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-next-icon img {
  width: 76%;
  height: 76%;
  object-fit: contain;
  opacity: 0.78;
}

.result-note {
  max-width: 430px;
  margin: 28px auto 32px;
  padding: 0;
  color: #bdb7b3;
  font-size: 12px;
  line-height: 1.25;
}
.wydawca {width: 100%;height: 90px; margin:10px; }
  .logow {height:70px; float:left; display:block;}

.timer-info {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 12px;

  color: #F28C18;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
}

.timer-info strong {
  font-size: 1.1rem;
}

.timer-info.hidden {
display: none;}

#kowal-guide {
  width: 42px;
  height: auto;
  pointer-events: none;
  animation: point-bounce 1.4s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes point-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.start-hero::after {
  content: "";
  position: absolute;
  inset: 0;
}


.start-text {
  color: #ddd;
}

.metal-btn {
  width: 100%;
  max-width: 320px;
  height: 70px;
  margin: 0 auto;

  background: url('/assets/illustrations/button-metal.png') center/contain no-repeat;
  border: none;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  font-weight: 700;
  color: #000;
}

.metal-btn:active {
  transform: scale(0.97);
}

/* Tła ekranów muszą być jawne w trybie zainstalowanej aplikacji,
   inaczej kolor body/topbara potrafi przebijać pod widokiem. */
.paper-screen,
#wprowadzenie,
#przebieggry,
#instrukcja,
#wskazowka,
#miejsca,
#pieczec_open,
#pieczec_task,
#pomoc,
#certyfikat,
#menu,
#ustawienia,
#o_wydawcy,
#o_wersji,
#prawne,
#instaluj {
  background: #f7eedf !important;
  min-height: calc(100dvh - var(--bottom-bar-height));
}

#start {
  background-color: #000 !important;
}

#mapa {
  background-color: #000 !important;
}

#error_answer {
  background-color: #a90000 !important;
}

#podpowiedz {
  background-color: #100a06 !important;
}
