:root {
  --gg-bg: #08121b;
  --gg-bg2: #0c1823;
  --gg-panel: #0b1722;
  --gg-line: #263747;
  --gg-cream: #f5efe3;
  --gg-muted: #aab7c4;
  --gg-blue: #3298ff;
  --gg-gold: #f5a623;
  --gg-gold2: #ffc15a;
  --gg-green: #42d58b;
}
* { box-sizing: border-box; }
html, body, #root { min-height: 100%; }
body {
  margin: 0;
  background: var(--gg-bg);
  color: var(--gg-cream);
  font-family: "DM Sans", sans-serif;
}
#root .min-h-screen {
  min-height: 100vh;
  background: radial-gradient(circle at 82% 18%, rgba(50,152,255,.10), transparent 34%),
              linear-gradient(135deg, #08121b, #0b1823) !important;
  color: var(--gg-cream);
  padding: 112px 20px 48px;
  align-items: flex-start !important;
}
#root a.absolute {
  position: absolute;
  top: 28px;
  left: max(24px, calc((100vw - 980px) / 2));
  color: var(--gg-gold2) !important;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  text-decoration: none;
}
#root a.absolute:hover { color: #fff !important; }
#root .max-w-md { max-width: 470px; width: 100%; }
#root .bg-gray-900 {
  background: rgba(11, 23, 34, .96) !important;
  border: 1px solid #28506f !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 70px rgba(0,0,0,.30) !important;
}
#root h1.text-4xl {
  margin: 0 0 28px !important;
  color: transparent !important;
  font-size: 0 !important;
  font-weight: 400 !important;
  letter-spacing: 0;
}
#root h1.text-4xl::before {
  content: "";
  display: block;
  width: 250px;
  max-width: 100%;
  height: 59px;
  margin: 0 auto 15px;
  background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iNzAiIHZpZXdCb3g9IjAgMCAzMDAgNzAiPgo8dGV4dCB4PSIwIiB5PSIzOSIgZm9udC1mYW1pbHk9Ikdlb3JnaWEs c2VyaWYiIGZvbnQtc3R5bGU9Iml0YWxpYyIgZm9udC1zaXplPSIzOSIgZmlsbD0iI2Y1ZWZlMyI+R2FydGg8L3RleHQ+Cjx0ZXh0IHg9IjEwNCIgeT0iMzkiIGZvbnQtZmFtaWx5PSJHZW9yZ2lhLHNlcmlmIiBmb250LXN0eWxlPSJpdGFsaWMiIGZvbnQtc2l6ZT0iMzQiIGZpbGw9IiNmNWE2MjMiPkd1aXRhcjwvdGV4dD4KPHRleHQgeD0iMiIgeT0iNjEiIGZvbnQtZmFtaWx5PSJBcmlhbCxzYW5zLXNlcmlmIiBmb250LXNpemU9IjgiIGxldHRlci1zcGFjaW5nPSI0IiBmaWxsPSIjOGU5YWE1Ij5QTEFZIMK3IExFQVJOIMK3IEdST1c8L3RleHQ+Cjwvc3ZnPg==") center / contain no-repeat;
}
#root h1.text-4xl::after {
  content: "Metronome";
  display: block;
  color: var(--gg-cream);
  font: 400 29px/1.2 Georgia, "Times New Roman", serif;
  letter-spacing: .01em;
}
#root .bg-black {
  background: #08121b !important;
  border-width: 2px !important;
  border-color: var(--gg-gold) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 0 24px rgba(0,0,0,.18);
}
#root .border-purple-500 { border-color: var(--gg-gold) !important; }
#root .border-green-400 {
  border-color: var(--gg-green) !important;
  box-shadow: 0 0 18px rgba(66,213,139,.18) !important;
}
#root .text-gray-400 { color: var(--gg-muted) !important; }
#root .text-gray-500 { color: #81909d !important; }
#root .text-white { color: var(--gg-cream) !important; }
#root .text-6xl {
  color: var(--gg-gold2) !important;
  background: none !important;
  -webkit-text-fill-color: var(--gg-gold2) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
