.heart-game {
  margin: 22px 0;
  padding: 22px;
  border: 1px solid #e6e7ec;
  border-radius: 20px;
  background: linear-gradient(120deg, #fff 62%, #f7f7fc);
  color: #262833;
}
.heart-game [hidden] { display: none !important; }
.heart-game-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.heart-game-heading h2 { margin: 7px 0 4px; font-size: 20px; font-weight: 650; letter-spacing: -.025em; }
.heart-game-subtitle { margin: 0; color: #757780; font-size: 13px; }
.heart-game-free { color: #716e96; font-size: 11px; font-weight: 650; letter-spacing: .025em; }
.heart-game-toggle, .heart-game-clear, .heart-game-copy, .heart-game-refresh, .heart-game-shuffle { border: 1px solid #dfdfe9; border-radius: 11px; background: #fff; color: #4f4a72; padding: 10px 14px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.heart-game-toggle { flex-shrink: 0; }
.heart-game button:focus-visible, .heart-game input:focus-visible, .heart-game select:focus-visible { outline: 2px solid #9b9bd0; outline-offset: 3px; }
.heart-game-disclosure { margin: 16px 0 6px; color: #585469; font-size: 12px; font-weight: 600; line-height: 1.65; }
.heart-game-mode, .heart-game-background-note, .heart-game-privacy, .heart-game-result-note { margin: 0; color: #7c7d87; font-size: 11px; line-height: 1.75; }
.heart-game-background-note { margin-top: 5px; }
.heart-game-panel { margin-top: 18px; padding-top: 18px; border-top: 1px solid #ececf1; }
.heart-game-form { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.heart-game-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.heart-game-country-field { grid-column: 1 / -1; }
.heart-game-country-note, .heart-game-gallery-note, .heart-game-age-rule, .heart-game-seen-count { margin: 0; color: #85818f; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.heart-game-gallery-note { color: #706986; }
.heart-game-progress { border: 1px solid #ecebf1; border-radius: 10px; padding: 10px 12px; }
.heart-game-progress > summary { color: #736c85; font-size: 11px; cursor: pointer; }
.heart-game-library-countries { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 15px; margin-top: 12px; }
.heart-game-country-progress p { margin: 0; color: #76717f; font-size: 11px; line-height: 1.65; }
.heart-game-country-progress small { color: #99949f; font-size: 10px; line-height: 1.6; }
.heart-game-seen-count { margin-top: 12px; }
.heart-game-field > label, .heart-game-field > span { color: #62636e; font-size: 12px; font-weight: 600; }
.heart-game input, .heart-game select { width: 100%; min-width: 0; min-height: 42px; border: 1px solid #e0e1e8; border-radius: 10px; padding: 10px 11px; background: #fff; color: #343540; font: inherit; font-size: 14px; }
.heart-game input::placeholder { color: #a0a0aa; }
.heart-game-birthday { display: flex; gap: 7px; }
.heart-game-actions { display: flex; flex-wrap: wrap; gap: 9px; grid-column: 1 / -1; }
.heart-game-draw { border: 1px solid #77708f; border-radius: 11px; padding: 11px 17px; background: #77708f; color: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.heart-game button:disabled, .heart-game input:disabled, .heart-game select:disabled { opacity: .6; cursor: wait; }
.heart-game-privacy { margin-top: 11px; }
.heart-game-status { margin: 10px 0 0; color: #78728b; font-size: 12px; line-height: 1.65; min-height: 1.65em; }
.heart-game-result { display: grid; grid-template-columns: minmax(0, 224px) minmax(0, 1fr); gap: 22px; margin-top: 18px; padding: 18px; border-radius: 16px; border: 1px solid #e8e7ee; background: #fff; }
.heart-game-portrait { position: relative; width: 100%; max-width: 224px; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: #eeeef3; align-self: start; }
.heart-game-portrait-svg { display: block; width: 100%; height: 100%; }
.heart-game-image-label { position: absolute; z-index: 1; left: 10px; bottom: 10px; padding: 5px 9px; border: 1px solid #ffffff5c; border-radius: 7px; color: #fff; background: #292735b8; font-size: 10px; font-weight: 650; }
.heart-game-image-status { position: absolute; top: 42%; left: 14px; right: 14px; color: #76717f; font-size: 12px; text-align: center; line-height: 1.7; }
.heart-game-result-eyebrow { margin: 0 0 6px; color: #898393; font-size: 10px; }
.heart-game-character-name { margin: 0; color: #34313d; font-size: 24px; font-weight: 650; }
.heart-game-character-title { margin: 5px 0 17px; font-size: 12px; color: #7a7685; }
.heart-game-result-background { margin: 0 0 5px; color: #656073; font-size: 12px; font-weight: 600; line-height: 1.7; overflow-wrap: anywhere; }
.heart-game-result-source, .heart-game-result-pool, .heart-game-result-age, .heart-game-result-range, .heart-game-result-remaining { margin: 3px 0; color: #85808d; font-size: 11px; line-height: 1.7; }
.heart-game-result-label { margin: 14px 0 7px; color: #5c566e; font-size: 11px; font-weight: 650; }
.heart-game-traits { display: flex; flex-wrap: wrap; gap: 5px; }
.heart-game-trait { padding: 5px 8px; border-radius: 7px; background: #f4f3f8; color: #7a728c; font-size: 11px; }
.heart-game-scene, .heart-game-opener { margin: 0; color: #64616e; font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
.heart-game-opener { padding: 10px 12px; border-left: 2px solid #b5b4cb; background: #f8f8fb; border-radius: 0 9px 9px 0; }
.heart-game-copy { margin-top: 9px; padding: 7px 10px; font-size: 11px; }
.heart-game-result-note { margin-top: 13px; }
@media (max-width: 620px) {
  .heart-game { padding: 17px; border-radius: 16px; }
  .heart-game-heading { align-items: start; gap: 10px; }
  .heart-game-heading h2 { font-size: 18px; }
  .heart-game-toggle { max-width: 42%; padding: 9px 10px; font-size: 11px; line-height: 1.5; }
  .heart-game-form { grid-template-columns: 1fr 1fr; gap: 12px; }
  .heart-game-field:first-child { grid-column: 1 / -1; }
  .heart-game-own-age { grid-column: 1 / -1; }
  .heart-game input, .heart-game select { font-size: 16px; }
  .heart-game-result { grid-template-columns: 1fr; padding: 12px; gap: 17px; }
  .heart-game-portrait { max-width: 224px; justify-self: center; }
  .heart-game-library-countries { grid-template-columns: 1fr; }
  .heart-game-actions > button { flex: 1; min-width: min(160px, 100%); }
}
