body.auth-locked {
  overflow: hidden;
}

.auth-lock {
  place-items: center;
  padding: clamp(14px, 3vw, 28px);
  overflow: auto;
  background:
    linear-gradient(115deg, rgba(5, 23, 24, 0.96) 0%, rgba(14, 29, 31, 0.96) 48%, rgba(48, 40, 26, 0.94) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 96px);
  backdrop-filter: blur(14px);
}

.auth-card-game {
  grid-template-columns: minmax(0, 0.9fr) minmax(330px, 1fr);
  gap: 0;
  width: min(980px, calc(100vw - 28px));
  min-height: 560px;
  padding: 0;
  overflow: hidden;
  background: #fffaf0;
  color: #171b21;
  border: 1px solid rgba(244, 214, 139, 0.24);
  border-radius: 8px;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.34);
}

.auth-card-game > *,
.auth-card-game .auth-form,
.auth-card-game .auth-field,
.auth-card-game .auth-field-plain,
.auth-card-game .auth-actions,
.auth-card-game .auth-helper-row,
.auth-card-game .social-login-row,
.auth-card-game .auth-bottom-row {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.auth-card-game input,
.auth-card-game button,
.auth-card-game a {
  max-width: 100%;
  box-sizing: border-box;
}

.auth-card-game .auth-site-title {
  justify-content: flex-start;
  color: #f9f1df;
  font-size: clamp(28px, 4vw, 42px);
}

.auth-card-game .auth-site-mark {
  background: #f0c45b;
  color: #10181a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.auth-identity-panel,
.auth-form-panel {
  display: grid;
}

.auth-identity-panel {
  align-content: space-between;
  min-height: 100%;
  padding: clamp(26px, 5vw, 46px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(145deg, #10191b 0%, #0b2322 58%, #2b2317 100%);
  color: #f8f1df;
}

.auth-login-copy {
  display: grid;
  gap: 14px;
  max-width: 380px;
}

.auth-login-copy h1 {
  margin: 0;
  color: #fff8e8;
  font-size: clamp(38px, 4vw, 52px);
  line-height: 1.02;
}

.auth-login-copy p {
  margin: 0;
  color: rgba(248, 241, 223, 0.78);
  font-size: 16px;
  line-height: 1.75;
}

.auth-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-signal-row span {
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid rgba(240, 196, 91, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(248, 241, 223, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.auth-form-panel {
  align-content: center;
  padding: clamp(24px, 5vw, 48px);
  background:
    linear-gradient(180deg, rgba(14, 124, 112, 0.08), transparent 36%),
    #fffaf0;
}

.auth-card-game .auth-form {
  gap: 16px;
}

.auth-card-game .auth-field-plain input {
  min-height: 56px;
  padding: 14px 15px;
  border: 1px solid #d9d3c5;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: #171b21;
  font-size: 17px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.auth-card-game .auth-field-plain input::placeholder {
  color: #8c928f;
}

.auth-card-game .auth-field-plain input:focus {
  border-color: #0e7c70;
  box-shadow: 0 0 0 3px rgba(14, 124, 112, 0.14);
}

.auth-card-game .auth-submit-wide {
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  background: #11191b;
  color: #f0c45b;
  font-size: 21px;
  letter-spacing: 0;
  box-shadow: 0 12px 26px rgba(17, 25, 27, 0.22);
}

.auth-card-game .auth-submit-wide:hover {
  border: 0;
  background: #0e7c70;
  color: #fffaf0;
  transform: translateY(-1px);
}

.auth-card-game .auth-helper-row {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: -2px;
}

.auth-card-game .auth-link-button {
  min-height: 32px;
  color: #9a671f;
  font-size: 14px;
}

.auth-card-game .auth-link-button:hover {
  color: #0e7c70;
}

.auth-card-game .social-login-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  padding-top: 4px;
}

.auth-card-game .social-login-button {
  display: flex;
  min-height: 44px;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #d9d3c5;
  border-radius: 8px;
  background: #ffffff;
  color: #171b21;
  font-size: 13px;
  font-weight: 900;
  box-shadow: none;
}

.auth-card-game .social-login-button:hover {
  transform: translateY(-1px);
  border-color: #0e7c70;
  box-shadow: 0 8px 18px rgba(17, 20, 26, 0.08);
}

.auth-card-game .social-login-button .google-mark {
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  color: #4285f4;
}

.auth-card-game .facebook-button {
  background: #f5f9ff;
  color: #1877f2;
}

.auth-card-game .apple-button {
  background: #111111;
  color: #ffffff;
}

.auth-card-game .google-mark svg {
  width: 20px;
  height: 20px;
}

.auth-card-game .apple-button span {
  font-size: 12px;
  letter-spacing: 0;
}

.auth-card-game .auth-bottom-row {
  justify-content: flex-start;
  gap: 8px;
  margin-top: 0;
}

.auth-card-game .auth-bottom-row .auth-ghost {
  width: auto;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #ddd5c8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  color: #6c6255;
  font-size: 13px;
}

.auth-card-game .auth-bottom-row .auth-ghost:hover {
  color: #11191b;
  border-color: #0e7c70;
}

.auth-card-game .auth-message {
  text-align: left;
  color: #9a671f;
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .auth-card-game {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .auth-identity-panel {
    min-height: 230px;
    gap: 26px;
  }

  .auth-form-panel {
    align-content: start;
  }
}

@media (max-width: 560px) {
  .auth-lock {
    place-items: start center;
    padding: 10px;
    overflow-x: hidden;
  }

  .auth-card-game {
    width: min(340px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
  }

  .auth-identity-panel,
  .auth-form-panel {
    padding: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .auth-card-game .auth-site-title {
    font-size: 28px;
  }

  .auth-login-copy h1 {
    font-size: clamp(34px, 10vw, 42px);
  }

  .auth-card-game .auth-field-plain input,
  .auth-card-game .auth-link-button,
  .auth-card-game .social-login-button {
    font-size: 14px;
  }

  .auth-card-game .auth-submit-wide {
    min-height: 54px;
    font-size: 20px;
  }

  .auth-card-game .auth-helper-row {
    justify-content: flex-start;
  }

  .auth-card-game .social-login-row {
    grid-template-columns: 1fr;
  }
}

.account-menu {
  width: min(360px, calc(100vw - 24px));
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  background:
    linear-gradient(180deg, rgba(45, 212, 191, 0.08), transparent 36%),
    #0f1b20;
  color: #f7fbf9;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

:root[data-theme="light"] .account-menu {
  border-color: #d8d1c2;
  background:
    linear-gradient(180deg, rgba(14, 124, 112, 0.08), transparent 38%),
    #fffaf0;
  color: #151d22;
  box-shadow: 0 18px 48px rgba(31, 41, 55, 0.16);
}

.account-menu-profile {
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
}

.account-avatar {
  width: 56px;
  border-radius: 8px;
  background: #0e7c70;
  color: #fffaf0;
}

.account-avatar svg {
  width: 30px;
  height: 30px;
}

.account-identity strong {
  font-size: 17px;
}

.account-identity span {
  color: rgba(247, 251, 249, 0.68);
  font-size: 13px;
}

:root[data-theme="light"] .account-identity span {
  color: #6b7280;
}

.account-primary-action {
  min-height: 44px;
  border-radius: 8px;
  border-color: rgba(45, 212, 191, 0.24);
  background: rgba(45, 212, 191, 0.1);
  color: inherit;
  font-size: 15px;
}

.account-primary-action:hover,
.account-menu-row:hover,
.account-setting-button:hover,
.account-setting-link:hover {
  background: rgba(45, 212, 191, 0.14);
  color: #2dd4bf;
}

:root[data-theme="light"] .account-primary-action,
:root[data-theme="light"] .account-setting-button,
:root[data-theme="light"] .account-setting-link {
  border-color: #d8d1c2;
  background: #fffdf8;
  color: #151d22;
}

.account-menu-list {
  margin-top: 12px;
  border-color: rgba(148, 163, 184, 0.24);
}

.account-menu-row {
  min-height: 48px;
  padding: 0 6px;
  color: inherit;
  font-size: 15px;
  font-weight: 800;
}

.account-menu-row + .account-menu-row {
  border-color: rgba(148, 163, 184, 0.18);
}

.account-menu-row svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.account-settings-panel {
  border-radius: 8px;
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

:root[data-theme="light"] .account-settings-panel {
  background: #fffdf8;
}

.account-menu-notice {
  color: rgba(247, 251, 249, 0.62);
}

:root[data-theme="light"] .account-menu-notice {
  color: #6b7280;
}

.account-dashboard-shell {
  min-height: calc(100vh - 76px);
  padding: clamp(26px, 5vw, 68px) clamp(14px, 4vw, 44px);
  background:
    linear-gradient(140deg, rgba(11, 45, 45, 0.42), transparent 34%),
    linear-gradient(220deg, rgba(217, 175, 73, 0.16), transparent 42%),
    radial-gradient(circle at 18% 10%, rgba(45, 212, 191, 0.12), transparent 24%);
}

:root[data-theme="light"] .account-dashboard-shell {
  background:
    linear-gradient(140deg, rgba(16, 102, 96, 0.12), transparent 36%),
    linear-gradient(220deg, rgba(217, 175, 73, 0.22), transparent 44%),
    #f2efe7;
}

.account-dashboard {
  display: grid;
  gap: 18px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.account-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(18px, 4vw, 42px);
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(240, 196, 91, 0.24);
  background:
    linear-gradient(135deg, rgba(6, 20, 22, 0.96), rgba(11, 38, 39, 0.94) 62%, rgba(59, 48, 28, 0.92)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 82px);
  color: #fff8e8;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
}

:root[data-theme="light"] .account-hero {
  background:
    linear-gradient(135deg, #0c1d20, #173b3b 64%, #5e4a24),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 82px);
  box-shadow: 0 24px 68px rgba(34, 31, 24, 0.16);
}

.account-hero-copy {
  display: grid;
  gap: 10px;
  max-width: 680px;
}

.account-hero-copy h1 {
  margin: 0;
  color: #fff8e8;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.95;
}

.account-hero-copy p {
  margin: 0;
  color: rgba(255, 248, 232, 0.72);
  font-size: 16px;
  line-height: 1.8;
}

.account-hero-mark {
  display: grid;
  justify-items: end;
  gap: 10px;
  color: rgba(255, 248, 232, 0.72);
  font-weight: 900;
}

.account-hero-mark span {
  display: grid;
  width: 56px;
  aspect-ratio: 1;
  place-items: center;
  background: #f0c45b;
  color: #10181a;
  font-size: 28px;
}

.account-hero-mark strong {
  font-size: 14px;
}

.account-profile-strip,
.account-content-grid {
  display: grid;
  gap: 14px;
}

.account-profile-strip {
  grid-template-columns: minmax(260px, 1.45fr) repeat(2, minmax(180px, 0.75fr));
}

.account-profile-tile,
.account-watchlist,
.account-note-panel,
.account-security-drawer {
  border: 1px solid rgba(226, 218, 202, 0.92);
  background: rgba(255, 250, 240, 0.96);
  color: #171b21;
  box-shadow: 0 16px 52px rgba(0, 0, 0, 0.14);
}

:root[data-theme="light"] .account-profile-tile,
:root[data-theme="light"] .account-watchlist,
:root[data-theme="light"] .account-note-panel,
:root[data-theme="light"] .account-security-drawer {
  background: rgba(255, 252, 246, 0.96);
  border-color: rgba(214, 204, 186, 0.96);
  box-shadow: 0 16px 48px rgba(71, 63, 48, 0.11);
}

.account-profile-tile {
  display: grid;
  gap: 10px;
  min-height: 122px;
  align-content: space-between;
  padding: 18px;
}

.account-profile-main {
  border-color: rgba(45, 137, 128, 0.42);
  background:
    linear-gradient(135deg, rgba(14, 124, 112, 0.12), transparent 54%),
    rgba(255, 250, 240, 0.98);
}

.account-profile-muted {
  background:
    linear-gradient(135deg, rgba(217, 175, 73, 0.14), transparent 58%),
    rgba(255, 250, 240, 0.96);
}

.account-tile-label {
  color: #677078;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-profile-tile strong {
  color: #0e171a;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.account-content-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  align-items: start;
}

.account-watchlist {
  display: grid;
  gap: 16px;
  min-height: 360px;
  padding: clamp(20px, 3vw, 28px);
}

.account-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(207, 197, 180, 0.9);
}

.account-section-head h2,
.account-note-panel h2 {
  margin: 0;
  color: #10181a;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}

.account-section-head > span {
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid rgba(14, 124, 112, 0.32);
  color: #0e7c70;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.account-watchlist > p,
.account-note-panel p {
  margin: 0;
  color: #606a72;
  line-height: 1.7;
}

.account-watchlist-empty,
.account-watchlist-item {
  border: 1px solid rgba(213, 204, 187, 0.94);
  background: #fffdf8;
}

.account-watchlist-empty {
  padding: 18px;
  color: #68717a;
}

.account-watchlist-empty strong {
  color: #11191b;
  font-size: 17px;
}

.account-watchlist-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 16px;
}

.account-watchlist-item strong {
  color: #11191b;
  font-size: 19px;
}

.account-watchlist-actions a,
.account-watchlist-actions button {
  border-radius: 0;
}

.account-side-stack {
  display: grid;
  gap: 14px;
}

.account-note-panel {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.account-security-drawer {
  padding: 0;
}

.account-security-drawer summary {
  display: flex;
  min-height: 74px;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  list-style: none;
}

.account-security-drawer summary::-webkit-details-marker {
  display: none;
}

.account-security-drawer summary span {
  display: grid;
  gap: 4px;
  color: #10181a;
  font-size: 18px;
  font-weight: 900;
}

.account-security-drawer summary small {
  color: #7b8388;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-security-drawer summary b {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(14, 124, 112, 0.28);
  color: #0e7c70;
  font-size: 12px;
}

.account-security-drawer[open] summary {
  border-bottom: 1px solid rgba(207, 197, 180, 0.9);
}

.account-security-drawer[open] summary b {
  color: #9a671f;
  border-color: rgba(217, 175, 73, 0.48);
}

.account-google-note,
.account-password-form {
  margin: 0 20px 20px;
}

.account-password-form {
  gap: 10px;
}

.account-password-form .auth-field-plain input {
  min-height: 48px;
  font-size: 15px;
}

.account-password-form .auth-submit-wide {
  min-height: 46px;
  font-size: 16px;
  box-shadow: none;
}

.account-status-message {
  margin: 0;
  min-height: 20px;
}

@media (max-width: 920px) {
  .account-hero,
  .account-profile-strip,
  .account-content-grid {
    grid-template-columns: 1fr;
  }

  .account-hero-mark {
    justify-items: start;
  }
}

@media (max-width: 560px) {
  .account-dashboard-shell {
    padding: 14px 10px 34px;
  }

  .account-hero,
  .account-profile-tile,
  .account-watchlist,
  .account-note-panel {
    padding: 18px;
  }

  .account-hero-copy h1 {
    font-size: 40px;
  }

  .account-section-head {
    flex-direction: column;
  }

  .account-watchlist-item {
    grid-template-columns: 1fr;
  }

  .account-watchlist-actions {
    justify-content: flex-start;
  }
}
