/*
 * RMTEX Gamepad Tester
 * Page-scoped styles for /tools/test-gamepad-redesign.html.
 * Global landing-page styles stay in landing.css.
 */

body.screen-redesign.gp-page {
  overflow-x: hidden;
  background: #f5f8f6;
  color: #17221d;
}

body.screen-redesign.gp-page *,
body.screen-redesign.gp-page *::before,
body.screen-redesign.gp-page *::after {
  box-sizing: border-box;
}

.gp-page .gp-inline-link {
  color: #168b3a;
  font-weight: 700;
  text-decoration: none;
}

.gp-page .gp-inline-link:hover,
.gp-page .gp-inline-link:focus {
  color: #0d6f2b;
  text-decoration: underline;
}

.gp-page .gp-anchor-alias {
  position: absolute;
  top: -110px;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* Hero */
.gp-page .gp-hero-copy {
  max-width: 660px;
}

.gp-page .gp-hero-copy p:last-child {
  margin-bottom: 0;
}

.gp-page .gp-hero-media-frame {
  position: relative;
}

.gp-page .gp-hero-media-frame::after {
  content: "";
  position: absolute;
  right: 5%;
  bottom: 4%;
  width: 66%;
  height: 22%;
  border-radius: 50%;
  background: rgba(40, 167, 69, .18);
  filter: blur(24px);
  pointer-events: none;
}

.gp-page .gp-hero-media-frame .rm-hero-img {
  position: relative;
  z-index: 1;
}

.gp-page .gp-hero-action-only {
  justify-content: flex-start;
}

.gp-page .gp-hero-action-only .rm-btn {
  min-width: 210px;
}

@media (min-width: 768px) {
  .gp-page .rm-hero-bg {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .gp-page .rm-hero-row {
    padding-top: 54px !important;
    padding-bottom: 54px !important;
  }
}

@media (min-width: 1200px) {
  .gp-page .rm-hero-title {
    font-size: 40px;
    line-height: 1.12;
  }
}

/* Shared section heading */
.gp-page .gp-section-heading {
  max-width: 900px;
  margin: 0 auto 32px;
  text-align: center;
}

.gp-page .gp-section-kicker,
.gp-page .gp-tech-label,
.gp-page .gp-video-label,
.gp-page .gp-cta-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 14px;
  border: 1px solid rgba(40, 167, 69, .28);
  border-radius: 999px;
  background: #eaf7ed;
  color: #167e34;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.gp-page .gp-section-heading h2 {
  margin: 14px 0 10px;
  color: #14231b;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.18;
}

.gp-page .gp-section-heading p {
  max-width: 790px;
  margin: 0 auto;
  color: #536159;
  font-size: 17px;
  line-height: 1.65;
}

/* Main tester */
.gp-page #gp-tester {
  position: relative;
  padding: 72px 0 78px;
  background: #f3f6f2;
  overflow: hidden;
}

.gp-page #gp-tester::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(17, 35, 24, .052) 1px, transparent 1px),
    radial-gradient(rgba(17, 35, 24, .024) 1px, transparent 1px);
  background-size: 14px 14px, 22px 22px;
  background-position: 0 0, 7px 7px;
  opacity: 1;
  pointer-events: none;
}

.gp-page #gp-tester > .container {
  position: relative;
  z-index: 1;
  width: min(1360px, calc(100% - 36px));
}

.gp-page #gp-tester .gp-section-heading h2,
.gp-page #gp-tester .gp-section-heading p {
  color: #14231b;
}

.gp-page #gp-tester .gp-section-heading p {
  color: #536159;
}

.gp-page #gp-tester .gp-tech-label {
  border-color: rgba(40, 167, 69, .28);
  background: #eaf7ed;
  color: #167e34;
}

.gp-page .gp-tester-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.gp-page .gp-panel {
  min-width: 0;
  border: 1px solid rgba(17, 67, 39, .15);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(27, 57, 39, .11);
}

.gp-page .gp-diagnostic-panel {
  padding: 22px;
}

.gp-page .gp-help-panel {
  position: sticky;
  top: 118px;
  padding: 22px;
  box-shadow: 0 18px 42px rgba(27, 57, 39, .10);
}

.gp-page .gp-status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 14px;
}

.gp-page .gp-status {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 54px;
  margin: 0;
  padding: 12px 15px 12px 43px;
  border: 1px solid #d6e0da;
  border-radius: 14px;
  background: #f2f6f4;
  color: #34433b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.gp-page .gp-status::before {
  content: "";
  position: absolute;
  left: 16px;
  width: 12px;
  height: 12px;
  border: 3px solid #738078;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(115, 128, 120, .10);
}

.gp-page .gp-status--ok {
  border-color: rgba(40, 167, 69, .42);
  background: #eaf8ee;
  color: #135f28;
}

