.guard-picker {
  color: var(--ink); display: grid; grid-template-columns: minmax(200px, .8fr) minmax(0, 1.35fr);
  border: var(--line); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow);
  background: var(--card);
}
.guard-stage {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 0; padding: 25px 16px; background: #e9e3ff; border-right: var(--line);
}
.guard-stage[data-mood="happy"] { background: #d4f2d9; }
.guard-stage[data-mood="alert"] { background: #ffe6a2; }
.guard-stage[data-mood="guard"] { background: #ffc4b8; }
.guard-portrait { display: grid; place-items: center; position: relative; width: min(88%, 250px); aspect-ratio: 1; }
.guard-portrait::before {
  content: ""; position: absolute; inset: 5%; border-radius: 50%;
  background: rgba(255,255,255,.38); border: 1px solid rgba(29,24,54,.13);
}
.guard-portrait img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.guard-caption { display: grid; justify-items: center; gap: 7px; margin-top: 12px; text-align: center; }
.guard-caption strong { font-size: clamp(21px, 2.3vw, 30px); line-height: 1.08; font-weight: 900; }
.guard-caption span { border: 1px solid var(--ink); border-radius: 20px; padding: 3px 12px; background: #fff9; font-size: 13px; font-weight: 800; }
.guard-controls { display: grid; align-content: center; gap: 20px; padding: clamp(18px, 3vw, 38px); }
.guard-controls fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.guard-controls legend { padding: 0; margin-bottom: 10px; font-size: 16px; font-weight: 850; }
.guard-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.guard-option, .guard-mood { position: relative; cursor: pointer; min-width: 0; }
.guard-option input, .guard-mood input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.guard-tile {
  height: 100%; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 9px 5px; border-radius: 15px; border: 1.5px solid #d4cfde; background: #fffcf6;
}
.guard-tile img { display: block; width: clamp(52px, 6vw, 78px); height: clamp(52px, 6vw, 78px); object-fit: contain; }
.guard-tile-name { font-weight: 800; font-size: 13px; line-height: 1.15; text-align: center; }
.guard-tick {
  position: absolute; right: 6px; top: 6px; border-radius: 50%; background: var(--ink); color: white;
  width: 17px; height: 17px; text-align: center; font-size: 11px; line-height: 17px; visibility: hidden;
}
.guard-option input:checked + .guard-tile { border-color: var(--ink); background: #ede8ff; box-shadow: inset 0 0 0 1px var(--ink); }
.guard-option input:checked + .guard-tile .guard-tick { visibility: visible; }
.guard-option:hover .guard-tile, .guard-mood:hover span { border-color: var(--ink); }
.guard-option input:focus-visible + span, .guard-mood input:focus-visible + span { outline: 3px solid #6558bb; outline-offset: 2px; }
.guard-moods { display: flex; flex-wrap: wrap; gap: 6px; }
.guard-mood span { display: block; border: 1.5px solid #d4cfde; border-radius: 20px; padding: 6px 10px; font-size: 13px; font-weight: 800; }
.guard-mood input:checked + span { background: var(--ink); color: white; border-color: var(--ink); }
@media (max-width: 760px) {
  .guard-picker { grid-template-columns: 1fr; }
  .guard-stage { padding: 16px; border-right: 0; border-bottom: var(--line); }
  .guard-portrait { width: min(46vw, 160px); }
  .guard-caption { margin-top: 4px; }
}
