/* Gamepad / Controller Tester - tool-specific styles (scoped with the gp- prefix) */

.gp-card { padding: 28px 32px 34px; }

.gp-title-bar { text-align: center; margin-bottom: 6px; }
.gp-title-bar h1 { font-size: 1.6em; font-weight: 800; margin: 0; color: #23272f; }

.gp-intro { text-align: center; color: #6b7280; font-size: .95em; line-height: 1.6; max-width: 720px; margin: 8px auto 26px; }

.gp-prompt, .gp-unsupported { text-align: center; background: #faf5ff; border: 1px solid #e9d5ff; border-radius: 12px; padding: 34px 24px; }
.gp-prompt i, .gp-unsupported i { font-size: 2.2em; color: #7c3aed; margin-bottom: 12px; }
.gp-unsupported { background: #fff7ed; border-color: #fed7aa; }
.gp-unsupported i { color: #ea580c; }
.gp-unsupported h3 { margin: 6px 0 10px; color: #23272f; font-size: 1.15em; }
.gp-prompt p, .gp-unsupported p { max-width: 560px; margin: 0 auto; color: #6b7280; font-size: .94em; line-height: 1.6; }

.gp-select-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.gp-select-row label { font-weight: 700; font-size: .88em; color: #3d4148; display: flex; align-items: center; gap: 6px; }
.gp-select-row select { flex: 1 1 220px; max-width: 420px; padding: 9px 12px; border-radius: 8px; border: 1px solid #d8dbe2; font-size: .88em; background: #fff; color: #23272f; }
.gp-conn-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--site-success-bg); color: var(--site-success); border: 1px solid var(--site-success-border); font-weight: 700; font-size: .82em; padding: 6px 14px; border-radius: 30px; margin-left: auto; }
.gp-conn-badge i { font-size: .6em; }

.gp-layout { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }

.gp-sticks { display: flex; flex-direction: column; gap: 20px; }
.gp-stick-box { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gp-stick-label { font-size: .78em; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; font-weight: 700; align-self: flex-start; }
.gp-stick-pad { position: relative; width: 160px; height: 160px; border-radius: 50%; background: #f7f8fa; border: 2px solid #e2e4e9; }
.gp-stick-crosshair { position: absolute; inset: 0; }
.gp-stick-crosshair::before, .gp-stick-crosshair::after { content: ''; position: absolute; background: #e2e4e9; }
.gp-stick-crosshair::before { left: 0; right: 0; top: 50%; height: 1px; transform: translateY(-.5px); }
.gp-stick-crosshair::after { top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-.5px); }
.gp-stick-dot { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--site-light); box-shadow: 0 0 0 4px rgba(20,184,166,.18); left: 50%; top: 50%; transform: translate(-50%, -50%); transition: background .15s ease; }
.gp-stick-dot.gp-active { background: var(--site-dark); }
.gp-stick-xy { font-size: .78em; color: #6b7280; font-variant-numeric: tabular-nums; }

.gp-buttons-wrap { display: flex; flex-direction: column; gap: 8px; }
.gp-buttons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.gp-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: #f7f8fa; border: 1px solid #e2e4e9; border-radius: 10px; padding: 12px 8px; min-height: 64px; transition: background .12s ease, border-color .12s ease, transform .1s ease; }
.gp-btn.gp-pressed { background: var(--site-light); border-color: var(--site-light); color: #fff; transform: scale(1.04); }
.gp-btn-label { font-size: .76em; font-weight: 700; text-align: center; line-height: 1.25; }
.gp-btn-bar-track { width: 100%; height: 4px; background: rgba(0,0,0,.08); border-radius: 3px; overflow: hidden; }
.gp-btn.gp-pressed .gp-btn-bar-track { background: rgba(255,255,255,.3); }
.gp-btn-bar-fill { height: 100%; width: 0%; background: var(--site-light); transition: width .08s linear; }
.gp-btn.gp-pressed .gp-btn-bar-fill { background: #fff; }

.gp-meta-row { margin-top: 18px; font-size: .8em; color: #9aa0aa; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.gp-meta-row strong { color: #6b7280; }

.gp-privacy-note { display: flex; align-items: flex-start; gap: 8px; font-size: .82em; color: #6b7280; background: #f7f8fa; border: 1px solid #eceef2; border-radius: 10px; padding: 12px 16px; margin-top: 18px; }
.gp-privacy-note i { color: var(--site-dark); margin-top: 2px; }

@media (max-width: 760px) {
    .gp-layout { grid-template-columns: 1fr; }
    .gp-sticks { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 600px) {
    .gp-card { padding: 22px 18px 26px; }
    .gp-stick-pad { width: 130px; height: 130px; }
}
