#hat-sheet {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 2147483000;
  max-width: 480px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  color: #14262c;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(140%);
  transition: transform 0.25s ease-out;
}
#hat-sheet.is-open { transform: translateY(0); }
#hat-sheet .hat-sheet__text { margin: 0 0 4px; font-size: 15px; font-weight: 600; line-height: 1.5; }
#hat-sheet .hat-sheet__go {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; border-radius: 10px;
  background: #0b5c7a; color: #ffffff; text-decoration: none;
  font-size: 16px; font-weight: 600;
}
#hat-sheet .hat-sheet__stay {
  min-height: 44px; border: none; background: transparent;
  color: #4a5a61; font-size: 14px; font-family: inherit; cursor: pointer;
}
#hat-sheet .hat-sheet__hint { margin: 0; font-size: 13px; line-height: 1.6; color: #4a5a61; }
@media (prefers-reduced-motion: reduce) { #hat-sheet { transition: none; } }
