header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0 20px;
}

/* Left: page indicator */
.nav-left {
  flex: 1;
  display: flex;
  align-items: center;
}

#page-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

#page-indicator img {
  width: 24px;
  height: 24px;
}

#page-indicator span {
  font-weight: bold;
  font-size: 18px;
}

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  padding: 10px 0;
}

#back-button {
  background: var(--accent, #00c6ff);
  color: white;
  border: 2px solid white;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s ease;
}

#back-button:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

.game-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-grow: 1;
  justify-content: center;
}

.game-header-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.game-header-title {
  font-size: 22px;
  font-weight: bold;
  margin: 0;
}

/* Game Container (iframe wrapper) */
.game-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.game-container iframe {
  max-width: 95vw;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

/* Center: nav buttons */
.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

/* Right: theme controls */
.nav-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

/* Theme button container */
.theme-container {
  position: relative;
  display: inline-block;
}

/* Image-only buttons */
#theme-button,
#toggle-header-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

#theme-button img,
#toggle-header-btn img {
  width: 28px;
  height: 28px;
}

/* Dropdown menu (hidden by default) */
#theme-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 6px;
  background: var(--bg, #222);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  padding: 5px;
  z-index: 100;
}

#theme-menu button {
  display: block;
  background: none;
  border: none;
  padding: 8px 14px;
  width: 100%;
  text-align: right;
  cursor: pointer;
  color: var(--text, #fff);
  font-size: 14px;
}

#theme-menu button:hover {
  background: rgba(255,255,255,0.1);
}

#github-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 10px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#github-button img {
  width: 28px;
  height: 28px;
}

#github-button:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

/* Collapse button under header */
#toggle-header-btn {
  position: fixed;
  top: 70px; /* right under header */
  right: 20px;
  z-index: 50;
  transition: transform 0.3s ease;
}

/* Header slide-up animation */
header.hidden {
  transform: translateY(-100%);
  transition: transform 0.4s ease;
}

/* Rotate arrow when header hidden */
#arrow-icon.rotated {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

body.header-hidden {
  padding-top: 0;
}

/* Game grid layout */
.game-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

/* Each game card */
.game-card {
  background: var(--panel-bg, #1a1a1a);
  border: 2px solid white; /* white outline */
  border-radius: 10px;
  width: 220px;
  padding: 15px;
  box-sizing: border-box;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* Game icon */
.game-icon {
  width: 100%;
  border-radius: 8px;
  display: block;
  margin-bottom: 10px;
}

.game-name {
  font-size: 18px;
  margin: 5px 0;
}

/* Play button now fits the card width */
.play-btn {
  background: #007bff; /* bright blue */
  color: white;
  border: 2px solid white;
  border-radius: 6px;
  padding: 8px 0;
  width: 100%; /* now just fills the card width */
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.play-btn:hover {
  background: #0056cc;
  transform: scale(1.02);
}

.changelog-block {
  background: var(--header-bg);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
  width: 90%;
  box-sizing: border-box;
  text-align: left;
}

.changelog-block h3 {
  color: var(--accent, #00c6ff);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.changelog-block p {
  margin: 10px 0 5px 0;
  font-weight: bold;
}

.changelog-block ul {
  margin: 0 0 10px 25px;
  list-style-type: disc;
}

.changelog-block ul ul {
  list-style-type: circle;
}