#root button {
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
}
#root .bg-gray-800 {
  background: #122536 !important;
  border: 1px solid #2a4052;
  color: var(--gg-cream) !important;
}
#root .bg-gray-800:hover {
  background: #1a3449 !important;
  border-color: var(--gg-blue);
}
#root button.w-full.py-4 {
  background: var(--gg-gold) !important;
  color: #101820 !important;
  border: 0 !important;
  border-radius: 30px !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background .18s ease, transform .18s ease;
}
#root button.w-full.py-4:hover {
  background: var(--gg-gold2) !important;
  transform: translateY(-1px) !important;
}
#root button.bg-red-600 {
  background: #a83b38 !important;
  color: #fff !important;
}
#root button.w-full.bg-gray-800 {
  border-radius: 30px !important;
  padding-top: 12px;
  padding-bottom: 12px;
}
#root input[type="range"] {
  accent-color: var(--gg-gold) !important;
  cursor: pointer;
}
#root select {
  background: #122536 !important;
  color: var(--gg-cream) !important;
  border: 1px solid #34495a !important;
  border-radius: 9px !important;
  font: 500 14px "DM Sans", sans-serif;
}
#root select:focus { border-color: var(--gg-gold) !important; outline: none; }
#root option { background: #0c1823; color: var(--gg-cream); }
#root .text-center p.text-sm:last-child { color: var(--gg-muted) !important; }
@media (max-width: 520px) {
  #root .min-h-screen { padding: 92px 14px 28px; }
  #root .bg-gray-900 { padding: 24px !important; }
  #root h1.text-4xl { font-size: 26px !important; }
  #root .text-6xl { font-size: 3.25rem !important; }
  #root a.absolute { left: 18px; top: 22px; }
}


/* Garth Guitar shared site header — matching the tuner page */
.site-header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  border-bottom: 1px solid var(--gg-line);
  position: sticky;
  top: 0;
  background: rgba(8,18,27,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
}
.site-header .brand {
  display: block;
  color: var(--gg-cream);
  text-decoration: none;
  line-height: .8;
  flex: 0 0 auto;
}
.site-header .brand-name { display: flex; align-items: baseline; gap: 5px; }
.site-header .brand-script {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 37px;
  color: var(--gg-cream);
}
.site-header .brand-guitar {
  color: var(--gg-gold);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 32px;
}
.site-header .brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 4px;
  color: #8e9aa5;
  margin-top: 8px;
  line-height: 1;
}
.site-header nav {
  display: flex;
  gap: 32px;
  align-items: center;
  position: relative;
  height: 100%;
}
.site-header nav a {
  color: #d5dde4;
  font-size: 14px;
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 2px 0 0;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s ease;
}
.site-header nav a:hover,
.site-header nav a.active { color: #fff; }
.site-header .nav-indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--gg-gold);
  pointer-events: none;
  transition: transform .28s cubic-bezier(.2,.75,.25,1), width .28s cubic-bezier(.2,.75,.25,1);
  will-change: transform, width;
}
.site-header .menu-btn {
  display: none;
  background: none;
  border: 0;
  color: white;
  font-size: 25px;
  cursor: pointer;
}
#root .min-h-screen { padding-top: 30px; }
#root a.absolute { display: none !important; }

@media (max-width: 900px) {
  .site-header { padding: 0 5%; }
  .site-header nav { display: none; }
  .site-header .menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 8px;
  }
  .site-header .menu-btn:focus-visible {
    outline: 2px solid var(--gg-gold);
    outline-offset: 3px;
  }
  .site-header.menu-open nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: auto;
    padding: 8px 5% 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(8,18,27,.985);
    border-bottom: 1px solid var(--gg-line);
    box-shadow: 0 14px 24px rgba(0,0,0,.28);
  }
  .site-header.menu-open nav a {
    min-height: 48px;
    padding: 0 4px;
    border-bottom: 1px solid rgba(38,55,71,.65);
  }
  .site-header.menu-open nav a:last-of-type { border-bottom: 0; }
  .site-header .nav-indicator { display: none; }
  #root .min-h-screen { padding: 24px 14px 28px; }
}
@media (max-width: 620px) {
  .site-header .brand-script { font-size: 30px; }
  .site-header .brand-guitar { font-size: 25px; }
}


