/* Match the existing cream-and-gold game UI. This panel never blocks game input. */
#beginnerTutorial[hidden], #beginnerTutorial [hidden] { display: none !important; }
.tutorial-panel {
  position: fixed;
  z-index: 12;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(580px, calc(100% - 24px));
  max-height: 48dvh;
  overflow: auto;
  padding: 18px 20px 14px;
  border: 2px solid #b98d3a;
  border-radius: 18px;
  background: #fffdf6;
  color: #352b1d;
  box-shadow: 0 8px 38px #271b123d;
  font-size: 16px;
  line-height: 1.55;
}
.tutorial-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tutorial-kicker { color: #846021; font-size: 14px; font-weight: 800; }
.tutorial-panel h2 { margin: 8px 0; font-size: 20px; line-height: 1.4; color: #352b1d; }
.tutorial-panel p { margin: 8px 0; }
.tutorial-panel [data-tutorial-status] { font-size: 14px; color: #736348; }
.tutorial-panel .is-done { color: #286b41; font-weight: 700; }
.tutorial-panel progress { width: 100%; height: 5px; display: block; margin: 10px 0 4px; accent-color: #b98d3a; }
.tutorial-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.tutorial-panel button, .tutorial-replay {
  min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid #d4c4a2;
  background: #f5eddb; color: #493a23; font-size: 14px; font-weight: 700; cursor: pointer;
}
.tutorial-panel [data-tutorial-action] { flex: 1; background: #e5c778; border-color: #c4a352; }
.tutorial-panel [data-tutorial-next] { background: #345d43; border-color: #345d43; color: #fff; }
.tutorial-panel button:disabled { opacity: .45; cursor: default; }
.tutorial-panel .tutorial-quiet { background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.tutorial-panel [data-tutorial-skip-step] { display: block; margin: 4px auto 0; }
.tutorial-replay { display: inline-flex; align-items: center; margin: 0 0 16px; }
.tutorial-target { outline: 3px solid #be8319 !important; outline-offset: 5px; scroll-margin-block: 80px; }
body.tutorial-open .layer-ui { padding-bottom: var(--tutorial-space, 340px); scroll-padding-bottom: var(--tutorial-space, 340px); }
body.tutorial-open #game { padding-bottom: var(--tutorial-space, 340px); }
@media (max-width: 480px) {
  .tutorial-panel { padding: 12px 14px 8px; border-radius: 14px; }
  .tutorial-panel h2 { font-size: 18px; margin: 6px 0; }
  .tutorial-panel p { margin: 6px 0; }
  .tutorial-actions { gap: 6px; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .tutorial-target { scroll-behavior: auto; } }