.gp-page .gp-status--ok::before {
  border-color: #28a745;
  box-shadow: 0 0 0 4px rgba(40, 167, 69, .13);
}

.gp-page .gp-status--warn {
  border-color: rgba(221, 164, 12, .48);
  background: #fff8df;
  color: #765900;
}

.gp-page .gp-status--warn::before {
  border-color: #dda40c;
  box-shadow: 0 0 0 4px rgba(221, 164, 12, .13);
}

.gp-page .gp-status--error {
  border-color: rgba(204, 54, 54, .42);
  background: #fff0f0;
  color: #8a2525;
}

.gp-page .gp-status--error::before {
  border-color: #cc3636;
  box-shadow: 0 0 0 4px rgba(204, 54, 54, .12);
}

.gp-page .gp-start-button,
.gp-page .gp-test-button {
  min-height: 46px;
  border: 1px solid #b9cbc0;
  border-radius: 12px;
  background: #f8fbf9;
  color: #176f31;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  transition: .18s ease;
}

.gp-page .gp-start-button {
  padding: 10px 16px;
  white-space: nowrap;
}

.gp-page .gp-start-button:hover,
.gp-page .gp-start-button:focus,
.gp-page .gp-test-button:hover,
.gp-page .gp-test-button:focus,
.gp-page .gp-test-button.is-active {
  border-color: #28a745;
  background: #eaf8ee;
  color: #0b6c29;
  outline: none;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, .11);
}

.gp-page .gp-pad-name {
  display: flex;
  align-items: center;
  min-height: 42px;
  margin: 0 0 18px;
  padding: 10px 13px;
  border: 1px solid #e1e7e3;
  border-radius: 12px;
  background: #f9fbfa;
  color: #55635b;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.gp-page .gp-device-block {
  padding: 18px;
  border: 1px solid #dde7e0;
  border-radius: 19px;
  background: #f7faf8;
}

.gp-page .gp-device-block + .gp-device-block {
  margin-top: 16px;
}

.gp-page .gp-live-dashboard {
  display: grid;
  grid-template-columns: minmax(360px, .88fr) minmax(420px, 1.12fr);
  gap: 14px;
  align-items: stretch;
}

.gp-page .gp-live-dashboard > .gp-device-block {
  min-width: 0;
  margin-top: 0;
}

.gp-page .gp-live-dashboard + .gp-device-block {
  margin-top: 16px;
}

.gp-page .gp-sticks-block,
.gp-page .gp-controller-block {
  display: flex;
  flex-direction: column;
}

.gp-page .gp-sticks-block {
  padding: 15px;
}

.gp-page .gp-sticks-block .gp-panel-section-head,
.gp-page .gp-controller-block .gp-panel-section-head {
  margin-bottom: 12px;
}

.gp-page .gp-sticks-block .gp-sticks {
  gap: 9px;
}

.gp-page .gp-sticks-block .gp-stick-wrapper {
  padding: 11px 6px 10px;
}

.gp-page .gp-sticks-block .gp-stick-title {
  margin-bottom: 8px;
  font-size: 14px;
}

.gp-page .gp-sticks-block .gp-stick {
  width: min(142px, 91%);
  margin-bottom: 9px;
}

.gp-page .gp-sticks-block .gp-stick-readout {
  gap: 5px;
}

.gp-page .gp-sticks-block .gp-axis-value,
.gp-page .gp-sticks-block .gp-circle-values {
  padding: 6px 4px;
  font-size: 10px;
}

.gp-page .gp-sticks-block .gp-axis-value span,
.gp-page .gp-sticks-block .gp-circle-values span {
  min-width: 36px;
  font-size: 11px;
}

.gp-page .gp-sticks-block .gp-test-actions {
  gap: 8px;
  margin-top: 10px;
}

.gp-page .gp-sticks-block .gp-test-button {
  min-height: 42px;
  padding: 8px;
  font-size: 12px;
}

