@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}


header img,
header svg,
#header-placeholder img,
#header-placeholder svg {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

button, 
input[type="button"], 
input[type="submit"], 
input[type="reset"],
.role-btn,
.floating-qa-btn {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body {
  background-color: #b5be8a;
  color: #2b331f;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding-top: 85px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #757d57;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
}

header h1 {
  font-family: 'Press Start 2P', monospace, sans-serif !important;
  font-size: 0.8rem !important;
  text-transform: uppercase;
  margin: 0;
}

header > div {
  display: none !important;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: #2b331f;
  border-radius: 2px;
  transition: all 0.3s ease;
}

header > a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

header h1 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2b331f;
  margin: 0;
}

.nav-links {
  display: flex;
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background-color: #757d57;
  flex-direction: column;
  align-items: center;
  padding: 70px 0 20px 0;
  opacity: 0;
  visibility: hidden;
  transition: left 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  box-shadow: 5px 0 20px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-links.active {
  left: 0;
  opacity: 1;
  visibility: visible;
}

.nav-links a {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 16px;
  height: 48px;
  box-sizing: border-box;
  width: 85%;
  max-width: 320px;
  font-family: 'Press Start 2P', monospace, sans-serif !important;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #b5be8a;
  background: #2c3325;
  border-radius: 50px;
  border: 2px solid #12150f;
  box-shadow: inset 0 -3px 0 #1b2017, inset 0 2px 0 #3d4734;
  margin: 6px 0;
  transition: all 0.15s ease;
}
.nav-links a span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-links a .game-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  image-rendering: pixelated; 
  image-rendering: crisp-edges;
}

.nav-links a.active-tab {
  background: #b5be8a;
  color: #1e2319;
  border-color: #12150f;
  box-shadow: inset 0 -3px 0 #8f9869, inset 0 2px 0 #dbe2b6;
}

.nav-links a:hover {
  color: #1e2319;
  background: #d2daab;
  border-color: #12150f;
  transform: translateY(-2px);
  box-shadow: inset 0 -3px 0 #a2aa7d, inset 0 2px 0 #edf2cb;
}

.close-hamburger-menu-btn {
  position: absolute;
  display: block;
  top: 13px;
  left: 30px;
  background: transparent;
  border: none;
  color: #2b331f;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  margin-bottom: 20px; 
}

.close-hamburger-menu-btn:hover {
  color: #b5be8a;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.logo-pwa {
  height: 40px;
  width: auto;
  display: block;
}

.close-menu-btn {
  display: none;
}

footer {
  width: 100%;
  background-color: #757d57;
  color: #2b331f;
  padding: 12px 20px;
  border-top: 1px solid rgba(43, 51, 31, 0.15);
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.footer-content {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-bottom-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  position: static;
  width: 100%;
  font-size: 0.8rem;
  font-weight: 600;
}

.footer-copyright {
  position: static;
  transform: none;
  text-align: center;
  opacity: 1;
}

.footer-bottom-row a {
  color: #2b331f;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-bottom-row a:hover {
  opacity: 1;
}

#backToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  background-color: rgba(44, 51, 37, 0.7);
  color: #b5be8a;
  border: 1.5px solid rgba(181, 190, 138, 0.4);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#backToTopBtn.visible {
  opacity: 0.35; 
  visibility: visible;
}

#backToTopBtn:hover {
  opacity: 1;
  background-color: #b5be8a;
  color: #1e2319;
  transform: translateY(-3px);
  border-color: #b5be8a;
}