.game-pixel-icon {
  display: block;
  width: var(--icon-size, 20px);
  height: var(--icon-size, 20px);
  flex: 0 0 auto;
  image-rendering: pixelated;
  shape-rendering: crispEdges;
}

.game-button {
  position: relative;
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 6px 10px;
  border: var(--game-border-width) solid var(--game-border-dark);
  border-radius: var(--game-radius-small);
  background: var(--game-cream-200);
  color: var(--game-text-primary);
  box-shadow: inset 0 0 0 2px #fff0b8, 0 var(--game-shadow-offset) 0 var(--game-hard-shadow);
  font: 800 12px/1 var(--game-font-ui);
  cursor: pointer;
}

.game-button:hover { background: #ffe7a0; transform: translateY(-1px); }
.game-button:active { transform: translate(2px, 2px); box-shadow: inset 0 0 0 2px #fff0b8, 0 2px 0 var(--game-hard-shadow); }
.game-button:focus-visible { outline: 4px solid var(--game-focus); outline-offset: 2px; }
.game-button:disabled { opacity: .4; cursor: not-allowed; transform: none; filter: grayscale(.35); }

.game-panel {
  border: 5px solid var(--game-border-dark);
  outline: 3px solid var(--game-wood-400);
  border-radius: var(--game-radius-small);
  background: var(--game-cream-100);
  box-shadow: 0 8px 0 rgba(47, 31, 23, .55);
}

.game-panel__title {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-bottom: 4px solid var(--game-border-dark);
  background: var(--game-forest-800);
  color: #fff7d9;
  font: 800 14px/1.2 var(--game-font-ui);
  letter-spacing: .04em;
}

.game-site-bar {
  position: relative;
  z-index: var(--z-sticky);
  min-height: 64px;
  border-bottom: 4px solid var(--game-wood-800) !important;
  background: var(--game-forest-900) !important;
  color: #fff7d9;
  box-shadow: inset 0 -3px 0 var(--game-wood-400), 0 4px 0 var(--game-hard-shadow) !important;
  font-family: var(--game-font-ui);
}
.game-site-bar__brand { min-width: 0; }
.game-site-bar__crest {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 3px solid var(--game-wood-800);
  border-radius: var(--game-radius-small) !important;
  background: var(--game-gold-300);
  box-shadow: inset 0 0 0 2px var(--game-cream-100), 0 3px 0 var(--game-hard-shadow);
}
.game-site-bar__crest .game-pixel-icon { --icon-size: 27px; }
.game-site-bar h1 { color: #fff7d9 !important; font: 900 20px/1 var(--game-font-ui) !important; }
.game-site-bar__subtitle { margin-top: 4px; color: var(--game-cream-200) !important; font: 700 10px/1.2 var(--game-font-ui); }
.game-site-bar #topicBadge {
  border: 2px solid var(--game-wood-400) !important;
  border-radius: var(--game-radius-small) !important;
  background: var(--game-cream-200) !important;
  color: var(--game-forest-950) !important;
  font: 800 11px/1 var(--game-font-ui);
}
.game-site-bar__tools { flex: 0 0 auto; }
.game-site-bar__button {
  display: inline-flex !important;
  min-width: 44px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 10px !important;
  border: 3px solid var(--game-wood-800) !important;
  border-radius: var(--game-radius-small) !important;
  background: var(--game-cream-200) !important;
  color: var(--game-forest-950) !important;
  box-shadow: inset 0 0 0 2px #fff0b8, 0 3px 0 var(--game-hard-shadow) !important;
  font: 900 12px/1 var(--game-font-ui) !important;
}
.game-site-bar__button--garden { background: var(--game-sage-100) !important; }
.game-site-bar__button--settings { background: var(--game-gold-300) !important; }
.game-site-bar__button:hover { filter: brightness(1.08); transform: translateY(-1px) !important; }
.game-site-bar__button:active { transform: translate(2px, 2px) !important; box-shadow: inset 0 0 0 2px #fff0b8, 0 1px 0 var(--game-hard-shadow) !important; }
.game-site-bar__button:focus-visible { outline: 3px solid var(--game-focus) !important; outline-offset: 2px; }
.game-site-bar__button .game-pixel-icon { --icon-size: 20px; }

@media (max-width: 720px) {
  .game-site-bar { padding-inline: 9px !important; }
  .game-site-bar__crest { width: 40px; height: 40px; }
  .game-site-bar h1 { font-size: 17px !important; }
  .game-site-bar__tools { gap: 6px !important; }
  .game-site-bar__button { width: 44px; padding: 5px !important; }
  .game-site-bar__button > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  .game-button { transition: none; }
  .game-button:hover, .game-button:active { transform: none; }
}
