:root{
  --bg: #121212;
  --card: #1e1e1e;
  --card2: #1a1a1a;
  --text: #e0e0e0;
  --muted: #b8b8b8;
  --line: #444;
  --accent: #bdfc9a;   /* your classic GAG green */
  --accent2: #76c7ff;
  --shadow: none;      /* remove heavy “modern” shadows */
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: Arial, sans-serif;
  background: var(--bg) !important;
  color: var(--text) !important;
  padding: 5px; /* same as general.css */
}

.gh-header{
  padding: 10px;
  max-width: 100%;
  margin: 0 auto;
}

.gh-brand{
  display:flex;
  gap:14px;
  align-items:center;
}

.gh-logo{
  width:44px; height:44px;
  border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, rgba(124,247,194,0.22), rgba(118,199,255,0.18));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight:900;
  letter-spacing:0.5px;
}

.gh-title{
  font-size:28px;
  font-weight:900;
  line-height:1.1;
}

.gh-subtitle{
  color: var(--muted);
  font-size:14px;
  margin-top:2px;
}

.gh-nav{
  margin-top:12px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.gh-link{
  text-decoration:none;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.gh-link:hover{
  transform: translateY(-1px);
  border-color: rgba(124,247,194,0.55);
  box-shadow: 0 0 0 3px rgba(124,247,194,0.10);
}

.gh-wrap{
  max-width: 85%;
  margin: 0 auto;
  padding: 0 6px 30px;
}

.gh-card{
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px;
  box-shadow: none !important;
  padding: 12px;
}

.gh-banner{
  background: rgba(118,199,255,0.08);
  border: 1px solid rgba(118,199,255,0.18);
  padding: 12px;
  border-radius: 14px;
  margin-bottom: 14px;
}

.gh-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

.gh-field label{
  display:block;
  font-weight:800;
  font-size:13px;
  color: var(--muted);
  margin: 0 0 6px;
}

.gh-field input, .gh-field select{
  width:100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--line) !important;
  background: #2e2e2e !important;
  color: var(--text) !important;
  outline: none;
}

.gh-field input:focus, .gh-field select:focus{
  border-color: rgba(124,247,194,0.55);
  box-shadow: 0 0 0 3px rgba(124,247,194,0.10);
}

.gh-hint{
  margin-top:6px;
  font-size:12px;
  color: var(--muted);
}

.gh-mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: rgba(231,237,245,0.95);
}

.gh-split{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap:12px;
  margin-top:12px;
}

.gh-card-inner{
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.gh-card-title{
  font-weight:900;
  margin-bottom:6px;
  font-size:16px;
}

.gh-mutations{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:8px;
  margin-top:10px;
}

.gh-mut{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  cursor:pointer;
  user-select:none;
  transition: border-color .12s ease, transform .12s ease;
}
.gh-mut:hover{
  transform: translateY(-1px);
  border-color: rgba(118,199,255,0.35);
}
.gh-mut input{ width:16px; height:16px; }
.gh-mut strong{ font-size:13px; }
.gh-mut span{ margin-left:auto; color: var(--muted); font-size:12px; }

.gh-row{
  display:flex;
  gap:10px;
  margin-top:12px;
  flex-wrap:wrap;
}

.gh-btn{
  font-size: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;

  border: 1px solid var(--line) !important;
  background: #2e2e2e !important;
  color: var(--text) !important;

  box-shadow: none !important;
  transition: transform .08s ease, border-color .08s ease;
}
.gh-btn:hover{
  transform: translateY(-1px);
  border-color: var(--accent) !important;
}
.gh-btn-ghost{
  border-color: #555 !important;
}

.gh-result-line{
  color: var(--muted);
  font-size:13px;
  margin-bottom:10px;
}

.gh-result-value{
  font-size:44px;
  font-weight:950;
  letter-spacing:0.3px;
  line-height:1.1;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(124,247,194,0.18);
}

.gh-details{
  margin-top:12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.02);
}
.gh-details summary{
  cursor:pointer;
  font-weight:800;
}

.gh-details-body{
  margin-top:8px;
  color: var(--muted);
  font-size:13px;
  line-height:1.45;
}

.gh-footer{
  margin-top:12px;
  padding-top:10px;
  border-top: 1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  color: var(--muted);
  font-size:13px;
}

.gh-footer-link{
  color: var(--accent2);
  text-decoration:none;
}
.gh-footer-link:hover{ text-decoration:underline; }

@media (max-width: 860px){
  .gh-grid{ grid-template-columns: 1fr; }
  .gh-split{ grid-template-columns: 1fr; }
  .gh-mutations{ grid-template-columns: 1fr; }
}

/* --- Plant grid --- */
.gh-field-wide{
  grid-column: 1 / -1; /* take full width in the 2-col grid */
}

.gh-field-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.gh-selected{
  color: var(--accent2);
  font-weight: 900;
  font-size: 13px;
  opacity: 0.95;
}

.gh-plant-grid{
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  padding: 10px;

  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;

  max-height: 360px;       /* scrollable */
  overflow: auto;
}

