.pirate-supporter-account-page {
  overflow-x: hidden;
}

.pirate-supporter-account {
  --ps-gold: #dba030;
  --ps-gold-soft: rgba(219, 160, 48, 0.18);
  --ps-ink: #090b0c;
  --ps-panel: rgba(12, 15, 16, 0.94);
  --ps-line: rgba(219, 160, 48, 0.36);
  --ps-copy: #d9d5ca;
  --ps-muted: #9c9a91;
  max-width: 980px;
  margin: 0 auto;
  color: var(--ps-copy);
}

.pirate-supporter-account__intro {
  max-width: 820px;
  margin-bottom: clamp(20px, 3vw, 30px);
}

.pirate-supporter-account__eyebrow,
.pirate-supporter-account__label {
  margin: 0 0 10px;
  color: var(--ps-gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pirate-supporter-account__intro h2,
.pirate-supporter-account__card h3,
.pirate-supporter-profile__dialog h3,
.pirate-supporter-deletion h3,
.pirate-supporter-deletion-dialog h3 {
  margin: 0;
  color: #fff;
  line-height: 0.98;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.pirate-supporter-account__intro h2 {
  margin-bottom: 14px;
}

.entry-content .pirate-supporter-account__intro h2,
.entry-content .pirate-supporter-account__card h3,
.entry-content .pirate-supporter-profile__dialog h3,
.entry-content .pirate-supporter-deletion h3,
.entry-content .pirate-supporter-deletion-dialog h3 {
  margin-block: 0 12px;
}

.pirate-supporter-account__intro > p:last-child {
  margin: 0;
  line-height: 1.55;
}

.pirate-supporter-account__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.pirate-supporter-account__card,
.pirate-supporter-profile__dialog,
.pirate-supporter-account--guest {
  border: 1px solid var(--ps-line);
  background:
    linear-gradient(145deg, var(--ps-gold-soft), transparent 40%),
    var(--ps-panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.pirate-supporter-account__card {
  min-height: 0;
  padding: clamp(22px, 3vw, 30px);
}

.pirate-supporter-account__card h3 {
  max-width: none;
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.pirate-supporter-account__identity {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 38px);
  align-items: center;
}

.pirate-supporter-account__avatar {
  width: 128px;
  height: 128px;
  overflow: hidden;
  border: 1px solid var(--ps-line);
  border-radius: 50%;
  background: #181b1c;
}

.pirate-supporter-account__avatar-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pirate-supporter-account__description {
  max-width: 680px;
  margin: 0;
  line-height: 1.55;
}

.pirate-supporter-account__access {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
}

.pirate-supporter-account__access .pirate-supporter-account__actions {
  justify-content: flex-end;
}

.pirate-supporter-account__status-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.pirate-supporter-account__status-list li {
  position: relative;
  padding-left: 24px;
}

.pirate-supporter-account__status-list li::before {
  position: absolute;
  top: 0.48em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #777;
  content: "";
}

.pirate-supporter-account__status-list li.is-active::before {
  background: #62c486;
  box-shadow: 0 0 0 5px rgba(98, 196, 134, 0.12);
}

.pirate-supporter-account__status-list li.is-inactive::before {
  background: #ba6f62;
}

.pirate-supporter-account__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.pirate-supporter-account .pirate-supporter-login,
.pirate-supporter-profile__form button,
.pirate-supporter-avatar-editor button,
.pirate-supporter-avatar-editor__choose,
.pirate-supporter-deletion button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ps-gold);
  border-radius: 2px;
  background: var(--ps-gold);
  color: #171108;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.pirate-supporter-avatar-editor {
  min-width: 0;
}

.pirate-supporter-profile__section {
  margin-top: 22px;
  border-top: 1px solid rgba(219, 160, 48, 0.2);
  padding-top: 20px;
}

.pirate-supporter-profile__section h4 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.pirate-supporter-profile__section-description {
  max-width: 680px;
  margin: 0 0 14px;
  color: var(--ps-copy);
  line-height: 1.5;
}

.pirate-supporter-profile__avatar-section {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 34px);
  align-items: start;
}

.pirate-supporter-profile__avatar-preview {
  width: 112px;
  height: 112px;
  overflow: hidden;
  border: 1px solid var(--ps-line);
  border-radius: 50%;
  background: #181b1c;
}

.pirate-supporter-avatar-editor__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pirate-supporter-avatar-editor__choose,
.pirate-supporter-avatar-editor button {
  padding: 8px 14px;
}

.pirate-supporter-avatar-editor__choose {
  min-height: 42px;
  border-color: var(--ps-line);
  background: transparent;
  color: var(--ps-gold);
}

.pirate-supporter-avatar-editor__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.pirate-supporter-avatar-editor__choose:focus-within {
  outline: 2px solid var(--ps-gold);
  outline-offset: 3px;
}

.pirate-supporter-avatar-editor__filename {
  flex: 1 1 170px;
  min-width: 0;
  color: var(--ps-muted);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.pirate-supporter-avatar-editor__help,
.pirate-supporter-avatar-editor__status {
  margin: 8px 0 0;
  color: var(--ps-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.pirate-supporter-avatar-editor__status {
  min-height: 1.35em;
}

.pirate-supporter-avatar-editor__status[data-state="available"] {
  color: #78d59a;
}

.pirate-supporter-avatar-editor__status[data-state="error"] {
  color: #ef9c8d;
}

.pirate-supporter-avatar-editor__reset {
  margin-top: 8px;
}

.pirate-supporter-avatar-editor__reset button {
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--ps-muted);
  padding: 2px 0;
  text-transform: none;
  text-decoration: underline;
}

.pirate-supporter-avatar-editor__reset[hidden] {
  display: none;
}

.pirate-supporter-account .pirate-supporter-login {
  padding: 10px 18px;
}

.pirate-supporter-profile {
  margin-top: 16px;
}

.pirate-supporter-profile__dialog {
  padding: clamp(22px, 3vw, 30px);
}

.pirate-supporter-profile__dialog > p:not(.pirate-supporter-account__label) {
  max-width: 760px;
  margin: 12px 0 0;
  line-height: 1.55;
}

.pirate-supporter-profile--required {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 20px;
  overflow-y: auto;
  background: rgba(3, 5, 6, 0.86);
  backdrop-filter: blur(12px);
}

.pirate-supporter-profile--required .pirate-supporter-profile__dialog {
  width: min(100%, 660px);
}

.pirate-supporter-profile__form {
  margin-top: 0;
}

.pirate-supporter-profile__form label {
  display: block;
  margin-bottom: 9px;
  color: #fff;
  font-weight: 700;
}

.pirate-supporter-profile__form .pirate-supporter-profile__visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.pirate-supporter-profile__field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.pirate-supporter-profile__form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--ps-line);
  border-radius: 2px;
  outline: 0;
  background: #090c0d;
  color: #fff;
  font: inherit;
  padding: 10px 13px;
}

.pirate-supporter-profile__form input:focus {
  border-color: var(--ps-gold);
  box-shadow: 0 0 0 3px var(--ps-gold-soft);
}

.pirate-supporter-profile__form button {
  padding: 10px 20px;
}

.pirate-supporter-profile__form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.pirate-supporter-profile__help,
.pirate-supporter-profile__status {
  margin: 9px 0 0;
  color: var(--ps-muted);
  font-size: 0.88rem;
}

.pirate-supporter-profile__status {
  min-height: 1.4em;
}

.pirate-supporter-profile__sign-out {
  margin: 14px 0 0;
  text-align: right;
}

.pirate-supporter-profile__sign-out a {
  color: var(--ps-muted);
  font-size: 0.88rem;
}

.pirate-supporter-profile__status[data-state="available"] {
  color: #78d59a;
}

.pirate-supporter-profile__status[data-state="unavailable"],
.pirate-supporter-profile__status[data-state="error"] {
  color: #ef9c8d;
}

.pirate-supporter-account__notice {
  margin: 0 0 20px;
  border-left: 3px solid #62c486;
  background: rgba(98, 196, 134, 0.11);
  padding: 14px 18px;
}

.pirate-supporter-account__notice--error {
  border-left-color: #ba6f62;
  background: rgba(186, 111, 98, 0.11);
}

.pirate-supporter-account__footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 24px;
}

.pirate-supporter-account__footer-actions a {
  color: var(--ps-gold);
}

.pirate-supporter-account--guest {
  max-width: 760px;
  padding: clamp(28px, 5vw, 52px);
}

.pirate-supporter-deletion {
  margin-top: 16px;
  border: 1px solid rgba(186, 111, 98, 0.48);
  background:
    linear-gradient(145deg, rgba(186, 111, 98, 0.12), transparent 42%),
    var(--ps-panel);
  padding: clamp(22px, 3vw, 30px);
}

.pirate-supporter-deletion h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.pirate-supporter-deletion > p:not(.pirate-supporter-account__label) {
  max-width: 740px;
  margin: 0 0 18px;
  line-height: 1.55;
}

.pirate-supporter-deletion__request,
.pirate-supporter-deletion__cancel {
  min-height: 46px;
  border-color: #c37a6b !important;
  background: transparent !important;
  color: #f0afa3 !important;
  padding: 10px 18px;
}

.pirate-supporter-deletion__verification {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.pirate-supporter-deletion__verification form {
  display: flex;
  margin: 0;
}

.pirate-supporter-deletion__verification-button {
  min-height: 48px;
  border: 1px solid #c37a6b;
  background: transparent;
  color: #f0afa3;
  font: inherit;
  font-weight: 800;
  padding: 10px 18px;
  cursor: pointer;
}

.pirate-supporter-deletion__verification-button--email {
  border-color: var(--ps-gold);
  color: var(--ps-gold);
}

.pirate-supporter-deletion__cancel {
  border-color: var(--ps-gold) !important;
  color: var(--ps-gold) !important;
}

.pirate-supporter-deletion__help {
  margin: 8px 0 0;
  color: var(--ps-muted);
  font-size: 0.86rem;
}

.pirate-supporter-deletion-recovery {
  margin-top: 30px;
  border-top: 1px solid var(--ps-line);
  padding-top: 24px;
}

.pirate-supporter-deletion-recovery h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(1.55rem, 4vw, 2.2rem);
}

.pirate-supporter-deletion-recovery > p:not(.pirate-supporter-account__label) {
  color: var(--ps-muted);
  line-height: 1.55;
}

.pirate-supporter-deletion-recovery__form {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.pirate-supporter-deletion-recovery__form > label {
  font-weight: 700;
}

.pirate-supporter-deletion-recovery__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.pirate-supporter-deletion-recovery__row input {
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--ps-line);
  background: #07090a;
  color: #fff;
  font: inherit;
  padding: 10px 13px;
}

.pirate-supporter-deletion-recovery__row button {
  min-height: 48px;
  border: 1px solid var(--ps-gold);
  background: transparent;
  color: var(--ps-gold);
  font: inherit;
  font-weight: 800;
  padding: 10px 18px;
  cursor: pointer;
}

.pirate-supporter-deletion-dialog {
  width: min(700px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  border: 1px solid rgba(186, 111, 98, 0.65);
  background: #0c0f10;
  color: var(--ps-copy);
  padding: 0;
  overflow: auto;
  box-shadow: 0 28px 110px rgba(0, 0, 0, 0.82);
}

.pirate-supporter-deletion-dialog::backdrop {
  background: rgba(3, 5, 6, 0.88);
  backdrop-filter: blur(10px);
}

.pirate-supporter-deletion-dialog__content {
  padding: clamp(24px, 5vw, 44px);
}

.pirate-supporter-deletion-dialog h3 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(2rem, 6vw, 3.4rem);
}

.pirate-supporter-deletion-dialog p,
.pirate-supporter-deletion-dialog li {
  line-height: 1.55;
}

.pirate-supporter-deletion-dialog ul {
  margin: 18px 0 24px;
  padding-left: 22px;
}

.pirate-supporter-deletion-dialog__form {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(186, 111, 98, 0.35);
  padding-top: 22px;
}

.pirate-supporter-deletion-dialog__check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}