/* ===== Garth Guitar unified colour theme ===== */

#root .min-h-screen {
  background: #08121b !important;
  color: #f5efe3 !important;
}

#root .bg-gray-900 {
  background: #0c1823 !important;
  border-color: #263747 !important;
}

#root .bg-gray-800 {
  background: #122536 !important;
  border-color: #263747 !important;
  color: #f5efe3 !important;
}

#root .bg-gray-800:hover {
  background: #1a3449 !important;
  border-color: #f5a623 !important;
}

#root .bg-black {
  background: #08121b !important;
  border-color: #f5a623 !important;
}

#root .border-purple-500,
#root .focus\:border-purple-500:focus {
  border-color: #f5a623 !important;
}

#root .text-purple-400 {
  color: #ffc15a !important;
}

#root .hover\:text-purple-300:hover {
  color: #ffc15a !important;
}

#root .accent-purple-500 {
  accent-color: #f5a623 !important;
}

#root .text-white {
  color: #f5efe3 !important;
}

#root .text-gray-400 {
  color: #aab7c4 !important;
}

#root .text-gray-500 {
  color: #81909d !important;
}

#root .text-6xl {
  color: #ffc15a !important;
  -webkit-text-fill-color: #ffc15a !important;
}

#root button,
#root input,
#root select {
  accent-color: #f5a623;
}

#root button.w-full.py-4 {
  background: #f5a623 !important;
  color: #08121b !important;
}

#root button.w-full.py-4:hover {
  background: #ffc15a !important;
}

#root button.bg-red-600 {
  background: #a83b38 !important;
  color: #fff !important;
}

/* Remove the original purple/blue gradients */
#root .bg-gradient-to-br,
#root .bg-gradient-to-r {
  background-image: none !important;
}

#root .from-blue-400,
#root .from-blue-500,
#root .from-blue-900 {
  --tw-gradient-from: #0c1823 !important;
}

#root .via-purple-900 {
  --tw-gradient-stops: #08121b, #0c1823 !important;
}

#root .to-purple-400,
#root .to-purple-600 {
  --tw-gradient-to: #0c1823 !important;
}

#root .hover\:from-blue-600:hover {
  --tw-gradient-from: #1a3449 !important;
}

#root .hover\:to-purple-700:hover {
  --tw-gradient-to: #1a3449 !important;
}

#root .border-gray-700 {
  border-color: #263747 !important;
}

#root select {
  background: #122536 !important;
  color: #f5efe3 !important;
  border-color: #263747 !important;
}

#root select:focus {
  border-color: #f5a623 !important;
}

#root option {
  background: #0c1823 !important;
  color: #f5efe3 !important;
}


/* ===== Match the tuner: subdued panels, limited gold accents ===== */

/* Main metronome card */
#root .bg-gray-900 {
  background: #0c1823 !important;
  border: 1px solid #263747 !important;
  box-shadow: 0 20px 70px rgba(0,0,0,.25) !important;
}

/* Tempo display: remove heavy gold frame */
#root .bg-black {
  background: #08121b !important;
  border: 1px solid #263747 !important;
  box-shadow: none !important;
}

/* Remove gold borders that were replacing purple borders */
#root .border-purple-500 {
  border-color: #263747 !important;
}

/* Running state remains green, but restrained */
#root .border-green-400 {
  border-color: #42d58b !important;
  box-shadow: none !important;
}

/* Normal buttons: dark slate */
#root .bg-gray-800 {
  background: #122536 !important;
  border: 1px solid #263747 !important;
  color: #f5efe3 !important;
}

#root .bg-gray-800:hover {
  background: #1a3449 !important;
  border-color: #526a7d !important;
}

/* Gold stays on the tempo itself, not every panel */
#root .text-6xl {
  color: #ffc15a !important;
  -webkit-text-fill-color: #ffc15a !important;
}

/* Keep the Start button gold */
#root button.w-full.py-4 {
  background: #f5a623 !important;
  color: #08121b !important;
}

