body { padding: 0; margin: 0 }
#unity-container { position: absolute }
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
#unity-container.unity-mobile { position: fixed; width: 100%; height: 100% }
#unity-canvas { background: #231F20 }
.unity-mobile #unity-canvas { width: 100%; height: 100% }
#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
#unity-logo { width: 154px; height: 130px; background: url('unity-logo-dark.png') no-repeat center }
#unity-progress-bar-empty { width: 141px; height: 18px; margin-top: 10px; margin-left: 6.5px; background: url('progress-bar-empty-dark.png') no-repeat center }
#unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center }
#unity-footer { position: relative }
.unity-mobile #unity-footer { display: none }
#unity-logo-title-footer { float:left; width: 102px; height: 38px; background: url('unity-logo-title-footer.png') no-repeat center }
#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
#unity-fullscreen-button { cursor:pointer; float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center }
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }

/* ── SKARBEK (2026-11-26): tło strony = scena z menu gry, przyciemniona; ciemna stopka z jasnym tytułem ── */
html, body { height: 100%; }
body {
  background: #0b0906 url('tlo.png') center / cover no-repeat fixed;
  image-rendering: pixelated;
}
body::before {
  content: ""; position: fixed; inset: 0; background: rgba(8, 6, 4, 0.72); pointer-events: none;
}
#unity-container { z-index: 1; }
#unity-canvas { background: #0b0906; box-shadow: 0 0 0 2px #000, 0 0 0 3px #3a3027, 0 12px 40px rgba(0, 0, 0, 0.7); }
#unity-footer { background: rgba(12, 9, 7, 0.85); margin-top: 6px; }
#unity-logo-title-footer { display: none; }
#unity-build-title { color: #E8B04A; font-family: Georgia, 'Times New Roman', serif; letter-spacing: 2px; margin-left: 10px; float: left; }

/* ── SKARBEK (2026-11-26): gra wypełnia okno przeglądarki w 16:9; stopka znika, przycisk pełnego ekranu w rogu ── */
html, body { overflow: hidden; }
#unity-container.unity-okno { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
.unity-okno #unity-canvas { display: block; box-shadow: none; }
.unity-okno #unity-footer { position: fixed; right: 8px; bottom: 8px; margin: 0; background: transparent; z-index: 2; }
.unity-okno #unity-build-title { display: none; }
.unity-okno #unity-fullscreen-button { opacity: 0.35; transition: opacity .2s; }
.unity-okno #unity-fullscreen-button:hover { opacity: 1; }

/* ── SKARBEK (2026-11-28): link do wishlisty na Steamie w prawym dolnym rogu, obok pełnego ekranu,
      i zastępczy link na środku, gdy przeglądarka zablokuje nową kartę otwieraną z gry. ── */
#skarbek-steam, #skarbek-zastepczy {
  font: 600 15px/1 Georgia, "Times New Roman", serif; color: #f2c14e; text-decoration: none;
  background: rgba(11, 9, 6, 0.85); border: 2px solid #f2c14e; padding: 9px 14px;
}
/* Wąski (do ~118 px), bo na typowym oknie przeglądarki mieści się wtedy w bocznym pasie obok gry, a nie na niej:
   prawy dolny róg kadru to dymki gry. */
#skarbek-steam { float: right; margin: 0 8px 0 0; max-width: 118px; box-sizing: border-box; text-align: center;
  font-size: 13px; line-height: 1.25; padding: 7px 8px; opacity: 0.75; transition: opacity .2s; }
#skarbek-steam:hover, #skarbek-steam:focus { opacity: 1; }
#skarbek-zastepczy {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 10;
  font-size: 20px; padding: 16px 22px; box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.6);
}