.pirate-supporter-deletion-dialog__check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.pirate-supporter-deletion-dialog__form > input[type="text"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(186, 111, 98, 0.62);
  background: #07090a;
  color: #fff;
  font: inherit;
  padding: 10px 13px;
}

.pirate-supporter-deletion-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 12px;
}

.pirate-supporter-deletion-dialog__actions button {
  min-height: 46px;
  border: 1px solid var(--ps-line);
  background: transparent;
  color: var(--ps-copy);
  font: inherit;
  font-weight: 800;
  padding: 10px 16px;
  cursor: pointer;
}

.pirate-supporter-deletion-dialog__actions .pirate-supporter-deletion-dialog__delete {
  border-color: #c37a6b;
  background: #b76b5d;
  color: #fff;
}

.pirate-supporter-deletion-dialog__actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pirate-supporter-account--pending .pirate-supporter-account__card {
  max-width: 820px;
}

.pirate-supporter-account__verified {
  margin: 14px 0 0;
  color: var(--ps-muted);
  font-size: 0.86rem;
}

.pirate-supporter-login--disabled {
  border-color: rgba(156, 154, 145, 0.45) !important;
  background: transparent !important;
  color: var(--ps-muted) !important;
  cursor: not-allowed !important;
}

.pirate-supporter-account__notice--operational {
  border-left-color: var(--ps-gold);
  background: rgba(219, 160, 48, 0.11);
}