/* Slider */
#root input[type="range"] {
  accent-color: #f5a623 !important;
}

/* Dropdown */
#root select {
  background: #122536 !important;
  border-color: #263747 !important;
  color: #f5efe3 !important;
}

#root select:focus {
  border-color: #526a7d !important;
  outline: none !important;
}

/* === Fretboard and Scale Trainer promotions === */
.gg-tool-promos {
  max-width: 470px;
  width: 100%;
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gg-tool-promos a {
  display: block;
  padding: 12px 14px;
  background: #0c1823;
  border: 1px solid #263747;
  border-radius: 12px;
  text-decoration: none;
  color: #f5efe3;
  transition: border-color .18s ease, background .18s ease;
}
.gg-tool-promos a:hover {
  border-color: #526a7d;
  background: #122536;
}
.gg-tool-promos strong {
  display: block;
  font: 500 16px Georgia, serif;
  margin-bottom: 3px;
}
.gg-tool-promos span {
  color: #aab7c4;
  font-size: 11px;
  line-height: 1.35;
}

/* === Compact mobile layout === */
@media (max-width: 520px) {
  html, body { height: 100%; overflow-x: hidden; }
  body { min-height: 100svh; }
  #root .min-h-screen {
    min-height: 0 !important;
    height: auto !important;
    padding: 8px 10px 8px !important;
    align-items: center !important;
  }
  #root .bg-gray-900 {
    padding: 14px !important;
    margin: 0 auto !important;
  }
  #root h1.text-4xl { margin-bottom: 10px !important; }
  #root h1.text-4xl::before {
    height: 43px !important;
    width: 210px !important;
    margin-bottom: 5px !important;
  }
  #root h1.text-4xl::after {
    font-size: 23px !important;
  }
  #root .text-6xl { font-size: 2.6rem !important; }
  #root button.w-full.py-4 {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
  #root button.w-full.bg-gray-800 {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
  #root .space-y-6 > * + * { margin-top: 12px !important; }
  #root .space-y-4 > * + * { margin-top: 9px !important; }
  #root .space-y-3 > * + * { margin-top: 7px !important; }
  .gg-tool-promos {
    margin: 8px auto 0;
    gap: 8px;
  }
  .gg-tool-promos a { padding: 9px 10px; }
  .gg-tool-promos strong { font-size: 14px; }
  .gg-tool-promos span { font-size: 10px; }
}

