/* Scream-O-Meter v1.0.0 */
/* ============================================================
   The Scream-O-Meter : styles
   Scoped under .fgtsm.fgtsm (doubled class beats theme resets and
   later inline styles per the Favorite Grampy Travels house rule).
   No backslash characters anywhere in this file.
   ============================================================ */

.fgtsm.fgtsm {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  color: #1f2933;
  max-width: 860px;
  margin: 24px auto;
  min-height: 560px;
  box-sizing: border-box;
}
.fgtsm.fgtsm *, .fgtsm.fgtsm *::before, .fgtsm.fgtsm *::after {
  font-family: inherit;
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
.fgtsm.fgtsm [hidden] { display: none !important; }
.fgtsm.fgtsm .fgtsm-emoji { line-height: 1; }

/* ---- card frame: navy canister bay + white control panel ---- */
.fgtsm.fgtsm .fgtsm-card {
  display: flex;
  flex-direction: row;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(6, 47, 105, 0.14);
  border: 1px solid #dbe4f0;
  background: #ffffff;
}
.fgtsm.fgtsm .fgtsm-bay {
  position: relative;
  flex: 0 0 300px;
  background: linear-gradient(180deg, #0a3f86 0%, #062f69 45%, #041d42 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
}
.fgtsm.fgtsm .fgtsm-panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #ffffff;
}
.fgtsm.fgtsm .fgtsm-head {
  background: #062f69;
  color: #ffffff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.fgtsm.fgtsm .fgtsm-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.2px;
}
.fgtsm.fgtsm .fgtsm-chip {
  font-size: 11px;
  font-weight: 600;
  color: #d6f1ff;
  border: 1px solid rgba(214, 241, 255, 0.55);
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
}
.fgtsm.fgtsm button.fgtsm-mute {
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(214, 241, 255, 0.55);
  border-radius: 999px;
  width: 40px;
  min-height: 40px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  color: #ffffff;
}
.fgtsm.fgtsm button.fgtsm-mute:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(214, 241, 255, 0.9);
}
.fgtsm.fgtsm button.fgtsm-mute:focus-visible {
  outline: 3px solid #fbdb24;
  outline-offset: 2px;
}
.fgtsm.fgtsm .fgtsm-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
}
.fgtsm.fgtsm .fgtsm-status {
  min-height: 22px;
  font-size: 14px;
  font-weight: 600;
  color: #41547a;
}
.fgtsm.fgtsm .fgtsm-stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---- idle headline + steps ---- */
.fgtsm.fgtsm .fgtsm-headline {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  color: #062f69;
}
.fgtsm.fgtsm .fgtsm-mark {
  background: linear-gradient(transparent 55%, #fbdb24 55%);
  padding: 0 2px;
  white-space: nowrap;
}
.fgtsm.fgtsm .fgtsm-steps {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 2px 0;
}
.fgtsm.fgtsm .fgtsm-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: #1f2933;
}
.fgtsm.fgtsm .fgtsm-step i {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #062f69;
  color: #fbdb24;
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- text ---- */
.fgtsm.fgtsm h3, .fgtsm.fgtsm h4 { color: #062f69; line-height: 1.25; }
.fgtsm.fgtsm .fgtsm-intro { font-size: 16px; color: #1f2933; }
.fgtsm.fgtsm .fgtsm-fine {
  font-size: 12.5px;
  color: #66738a;
}
.fgtsm.fgtsm .fgtsm-fine + .fgtsm-fine { margin-top: 2px; }
.fgtsm.fgtsm a.fgtsm-link {
  color: #062f69;
  font-weight: 600;
  /* important: the theme Customizer ships a { text-decoration: none !important } */
  text-decoration: underline !important;
  cursor: pointer;
  display: inline-block;
  padding: 10px 0;
}
.fgtsm.fgtsm a.fgtsm-link:focus-visible,
.fgtsm.fgtsm a.fgtsm-cta-btn:focus-visible,
.fgtsm.fgtsm .fgtsm-cta a.fgtsm-tel:focus-visible,
.fgtsm.fgtsm input.fgtsm-name:focus-visible {
  outline: 3px solid #062f69;
  outline-offset: 2px;
}

/* ---- buttons: yellow primary / navy outline secondary, house hover swap ---- */
.fgtsm.fgtsm button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 13px 22px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
  width: auto;
  min-height: 44px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.fgtsm.fgtsm button:focus-visible {
  outline: 3px solid #062f69;
  outline-offset: 2px;
}
/* programmatic focus targets (score row, error headings) get no visual ring;
   screen readers still land there and the aria-live status announces the change */
.fgtsm.fgtsm [tabindex="-1"]:focus { outline: none; }
.fgtsm.fgtsm .fgtsm-btn-primary {
  background-color: #fbdb24;
  color: #062f69;
  border: 2px solid #fbdb24;
}
.fgtsm.fgtsm .fgtsm-btn-primary:hover,
.fgtsm.fgtsm .fgtsm-btn-primary:active {
  background-color: #062f69;
  color: #fbdb24;
  border-color: #062f69;
}
.fgtsm.fgtsm .fgtsm-btn-secondary {
  background-color: #ffffff;
  color: #062f69;
  border: 2px solid #062f69;
}
.fgtsm.fgtsm .fgtsm-btn-secondary:hover,
.fgtsm.fgtsm .fgtsm-btn-secondary:active {
  background-color: #062f69;
  color: #ffffff;
  border-color: #062f69;
}
.fgtsm.fgtsm .fgtsm-btn-ghost {
  background-color: transparent;
  color: #41547a;
  border: 1px solid #c3cfe0;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 14px;
  min-height: 44px;
}
.fgtsm.fgtsm .fgtsm-btn-ghost:hover {
  background-color: #062f69;
  color: #ffffff;
  border-color: #062f69;
}
.fgtsm.fgtsm button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  background-color: #e7ecf4;
  color: #66738a;
  border-color: #e7ecf4;
}
.fgtsm.fgtsm .fgtsm-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0;
}
.fgtsm.fgtsm .fgtsm-btn-row > button { flex: 1 1 180px; }

/* ---- countdown / listening ---- */
.fgtsm.fgtsm .fgtsm-big {
  font-size: 64px;
  font-weight: 800;
  color: #062f69;
  text-align: center;
  line-height: 1.1;
  min-height: 76px;
}
.fgtsm.fgtsm .fgtsm-big.fgtsm-scream { color: #d80903; }
.fgtsm.fgtsm .fgtsm-energy {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #41547a;
  font-variant-numeric: tabular-nums;
}
.fgtsm.fgtsm .fgtsm-progress {
  height: 8px;
  border-radius: 999px;
  background: #e7ecf4;
  overflow: hidden;
}
.fgtsm.fgtsm .fgtsm-progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #fbdb24, #d80903);
  transition: width 0.12s linear;
}
.fgtsm.fgtsm .fgtsm-callout {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  color: #fbdb24;
  text-shadow: 0 1px 3px rgba(4, 29, 66, 0.9);
  min-height: 20px;
  padding: 0 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.fgtsm.fgtsm .fgtsm-callout.fgtsm-show { opacity: 1; }

/* ---- result ---- */
.fgtsm.fgtsm .fgtsm-score-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.fgtsm.fgtsm .fgtsm-score-label {
  font-size: 13px;
  font-weight: 700;
  color: #66738a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fgtsm.fgtsm .fgtsm-score {
  font-size: 56px;
  font-weight: 800;
  color: #062f69;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.fgtsm.fgtsm .fgtsm-score small {
  font-size: 24px;
  font-weight: 700;
  color: #66738a;
}
.fgtsm.fgtsm .fgtsm-level {
  font-size: 24px;
  font-weight: 800;
  color: #062f69;
  line-height: 1.25;
  min-height: 30px;
}
.fgtsm.fgtsm .fgtsm-quip { font-size: 15px; color: #41547a; }
.fgtsm.fgtsm .fgtsm-banner {
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 16px;
  text-align: center;
  color: #ffffff;
  background: #d80903;
}
.fgtsm.fgtsm .fgtsm-banner.fgtsm-banner-2319 {
  background: repeating-linear-gradient(135deg, #d80903 0 18px, #a50702 18px 36px);
  border: 2px solid #fbdb24;
  animation: fgtsm-stripes 1.2s linear infinite;
}
.fgtsm.fgtsm .fgtsm-banner-text { display: inline-block; }
.fgtsm.fgtsm .fgtsm-banner-2319 .fgtsm-banner-text {
  animation: fgtsm-banner-pulse 0.9s ease-in-out infinite;
}
@keyframes fgtsm-stripes {
  from { background-position: 0 0; }
  to { background-position: 50.91px 0; }
}
@keyframes fgtsm-banner-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}
.fgtsm.fgtsm .fgtsm-tape {
  background: repeating-linear-gradient(135deg, #fbdb24 0 16px, #1c2b45 16px 32px);
  height: 12px;
  border-radius: 3px;
}
.fgtsm.fgtsm .fgtsm-pill {
  display: inline-block;
  background: #d80903;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 12px;
  letter-spacing: 0.04em;
}
.fgtsm.fgtsm .fgtsm-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.fgtsm.fgtsm .fgtsm-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f4f7fb;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  padding: 6px 14px 6px 10px;
  font-size: 13.5px;
}
.fgtsm.fgtsm .fgtsm-badge b { color: #062f69; font-weight: 800; }
.fgtsm.fgtsm .fgtsm-badge span { color: #41547a; }
.fgtsm.fgtsm .fgtsm-report {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  background: #f4f7fb;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: #41547a;
}
.fgtsm.fgtsm .fgtsm-report b { color: #062f69; font-variant-numeric: tabular-nums; }
.fgtsm.fgtsm details.fgtsm-breakdown {
  font-size: 13.5px;
  color: #41547a;
}
.fgtsm.fgtsm details.fgtsm-breakdown summary {
  cursor: pointer;
  font-weight: 700;
  color: #062f69;
}
.fgtsm.fgtsm .fgtsm-bars { display: grid; gap: 6px; margin-top: 8px; }
.fgtsm.fgtsm .fgtsm-bar-row { display: grid; grid-template-columns: 130px 1fr 34px; gap: 8px; align-items: center; }
.fgtsm.fgtsm .fgtsm-bar { height: 8px; border-radius: 999px; background: #e7ecf4; overflow: hidden; }
.fgtsm.fgtsm .fgtsm-bar i { display: block; height: 100%; background: #062f69; border-radius: 999px; }

/* ---- share ---- */
.fgtsm.fgtsm .fgtsm-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fgtsm.fgtsm .fgtsm-share-row .fgtsm-btn-ghost { flex: 1 1 110px; }

/* ---- scoreboard ---- */
.fgtsm.fgtsm .fgtsm-board {
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  padding: 12px 14px;
}
.fgtsm.fgtsm .fgtsm-board h4 { font-size: 15px; margin-bottom: 6px; }
.fgtsm.fgtsm .fgtsm-board ol { list-style: none; display: grid; gap: 4px; }
.fgtsm.fgtsm .fgtsm-board li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: #1f2933;
}
.fgtsm.fgtsm .fgtsm-board li b { font-variant-numeric: tabular-nums; color: #062f69; }
.fgtsm.fgtsm .fgtsm-board .fgtsm-crown { color: #7a5c00; font-weight: 700; font-size: 12px; }
/* Gravity Forms result-value fields (score/level/badges/source) are filled by
   the script and must stay invisible to the parent filling in the form */
.fgtsm.fgtsm .fgtsm-lead-score,
.fgtsm.fgtsm .fgtsm-lead-level,
.fgtsm.fgtsm .fgtsm-lead-badges,
.fgtsm.fgtsm .fgtsm-lead-source { display: none !important; }
.fgtsm.fgtsm .fgtsm-name-row { display: flex; gap: 8px; flex-wrap: wrap; }
.fgtsm.fgtsm input.fgtsm-name {
  flex: 1 1 180px;
  border: 1px solid #c3cfe0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  min-height: 44px;
  color: #1f2933;
  background: #ffffff;
}
.fgtsm.fgtsm input.fgtsm-name:focus-visible { outline: 3px solid #7ec2e0; outline-offset: 1px; }
.fgtsm.fgtsm .fgtsm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fgtsm.fgtsm .fgtsm-chips button {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  min-height: 44px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #062f69;
  color: #062f69;
}
.fgtsm.fgtsm .fgtsm-chips button:hover { background: #d6f1ff; color: #062f69; }

/* ---- CTA card ---- */
.fgtsm.fgtsm .fgtsm-cta {
  background: #f4f7fb;
  border: 1px solid #dbe4f0;
  border-left: 4px solid #fbdb24;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fgtsm.fgtsm .fgtsm-cta h4 { font-size: 17px; }
.fgtsm.fgtsm .fgtsm-cta p { font-size: 14px; color: #41547a; }
.fgtsm.fgtsm a.fgtsm-cta-btn {
  display: inline-block;
  background: #d80903;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  min-height: 44px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.fgtsm.fgtsm a.fgtsm-cta-btn:hover { background: #062f69; color: #ffffff; }
.fgtsm.fgtsm .fgtsm-cta a.fgtsm-tel { color: #062f69; font-weight: 700; text-decoration: none; font-size: 14px; }
.fgtsm.fgtsm .fgtsm-cta a.fgtsm-tel:hover { text-decoration: underline !important; }

/* ---- error panel ---- */
.fgtsm.fgtsm .fgtsm-error h4 { font-size: 18px; margin-bottom: 4px; }
.fgtsm.fgtsm .fgtsm-error p { font-size: 14px; color: #41547a; margin-bottom: 10px; }

/* ---- canister SVG states ---- */
.fgtsm.fgtsm .fgtsm-canister { width: 210px; height: auto; display: block; overflow: visible; }
.fgtsm.fgtsm .fgtsm-sparks line,
.fgtsm.fgtsm .fgtsm-sparks circle { opacity: 0; }
.fgtsm.fgtsm .fgtsm-critical .fgtsm-sparks line,
.fgtsm.fgtsm .fgtsm-critical .fgtsm-sparks circle {
  animation: fgtsm-spark 0.7s ease-out infinite;
}
.fgtsm.fgtsm .fgtsm-critical .fgtsm-sparks g:nth-child(2) line,
.fgtsm.fgtsm .fgtsm-critical .fgtsm-sparks g:nth-child(2) circle { animation-delay: 0.12s; }
.fgtsm.fgtsm .fgtsm-critical .fgtsm-sparks g:nth-child(3) line { animation-delay: 0.3s; }
.fgtsm.fgtsm .fgtsm-critical .fgtsm-sparks g:nth-child(4) line { animation-delay: 0.05s; }
.fgtsm.fgtsm .fgtsm-critical .fgtsm-sparks g:nth-child(5) circle { animation-delay: 0.4s; }
.fgtsm.fgtsm .fgtsm-critical .fgtsm-sparks g:nth-child(6) line { animation-delay: 0.22s; }
.fgtsm.fgtsm .fgtsm-critical .fgtsm-sparks g:nth-child(7) line { animation-delay: 0.5s; }
@keyframes fgtsm-spark {
  0% { opacity: 0; transform: translateY(0); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-14px); }
}
.fgtsm.fgtsm .fgtsm-led { fill: #3a4a63; transition: fill 0.2s ease; }
.fgtsm.fgtsm .fgtsm-warn .fgtsm-led { fill: #f5a623; }
.fgtsm.fgtsm .fgtsm-alarm .fgtsm-led { fill: #ff3b30; animation: fgtsm-blink 0.8s steps(2, start) infinite; }
.fgtsm.fgtsm .fgtsm-critical .fgtsm-led { fill: #ff3b30; animation: fgtsm-blink 0.4s steps(2, start) infinite; }
.fgtsm.fgtsm .fgtsm-critical.fgtsm-canister-wrap { animation: fgtsm-shake 0.28s linear infinite; }
@keyframes fgtsm-blink { 50% { fill: #5a1410; } }
@keyframes fgtsm-shake {
  0% { transform: translate(0, 0); }
  25% { transform: translate(1.5px, -1px); }
  50% { transform: translate(-1.5px, 1px); }
  75% { transform: translate(1px, 1.5px); }
  100% { transform: translate(0, 0); }
}
.fgtsm.fgtsm .fgtsm-reveal { animation: fgtsm-rise 0.45s ease; }
@keyframes fgtsm-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .fgtsm.fgtsm .fgtsm-alarm .fgtsm-led,
  .fgtsm.fgtsm .fgtsm-critical .fgtsm-led { animation: none; }
  .fgtsm.fgtsm .fgtsm-critical.fgtsm-canister-wrap { animation: none; }
  .fgtsm.fgtsm .fgtsm-reveal { animation: none; }
  .fgtsm.fgtsm .fgtsm-progress-fill { transition: none; }
  .fgtsm.fgtsm .fgtsm-banner-2319,
  .fgtsm.fgtsm .fgtsm-banner-2319 .fgtsm-banner-text { animation: none; }
  .fgtsm.fgtsm .fgtsm-critical .fgtsm-sparks line,
  .fgtsm.fgtsm .fgtsm-critical .fgtsm-sparks circle { animation: none; opacity: 0; }
}

/* ---- HUD ---- */
.fgtsm.fgtsm .fgtsm-hud {
  font-family: Consolas, Menlo, monospace;
  font-size: 13px;
  background: #041d42;
  color: #7ec2e0;
  border-radius: 8px;
  padding: 10px 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---- mobile ---- */
@media (max-width: 767px) {
  .fgtsm.fgtsm { margin: 16px auto; }
  .fgtsm.fgtsm .fgtsm-card { flex-direction: column; }
  .fgtsm.fgtsm .fgtsm-bay { flex: 0 0 auto; padding: 14px 10px 18px; }
  .fgtsm.fgtsm .fgtsm-canister { width: 132px; }
  .fgtsm.fgtsm .fgtsm-body { padding: 14px 14px 84px; }
  .fgtsm.fgtsm .fgtsm-big { font-size: 48px; min-height: 58px; }
  .fgtsm.fgtsm .fgtsm-headline { font-size: 22px; }
  .fgtsm.fgtsm .fgtsm-score { font-size: 44px; }
  .fgtsm.fgtsm .fgtsm-level { font-size: 20px; }
  .fgtsm.fgtsm .fgtsm-btn-row > button { flex: 1 1 100%; }
  .fgtsm.fgtsm .fgtsm-bar-row { grid-template-columns: 105px 1fr 30px; }
}
