/* Player pages use the same blue/yellow arcade palette and controls as the game. */
@import url('pages.css');

html { min-height: 100%; }
body.account-page {
  min-height: 100vh;
  background: none;
}
body.account-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(5, 15, 35, .38), rgba(5, 15, 35, .62)), url('assets/loading.jpg') center / cover;
}
[hidden] { display: none !important; }
.account-shell { width: min(960px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 48px; }
.account-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 32px; }
.account-brand { display: block; width: clamp(220px, 36vw, 400px); max-width: 100%; text-decoration: none; }
.account-brand img { display: block; width: 100%; height: auto; }
.quiet-link { font: 700 16px var(--pixel); color: #fff; text-decoration: none; text-shadow: 2px 2px #000; }
.quiet-link:hover { color: var(--yellow); }
.account-page a { text-underline-offset: 4px; }
.account-page .eyebrow { font: 700 13px var(--pixel); color: #fff; text-shadow: 2px 2px #000; letter-spacing: .04em; }
.account-page h1 { color: var(--yellow); font-size: clamp(32px, 5vw, 56px); margin: 12px 0; }
.account-page h2 { font-size: 26px; margin: 0 0 16px; }
.account-page h3 { font: 700 28px/1.25 var(--pixel); color: var(--yellow); text-shadow: 2px 2px #000; margin: 20px 0 8px; }
.account-page :is(h1,h2,h3,p) { overflow-wrap: anywhere; }
#account-status { color: #fff; font-weight: 650; text-shadow: 1px 1px #000; }
#account-status:empty { display: none; }
.account-card { padding: 24px; margin: 24px 0; background: rgba(15,35,71,.94); border: 3px solid #000; box-shadow: 6px 6px #000; }
.account-card p { margin: 12px 0 20px; }
.account-page button { cursor: pointer; }
.account-page button, .account-page .action-button { min-height: 44px; }
.action-button { display: inline-flex; justify-content: center; align-items: center; padding: 10px 18px; border: 3px solid #000; box-shadow: 4px 4px #000; background: var(--yellow); color: #000; font: 700 22px/1.2 var(--pixel); text-decoration: none; }
.action-button.secondary { background: var(--panel); color: #fff; text-shadow: 2px 2px #000; }
.action-button:hover { background: #fff; color: #000; text-shadow: none; }
.action-button:active { transform: translate(3px,3px); box-shadow: 1px 1px #000; }
.account-page button:disabled { opacity: .55; cursor: default; }
.account-page :is(a,button,input,select):focus-visible { outline: 3px solid var(--yellow); outline-offset: 5px; }
.account-form { display: grid; gap: 18px; max-width: 440px; margin: 24px 0; }
.account-form label { display: grid; gap: 8px; font: 700 16px var(--pixel); color: #fff; text-shadow: 2px 2px #000; }
.account-form :is(input,select) { font: 500 16px var(--body); min-height: 46px; width: 100%; padding: 10px 12px; color: #fff; background: #0b1a36; border: 2px solid #000; border-bottom: 3px solid var(--yellow); border-radius: 0; text-shadow: none; }
.account-form input::placeholder { color: var(--dim); opacity: 1; }
.inline-form { grid-template-columns: minmax(160px,1fr) auto; max-width: 620px; align-items: end; }
.local-note { padding: 12px 14px; border-left: 3px solid var(--yellow); background: rgba(255,226,58,.08); font-size: 13px; }
.account-page .error-message { color: #ffb8a0 !important; }
.account-nav { display: flex; justify-content: flex-start; gap: 24px; flex-wrap: wrap; margin: 28px 0; }
.account-nav :is(a,button) { font: 700 18px var(--pixel); color: var(--yellow); text-shadow: 2px 2px #000; }
.account-nav button { margin-left: auto; background: none; border: 0; text-decoration: underline; text-underline-offset: 4px; }
.account-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; border-block: 1px solid var(--line); padding: 20px 0; }
.account-stats span { display: block; color: var(--dim); font-size: 13px; }
.account-stats strong { display: block; font: 700 36px/1.4 var(--pixel); color: var(--yellow); text-shadow: 2px 2px #000; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.account-table { border-collapse: collapse; width: 100%; font-size: 14px; text-align: left; }
.account-table :is(th,td) { padding: 12px 8px; border-bottom: 1px solid var(--line); }
.account-table th { color: var(--dim); white-space: nowrap; overflow-wrap: normal; }
.team-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.account-page .team-rule { color: var(--dim); }
.invite-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.invite-row code { color: var(--yellow); padding: 8px 12px; border: 2px dashed var(--yellow); background: #0b1a36; letter-spacing: .12em; font-size: 17px; }
.account-page footer { color: #fff; border: 0; text-shadow: 1px 1px #000; }
.account-page footer a { color: #fff; }
body[data-account='guest'] .account-shell { width: min(640px, calc(100% - 40px)); }
body[data-account='guest'] .account-header { justify-content: center; margin-bottom: 20px; }
body[data-account='guest'] .eyebrow { margin: 12px 0 4px; }
body[data-account='guest'] .quiet-link { position: absolute; top: 28px; right: 28px; }
body[data-account='guest'] :is(.eyebrow,h1,#account-status,footer) { text-align: center; }
body[data-account='guest'] h1 { font-size: clamp(36px, 5vw, 60px); margin: 8px 0; }
#sign-in-panel { max-width: 480px; margin: 16px auto; padding: 20px; }
#sign-in-panel p { margin: 8px 0 16px; }
#sign-in-panel h2 { font-size: 22px; color: #fff; }
#sign-in-panel .account-form { max-width: none; margin: 20px 0; gap: 16px; }
@media (max-width: 700px) {
  body[data-account='guest'] .quiet-link { position: static; }
  .account-header { flex-direction: column; align-items: center; gap: 16px; margin-bottom: 24px; }
}
@media (max-width: 600px) {
  .account-shell, body[data-account='guest'] .account-shell { width: calc(100% - 28px); padding-top: 24px; }
  .account-card { padding: 18px; }
  .team-forms, .inline-form { grid-template-columns: 1fr; gap: 16px; }
  .account-nav { gap: 16px; }
  .account-nav button { margin-left: 0; }
  .account-stats { gap: 8px; }
  .account-stats strong { font-size: 28px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .account-table { font-size: 12px; overflow-wrap: anywhere; }
  .action-button { font-size: 18px; }
}
