/* gate/css/gate-account.css - GENERATED by gate/tools/gate-copy-account-css.mjs
 * on 2026-09-28 from the main game's index.html. DO NOT EDIT BY HAND:
 * re-run the tool. These are the main game's own sign-in / create-account dialog styles, so the
 * dialog looks identical in every game (the founder's rule: one account system, one look).
 * Relative url(assets/...) paths are rewritten root-relative (/assets/...) so they resolve from here. */
:root {
    --candy-pink:   #FF8FC7;
    --lavender:     #C9A8F5;
    --mint-teal:    #7FE0D6;
    --gold:         #F5C242;
    --parchment:    #FBF3E7;
    --obsidian:     #14121A;
    --sky-indigo:   #241A3D;
    --toxic-green:  #6BE04A;
    --muted:        #8E7FB0;
    --font: 'Trebuchet MS', 'Lucida Grande', Verdana, sans-serif;
}
html[data-device="phone"] .ud-overlay { padding: 6px 8px 14px; }
html[data-device="phone"] .ud-sheet { max-width: min(680px, 100%); padding: 12px 12px 14px; border-radius: 10px; font-size: 12px; }
html[data-device="phone"] .ud-sheet h1 { font-size: 18px; }
html[data-device="phone"] .ud-sheet h2, html[data-device="phone"] .ud-sheet h3 { font-size: 14px; }
html[data-device="phone"] .ud-sheet p { margin: 4px 0; }
html[data-device="phone"] .ud-btn { padding: 6px 10px; font-size: 12px; }
html[data-device="phone"] .ud-prof-avatar { width: 52px !important; height: 52px !important; }
html[data-device="phone"] .ud-prof-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 6px !important; }
html[data-device="phone"] .ud-prof-card { padding: 8px !important; }
html[data-device="phone"] .ud-overlay input, html[data-device="phone"] .ud-overlay select,
  html[data-device="phone"] .ud-overlay textarea { font-size: 16px; }
@keyframes ud-rotate-hint {
    0%, 20% { transform: rotate(0deg); }
    55%, 80% { transform: rotate(-90deg); }
    100% { transform: rotate(0deg); }
  }
.ud-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    overflow-y: auto;
    padding: 24px 16px 40px;
    background: rgba(12, 9, 20, 0.93);
    backdrop-filter: blur(3px);
  }
.ud-overlay.is-open { display: block; }
body.ud-modal-open { overflow: hidden; }
.ud-sheet {
    max-width: 1180px;
    margin: 0 auto;
    padding: 26px 30px 30px;
    /* Roof-violet 3-stop ramp pulled from assets/mockup.png, replacing the
       flat 2-stop fill (docs/art-direction-brief.md Part 2 §14): the CSS
       equivalent of the sprite ladder's "light" and "rim" steps. */
    background: linear-gradient(180deg, #6B4E96 0%, #4A3568 46%, #2A1F42 100%);
    border: 1px solid rgba(245, 194, 66, 0.42);
    border-radius: 14px;
    box-shadow:
      inset 0 1px 0 rgba(155, 127, 201, 0.35),
      0 30px 80px rgba(0, 0, 0, 0.6);
  }
.ud-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
  }
.ud-title {
    margin: 0;
    font-size: 27px;
    letter-spacing: 0.13em;
    color: var(--parchment);
  }
.ud-sub {
    margin: 7px 0 0;
    max-width: 620px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--lavender);
  }
.ud-unverified {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 9px 14px;
    border: 1px solid rgba(245, 194, 66, 0.5);
    border-radius: 8px;
    background: rgba(245, 194, 66, 0.08);
    font-size: 11px;
    max-width: 320px;
  }
.ud-unverified strong { color: var(--gold); letter-spacing: 0.1em; }
.ud-unverified span { color: var(--muted); line-height: 1.45; }
.ud-unverified.is-verified {
    border-color: rgba(127, 224, 214, 0.5);
    background: rgba(127, 224, 214, 0.08);
  }
.ud-unverified.is-verified strong { color: var(--mint-teal); }
.ud-warn {
    margin: 14px 0 0;
    padding: 9px 13px;
    border-left: 3px solid var(--gold);
    background: rgba(245, 194, 66, 0.09);
    font-size: 12px;
    color: var(--parchment);
  }
.ud-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
  }
.ud-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 150px;
    min-width: 120px;
  }
.ud-field span {
    font-size: 10px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
  }
