/* Account paper follows the homepage's reading face and a compact, even rhythm. */
html[data-game-ui-ready] dialog[data-view=account]{width:min(580px,calc(100% - 24px))}
html[data-game-ui-ready] dialog[data-view=account] :is(h2,p,label,input,button,.field,.account-email){font-family:var(--game-reading-font)}
html[data-game-ui-ready] dialog[data-view=account] .dialog-frame{min-height:0}
html[data-game-ui-ready] dialog[data-view=account] h2{margin:0 48px 10px 0;font-weight:500;letter-spacing:.02em}
html[data-game-ui-ready] dialog[data-view=account] .auth-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;border:0}
html[data-game-ui-ready] dialog[data-view=account] .auth-tabs button[data-game-ui]{min-width:0;width:100%;min-height:48px;padding:11px 18px;font-size:17px;letter-spacing:.02em;white-space:nowrap}
html[data-game-ui-ready] dialog[data-view=account] .auth-form{margin-top:22px;gap:18px}
html[data-game-ui-ready] dialog[data-view=account] .field{gap:7px;font-size:16px;line-height:1.5}
html[data-game-ui-ready] dialog[data-view=account] .field:has(input:focus-visible)>label{color:#8e2e25}
html[data-game-ui-ready] dialog[data-view=account] .form-message{min-height:0;margin:0;font-size:14px;line-height:1.5}
html[data-game-ui-ready] dialog[data-view=account] .form-message:empty{display:none}
html[data-game-ui-ready] dialog[data-view=account] .auth-submit[data-game-ui]{width:100%;margin-top:6px;min-height:56px;padding:13px 24px;font-size:18px;white-space:nowrap}
html[data-game-ui-ready] dialog[data-view=account] .account-email{font-size:17px;line-height:1.5;margin:0 0 8px}
html[data-game-ui-ready] dialog[data-view=account] .ownership{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 0;margin:24px 0}
html[data-game-ui-ready] dialog[data-view=account] .ownership strong{font-size:19px;font-weight:500}
html[data-game-ui-ready] dialog[data-view=account] .ownership span{font:14px/1.5 var(--game-reading-font);color:#78513b;white-space:nowrap}
html[data-game-ui-ready] dialog[data-view=account] .account-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}
html[data-game-ui-ready] dialog[data-view=account] .account-actions>[data-game-ui]{min-width:0;width:100%;padding-inline:16px;min-height:52px;font-size:16px;white-space:nowrap}

.password-paper{position:relative}
html[data-game-ui-ready] .field .password-paper input{padding-right:46px}
html[data-game-ui-ready] .password-toggle[data-game-ui=off]{position:absolute;right:0;top:50%;margin-top:-22px;transform:none;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;background:transparent;color:#69432b;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
html[data-game-ui-ready] .password-toggle[data-game-ui=off]::before,html[data-game-ui-ready] .password-toggle[data-game-ui=off]::after{content:none}
.password-toggle svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.password-toggle[aria-pressed=false] .password-eye-slash{display:none}
html[data-game-ui-ready] .password-toggle[data-game-ui=off]:is(:hover,:focus-visible){outline:none;color:#8e2e25}
.password-toggle:disabled{cursor:default;opacity:.45}
html[data-game-ui-ready] dialog[data-view=account] input:-webkit-autofill::first-line{font-family:Georgia,"Noto Serif CJK SC","STZhongsong","STSong","SimSun",serif;font-size:16px}
/* One physical size for each homepage action in either language. */
html[data-game-ui-ready] .hero-actions .button[data-game-ui]{width:180px;min-width:180px;min-height:62px;white-space:nowrap;padding-inline:24px;gap:14px}
html[data-game-ui-ready] .hero-actions .button[data-game-ui]>span:first-child{white-space:nowrap}
@media(max-width:540px){
  html[data-game-ui-ready] dialog[data-view=account] .dialog-frame{padding-block:10px 14px}
  html[data-game-ui-ready] dialog[data-view=account] h2{font-size:25px;margin-bottom:9px}
  html[data-game-ui-ready] dialog[data-view=account] .auth-tabs{gap:8px}
  html[data-game-ui-ready] dialog[data-view=account] .auth-tabs button[data-game-ui]{padding-inline:8px;font-size:15px}
  html[data-game-ui-ready] dialog[data-view=account] .auth-form{gap:16px;margin-top:18px}
  html[data-game-ui-ready] dialog[data-view=account] .field{font-size:15px}
  html[data-game-ui-ready] dialog[data-view=account] .auth-submit[data-game-ui]{font-size:17px}
  html[data-game-ui-ready] dialog[data-view=account] .ownership{align-items:flex-start;gap:10px;flex-wrap:wrap;margin:20px 0;padding:18px 0}
  html[data-game-ui-ready] dialog[data-view=account] .account-actions{gap:8px}
  html[data-game-ui-ready] dialog[data-view=account] .account-actions>[data-game-ui]{padding-inline:8px;font-size:14px}
  html[data-game-ui-ready] .hero-actions .button[data-game-ui]{width:100%;min-width:0;min-height:60px}
}
