@font-face {
  font-family: GameZero;
  src: url("./gamezero-persian.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --gzt-bg: #202124;
  --gzt-text: #fafafa;
  --gzt-muted: #c4c5c9;
  --gzt-accent: #eb5628;
  --gzt-glass: rgba(42, 45, 50, .62);
  --gzt-line: rgba(250, 250, 250, .14);
  --gzt-meter: rgba(250, 250, 250, .07);
}
* { box-sizing: border-box; }
html { overflow-y: auto; }
body {
  margin: 0;
  background: var(--gzt-bg);
  color: var(--gzt-text);
  font-family: GameZero, Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.9;
}
body .gzs-tool-shell { font-family: inherit; font-size: 14px; }
.gzt-page { width: 100%; padding: 32px; }
.gzt-intro { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 28px; padding: 4px 0 26px; border-bottom: 1px solid var(--gzt-line); }
.gzt-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.gzt-brand img { width: 32px; height: 32px; }
.gzt-brand span { font-weight: 800; font-size: 17px; }
.gzt-page .gzt-intro h1 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 34px); line-height: 1.6; font-weight: 800; }
.gzt-intro p { max-width: 650px; color: var(--gzt-muted); }
.gzt-status { flex-shrink: 0; color: var(--gzt-muted); font-size: 12px; }
.gzt-status::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; background: var(--gzt-accent); }
.gzs-tester-runtime { direction: ltr; min-width: 0; }
.gzs-tool-shell .gzs-pad-panel {
  min-width: 0; margin: 0; padding: 24px;
  border: 1px solid var(--gzt-line); border-radius: 18px;
  background: var(--gzt-glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .12);
}
.gzs-tool-shell .gzs-pad-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; overflow: auto;
  margin: 0 0 24px; padding: 0 0 18px;
  border-bottom: 1px solid var(--gzt-line); border-radius: 0;
  background: transparent; direction: rtl;
}
.gzs-tool-shell .gzs-pad-tabs > div {
  flex: 0 1 190px; width: auto; min-width: 130px; padding: 10px 14px;
  border: 1px solid var(--gzt-line); border-radius: 10px; background: var(--gzt-meter);
}
.gzs-tool-shell .gzs-pad-tabs > .no-gamepad:not(.current) { display: none; }
.gzs-tool-shell .gzs-pad-tabs > .current { border: 1px solid var(--gzt-accent); background: rgba(235, 86, 40, .12); }
.gzs-pad-tabs > div > div:first-child { font-size: 12px; }
.gzs-pad-tabs > div > div:first-child > span { color: var(--gzt-accent) !important; }
.gzs-tool-shell .gzs-pad-empty { justify-content: center; gap: 20px; padding: 18px 0 28px; direction: rtl; }
.gzs-pad-empty > svg { flex-shrink: 0; }
.gzs-tool-shell .gzs-pad-empty h2 { max-width: 480px; font-size: 18px !important; font-weight: 500; line-height: 1.9; }
.gzs-tool-shell .gzs-pad-columns { gap: 24px; flex-wrap: wrap; align-items: center; }
.gzs-tool-shell .gzs-pad-data { width: 100%; min-width: 0; flex: 1 1 490px; }
.gzs-tool-shell .gzs-pad-data > h2 { font-size: 22px; line-height: 1.8; text-align: right; }
.gzs-tool-shell .gzs-pad-data > p { text-align: right; }
.gzs-tool-shell .gzs-pad-meta { display: flex; flex-wrap: wrap; gap: 12px; direction: rtl; }
.gzs-tool-shell .gzs-pad-meta > div { margin: 0 !important; min-width: 88px; padding: 10px; border: 1px solid var(--gzt-line); border-radius: 9px; background: var(--gzt-meter); line-height: 1.65; }
.gzs-pad-meta > div > div > div { direction: ltr; text-align: right; }
.gzs-tool-shell .gzs-pad-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 20px; }
.gzs-tool-shell .gzs-pad-buttons > div { width: 66px !important; margin: 0; padding: 7px 4px; border-radius: 6px; background: var(--gzt-meter); }
.gzs-tool-shell .gzs-pad-data label { color: var(--gzt-muted); opacity: 1; font-family: inherit; font-size: 11px; line-height: 1.7; }
.gzs-tool-shell .gzs-test-control {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 9px 14px; border: 1px solid var(--gzt-line);
  border-radius: 9px; background: var(--gzt-meter); color: var(--gzt-text);
  font-family: inherit; line-height: 1.6; user-select: none;
}
.gzs-tool-shell .gzs-test-control:hover, .gzs-tool-shell .gzs-test-control.active { background: rgba(235, 86, 40, .18); color: var(--gzt-text); border-color: var(--gzt-accent); }
.gzs-tool-shell .gzs-stick-row { flex-wrap: wrap; gap: 18px; }
.gzs-tool-shell .gzs-stick-row > div { margin-left: 0 !important; }
.gzs-tool-shell .gzs-stick-plot { direction: ltr; }
.gzs-stick-plot svg text { font-family: inherit; font-size: 12px; }
.gzt-help { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.gzt-help article { padding: 20px; border: 1px solid var(--gzt-line); border-radius: 14px; background: rgba(250, 250, 250, .025); }
.gzt-help article > span { color: var(--gzt-accent); font-size: 12px; }
.gzt-help h3 { margin: 4px 0 8px; font-size: 15px; font-weight: 700; }
.gzt-help p { margin: 0; color: var(--gzt-muted); font-size: 12px; line-height: 2; }
.gzt-note { margin-top: 18px; color: var(--gzt-muted); font-size: 12px; }
html[lang="en"] .gzs-tool-shell :is(.gzs-pad-tabs,.gzs-pad-empty,.gzs-pad-meta) { direction: ltr; }
html[lang="en"] .gzs-tool-shell .gzs-pad-data > :is(h2,p) { text-align: left; }
html[lang="en"] .gzs-pad-meta > div > div > div { text-align: left; }
html[lang="en"] .gzt-status::before { margin-left: 0; margin-right: 7px; }
@media (max-width: 800px) {
  .gzt-page { padding: 22px 16px; }
  .gzt-intro { display: block; margin-bottom: 20px; padding-bottom: 20px; }
  .gzt-status { margin-top: 12px; }
  .gzs-tool-shell .gzs-pad-panel { padding: 16px; border-radius: 14px; }
  .gzs-tool-shell .gzs-pad-empty { flex-wrap: wrap; gap: 12px; text-align: center; padding-block: 10px 20px; }
  .gzs-pad-empty > svg:first-child { width: 105px; }
  .gzs-tool-shell .gzs-pad-empty h2 { flex: 1 0 100%; font-size: 16px !important; }
  .gzt-help { grid-template-columns: 1fr; gap: 10px; }
  .gzt-help article { padding: 16px; }
  .gzs-tool-shell .gzs-stick-row { justify-content: center; }
  .gzs-tool-shell .gzs-pad-columns { gap: 14px; }
}