.gp-page .gp-panel-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.gp-page .gp-panel-section-head h3,
.gp-page .gp-section-title {
  margin: 0;
  color: #16241c;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}

.gp-page .gp-panel-section-note {
  color: #68766e;
  font-size: 12px;
  font-weight: 700;
}

/* Stick gauges */
.gp-page .gp-sticks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gp-page .gp-stick-wrapper {
  min-width: 0;
  padding: 14px 10px 12px;
  border: 1px solid #dfe7e2;
  border-radius: 17px;
  background: #fff;
  text-align: center;
}

.gp-page .gp-stick-title {
  margin: 0 0 11px;
  color: #27372e;
  font-size: 16px;
  font-weight: 800;
}

.gp-page .gp-stick {
  position: relative;
  width: min(176px, 84%);
  aspect-ratio: 1 / 1;
  margin: 0 auto 11px;
  border: 2px solid #c5d1ca;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(40, 167, 69, .10) 0 3%, transparent 3.5%),
    repeating-radial-gradient(circle at center, transparent 0 20%, rgba(45, 73, 57, .07) 20.5% 21%, transparent 21.5% 40%),
    radial-gradient(circle, #fff 0%, #f2f7f4 62%, #e4ece7 100%);
  box-shadow: inset 0 0 20px rgba(28, 61, 42, .06), 0 8px 22px rgba(24, 55, 36, .09);
  overflow: hidden;
}

.gp-page .gp-stick-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.gp-page .gp-axis-line {
  stroke: #9fb1a6;
  stroke-width: 1;
  stroke-dasharray: 2.5 3.5;
}

.gp-page .gp-circle-path {
  fill: none;
  stroke: rgba(29, 118, 58, .20);
  stroke-width: 1.5;
}

.gp-page #gp-left-line,
.gp-page #gp-right-line {
  stroke: #13a6c8;
  stroke-width: 2;
  opacity: 0;
}

.gp-page .gp-circle-trace-dot {
  fill: rgba(19, 166, 200, .53);
  stroke: none;
}

.gp-page .gp-stick.gp-stick-circle-mode {
  border-color: #c5d1ca;
  box-shadow: inset 0 0 20px rgba(28, 61, 42, .06), 0 8px 22px rgba(24, 55, 36, .09);
}

.gp-page .gp-stick.gp-stick-circle-mode .gp-circle-path {
  stroke: #13a6c8;
  stroke-width: 2;
}

.gp-page .gp-stick-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #65756c;
  box-shadow: 0 0 0 4px rgba(101, 117, 108, .10);
}

.gp-page .gp-stick-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border: 0;
  border-radius: 50%;
  background: #13a6c8;
  box-shadow: 0 3px 9px rgba(19, 166, 200, .48);
  opacity: 0;
  transition: opacity .15s ease;
}

.gp-page .gp-stick-dot--visible {
  opacity: 1;
}

.gp-page .gp-stick-readout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0 auto;
  max-width: 210px;
}

