/* 自分のFIRE人生 - profile page */

.my-fire-life-page {
  background: var(--cream);
}

.my-life-hero {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background: var(--cream);
}


/* FIRE QUESTの冒険の紋章。絵文字に頼らず、カテゴリごとの専用SVGで描きます。 */
.badge-card {
  position: relative;
  overflow: hidden;
  padding: 0.9rem;
  background: linear-gradient(160deg, #fffdf8 0%, #f7eee0 100%);
  border-color: rgba(106, 77, 53, 0.26);
  border-top-width: 1px;
  box-shadow: 0 0.8rem 1.5rem rgba(43, 32, 38, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.badge-card::after {
  position: absolute;
  right: 0.85rem;
  bottom: 0.75rem;
  left: 0.85rem;
  color: rgba(89, 67, 57, 0.42);
  content: "FIRE QUEST  ·  RELIC";
  font-family: Arial, sans-serif;
  font-size: 0.49rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-align: center;
}

.badge-card__visual {
  position: relative;
  min-height: 9.25rem;
  padding: 0.6rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, color-mix(in srgb, var(--badge-accent) 34%, transparent), transparent 40%),
    linear-gradient(145deg, #151826 0%, #2b2339 56%, #11151f 100%);
  border: 1px solid rgba(255, 226, 154, 0.36);
  border-radius: 0.8rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 -1.2rem 2rem rgba(0, 0, 0, 0.16);
}

.badge-card__visual::before {
  position: absolute;
  inset: 0.55rem;
  border: 1px solid rgba(255, 225, 150, 0.2);
  border-radius: 0.55rem;
  content: "";
  pointer-events: none;
}

.badge-card__seal,
.next-badge__seal {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  clip-path: none !important;
}

.badge-card__seal {
  width: 7.35rem;
  height: 7.35rem;
  margin: 0 auto;
}

.badge-emblem {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0.45rem 0.4rem rgba(6, 8, 13, 0.32));
}

.badge-emblem--image {
  position: relative;
  overflow: visible;
}

.badge-emblem__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 0.45rem 0.42rem rgba(5, 8, 16, 0.38));
  user-select: none;
}

.badge-card--level .badge-card__visual {
  padding: 0.15rem;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 213, 94, 0.2), transparent 42%),
    linear-gradient(145deg, #101d32 0%, #162d4c 52%, #0d1728 100%);
}

.badge-card--level .badge-card__visual::before {
  inset: 0.4rem;
  border-color: rgba(255, 220, 132, 0.28);
}

.badge-card--level .badge-card__seal {
  width: 8.4rem;
  height: 8.4rem;
}

.badge-detail-dialog__badge > .badge-emblem--image {
  width: 100%;
  height: 100%;
}

