body {
  background: #16344d; 
  min-height: 100vh;
  margin: 0;
  font-family: 'Press Start 2P', 'Press Start 2P', monospace;
  box-sizing: border-box;
}

main {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 8px 30px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.game-image {
  display: block;
  max-width: 60%;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  margin: 0 0 13px 0;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #444;
  background: #222;
  border-radius: 2px;
  object-fit: cover;
  aspect-ratio: 16/9; 
}

h1.glow {
  font-family: 'Press Start 2P', monospace;
  font-size: 2.3rem;
  color: #fff;
  text-shadow: 2px 2px #000, 0 0 20px #fff8, 0px 0px 3px #fff2;
  margin-bottom: 8px;
  margin-top: 0;
  letter-spacing: 2px;
  text-align: center;
  padding-top:30px;
}

.subtitle {
  font-family: 'Press Start 2P', monospace;
  color: #eee;
  margin-bottom: 24px;
  font-size: 1rem;
  text-align: center;
  text-shadow: 1px 1px 2px #222;
  letter-spacing: 1px;
  padding-bottom:30px;
}

.window {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-bottom: 16px;
}

.window:last-of-type {
  margin-bottom: 0;
}

.window-body {
  font-size: 0.93rem;
  padding: 7px 5px;
  font-family: 'Press Start 2P', monospace;
  word-break: break-word;
}

.title-bar {
  cursor: move;
  background: #181e4b !important;
  color: #e2e2e2 !important;
  border-bottom: 1px solid #5661a2;
  box-sizing: border-box;
}

.title-bar-text {
  font-family: 'Press Start 2P', 'Fixedsys', monospace;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  line-height: 1.4;
  padding-left:3px;
  padding-top:1px; 
}

.gallery.img {
  display: flex;
  flex-direction: row;
  gap: 11px;
  justify-content: flex-start;
  align-items: stretch;
  flex-wrap: nowrap;
  overflow-x: auto;
  width: 100%;
  padding-bottom: 3px;
  box-sizing: border-box;
}

.gallery.img img {
  display: block;
  border: 2px solid #d2d2d2;
  background: #fff;
  box-shadow: 2px 2px 0px #555;
  object-fit: cover;
  width: 106px;
  height: 80px;
  min-width: 80px;
  margin: 0;
  box-sizing: border-box;
  image-rendering: pixelated;
}
.download-btn {
  font-family: 'Press Start 2P', monospace;
  border: 2px solid #1B1464;
  border-radius: 0;
  background: #e2e2e2;
  padding: 6px 10px;
  color: #111;
  display: inline-block;
  font-size: 1rem;
  margin-top: 5px;
  text-decoration: none;
  box-shadow: 2px 2px 0px #222;
  transition: background 0.2s;
}

.download-btn:hover, .download-btn:focus {
  background: #26345b;
  color: #e2e2e2;
}

footer {
  width: 100%;
  text-align: center;
  margin-top: 32px;
}

.socials-bar {
  margin: 5px 0 8px 0;
  display: flex;
  gap: 8px;
  justify-content: center;
  padding-bottom: 10px;
}

.socials-bar button {
  font-family: 'Press Start 2P', monospace;
  background: #e2e2e2;
  font-size: 0.95rem;
  margin: 0;
}

.socials-bar a {
  color: #1b1464;
  text-decoration: none;
  
}
.lang-switcher button {
  font-family: 'Press Start 2P', monospace;
  background: #e2e2e2;
  font-size: 0.75rem;
  scale: 70%;
  margin: 0;
  margin-left: -5px;
  margin-right: -5px;
  opacity: 0.7
}

footer small {
  color: #c9c9c9;
  font-size: 0.9em;
  font-family: 'Press Start 2P', monospace;
}

#stars {
  position: fixed;
  z-index: 0;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  overflow: hidden;
}
#stars canvas {
  width: 100vw !important; height: 100vh !important;
  display: block;
}

.image-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(30, 34, 61, 0.86);
  display: flex; align-items: center; justify-content: center;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s cubic-bezier(.4,2,.3,1);
}
.image-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.image-modal img {
  max-width: 93vw; max-height: 83vh;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px #233e86, 0 8px 36px 10px #111b;
  background: #e1e4e0;
  border-radius: 2px;
  image-rendering: pixelated;
  display: block;
  cursor: zoom-out;
}
@media (max-width:600px) {
  .image-modal img {
    max-width: 97vw; max-height: 62vh;
  }
}

.gallery.img img {
  cursor: zoom-in;
  transition: box-shadow 0.17s;
}
.gallery.img img:active {
  box-shadow: 0 0 0 2px #273e7c, 0 2px 10px 3px #273e7c33;
}

.lang-switcher button {
  outline: none;
  transition: background 0.18s, color 0.18s, opacity 0.15s;
}
.lang-switcher button.active,
.lang-switcher button:focus {
  opacity: 1;
  filter: none;
}

.title-bar-controls button:active,
.title-bar-controls button.pressed {
  background: #9dbafe;
  box-shadow: none;
}
.window.minimized .window-body { display: none; }
.window.maximized {
  width: 100%; height: auto;
  left: 0; top: 0;
  z-index: 80;
}

main, footer, .window {
  position: relative;
  z-index: 1;
  
}

#minigame-modal {
  position: fixed;
  z-index: 120;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#minigame-backdrop {
  position: absolute;
  z-index: 1;
  inset: 0;
  backdrop-filter: blur(2.5px);
}
#minigame-window {
  z-index: 2;
  width: 290px;
  max-width: 95vw;
  box-sizing: border-box;
  margin: 0;
}

#minigame-canvas {
  margin: 0 auto 10px auto;
  display: block;
  width:250px; 
}

#minigame-msg {
  min-height: 18px;
  font-size: 0.7rem;
  color: #000000;
  margin: 11px auto 3px auto;
  font-family: 'Press Start 2P', monospace;
  text-shadow: 1px 1px #e0e0e6cc;
  line-height: 1.4;
  text-align: center;
}

#minigame-gameover {
  margin: 12px auto 0 auto;
  padding-top: 3px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#minigame-gameover-msg {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.85rem;
  color: #9e0606;
  margin-bottom: 10px;
  text-shadow: 1px 1px #ffe1e7, 0 0 4px #fff3;
  text-align: center;
}

#minigame-restart-btn {
  font-family: 'Press Start 2P', monospace;
}

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
