.info-page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.info-page__backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: 300% 100%;
  animation: info-page-bg-forward 14s linear infinite;
}

/* Origin: red → magenta → purple (left to right) */
.info-page--origin .info-page__backdrop {
  background-image: linear-gradient(
    90deg,
    #870000 0%,
    #ff0000 16.66%,
    #b40048 33.33%,
    #800066 50%,
    #870000 66.66%,
    #ff0000 83.33%,
    #b40048 100%
  );
}

/* Guidance: magenta → purple → red (left to right) */
.info-page--guidance .info-page__backdrop {
  background-image: linear-gradient(
    90deg,
    #7e0032 0%,
    #b40048 16.66%,
    #800066 33.33%,
    #ff0000 50%,
    #7e0032 66.66%,
    #b40048 83.33%,
    #800066 100%
  );
}

/* Profile: crimson → rose → magenta (left to right) */
.info-page--profile .info-page__backdrop {
  background-image: url("media/stimuly-stars-background-soft.png");
  background-position: center top;
  background-repeat: repeat;
  background-size: auto 100vh;
  animation: none;
  opacity: 0.48;
}

/* Games: rose-violet → magenta → violet (left to right) */
.info-page--games .info-page__backdrop {
  background-image: linear-gradient(
    90deg,
    #760047 0%,
    #a80065 16.66%,
    #ff0099 33.33%,
    #800066 50%,
    #760047 66.66%,
    #a80065 83.33%,
    #ff0099 100%
  );
}

/* Connect: purple → magenta → red (left to right) */
.info-page--connect .info-page__backdrop {
  background-image: linear-gradient(
    90deg,
    #75105e 0%,
    #800066 16.66%,
    #b40048 33.33%,
    #ff0000 50%,
    #75105e 66.66%,
    #800066 83.33%,
    #b40048 100%
  );
}

/* Beta: deep crimson → magenta → violet (left to right) */
.info-page--beta .info-page__backdrop {
  background-image: linear-gradient(
    90deg,
    #71152f 0%,
    #b52659 16.66%,
    #df5a91 33.33%,
    #964087 50%,
    #71152f 66.66%,
    #b52659 83.33%,
    #df5a91 100%
  );
}

/* Shared colorful cloud backdrop for the main information pages. */
.info-page--cloud-background .info-page__backdrop {
  background-image: linear-gradient(
    90deg,
    #870000 0%,
    #ff0000 16.66%,
    #b40048 33.33%,
    #800066 50%,
    #870000 66.66%,
    #ff0000 83.33%,
    #b40048 100%
  );
}

/* Dedicated Beta Information page: Haven Red shades only. */
.beta-information-page .info-page__backdrop {
  background-image: linear-gradient(
    90deg,
    #370000 0%,
    #700000 16.66%,
    #ad0000 33.33%,
    #ff0000 50%,
    #370000 66.66%,
    #700000 83.33%,
    #ad0000 100%
  );
}

@keyframes info-page-bg-forward {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes profile-surface-bg-reverse {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.info-page__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2.5rem;
}

.info-page__back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.info-page__back:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
}

