.account-page::before {
  background:
    linear-gradient(102deg, rgb(3 5 8 / 96%) 0%, rgb(3 5 8 / 86%) 44%, rgb(7 17 24 / 65%) 100%),
    linear-gradient(180deg, rgb(0 0 0 / 8%), rgb(0 0 0 / 68%)),
    url("/assets/images/bowling-house-hero.webp") center / cover no-repeat;
}

.account-shell {
  width: min(1380px, calc(100% - 56px));
}

.account-topbar {
  min-height: 150px;
}

.account-brand {
  color: inherit;
  text-decoration: none;
}

.account-status {
  color: var(--gold);
  border-color: rgb(255 178 76 / 52%);
  background: linear-gradient(90deg, rgb(52 25 7 / 92%), rgb(17 12 8 / 90%));
}

.account-status span {
  background: var(--bronze);
  box-shadow: 0 0 12px var(--orange);
}

.account-main {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  align-items: start;
  gap: clamp(48px, 6vw, 94px);
  padding: 62px 0 70px;
}

.account-introduction h1 {
  max-width: 760px;
  font-size: clamp(54px, 5vw, 84px);
  line-height: 0.9;
}

.account-introduction .intro {
  max-width: 720px;
  font-size: clamp(17px, 1.3vw, 20px);
}

.deletion-policy-card {
  position: relative;
  margin-top: 34px;
  padding: 24px 26px 22px;
  border: 1px solid rgb(255 178 76 / 32%);
  border-left: 4px solid var(--orange);
  border-radius: 4px 18px 18px 4px;
  background: linear-gradient(112deg, rgb(35 20 10 / 88%), rgb(7 13 18 / 86%));
  box-shadow: inset 0 0 36px rgb(255 140 0 / 4%), 0 22px 46px rgb(0 0 0 / 24%);
}

.deletion-policy-card::after {
  position: absolute;
  top: -1px;
  right: 24px;
  width: 84px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--cyan));
  box-shadow: 0 0 8px rgb(49 215 255 / 60%);
}

.deletion-policy-card h2 {
  margin: 0 0 13px;
  color: var(--gold);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.deletion-policy-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-family: var(--body-font);
  font-size: 14px;
  line-height: 1.55;
}

.deletion-policy-card li::marker {
  color: var(--cyan);
}

.deletion-policy-card b {
  color: #e8eef3;
}

.account-gameplay-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 20px;
  margin: 26px 0 0;
  padding: 14px 20px 14px 14px;
  border: 1px solid rgb(132 230 255 / 18%);
  border-radius: 20px;
  background: linear-gradient(90deg, rgb(6 18 25 / 86%), rgb(9 11 14 / 78%));
}

.account-gameplay-card img {
  display: block;
  width: 90px;
  height: auto;
  border: 2px solid rgb(255 178 76 / 45%);
  border-radius: 12px;
  box-shadow: 0 9px 25px rgb(0 0 0 / 46%);
}

.account-gameplay-card figcaption {
  color: var(--muted);
  font-family: var(--body-font);
  font-size: 13px;
  line-height: 1.55;
}

.account-control-card {
  position: sticky;
  top: 24px;
  overflow: hidden;
  min-height: 650px;
  padding: clamp(26px, 3.2vw, 44px);
  border: 1px solid rgb(255 178 76 / 42%);
  border-radius: 28px 8px 28px 8px;
  background: linear-gradient(150deg, rgb(35 20 10 / 95%), rgb(7 12 18 / 97%) 38%, rgb(4 15 21 / 96%));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 3%), 0 30px 90px rgb(0 0 0 / 56%), 0 0 45px rgb(49 215 255 / 5%);
}

.account-control-card::before,
.account-control-card::after {
  position: absolute;
  height: 4px;
  pointer-events: none;
  content: "";
}

.account-control-card::before {
  top: 0;
  right: 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, var(--cyan-hot));
}

.account-control-card::after {
  bottom: 0;
  left: 0;
  width: 36%;
  background: linear-gradient(90deg, var(--orange), transparent);
}

.control-card-heading {
  padding-bottom: 24px;
  border-bottom: 1px solid rgb(255 208 137 / 16%);
}

