#guia { scroll-margin-top: 90px; }
.guideEntry { display: block; margin-top: 12px; color: var(--text); text-underline-offset: 4px; }
.guideCard { max-width: 850px; }
.guideCard [hidden] { display: none !important; }
.guideCard button { font: inherit; cursor: pointer; }
.guideCard .btn { font-weight: 720; }
.guideCard :focus-visible { outline: 3px solid #e1c1ef; outline-offset: 5px; }
.guideNotice { padding: 16px 18px; margin: 0 0 28px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 12px 12px 0; font-size: 14px; }
.guideProgress { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; color: var(--muted); font-size: 14px; }
.guideProgress progress { flex: 1; min-width: 0; height: 7px; accent-color: var(--accent); }
.guideCard fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.guideCard legend { padding: 0; font-size: clamp(22px, 3vw, 28px); font-weight: 700; line-height: 1.3; }
.guideHint { font-size: 14px; margin: 10px 0 20px; }
.guideOptions { display: grid; gap: 10px; }
.guideOption { display: flex; align-items: center; gap: 13px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); line-height: 1.5; cursor: pointer; }
.guideOption:hover { border-color: var(--accent); }
.guideOption:has(input:checked) { background: var(--accent-soft); border-color: #c99bd9; }
.guideOption input { margin: 0; width: 19px; height: 19px; flex: 0 0 auto; accent-color: var(--accent); }
.guideActions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.guideActions .guideReset { margin-left: auto; }
.guideReset { padding: 10px 0; border: 0; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.guideResultItem { padding: 20px 0; border-bottom: 1px solid var(--line); }
.guideResultItem h4 { font-size: 18px; margin: 0; }
.guideResultItem p { margin: 10px 0; }
.guideResultItem a { color: #e1c1ef; text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.guideFloat {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 19;
  display: flex;
  align-items: center;
  max-width: calc(100% - 32px);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: #754383;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.guideFloat[hidden] { display: none; }
.guideFloatLink {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px 12px 22px;
  border-radius: 999px 0 0 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}
.guideFloatClose {
  min-width: 44px;
  min-height: 44px;
  margin-right: 4px;
  border: 0;
  border-left: 1px solid rgba(255,255,255,.25);
  border-radius: 0 999px 999px 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 22px;
  cursor: pointer;
}
.guideFloat a:hover, .guideFloat button:hover { background: rgba(255,255,255,.1); }
.guideFloat :focus-visible { outline: 3px solid #e1c1ef; outline-offset: 4px; }
body:has(.guideFloat:not([hidden])) footer { padding-bottom: 100px; }
@media (max-width: 620px) {
  .guideFloat { right: max(14px, env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); }
  .guideFloatLink { min-height: 46px; padding: 10px 12px 10px 16px; font-size: 14px; gap: 8px; }
}
