/* Rasad — code-breaker. */
.rs-col { justify-content: flex-start; padding-top: 4px; }
.rs-rows {
  flex: 1 1 auto;
  min-height: 0;
  width: min(100%, 420px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 4px 2px;
  touch-action: pan-y;
}
.rs-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 16px;
  background: rgba(242, 234, 216, 0.04);
}
.rs-row.is-cur { background: rgba(36, 64, 184, 0.35); box-shadow: inset 0 0 0 1px rgba(232, 182, 90, 0.5); }
.rs-n { font-size: 0.8rem; font-weight: 700; color: var(--mist-dim); text-align: center; font-variant-numeric: tabular-nums; }
.rs-slots { display: grid; grid-template-columns: repeat(var(--slots, 4), auto); justify-content: space-around; gap: 6px; }
.rs-slot {
  display: flex; align-items: center; justify-content: center;
  width: var(--sz, 40px); height: var(--sz, 40px); justify-self: center;
  padding: 0; border: 0; border-radius: 50%;
  background: rgba(7, 13, 44, 0.7);
  box-shadow: inset 0 0 0 1px rgba(242, 234, 216, 0.1);
  cursor: pointer;
}
.rs-slot[disabled] { cursor: default; }
.rs-fb {
  display: grid;
  grid-template-columns: repeat(3, 10px);
  gap: 4px;
  width: 38px;
}
.rs-fb i { width: 10px; height: 10px; border-radius: 50%; background: rgba(242, 234, 216, 0.1); }
.rs-fb i.is-gold { background: #E8B65A; box-shadow: 0 0 6px rgba(232, 182, 90, 0.7); }
.rs-fb i.is-silver { background: #DCE1F2; }

.rs-planet {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 84%; height: 84%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.85), var(--c) 32%, color-mix(in srgb, var(--c) 55%, #000) 100%);
  background-color: var(--c);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.rs-planet.has-ring::after {
  content: "";
  position: absolute;
  left: -16%; right: -16%; top: 42%; height: 16%;
  border-radius: 50%;
  border: 2px solid rgba(255, 236, 190, 0.9);
  transform: rotate(-18deg);
}
.rs-sym { font-size: 0.95rem; font-weight: 700; color: rgba(10, 20, 64, 0.8); line-height: 1; font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols", system-ui, sans-serif; }

.rs-pad {
  flex: none;
  display: grid;
  grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr));
  gap: 6px;
  width: min(100%, 420px);
}
.rs-pad { grid-template-columns: repeat(auto-fit, minmax(42px, 1fr)); }
.rs-key {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 2px 5px;
  border: 0; border-radius: 14px;
  background: rgba(17, 30, 90, 0.8);
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--parchment);
  cursor: pointer;
}
.rs-key .rs-planet { width: 34px; height: 34px; }
.rs-key__name { font-size: 0.62rem; font-weight: 650; color: var(--mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rs-key[disabled] { opacity: 0.3; }
.rs-key:active { background: rgba(36, 64, 184, 0.7); }
.rs-observe { min-height: 48px; padding: 0 22px; }
.rs-observe[disabled] { opacity: 0.4; }
.rs-reveal { display: flex; justify-content: center; gap: 10px; }
.rs-reveal .rs-planet { width: 40px; height: 40px; }
