/* feat-growth: claim box, claimed badge, server alert / embed buttons, recap and best-servers pages */
.grw-badge { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: .45em; vertical-align: middle; letter-spacing: .04em; background: rgba(155, 209, 58, .16); color: var(--accent, #9bd13a); border: 1px solid rgba(155, 209, 58, .45); }
.grw-claim { margin: 14px 0; }
.grw-claim summary { cursor: pointer; font-weight: 600; }
.grw-claim .grw-sub { margin-top: 10px; }
.grw-form { display: grid; gap: 8px; max-width: 520px; margin: 8px 0; }
.grw-form input, .grw-form textarea, .grw-dlg input[type=number], .grw-code { width: 100%; box-sizing: border-box; font: inherit; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--line, #2b3628); background: var(--panel-2, rgba(0, 0, 0, .25)); color: inherit; }
.grw-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.grw-notes { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 4px; }
.grw-notes li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 8px; border-radius: 6px; background: rgba(255, 255, 255, .03); }
.grw-notes li.new { border-left: 3px solid var(--accent, #9bd13a); }
.grw-notes time { opacity: .7; white-space: nowrap; font-size: .9em; }
.grw-srvbar, .grw-share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.grw-back { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; padding: 12px; }
.grw-dlg { position: relative; width: min(560px, 100%); max-height: 92vh; overflow: auto; background: var(--panel, #10150f); border: 1px solid var(--line, #2b3628); border-radius: 12px; padding: 18px; }
.grw-x { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: inherit; font-size: 24px; cursor: pointer; }
.grw-min { display: grid; gap: 6px; max-width: 200px; }
.grw-prev { width: 100%; border: 0; background: transparent; margin: 8px 0; }
.grw-code { font-family: ui-monospace, monospace; font-size: 12px; }
.grw-week select { margin-left: 6px; font: inherit; padding: 6px; border-radius: 6px; background: var(--panel-2, #1a2117); color: inherit; border: 1px solid var(--line, #2b3628); max-width: 100%; }
.grw-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 14px; }
.grw-stat { display: grid; gap: 3px; padding: 12px; border-radius: 10px; border: 1px solid var(--line, #2b3628); background: rgba(255, 255, 255, .03); min-width: 0; }
.grw-stat span { font-size: .8em; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.grw-stat strong { font-size: 1.35em; overflow-wrap: anywhere; }
.grw-stat small { opacity: .8; overflow-wrap: anywhere; }
.grw-list { margin: 0; padding-left: 1.4em; display: grid; gap: 4px; }
.grw-sign { text-align: right; opacity: .75; font-style: italic; }
.grw-sign-icon { font-style: normal; margin-right: .35em; }
.grw-best { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.grw-best > li { display: flex; gap: 14px; align-items: flex-start; }
.grw-rank { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.1em; background: rgba(155, 209, 58, .15); color: var(--accent, #9bd13a); }
.grw-best-main { min-width: 0; flex: 1; }
.grw-best-main h2 { margin: 0 0 2px; font-size: 1.1em; overflow-wrap: anywhere; }
.grw-best-meta { margin: 0 0 6px; opacity: .9; }
.grw-live { color: #4cd964; }
.grw-off { opacity: .65; }
.grw-best dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; }
.grw-best dt { font-size: .75em; opacity: .7; text-transform: uppercase; }
.grw-best dd { margin: 0; font-weight: 600; }
@media (max-width: 560px) { .grw-best dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grw-best > li { gap: 10px; } .grw-rank { width: 32px; height: 32px; } }

/* feat-embedstyle: Command HUD / EVA frame for the "Embed this server" dialog only (alert dialog stays plain). */
.grw-dlg-embed {
  --grw-hud-line: #55635c;
  --grw-hud-gold: #e8b923;
  --grw-hud-red: #ef3b36;
  background:
    linear-gradient(rgba(159, 231, 255, .03) 1px, transparent 1px),
    linear-gradient(180deg, #152222 0%, #0c1414 40%, #0a1010 100%);
  background-size: 100% 4px, auto;
  border: 1px solid var(--grw-hud-line);
  border-radius: 0;
  padding: 22px 20px 18px;
  box-shadow: 0 0 0 1px #0a0f0f, 0 18px 50px rgba(0, 0, 0, .55);
}
.grw-dlg-embed::before,
.grw-dlg-embed::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
}
.grw-dlg-embed::before { top: 0; left: 0; border-top: 3px solid var(--grw-hud-gold); border-left: 3px solid var(--grw-hud-gold); }
.grw-dlg-embed::after { right: 0; bottom: 0; border-right: 3px solid var(--grw-hud-red); border-bottom: 3px solid var(--grw-hud-red); }
.grw-dlg-embed .grw-x {
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  color: #c5d0cc;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  border: 1px solid var(--grw-hud-line);
  background: #121a1a;
  font-size: 20px;
}
.grw-dlg-embed .grw-x:hover,
.grw-dlg-embed .grw-x:focus-visible { border-color: var(--grw-hud-gold); color: var(--grw-hud-gold); }
.grw-eva-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 48px 6px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: #7dff9a;
  text-transform: uppercase;
}
.grw-eva-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5ee38a;
  box-shadow: 0 0 8px #5ee38a;
  animation: grw-eva-blink 1.6s steps(2, end) infinite;
}
.grw-eva-ready { margin-left: auto; color: var(--grw-hud-gold, #e8b923); letter-spacing: 1.6px; font-size: 10px; }
.grw-dlg-embed .grw-emb-title {
  margin: 0 48px 8px 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #f2f4ee;
  text-transform: uppercase;
}
.grw-dlg-embed .setting-hint { color: #9aa8a3; margin: 0 0 10px; }
.grw-opt-groups { display: grid; gap: 8px; margin: 12px 0 8px; }
.grw-opt-g { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.grw-opt-g[hidden] { display: none; }
.grw-opt-k {
  flex: 0 0 64px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--grw-hud-gold, #e8b923);
  text-transform: uppercase;
}
.grw-opt-g.grw-th .grw-opt-k { color: #ef7a74; }
.grw-dlg-embed .grw-row label {
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid #3d4c48;
  background: #121a1a;
  color: #c5d0cc;
  font-size: 13px;
  font-weight: 800;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.grw-dlg-embed .grw-row label:has(input:checked) {
  border-color: var(--grw-hud-gold, #e8b923);
  background: rgba(232, 185, 35, .14);
  color: var(--grw-hud-gold, #e8b923);
}
.grw-dlg-embed .grw-row input { accent-color: var(--grw-hud-gold, #e8b923); }
.grw-preview-label,
.grw-code-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8fa09a;
}
.grw-preview-well {
  position: relative;
  margin: 0 0 8px;
  padding: 12px;
  border: 1px solid #3d4c48;
  background: rgba(0, 0, 0, .35);
  overflow: hidden;
}
.grw-preview-well::before,
.grw-preview-well::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
}
.grw-preview-well::before { top: -1px; left: -1px; border-top: 2px solid var(--grw-hud-gold, #e8b923); border-left: 2px solid var(--grw-hud-gold, #e8b923); }
.grw-preview-well::after { right: -1px; bottom: -1px; border-right: 2px solid var(--grw-hud-red, #ef3b36); border-bottom: 2px solid var(--grw-hud-red, #ef3b36); }
.grw-dlg-embed .grw-prev { width: 320px; max-width: 100%; margin: 0; background: transparent; }
.grw-dlg-embed .grw-code {
  border-radius: 0;
  border-color: #3d4c48;
  background: #070b0b;
  color: #d5e0db;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.grw-dlg-embed .outline-button {
  border-radius: 0;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  border-color: var(--grw-hud-gold, #e8b923);
  background: rgba(232, 185, 35, .12);
  color: var(--grw-hud-gold, #e8b923);
}
.grw-dlg-embed .outline-button:hover,
.grw-dlg-embed .outline-button:focus-visible {
  background: var(--grw-hud-gold, #e8b923);
  color: #14110a;
}
@keyframes grw-eva-blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) {
  .grw-eva-dot { animation: none; }
}
@media (max-width: 420px) {
  .grw-dlg-embed { padding: 18px 12px 14px; }
  .grw-dlg-embed .grw-emb-title { font-size: 20px; letter-spacing: 1px; }
  .grw-opt-k { flex-basis: 100%; }
}
/* feat-embeddesign: stable-code dialog (design pick, banner preview) */
.grw-dlg-embed .grw-prev-img { display: block; max-width: 100%; height: auto; }
.grw-dlg-embed .grw-prev[hidden], .grw-dlg-embed .grw-prev-img[hidden] { display: none; }
.grw-dlg-embed .grw-dsel { min-width: 0; max-width: 100%; font: inherit; }
.grw-dlg-embed .grw-stable { margin: 6px 0 0; font-size: 12px; }