.gp-page .gp-axis-value,
.gp-page .gp-circle-values {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid #e0e7e2;
  border-radius: 9px;
  background: #f8faf9;
  color: #54645a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.gp-page .gp-axis-value span,
.gp-page .gp-circle-values span {
  display: inline-block;
  min-width: 42px;
  color: #162a1d;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
  font-weight: 800;
}

.gp-page .gp-circle-values {
  grid-column: 1 / -1;
}

.gp-page .gp-test-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.gp-page .gp-test-button {
  width: 100%;
  padding: 10px 12px;
}

/* Controller diagram */
.gp-page .gp-visual {
  position: relative;
  min-height: 330px;
  height: 100%;
  margin-top: 0;
  border: 1px solid #cfdad3;
  border-radius: 25px;
  background:
    linear-gradient(rgba(63, 96, 76, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 96, 76, .045) 1px, transparent 1px),
    linear-gradient(145deg, #f7faf8, #e8efeb);
  background-size: 18px 18px, 18px 18px, auto;
  overflow: hidden;
}

.gp-page .gp-visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 8%;
  top: 45%;
  width: 29%;
  height: 43%;
  border: 2px solid #8d9d93;
  border-radius: 36% 30% 58% 54% / 28% 30% 72% 68%;
  background: linear-gradient(180deg, #fff 0%, #f0f4f2 100%);
  box-shadow: 0 14px 30px rgba(29, 60, 41, .14), inset 0 -7px 16px rgba(36, 62, 46, .06);
  transform: rotate(17deg);
}

.gp-page .gp-visual::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: 8%;
  top: 45%;
  width: 29%;
  height: 43%;
  border: 2px solid #8d9d93;
  border-radius: 30% 36% 54% 58% / 30% 28% 68% 72%;
  background: linear-gradient(180deg, #fff 0%, #f0f4f2 100%);
  box-shadow: 0 14px 30px rgba(29, 60, 41, .14), inset 0 -7px 16px rgba(36, 62, 46, .06);
  transform: rotate(-17deg);
}

.gp-page .gp-body {
  position: absolute;
  z-index: 1;
  left: 11%;
  right: 11%;
  top: 25%;
  height: 52%;
  border: 2px solid #8d9d93;
  border-radius: 46% 46% 31% 31% / 53% 53% 38% 38%;
  background: linear-gradient(180deg, #fff 0%, #f0f4f2 100%);
  box-shadow: 0 12px 28px rgba(29, 60, 41, .13), inset 0 -7px 16px rgba(36, 62, 46, .06);
}

.gp-page .gp-vstick {
  position: absolute;
  z-index: 2;
  width: 52px;
  height: 52px;
  border: 3px solid #a7b4ac;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #dce5df 70%, #c4cec8);
  box-shadow: 0 5px 10px rgba(18, 48, 29, .14), inset 0 0 0 7px rgba(255, 255, 255, .42);
  transition: .08s linear;
}

.gp-page .gp-vstick-left {
  left: 35%;
  top: 69%;
  transform: translate(-50%, -50%);
}

.gp-page .gp-vstick-right {
  right: 35%;
  top: 69%;
  transform: translate(50%, -50%);
}

.gp-page .gp-vstick.gp-vstick-active {
  border-color: #28a745;
  box-shadow: 0 0 0 5px rgba(40, 167, 69, .16), 0 5px 13px rgba(18, 48, 29, .18);
}

.gp-page .gp-vstick-center {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #718078;
}

.gp-page .gp-vbtn {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid #aebbb3;
  border-radius: 50%;
  background: #fff;
  color: #516158;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(26, 55, 37, .10);
  transition: .07s linear;
}

.gp-page .gp-vbtn-active {
  border-color: #28a745;
  background: #28a745;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(40, 167, 69, .18), 0 3px 8px rgba(26, 55, 37, .15);
}

.gp-page .gp-vbtn-dpad {
  font-size: 0;
}

.gp-page .gp-vbtn-dpad::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  border-style: solid;
}

.gp-page .gp-vbtn-dpad-up { left: 24%; top: 44%; transform: translate(-50%, -50%); }
.gp-page .gp-vbtn-dpad-down { left: 24%; top: 59%; transform: translate(-50%, -50%); }
.gp-page .gp-vbtn-dpad-left { left: 18.5%; top: 51.5%; transform: translate(-50%, -50%); }
.gp-page .gp-vbtn-dpad-right { left: 29.5%; top: 51.5%; transform: translate(-50%, -50%); }
.gp-page .gp-vbtn-dpad-up::before { border-width: 0 7px 9px; border-color: transparent transparent #7b8981; }
.gp-page .gp-vbtn-dpad-down::before { border-width: 9px 7px 0; border-color: #7b8981 transparent transparent; }
.gp-page .gp-vbtn-dpad-left::before { border-width: 7px 9px 7px 0; border-color: transparent #7b8981 transparent transparent; }
.gp-page .gp-vbtn-dpad-right::before { border-width: 7px 0 7px 9px; border-color: transparent transparent transparent #7b8981; }
.gp-page .gp-vbtn-dpad-up.gp-vbtn-active::before { border-color: transparent transparent #fff; }
.gp-page .gp-vbtn-dpad-down.gp-vbtn-active::before { border-color: #fff transparent transparent; }
.gp-page .gp-vbtn-dpad-left.gp-vbtn-active::before { border-color: transparent #fff transparent transparent; }
.gp-page .gp-vbtn-dpad-right.gp-vbtn-active::before { border-color: transparent transparent transparent #fff; }

.gp-page .gp-vbtn-face {
  font-size: 0;
}

.gp-page .gp-vbtn-face::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #65756c;
  color: #65756c;
}

.gp-page .gp-vbtn-face.gp-vbtn-active::before { background: #fff; }
.gp-page .gp-vbtn-a { right: 22%; top: 59%; transform: translate(50%, -50%); }
.gp-page .gp-vbtn-b { right: 16.5%; top: 51.5%; transform: translate(50%, -50%); }
.gp-page .gp-vbtn-x { right: 27.5%; top: 51.5%; transform: translate(50%, -50%); }
.gp-page .gp-vbtn-y { right: 22%; top: 44%; transform: translate(50%, -50%); }

.gp-page .gp-vbtn-top,
.gp-page .gp-vtrigger {
  width: 52px;
  height: 20px;
  border-radius: 10px 10px 6px 6px;
}

.gp-page .gp-vtrigger {
  z-index: 2;
  border-color: #93a49a;
  background: linear-gradient(180deg, #edf2ef, #dce5df);
  box-shadow: inset 0 2px 4px rgba(30, 55, 40, .08);
}

.gp-page .gp-vtrigger.gp-vbtn-active {
  border-color: #28a745;
  background: #28a745;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(40, 167, 69, .18), 0 3px 8px rgba(26, 55, 37, .15);
}

.gp-page .gp-vbtn-top {
  z-index: 4;
  border-radius: 6px 6px 10px 10px;
}

.gp-page .gp-vbtn-lb { left: 28%; top: 26.5%; transform: translate(-50%, -50%); }
.gp-page .gp-vbtn-rb { right: 28%; top: 26.5%; transform: translate(50%, -50%); }
.gp-page .gp-vtrigger-lt { left: 28%; top: 20.5%; transform: translate(-50%, -50%); }
.gp-page .gp-vtrigger-rt { right: 28%; top: 20.5%; transform: translate(50%, -50%); }

.gp-page .gp-vbtn-mid {
  width: 26px;
  height: 18px;
  border-radius: 999px;
  font-size: 8px;
}

.gp-page .gp-vbtn-back { left: 33%; top: 35%; transform: translate(-50%, -50%); }
.gp-page .gp-vbtn-start { left: 67%; top: 35%; transform: translate(-50%, -50%); }
.gp-page .gp-vbtn-touch {
  left: 50%;
  top: 39%;
  width: 64px;
  height: 36px;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  background: linear-gradient(155deg, #eef3f0, #dce5df);
  box-shadow: inset 0 2px 7px rgba(30, 55, 40, .10), 0 2px 6px rgba(26, 55, 37, .08);
}
.gp-page .gp-vbtn-ps { left: 50%; top: 69%; transform: translate(-50%, -50%); }

.gp-page .gp-vbtn-stickbtn {
  width: 28px;
  height: 17px;
  border-radius: 999px;
  font-size: 8px;
}

.gp-page .gp-vbtn-ls { left: 35%; top: 69%; transform: translate(-50%, -50%); }
.gp-page .gp-vbtn-rs { right: 35%; top: 69%; transform: translate(50%, -50%); }

/* Triggers and technical buttons */
.gp-page .gp-triggers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gp-page .gp-trigger {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 46px;
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dce5df;
  border-radius: 13px;
  background: #fff;
}

.gp-page .gp-trigger-label,
.gp-page .gp-trigger-value {
  color: #304139;
  font-size: 13px;
  font-weight: 800;
}

.gp-page .gp-trigger-value {
  text-align: right;
  font-family: Consolas, Monaco, monospace;
}

.gp-page .gp-trigger-bar {
  min-width: 0;
  height: 15px;
  border-radius: 999px;
  background: #e3ebe6;
  box-shadow: inset 0 1px 3px rgba(24, 52, 34, .10);
  overflow: hidden;
}

.gp-page .gp-trigger-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #28a745, #3dd26c);
  transition: width .05s linear;
}

.gp-page .gp-technical-block {
  margin-top: 14px;
  padding: 13px;
  border: 1px dashed #cfdad3;
  border-radius: 13px;
  background: #f7faf8;
}

.gp-page .gp-technical-title {
  margin: 0 0 9px;
  color: #627168;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.gp-page .gp-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gp-page .gp-btn {
  min-width: 34px;
  padding: 5px 7px;
  border: 1px solid #cfd9d2;
  border-radius: 7px;
  background: #fff;
  color: #627168;
  font-family: Consolas, Monaco, monospace;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  transition: .05s linear;
}

.gp-page .gp-btn-active {
  border-color: #28a745;
  background: #28a745;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, .14);
}

/* Help panel */
.gp-page .gp-help-card + .gp-help-card {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e1e8e3;
}

.gp-page .gp-help-card .gp-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.gp-page .gp-help-card .gp-section-title i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: #eaf7ed;
  color: #28a745;
  font-size: 15px;
}

.gp-page .gp-help-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: gp-help;
}

.gp-page ol.gp-help-list li {
  counter-increment: gp-help;
}

.gp-page .gp-help-list li {
  position: relative;
  margin-bottom: 10px;
  padding: 0 0 0 32px;
  color: #46564d;
  font-size: 14px;
  line-height: 1.55;
}

.gp-page .gp-help-list li:last-child {
  margin-bottom: 0;
}

.gp-page ol.gp-help-list li::before,
.gp-page ul.gp-help-list li::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #edf5f0;
  color: #18803a;
  font-size: 11px;
  font-weight: 900;
}

.gp-page ol.gp-help-list li::before {
  content: counter(gp-help);
}

.gp-page ul.gp-help-list li::before {
  content: "!";
  border: 1px solid #e1bd52;
  background: #fff5d9;
  color: #8b6800;
}

.gp-page .gp-note {
  margin: 18px 0 0;
  padding: 14px 15px;
  border: 1px solid rgba(40, 167, 69, .24);
  border-radius: 13px;
  background: #f1f8f3;
  color: #47564e;
  font-size: 13px;
  line-height: 1.55;
}

/* Result guide */
.gp-page #gp-result-guide {
  position: relative;
  padding: 72px 0 76px;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 18%, rgba(40, 167, 69, .18), transparent 31%),
    linear-gradient(135deg, #06110e 0%, #0b1713 52%, #07120f 100%);
}

.gp-page #gp-result-guide::before,
.gp-page .gp-repair-cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 14px 14px, 22px 22px;
  background-position: 0 0, 7px 7px;
  pointer-events: none;
}

.gp-page #gp-result-guide > .container,
.gp-page .gp-repair-cta-section > .container {
  position: relative;
  z-index: 1;
}

.gp-page #gp-result-guide .gp-section-heading h2 {
  color: #fff;
}

.gp-page #gp-result-guide .gp-section-kicker {
  border-color: rgba(82, 229, 126, .36);
  background: rgba(40, 167, 69, .14);
  color: #75ef9b;
}

.gp-page .gp-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gp-page .gp-result-card {
  position: relative;
  min-width: 0;
  padding: 22px 18px 20px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 18px;
  background: rgba(255, 255, 255, .065);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .18);
  overflow: hidden;
}

.gp-page .gp-result-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--gp-card-accent, #28a745);
}

.gp-page .gp-result-card--green { --gp-card-accent: #28a745; }
.gp-page .gp-result-card--amber { --gp-card-accent: #d8a311; }
.gp-page .gp-result-card--cyan { --gp-card-accent: #19a7c8; }
.gp-page .gp-result-card--violet { --gp-card-accent: #8264d8; }

.gp-page .gp-result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  margin-bottom: 15px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .09);
  color: var(--gp-card-accent);
  font-size: 19px;
}

@supports not (background: color-mix(in srgb, #000 10%, #fff)) {
  .gp-page .gp-result-icon { background: #edf5f0; }
}

.gp-page .gp-result-card h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}

.gp-page .gp-result-card p {
  margin: 0;
  color: #c7d4cc;
  font-size: 14px;
  line-height: 1.6;
}

/* Local video */
.gp-page .gp-video-section {
  position: relative;
  padding: 72px 0 76px;
  border-top: 0;
  overflow: hidden;
  background: #f3f6f2;
}

.gp-page .gp-video-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(17, 35, 24, .052) 1px, transparent 1px),
    radial-gradient(rgba(17, 35, 24, .024) 1px, transparent 1px);
  background-size: 14px 14px, 22px 22px;
  background-position: 0 0, 7px 7px;
  pointer-events: none;
}

.gp-page .gp-video-section > .container {
  position: relative;
  z-index: 1;
}

.gp-page .gp-video-card {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid #dce6df;
  border-radius: 24px;
  background: linear-gradient(145deg, #fff, #f4f9f6);
  box-shadow: 0 18px 48px rgba(27, 57, 39, .11);
}

.gp-page .gp-video-head {
  max-width: 820px;
  margin: 0 auto 22px;
  text-align: center;
}

.gp-page .gp-video-head h2 {
  margin: 14px 0 10px;
  color: #17251d;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
}

.gp-page .gp-video-head p {
  margin: 0;
  color: #536159;
  font-size: 16px;
  line-height: 1.65;
}

.gp-page .gp-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #07100b;
  box-shadow: 0 14px 34px rgba(6, 25, 13, .22);
  overflow: hidden;
}

.gp-page .gp-video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gp-page .gp-video-local {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
  color: #46564d;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.gp-page .gp-video-local i {
  color: #28a745;
}

.gp-page .gp-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 18px;
}

.gp-page .gp-cta-actions .rm-btn {
  min-width: 210px;
}

/* Repair CTA */
.gp-page .gp-repair-cta-section {
  position: relative;
  padding: 64px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 24%, rgba(40, 167, 69, .18), transparent 32%),
    linear-gradient(135deg, #06110e 0%, #0b1713 52%, #07120f 100%);
}

.gp-page .gp-cta-box {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
  gap: 24px;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
  padding: 30px 34px 28px;
  border: 1px solid rgba(40, 167, 69, .22);
  border-left: 3px solid #28a745;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff 0%, #f9fbf7 62%, #eef9ef 100%);
  color: #1d2a22;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .26);
  overflow: hidden;
}

.gp-page .gp-cta-box::after {
  content: "";
  position: absolute;
  right: -86px;
  bottom: -112px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(40, 167, 69, .18), rgba(40, 167, 69, .06) 58%, transparent 68%);
  pointer-events: none;
}

.gp-page .gp-cta-main,
.gp-page .gp-cta-badges,
.gp-page .gp-cta-footer {
  position: relative;
  z-index: 1;
}

.gp-page .gp-cta-box .gp-cta-label {
  border-color: rgba(40, 167, 69, .18);
  background: rgba(40, 167, 69, .10);
  color: #207b38;
}

.gp-page .gp-cta-main h2 {
  max-width: 520px;
  margin: 16px 0 12px;
  color: #16221b;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.15;
  text-align: left;
}

.gp-page .gp-cta-main > p {
  max-width: 580px;
  margin: 0;
  color: #58635c;
  font-size: 15px;
  line-height: 1.65;
  text-align: left;
}

.gp-page .gp-cta-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gp-page .gp-cta-badges li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid rgba(7, 16, 13, .92);
  border-radius: 999px;
  background: #07100d;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .14);
}

