/* Account page and signed-out home (owner, 11 Nov 2026). The sign-in tile uses the game's art: the engraved Play frame and
   palette, the bridge art under a dark veil, Forged titles and the shared buttons and fields (brand.css, experience.css). */
html[data-section=account] {
  --frame: url('../assets/ui/themes/game.webp');
  --gold: #f0c2ad; --line: #8a5151; --metal-light: #e7b49b; --metal-dark: #7c4646;
  --section-tint: #4c292d; --section-shadow: #221318;
}
html[data-section=account] .topbar { display: none; }
.account-wrap { display: grid; justify-items: center; gap: 10px; min-height: 100vh; align-content: center; padding: 24px 16px 40px; box-sizing: border-box; }
.account-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.account-emblem { width: clamp(54px, 9vw, 84px); height: auto; filter: drop-shadow(0 6px 12px #000a); }
.account-wordmark { width: clamp(200px, 40vw, 340px); height: auto; filter: drop-shadow(0 8px 16px #0009); }
.account-page { position: relative; isolation: isolate; overflow: hidden; width: min(460px, 100%); box-sizing: border-box; padding: clamp(14px, 3vw, 24px) !important; }
.account-page::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, #24151cd9 0%, #18101ae6 45%, #120c15f2 100%), url('../assets/ui/bridge.webp') center 30% / cover; opacity: .9; }
.account-head { text-align: center; margin-bottom: 12px; }
.account-head h1 { margin: 0; color: var(--metal-light); font-size: clamp(1.4rem, 4vw, 1.9rem); text-shadow: 0 2px 4px #000; }
.account-head p { margin: 4px 0 0; font-size: .9rem; }
.account-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 12px; padding: 4px; border: 1px solid var(--metal-dark); border-radius: 6px; background: #100c17bf; }
.account-page .account-tabs button { min-height: 40px; background: transparent !important; border-color: transparent !important; box-shadow: none !important; color: #b9978a; }
.account-page .account-tabs button:hover { color: #f3d3c4; }
.account-page .account-tabs button[aria-selected=true] { background: linear-gradient(165deg,#7a4446 0%,#3f2228 45%,#1e1117 60%,#55303a 100%) !important;
  border-color: var(--metal-light) !important; color: #fff0e2; box-shadow: inset 0 1px 0 #f0c2ad88, 0 2px 8px #000a, 0 0 12px #e7b49b33 !important; }
.account-page form label { display: block; margin: 10px 0 4px; color: var(--metal-light); font-size: .9rem; }
.account-page form input { width: 100%; box-sizing: border-box; min-height: 40px; }
.account-page form > button, .account-page #registerFields + button { margin-top: 16px; width: 100%; min-height: 44px; }
.account-page #play a { color: var(--metal-light); }
.account-page #logout { margin-top: 8px; }
#accessKey, #testerCode { font-family: ui-monospace, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.account-hint { margin: 6px 0 0; font-size: 12px; color: #c9b1a6; }
#accountStatus:empty { display: none; }
#accountStatus { margin: 8px 0; padding: 6px 10px; border: 1px solid var(--metal-dark); border-radius: 5px; background: #100c17bf; color: #f3c98a; }

/* signed out: the portrait spot asks to sign in */
.home-profile-controls.home-guest { padding: 4px 6px; gap: 6px; }
.home-signin { display: inline-flex; align-items: center; gap: 8px; padding-right: 12px; color: #ffe4ae; font-weight: 700; text-decoration: none; }
.home-signin-face { display: grid; place-items: center; width: clamp(58px,8vw,84px); height: clamp(58px,8vw,84px); border: 3px double #e4bd78; border-radius: 50%;
  background: radial-gradient(circle at 35% 25%,#704968,#2b1a35 75%); box-shadow: 0 0 0 2px #4a2d2e, 0 0 13px #a9705655; color: #eec990; }
.home-signin-face svg { width: 55%; height: 55%; }
.home-signin:is(:hover,:focus-visible) .home-signin-face { box-shadow: 0 0 0 2px #4a2d2e, 0 0 18px #e4bd78aa; }
.home-signin-create { padding: 8px 12px; border: 1px solid #ab8251; border-radius: 20px; color: #eec990; font-size: .875rem; text-decoration: none; }
.home-signin-create:is(:hover,:focus-visible) { background: #4d3453; color: #fff0c9; }
@media (max-width: 590px) { .home-signin-face { width: 56px; height: 56px; } }

/* Email confirmation shares the account tile on desktop and narrow screens. */
.account-page :is(#emailPending,#emailConfirmation) { overflow-wrap: anywhere; line-height: 1.5; }
.account-page :is(#emailPending,#emailConfirmation) h2 { font-size: 1.2rem; line-height: 1.3; }
.account-page :is(#emailPending,#emailConfirmation) button { display: block; width: 100%; min-height: 44px; margin: 8px 0; white-space: normal; }
