/* Website V9: embedded Captain's Register. The card intentionally crosses the
   artwork edge so the register reads as part of the page, never as a modal. */
.pirate-register {
  min-height: 760px !important;
  overflow: visible !important;
  align-items: stretch !important;
  isolation: isolate;
  padding: clamp(90px, 8vw, 126px) max(24px, calc((100vw - 1440px) / 2)) 74px !important;
  margin-bottom: clamp(100px, 9vw, 150px);
}

.pirate-register::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 70%, #071727 100%);
  pointer-events: none;
}

.pirate-register-art,
.pirate-register-shade {
  z-index: -2;
  overflow: hidden;
}

.pirate-register-art img {
  object-position: 58% 46% !important;
  filter: saturate(.94) contrast(1.05) brightness(.76);
  transform: scale(1.015);
}

.pirate-register-shade {
  background:
    linear-gradient(90deg, #051522f7 0%, #071b2de8 27%, #081f35a6 48%, #06182a48 73%, #061725b8 100%),
    linear-gradient(0deg, #061522e8 0%, transparent 48%) !important;
}

.register-shell {
  position: relative;
  z-index: 2;
  width: min(1440px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(620px, 1.28fr);
  gap: clamp(38px, 5vw, 82px);
  align-items: center;
}

.register-copy {
  width: auto !important;
  max-width: 500px !important;
  padding: 24px 0 54px;
}

.register-copy h2 {
  max-width: 620px;
  text-wrap: balance;
}

.register-copy > p {
  max-width: 440px !important;
  color: #d3e5e6 !important;
}

.register-search.profile-form {
  display: block !important;
  margin-top: 32px;
}

.register-search > label {
  display: block;
  margin-bottom: 10px;
  color: #f5d58f;
  font: 700 10px/1.2 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.register-search-row {
  display: flex !important;
  align-items: stretch;
  gap: 8px !important;
  padding: 8px !important;
  border: 1px solid #a6d6df5e !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #09283edb, #061b2edb) !important;
  box-shadow: inset 0 1px 0 #ffffff12, 0 18px 42px #020a126b !important;
  backdrop-filter: blur(14px);
}

.register-search-row:focus-within {
  border-color: #f0ce83 !important;
  box-shadow: 0 0 0 3px #efce7f20, 0 18px 42px #020a1280 !important;
}

.register-search-row input {
  min-height: 50px;
  padding: 10px 14px !important;
  font-size: 14px !important;
}

.register-search-row .game-button {
  min-width: 142px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 18px !important;
  border-radius: 8px;
  color: #132738;
  font-weight: 800;
  letter-spacing: .025em;
  background: linear-gradient(180deg, #ffe09a, #e8b963) !important;
  border: 1px solid #fff0ba !important;
  box-shadow: inset 0 1px 0 #fff8, 0 4px 0 #9d6c31, 0 10px 22px #03111f66 !important;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.register-search-row .game-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: inset 0 1px 0 #fff8, 0 6px 0 #9d6c31, 0 15px 28px #03111f7a !important;
}

.register-search-row .game-button:active {
  transform: translateY(2px);
  box-shadow: inset 0 1px 0 #fff8, 0 1px 0 #9d6c31 !important;
}

.register-search-row .game-button:disabled {
  cursor: wait;
  filter: saturate(.55);
  opacity: .78;
}

.register-search-row .game-button svg {
  width: 18px;
  height: 18px;
}

.pirate-register .profile-status {
  min-height: 19px;
  margin: 16px 0 0 !important;
  color: #a8cad3 !important;
  font: 11px/1.65 var(--sans);
}

.pirate-register .profile-status.search-error {
  color: #ffc28f !important;
}

.register-profile-card {
  position: relative;
  align-self: end;
  transform: translateY(clamp(92px, 8vw, 126px));
  min-width: 0;
  border: 1px solid #b4d9e663;
  border-radius: 18px;
  color: #eff7ef;
  background:
    radial-gradient(circle at 14% 18%, #77cad51c, transparent 35%),
    linear-gradient(140deg, #15364de8, #0a243bdd 50%, #071b30ed);
  box-shadow: inset 0 1px 0 #ffffff1f, inset 0 0 0 6px #d9f3f006, 0 28px 72px #020a13b3;
  backdrop-filter: blur(20px) saturate(1.12);
  overflow: hidden;
}

.register-profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, #ffffff0a 49%, transparent 63%);
  transform: translateX(-90%);
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1);
}

.register-profile-card.is-found::before {
  transform: translateX(90%);
}

.register-card-top {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 22px;
  border-bottom: 1px solid #a5cad43b;
  color: #d8e8e5;
  font: 800 9px/1 var(--sans);
  letter-spacing: .14em;
}

.register-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9adfc8;
}

.register-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #63ddb6;
  box-shadow: 0 0 0 4px #63ddb619, 0 0 14px #63ddb696;
}

.register-card-body {
  min-height: 445px;
  display: grid;
  grid-template-columns: minmax(250px, .82fr) minmax(340px, 1.18fr);
  gap: 0;
}

.register-profile-card.is-idle .register-card-body {
  grid-template-columns: 1fr;
}

.profile-portrait[hidden] {
  display: none !important;
}

.pirate-register .profile-portrait {
  min-width: 0;
  padding: 20px 0 18px 20px;
  border-right: 1px solid #a5cad42e;
}

.pirate-register .avatar-wrap {
  height: 352px !important;
  border: 1px solid #a9d1dc3f !important;
  border-radius: 13px !important;
  background:
    radial-gradient(ellipse at 50% 66%, #3d89a948, transparent 63%),
    linear-gradient(180deg, #102f47cc, #061a2ddd) !important;
  box-shadow: inset 0 1px 0 #fff1, 0 14px 28px #020a144a;
}

.pirate-register .avatar-wrap::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 27px;
  height: 22px;
  border-radius: 50%;
  background: #020b1470;
  filter: blur(8px);
  pointer-events: none;
}

.pirate-register .avatar-wrap canvas,
.pirate-register .avatar-fallback,
.pirate-register .avatar-controls {
  z-index: 1;
}

.pirate-register .appearance-summary {
  min-height: 33px;
  margin: 0;
  padding: 12px 6px 0 !important;
  color: #9ebbc4;
  font-size: 9px;
  line-height: 1.55;
  text-align: center;
}

.profile-details {
  min-width: 0;
  padding: 30px 30px 26px;
}

.profile-kicker {
  display: block;
  margin-bottom: 7px;
  color: #78cbbf;
  font: 800 9px/1.3 var(--sans);
  letter-spacing: .14em;
}

.pirate-register .profile-identity {
  align-items: flex-start !important;
  min-height: 67px;
  margin-bottom: 22px !important;
}

.pirate-register .profile-identity h3 {
  margin: 0;
  color: #fff0cf;
  font: clamp(25px, 2.2vw, 35px)/1.05 var(--serif) !important;
}

.pirate-register .profile-identity small {
  max-width: 420px;
  margin-top: 8px;
  color: #9fbac3;
  line-height: 1.55;
}

.pirate-register .level-badge {
  width: 62px;
  min-width: 62px;
  height: 62px;
  border-radius: 14px !important;
  background: linear-gradient(160deg, #2d709d, #143b6c) !important;
  border: 1px solid #aedcf06e !important;
  box-shadow: inset 0 1px 0 #fff3, 0 5px 0 #051e36 !important;
}

.register-profile-card.is-idle .level-badge {
  filter: grayscale(.35);
  opacity: .56;
}

.pirate-register .profile-skill-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 24px !important;
}

.pirate-register .profile-skill {
  padding: 0 0 7px;
  border: 0;
}

.pirate-register .profile-skill > div {
  align-items: center;
  color: #bfd3d5;
  font-size: 10px;
}

.pirate-register .profile-skill b {
  color: #f6d68f;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.pirate-register .profile-skill i {
  position: relative;
  height: 6px !important;
  margin-top: 7px;
  overflow: hidden;
  border: 1px solid #76b4c332;
  border-radius: 99px;
  background: #031421bb !important;
}

.pirate-register .profile-skill i::before {
  border-radius: inherit;
  background: linear-gradient(90deg, #367db7, #75dac7 76%, #ffe1a0) !important;
  box-shadow: 0 0 12px #65d7c177;
  transition: width .65s cubic-bezier(.2,.75,.2,1);
}

.register-profile-card.is-idle .profile-skill {
  opacity: .45;
}

.pirate-register .profile-info {
  margin: 22px 0 0 !important;
  color: #819eaa !important;
  font-size: 10px !important;
}

@media (max-width: 1120px) {
  .pirate-register {
    min-height: 980px !important;
    padding-inline: clamp(24px, 5vw, 58px) !important;
  }

  .register-shell {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .register-copy {
    max-width: 650px !important;
    padding-bottom: 20px;
  }

  .register-profile-card {
    width: min(860px, 100%);
    justify-self: end;
  }
}

@media (max-width: 720px) {
  .pirate-register {
    min-height: auto !important;
    margin-bottom: 0;
    padding: 340px 18px 60px !important;
  }

  .pirate-register-art,
  .pirate-register-shade {
    overflow: hidden;
  }

  .pirate-register-art img {
    height: 500px !important;
    object-position: 55% top !important;
  }

  .pirate-register-shade {
    background: linear-gradient(0deg, #071727 0%, #071727 59%, #071727ba 76%, transparent 100%) !important;
  }

  .register-copy {
    padding: 30px 5px 26px !important;
  }

  .register-copy h2 {
    font-size: clamp(40px, 12vw, 54px) !important;
  }

  .register-search-row {
    flex-direction: column;
  }

  .register-search-row .game-button {
    min-width: 0 !important;
    min-height: 48px;
  }

  .register-profile-card {
    transform: none;
    width: 100%;
  }

  .register-card-top {
    padding-inline: 16px;
    letter-spacing: .09em;
  }

  .register-card-body,
  .register-profile-card.is-idle .register-card-body {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .pirate-register .profile-portrait {
    padding: 15px 15px 0;
    border-right: 0;
    border-bottom: 1px solid #a5cad42e;
  }

  .pirate-register .avatar-wrap {
    height: 330px !important;
  }

  .profile-details {
    padding: 24px 18px 26px;
  }

  .pirate-register .profile-skill-list {
    gap: 12px 15px !important;
  }

  .network {
    padding-top: clamp(78px, 16vw, 110px) !important;
  }
}

@media (max-width: 390px) {
  .pirate-register {
    padding-inline: 13px !important;
  }

  .register-card-top {
    font-size: 8px;
  }

  .profile-details {
    padding-inline: 14px;
  }

  .pirate-register .profile-skill-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .register-profile-card::before,
  .pirate-register .profile-skill i::before,
  .register-search-row .game-button {
    transition: none;
  }
}