.gp-page .gp-cta-badges i {
  flex: 0 0 auto;
  color: #59d775;
}

.gp-page .gp-cta-footer {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid rgba(23, 52, 32, .10);
  text-align: center;
}

.gp-page .gp-cta-contact {
  margin: 0 !important;
  color: #58635c !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

.gp-page .gp-cta-contact a {
  color: #168b3a;
  font-weight: 800;
}

.gp-page .gp-cta-actions .rm-btn-light {
  border-color: #111a15;
  background: #111a15;
  color: #fff;
}

.gp-page .gp-cta-actions .rm-btn-light:hover,
.gp-page .gp-cta-actions .rm-btn-light:focus {
  border-color: #28a745;
  background: #28a745;
  color: #fff;
}

/* FAQ, contacts, map and related links */
body.screen-redesign.gp-page #faq {
  padding-top: 74px;
  padding-bottom: 76px;
}

body.screen-redesign.rm-home-page.gp-page #contact {
  position: relative !important;
  max-width: none;
  margin: 0 !important;
  padding: 72px 0 76px;
  border-radius: 0;
  overflow: hidden !important;
  background: #f3f6f2 !important;
  background-image: none !important;
  box-shadow: none !important;
}

body.screen-redesign.rm-home-page.gp-page #contact::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  background-image:
    radial-gradient(rgba(17, 35, 24, .052) 1px, transparent 1px),
    radial-gradient(rgba(17, 35, 24, .024) 1px, transparent 1px) !important;
  background-size: 14px 14px, 22px 22px !important;
  background-position: 0 0, 7px 7px !important;
  pointer-events: none !important;
  opacity: 1 !important;
}

