.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.feature-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  background: rgba(5, 8, 13, 0.66);
}

.feature-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.feature-heading h3 {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 600;
}

.feature-tag {
  padding: 4px 6px;
  border: 1px solid rgba(48, 244, 208, 0.22);
  color: var(--cyan);
  font: 6px var(--pixel);
}

.pad-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pad-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #080b11;
}

.pad-slot i {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #333947;
}

.pad-slot.connected i {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.pad-slot div { min-width: 0; }
.pad-slot b, .pad-slot small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pad-slot b { font: 7px var(--pixel); }
.pad-slot small { margin-top: 5px; color: #616979; font-size: 8px; }

.feature-copy, .score-hint {
  margin: 10px 0;
  color: #646c7c;
  font-size: 9px;
  line-height: 1.5;
}

.remote-actions { display: flex; align-items: center; gap: 10px; }
.outline-button.compact { width: auto; flex: none; padding: 8px 9px; }
.remote-actions > span { color: #697181; font-size: 8px; }
.remote-room { margin-top: 9px; padding: 9px; border: 1px solid rgba(246, 220, 85, 0.2); background: rgba(246, 220, 85, 0.03); }
.remote-room:not([hidden]) { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.remote-room-copy { min-width: 0; }
.remote-room b { margin-right: 9px; color: var(--yellow); font: 11px var(--pixel); }
.remote-room a, .remote-room button { color: #a3aaba; font-size: 8px; }
.remote-room a { display: block; margin-top: 8px; text-decoration: none; }
.remote-room button { display: block; margin-top: 8px; padding: 0; border: 0; background: none; cursor: pointer; }
.remote-qr { display: flex; align-items: center; gap: 6px; }
#remoteQrCode { width: 94px; height: 94px; display: grid; place-items: center; padding: 5px; overflow: hidden; color: #171717; background: #fff; border: 2px solid #eee9df; }
#remoteQrCode svg { display: block; width: 100%; height: 100%; }
#remoteQrCode.failed { color: var(--pink); font: 7px var(--pixel); text-align: center; }
.remote-qr small { max-width: 28px; color: #777e8c; font-size: 8px; line-height: 1.4; }

.rank-list { min-height: 74px; margin: 0 0 10px; padding: 0; list-style: none; }
.rank-list li { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 9px; }
.rank-no { color: var(--pink); font: 7px var(--pixel); }
.rank-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-score { color: var(--yellow); font: 7px var(--pixel); }
.rank-empty { display: block !important; color: #555d6d; text-align: center; }

.score-form { display: grid; grid-template-columns: 1fr 90px auto; align-items: end; gap: 7px; }
.score-form label span { display: block; margin-bottom: 4px; color: #555d6c; font-size: 7px; letter-spacing: 0.1em; }
.score-form input { width: 100%; height: 29px; padding: 0 7px; border: 1px solid #323846; outline: 0; color: #d8dbe1; background: #080b11; font-size: 9px; }
.score-form input:focus { border-color: var(--cyan); }
.score-form input[readonly] { color: #777e8c; }
.score-form .primary-button { height: 29px; padding: 0 8px; font-size: 6px; }
.score-form .primary-button:disabled { opacity: 0.35; cursor: not-allowed; }
.score-hint { margin-bottom: 0; }

@media (max-width: 700px) {
  .feature-grid { grid-template-columns: 1fr; }
  .score-form { grid-template-columns: 1fr 90px auto; }
}

@media (max-width: 460px) {
  .pad-slots, .score-form { grid-template-columns: 1fr; }
  .remote-actions { align-items: flex-start; flex-direction: column; }
  .remote-room:not([hidden]) { grid-template-columns: 1fr; }
  .remote-room button { display: block; margin-top: 8px; }
  .remote-qr { justify-content: center; }
}
