/* Screenshot layout adapted to VoltUp's existing pixel geometry and palette. */
.header-actions :is(#balanceButton,#openDeposit,#loginButton)[hidden] { display: none !important; }
body.auth-guest :is(#balanceButton,#openDeposit,#page-profile,#profileView) { display: none !important; }
.header-actions .login-button {
  min-width: 126px; height: 43px; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 0 18px; border: 2px solid #d7ff6d; background: #c8ff38;
  color: #102000; box-shadow: 0 3px #435f0a; cursor: pointer; font-size: 13px;
  transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.login-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.login-button:hover { background: #dcff87; box-shadow: 0 3px #435f0a,0 0 18px #c8ff3826; }
.login-button:active { transform: translateY(2px); box-shadow: 0 1px #435f0a; }
body.auth-open { overflow: hidden; }
body.auth-open .mobile-tabs { visibility: hidden; pointer-events: none; }
.auth-modal .auth-card {
  width: min(880px,calc(100vw - 40px)); max-height: calc(100dvh - 40px);
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); overflow: auto;
  border: 2px solid #53624d; border-radius: 0; background: #191f1b; color: #e9eee6;
  box-shadow: 6px 6px #050805; text-align: left;
}
.auth-modal[open] .auth-card { animation: auth-enter 220ms cubic-bezier(.16,1,.3,1) both; }
.auth-art { position: relative; min-width: 0; min-height: 610px; overflow: hidden; background: #111713; border-right: 1px solid #3a473c; }
.auth-character { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; image-rendering: pixelated; }
.auth-art-brand { position: absolute; inset: 24px auto auto 24px; display: flex; align-items: center; gap: 10px; color: #e9eee6; font-size: 23px; }
.auth-art-brand img { width: 32px; height: 32px; image-rendering: pixelated; }
.auth-art-brand b { color: #c8ff38; }
.auth-content { min-width: 0; display: flex; flex-direction: column; padding: 24px; }
.auth-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.auth-head h2 { margin: 0; font-size: 22px; line-height: 1.5; letter-spacing: -.5px; }
.auth-close {
  flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid #485644; background: #232d24; color: #b0bcb0; cursor: pointer;
  transition: color 150ms ease,background 150ms ease;
}
.auth-close:hover { color: #e9eee6; background: #344032; }
.auth-close svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; }
.auth-hint { margin: 0 0 22px; color: #a1ada3; font-size: 11px; line-height: 1.6; }
.auth-providers { display: grid; gap: 10px; }
.auth-provider {
  --provider-bg: #eff1f3; --provider-ink: #30343a; --provider-line: #e9edf0;
  position: relative; isolation: isolate; width: 100%; min-width: 0; height: 60px; display: grid;
  grid-template-columns: 38px minmax(0,1fr) 18px; align-items: center; gap: 12px;
  padding: 0 16px; text-align: left; border: 1px solid #3f4940; color: #9ca49e;
  background: #242a26; box-shadow: 0 3px #0b110d; cursor: pointer; font-size: 15px;
  transition: color 260ms ease,border-color 260ms ease,box-shadow 260ms ease,transform 180ms ease;
}
.auth-provider::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--provider-bg); opacity: 0; transition: opacity 280ms cubic-bezier(.2,.8,.2,1); }
.auth-steam { --provider-bg: #1b344a; --provider-ink: #fff; --provider-line: #3b6079; height: 68px; font-size: 17px; }
.auth-telegram { --provider-bg: #087cac; --provider-ink: #fff; --provider-line: #29a8cd; }
.auth-provider-logo { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; filter: grayscale(1); opacity: .6; transition: filter 280ms ease,opacity 280ms ease; }
.auth-provider-logo svg { width: 28px; height: 28px; flex: none; }
.auth-steam .auth-provider-logo svg { width: 36px; height: 36px; }
.auth-provider-name { min-width: 0; }
.auth-provider-arrow { font-size: 17px; opacity: 0; transform: translateX(-4px); transition: opacity 220ms ease,transform 220ms ease; }
.auth-content.consented .auth-provider { color: var(--provider-ink); border-color: var(--provider-line); }
.auth-content.consented .auth-steam { border-color: #b2d858; box-shadow: inset 4px 0 #c8ff38,0 3px #0b110d; }
.auth-content.consented .auth-provider::before { opacity: 1; }
.auth-content.consented .auth-provider-logo { filter: grayscale(0); opacity: 1; }
.auth-content.consented .auth-provider-arrow { opacity: .65; transform: translateX(0); }
.auth-provider:disabled { cursor: default; opacity: 1; }
@media (hover:hover) { .auth-provider:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 5px #0b110d; } .auth-provider:not(:disabled):hover .auth-provider-arrow { opacity: 1; transform: translate(2px,-1px); } }
.auth-content.consented .auth-steam:not(:disabled):hover { box-shadow: inset 4px 0 #c8ff38,0 5px #0b110d; }
.auth-provider:not(:disabled):active { transform: translateY(1px); box-shadow: 0 2px #0b110d; }
.auth-content.consented .auth-steam:not(:disabled):active { box-shadow: inset 4px 0 #c8ff38,0 2px #0b110d; }
.auth-content[aria-busy="true"] .auth-provider { cursor: progress; }
.auth-consent { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 10px; align-items: start; margin-top: 24px; }
.auth-consent input {
  appearance: none; width: 20px; height: 20px; margin: 2px 0 0; border: 2px solid #62735d;
  border-radius: 0; background: #252e26; cursor: pointer; display: grid; place-items: center;
  transition: background 220ms ease,border-color 220ms ease;
}
.auth-consent input::after { content: ''; width: 10px; height: 6px; border-left: 2px solid #102000; border-bottom: 2px solid #102000; opacity: 0; transform: rotate(-45deg) scale(.6); transition: opacity 150ms ease,transform 180ms cubic-bezier(.2,.8,.2,1); }
.auth-consent input:checked { background: #c8ff38; border-color: #d7ff6d; }
.auth-consent input:checked::after { opacity: 1; transform: translateY(-1px) rotate(-45deg) scale(1); }
.auth-consent label { font-size: 11px; line-height: 1.8; cursor: pointer; }
.auth-consent a { color: #c8ff38; text-underline-offset: 3px; }
.auth-consent a:hover { text-decoration: underline; }
.auth-status { min-height: 34px; margin: 12px 0; color: #c2cbc0; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.auth-status.is-error { color: #ffacb3; }
.auth-privacy { color: #a1ada3; font-size: 9px; line-height: 1.7; margin-top: auto; text-underline-offset: 3px; }
.auth-privacy:hover { color: #d1dcc9; text-decoration: underline; }
.account-signout { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; margin-top: 22px; }
.account-signout .account-logout {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border: 2px solid #ed7d87; border-radius: 0;
  background: #b52c38; color: #fff; box-shadow: 0 4px #601a25; cursor: pointer; font-size: 11px;
  transition: background 150ms ease,box-shadow 150ms ease,transform 150ms ease;
}
.account-logout svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (hover:hover) { .account-signout .account-logout:hover { background: #cd3543; } }
.account-signout .account-logout:active { transform: translateY(2px); box-shadow: 0 2px #601a25; }
.account-signout .account-logout:disabled { cursor: progress; opacity: .7; }
#accountStatus:empty { display: none; }
#accountStatus { font-size: 10px; line-height: 1.6; color: #ffacb3; }
@keyframes auth-enter { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width:760px) {
  .header-actions .login-button { min-width: 110px; height: 38px; padding: 0 13px; gap: 8px; font-size: 12px; }
}
@media (max-width:600px) {
  .account-signout { align-items: stretch; margin-top: 18px; }
  .auth-modal .auth-card { position: relative; width: calc(100% - 24px); max-height: calc(100dvh - 24px); grid-template-columns: minmax(0,1fr); }
  .auth-art { min-height: 0; height: auto; aspect-ratio: 3 / 2; border-right: 0; border-bottom: 1px solid #3a473c; }
  .auth-character { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
  .auth-art-brand { display: none; }
  .auth-content { padding: 18px 16px 16px; }
  .auth-head { margin-bottom: 16px; }
  .auth-head h2 { font-size: 20px; }
  .auth-close { position: absolute; top: 10px; right: 10px; z-index: 1; background: #191f1be6; }
  .auth-hint { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .auth-providers { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .auth-provider { height: 56px; min-height: 56px; grid-template-columns: 30px minmax(0,1fr); padding: 0 10px; gap: 8px; font-size: 11px; }
  .auth-steam { grid-column: 1 / -1; height: 64px; min-height: 64px; grid-template-columns: 38px minmax(0,1fr); padding: 0 14px; font-size: 16px; }
  .auth-provider-arrow { display: none; }
  .auth-provider-logo { width: 30px; height: 30px; }
  .auth-provider-logo svg { width: 28px; height: 28px; }
  .auth-steam .auth-provider-logo { width: 38px; height: 38px; }
  .auth-steam .auth-provider-logo svg { width: 36px; height: 36px; }
  .auth-consent { margin-top: 22px; }
  .auth-status { margin: 10px 0; min-height: 18px; }
  .auth-status:empty { display: none; }
  .auth-privacy { font-size: 9px; margin-top: 12px; }
}
@media (max-width:360px) {
  .header-actions .login-button { min-width: 94px; padding: 0 10px; gap: 6px; font-size: 11px; }
  .auth-content { padding: 14px; }
  .auth-head h2 { font-size: 17px; letter-spacing: -.7px; }
  .auth-providers { gap: 6px; }
  .auth-provider { padding: 0 8px; gap: 6px; font-size: 10px; }
  .auth-steam { padding: 0 12px; font-size: 15px; }
  .auth-consent label { font-size: 10px; }
}
@media (max-height:520px) and (max-width:600px) { .auth-art { aspect-ratio: auto; height: 150px; } }
@media (prefers-reduced-motion:reduce) {
  .auth-modal[open] { animation: none; }
  .auth-modal[open] .auth-card { animation: none; }
  .auth-modal *,.auth-modal *::before,.auth-modal *::after,.login-button,.account-signout .account-logout { transition: none !important; }
}