body.screen-redesign.rm-home-page.gp-page #contact > .container {
  position: relative;
  z-index: 1;
}

body.screen-redesign.rm-home-page.gp-page #contact .rm-home-lower-title {
  color: #252b2f !important;
}

body.screen-redesign.rm-home-page.gp-page #contact .rm-home-lower-subtitle {
  color: #5f696f !important;
}

body.screen-redesign.rm-home-page.gp-page #contact .rm-contact-side > h3 {
  color: #252b2f;
}

.gp-page #faq > .gp-faq-intro {
  max-width: 800px;
  margin: -20px auto 30px;
  color: #58665e;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

.gp-page #contact .gp-contact-subtitle {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.gp-page #contact .gp-success-message {
  color: #17251d;
  font-size: 18px;
}

.gp-page #contact-map {
  position: relative;
}

.gp-page #contact-map .gp-map-address {
  margin: 0 0 8px;
  color: #18251e;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.gp-page #contact-map .gp-map-address i {
  color: #28a745;
}

.gp-page #contact-map .gp-map-note {
  margin: 0 0 16px;
  color: #58665e;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

.gp-page #contact-map .gp-route-actions {
  margin: 12px 0 20px;
  text-align: center;
}

/* Responsive */
@media (max-width: 1199px) {
  .gp-page .gp-tester-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .gp-page .gp-live-dashboard {
    grid-template-columns: minmax(290px, .86fr) minmax(360px, 1.14fr);
  }

  .gp-page .gp-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .gp-page .gp-tester-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .gp-page .gp-help-panel {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .gp-page .gp-live-dashboard {
    grid-template-columns: minmax(280px, .84fr) minmax(350px, 1.16fr);
  }

  .gp-page .gp-help-card + .gp-help-card {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    border-left: 1px solid #e1e8e3;
    padding-left: 18px;
  }

  .gp-page .gp-help-panel .gp-note {
    grid-column: 1 / -1;
  }

  .gp-page .gp-cta-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gp-page .gp-cta-box {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
  }
}

@media (max-width: 767px) {
  .gp-page .rm-hero-mobile-phone {
    display: none !important;
  }

  .gp-page .rm-hero-bg {
    padding-top: 58px !important;
    padding-bottom: 0 !important;
  }

  .gp-page .rm-hero-row {
    padding-top: 28px !important;
    padding-bottom: 32px !important;
  }

  .gp-page .rm-hero-mobile-media .rm-hero-img {
    width: auto;
    max-height: 190px;
    margin-left: auto;
    margin-right: auto;
  }

  .gp-page .rm-hero-seo-copy {
    font-size: 14px;
    line-height: 1.52;
  }

  .gp-page .rm-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .gp-page .rm-trust-card {
    min-height: 98px;
    padding: 11px 8px !important;
  }

  .gp-page .rm-trust-card strong {
    font-size: 13px;
    line-height: 1.25;
  }

  .gp-page .rm-trust-card small {
    font-size: 11px;
    line-height: 1.3;
  }

  .gp-page .rm-hero-actions {
    margin-top: 18px;
  }

  .gp-page .gp-hero-action-only {
    justify-content: center;
  }

  .gp-page .gp-section-heading {
    margin-bottom: 24px;
  }

  .gp-page .gp-section-heading h2,
  .gp-page .gp-video-head h2 {
    font-size: 29px;
    line-height: 1.18;
  }

  .gp-page .gp-section-heading p,
  .gp-page .gp-video-head p {
    font-size: 15px;
    line-height: 1.55;
  }

  .gp-page #gp-tester,
  .gp-page #gp-result-guide,
  .gp-page .gp-video-section,
  .gp-page .gp-repair-cta-section,
  body.screen-redesign.gp-page #faq {
    padding-top: 50px;
    padding-bottom: 54px;
  }

  body.screen-redesign.rm-home-page.gp-page #contact {
    margin: 0 !important;
    padding: 50px 13px 54px !important;
    border-radius: 0 !important;
    background: #f3f6f2 !important;
    background-image: none !important;
  }

  .gp-page .gp-diagnostic-panel,
  .gp-page .gp-help-panel,
  .gp-page .gp-video-card,
  .gp-page .gp-cta-box {
    padding: 16px;
    border-radius: 18px;
  }

  .gp-page .gp-status-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .gp-page .gp-start-button {
    width: 100%;
  }

  .gp-page .gp-device-block {
    padding: 13px;
  }

  .gp-page .gp-live-dashboard {
    grid-template-columns: minmax(0, 1fr);
  }

  .gp-page .gp-visual {
    min-height: 250px;
    height: 250px;
  }

  .gp-page .gp-help-panel {
    display: block;
  }

  .gp-page .gp-help-card + .gp-help-card {
    margin-top: 18px;
    padding-top: 18px;
    padding-left: 0;
    border-top: 1px solid #e1e8e3;
    border-left: 0;
  }

  .gp-page .gp-result-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gp-page .gp-result-card {
    padding: 19px 17px;
  }

  .gp-page .gp-video-card {
    margin-left: 0;
    margin-right: 0;
  }

  .gp-page .gp-video-local {
    align-items: flex-start;
    line-height: 1.45;
  }

  .gp-page .gp-cta-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .gp-page .gp-cta-actions .rm-btn {
    width: 100%;
    min-width: 0;
  }

  .gp-page .gp-cta-box h2 {
    font-size: 28px;
  }

  .gp-page .gp-cta-main h2 {
    text-align: left;
  }

}