.control-kicker,
.step-number {
  margin: 0;
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.control-card-heading h2 {
  margin: 5px 0 18px;
  font-size: clamp(34px, 3vw, 48px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 3px 0 #251204;
}

.control-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.control-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.control-steps span {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgb(132 230 255 / 34%);
  border-radius: 50%;
  color: var(--cyan);
  background: rgb(7 25 34 / 70%);
}

.control-step {
  padding-top: 27px;
}

.control-step h3 {
  margin: 7px 0 8px;
  color: var(--gold);
  font-size: 28px;
  font-weight: 400;
  text-transform: uppercase;
}

.step-copy,
.signed-in-copy,
.security-note {
  color: var(--muted);
  font-family: var(--body-font);
  font-size: 14px;
  line-height: 1.55;
}

.step-copy {
  margin: 0 0 23px;
}

.signed-in-copy strong {
  color: var(--cyan);
  overflow-wrap: anywhere;
}

.account-form {
  display: grid;
  gap: 9px;
}

.account-form label,
.control-step > label:not(.confirmation-check) {
  color: #dce6ed;
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 700;
}

.account-form input,
.confirmation-input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgb(132 230 255 / 30%);
  border-radius: 8px;
  color: var(--white);
  background: rgb(2 8 12 / 84%);
  font: 16px/1.25 var(--body-font);
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap input {
  padding-right: 76px;
}

.password-visibility-button {
  position: absolute;
  inset: 2px 3px 2px auto;
  min-width: 64px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-left: 1px solid rgb(132 230 255 / 24%);
  border-radius: 0 6px 6px 0;
  color: var(--cyan);
  background: rgb(7 25 34 / 86%);
  font: 700 12px var(--body-font);
  cursor: pointer;
}

.password-visibility-button:hover,
.password-visibility-button:focus-visible {
  color: var(--white);
  background: rgb(13 53 69 / 94%);
  outline: 2px solid rgb(132 230 255 / 58%);
  outline-offset: -2px;
}

.house-button {
  width: 100%;
  min-height: 50px;
  margin-top: 10px;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  font-family: var(--display-font);
  font-size: 16px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  cursor: pointer;
}

.house-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.55);
  opacity: 0.48;
}

.primary-button {
  background: linear-gradient(180deg, #17627e, #082a3a);
  box-shadow: inset 0 0 0 2px rgb(132 230 255 / 58%);
}

.google-button-slot {
  display: grid;
  min-height: 44px;
  place-items: center;
  overflow: hidden;
  border-radius: 5px;
}

.google-button-slot[aria-busy="true"] {
  opacity: 0.52;
  pointer-events: none;
}

.provider-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 18px 0 6px;
  color: #81909b;
  font: 12px var(--body-font);
  text-transform: uppercase;
}

.provider-divider::before,
.provider-divider::after {
  height: 1px;
  content: "";
  background: rgb(255 255 255 / 12%);
}

.text-button {
  margin-top: 16px;
  padding: 5px 0;
  border: 0;
  color: var(--cyan);
  background: transparent;
  font: 700 13px var(--body-font);
  text-decoration: underline;
  cursor: pointer;
}

.page-status,
.inline-warning,
.irreversible-warning {
  font-family: var(--body-font);
  line-height: 1.5;
}

.page-status {
  margin: 22px 0 0;
  padding: 12px 14px;
  border: 1px solid rgb(132 230 255 / 28%);
  border-radius: 8px;
  color: var(--cyan);
  background: rgb(5 25 34 / 68%);
  font-size: 13px;
}

.page-status[data-tone="error"] {
  border-color: rgb(255 115 94 / 48%);
  color: #ffb5a7;
  background: rgb(49 10 8 / 68%);
}

.page-status[data-tone="success"] {
  color: #a7efc8;
  background: rgb(6 39 24 / 66%);
}

.inline-warning,
.irreversible-warning {
  color: #ffd2ca;
  background: rgb(48 11 8 / 50%);
}

.inline-warning {
  padding: 12px 14px;
  border-left: 3px solid #ff826e;
  font-size: 13px;
}

.irreversible-warning {
  margin: 20px 0;
  padding: 18px 19px;
  border: 1px solid rgb(255 115 94 / 44%);
  border-radius: 10px;
}

.irreversible-warning strong {
  color: #ff9b88;
  font-family: var(--display-font);
  font-size: 19px;
  font-weight: 400;
  text-transform: uppercase;
}

.confirmation-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 11px;
  margin: 0 0 20px;
  color: #d8e1e8;
  font: 13px/1.5 var(--body-font);
}

.confirmation-check input {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: var(--cyan-hot);
}

.confirmation-input {
  margin-top: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.destructive-button {
  margin-top: 18px;
  background: linear-gradient(180deg, #a73523, #55160d);
  box-shadow: inset 0 0 0 2px rgb(255 154 135 / 50%);
}

.progress-step {
  text-align: center;
}

.progress-step .step-number {
  text-align: left;
}

.lane-spinner {
  width: 72px;
  height: 72px;
  margin: 28px auto 22px;
  border: 4px solid rgb(255 178 76 / 18%);
  border-top-color: var(--orange);
  border-right-color: var(--cyan-hot);
  border-radius: 50%;
  animation: lane-spin 1s linear infinite;
}

.security-note {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 9%);
  color: #8897a2;
  font-size: 11px;
}

.account-footer a {
  color: var(--cyan);
  text-decoration: none;
}

@keyframes lane-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1040px) {
  .account-shell {
    width: min(100% - 30px, 800px);
  }

  .account-main {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 48px;
  }

  .account-control-card {
    position: relative;
    top: auto;
    min-height: 0;
  }
}

@media (max-width: 580px) {
  .account-status {
    max-width: 150px;
    white-space: normal;
  }

  .account-introduction {
    text-align: center;
  }

  .account-introduction h1 {
    font-size: clamp(48px, 15vw, 66px);
  }

  .deletion-policy-card,
  .account-gameplay-card {
    text-align: left;
  }

  .account-control-card {
    padding: 24px 19px 28px;
    border-radius: 22px 6px 22px 6px;
  }
}
