/* Presentation only: all forms, actions and visibility states remain owned by panel.mjs. */
.account-page { background: linear-gradient(#f7f5f0ed, #f7f5f0ed), url('/assets/background-texture.avif') center top / 1600px auto repeat; }
.account-page .panel-main { width: min(1240px, calc(100% - 96px)); padding: 72px 0 100px; }
.account-page .header { height: 88px; gap: 24px; background: #fbfaf7ed; }
.panel-session { display: flex; align-items: center; gap: 22px; margin-left: auto; min-width: 0; }
.account-page:not(:has(#dashboard:not([hidden]))) .panel-session { display: none; }
.panel-session #username { max-width: min(32vw, 360px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #77736b; font-size: 13px; }
.panel-session #logout { border-left: 1px solid var(--line); padding: 10px 0 10px 22px; white-space: nowrap; font-size: 12px; }
.account-page .panel-intro { margin-bottom: 64px; text-align: center; }
.account-page .panel-intro h1 { font: 400 clamp(34px, 4vw, 46px)/1.2 var(--serif); letter-spacing: .07em; }
.panel-ornament { display: flex; align-items: center; justify-content: center; gap: 12px; max-width: 260px; margin: 24px auto 0; }
.panel-ornament::before, .panel-ornament::after { content: ''; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, #b78a3c88); }
.panel-ornament::after { transform: rotate(180deg); }
.panel-ornament span { width: 6px; height: 6px; border: 1px solid var(--gold); transform: rotate(45deg); }
.account-page #message:empty { display: none; }
.account-page .feedback { max-width: 760px; margin: 0 auto 28px; overflow-wrap: anywhere; }
.account-page .dashboard-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 64px; align-items: start; }
.account-page .dashboard-grid > div { min-width: 0; }
.account-page .dashboard-grid > div:last-child { border-left: 1px solid var(--line); padding-left: 40px; }
.account-page h2 { font-size: 30px; font-weight: 400; line-height: 1.2; }
.game-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 30px; }
.game-section-heading .meta { margin-top: 10px; font-size: 13px; letter-spacing: .04em; }
.account-page .create-shortcut { gap: 8px; font-size: 10px; padding-inline: 18px; }
.account-page #accounts { display: grid; gap: 16px; }
.account-page #accounts:not(:has(.account-item)) { display: none; }
.account-page .account-item { margin: 0; padding: 24px; border: 1px solid #b78a3c40; background: #fbfaf780; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.account-page .account-item > strong { font: 400 24px/1.2 var(--serif); min-width: 0; overflow-wrap: anywhere; }
.account-page .account-controls { gap: 14px; flex-shrink: 0; }
.account-page .text-button { min-height: 44px; color: var(--gold-dark); }
.account-page .account-controls .text-button { font-size: 12px; }
.account-page .create-title { margin: 60px 0 24px; }
.account-page .dashboard-grid > div:first-child:not(:has(.account-item)) .create-title { margin-top: 8px; }
.account-page .dashboard-grid > div:first-child:not(:has(.account-item)) .create-shortcut { display: none; }
.account-page #create { width: 100%; max-width: 560px; margin-top: 0; scroll-margin-top: 120px; }
.account-page input { width: 100%; height: 50px; padding: 12px 15px; border: 1px solid #b78a3c59; border-radius: 0; background: #fbfaf7; color: var(--ink); box-shadow: none; }
.account-page input:focus { outline: 1px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.account-page label { margin-top: 20px; margin-bottom: 8px; font-size: 13px; color: #554b3c; }
.account-page .form-hint { font-size: 13px; line-height: 1.65; margin: 8px 0 16px; color: #77736b; }
.account-page form > .button { margin-top: 24px; min-height: 50px; }
.account-page #selected-account { margin: 12px 0 20px; overflow-wrap: anywhere; }
.account-page .character { position: relative; padding: 22px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; }
.account-page .character h3 { font: 400 20px/1.3 var(--serif); overflow-wrap: anywhere; }
.account-page .character p { grid-column: 1; font-size: 13px; line-height: 1.7; margin-top: 5px; }
.account-page .character .text-button { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; padding: 8px 14px; border: 1px solid var(--line); background: #fbfaf780; font-size: 12px; }
.account-page .auth-panel { max-width: 560px; margin-inline: auto; }
.account-page .tabs { gap: 30px; margin-bottom: 30px; }
.account-page .tabs button { min-height: 48px; font: 400 24px/1.3 var(--serif); }
.account-page .auth-panel details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.account-page .auth-panel summary { cursor: pointer; color: var(--gold-dark); min-height: 32px; }
.account-page dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100svh - 40px); padding: 36px; border: 1px solid #b78a3c88; background: #fbfaf7; }
.account-page dialog::backdrop { background: #201e1b66; }
.account-page dialog h2 { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.account-page dialog p { font-size: 13px; line-height: 1.7; }
.account-page dialog .actions { gap: 16px; flex-wrap: wrap; }
.account-page dialog .actions .button { flex: 1; }
.account-page.awaiting-verification { background: #fff; }
@media (max-width: 1023px) {
  .account-page .dashboard-grid { grid-template-columns: 1fr; gap: 60px; }
  .account-page .dashboard-grid > div:last-child { border-left: 0; border-top: 1px solid var(--line); padding: 36px 0 0; }
}
@media (max-width: 767px) {
  .account-page .panel-main { width: calc(100% - 36px); padding: 48px 0 70px; }
  .account-page .header { height: auto; min-height: 72px; gap: 10px; padding: 12px 18px; flex-wrap: wrap; }
  .account-page .header .brand { flex-shrink: 0; }
  .panel-session { gap: 10px; }
  .panel-session #username { max-width: 120px; font-size: 11px; }
  .panel-session #logout { padding-left: 10px; font-size: 11px; }
  .account-page .panel-intro { margin-bottom: 44px; }
  .game-section-heading { align-items: stretch; flex-direction: column; }
  .account-page .account-item { padding: 22px 20px; flex-wrap: wrap; }
  .account-page .account-controls { width: 100%; justify-content: space-between; }
  .account-page #create > .button, .account-page .auth-panel form > .button { width: 100%; }
  .account-page dialog { padding: 24px; }
}
@media (max-width: 419px) {
  .account-page .header .brand > span { display: none; }
  .panel-session #username { max-width: 110px; }
  .account-page .panel-intro h1 { font-size: 32px; letter-spacing: .04em; }
  .panel-ornament { max-width: 160px; }
  .account-page .character { grid-template-columns: 1fr; }
  .account-page .character .text-button { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 14px; }
}