@media (max-width: 480px) {
  .gp-page .gp-sticks {
    gap: 8px;
  }

  .gp-page .gp-stick-wrapper {
    padding: 11px 5px 10px;
  }

  .gp-page .gp-stick {
    width: min(136px, 94%);
  }

  .gp-page .gp-stick-title {
    font-size: 14px;
  }

  .gp-page .gp-stick-readout {
    gap: 5px;
  }

  .gp-page .gp-axis-value,
  .gp-page .gp-circle-values {
    padding: 6px 3px;
    font-size: 10px;
  }

  .gp-page .gp-axis-value span,
  .gp-page .gp-circle-values span {
    min-width: 36px;
    font-size: 11px;
  }

  .gp-page .gp-test-actions,
  .gp-page .gp-triggers {
    grid-template-columns: minmax(0, 1fr);
  }

  .gp-page .gp-cta-badges {
    gap: 8px;
  }

  .gp-page .gp-cta-badges li {
    min-height: 36px;
    padding: 7px 8px;
    font-size: 11.8px;
  }

  .gp-page .gp-trigger {
    grid-template-columns: 58px minmax(0, 1fr) 42px;
    padding: 10px;
  }

  .gp-page .gp-visual {
    min-height: 205px;
    height: 205px;
    border-radius: 18px;
  }

  .gp-page .gp-vstick {
    width: 38px;
    height: 38px;
  }

  .gp-page .gp-vbtn {
    width: 18px;
    height: 18px;
  }

  .gp-page .gp-vbtn-top,
  .gp-page .gp-vtrigger {
    width: 34px;
    height: 17px;
    font-size: 7px;
  }

  .gp-page .gp-vbtn-mid {
    width: 20px;
    height: 16px;
    font-size: 6px;
  }

  .gp-page .gp-vbtn-face::before {
    width: 7px;
    height: 7px;
  }

  .gp-page .gp-vbtn-touch {
    width: 46px;
    height: 26px;
    border-radius: 9px;
  }

  .gp-page .gp-vbtn-stickbtn {
    width: 24px;
    height: 15px;
    font-size: 7px;
  }

  .gp-page .gp-video-card {
    padding: 13px;
  }

  .gp-page .gp-video-wrapper {
    border-radius: 12px;
  }

  .gp-page #contact-map .gp-map-address {
    font-size: 21px;
  }
}

@media (max-width: 359px) {
  .gp-page .gp-section-heading h2,
  .gp-page .gp-video-head h2 {
    font-size: 26px;
  }

  .gp-page .gp-stick {
    width: min(124px, 96%);
  }

  .gp-page .gp-axis-value span,
  .gp-page .gp-circle-values span {
    display: block;
    margin: 2px auto 0;
  }

  .gp-page .gp-visual {
    height: 174px;
  }

  .gp-page .gp-vbtn-back { left: 33%; }
  .gp-page .gp-vbtn-start { left: 67%; }
}
