.howToBtn { white-space: nowrap; }
.howToOverlay {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end;
  justify-content: center; padding: 0; background: rgba(8, 4, 2, .76);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.howToOverlay[hidden] { display: none; }
.howToSheet {
  width: 100%; max-height: min(88dvh, 760px); overflow-y: auto; box-sizing: border-box;
  padding: 0 18px calc(18px + env(safe-area-inset-bottom)); color: var(--ink, #fff8e7);
  background: var(--panel, #2c180d); border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px 22px 0 0; box-shadow: 0 -12px 40px rgba(0,0,0,.45);
  overscroll-behavior: contain;
}
.howToGrab { position: sticky; top: 0; z-index: 2; height: 24px; background: var(--panel, #2c180d); }
.howToGrab::after { content: ""; position: absolute; left: 50%; top: 8px; width: 42px; height: 4px; transform: translateX(-50%); border-radius: 9px; background: rgba(255,255,255,.3); }
.howToTop { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.howToTop h2 { margin: 0; font-size: clamp(1.45rem, 6vw, 2rem); line-height: 1.15; }
.howToTop p { margin: 5px 0 0; color: var(--ink-dim, #d7c2aa); line-height: 1.45; }
.howToClose { min-width: 44px; min-height: 44px; padding: 0; border-radius: 50%; font-size: 1.45rem; }
.howToSection { margin-top: 20px; }
.howToSection h3 { margin: 0 0 9px; color: var(--accent, #f0ad4e); font-size: 1rem; }
.howToSection ol, .howToSection ul { margin: 0; padding-left: 1.35rem; }
.howToSection li { margin: 0 0 9px; line-height: 1.48; }
.howToTip { margin: 18px 0 4px; padding: 12px 14px; border-left: 4px solid var(--accent, #f0ad4e); border-radius: 8px; background: rgba(255,255,255,.07); line-height: 1.45; }
.howToChooser { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; }
.howToChooser .btn { min-height: 48px; text-align: left; justify-content: flex-start; }
body.howToOpen { overflow: hidden; }
@media (max-width: 380px) { .howToChooser { grid-template-columns: 1fr; } }
@media (min-width: 600px) {
  .howToOverlay { align-items: center; padding: 24px; }
  .howToSheet { max-width: 620px; border-radius: 22px; padding-left: 24px; padding-right: 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  .howToSheet { animation: howToUp .18s ease-out; }
  @keyframes howToUp { from { transform: translateY(24px); opacity: .7; } }
}
