.ss-rank-game {
  width: 550px;
  min-height: 400px;
  margin: 0 auto 18px;
  border: 1px solid #8fb7ce;
  background: #f6fbff;
  color: #1f3543;
  font-family: Arial, Helvetica, sans-serif;
  text-align: left;
  box-shadow: 0 2px 8px rgba(24, 58, 78, 0.16);
}

.ss-rank-shell {
  min-height: 400px;
  box-sizing: border-box;
  padding: 15px;
  background: linear-gradient(#ffffff, #eef8ff);
}

.ss-rank-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #bfd8e7;
}

.ss-rank-title {
  margin: 0;
  color: #0a5f8a;
  font-size: 21px;
  line-height: 1.2;
}

.ss-rank-pill {
  padding: 5px 8px;
  border: 1px solid #b6d5e8;
  border-radius: 4px;
  background: #e9f5fd;
  color: #21485e;
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
}

.ss-rank-prompt {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #c7dde9;
  border-radius: 4px;
  background: #ffffff;
  font-size: 16px;
  line-height: 1.35;
}

.ss-rank-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ss-rank-card {
  display: grid;
  grid-template-columns: 34px 1fr 68px;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  box-sizing: border-box;
  padding: 7px;
  border: 1px solid #87aec5;
  border-radius: 4px;
  background: #ffffff;
  color: #084e75;
  cursor: grab;
  font-size: 16px;
}

.ss-rank-card.is-over {
  border-color: #0a73a8;
  background: #e0f3ff;
}

.ss-rank-number {
  color: #5d7e90;
  font-weight: bold;
  text-align: center;
}

.ss-rank-moves {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

.ss-rank-move,
.ss-rank-button {
  border: 1px solid #87aec5;
  border-radius: 4px;
  background: #ffffff;
  color: #084e75;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
}

.ss-rank-move {
  width: 30px;
  height: 28px;
  line-height: 1;
}

.ss-rank-feedback {
  min-height: 36px;
  margin-top: 12px;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid #e0cf86;
  border-radius: 4px;
  background: #fffced;
  color: #5c4d12;
  font-size: 15px;
  line-height: 1.3;
}

.ss-rank-feedback.is-good {
  border-color: #92c97b;
  background: #effbea;
  color: #276514;
}

.ss-rank-feedback.is-bad {
  border-color: #dfa099;
  background: #fff0ee;
  color: #8d271b;
}

.ss-rank-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.ss-rank-button {
  min-height: 34px;
  padding: 7px 12px;
  border-color: #075f8d;
  background: #0b74aa;
  color: #ffffff;
  font-size: 14px;
}

.ss-rank-button.secondary {
  border-color: #90b8cd;
  background: #ffffff;
  color: #0a5f8a;
}

@media (max-width: 650px) {
  .ss-rank-game {
    width: 100%;
  }

  .ss-rank-top {
    align-items: flex-start;
    flex-direction: column;
  }
}