/* === FIX: integrate tool promotions into the dark Garth Guitar page === */
html, body { background: #08121b !important; color: #f5efe3; }
body { min-height: 100vh; }
.gg-tool-promos {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 16px max(14px, calc((100vw - 470px) / 2)) 22px !important;
  background: #08121b !important;
  border: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
  gap: 10px !important;
}
.gg-tool-promos a {
  background: #0c1823 !important;
  border: 1px solid #263747 !important;
  color: #f5efe3 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  box-shadow: none !important;
}
.gg-tool-promos a:hover {
  background: #122536 !important;
  border-color: #526a7d !important;
}
.gg-tool-promos strong { color: #f5efe3 !important; }
.gg-tool-promos span { color: #aab7c4 !important; }

/* Mobile: compact app and keep promos visually attached, no white footer band. */
@media (max-width: 520px) {
  html, body { background: #08121b !important; }
  body { min-height: 100svh; }
  #root .min-h-screen {
    min-height: 0 !important;
    height: auto !important;
    padding: 8px 10px 8px !important;
    background: #08121b !important;
  }
  #root .max-w-md { max-width: 100% !important; }
  #root .bg-gray-900 { padding: 12px !important; }
  #root h1.text-4xl { margin-bottom: 8px !important; }
  #root h1.text-4xl::before { height: 38px !important; width: 190px !important; margin-bottom: 3px !important; }
  #root h1.text-4xl::after { font-size: 21px !important; }
  #root .text-6xl { font-size: 2.35rem !important; }
  #root button.w-full.py-4 { padding-top: 9px !important; padding-bottom: 9px !important; }
  #root button.w-full.bg-gray-800 { padding-top: 7px !important; padding-bottom: 7px !important; }
  #root .space-y-6 > * + * { margin-top: 10px !important; }
  #root .space-y-4 > * + * { margin-top: 7px !important; }
  #root .space-y-3 > * + * { margin-top: 6px !important; }
  .gg-tool-promos {
    padding: 8px 10px 12px !important;
    gap: 8px !important;
    background: #08121b !important;
  }
  .gg-tool-promos a { padding: 8px 10px !important; }
  .gg-tool-promos strong { font-size: 13px !important; }
  .gg-tool-promos span { font-size: 10px !important; line-height: 1.3 !important; }
}

/* Responsive side promotions: desktop flanking cards, mobile compact footer links */
html,body{background:#08121b!important;color:#f5efe3!important;margin:0!important;}
.gg-tool-promos{background:#08121b!important;color:#f5efe3!important;}
@media (min-width:900px){
 .gg-tool-promos{position:fixed!important;left:18px!important;right:18px!important;top:50%!important;transform:translateY(-50%)!important;width:auto!important;max-width:none!important;padding:0!important;margin:0!important;display:flex!important;justify-content:space-between!important;gap:18px!important;z-index:3!important;pointer-events:none!important;background:transparent!important;}
 .gg-tool-promos a{width: min(220px,18vw)!important;min-height:105px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;pointer-events:auto!important;}
 #root{position:relative!important;z-index:2!important;}
 #root .min-h-screen{min-height:calc(100vh - 82px)!important;}
}
@media (min-width:900px) and (max-width:1150px){.gg-tool-promos{left:8px!important;right:8px!important}.gg-tool-promos a{width:150px!important}}
@media(max-width:899px){
 .gg-tool-promos{position:fixed!important;bottom:env(safe-area-inset-bottom,0px)!important;left:0!important;right:0!important;z-index:20!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;padding:7px 10px!important;margin:0!important;background:#08121b!important;border-top:1px solid #263747!important;}
 .gg-tool-promos a{padding:7px 9px!important;min-height:0!important;}
 .gg-tool-promos span{display:none!important;}
 #root .min-h-screen{min-height:0!important;height:auto!important;padding:4px 8px 64px!important;}
 #root .max-w-md{max-width:100%!important;}
 #root .bg-gray-900{padding:10px!important;}
 #root h1.text-4xl{margin:0 0 4px!important;}
 #root h1.text-4xl::before{height:30px!important;width:155px!important;margin-bottom:0!important;}
 #root h1.text-4xl::after{font-size:18px!important;}
 #root .bg-black{padding:12px!important;margin-bottom:10px!important;border-width:2px!important;}
 #root .text-6xl{font-size:2.1rem!important;}
 #root .flex.gap-3.mb-8{gap:6px!important;margin-bottom:10px!important;}
 #root .mb-8{margin-bottom:10px!important;}
 #root .mb-4{margin-bottom:8px!important;}
 #root button.w-full.py-4{padding:8px 10px!important;margin-bottom:7px!important;font-size:15px!important;}
 #root button.w-full.bg-gray-800{padding:7px 10px!important;}
 #root .space-y-6>*+*{margin-top:8px!important;}
 #root .space-y-4>*+*{margin-top:7px!important;}
 #root .space-y-3>*+*{margin-top:5px!important;}
}
@media(max-width:899px) and (max-height:740px){
 #root h1.text-4xl::before{height:24px!important;width:130px!important;}
 #root h1.text-4xl::after{font-size:16px!important;}
 #root .bg-gray-900{padding:7px!important;}
 #root .bg-black{padding:8px!important;}
 #root .text-6xl{font-size:1.8rem!important;}
 #root .mb-8{margin-bottom:6px!important;}
 #root button.w-full.py-4{padding:6px!important;margin-bottom:5px!important;}
 #root button.w-full.bg-gray-800{padding:5px!important;}
 #root .space-y-6>*+*{margin-top:5px!important;}
}

.language-links{display:flex;justify-content:center;gap:8px;font-size:12px;color:#aab7c4;background:#08121b;padding:4px 0}.language-links a{color:#aab7c4;text-decoration:none}.language-links a:hover{color:#f5a623}