.ud-field input,
  .ud-field select {
    padding: 8px 10px;
    font-family: var(--font);
    font-size: 14px;
    color: var(--parchment);
    background: rgba(12, 9, 20, 0.6);
    border: 1px solid rgba(201, 168, 245, 0.35);
    border-radius: 6px;
  }
.ud-field input:focus,
  .ud-field select:focus {
    outline: 2px solid var(--mint-teal);
    outline-offset: 1px;
    border-color: var(--mint-teal);
  }
.ud-field select option { background: #221A3B; color: var(--parchment); }
.ud-btn {
    padding: 9px 17px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: bold;
    color: var(--obsidian);
    /* Vertical light-top/dark-bottom ramp on the flat fill, plus a warm-gold
       inset highlight on the top edge only: the button equivalent of the
       sprites' top-key light + rim (docs/art-direction-brief.md Part 2 §14).
       Ghost/danger/remove variants override background to transparent but
       still inherit this inset highlight as a subtle rim on their border. */
    background: linear-gradient(180deg, #FFC3E2 0%, var(--candy-pink) 45%, #E077AF 100%);
    border: 2px solid var(--gold);
    border-radius: 7px;
    box-shadow: inset 0 1px 0 rgba(255, 224, 168, 0.65);
    cursor: pointer;
    /* a link drawn as a button (Open my profile, the admin links) carries no underline */
    text-decoration: none;
  }
.ud-btn:hover { filter: brightness(1.08); }
.ud-btn:focus-visible { outline: 2px solid var(--mint-teal); outline-offset: 2px; }
.ud-btn:disabled {
    background: linear-gradient(180deg, #5A4E72 0%, #4A4060 55%, #3A3250 100%);
    color: var(--muted);
    border-color: #4A4060;
    box-shadow: none;
    cursor: not-allowed;
    filter: none;
  }
.ud-btn--ghost {
    color: var(--parchment);
    background: transparent;
    border-color: var(--lavender);
  }
.ud-btn--danger {
    color: #FFD9E9;
    background: transparent;
    border-color: #B0688E;
  }
.ud-btn--primary { font-size: 15px; padding: 11px 24px; }
@keyframes ud-fav-pop {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.22); }
    100% { transform: scale(1); }
  }
.ud-notice {
    margin: 14px 0 0;
    padding: 9px 13px;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.5;
  }
.ud-notice--ok { background: rgba(107, 224, 74, 0.12); color: #B6F3A2; }
.ud-notice--warn { background: rgba(245, 194, 66, 0.12); color: #F7DA9A; }
.ud-notice--bad { background: rgba(176, 104, 142, 0.18); color: #FFD9E9; }
.ud-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 26px;
    padding-top: 17px;
    border-top: 1px solid rgba(201, 168, 245, 0.22);
    flex-wrap: wrap;
  }
.ud-summary { margin: 0; font-size: 12px; color: var(--muted); }
.ud-actions { display: flex; gap: 11px; flex-wrap: wrap; }
.ud-sheet--narrow { max-width: 620px; }
.ud-overlay--account.is-open { display: flex; flex-direction: column; align-items: center; justify-content: safe center; }
.ud-overlay--account .ud-sheet { margin: 0 auto; width: 100%; flex: 0 0 auto; }
.ud-sheet--account { overflow: hidden; padding-top: 0; }
.ud-acct-art {
    position: relative;
    height: 168px;
    margin: 0 -30px 18px;
    background:
      linear-gradient(180deg, rgba(20, 14, 32, 0.15) 0%, rgba(42, 31, 66, 0.35) 55%, #6B4E96 100%),
      url('/assets/concepts/shadowcorn-gods/web/01-hollow-sovereign.jpg') center 22% / cover no-repeat;
  }
.ud-acct-art::after {
    content: '';
    position: absolute; inset: 0;
    box-shadow: inset 0 -40px 60px -30px #6B4E96, inset 0 1px 0 rgba(255, 255, 255, 0.08);
    pointer-events: none;
  }
.ud-acct-art-line {
    position: absolute; left: 30px; bottom: 12px;
    font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--gold);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 14px rgba(0, 0, 0, 0.6);
  }
html[data-device="phone"] .ud-acct-art { height: 120px; margin: 0 -14px 14px; }
html[data-device="phone"] .ud-acct-art-line { left: 14px; }
html[data-device="phone"] .ud-sheet--account { padding-top: 0; }
.ud-overlay--account .ud-acct-form .ud-row { margin-top: 12px; }
.ud-overlay--account .ud-acct-form .ud-row[hidden] { display: none; }
.ud-overlay--account .ud-field input {
    border-color: rgba(201, 168, 245, 0.35);
    background: rgba(12, 9, 20, 0.5);
  }
.ud-overlay--account .ud-field input:focus { border-color: var(--gold); outline: none; }
.ud-overlay--account .ud-acct-hint { color: var(--lavender); }
.ud-prof { margin-top: 14px; }
.ud-prof[hidden] { display: none; }
.ud-prof-head { display: flex; gap: 16px; align-items: center; }
.ud-prof-avatar {
    width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: 0 0 84px;
    border: 2px solid var(--gold);
    box-shadow: 0 0 0 3px rgba(20, 14, 32, 0.9), 0 0 18px rgba(245, 194, 66, 0.35);
    background: #14121A;
  }
.ud-prof-words { flex: 1 1 200px; min-width: 0; }
.ud-prof-side { margin: 0 0 4px; font-size: 11px; letter-spacing: 0.08em; font-weight: 700; padding: 3px 8px; border-radius: 8px; display: inline-block; }
.ud-prof-wallet { margin: 0 0 6px; font-size: 11px; color: var(--lavender); }
.ud-passkey-ask { margin: 0 0 14px; padding: 12px 14px; border: 1px solid rgba(107, 224, 74, 0.45); border-radius: 10px; }
.ud-passkey-ask strong { display: block; font-size: 15px; margin-bottom: 4px; }
.ud-passkey-ask .ud-actions { margin-top: 8px; }
.ud-btn--danger { border-color: #6BE04A; color: #6BE04A; }
.ud-btn--danger:disabled { opacity: 0.55; }
.ud-prof-title { margin: 0; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.ud-prof-line { margin: 5px 0 0; font-size: 12px; line-height: 1.45; color: var(--lavender); font-style: italic; }
.ud-prof-avatar-btn { margin-top: 8px; font-size: 12px; padding: 6px 12px; }
.ud-prof-picker { margin-top: 12px; padding: 10px 12px; border: 1px solid rgba(201, 168, 245, 0.3); border-radius: 9px; background: rgba(12, 9, 20, 0.45); }
.ud-prof-picker[hidden] { display: none; }
.ud-prof-picker-label { margin: 6px 0 6px; font-size: 10px; letter-spacing: 0.12em; color: var(--muted); }
.ud-prof-picker-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ud-prof-pick {
    width: 60px; height: 60px; padding: 0; border-radius: 50%; overflow: hidden; cursor: pointer;
    border: 2px solid rgba(201, 168, 245, 0.35); background: #14121A;
    transition: transform 0.12s ease, border-color 0.12s ease;
  }
.ud-prof-pick img { width: 56px; height: 56px; object-fit: cover; display: block; border-radius: 50%; }
.ud-prof-pick:hover { transform: scale(1.08); border-color: var(--mint-teal); }
.ud-prof-pick.is-on { border-color: var(--gold); box-shadow: 0 0 12px rgba(245, 194, 66, 0.5); }
.ud-prof-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-top: 14px; }
.ud-prof-card {
    padding: 10px 12px; border-radius: 9px;
    background: rgba(12, 9, 20, 0.45); border: 1px solid rgba(127, 224, 214, 0.22);
  }
.ud-prof-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ud-prof-card-head strong { font-size: 13px; letter-spacing: 0.06em; color: var(--parchment); }
.ud-prof-card-head span { font-size: 10px; color: var(--muted); }
.ud-prof-wl { display: flex; align-items: baseline; gap: 4px; margin-top: 8px; font-size: 11px; color: var(--muted); }
.ud-prof-wl b { font-size: 20px; line-height: 1; }
.ud-prof-wl b + span { margin-right: 10px; }
.ud-prof-w { color: var(--mint-teal); }
.ud-prof-l { color: #FF8FA3; }
.ud-prof-pct { margin-left: auto; color: var(--gold); font-size: 11px; }
.ud-prof-bar { height: 5px; border-radius: 3px; background: rgba(255, 143, 163, 0.25); margin-top: 7px; overflow: hidden; }
.ud-prof-bar-fill { height: 100%; background: linear-gradient(90deg, var(--mint-teal), var(--gold)); }
.ud-prof-extras { margin: 7px 0 0; font-size: 10px; line-height: 1.45; color: var(--muted); }
.ud-prof-deck { margin-top: 10px; font-size: 12px; padding: 6px 12px; }
.ud-prof-overall {
    grid-column: 1 / -1; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap;
    padding: 8px 12px; border-radius: 9px; background: rgba(245, 194, 66, 0.08); border: 1px solid rgba(245, 194, 66, 0.35);
  }
.ud-prof-overall strong { font-size: 11px; letter-spacing: 0.12em; color: var(--gold); }
.ud-prof-overall span { font-size: 12px; color: var(--parchment); }
.ud-acct-current {
    margin-top: 20px;
    padding: 16px 18px;
    background: rgba(12, 9, 20, 0.34);
    border: 1px solid rgba(127, 224, 214, 0.3);
    border-radius: 9px;
  }
.ud-acct-name {
    margin: 0;
    font-size: 21px;
    font-weight: bold;
    color: var(--mint-teal);
    /* A handle is player-typed and can be 24 characters of anything, so it is
       wrapped rather than allowed to push the panel wider than the sheet. */
    overflow-wrap: anywhere;
  }
.ud-acct-meta {
    margin: 7px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
  }
.ud-acct-current .ud-actions { margin-top: 15px; }
.ud-acct-form { margin-top: 20px; }
.ud-acct-form .ud-field { flex: 1 1 220px; }
.ud-acct-hint {
    margin: 11px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--gold);
  }
.ud-acct-actions { margin-top: 18px; }
.ud-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 15px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--lavender);
    cursor: pointer;
  }
.ud-check--show { margin-top: 8px; font-size: 11px; color: var(--muted); }
.ud-inv-tip .ud-btn { color: #2A1F42; border-color: rgba(42, 31, 66, 0.4); }
@keyframes ud-claim-pulse { 0%, 100% { box-shadow: 0 3px 10px rgba(0,0,0,0.4), 0 0 0 0 rgba(245, 194, 66, 0.5); } 50% { box-shadow: 0 3px 10px rgba(0,0,0,0.4), 0 0 0 6px rgba(245, 194, 66, 0); } }
.ud-passkeys { margin-top: 14px; }
.ud-passkeys[hidden] { display: none; }
.ud-passkey { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid rgba(201, 168, 245, 0.18); font-size: 12px; color: var(--parchment); }
.ud-btn--tiny { font-size: 11px; padding: 4px 10px; }
.ud-btn--passkey { border-color: rgba(127, 224, 214, 0.5); color: var(--mint-teal); }
.ud-btn--hello { border-color: var(--mint-teal); background: rgba(127, 224, 214, 0.14); font-weight: 700; }
.ud-btn--hello::before { content: '\25C9'; margin-right: 6px; }
.ud-tfa { margin-top: 14px; padding-top: 10px; border-top: 1px solid rgba(201, 168, 245, 0.18); }
.ud-tfa[hidden] { display: none; }
.ud-tfa-head { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.ud-tfa-head strong { color: var(--parchment); letter-spacing: 0.06em; font-size: 12px; }
.ud-tfa .ud-actions { margin-top: 8px; }
.ud-tfa-panel { margin-top: 10px; padding: 10px 12px; border: 1px solid rgba(245, 194, 66, 0.35); border-radius: 9px; background: rgba(12, 9, 20, 0.45); }
.ud-tfa-panel[hidden] { display: none; }
.ud-tfa-secret { margin: 6px 0; font-family: ui-monospace, Consolas, monospace; font-size: 16px; letter-spacing: 0.12em; color: var(--gold); user-select: all; }
.ud-tfa-link { font-size: 12px; color: var(--mint-teal); }
.ud-tfa-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; margin: 8px 0 10px; }
.ud-tfa-codes code { font-family: ui-monospace, Consolas, monospace; font-size: 14px; letter-spacing: 0.08em; color: var(--parchment); background: rgba(12, 9, 20, 0.6); padding: 5px 8px; border-radius: 6px; text-align: center; user-select: all; }
.ud-tfa-step {
    margin-top: 14px; padding: 16px 16px 14px; border-radius: 12px;
    border: 2px solid var(--mint-teal);
    background: linear-gradient(180deg, rgba(127, 224, 214, 0.16), rgba(12, 9, 20, 0.55));
    box-shadow: 0 0 0 1px rgba(127, 224, 214, 0.25), 0 0 26px rgba(127, 224, 214, 0.28);
    animation: ud-tfa-in 0.45s ease-out, ud-tfa-glow 1.1s ease-in-out 0.45s 2;
  }
.ud-tfa-step[hidden] { display: none; }
.ud-tfa-step-head { display: flex; gap: 14px; align-items: center; }
.ud-tfa-shield { flex: 0 0 52px; width: 52px; height: 52px; color: var(--mint-teal); filter: drop-shadow(0 0 8px rgba(127, 224, 214, 0.55)); }
.ud-tfa-step-words { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ud-tfa-step-title { font-size: 19px; letter-spacing: 0.04em; color: var(--mint-teal); line-height: 1.2; }
.ud-tfa-step-line { font-size: 13px; line-height: 1.45; color: var(--parchment); }
.ud-tfa-step-note { display: block; margin-top: 8px; font-size: 11px; color: var(--muted); }
.ud-overlay--account .ud-tfa-step .ud-field span { color: var(--mint-teal); font-weight: 700; letter-spacing: 0.08em; }
.ud-overlay--account .ud-tfa-step .ud-field input {
    font-family: ui-monospace, Consolas, monospace; font-size: 28px; letter-spacing: 0.35em; text-align: center;
    padding: 10px 12px; color: var(--mint-teal);
    border: 2px solid var(--mint-teal); background: rgba(12, 9, 20, 0.75);
  }
.ud-overlay--account .ud-tfa-step .ud-field input::placeholder { color: rgba(127, 224, 214, 0.28); }
.ud-overlay--account .ud-tfa-step .ud-field input:focus { border-color: var(--mint-teal); box-shadow: 0 0 0 3px rgba(127, 224, 214, 0.3); }
.ud-overlay--account .ud-acct-form--2fa > :not(.ud-tfa-step):not(.ud-acct-actions) { display: none; }
.ud-overlay--account .ud-acct-form--2fa .ud-btn--passkey { display: none; }
.ud-overlay--account .ud-sheet--2fa .ud-title { color: var(--mint-teal); }
@keyframes ud-tfa-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes ud-tfa-glow {
    0%, 100% { box-shadow: 0 0 0 1px rgba(127, 224, 214, 0.25), 0 0 26px rgba(127, 224, 214, 0.28); }
    50% { box-shadow: 0 0 0 4px rgba(127, 224, 214, 0.45), 0 0 44px rgba(127, 224, 214, 0.6); }
  }
@media (prefers-reduced-motion: reduce) {
.ud-tfa-step { animation: none; }
}
.ud-sides-slot { margin-top: 22px; padding-top: 16px; border-top: 1px dashed rgba(255, 90, 90, 0.45); }
.ud-sides-slot[hidden] { display: none; }
.ud-sides-slot .ud-prof-sides { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.ud-btn.ud-btn--sides {
    display: inline-flex; align-items: center; gap: 10px;
    color: #FF6B6B; border: 2px solid #FF4D4D; background: rgba(255, 60, 60, 0.12);
    font-weight: 700; letter-spacing: 0.04em;
  }
.ud-btn.ud-btn--sides:hover, .ud-btn.ud-btn--sides:focus-visible { background: rgba(255, 60, 60, 0.24); color: #FF8A8A; }
.ud-warn-tri { width: 20px; height: 20px; flex: 0 0 20px; color: #FF4D4D; }
.ud-sides-hint { margin: 0; font-size: 12px; line-height: 1.5; color: #FF9A9A; max-width: 460px; }
.ud-check input {
    /* 2px down, to sit on the first line's baseline rather than its top. */
    margin: 2px 0 0;
    accent-color: var(--mint-teal);
    flex: 0 0 auto;
  }
.ud-check[hidden] { display: none; }
.ud-field[hidden] { display: none; }
.ud-row[hidden] { display: none; }
@keyframes ud-sheen {
    0%, 65%  { transform: translateX(-85%); }
    100%     { transform: translateX(85%); }
  }
.ud-prof-honors { margin-top: 14px; padding-top: 10px; border-top: 1px solid rgba(201,168,245,0.25); }
.ud-prof-honor.is-dim { opacity: 0.5; }
.ud-prof-honors--house { border-top: none; margin-top: 10px; padding-top: 0; }
.ud-prof-honors > strong { display: block; letter-spacing: 2px; color: #F5C242; font-size: 12px; margin-bottom: 8px; }
.ud-prof-honor-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.ud-prof-honor { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(20,18,26,0.7); border: 1px solid rgba(201,168,245,0.25); }
.ud-prof-honor .ud-prof-ribbon { grid-row: 1 / span 2; display: inline-block; min-width: 40px; text-align: center; padding: 6px 6px; border-radius: 8px; color: #14121A; font-weight: 700; font-size: 12px; clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%); }
.ud-prof-honor b { font-size: 13px; color: #FBF3E7; }
.ud-prof-honor span:last-child { font-size: 11px; color: #C9A8F5; }
