/* Game HUD: top navigation, clear playfield, bottom action zones. */
.game-layout .inventory,
.game-layout .collection-book,
.game-layout .guide-gift-button,
.game-layout .walking-hud,
.game-layout .village-directory,
.game-layout .festival-dock,
.game-layout .scene-tools,
.game-layout .mobile-actions,
.game-layout .sky-caption,
.game-layout .page-footer {
  display: none !important;
}
.game-layout .world {
  height: 100svh !important;
  overflow: clip;
}
.game-layout header {
  height: 64px;
  padding: 12px 20px;
}
.game-layout header #help {
  display: none;
}
.game-layout .river-switcher {
  top: 78px;
  left: 20px;
  right: auto;
  width: 260px;
  max-width: calc(100% - 40px);
}
.game-layout .online-status {
  top: 78px;
  right: 20px;
}
.game-layout .festival-status {
  position: absolute;
  top: 16px;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translateX(-50%);
  width: auto;
  max-width: none;
  border-radius: 18px;
  padding: 8px 14px;
}
.game-layout #panel-toggle {
  display: none;
}
.game-nav {
  position: fixed;
  z-index: 60;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 6px;
  background: #fffffff2;
  border: 1px solid #fff;
  border-radius: 24px;
  box-shadow: 0 8px 32px #18372f26;
}
.game-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 78px;
  min-height: 66px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #314d45;
  font-size: 12px;
  touch-action: manipulation;
}
.game-nav button:hover {
  background: #e9f0eb;
}
.game-nav svg,
.game-interact svg {
  width: 25px;
  height: 25px;
}
.game-interact {
  position: fixed;
  z-index: 60;
  right: 28px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 16px 24px;
  border: 1px solid #ffffffb0;
  border-radius: 22px;
  background: #2861c4;
  color: white;
  box-shadow: 0 8px 24px #173f7530;
  font-size: 16px;
  touch-action: manipulation;
}
.game-interact kbd {
  font: inherit;
  font-size: 11px;
  border: 1px solid #ffffff70;
  border-radius: 5px;
  padding: 3px 5px;
}
.game-menu {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 24px;
  border: 1px solid #fff;
  border-radius: 26px;
  background: #f6f8f4;
  color: #233e34;
  overflow: auto;
  box-shadow: 0 24px 80px #142d3240;
}
.game-menu::backdrop {
  background: #16312f66;
  backdrop-filter: blur(6px);
}
.game-menu-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.game-menu-heading small {
  font-size: 10px;
  letter-spacing: 2px;
  color: #61766b;
}
.game-menu-heading h2 {
  font-size: 24px;
  margin: 8px 0 0;
  padding: 0;
}
.game-menu-close {
  width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: #e6ebe6;
  font-size: 24px;
}
.game-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.game-menu-grid button {
  min-height: 58px;
  padding: 14px;
  text-align: left;
  border: 1px solid #dfe6dd;
  border-radius: 16px;
  background: white;
  color: #29493b;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.game-layout.watching-show .game-nav,
.game-layout.watching-show .game-interact {
  display: none;
}
@media (max-width: 900px) {
  .game-layout main {
    display: block;
  }
  .game-layout .festival-status {
    display: none;
  }
  .game-layout header {
    padding: 10px 14px;
  }
  .game-layout .river-switcher {
    top: 72px;
    left: 14px;
    width: calc(100% - 28px);
    max-width: none;
  }
  .game-layout .online-status {
    top: 132px;
    right: 14px;
    padding: 4px 10px;
  }
  .game-nav {
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100% - 28px);
    max-width: 380px;
    justify-content: space-around;
    border-radius: 22px;
  }
  .game-nav button {
    width: 25%;
    min-height: 56px;
    font-size: 11px;
    gap: 3px;
  }
  .game-nav svg {
    width: 23px;
    height: 23px;
  }
  .game-interact {
    right: 18px;
    bottom: 110px;
    width: 76px;
    height: 76px;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    border-radius: 50%;
    font-size: 13px;
  }
  .game-interact kbd {
    display: none;
  }
  .game-layout .movement-stick {
    position: fixed;
    top: auto !important;
    bottom: 102px;
    left: 18px !important;
    width: 104px;
    height: 104px;
    z-index: 60;
  }
  .game-layout .touch-pad {
    position: fixed;
    top: auto !important;
    bottom: 106px;
    left: 14px;
    z-index: 60;
  }
  .game-layout .play {
    position: relative;
    margin: 0;
    padding-bottom: 100px;
  }
}
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .game-layout .river-switcher {
    top: 68px;
    width: 240px;
  }
  .game-layout .online-status {
    top: 68px;
  }
  .game-nav {
    width: 300px;
    bottom: 12px;
  }
  .game-layout .movement-stick,
  .game-layout .touch-pad {
    bottom: 18px;
  }
  .game-interact {
    bottom: 24px;
  }
}
@media (max-width: 360px) {
  .game-menu {
    padding: 18px;
  }
  .game-menu-grid {
    gap: 8px;
  }
  .game-menu-grid button {
    padding: 10px;
    font-size: 13px;
  }
}

.game-interact kbd {
  background: transparent;
  color: inherit;
}
.game-menu-progress {
  margin: 0 0 16px;
  color: #4c6558;
  font-size: 13px;
}
.game-menu-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  padding: 4px;
  background: #e7ece6;
  border-radius: 14px;
}
.game-menu-tabs button {
  flex: 1;
  min-height: 44px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #385347;
  font-size: 14px;
}
.game-menu-tabs button[aria-pressed="true"] {
  background: white;
  box-shadow: 0 2px 6px #213e1914;
}