.pirate-supporter-account__notice--operational strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
}

.pirate-supporter-account__notice--operational ul {
  margin: 0;
  padding-left: 20px;
}

.pirate-supporter-security {
  margin-top: 16px;
  border: 1px solid var(--ps-line);
  background:
    linear-gradient(145deg, rgba(219, 160, 48, 0.09), transparent 42%),
    var(--ps-panel);
  padding: clamp(22px, 3vw, 30px);
}

.pirate-supporter-security h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
}

.pirate-supporter-security > p:not(.pirate-supporter-account__label) {
  max-width: 740px;
  margin: 0 0 18px;
  line-height: 1.55;
}

.pirate-supporter-security button {
  min-height: 46px;
  border: 1px solid var(--ps-gold);
  background: transparent;
  color: var(--ps-gold);
  font: inherit;
  font-weight: 800;
  padding: 10px 18px;
  text-transform: uppercase;
  cursor: pointer;
}

.pirate-supporter-security button:disabled {
  border-color: rgba(156, 154, 145, 0.38);
  color: var(--ps-muted);
  cursor: not-allowed;
  opacity: 0.62;
}

.pirate-supporter-security__help {
  margin: 9px 0 0 !important;
  color: var(--ps-muted);
  font-size: 0.86rem;
}

@media (max-width: 760px) {
  .pirate-supporter-account {
    width: 100%;
  }

  .pirate-supporter-account__identity,
  .pirate-supporter-account__access,
  .pirate-supporter-profile__avatar-section {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pirate-supporter-account__avatar {
    width: 104px;
    height: 104px;
  }

  .pirate-supporter-account__access .pirate-supporter-account__actions {
    justify-content: flex-start;
  }

  .pirate-supporter-profile__field-row {
    grid-template-columns: 1fr;
  }

  .pirate-supporter-profile__form button {
    width: 100%;
  }

  .pirate-supporter-deletion__verification,
  .pirate-supporter-deletion__verification form,
  .pirate-supporter-deletion__verification-button {
    width: 100%;
  }

  .pirate-supporter-deletion-recovery__row {
    grid-template-columns: 1fr;
  }

  .pirate-supporter-account__footer-actions {
    justify-content: flex-start;
  }

  .pirate-supporter-deletion-dialog__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .pirate-supporter-account__card,
  .pirate-supporter-profile__dialog {
    padding: 20px;
  }

  .pirate-supporter-account__card h3,
  .pirate-supporter-profile__dialog h3 {
    font-size: clamp(1.9rem, 12vw, 2.7rem);
  }

  .pirate-supporter-avatar-editor__controls > * {
    width: 100%;
  }

  .pirate-supporter-avatar-editor__filename {
    flex-basis: auto;
  }
}
