/* Boogarins Afinador 1.2 — estilos isolados dentro do shortcode.
   Uma só família tipográfica, fundo escuro e afinador em formato de pedal. */
.bgr-tuner {
  --bgr-bg: #111414;
  --bgr-panel: #1c2020;
  --bgr-panel-2: #272c2b;
  --bgr-border: #373d3a;
  --bgr-white: #f0eee9;
  --bgr-muted: #a1a8a3;
  --bgr-coral: #e9947a;
  --bgr-green: #c3ed86;
  display: block;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  overflow: hidden;
  color: var(--bgr-white);
  background: var(--bgr-bg);
  font: 400 15px/1.5 Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}
.bgr-tuner, .bgr-tuner *, .bgr-tuner *::before, .bgr-tuner *::after { box-sizing: border-box; }
.bgr-tuner h2, .bgr-tuner h3, .bgr-tuner p { margin: 0; padding: 0; color: inherit; font-family: inherit; }
.bgr-tuner button, .bgr-tuner select, .bgr-tuner input { font-family: inherit; letter-spacing: normal; }
.bgr-tuner button { cursor: pointer; }
.bgr-tuner button:disabled { opacity: .65; cursor: wait; }
.bgr-tuner .hidden { display: none !important; }
.bgr-tuner button:focus-visible, .bgr-tuner select:focus-visible, .bgr-tuner input:focus-visible { outline: 3px solid var(--bgr-green); outline-offset: 3px; }
.bgr-tuner__canvas { background: #111414; }
.bgr-tuner__wrap { width: min(100%, 1290px); margin: 0 auto; padding: clamp(27px, 4vw, 58px) clamp(15px, 3.8vw, 52px) 42px; }
.bgr-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); align-items: start; gap: clamp(25px, 3.8vw, 56px); padding: 0; }