.gh-plant{
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  padding: 8px;
  cursor: pointer;
  user-select: none;

  display:flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;

  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.gh-plant:hover{
  transform: translateY(-1px);
  border-color: rgba(118,199,255,0.35);
}

.gh-plant.is-active{
  border-color: rgba(124,247,194,0.65);
  box-shadow: 0 0 0 3px rgba(124,247,194,0.10);
}

.gh-plant img{
  width: 56px;
  height: 56px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,0.35));
}

.gh-plant-name{
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  line-height: 1.1;
}

.gh-plant-sub{
  font-size: 11px;
  color: var(--muted);
  text-align:center;
  line-height: 1.1;
}

/* Responsive columns */
@media (max-width: 980px){
  .gh-plant-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px){
  .gh-plant-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 420px; }
  .gh-field-wide{ grid-column: auto; }
}


/* Fix default button styling (prevents black text on buttons) */
.gh-plant{
  color: var(--text);
  font-family: inherit;
  background: rgba(255,255,255,0.03);
}

.gh-plant:visited{
  color: var(--text);
}

.gh-plant-name{
  color: var(--text);
}

.gh-plant-sub{
  color: var(--muted);
}

/* Remove native button chrome */
.gh-plant{
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
}

/* --- SEO / FAQ section --- */
.gh-seo{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.gh-seo-title{
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 950;
}

.gh-seo-text{
  margin: 6px 0 10px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

.gh-seo-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gh-seo-card{
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  margin-top: 12px;
}

.gh-seo-card h3{
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 950;
}

.gh-seo-card ul{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.gh-list{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
  margin-top: 10px;
}

.gh-li{
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  padding: 10px;
}

.gh-li-top{
  display:flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.gh-li-name{
  font-weight: 950;
  font-size: 13px;
}

.gh-li-tag{
  font-size: 11px;
  color: var(--muted);
}

.gh-li-sub{
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.gh-faq details{
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  padding: 10px;
  margin-top: 8px;
}

.gh-faq summary{
  cursor: pointer;
  font-weight: 950;
}

.gh-faq p{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 860px){
  .gh-seo-grid{ grid-template-columns: 1fr; }
  .gh-list{ grid-template-columns: 1fr; }
}

/* --- Footer Enhancements --- */

.gh-footer{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);

  display:flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;

  font-size: 13px;
  color: var(--muted);
}

.gh-footer-left{
  display:flex;
  flex-direction: column;
  gap: 6px;
}

.gh-madeby{
  font-size: 12px;
  opacity: 0.9;
}

.gh-footer-right{
  display:flex;
  align-items:center;
}

.gh-coffee-btn{
  text-decoration: none;
  font-weight: 900;
  padding: 10px 14px;
  border-radius: 12px;

  border: 1px solid rgba(124,247,194,0.5);
  background: rgba(124,247,194,0.08);
  color: var(--accent);

  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.gh-coffee-btn:hover{
  transform: translateY(-2px);
  border-color: rgba(124,247,194,0.9);
  box-shadow: 0 0 0 3px rgba(124,247,194,0.15);
}


/* =========================
   Mobile compact overrides
   Paste at VERY END of file
   ========================= */

@media (max-width: 720px){

  /* use more screen width */
  .gh-header{ max-width: 100%; padding: 12px 12px 8px; }
  .gh-wrap{ max-width: 100%; padding: 10px 12px 24px; }

  /* reduce card padding so it doesn't feel "stacked" */
  .gh-card{ padding: 12px; }
  
.gh-card-inner{
  background: var(--card2) !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px;
  padding: 12px;
}
  /* make the nav less tall */
  .gh-nav{ gap: 8px; margin-top: 10px; }
  .gh-link{
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 12px;
  }

  /* title sizing */
  .gh-title{ font-size: 22px; }
  .gh-subtitle{ font-size: 12px; }

  /* form grid stays 1-col, but tighter gaps */
  .gh-grid{ gap: 10px; }

  /* plant grid: more columns, less height */
  .gh-plant-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    max-height: 260px; /* key: stops giant vertical stack */
  }

  .gh-plant{
    padding: 7px;
    border-radius: 12px;
    gap: 6px;
  }
  .gh-plant img{ width: 44px; height: 44px; }
  .gh-plant-name{ font-size: 11px; }
  .gh-plant-sub{ font-size: 10px; }

  /* Mutations: keep them 2 columns on mobile so it’s not super long */
  .gh-mutations{
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 8px;
  }

  /* buttons a bit smaller */
  .gh-btn{
    padding: 9px 10px;
    border-radius: 12px;
    font-size: 12px;
  }

  /* result area: slightly smaller value font */
.gh-result-value{
  font-size: 56px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--accent);
  text-shadow: none;
}
  /* SEO grid already becomes 1-col at 860px — keep it,
     but make lists 2 columns so plant list isn't insanely tall */
  .gh-list{
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 8px;
  }

  /* FAQ spacing tighter */
  .gh-faq details{ padding: 9px; }

  /* footer: avoid huge vertical stacking */
  .gh-footer{
    align-items: flex-start;
    gap: 10px;
  }
  .gh-footer-right{ width: auto; }
  .gh-coffee-btn{
    padding: 9px 12px;
    font-size: 12px;
    border-radius: 12px;
  }
}

/* extra-small phones: 3 columns plant grid to prevent tiny cards */
@media (max-width: 420px){
  .gh-plant-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 280px;
  }
  .gh-list{
    grid-template-columns: 1fr !important; /* keep readable at very small width */
  }
}

.gh-wiki-cta{
  text-align: center;
}

.gh-wiki-btn{
  display: inline-block;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(118,199,255,0.55);
  background: rgba(118,199,255,0.10);
  color: var(--accent2);
  text-decoration: none;
  font-weight: 950;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.gh-wiki-btn:hover{
  transform: translateY(-2px);
  border-color: rgba(118,199,255,0.85);
  box-shadow: 0 0 0 3px rgba(118,199,255,0.15);
}

/* ======================
   Available Codes
   ====================== */

.gh-codes-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.gh-code-card{
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 14px;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.gh-code-card:hover{
  transform: translateY(-2px);
  border-color: rgba(124,247,194,0.55);
  box-shadow: 0 0 0 3px rgba(124,247,194,0.10);
}

.gh-code-title{
  font-weight: 950;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--accent);
  letter-spacing: 0.3px;
}

.gh-code-reward{
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.gh-code-note{
  display:block;
  margin-top: 4px;
  font-size: 11px;
  color: #ffcc88;
}

/* --- Codes: copy button + status --- */
.gh-code-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.gh-code-copy{
  border: 1px solid rgba(118,199,255,0.35);
  background: rgba(118,199,255,0.08);
  color: var(--accent2);
  padding: 8px 10px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 950;
  font-size: 12px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  flex: 0 0 auto;
}

.gh-code-copy:hover{
  transform: translateY(-1px);
  border-color: rgba(118,199,255,0.75);
  box-shadow: 0 0 0 3px rgba(118,199,255,0.12);
}

.gh-code-copy.is-copied{
  border-color: rgba(124,247,194,0.75);
  background: rgba(124,247,194,0.10);
  color: var(--accent);
}

.gh-code-status{
  margin-top: 6px;
  font-size: 11px;
  color: rgba(231,237,245,0.75);
  min-height: 14px; /* prevents layout jump */
}

/* on small phones keep button compact */
@media (max-width: 420px){
  .gh-code-copy{ padding: 7px 9px; border-radius: 11px; }
}

/* --- Range slider styling (ripeness) --- */
.gh-field input[type="range"]{
  width:100%;
  padding: 0;
  height: 34px; /* gives some vertical area */
  background: transparent;
  border: none;
}

/* WebKit */
.gh-field input[type="range"]::-webkit-slider-runnable-track{
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid var(--line);
}
.gh-field input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px; /* centers thumb on 8px track */
  border-radius: 999px;
  background: var(--accent);
  border: 1px solid rgba(0,0,0,0.25);
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
  cursor: pointer;
}

/* Firefox */
.gh-field input[type="range"]::-moz-range-track{
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid var(--line);
}
.gh-field input[type="range"]::-moz-range-thumb{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent);
  border: 1px solid rgba(0,0,0,0.25);
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
  cursor: pointer;
}

/* ======================
   Mutation Guide (how to get mutations)
   ====================== */

.gh-mutation-guide{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.gh-mutation-guide-title{
  font-weight: 950;
  margin-bottom: 10px;
}

.gh-mutation-guide-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gh-mutation-guide-card{
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 12px;
}

.gh-mutation-guide-head{
  font-weight: 950;
  margin-bottom: 8px;
  color: var(--text);
}

.gh-mutation-guide-list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

.gh-mutation-guide-list li{
  margin-bottom: 6px;
}

.gh-warn{
  color: #ffcc88;
  font-weight: 900;
  margin-left: 6px;
}

@media (max-width: 720px){
  .gh-mutation-guide-grid{
    grid-template-columns: 1fr;
  }
}

/* Mutations: click glow buttons */
.gh-mutations{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}

.gh-mutation-btn{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;

  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #2e2e2e;
  color: var(--text);
  cursor: pointer;
  transition: transform .08s ease, border-color .08s ease, box-shadow .08s ease, background .08s ease;
  text-align:left;
}

.gh-mutation-btn:hover{
  transform: translateY(-1px);
  border-color: var(--accent);
}

.gh-mutation-btn .gh-mut-name{
  font-weight: 800;
  font-size: 13px;
}

.gh-mutation-btn .gh-mut-mult{
  font-weight: 900;
  font-size: 12px;
  color: var(--muted);
}

.gh-mutation-btn.active{
  border-color: var(--accent);
  background: rgba(189,252,154,0.12);
  box-shadow: 0 0 0 3px rgba(189,252,154,0.12);
}

.gh-mutation-btn.active .gh-mut-mult{
  color: var(--accent);
}