.nav-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-login,
.account-state {
  color: #3d3d42;
  font-size: 13px;
  font-weight: 600;
}

.nav-login i {
  margin-right: 5px;
}

.account-state {
  white-space: nowrap;
}

.account-state.is-vip {
  color: #8a5b00;
}

.account-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 0 20px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.account-panel .overline {
  margin-bottom: 7px;
}

.account-panel h2 {
  margin: 0 0 8px;
  font-size: 25px;
  letter-spacing: -0.025em;
}

.account-panel p:not(.overline) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.account-panel-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.account-panel-actions .secondary-link {
  font-size: 14px;
}

.game-auth-shell { min-height: 100vh; background: #f5f5f7; }
.auth-layout { min-height: calc(100vh - 56px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); align-items: center; gap: clamp(48px, 9vw, 132px); padding-top: 64px; padding-bottom: 72px; }
.auth-intro { max-width: 510px; }
.auth-intro h1 { margin: 0; font-size: clamp(42px, 5.2vw, 70px); line-height: 1.06; letter-spacing: -.045em; }
.auth-intro > p:not(.overline) { margin: 24px 0 0; max-width: 450px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.auth-benefits { display: grid; gap: 14px; margin: 36px 0 0; padding: 0; list-style: none; color: #424247; font-size: 14px; }
.auth-benefits li { display: flex; align-items: center; gap: 11px; }
.auth-benefits span { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #e8f2ff; color: var(--blue); font-size: 11px; font-weight: 700; }
.auth-note { display: grid; gap: 5px; margin-top: 34px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.auth-note strong { color: var(--ink); }
.auth-card { width: 100%; max-width: 455px; justify-self: end; padding: 34px; border: 1px solid rgba(20,20,23,.1); border-radius: 12px; background: #fff; box-shadow: 0 22px 58px rgba(20,20,23,.08); }
.auth-card-heading h2 { margin: 0; font-size: 30px; letter-spacing: -.035em; }
.auth-card-heading p:not(.overline) { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.account-form { margin-top: 28px; }
.form-field { display: grid; gap: 8px; margin: 0 0 18px; color: #3b3b40; font-size: 13px; font-weight: 650; }
.form-field span { display: flex; justify-content: space-between; align-items: center; }
.form-field em { color: #8a8a91; font-size: 12px; font-style: normal; font-weight: 500; }
.form-field input { width: 100%; min-height: 48px; padding: 12px 13px; border: 1px solid #d2d2d7; border-radius: 8px; outline: none; background: #fff; color: var(--ink); font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.form-field input::placeholder { color: #9b9ba1; }
.form-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,.12); }
.password-input { position: relative; display: block; }
.password-input input { padding-right: 54px; }
.password-input button { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); padding: 6px 8px; border: 0; border-radius: 5px; background: transparent; color: var(--blue); cursor: pointer; font-size: 12px; font-weight: 650; }
.form-submit, .secondary-button { width: 100%; min-height: 48px; border: 0; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 650; transition: background .15s, transform .15s, opacity .15s; }
.form-submit { background: var(--blue); color: #fff; }
.form-submit:hover { background: var(--blue-dark); }
.form-submit:active, .secondary-button:active { transform: scale(.99); }
.form-submit:disabled, .secondary-button:disabled { cursor: not-allowed; opacity: .58; }
.form-message { min-height: 20px; margin: 14px 0 0; color: #68686e; font-size: 13px; line-height: 1.45; }
.form-message.is-error { color: #b42318; }
.form-message.is-success { color: #087443; }
.auth-card-footer { margin-top: 25px; padding-top: 21px; border-top: 1px solid #ebebef; color: #6d6d73; font-size: 13px; }
.auth-card-footer a { color: var(--blue); font-weight: 650; }
.contact-notice { margin: 18px 0 0; color: #85858c; font-size: 12px; line-height: 1.55; }
.nav-quiet-button { padding: 0; border: 0; background: transparent; color: #66666d; cursor: pointer; font: inherit; font-size: 13px; }
.membership-page { padding-top: 58px; padding-bottom: 72px; }
.membership-hero { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding: 0 0 35px; border-bottom: 1px solid var(--line); }
.membership-hero h1 { margin: 0; font-size: clamp(35px, 5vw, 54px); letter-spacing: -.04em; }
.membership-hero p:not(.overline) { margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.membership-tier { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; min-width: 185px; padding: 15px 17px; border: 1px solid #dedee3; border-radius: 8px; background: #fff; }
.membership-tier .tier-dot { grid-row: span 2; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: #9b9ba1; }
.membership-tier strong { font-size: 14px; }
.membership-tier small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.membership-tier.is-vip { border-color: #b9e4cc; background: #f1fbf5; }
.membership-tier.is-vip .tier-dot { background: #2eb872; box-shadow: 0 0 0 4px rgba(46,184,114,.12); }
.membership-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.membership-card { min-height: 292px; padding: 28px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.card-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.card-heading p:not(.overline) { margin: 9px 0 0; max-width: 390px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.redeem-form { max-width: 440px; margin-top: 25px; }
.redeem-form .form-field { margin-bottom: 12px; }
.redeem-form input { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; letter-spacing: .08em; }
.redeem-form .form-submit { width: auto; min-width: 188px; padding: 0 16px; }
.device-list { display: grid; gap: 0; margin: 22px 0 18px; padding: 0; list-style: none; }
.device-item, .device-empty { padding: 13px 0; border-top: 1px solid #ececf0; }
.device-item strong { font-size: 14px; }
.device-item small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.device-empty { color: var(--muted); font-size: 13px; line-height: 1.55; }
.secondary-button { width: auto; min-height: 40px; padding: 0 14px; border: 1px solid #d2d2d7; background: #fff; color: var(--blue); font-size: 13px; }
.secondary-button:hover { border-color: #a9cbed; background: #f5faff; }
.member-help { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 25px 28px; border-radius: 10px; background: #eaf4ff; }
.member-help strong { font-size: 14px; }
.member-help p { margin: 5px 0 0; color: #4d6f90; font-size: 13px; }

@media (max-width: 760px) {
  .auth-layout { display: block; min-height: auto; padding-top: 46px; padding-bottom: 48px; }
  .auth-intro h1 { font-size: 42px; }
  .auth-intro > p:not(.overline) { font-size: 16px; }
  .auth-benefits, .auth-note { display: none; }
  .auth-card { max-width: none; margin-top: 38px; padding: 25px 20px; }
  .membership-page { padding-top: 38px; padding-bottom: 42px; }
  .membership-hero { display: block; padding-bottom: 26px; }
  .membership-tier { width: 100%; margin-top: 24px; }
  .membership-grid { grid-template-columns: 1fr; margin-top: 16px; }
  .membership-card { min-height: 0; padding: 23px 20px; }
  .redeem-form .form-submit { width: 100%; }
  .member-help { align-items: flex-start; flex-direction: column; padding: 22px 20px; }
  .member-help .primary-link { width: 100%; text-align: center; }
  .nav-tools {
    gap: 9px;
  }

  .nav-login {
    font-size: 0;
  }

  .nav-login i {
    margin: 0;
    font-size: 15px;
  }

  .nav-tools .nav-action {
    font-size: 12px;
  }

  .account-panel {
    display: block;
    padding: 22px;
  }

  .account-panel h2 {
    font-size: 22px;
  }

  .account-panel-actions {
    flex-wrap: wrap;
    margin-top: 20px;
  }

  .account-panel-actions .primary-link,
  .account-panel-actions .secondary-link {
    font-size: 14px;
  }
}