/* Corpo do pedal: coral fosco, acabamentos metálicos e um visor funcional. */
.bgr-pedal {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: 31px clamp(21px, 2.8vw, 38px) 25px;
  border: 5px solid #b75e4d;
  border-radius: 25px;
  color: #20322e;
  background: linear-gradient(135deg, #efab91 0%, #e99a7f 40%, #de806c 100%);
  box-shadow: inset 3px 3px 3px #ffe1c47a, inset -4px -5px 4px #81392b31,
              0 7px 0 #ad5c4d, 0 14px 0 #793a33, 0 28px 28px #0008;
}
.bgr-pedal::before { content: ''; position: absolute; z-index: -1; pointer-events: none; inset: 11px; border-radius: 16px; border: 1px solid #703c3244; }
.bgr-pedal::after { content: ''; position: absolute; z-index: -1; pointer-events: none; inset: 0; border-radius: 20px; opacity: .07; background: repeating-linear-gradient(18deg, transparent 0 3px, #3e1714 3px 4px, transparent 4px 12px); }
.bgr-pedal__screw { position: absolute; z-index: 3; width: 15px; height: 15px; border: 2px solid #86564e; border-radius: 50%; background: radial-gradient(circle at 30% 24%, #f3f0e8, #adb1ad 62%, #747b78); box-shadow: 1px 1px 2px #3b191a57; }
.bgr-pedal__screw::before { content: ''; position: absolute; left: 2px; top: 5px; width: 8px; height: 2px; background: #67716c; transform: rotate(-35deg); }
.bgr-pedal__screw--tl { top: 14px; left: 15px; }
.bgr-pedal__screw--tr { top: 14px; right: 15px; }
.bgr-pedal__screw--bl { bottom: 15px; left: 15px; }
.bgr-pedal__screw--br { bottom: 15px; right: 15px; }
.bgr-pedal__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 10px; margin: 1px 0 23px; }
.bgr-pedal__logo { color: #15443b; font-size: clamp(23px, 2.3vw, 33px); font-weight: 900; line-height: 1; letter-spacing: -.9px; }
.bgr-tuner .bgr-pedal__model { margin: 0; color: #75463e; font-size: 12px; font-weight: 800; letter-spacing: .85px; line-height: 1.2; white-space: nowrap; }
.bgr-pedal__toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 16px; padding: 4px; background: #a65d50; border-radius: 7px; box-shadow: inset 0 2px 5px #63332988; }
.bgr-tuner .mode-tab { width: 100%; min-height: 40px; padding: 8px 5px; margin: 0; border: none; border-radius: 4px; color: #f6d1c1; background: transparent; box-shadow: none; text-shadow: none; font-size: 12px; font-weight: 700; line-height: 1.15; transition: background .15s, color .15s; }
.bgr-tuner .mode-tab[aria-selected="true"] { color: #21483e; background: #f4dac6; box-shadow: 0 1px 2px #692a2170; }
.bgr-tuner .mode-tab:not([aria-selected="true"]):hover { color: #fff; }

/* Visor LCD — todas as notas e oscilações são atualizadas pelo JavaScript. */
.bgr-pedal__display { position: relative; overflow: hidden; padding: 13px 15px 16px; border: 7px solid #2c3b36; border-radius: 12px; background: #0c1715; box-shadow: inset 0 0 0 2px #060c0a, inset 0 7px 13px #000, 0 3px 5px #5f393280; }
.bgr-pedal__display::before { content: ''; position: absolute; z-index: 1; inset: 0; pointer-events: none; opacity: .16; background: repeating-linear-gradient(0deg, transparent 0 3px, #000 3px 4px); }
.bgr-screen__top, .bgr-screen__bottom { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; font-weight: 700; letter-spacing: .4px; color: #8bafa2; }
.bgr-screen__top { min-height: 23px; align-items: flex-start; }
.bgr-screen__power { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; font-size: 10px; font-weight: 400; text-align: right; letter-spacing: 0; color: #96aca2; }
.bgr-tuner .status-dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #6b8277; }
.bgr-tuner .bgr-screen__power.listening { color: #d4f4a7; }
.bgr-tuner .bgr-screen__power.listening .status-dot { background: var(--bgr-green); box-shadow: 0 0 9px var(--bgr-green); }
.bgr-screen__bottom { padding-top: 10px; border-top: 1px solid #325046; color: #85a395; }
.bgr-screen__bottom span:nth-child(2) { color: var(--bgr-green); }
.bgr-tuner .meter-zone { position: relative; z-index: 2; min-height: 322px; padding-bottom: 2px; text-align: center; }
.bgr-tuner .meter { height: 202px; max-width: 450px; margin: 0 auto -65px; }
.bgr-tuner .meter svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bgr-tuner .meter svg path { fill: none; }
.bgr-tuner .meter-track { stroke: #456e58; stroke-width: 3; opacity: .75; }
.bgr-tuner .meter-good { stroke: var(--bgr-green); stroke-width: 5; filter: drop-shadow(0 0 5px #adf66a80); }
.bgr-tuner .meter-tick { stroke: #5f7f6b; stroke-width: 2; }
.bgr-tuner .meter-tick.strong { stroke: #98b8a2; stroke-width: 2.4; }
.bgr-tuner .meter-tick.center-tick { stroke: var(--bgr-green); stroke-width: 3.5; filter: drop-shadow(0 0 5px var(--bgr-green)); }
.bgr-tuner .meter-needle { transform-origin: 250px 255px; transform: rotate(0deg); transition: transform .14s ease; }
.bgr-tuner .meter-needle line { stroke: #ffb49b; stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 5px #ffa68d80); }
.bgr-tuner .meter-needle circle { fill: #f9ae97; stroke: #635347; stroke-width: 3; }
.bgr-tuner .meter.captured .meter-needle line { stroke: var(--bgr-green); filter: drop-shadow(0 0 7px var(--bgr-green)); }
.bgr-tuner .meter.captured .meter-needle circle { fill: var(--bgr-green); }
.bgr-tuner .meter svg text { fill: #88a892; font: 700 20px/1 Arial, Helvetica, sans-serif; }
.bgr-tuner .meter svg text.center-label { font-size: 22px; fill: #c2e9a1; }
.bgr-tuner .pitch-display { position: relative; z-index: 3; display: flex; justify-content: center; align-items: baseline; gap: 4px; min-height: 130px; color: var(--bgr-green); text-shadow: 0 0 12px #b4ee8180, 0 0 24px #b4ee8140; }
.bgr-tuner .note { font-family: Arial, Helvetica, sans-serif; font-size: clamp(100px, 10vw, 145px); font-weight: 900; line-height: 1; letter-spacing: -5px; }
.bgr-tuner .note.placeholder { opacity: .45; }
.bgr-tuner .note-id { font-size: 39px; font-weight: 700; line-height: 1; letter-spacing: -1px; }
.bgr-tuner .pitch-display.in-tune { color: #dcffa4; text-shadow: 0 0 24px #b4ee81; }
.bgr-tuner .pitch-detail { min-height: 23px; color: #b8cabb; font-size: 12px; line-height: 1.4; }
.bgr-tuner .pitch-detail strong { color: #e0f5b6; }
.bgr-tuner .accuracy { min-height: 25px; max-width: 100%; margin: 10px auto 0; color: #f4b09a; font-size: 12px; font-weight: 700; line-height: 1.4; }
.bgr-tuner .accuracy.ok { color: var(--bgr-green); }
.bgr-tuner .accuracy.flat { color: #f4b09a; }
.bgr-tuner .accuracy.sharp { color: #efd0a1; }

/* Footswitch do pedal. */
.bgr-pedal__switch-area { display: flex; justify-content: center; padding: 22px 0 0; }
.bgr-pedal__switch-unit { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 180px; }
.bgr-switch-led { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 800; color: #79473e; letter-spacing: .4px; }
.bgr-switch-led b { display: block; width: 11px; height: 11px; border: 2px solid #793f36; border-radius: 50%; background: #7c322e; box-shadow: inset 0 1px 2px #210e0c, 0 1px 1px #fff5e081; }
.bgr-pedal.is-listening .bgr-switch-led b { background: #d8ff8e; border-color: #60933f; box-shadow: 0 0 12px 3px #d8ff8e; }
.bgr-tuner .listen-button { position: relative; display: grid; place-items: center; flex: none; width: 85px; height: 85px; margin: 0; padding: 0; min-height: 0; border: 6px solid #7a7f7b; border-radius: 50%; color: #3a5850; background: radial-gradient(circle at 30% 25%, #f2f3ed, #cbd0cb 24%, #a6ada7 55%, #69746d 88%); box-shadow: 0 1px 1px #fff inset, 0 0 0 3px #a46657, 0 5px 0 #656c67, 0 9px 7px #743e3670, inset 0 -5px 8px #46574c77; transition: transform .12s, box-shadow .12s; }
.bgr-tuner .listen-button::after { content: ''; position: absolute; pointer-events: none; inset: 7px; border: 1px solid #fff9e6b0; border-radius: 50%; }
.bgr-tuner .listen-button svg { position: relative; z-index: 1; width: 29px; height: 29px; }
.bgr-tuner .listen-button:hover { filter: brightness(1.05); }
.bgr-tuner .listen-button:active, .bgr-tuner .listen-button.active { transform: translateY(4px); box-shadow: 0 1px 1px #fff inset, 0 0 0 3px #a46657, 0 1px 0 #656c67, 0 2px 3px #743e3670, inset 0 -5px 8px #46574c77; }
.bgr-tuner .bgr-switch-caption { font-size: 12px; font-weight: 800; color: #24463c; }
.bgr-tuner .listen-info { max-width: 360px; margin: 10px auto 0; color: #6b4039; font-size: 12px; line-height: 1.5; text-align: center; }
.bgr-tuner .notice { margin-top: 12px; padding: 10px 12px; color: #5d1f1b; background: #ffe2ce; border: 1px solid #a84b40; border-radius: 6px; font-size: 12px; }

/* Painel lateral escuro: menus e seleção de cordas. */
.bgr-console { min-width: 0; padding: clamp(22px, 2.5vw, 32px); border: 1px solid #383f3c; border-radius: 12px; background: var(--bgr-panel); box-shadow: 0 12px 25px #0002; }
.bgr-console__top { margin-bottom: 24px; padding-bottom: 17px; border-bottom: 1px solid #3b4440; }
.bgr-tuner .bgr-console__top h2 { color: #f2efe9; font-size: 23px; line-height: 1.2; font-weight: 700; letter-spacing: -.35px; }
.bgr-tuner .field { min-width: 0; margin-bottom: 18px; }
.bgr-tuner .field>label, .bgr-tuner .field-label { display: block; margin: 0 0 7px; color: #bdc6bd; font-size: 12px; font-weight: 700; line-height: 1.4; }
.bgr-tuner .field-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.bgr-tuner .select-wrap { position: relative; min-width: 0; }
.bgr-tuner .select-wrap::after { content: ''; position: absolute; pointer-events: none; right: 14px; top: calc(50% - 4px); width: 8px; height: 8px; border-right: 2px solid #c5c9c2; border-bottom: 2px solid #c5c9c2; transform: rotate(45deg); }
.bgr-tuner select, .bgr-tuner .number-field, .bgr-tuner .custom-note { display: block; width: 100%; min-width: 0; max-width: 100%; height: 46px; min-height: 46px; padding: 10px 35px 10px 12px; margin: 0; border: 1px solid #4b5650; border-radius: 6px; background: var(--bgr-panel-2); color: #f1f3ee; box-shadow: none; font-size: 13px; line-height: 1.2; font-weight: 400; appearance: none; -webkit-appearance: none; color-scheme: dark; }
.bgr-tuner select:focus, .bgr-tuner input:focus { border-color: var(--bgr-green); }
.bgr-tuner .number-field { padding: 10px 7px; text-align: center; font-size: 16px; font-weight: 700; appearance: textfield; }
.bgr-tuner .calibration { display: flex; align-items: center; gap: 10px; }
.bgr-tuner .calibration .number-field { max-width: 92px; }
.bgr-tuner .calibration span { color: var(--bgr-muted); font-size: 12px; }
.bgr-tuner .strings-top { display: flex; justify-content: space-between; align-items: center; gap: 9px; margin: 5px 0 12px; padding-top: 20px; border-top: 1px solid #3b4440; }
.bgr-tuner .strings-top h3 { color: #f2efe9; font-size: 17px; font-weight: 700; line-height: 1.2; }
.bgr-tuner .auto-btn { margin: 0; padding: 7px 10px; border: 1px solid #63866d; border-radius: 6px; background: #233b2d; color: #c8efa6; box-shadow: none; white-space: nowrap; font-size: 11px; font-weight: 700; line-height: 1.2; }
.bgr-tuner .auto-btn[aria-pressed="false"] { border-color: #8a6659; background: #46342f; color: #efb39c; }
.bgr-tuner .strings { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
.bgr-tuner .string-item { min-width: 0; display: flex; align-items: stretch; overflow: hidden; border: 1px solid #47524c; border-radius: 6px; background: #282e2b; transition: border-color .15s, background .15s; }
.bgr-tuner .string-item.active { border-color: #b2de80; background: #2e4534; box-shadow: 0 0 0 1px #84ba65; }
.bgr-tuner .string-target { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; margin: 0; padding: 10px 5px 10px 9px; border: 0; border-radius: 0; background: transparent; color: #e4e9e3; box-shadow: none; text-align: left; }
.bgr-tuner .string-index { color: #91a096; font-size: 10px; font-weight: 400; line-height: 1; }
.bgr-tuner .string-note { color: #f0f2ed; font-size: 23px; font-weight: 700; line-height: 1.12; white-space: nowrap; letter-spacing: -.8px; }
.bgr-tuner .string-freq { color: #a5b0a6; font-size: 9px; line-height: 1.3; white-space: nowrap; }
.bgr-tuner .sound-btn { flex: none; display: grid; place-items: center; width: 29px; min-height: 0; margin: 0; padding: 0 4px; border: 0; border-left: 1px solid #465149; border-radius: 0; background: #323b35; color: #a7c5a6; box-shadow: none; }
.bgr-tuner .sound-btn svg { display: block; width: 17px; height: 17px; }
.bgr-tuner .sound-btn.playing { background: #a6d37e; color: #193824; }
.bgr-tuner .field-help { margin: 10px 0 0; color: #a3aca5; font-size: 12px; line-height: 1.5; }
.bgr-tuner #custom-error:not(:empty) { color: #f3a998; }
.bgr-tuner .custom-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin: 13px 0; }
.bgr-tuner .custom-item { min-width: 0; }
.bgr-tuner .custom-item label { display: block; margin-bottom: 4px; font-size: 11px; color: #aeb8ae; }
.bgr-tuner .custom-note { height: 44px; min-height: 44px; padding: 8px; text-transform: uppercase; }
.bgr-tuner .custom-note.invalid { border-color: #d87d70; background: #452624; }
.bgr-tuner .empty-strings { margin: 0 0 18px; padding: 25px 20px; border: 1px solid #45534a; border-radius: 8px; background: #242b27; }
.bgr-tuner .empty-strings strong { display: block; margin-bottom: 8px; color: #d0f0aa; font-size: 16px; }
.bgr-tuner .empty-strings p { color: #acb7ad; font-size: 13px; line-height: 1.55; }
.bgr-tuner .setting-divider { padding: 17px 0 14px; margin-top: 19px; border-top: 1px solid #3b4440; color: #e1e5de; font-size: 14px; font-weight: 700; }
.bgr-tuner .bgr-field-row--end .field { margin-bottom: 14px; }
.bgr-tuner .bgr-signal-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 7px; padding-top: 15px; border-top: 1px solid #363d39; }
.bgr-tuner .bgr-signal-line .field-label { margin: 0; color: #a5ada5; font-weight: 400; }
.bgr-tuner .signal-wrap { display: flex; align-items: center; gap: 10px; }
.bgr-tuner .signal { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.bgr-tuner .signal b { display: block; width: 7px; height: 5px; border-radius: 2px; background: #404943; transition: background .17s; }
.bgr-tuner .signal b:nth-child(2) { height: 9px; }
.bgr-tuner .signal b:nth-child(3) { height: 13px; }
.bgr-tuner .signal b:nth-child(4) { height: 17px; }
.bgr-tuner .signal b:nth-child(5) { height: 22px; }
.bgr-tuner .signal b.on { background: #afd57f; }
.bgr-tuner .signal b:nth-child(5).on { background: #e99a7f; }
.bgr-tuner .signal-wrap small { color: #bac1b9; font-size: 11px; white-space: nowrap; }

/* Explicação única sob o afinador, sem introdução, selos ou numeração. */
.bgr-instructions { max-width: 1040px; padding-top: 25px; margin: 52px auto 0; border-top: 1px solid #353b38; }
.bgr-tuner .bgr-instructions h2 { margin-bottom: 12px; font-size: 18px; font-weight: 700; line-height: 1.3; color: #f2eee7; }
.bgr-tuner .bgr-instructions p { max-width: 850px; color: #bac1b9; font-size: 14px; line-height: 1.75; }
.bgr-tuner .bgr-instructions p + p { margin-top: 12px; }
.bgr-tuner .bgr-instructions__privacy { color: #909a92; font-size: 12px; }

@media (max-width: 1050px) {
  .bgr-workspace { gap: 25px; }
  .bgr-pedal { padding-inline: 20px; }
  .bgr-console { padding: 23px; }
  .bgr-tuner .string-note { font-size: 21px; }
  .bgr-tuner .strings { gap: 7px; }
  .bgr-tuner .string-target { padding-left: 7px; }
  .bgr-tuner .sound-btn { width: 25px; }
}
@media (max-width: 890px) {
  .bgr-workspace { grid-template-columns: minmax(0,1fr); max-width: 650px; margin: 0 auto; gap: 41px; }
  .bgr-tuner .note { font-size: clamp(105px, 17vw, 145px); }
  .bgr-tuner .strings { gap: 10px; }
  .bgr-tuner .string-note { font-size: 25px; }
  .bgr-instructions { max-width: 650px; margin-top: 36px; }
}
@media (max-width: 600px) {
  .bgr-tuner__wrap { padding: 23px 14px 31px; }
  .bgr-workspace { gap: 38px; }
  .bgr-pedal { padding: 27px 17px 21px; border-width: 4px; border-radius: 22px; box-shadow: inset 3px 3px 3px #ffe1c47a, inset -4px -5px 4px #81392b31, 0 5px 0 #ad5c4d, 0 10px 0 #793a33, 0 19px 20px #0008; }
  .bgr-pedal__top { padding-inline: 7px; margin-bottom: 17px; }
  .bgr-pedal__logo { font-size: 25px; }
  .bgr-tuner .bgr-pedal__model { font-size: 10px; }
  .bgr-tuner .mode-tab { min-height: 38px; font-size: 11px; }
  .bgr-pedal__display { padding: 12px 10px 13px; border-width: 6px; }
  .bgr-screen__top, .bgr-screen__bottom { font-size: 9px; }
  .bgr-screen__power { font-size: 9px; }
  .bgr-tuner .meter { height: 177px; margin-bottom: -60px; }
  .bgr-tuner .meter-zone { min-height: 294px; }
  .bgr-tuner .note { font-size: clamp(89px, 26vw, 125px); }
  .bgr-tuner .note-id { font-size: 32px; }
  .bgr-tuner .pitch-display { min-height: 117px; }
  .bgr-tuner .pitch-detail, .bgr-tuner .accuracy { font-size: 11px; }
  .bgr-pedal__switch-area { padding-top: 20px; }
  .bgr-tuner .listen-button { width: 77px; height: 77px; }
  .bgr-tuner .listen-button svg { width: 25px; height: 25px; }
  .bgr-tuner .listen-info { max-width: 290px; }
  .bgr-console { padding: 21px 18px; }
  .bgr-console__top { margin-bottom: 21px; }
  .bgr-tuner .strings { gap: 7px; }
  .bgr-tuner .string-note { font-size: 21px; }
  .bgr-tuner .string-freq { font-size: 9px; }
  .bgr-tuner .sound-btn { width: 26px; }
  .bgr-instructions { margin-top: 30px; }
}
@media (max-width: 370px) {
  .bgr-tuner__wrap { padding-inline: 10px; }
  .bgr-pedal { padding-inline: 13px; }
  .bgr-pedal__logo { font-size: 22px; }
  .bgr-tuner .bgr-pedal__model { font-size: 9px; }
  .bgr-tuner .meter { height: 157px; margin-bottom: -54px; }
  .bgr-tuner .meter-zone { min-height: 276px; }
  .bgr-tuner .note { font-size: 86px; }
  .bgr-screen__top { font-size: 8px; }
  .bgr-tuner .field-row { grid-template-columns: minmax(0,1fr); gap: 0; }
  .bgr-tuner .strings { gap: 6px; }
  .bgr-tuner .string-note { font-size: 19px; }
  .bgr-tuner .string-freq { font-size: 8px; }
  .bgr-tuner .sound-btn { width: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .bgr-tuner *, .bgr-tuner *::before, .bgr-tuner *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