.info-page__title {
  font-family: "Cinzel", "Marcellus", serif;
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.info-page__title.warning-spectrum-text {
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: info-page-title-reverse 14s linear infinite;
}

/* Origin title: purple → magenta → red (opposite) */
.info-page--origin .info-page__title.warning-spectrum-text {
  background-image: linear-gradient(
    90deg,
    #800066 0%,
    #b40048 16.66%,
    #ff0000 33.33%,
    #870000 50%,
    #800066 66.66%,
    #b40048 83.33%,
    #ff0000 100%
  );
}

/* Guidance title: red → purple → magenta (opposite) */
.info-page--guidance .info-page__title.warning-spectrum-text {
  background-image: linear-gradient(
    90deg,
    #ff0000 0%,
    #800066 16.66%,
    #b40048 33.33%,
    #7e0032 50%,
    #ff0000 66.66%,
    #800066 83.33%,
    #b40048 100%
  );
}

/* Connect title: red → magenta → purple (opposite) */
.info-page--connect .info-page__title.warning-spectrum-text {
  background-image: linear-gradient(
    90deg,
    #ff0000 0%,
    #b40048 16.66%,
    #800066 33.33%,
    #75105e 50%,
    #ff0000 66.66%,
    #b40048 83.33%,
    #800066 100%
  );
}

.info-page--beta .info-page__title.warning-spectrum-text {
  background-image: linear-gradient(
    90deg,
    #ffbecf 0%,
    #ff5c99 20%,
    #f7a8f3 40%,
    #b88cff 60%,
    #ffbecf 80%,
    #ff5c99 100%
  );
}

.beta-information-page .info-page__title.warning-spectrum-text {
  background-image: linear-gradient(
    90deg,
    #ff0000 0%,
    #f00000 20%,
    #dd0000 40%,
    #c00000 60%,
    #ff0000 80%,
    #f00000 100%
  );
}

@keyframes info-page-title-reverse {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.info-page__card {
  background: rgba(12, 12, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.info-page__card p,
.info-page__card li {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.info-page__card p + p,
.info-page__card li + li {
  margin-top: 0.85rem;
}

.info-page__card h2 {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  margin: 1rem 0 0.45rem;
}

.info-page__card h2:first-child {
  margin-top: 0;
}

.info-page--beta.info-page--cloud-background .info-page__card h2,
.info-page--beta.info-page--cloud-background .info-page__card p,
.info-page--beta.info-page--cloud-background .info-page__card li,
.info-page--beta.info-page--cloud-background .info-page__card a,
.info-page--guidance .info-page__card h2,
.info-page--guidance .info-page__card p,
.info-page--guidance .info-page__card li,
.info-page--guidance .info-page__card a {
  color: #f55a96;
}

.info-page--guidance .info-page__card a {
  font-weight: 700;
  text-underline-offset: 0.18em;
}

.info-page--beta .info-page__card a {
  color: #f55a96;
  font-weight: 700;
  text-underline-offset: 0.18em;
}

.guidance-page--troubleshooting .info-page__card + .info-page__card {
  margin-top: 0.35rem;
}

.info-page__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.info-page__list li {
  position: relative;
  padding-left: 1.2rem;
}

.info-page__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #cc0044;
  font-weight: 700;
}

.info-page__contact-link {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-page--connect .info-page__content {
  max-width: 760px;
}

.connect-card {
  padding: 1.35rem;
}

.connect-card__intro h2 {
  margin: 0 0 0.35rem;
  font-size: 1.18rem;
}

.connect-card__intro p {
  max-width: 620px;
}

.connect-policy {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  margin: 1.2rem 0 1.35rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 95, 125, 0.38);
  border-radius: 14px;
  background: rgba(88, 0, 30, 0.38);
}

.connect-policy__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 128, 153, 0.48);
  border-radius: 50%;
  background: rgba(255, 0, 68, 0.16);
  color: #ff9bb2;
  font-size: 1.05rem;
  font-weight: 800;
}

.connect-policy strong {
  display: block;
  margin-bottom: 0.15rem;
  color: #fff;
  font-size: 0.9rem;
}

.connect-policy p {
  color: #e2b8c5;
  font-size: 0.8rem;
}

.connect-form {
  display: grid;
  gap: 1rem;
}

.connect-identity {
  min-width: 0;
  border: 0;
}

.connect-identity legend,
.connect-form__field > label,
.connect-form__label-row label {
  margin-bottom: 0.5rem;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
}

.connect-identity__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.connect-identity__option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  min-height: 78px;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(10, 7, 13, 0.58);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.connect-identity__option:has(input:checked) {
  border-color: rgba(255, 65, 132, 0.72);
  background: rgba(104, 0, 66, 0.42);
  box-shadow: 0 0 0 2px rgba(255, 0, 102, 0.1);
}

.connect-identity__option input {
  width: 17px;
  height: 17px;
  margin-top: 0.15rem;
  accent-color: #ff276f;
}

.connect-identity__option strong,
.connect-identity__option small {
  display: block;
}

.connect-identity__option strong {
  color: #fff;
  font-size: 0.85rem;
}

.connect-identity__option small {
  margin-top: 0.22rem;
  color: #bdaeb9;
  font-size: 0.74rem;
  line-height: 1.4;
}

.connect-identity__privacy {
  margin-top: 0.55rem;
  color: #ac9aa8;
  font-size: 0.72rem;
  line-height: 1.45;
}

.connect-form__field {
  display: grid;
}

.connect-form__optional {
  color: #b9a7b4;
  font-weight: 500;
}

.connect-form__field input,
.connect-form__field select,
.connect-form__field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  outline: 0;
  background: rgba(9, 7, 12, 0.72);
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.connect-form__field input,
.connect-form__field select {
  min-height: 46px;
  padding: 0.7rem 0.8rem;
}

.connect-form__field textarea {
  min-height: 178px;
  padding: 0.8rem;
  line-height: 1.55;
  resize: vertical;
}

.connect-form__field input::placeholder,
.connect-form__field textarea::placeholder {
  color: #7f727c;
}

.connect-form__field input:focus-visible,
.connect-form__field select:focus-visible,
.connect-form__field textarea:focus-visible {
  border-color: #ff3e82;
  background: rgba(18, 8, 17, 0.9);
  box-shadow: 0 0 0 3px rgba(255, 0, 102, 0.14);
}

.connect-form__label-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.connect-form__label-row span {
  color: #9f8f9a;
  font-size: 0.7rem;
}

.connect-report-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(10, 7, 13, 0.5);
  cursor: pointer;
}

.connect-report-option:has(input:checked) {
  border-color: rgba(255, 65, 132, 0.58);
  background: rgba(104, 0, 66, 0.3);
}

.connect-report-option input {
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  accent-color: #ff276f;
}

.connect-report-option strong,
.connect-report-option small {
  display: block;
}

.connect-report-option strong {
  color: #fff;
  font-size: 0.84rem;
}

.connect-report-option small {
  margin-top: 0.25rem;
  color: #bdaeb9;
  font-size: 0.74rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.connect-form__actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.15rem;
}

.connect-form__status {
  min-height: 1.35rem;
  color: #e4c4d3;
  font-size: 0.78rem;
}

.connect-form__status[data-state="success"] {
  color: #a7f3c6;
}

.connect-form__status[data-state="error"] {
  color: #ff9fb4;
}

.connect-form__submit {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  border: 1px solid rgba(255, 143, 177, 0.52);
  border-radius: 999px;
  background: linear-gradient(135deg, #cb004d, #7b0065);
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(95, 0, 63, 0.32);
  transition: filter 0.2s ease, transform 0.15s ease,
    box-shadow 0.2s ease;
}

.connect-form__submit:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(95, 0, 63, 0.42);
}

.connect-form__submit:active {
  transform: translateY(0);
}

.connect-form__submit:focus-visible,
.connect-identity__option:has(input:focus-visible) {
  outline: 3px solid rgba(255, 153, 191, 0.76);
  outline-offset: 3px;
}

.connect-form__submit:disabled {
  cursor: wait;
  filter: grayscale(0.35);
  opacity: 0.68;
  transform: none;
}

@media (max-width: 600px) {
  .info-page--connect .info-page__content {
    padding-inline: 0.75rem;
  }

  .connect-card {
    padding: 1rem;
  }

  .connect-identity__options {
    grid-template-columns: 1fr;
  }

  .connect-identity__option {
    min-height: 70px;
  }

  .connect-form__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .connect-form__submit {
    width: 100%;
  }
}

.beta-page {
  max-width: 940px;
}

.beta-page__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.beta-page__heading .info-page__title {
  margin-bottom: 0;
}

.beta-page__eyebrow {
  margin: 0 0 0.25rem;
  color: #ffc4dc;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.beta-page__build {
  flex: 0 0 auto;
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(255, 190, 218, 0.32);
  border-radius: 999px;
  background: rgba(49, 6, 34, 0.55);
  color: #ffd7e8;
  font-size: 0.75rem;
  font-weight: 700;
}

.beta-page__intro {
  margin-bottom: 1rem;
}

.beta-page__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.beta-page__grid .info-page__card {
  min-height: 100%;
}

.beta-page__report {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.beta-page__report h2,
.beta-page__report p {
  margin: 0;
}

.beta-page__report p {
  margin-top: 0.3rem;
}

.beta-page__report a {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(255, 190, 218, 0.48);
  border-radius: 999px;
  background: linear-gradient(135deg, #b81767, #74206f);
  color: #ff0000;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 680px) {
  .beta-page__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .beta-page__grid {
    grid-template-columns: 1fr;
  }

  .beta-page__report {
    align-items: stretch;
    flex-direction: column;
  }

  .beta-page__report a {
    display: grid;
    place-items: center;
    width: 100%;
  }
}

.custom-tone-page .info-page__content {
  max-width: 980px;
}

.custom-tone-page .info-page__card {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.custom-tone-page .custom-tone {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.custom-tone-page .custom-tone__title {
  color: var(--custom-tone-color);
  font-size: clamp(1.45rem, 3.8vw, 2rem);
}

@media (max-width: 520px) {
  .custom-tone-page .info-page__content {
    padding-inline: 0.75rem;
  }

  .custom-tone-page .info-page__card {
    padding: 0.85rem;
  }
}

.info-page__content.profile-page {
  max-width: 920px;
  padding: 1.5rem 1.25rem 3rem;
}

.profile-page .info-page__back {
  margin-bottom: 1.25rem;
}

.profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin: 0;
  padding: 1.5rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.profile-hero__avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: linear-gradient(135deg, #ff2f6d, #9b1bb1);
  box-shadow: 0 8px 24px rgba(218, 0, 109, 0.25);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
}

.profile-hero__identity {
  min-width: 0;
}

.profile-hero__eyebrow {
  margin: 0 0 0.18rem;
  color: #e7b6d6;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-hero .info-page__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
}

.profile-hero__details {
  display: flex;
  gap: 0.45rem 0.7rem;
  align-items: baseline;
  flex-wrap: wrap;
  min-width: 0;
  font-family: "Inter", sans-serif;
}

.profile-hero__details strong {
  color: #fff;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.profile-hero__details span {
  color: #c7b5c4;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.profile-hero__badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.38rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #e7dbe4;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.profile-hero__badge[data-public="true"] {
  border-color: rgba(247, 168, 243, 0.35);
  background: rgba(218, 0, 109, 0.16);
  color: #ffd3f5;
}

.profile-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 0;
  align-items: stretch;
}

.profile-account,
.profile-sidebar {
  display: grid;
  gap: 0;
  align-content: start;
}

.profile-page .info-page__card {
  padding: 1.5rem;
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(15, 12, 20, 0.88);
  box-shadow: 0 16px 38px rgba(9, 0, 10, 0.22);
}

.profile-page .profile-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
}

.profile-page .profile-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(
    90deg,
    #260008 0%,
    #500010 16.66%,
    #700016 33.33%,
    #8a001c 50%,
    #260008 66.66%,
    #500010 83.33%,
    #700016 100%
  );
  background-position: 0% 50%;
  background-repeat: no-repeat;
  background-size: 300% 100%;
  animation: profile-surface-bg-reverse 14s linear infinite;
  opacity: 0.65;
}

.profile-page .profile-surface > * {
  position: relative;
  z-index: 1;
}

.profile-account {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-section {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
}

.profile-privacy,
.profile-ring-preferences {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-section__heading {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.profile-section__heading h2,
.profile-section__heading p,
.profile-account-actions h2,
.profile-account-actions p {
  margin: 0;
}

.profile-section__heading h2,
.profile-account-actions h2,
.profile-history__heading h2 {
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.profile-section__heading p,
.profile-account-actions p,
.profile-history__heading p {
  margin-top: 0.28rem;
  color: #c7b5c4;
  font-size: 0.82rem;
  line-height: 1.45;
}

.profile-section__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(247, 168, 243, 0.24);
  border-radius: 9px;
  background: rgba(218, 0, 109, 0.12);
  color: #f7a8f3;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.profile-field {
  display: grid;
  gap: 0.48rem;
}

.profile-field label {
  color: #f8eef5;
  font-size: 1rem;
  font-weight: 700;
}

.profile-field label span {
  color: #bcaab8;
  font-size: 0.8rem;
  font-weight: 600;
}

.profile-field input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  outline: none;
  background: rgba(4, 3, 7, 0.72);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.profile-field input[type="text"]:focus {
  border-color: #e92c86;
  box-shadow: 0 0 0 3px rgba(218, 0, 109, 0.18);
  background: rgba(4, 3, 7, 0.92);
}

.profile-field small,
.profile-setting-row__copy small {
  color: #bcaab8;
  font-size: 0.875rem;
  line-height: 1.45;
}

.profile-tone-field {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
}

.profile-tone-field__swatch {
  position: absolute;
  left: 0.72rem;
  z-index: 1;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: var(--profile-tone-color, linear-gradient(135deg, #ff2f6d, #9b1bb1));
  box-shadow: 0 0 12px rgba(218, 0, 109, 0.18);
}

.profile-tone-field input[type="text"] {
  grid-column: 1 / -1;
  padding-left: 3.25rem;
}

.profile-privacy,
.profile-ring-preferences {
  gap: 0;
}

.profile-privacy .profile-section__heading,
.profile-ring-preferences .profile-section__heading {
  margin-bottom: 0.4rem;
}

.profile-setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  cursor: pointer;
}

.profile-setting-row__copy {
  display: grid;
  gap: 0.28rem;
}

.profile-setting-row__copy strong {
  color: #f8eef5;
  font-size: 0.92rem;
}

.profile-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.profile-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.profile-switch__track {
  position: relative;
  display: block;
  width: 44px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.profile-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #d9cfd6;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.profile-switch input:checked + .profile-switch__track {
  border-color: #e92c86;
  background: #c81768;
}

.profile-switch input:checked + .profile-switch__track::after {
  transform: translateX(20px);
  background: #fff;
}

.profile-switch input:focus-visible + .profile-switch__track {
  outline: 3px solid rgba(247, 168, 243, 0.58);
  outline-offset: 3px;
}

.profile-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-account__status {
  min-height: 1.4rem;
  margin: 0 !important;
  color: #f6c5e8 !important;
  font-size: 0.875rem !important;
}

.profile-account__save {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0.72rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: linear-gradient(135deg, #e3267f, #bd145f);
  box-shadow: 0 8px 22px rgba(218, 0, 109, 0.24);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.profile-account__save:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(218, 0, 109, 0.32);
}

.profile-account__save:disabled {
  cursor: wait;
  opacity: 0.6;
}

.profile-account__agreement {
  display: grid;
  gap: 0.2rem;
  margin-top: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(247, 168, 243, 0.28);
  border-radius: 12px;
  background: rgba(218, 0, 109, 0.08);
  color: #f8eef5;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.profile-account__agreement strong {
  color: #f7a8f3;
  font-size: 0.72rem;
}

.profile-account__agreement:hover {
  border-color: rgba(247, 168, 243, 0.52);
  background: rgba(218, 0, 109, 0.14);
}

.profile-account__sign-out {
  width: 100%;
  min-height: 44px;
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 92, 118, 0.45);
  border-radius: 12px;
  background: transparent;
  color: #ff9aaa;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.profile-account__sign-out:hover {
  border-color: rgba(255, 92, 118, 0.7);
  background: rgba(255, 50, 83, 0.09);
}

.profile-account__sign-out:disabled {
  cursor: wait;
  opacity: 0.6;
}

.profile-account-actions__danger {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-account-actions__danger strong {
  color: #ffbec8;
  font-size: 0.9rem;
}

.profile-account-actions__danger p {
  margin: 0;
}

.profile-account__delete {
  width: 100%;
  min-height: 44px;
  margin-top: 0.55rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 92, 118, 0.45);
  border-radius: 12px;
  background: rgba(255, 50, 83, 0.09);
  color: #ff9aaa;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.profile-account__delete:hover {
  border-color: rgba(255, 92, 118, 0.8);
  background: rgba(255, 50, 83, 0.16);
}

.profile-delete-dialog {
  width: min(92vw, 500px);
  padding: 0;
  border: 1px solid rgba(255, 92, 118, 0.42);
  border-radius: 18px;
  background: #210d18;
  color: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62);
}

.profile-delete-dialog::backdrop {
  background: rgba(7, 2, 7, 0.78);
  backdrop-filter: blur(6px);
}

.profile-delete-dialog__panel {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.5rem;
}

.profile-delete-dialog__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 92, 118, 0.58);
  border-radius: 50%;
  background: rgba(255, 50, 83, 0.14);
  color: #ff9aaa;
  font-size: 1.15rem;
  font-weight: 900;
}

.profile-delete-dialog__eyebrow,
.profile-delete-dialog h2,
.profile-delete-dialog__warning,
.profile-delete-dialog__status {
  margin: 0;
}

.profile-delete-dialog__eyebrow {
  color: #ff9aaa;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-delete-dialog h2 {
  margin-top: 0.2rem;
  font-family: "Inter", sans-serif;
  font-size: 1.25rem;
}

.profile-delete-dialog__warning,
.profile-delete-dialog__field,
.profile-delete-dialog__status,
.profile-delete-dialog__actions {
  grid-column: 1 / -1;
}

.profile-delete-dialog__warning {
  color: #d7c4d1;
  font-size: 0.9rem;
  line-height: 1.55;
}

.profile-delete-dialog__field {
  display: grid;
  gap: 0.5rem;
  color: #f8eef5;
  font-size: 0.875rem;
  font-weight: 700;
}

.profile-delete-dialog__field input {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  outline: none;
  background: rgba(4, 3, 7, 0.76);
  color: #fff;
  font: inherit;
}

.profile-delete-dialog__field input:focus {
  border-color: #ff5c76;
  box-shadow: 0 0 0 3px rgba(255, 92, 118, 0.18);
}

.profile-delete-dialog__status {
  min-height: 1.25rem;
  color: #ffbec8;
  font-size: 0.84rem;
}

.profile-delete-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.profile-delete-dialog__cancel,
.profile-delete-dialog__confirm {
  min-height: 44px;
  padding: 0.65rem 1rem;
  border-radius: 11px;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 750;
  cursor: pointer;
}

.profile-delete-dialog__cancel {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #eee3eb;
}

.profile-delete-dialog__confirm {
  border: 1px solid #ff5c76;
  background: #d62348;
  color: #fff;
}

.profile-delete-dialog__confirm:disabled,
.profile-delete-dialog__cancel:disabled {
  cursor: wait;
  opacity: 0.5;
}

.player-profile {
  display: grid;
  gap: 0.9rem;
}

.player-profile[hidden],
.player-profile__private[hidden] {
  display: none;
}

.player-profile__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.player-profile__stat,
.player-profile__score {
  min-height: 78px;
  padding: 0.75rem;
  border: 1px solid rgba(247, 168, 243, 0.2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
}

.player-profile__stat {
  display: grid;
  align-content: center;
  gap: 0.25rem;
}

.player-profile__stat span,
.player-profile__score span {
  color: #dba0c1;
  font-size: 0.72rem;
  font-weight: 600;
}

.player-profile__stat strong {
  color: #f7a8f3;
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.player-profile__scores {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.player-profile__score {
  display: grid;
  grid-template-columns: minmax(5rem, 0.6fr) minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
}

.player-profile__score strong {
  display: block;
  color: #f7a8f3;
  font-size: 1rem;
}

.player-profile__score-details {
  color: #dba0c1;
  font-size: 0.78rem;
  text-align: right;
  overflow-wrap: anywhere;
}

.player-profile__empty,
.player-profile__private {
  margin: 0;
  color: #dba0c1;
}

@media (max-width: 560px) {
  .player-profile__summary {
    grid-template-columns: 1fr;
  }

  .player-profile__score {
    grid-template-columns: 1fr;
  }

  .player-profile__score-details {
    text-align: left;
  }
}

.profile-history {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.profile-account-actions {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-history__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.profile-history__heading h2,
.profile-history__heading p {
  margin: 0;
}

.profile-history__heading p {
  margin-top: 0.3rem;
}

.profile-history__count {
  flex: 0 0 auto;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(247, 168, 243, 0.28);
  border-radius: 999px;
  background: rgba(247, 168, 243, 0.1);
  color: #dba0c1;
  font-size: 0.72rem;
  font-weight: 800;
}

.profile-history__empty {
  display: grid;
  justify-items: center;
  gap: 0.48rem;
  padding: 1.2rem 0.75rem;
  border: 1px dashed rgba(247, 168, 243, 0.22);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
  text-align: center;
}

.profile-history__empty-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 0.15rem;
  border: 1px solid rgba(247, 168, 243, 0.25);
  border-radius: 50%;
  background: rgba(218, 0, 109, 0.1);
  color: #f7a8f3;
  font-size: 1rem;
}

.profile-history__empty strong {
  color: #f8eef5;
  font-size: 0.9rem;
}

.profile-history__empty p {
  margin: 0;
  color: #bcaab8;
  font-size: 0.8rem;
  line-height: 1.45;
}

.profile-history__empty a {
  margin-top: 0.2rem;
  color: #ff9dd1;
  font-size: 0.82rem;
  font-weight: 700;
  text-underline-offset: 3px;
}

.profile-history__list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-history__list[hidden],
.profile-history__empty[hidden],
.profile-history__count[hidden] {
  display: none;
}

.profile-history__item {
  margin: 0 !important;
}

.profile-history__link {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  min-height: 3.6rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
  color: #dba0c1;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.profile-history__link:hover {
  border-color: rgba(247, 168, 243, 0.42);
  background: rgba(0, 0, 0, 0.34);
  transform: translateY(-1px);
}

.profile-history__link:focus-visible {
  outline: 3px solid rgba(247, 168, 243, 0.65);
  outline-offset: 3px;
}

.profile-history__swatch {
  width: 2.6rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  background: var(--history-tone-color);
  box-shadow: 0 0 12px color-mix(in srgb, var(--history-tone-color) 55%, transparent);
}

.profile-history__details {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.55rem;
  min-width: 0;
}

.profile-history__code {
  color: #f7a8f3;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
}

.profile-history__rgb,
.profile-history__date {
  color: #dba0c1;
  font-size: 0.75rem;
  font-weight: 600;
}

.profile-history__date {
  grid-column: 2;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .profile-history__link {
    grid-template-columns: 2.6rem minmax(0, 1fr);
  }

  .profile-history__date {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .info-page__content.profile-page {
    padding: 1rem 0.75rem 2rem;
  }

  .profile-hero {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    padding: 1.125rem;
    border-radius: 0;
  }

  .profile-hero__avatar {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
  }

  .profile-hero__badge {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .profile-dashboard {
    grid-template-columns: 1fr;
  }

  .profile-page .profile-surface {
    padding: 0;
  }

  .profile-account {
    border-right: 0;
  }

  .profile-sidebar {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .profile-section,
  .profile-history,
  .profile-account-actions {
    padding: 1.125rem;
  }

  .profile-form-actions {
    padding: 1rem 1.125rem 1.125rem;
  }

  .profile-setting-row {
    gap: 0.75rem;
  }

  .profile-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-account__save {
    width: 100%;
  }

  .profile-delete-dialog__panel {
    padding: 1.125rem;
  }

  .profile-delete-dialog__actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .profile-delete-dialog__cancel,
  .profile-delete-dialog__confirm {
    width: 100%;
  }
}

@media (min-height: 820px) and (min-width: 768px) {
  .info-page__content {
    max-width: 780px;
    padding: 1.5rem 1.25rem 2.75rem;
  }

  .info-page__title {
    font-size: clamp(1.85rem, 3.8vw, 2.45rem);
  }

  .info-page__card {
    padding: 1.15rem 1.25rem;
  }

  .info-page__card p,
  .info-page__card li {
    font-size: 0.92rem;
  }

  .info-page__card h2 {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .info-page__backdrop {
    animation: none;
    background-size: 100% 100%;
    background-position: 0% 50%;
  }

  .info-page--origin .info-page__backdrop {
    background-image: linear-gradient(90deg, #870000, #ff0000, #b40048, #800066);
  }

  .info-page--guidance .info-page__backdrop {
    background-image: linear-gradient(90deg, #7e0032, #b40048, #800066, #ff0000);
  }

  .info-page--connect .info-page__backdrop {
    background-image: linear-gradient(90deg, #75105e, #800066, #b40048, #ff0000);
  }

  .info-page--cloud-background .info-page__backdrop {
    background-image: linear-gradient(90deg, #870000, #ff0000, #b40048, #800066);
  }

  .info-page__title.warning-spectrum-text {
    animation: none;
    background-size: 100% 100%;
    background-position: 0% 50%;
  }

  .info-page--origin .info-page__title.warning-spectrum-text {
    background-image: linear-gradient(90deg, #800066, #b40048, #ff0000, #870000);
  }

  .info-page--guidance .info-page__title.warning-spectrum-text {
    background-image: linear-gradient(90deg, #ff0000, #800066, #b40048, #7e0032);
  }

  .info-page--connect .info-page__title.warning-spectrum-text {
    background-image: linear-gradient(90deg, #ff0000, #b40048, #800066, #75105e);
  }
}