.badge-emblem__halo {
  fill: var(--badge-accent, #e56b4d);
  opacity: 0.13;
  filter: blur(2px);
}

.badge-emblem__shadow {
  fill: #080b12;
  opacity: 0.62;
}

.badge-emblem__rim {
  fill: var(--badge-rim-gradient, var(--badge-shell, #171926));
  stroke: var(--badge-metal, #cfa454);
  stroke-width: 3;
}

.badge-emblem__face {
  fill: var(--badge-face-gradient, var(--badge-face, #302239));
  stroke: var(--badge-accent, #e56b4d);
  stroke-width: 2;
}

.badge-emblem__face-pattern {
  fill: var(--badge-pattern-fill, transparent);
  opacity: 0.23;
}

.badge-emblem__pattern-line {
  fill: none;
  stroke: var(--badge-metal-bright, #ffe8a5);
  stroke-width: 0.7;
  opacity: 0.28;
}

.badge-emblem__frame-ornament {
  fill: none;
  stroke: var(--badge-metal-bright, #ffe8a5);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1;
  opacity: 0.62;
}

.badge-emblem__inner-line {
  fill: none;
  stroke: rgba(255, 229, 166, 0.42);
  stroke-dasharray: 1.5 4;
  stroke-width: 1.3;
}

.badge-emblem__crest {
  fill: var(--badge-symbol, #ffd166);
  stroke: var(--badge-metal-bright, #ffe8a5);
  stroke-width: 1.5;
}

.badge-emblem__rune {
  fill: none;
  stroke: var(--badge-accent, #e56b4d);
  stroke-linecap: round;
  stroke-width: 2;
  opacity: 0.72;
}

.badge-emblem__art {
  fill: none;
  stroke: var(--badge-symbol, #ffd166);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

/* 紋章の中身は、背景紋様→補助意匠→主役の順で3層に重ねます。 */
.badge-emblem__tier-ornament {
  fill: none;
  stroke: var(--badge-metal-bright, #ffe8a5);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
  opacity: 0.54;
}

.badge-emblem.badge-tier-relic .badge-emblem__rim {
  stroke-width: 3.5;
}

.badge-emblem.badge-tier-relic .badge-emblem__crest {
  stroke-width: 1.8;
}

.badge-emblem.badge-tier-legend {
  filter: drop-shadow(0 0.52rem 0.5rem rgba(6, 8, 13, 0.42));
}

.badge-emblem.badge-tier-legend .badge-emblem__rim {
  stroke-width: 4.2;
}

.badge-emblem.badge-tier-legend .badge-emblem__inner-line {
  stroke-width: 1.7;
  stroke-dasharray: 2 4;
  opacity: 0.68;
}

.badge-emblem.badge-tier-legend .badge-emblem__crest {
  stroke-width: 2;
}

.badge-emblem__art-bg {
  fill: none;
  stroke: var(--badge-metal-bright, #ffe8a5);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
  opacity: 0.28;
}

.badge-emblem__art-bg-fill {
  fill: var(--badge-accent, #e56b4d);
  opacity: 0.48;
}

.badge-emblem__art-secondary {
  fill: none;
  stroke: var(--badge-accent, #e56b4d);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  opacity: 0.84;
}

.badge-emblem__art-secondary-fill {
  fill: var(--badge-accent, #e56b4d);
  stroke: var(--badge-symbol-edge, #9a392e);
  stroke-linejoin: round;
  stroke-width: 1.2;
  opacity: 0.86;
}

.badge-emblem__art-primary {
  fill: none;
  stroke: var(--badge-symbol, #ffd166);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.4;
}

.badge-emblem__art-primary-fill {
  fill: var(--badge-symbol, #ffd166);
  stroke: var(--badge-symbol-edge, #9a392e);
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.badge-emblem__art-highlight {
  fill: var(--badge-metal-bright, #ffe8a5);
  stroke: var(--badge-metal-bright, #ffe8a5);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  opacity: 0.9;
}

.badge-emblem__art-fill {
  fill: var(--badge-symbol, #ffd166);
  stroke: var(--badge-symbol-edge, #9a392e);
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.badge-emblem__art-ring {
  fill: none;
  stroke: var(--badge-symbol, #ffd166);
  stroke-width: 3;
}

.badge-emblem__art-muted {
  fill: none;
  stroke: var(--badge-accent, #e56b4d);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  opacity: 0.7;
}

.badge-emblem__art-dot {
  fill: var(--badge-symbol, #ffd166);
  stroke: var(--badge-metal-bright, #ffe8a5);
  stroke-width: 1;
}

.badge-emblem__cutout {
  fill: var(--badge-face, #302239);
  stroke: var(--badge-symbol-edge, #9a392e);
  stroke-width: 1;
}

.badge-emblem__question {
  fill: #5e595b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.25rem;
  font-weight: 700;
  text-anchor: middle;
}

.badge-emblem--locked {
  filter: drop-shadow(0 0.2rem 0.2rem rgba(45, 37, 35, 0.12));
  opacity: 0.82;
}

.badge-emblem--locked .badge-emblem__shadow {
  opacity: 0.2;
}

.badge-emblem--locked .badge-emblem__halo,
.badge-emblem--locked .badge-emblem__face-pattern {
  opacity: 0;
}

.badge-emblem--locked .badge-emblem__frame-ornament {
  stroke: #b8aea3;
  opacity: 0.38;
}

.badge-emblem--locked .badge-emblem__rim {
  fill: #a39b92;
  stroke: #cfc5b8;
}

.badge-emblem--locked .badge-emblem__face {
  fill: #e8e0d5;
  stroke: #b5aa9f;
}

.badge-emblem--locked .badge-emblem__inner-line,
.badge-emblem--locked .badge-emblem__rune,
.badge-emblem--locked .badge-emblem__tier-ornament {
  stroke: #938a82;
}

.badge-emblem--locked .badge-emblem__crest {
  fill: #aaa096;
  stroke: #ded3c6;
}

.badge-emblem--locked .badge-emblem__question {
  fill: #6c6663;
}

.badge-tone-red {
  --badge-accent: #ed684d;
  --badge-accent-deep: #762533;
  --badge-face-light: #6f3542;
  --badge-face: #3d1f2d;
  --badge-shell: #191622;
  --badge-symbol: #ffd166;
  --badge-symbol-edge: #a33235;
  --badge-metal: #d6a555;
  --badge-metal-bright: #ffe49b;
  --badge-color: var(--badge-accent);
  --badge-color-dark: var(--badge-accent-deep);
}

.badge-tone-blue {
  --badge-accent: #70afd0;
  --badge-accent-deep: #315b7b;
  --badge-face-light: #34536a;
  --badge-face: #182b3d;
  --badge-shell: #131b28;
  --badge-symbol: #ffda72;
  --badge-symbol-edge: #3c6888;
  --badge-metal: #cba95e;
  --badge-metal-bright: #e9d39b;
  --badge-color: var(--badge-accent);
  --badge-color-dark: var(--badge-accent-deep);
}

.badge-tone-purple {
  --badge-accent: #b08bcf;
  --badge-accent-deep: #60417c;
  --badge-face-light: #564170;
  --badge-face: #2e2143;
  --badge-shell: #171522;
  --badge-symbol: #ffd978;
  --badge-symbol-edge: #684a8d;
  --badge-metal: #c9a661;
  --badge-metal-bright: #f0dba0;
  --badge-color: var(--badge-accent);
  --badge-color-dark: var(--badge-accent-deep);
}

.badge-tone-orange {
  --badge-accent: #edaa59;
  --badge-accent-deep: #89512b;
  --badge-face-light: #6d4a2e;
  --badge-face: #3e281e;
  --badge-shell: #1d1818;
  --badge-symbol: #ffe08a;
  --badge-symbol-edge: #9b5d2c;
  --badge-metal: #d5a354;
  --badge-metal-bright: #ffe39a;
  --badge-color: var(--badge-accent);
  --badge-color-dark: var(--badge-accent-deep);
}

.badge-tone-mint {
  --badge-accent: #70b8a8;
  --badge-accent-deep: #326f6d;
  --badge-face-light: #356a68;
  --badge-face: #1d3c41;
  --badge-shell: #141d24;
  --badge-symbol: #ffda72;
  --badge-symbol-edge: #387b76;
  --badge-metal: #c7a45b;
  --badge-metal-bright: #e8d59a;
  --badge-color: var(--badge-accent);
  --badge-color-dark: var(--badge-accent-deep);
}

.badge-tone-yellow {
  --badge-accent: #e9bf49;
  --badge-accent-deep: #806124;
  --badge-face-light: #6b5728;
  --badge-face: #3c3219;
  --badge-shell: #1d1a18;
  --badge-symbol: #ffe08a;
  --badge-symbol-edge: #9a7624;
  --badge-metal: #d7a94f;
  --badge-metal-bright: #ffedaf;
  --badge-color: var(--badge-accent);
  --badge-color-dark: var(--badge-accent-deep);
}

.badge-tone-green {
  --badge-accent: #82ad74;
  --badge-accent-deep: #426746;
  --badge-face-light: #46684d;
  --badge-face: #20362d;
  --badge-shell: #151d1b;
  --badge-symbol: #ffda72;
  --badge-symbol-edge: #4f7a4e;
  --badge-metal: #c7a45b;
  --badge-metal-bright: #e8d59a;
  --badge-color: var(--badge-accent);
  --badge-color-dark: var(--badge-accent-deep);
}

.badge-tone-gray {
  --badge-accent: #958b86;
  --badge-accent-deep: #645c5a;
  --badge-face-light: #504b4d;
  --badge-face: #302e31;
  --badge-shell: #1c1c22;
  --badge-symbol: #d6c7a2;
  --badge-symbol-edge: #736b66;
  --badge-metal: #aa9a7a;
  --badge-metal-bright: #ded0aa;
  --badge-color: var(--badge-accent);
  --badge-color-dark: var(--badge-accent-deep);
}

.badge-card__category {
  color: var(--badge-accent-deep, var(--red-dark));
}

.next-badge {
  border-color: color-mix(in srgb, var(--badge-accent, #8b838b) 36%, #b9afb0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52), 0 0.45rem 1rem rgba(43, 32, 38, 0.06);
}

.next-badge__seal {
  width: 3.55rem;
  height: 3.55rem;
}

.next-badge--locked .next-badge__seal {
  color: inherit;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.next-badge__category,
.next-badge__distance {
  color: var(--badge-accent-deep, var(--red-dark));
}

.badge-detail-dialog__badge {
  display: grid;
  place-items: center;
  width: 8rem;
  height: 8rem;
  margin-bottom: 0.25rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
}

.badge-detail-dialog__badge > .badge-emblem {
  width: 100%;
  height: 100%;
}

@media (max-width: 699px) {
  .badge-card__visual {
    min-height: 6.9rem;
  }

  .badge-card__seal {
    width: 5.35rem;
    height: 5.35rem;
  }

  .badge-card--level .badge-card__seal {
    width: 6.1rem;
    height: 6.1rem;
  }

  .next-badge__seal {
    width: 3.15rem;
    height: 3.15rem;
  }

  .badge-detail-dialog__badge {
    width: 7rem;
    height: 7rem;
  }
}

.my-life-hero__visual {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.my-life-hero__image {
  display: block;
  position: relative;
  z-index: 0;
  width: 100%;
  max-width: none;
  height: auto;
}

.my-life-hero__actions-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding-bottom: clamp(1rem, 4vw, 2.5rem);
  pointer-events: none;
}

.my-life-hero__actions-overlay > .container {
  display: flex;
  justify-content: flex-start;
}

.my-life-breadcrumbs {
  margin: 0;
  padding: 1rem 0;
  color: var(--muted);
}

.my-life-breadcrumbs a:hover,
.my-life-breadcrumbs a:focus-visible {
  color: var(--yellow);
}

.my-life-hero__copy {
  z-index: 1;
  max-width: 36rem;
  padding-top: clamp(0.5rem, 2vw, 1.5rem);
  color: var(--ink);
}

.my-life-hero__copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.2rem, 10vw, 6.6rem);
  letter-spacing: -0.08em;
  line-height: 0.98;
}

.my-life-hero__copy h1 span {
  color: var(--yellow);
}

.my-life-hero__copy h1 small {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: clamp(0.72rem, 1.7vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
}

.my-life-hero__lead {
  max-width: 28rem;
  margin: 1.7rem 0 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.75;
}

.my-life-hero__note {
  max-width: 27rem;
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.75;
}

.my-life-hero__exp-note {
  max-width: 27rem;
  margin: 1rem 0 0;
  padding-top: 0.9rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.6;
  border-top: 1px solid rgba(106, 77, 53, 0.16);
}

.my-life-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
  align-items: center;
  margin: 0;
  pointer-events: auto;
}

.my-life-hero__actions .button--yellow {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 8px 0 #c99b1e;
}

.my-life-hero__actions .button--yellow:hover,
.my-life-hero__actions .button--yellow:focus-visible {
  box-shadow: 0 11px 0 #c99b1e, 0 16px 25px rgba(0, 0, 0, 0.2);
}

.my-life-hero__jump {
  color: var(--paper);
  text-shadow: 0 0.15rem 0.7rem rgba(20, 14, 25, 0.58);
}

.my-life-hero__jump:hover,
.my-life-hero__jump:focus-visible {
  color: var(--yellow);
}

.my-life-overview {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 207, 69, 0.16), transparent 20rem),
    var(--cream);
}

.my-life-overview__layout {
  display: block;
}

.my-life-overview__layout > .my-life-hero__copy {
  margin-bottom: 2rem;
}

.my-life-profile-section__layout {
  display: grid;
  grid-template-columns: minmax(8rem, 0.42fr) minmax(0, 1.58fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.my-life-profile-section__heading {
  margin: 1rem 0 0;
  text-align: left;
}

.my-life-profile-section__heading .eyebrow {
  margin-bottom: 0.75rem;
}

.my-life-profile-section__heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.06em;
  line-height: 1.1;
}

@media (min-width: 1000px) {
  .my-life-overview__layout {
    display: grid;
    grid-template-columns: minmax(15rem, 0.78fr) minmax(0, 2.22fr);
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: start;
  }

  .my-life-overview__layout > .my-life-hero__copy {
    margin-bottom: 0;
  }
}

.life-profile-card {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(1.1rem, 3vw, 1.65rem);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 1.5rem;
  box-shadow: 0 1.5rem 3rem rgba(11, 9, 15, 0.24);
}

.life-profile-card::before {
  position: absolute;
  top: -0.45rem;
  right: 1.6rem;
  width: 2.8rem;
  height: 0.8rem;
  content: "";
  background: var(--yellow);
  border-radius: 999px;
  transform: rotate(4deg);
}

.life-profile-card__topline,
.life-profile-card__identity-copy > span,
.life-stat-label {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.25;
}

.life-profile-card__topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.life-profile-card__local-chip {
  color: var(--red-dark);
  text-align: right;
}

.life-profile-card__identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 1.2rem 0 1.05rem;
}

.life-profile-card__avatar {
  display: grid;
  place-items: center;
  width: 3.3rem;
  height: 3.3rem;
  color: var(--red);
  font-family: Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 1rem;
  transform: rotate(-5deg);
}

.life-profile-card__identity-copy {
  min-width: 0;
}

.life-profile-card__identity-copy h2 {
  margin: 0.22rem 0 0;
  overflow: hidden;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  letter-spacing: -0.04em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.life-profile-card__identity-copy p {
  margin: 0.3rem 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.life-level-orb {
  display: grid;
  place-items: center;
  align-content: center;
  width: 4.9rem;
  height: 4.9rem;
  color: var(--paper);
  background: linear-gradient(145deg, var(--red), var(--red-dark));
  border: 4px solid var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(234, 62, 49, 0.09);
  transform: rotate(4deg);
}

.life-level-orb span {
  font-family: Arial, sans-serif;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.life-level-orb strong {
  font-family: Arial, sans-serif;
  font-size: 1.8rem;
  line-height: 1;
}

.life-profile-card__exp-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  padding: 0.9rem 0 0.65rem;
  border-top: 1px solid var(--line);
}

.life-profile-card__exp-row > div {
  display: grid;
  gap: 0.25rem;
}

.life-profile-card__exp-row strong {
  font-family: Arial, sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1;
}

.life-profile-card__next {
  text-align: right;
}

.life-profile-card__next strong {
  color: var(--red-dark);
  font-size: 0.82rem;
  line-height: 1.4;
}

.life-exp-bar {
  height: 0.62rem;
  overflow: hidden;
  background: #f2e9e1;
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(36, 31, 40, 0.08);
}

.life-exp-bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--yellow));
  border-radius: inherit;
  transition: width 280ms ease;
}

.life-profile-card__exp-note {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.life-visit-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.life-visit-stat {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  min-width: 0;
  padding: 0.75rem;
  background: var(--cream);
  border: 1px solid rgba(234, 62, 49, 0.09);
  border-radius: 0.9rem;
}

.life-visit-stat__icon {
  font-size: 1.4rem;
  line-height: 1;
}

.life-visit-stat > span:last-child {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.life-visit-stat small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.life-visit-stat strong {
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 1.25rem;
  line-height: 1;
}

.life-profile-card__local-note {
  margin: 0.95rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
  text-align: right;
}

.life-nickname-form {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line);
}

.life-nickname-form label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.life-nickname-form__row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.life-nickname-form input {
  min-width: 0;
  flex: 1;
  height: 2.45rem;
  padding: 0.5rem 0.7rem;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
}

.life-nickname-form input:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  border-color: var(--red);
}

.life-nickname-form__row .button {
  min-height: 2.45rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.72rem;
}

.life-nickname-form__hint {
  min-height: 1.2em;
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.life-badges-section {
  background: var(--paper);
}

.next-badges-section {
  background: var(--cream);
}

.life-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
}

.life-section-heading .eyebrow {
  margin-bottom: 0.8rem;
}

.life-section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.3rem);
  letter-spacing: -0.08em;
  line-height: 1.05;
}

.life-section-heading--compact h2 {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
}

.life-badge-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
}

.life-badge-count strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--red);
  font-family: Arial, sans-serif;
  font-size: 1.45rem;
  line-height: 1;
}

.life-section-intro {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.8;
}

.earned-badges,
.next-badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.badge-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
  min-width: 0;
  padding: 1rem;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  box-shadow: 0 0.7rem 1.5rem rgba(65, 43, 37, 0.06);
}

button.badge-card {
  width: 100%;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

button.badge-card:hover,
button.badge-card:focus-visible {
  border-color: rgba(234, 62, 49, 0.35);
  box-shadow: 0 0.9rem 1.8rem rgba(65, 43, 37, 0.12);
  transform: translateY(-3px);
}

button.badge-card:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.badge-card--level { border-top: 4px solid var(--red); }
.badge-card--discovery { border-top: 4px solid #6187cf; }
.badge-card--streak { border-top: 4px solid #e88a2a; }
.badge-card--visit { border-top: 4px solid #58a58a; }

.badge-card__visual {
  display: grid;
  place-items: center;
  min-height: 8.25rem;
  padding: 0.65rem;
  background: linear-gradient(135deg, rgba(255, 250, 240, 0.9), rgba(255, 244, 201, 0.5));
  border-radius: 0.85rem;
}

.badge-card__seal,
.badge-detail-dialog__badge {
  display: grid;
  place-items: center;
  color: var(--paper);
  font-family: Arial, sans-serif;
  font-size: 2.25rem;
  font-weight: 900;
  background: linear-gradient(145deg, var(--badge-color, var(--red)), var(--badge-color-dark, var(--red-dark)));
  border: 4px solid rgba(255, 255, 255, 0.64);
  box-shadow: 0 0 0 3px var(--badge-color, var(--red)), 0 0.55rem 1.1rem rgba(56, 36, 32, 0.16);
}

.badge-card__seal {
  width: 5.25rem;
  height: 5.25rem;
}

.badge-card__seal.my-badge--circle,
.badge-detail-dialog__badge.my-badge--circle { border-radius: 50%; }

.badge-card__seal.my-badge--medal,
.badge-detail-dialog__badge.my-badge--medal {
  border-radius: 50% 50% 42% 42%;
  transform: rotate(-4deg);
}

.badge-card__seal.my-badge--shield,
.badge-detail-dialog__badge.my-badge--shield {
  border-radius: 52% 52% 45% 45% / 40% 40% 60% 60%;
}

.badge-card__seal.my-badge--hex,
.badge-detail-dialog__badge.my-badge--hex {
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
}

.badge-tone-red { --badge-color: #ea3e31; --badge-color-dark: #b92835; }
.badge-tone-blue { --badge-color: #6187cf; --badge-color-dark: #3d5d9d; }
.badge-tone-purple { --badge-color: #8b72b5; --badge-color-dark: #59417e; }
.badge-tone-orange { --badge-color: #eb9340; --badge-color-dark: #c55c2b; }
.badge-tone-mint { --badge-color: #64ae9c; --badge-color-dark: #3a7d74; }
.badge-tone-yellow { --badge-color: #e8b72d; --badge-color-dark: #b27b13; }
.badge-tone-green { --badge-color: #68a35d; --badge-color-dark: #3e723d; }
.badge-tone-gray { --badge-color: #8b838b; --badge-color-dark: #5f5961; }

.badge-card__body {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  min-width: 0;
}

.badge-card__category {
  margin: 0;
  color: var(--red-dark);
  font-family: Arial, sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.badge-card__name {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.badge-card__condition,
.badge-card__date,
.badge-card__legacy {
  margin: 0;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.55;
}

.badge-card__date {
  padding-top: 0.45rem;
  border-top: 1px dashed var(--line);
}

.badge-card__legacy {
  color: var(--red-dark);
  font-weight: 700;
}

.badge-empty {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  padding: 1.2rem 1.35rem;
  background: var(--cream);
  border: 1px dashed rgba(234, 62, 49, 0.25);
  border-radius: 1rem;
}

.badge-empty[hidden],
.life-footprints__empty[hidden],
.life-footprints__note[hidden] {
  display: none !important;
}

.badge-empty__mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: var(--red);
  font-size: 1.5rem;
  background: var(--yellow-soft);
  border-radius: 50%;
}

.badge-empty h3 {
  margin: 0;
  font-size: 1rem;
}

.badge-empty p {
  margin: 0.25rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.text-link {
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.next-badge {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  min-width: 0;
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed rgba(36, 31, 40, 0.2);
  border-radius: 1rem;
}

.next-badge__seal {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  color: var(--badge-color-dark, var(--muted));
  font-size: 1.35rem;
  background: color-mix(in srgb, var(--badge-color, #8b838b) 12%, white);
  border: 2px dashed var(--badge-color, #8b838b);
}

.next-badge__seal.my-badge--circle { border-radius: 50%; }
.next-badge__seal.my-badge--medal { border-radius: 50% 50% 42% 42%; }
.next-badge__seal.my-badge--shield { border-radius: 52% 52% 45% 45% / 40% 40% 60% 60%; }
.next-badge__seal.my-badge--hex { clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); }

.next-badge--locked .next-badge__seal {
  color: var(--muted);
  font-size: 1.65rem;
  font-weight: 900;
  background: #f4eee7;
  border-color: color-mix(in srgb, var(--badge-color, #8b838b) 58%, #b9afb0);
  box-shadow: inset 0 0 0 0.28rem rgba(255, 255, 255, 0.46);
}

.next-badge__body {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.next-badge__category {
  color: var(--badge-color-dark, var(--muted));
  font-family: Arial, sans-serif;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.next-badge__name {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-badge__condition {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-badge__distance {
  color: var(--red-dark);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  line-height: 1.35;
}

.next-badges__empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.life-footprints-section {
  background: var(--paper);
}

.life-footprints-section .life-section-heading h2 span {
  color: var(--red);
}

.life-footprints-heading-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: right;
}

.life-footprints {
  position: relative;
  display: grid;
  max-width: 48rem;
  gap: 0.8rem;
  margin-top: 2rem;
}

.life-footprints::before {
  position: absolute;
  top: 1.1rem;
  bottom: 1.1rem;
  left: 1.15rem;
  width: 2px;
  content: "";
  background: linear-gradient(var(--yellow), rgba(234, 62, 49, 0.14));
}

.life-footprint {
  --footprint-accent: var(--red);
  position: relative;
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.life-footprint--visit {
  --footprint-accent: #df8a31;
}

.life-footprint--read {
  --footprint-accent: #6187cf;
}

.life-footprint--badge {
  --footprint-accent: #8b72b5;
}

.life-footprint--start {
  --footprint-accent: var(--yellow-deep);
}

.life-footprint__marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  color: var(--paper);
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  background: var(--footprint-accent);
  border: 3px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--footprint-accent);
}

.life-footprint__body {
  min-width: 0;
  padding: 0.9rem 1rem 0.85rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 3px solid var(--footprint-accent);
  border-radius: 0.85rem;
}

.life-footprint__category {
  color: var(--footprint-accent);
  font-family: Arial, sans-serif;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.life-footprint__title {
  margin: 0.2rem 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
}

.life-footprint__detail {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.life-footprint__date {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.life-footprints__empty {
  max-width: 48rem;
  margin-top: 2rem;
  padding: 1.2rem 1.35rem;
  color: var(--muted);
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: 1rem;
}

.life-footprints__empty span {
  display: block;
  color: var(--red);
  font-size: 1.4rem;
}

.life-footprints__empty p,
.life-footprints__note {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  line-height: 1.7;
}

.life-footprints__note {
  max-width: 48rem;
  color: var(--muted);
}

.life-data-section {
  padding: clamp(3rem, 8vw, 6.5rem) 0;
  background: var(--cream);
}

.life-data-panel {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: 0 1rem 2rem rgba(65, 43, 37, 0.07);
}

.life-data-panel .eyebrow {
  color: var(--red);
}

.life-data-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 4vw, 3rem);
  letter-spacing: -0.08em;
  line-height: 1.15;
}

.life-data-panel h2 span {
  color: var(--red);
}

.life-data-panel p:not(.eyebrow) {
  max-width: 34rem;
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.75;
}

.life-data-panel__actions {
  display: grid;
  flex: 0 0 auto;
  gap: 0.7rem;
  justify-items: end;
}

.life-data-panel__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: end;
}

.life-data-panel__buttons .button {
  min-height: 2.65rem;
  font-size: 0.76rem;
  white-space: nowrap;
}

.life-data-panel__status {
  margin: 0 !important;
  color: var(--muted);
  font-size: 0.7rem !important;
  text-align: right;
}

.life-save-section {
  padding: clamp(3rem, 8vw, 6.5rem) 0;
  background: var(--cream);
}

.life-save-panel {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 5vw, 3.1rem);
  color: var(--paper);
  background:
    radial-gradient(circle at 92% 20%, rgba(255, 207, 69, 0.24), transparent 15rem),
    linear-gradient(135deg, var(--red-dark), var(--red));
  border-radius: 1.5rem;
  box-shadow: 0 1rem 2.5rem rgba(185, 40, 53, 0.18);
}

.life-save-panel .eyebrow {
  color: var(--yellow);
}

.life-save-panel h2 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(1.7rem, 4vw, 3rem);
  letter-spacing: -0.08em;
  line-height: 1.15;
}

.life-save-panel h2 span {
  color: var(--yellow);
}

.life-save-panel p:not(.eyebrow) {
  max-width: 31rem;
  margin: 0.9rem 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  line-height: 1.7;
}

.life-save-panel__action {
  display: grid;
  flex: 0 0 auto;
  gap: 0.7rem;
  justify-items: center;
}

.life-save-panel__action .button {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 7px 0 #bd8c17;
}

.life-save-panel__action .button:hover,
.life-save-panel__action .button:focus-visible {
  box-shadow: 0 10px 0 #bd8c17, 0 15px 25px rgba(76, 17, 25, 0.2);
}

.life-save-panel__action small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
}

.life-settings-section {
  padding: 0 0 4rem;
  background: var(--cream);
}

.life-dev-tools {
  max-width: 34rem;
  margin-inline: auto;
  color: var(--muted);
  font-size: 0.75rem;
}

.life-dev-tools summary {
  width: fit-content;
  color: var(--muted);
  cursor: pointer;
}

.life-dev-tools__body {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 0.7rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
}

.life-dev-tools__body p {
  margin: 0;
  line-height: 1.5;
}

.life-dev-tools__actions {
  display: grid;
  gap: 0.65rem;
  justify-items: end;
}

.life-dev-tools__level {
  display: grid;
  gap: 0.35rem;
  justify-items: end;
}

.life-dev-tools__level > span {
  font-size: 0.68rem;
  font-weight: 700;
}

.life-dev-tools__level > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 0.3rem;
}

.life-dev-tools__level button {
  padding: 0.3rem 0.5rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.life-dev-tools__level button:hover,
.life-dev-tools__level button:focus-visible {
  color: var(--red-dark);
  border-color: rgba(234, 62, 49, 0.35);
}

.life-dev-tools__body .button {
  min-height: 2.25rem;
  padding: 0.45rem 0.8rem;
  font-size: 0.7rem;
  white-space: nowrap;
}

/* Badge details are intentionally separate from acquisition notifications. */
.badge-detail-dialog {
  width: min(calc(100% - 2rem), 28rem);
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: 1.35rem;
  box-shadow: 0 1.5rem 4rem rgba(36, 31, 40, 0.28);
}

.badge-detail-dialog::backdrop {
  background: rgba(36, 31, 40, 0.64);
  backdrop-filter: blur(5px);
}

.badge-detail-dialog__inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  padding: 2rem 1.5rem 1.6rem;
  text-align: center;
}

.badge-detail-dialog__close {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  width: 2rem;
  height: 2rem;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  background: transparent;
  border-radius: 50%;
}

.badge-detail-dialog__close:hover,
.badge-detail-dialog__close:focus-visible {
  color: var(--red);
  background: var(--red-soft);
}

.badge-detail-dialog__badge {
  width: 6rem;
  height: 6rem;
  margin-bottom: 0.25rem;
  font-size: 2.5rem;
}

.badge-detail-dialog__category {
  margin: 0;
  color: var(--red-dark);
  font-family: Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.badge-detail-dialog h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.35;
}

.badge-detail-dialog__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin: 0.2rem 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.badge-detail-dialog__list div {
  display: grid;
  gap: 0.25rem;
  padding: 0.7rem 0.5rem;
}

.badge-detail-dialog__list div + div {
  border-left: 1px solid var(--line);
}

.badge-detail-dialog__list dt {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
}

.badge-detail-dialog__list dd {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
}

.badge-detail-dialog__description,
.badge-detail-dialog__legacy {
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.75;
}

.badge-detail-dialog__legacy {
  color: var(--red-dark);
  font-weight: 800;
}

@media (min-width: 700px) and (max-width: 1090px) {
  .earned-badges,
  .next-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 699px) {
  .my-life-hero__actions-overlay {
    padding-bottom: 1rem;
  }

  .my-life-hero__copy {
    padding-top: 0;
  }

  .my-life-breadcrumbs {
    padding: 0.8rem 0;
  }

  .my-life-hero__copy h1 {
    font-size: clamp(3.3rem, 17vw, 5.3rem);
  }

  .my-life-overview__layout,
  .my-life-profile-section__layout {
    display: block;
  }

  .my-life-overview__layout > .my-life-hero__copy {
    margin-bottom: 2rem;
  }

  .my-life-profile-section__heading {
    margin: 0 0 1.4rem;
    text-align: center;
  }

  .life-profile-card {
    margin: 0 auto;
  }

  .life-section-heading {
    align-items: start;
  }

  .life-section-heading h2 {
    font-size: 2rem;
  }

  .life-badge-count {
    padding-top: 0.35rem;
  }

  .earned-badges,
  .next-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .badge-card {
    gap: 0.7rem;
    padding: 0.7rem;
  }

  .badge-card__visual {
    min-height: 6.5rem;
  }

  .badge-card__seal {
    width: 4rem;
    height: 4rem;
    font-size: 1.65rem;
  }

  .badge-card__name {
    font-size: 0.82rem;
  }

  .badge-card__condition,
  .badge-card__date,
  .badge-card__legacy {
    font-size: 0.67rem;
  }

  .next-badge {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.7rem;
  }

  .next-badge__seal {
    width: 2.8rem;
    height: 2.8rem;
  }

  .life-footprints-heading-note {
    padding-top: 0.35rem;
  }

  .life-footprints {
    gap: 0.65rem;
  }

  .life-footprints::before {
    left: 0.95rem;
  }

  .life-footprint {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.7rem;
  }

  .life-footprint__marker {
    width: 2rem;
    height: 2rem;
    font-size: 0.85rem;
  }

  .life-footprint__body {
    padding: 0.8rem 0.85rem 0.75rem;
  }

  .life-footprint__title {
    font-size: 0.9rem;
  }

  .life-footprint__detail {
    font-size: 0.72rem;
  }

  .life-data-panel {
    display: grid;
    gap: 1.5rem;
  }

  .life-data-panel__actions {
    justify-items: start;
  }

  .life-data-panel__buttons {
    justify-content: start;
  }

  .life-data-panel__status {
    text-align: left;
  }

  .life-save-panel {
    display: grid;
    gap: 1.5rem;
  }

  .life-save-panel__action {
    justify-items: start;
  }

  .life-dev-tools__body {
    display: grid;
  }

  .life-dev-tools__actions,
  .life-dev-tools__level {
    justify-items: start;
  }

  .life-dev-tools__level > div {
    justify-content: start;
  }
}

@media (max-width: 420px) {
  .life-profile-card__identity {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .life-level-orb {
    grid-column: 2;
    justify-self: start;
    width: 4.2rem;
    height: 4.2rem;
  }

  .life-profile-card__exp-row {
    align-items: start;
    flex-direction: column;
  }

  .life-profile-card__next {
    text-align: left;
  }

  .life-visit-stat {
    display: grid;
    justify-items: start;
  }
}

/* RPG quest status panel */
.my-life-profile-section__layout {
  position: relative;
  display: block;
  overflow: hidden;
  padding: clamp(1rem, 2.5vw, 1.55rem);
  background-color: #1d2a3b;
  background-image: url("../FIREクエスト3.png");
  background-position: center bottom;
  background-size: auto 145%;
  border: 1px solid rgba(226, 174, 76, 0.72);
  border-radius: 1.3rem;
  box-shadow: 0 1.6rem 3rem rgba(22, 18, 25, 0.22), inset 0 0 0 1px rgba(255, 236, 167, 0.2);
  isolation: isolate;
}

.my-life-profile-section__layout::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(17, 27, 40, 0.58);
}

.my-life-profile-section__layout > * {
  position: relative;
  z-index: 1;
}

.my-life-profile-section__heading {
  position: relative;
  max-width: 34rem;
  margin: 0 auto 1.25rem;
  padding: 0.9rem 1.5rem 0.8rem;
  color: #fff0c5;
  text-align: center;
  background: #604127;
  border: 2px solid #dda844;
  border-radius: 0.7rem;
  box-shadow: 0 0 0 3px rgba(43, 28, 24, 0.72), 0 0.7rem 1.4rem rgba(11, 15, 22, 0.32), inset 0 0 0 1px rgba(255, 225, 133, 0.5);
}

.my-life-profile-section__heading::before,
.my-life-profile-section__heading::after {
  position: absolute;
  top: 50%;
  width: 0.65rem;
  height: 0.65rem;
  content: "";
  background: #f4c65b;
  border: 2px solid #8d5b2e;
  transform: translateY(-50%) rotate(45deg);
}

.my-life-profile-section__heading::before {
  left: -0.35rem;
}

.my-life-profile-section__heading::after {
  right: -0.35rem;
}

.my-life-profile-section__heading .eyebrow {
  margin: 0 0 0.35rem;
  color: #f8d77b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
}

.my-life-profile-section__heading h2 {
  color: #fff3cf;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4.8vw, 2.8rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-shadow: 0 2px 0 #3b261f, 0 0 1rem rgba(255, 208, 93, 0.2);
}

.my-life-profile-section__subtitle {
  margin: 0.5rem 0 0;
  color: #f5dca0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.life-profile-card {
  box-sizing: border-box;
  padding: clamp(1.05rem, 2.6vw, 1.65rem);
  background: #f5e5bd;
  border: 2px solid #d19a3e;
  border-radius: 0.55rem;
  box-shadow: 0 0 0 5px rgba(237, 202, 123, 0.28), 0 1.2rem 2rem rgba(10, 16, 24, 0.3), inset 0 0 0 1px rgba(255, 249, 218, 0.86);
}

.life-profile-card::before {
  top: 0.42rem;
  right: 1.2rem;
  width: 2.25rem;
  height: 0.55rem;
  background: #d59d3e;
  border: 1px solid #f4d481;
  border-radius: 999px;
  box-shadow: 0 1px 0 #8d5b2e;
  transform: rotate(3deg);
}

.life-profile-card::after {
  position: absolute;
  inset: 0.55rem;
  z-index: 0;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(166, 111, 42, 0.38);
  border-radius: 0.25rem;
}

.life-profile-card > * {
  position: relative;
  z-index: 1;
}

.life-profile-card__topline {
  padding-bottom: 0.85rem;
  color: #67492f;
  border-bottom-color: rgba(166, 111, 42, 0.42);
}

.life-profile-card__local-chip {
  padding: 0.25rem 0.55rem;
  color: #70411f;
  background: rgba(255, 246, 214, 0.72);
  border: 1px solid rgba(174, 122, 43, 0.45);
  border-radius: 0.3rem;
}

.life-profile-card__identity {
  padding: 1.25rem 0 1.05rem;
}

.life-profile-card__avatar {
  color: #ffeaa3;
  background: #af2c28;
  border-color: #dca542;
  border-radius: 42% 42% 48% 48% / 35% 35% 62% 62%;
  box-shadow: 0 3px 0 #743027, 0 0 0 2px rgba(255, 237, 165, 0.72);
}

.life-profile-card__identity-copy > span,
.life-stat-label {
  color: #74452d;
}

.life-profile-card__identity-copy h2,
.life-profile-card__exp-row strong,
.life-visit-stat strong {
  color: #182838;
}

.life-level-orb {
  color: #fff3d0;
  background: #b52d29;
  border-color: #e5b345;
  box-shadow: 0 0 0 4px #f3dfaa, 0 0 0 6px rgba(169, 111, 37, 0.46), 0 4px 0 #762d27;
  transform: none;
}

.life-profile-card__exp-row {
  border-top-color: rgba(166, 111, 42, 0.42);
}

.life-profile-card__next strong {
  color: #a52225;
}

.life-exp-bar {
  height: 0.78rem;
  background: #272a2f;
  border: 2px solid #c58c36;
  border-radius: 999px;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.34), 0 1px 0 rgba(255, 242, 190, 0.72);
}

.life-exp-bar span {
  background: var(--yellow);
}

.life-profile-card__exp-note,
.life-profile-card__local-note,
.life-nickname-form__hint {
  color: #765a43;
}

.life-visit-stat {
  padding: 0.85rem;
  background: rgba(255, 248, 222, 0.72);
  border: 2px solid #d2a257;
  border-radius: 0.55rem;
  box-shadow: inset 0 0 0 1px rgba(255, 253, 235, 0.74), 0 2px 0 rgba(131, 84, 30, 0.18);
}

.life-visit-stat small {
  color: #765a43;
}

.life-nickname-form {
  border-top-color: rgba(166, 111, 42, 0.52);
}

.life-nickname-form label {
  color: #67492f;
}

.life-nickname-form input {
  background: #fff9e8;
  border-color: #d2a257;
}

.life-nickname-form__row .button {
  color: #fff3d0;
  background: #a92727;
  border-color: #d5a13e;
  box-shadow: 0 2px 0 #702825;
}

@media (max-width: 699px) {
  .my-life-profile-section__layout {
    padding: 0.9rem;
    border-radius: 1rem;
  }

  .my-life-profile-section__heading {
    margin-bottom: 1.1rem;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .my-life-profile-section__heading h2 {
    font-size: clamp(1.65rem, 9vw, 2.2rem);
  }

  .my-life-profile-section__subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.05em;
  }
}


/* 既存のレスポンシブ定義より後に、冒険の紋章の表示を確定させます。 */
.my-fire-life-page .badge-card {
  position: relative;
  overflow: hidden;
  padding: 0.9rem;
  background: linear-gradient(160deg, #fffdf8 0%, #f7eee0 100%);
  border-color: rgba(106, 77, 53, 0.26);
  border-top-width: 1px;
  box-shadow: 0 0.8rem 1.5rem rgba(43, 32, 38, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.my-fire-life-page .badge-card::after {
  content: none;
}

.my-fire-life-page .badge-card__visual {
  position: relative;
  min-height: 9.25rem;
  padding: 0.6rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, color-mix(in srgb, var(--badge-accent, #e8b72d) 34%, transparent), transparent 40%),
    linear-gradient(145deg, #151826 0%, #2b2339 56%, #11151f 100%);
  border: 1px solid rgba(255, 226, 154, 0.36);
  border-radius: 0.8rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 -1.2rem 2rem rgba(0, 0, 0, 0.16);
}

.my-fire-life-page .badge-card__seal,
.my-fire-life-page .next-badge__seal {
  display: block;
  min-width: 0;
  min-height: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  clip-path: none !important;
}

.my-fire-life-page .badge-card__seal {
  width: 7.35rem;
  height: 7.35rem;
  margin: 0 auto;
}

.my-fire-life-page .badge-card__category {
  color: var(--badge-accent-deep, var(--red-dark));
}

.my-fire-life-page .next-badge {
  border-color: color-mix(in srgb, var(--badge-accent, #8b838b) 36%, #b9afb0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52), 0 0.45rem 1rem rgba(43, 32, 38, 0.06);
}

.my-fire-life-page .next-badge__seal {
  width: 3.55rem;
  height: 3.55rem;
}

.my-fire-life-page .next-badge--locked .next-badge__seal {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.my-fire-life-page .next-badge__category,
.my-fire-life-page .next-badge__distance {
  color: var(--badge-accent-deep, var(--red-dark));
}

.my-fire-life-page .badge-detail-dialog__badge {
  display: grid;
  place-items: center;
  width: 8rem;
  height: 8rem;
  margin-bottom: 0.25rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
}

.my-fire-life-page .badge-detail-dialog__badge > .badge-emblem {
  width: 100%;
  height: 100%;
}

/* すべてのバッジ画像をLEVEL画像と同じ大きさで主役にする。 */
.my-fire-life-page .badge-card__visual {
  min-height: 0;
  aspect-ratio: 1 / 1.14;
  padding: 0.2rem;
}

.my-fire-life-page .badge-card__seal {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin: 0;
}

.my-fire-life-page .badge-card__seal .badge-emblem--image,
.my-fire-life-page .badge-card__seal .badge-emblem__image {
  width: 100%;
  height: 100%;
}

@media (max-width: 699px) {
  .my-fire-life-page .badge-card__visual {
    min-height: 6.9rem;
    aspect-ratio: 1 / 1.1;
  }

  .my-fire-life-page .badge-card__seal {
    width: 100%;
    height: auto;
  }

  .my-fire-life-page .next-badge__seal {
    width: 3.15rem;
    height: 3.15rem;
  }

  .my-fire-life-page .badge-detail-dialog__badge {
    width: 7rem;
    height: 7rem;
  }
}

.my-fire-life-page .life-footprint__marker--badge {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.my-fire-life-page .life-footprint__marker--badge .badge-emblem {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0.16rem 0.16rem rgba(6, 8, 13, 0.24));
}

/* 獲得バッジはカテゴリーごとに章立てし、LEVELを最初の章に固定します。 */
.my-fire-life-page .earned-badges {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.4rem, 5vw, 4rem);
  margin-top: 2rem;
}

.my-fire-life-page .earned-badges__group {
  display: grid;
  gap: 1.1rem;
  min-width: 0;
}

.my-fire-life-page .earned-badges__group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.my-fire-life-page .earned-badges__group-eyebrow {
  margin: 0 0 0.35rem;
  color: var(--red-dark);
  font-family: Arial, sans-serif;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.my-fire-life-page .earned-badges__group h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
  letter-spacing: -0.04em;
}

.my-fire-life-page .earned-badges__group-note {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.my-fire-life-page .earned-badges__group-count {
  flex: 0 0 auto;
  color: var(--red-dark);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.my-fire-life-page .earned-badges__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 700px) and (max-width: 1090px) {
  .my-fire-life-page .earned-badges__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 699px) {
  .my-fire-life-page .earned-badges {
    gap: 2.6rem;
  }

  .my-fire-life-page .earned-badges__group-heading {
    align-items: start;
  }

  .my-fire-life-page .earned-badges__group-note {
    max-width: 20rem;
    font-size: 0.7rem;
  }

  .my-fire-life-page .earned-badges__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }
}

.my-fire-life-page .life-footprints__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  margin-top: 1.1rem;
  padding: 0.7rem 1.1rem;
  color: var(--red-dark);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--paper);
  border: 1px solid rgba(234, 62, 49, 0.34);
  border-radius: 999px;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.my-fire-life-page .life-footprints__toggle[hidden] {
  display: none;
}

.my-fire-life-page .life-footprints__toggle:hover,
.my-fire-life-page .life-footprints__toggle:focus-visible {
  color: var(--paper);
  background: var(--red);
  transform: translateY(-2px);
}

.my-fire-life-page .life-footprints__toggle:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

@media (max-width: 699px) {
  .my-fire-life-page .life-footprints__toggle {
    width: 100%;
    margin-top: 0.9rem;
  }
}

/* バッジ獲得演出は、開発用設定から何度でも状態を変えずに確認できます。 */
.my-fire-life-page .life-dev-tools__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.my-fire-life-page .life-dev-tools__preview {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.7rem;
  width: 100%;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
}

.my-fire-life-page .life-dev-tools__preview-copy {
  display: grid;
  gap: 0.18rem;
}

.my-fire-life-page .life-dev-tools__preview-copy strong {
  color: var(--red-dark);
  font-size: 0.72rem;
}

.my-fire-life-page .life-dev-tools__preview-copy span {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.my-fire-life-page .life-dev-tools__preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.my-fire-life-page .life-dev-tools__preview-actions button {
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  cursor: pointer;
  background: var(--paper);
  border: 1px solid rgba(234, 62, 49, 0.28);
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.my-fire-life-page .life-dev-tools__preview-actions button:hover,
.my-fire-life-page .life-dev-tools__preview-actions button:focus-visible {
  color: var(--paper);
  background: var(--red);
  transform: translateY(-1px);
}

.my-fire-life-page .life-dev-tools__preview-actions button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

@media (max-width: 699px) {
  .my-fire-life-page .life-dev-tools__body {
    grid-template-columns: 1fr;
  }

  .my-fire-life-page .life-dev-tools__preview {
    grid-column: auto;
  }

  .my-fire-life-page .life-dev-tools__preview-actions button {
    flex: 1 1 calc(50% - 0.35rem);
  }
}

/* LEVELは「次に出会う一枚」を見せ、未取得の紋章だけを？で封印します。 */
.my-fire-life-page .earned-badges__grid .badge-card--locked {
  background: linear-gradient(160deg, #fffdf8 0%, #f3ece2 100%);
  border-color: rgba(106, 77, 53, 0.2);
}

.my-fire-life-page .earned-badges__grid .badge-card--locked .badge-card__visual {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 214, 104, 0.14), transparent 42%),
    linear-gradient(145deg, #101b2d 0%, #1e3048 55%, #0d1727 100%);
  border-style: dashed;
  border-color: rgba(255, 220, 132, 0.34);
}

.my-fire-life-page .earned-badges__grid .badge-card--locked .badge-emblem--locked {
  opacity: 1;
  filter: drop-shadow(0 0.45rem 0.42rem rgba(6, 8, 13, 0.28));
}

.my-fire-life-page .earned-badges__grid .badge-card--locked .badge-emblem--locked .badge-emblem__rim {
  fill: #171d2b;
  stroke: #c9a45d;
}

.my-fire-life-page .earned-badges__grid .badge-card--locked .badge-emblem--locked .badge-emblem__face {
  fill: #263b54;
  stroke: #8aa0b1;
}

.my-fire-life-page .earned-badges__grid .badge-card--locked .badge-emblem--locked .badge-emblem__question {
  fill: #ffe6a0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.7rem;
  font-style: italic;
  filter: drop-shadow(0 0.08rem 0.08rem rgba(0, 0, 0, 0.42));
}

.my-fire-life-page .badge-card__state {
  padding-top: 0.45rem;
  color: var(--red-dark);
  border-top: 1px dashed var(--line);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.45;
}

.my-fire-life-page .badge-card--locked .badge-card__state {
  color: #806d57;
}

.my-fire-life-page .earned-badges__toggle {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  margin-top: 0.1rem;
  padding: 0.7rem 1.15rem;
  color: var(--red-dark);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--paper);
  border: 1px solid rgba(234, 62, 49, 0.32);
  border-radius: 999px;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.my-fire-life-page .earned-badges__toggle:hover,
.my-fire-life-page .earned-badges__toggle:focus-visible {
  color: var(--paper);
  background: var(--red);
  transform: translateY(-2px);
}

.my-fire-life-page .earned-badges__toggle:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

@media (max-width: 699px) {
  .my-fire-life-page .earned-badges__toggle {
    width: 100%;
    margin-top: 0.05rem;
  }
}


.my-fire-life-page .fire-auth-panel {
  margin-top: 1.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(31, 42, 56, 0.14);
}

.my-fire-life-page .fire-auth-panel__heading h3 {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
}

.my-fire-life-page .fire-auth-panel__description {
  margin: 0.7rem 0 0;
  color: var(--ink-soft, #59606a);
  font-size: 0.82rem;
  line-height: 1.7;
}

.my-fire-life-page .fire-auth-panel__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.my-fire-life-page .fire-auth-panel__buttons .button {
  min-height: 2.55rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.76rem;
}

.my-fire-life-page .fire-auth-magic-form {
  margin-top: 0.85rem;
}

.my-fire-life-page .fire-auth-magic-form label {
  display: block;
  color: var(--ink-soft, #59606a);
  font-size: 0.74rem;
  font-weight: 700;
}

.my-fire-life-page .fire-auth-magic-form__row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.my-fire-life-page .fire-auth-magic-form__row input {
  min-width: 0;
  min-height: 2.55rem;
  margin: 0;
  padding: 0.6rem 0.7rem;
  font-size: 0.78rem;
}

.my-fire-life-page .fire-auth-magic-form__row .button {
  flex: 0 0 auto;
  min-height: 2.55rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.72rem;
  white-space: nowrap;
}

.my-fire-life-page .fire-auth-panel__feedback {
  min-height: 1.3rem;
  margin: 0.7rem 0 0;
  color: var(--ink-soft, #59606a);
  font-size: 0.75rem;
  line-height: 1.55;
}

.my-fire-life-page .fire-auth-panel__feedback[data-kind="success"] {
  color: #26714e;
}

.my-fire-life-page .fire-auth-panel__feedback[data-kind="warning"] {
  color: #99651e;
}

.my-fire-life-page .fire-auth-panel__feedback[data-kind="error"] {
  color: #b12820;
}

.my-fire-life-page .fire-tool-results-placeholder {
  padding-top: 0;
}

.my-fire-life-page .fire-tool-results-placeholder__panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px dashed rgba(82, 69, 112, 0.35);
  border-radius: 1.1rem;
  background: rgba(246, 243, 255, 0.58);
}

.my-fire-life-page .fire-tool-results-placeholder__panel h2 {
  margin: 0.15rem 0 0.35rem;
}

.my-fire-life-page .fire-tool-results-placeholder__panel p:not(.eyebrow) {
  margin: 0;
  color: var(--ink-soft, #59606a);
  font-size: 0.84rem;
  line-height: 1.7;
}

.my-fire-life-page .fire-tool-results-placeholder__status {
  flex: 0 0 auto;
  padding: 0.45rem 0.7rem;
  color: #5d4b86;
  background: #fff;
  border: 1px solid rgba(93, 75, 134, 0.24);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.my-fire-life-page .fire-migration-dialog {
  width: min(34rem, calc(100% - 2rem));
  padding: 0;
  color: var(--ink, #1f2a38);
  background: #fffdf8;
  border: 0;
  border-radius: 1.25rem;
  box-shadow: 0 1.5rem 4rem rgba(21, 27, 38, 0.28);
}

.my-fire-life-page .fire-migration-dialog::backdrop {
  background: rgba(16, 24, 40, 0.56);
}

.my-fire-life-page .fire-migration-dialog__inner {
  padding: clamp(1.35rem, 4vw, 2rem);
}

.my-fire-life-page .fire-migration-dialog h2 {
  margin: 0.2rem 0 0.8rem;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  line-height: 1.45;
}

.my-fire-life-page .fire-migration-dialog p:not(.eyebrow) {
  color: var(--ink-soft, #59606a);
  font-size: 0.88rem;
  line-height: 1.8;
}

.my-fire-life-page .fire-migration-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.my-fire-life-page .fire-migration-dialog__actions .button {
  flex: 1 1 9rem;
}

.my-fire-life-page .fire-migration-dialog__status {
  min-height: 1.3rem;
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
}

@media (max-width: 560px) {
  .my-fire-life-page .fire-auth-magic-form__row,
  .my-fire-life-page .fire-tool-results-placeholder__panel {
    align-items: stretch;
    flex-direction: column;
  }

  .my-fire-life-page .fire-auth-magic-form__row .button,
  .my-fire-life-page .fire-tool-results-placeholder__status {
    width: 100%;
  }
}


