:root { color-scheme: light; font-family: Verdana, Arial, sans-serif; font-size: 13px; }
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; color: #2b2117;
  background: #15100c url("assets/login-background-76.webp") center top / cover fixed no-repeat;
}
.site-shell { width: min(1120px, calc(100% - 24px)); margin: 20px auto 50px; }
.recovery-main { width: min(680px, calc(100% - 24px)); }
.recovery-form { display: grid; gap: 10px; }
#recovery-message:empty { display: none; }
#recovery-message.error { color: #971e12; }
#recovery-message.success { color: #27630f; }
header {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 15px 20px;
  color: #f4df9e; text-shadow: 2px 2px #000; background: rgba(25, 15, 8, .9);
  border: 2px ridge #9e814f;
}
header h1 { margin: 0; font: bold 30px Georgia, serif; letter-spacing: 1px; }
header p { margin: 2px 0 0; }
header nav { display: flex; align-items: center; justify-content: flex-end; gap: 4px; flex-wrap: wrap; }
header nav > a:not(.stone-button) { color: #e9cf87; padding: 6px 8px; font-weight: bold; text-decoration: none; }
header nav > a:hover { color: #fff4bf; }
.stone-button, button {
  border: 2px outset #ac9368; background: #d1ba87; color: #21180e; padding: 5px 11px;
  font: bold 12px Verdana, sans-serif; cursor: pointer; text-decoration: none;
}
.stone-button:active, button:active { border-style: inset; }
.stone-button.primary, button.primary { background: #d8b957; border-color: #d9bd78; }
.stone-button.large { display: inline-block; margin-top: 8px; padding: 8px 15px; font-size: 13px; }
.parchment {
  margin-top: 12px; padding: 14px; border: 2px ridge #9e814f;
  background: rgba(239, 222, 176, .96); box-shadow: 0 2px 10px #0009;
}
h2 { margin: 0 0 10px; color: #5a270d; font: bold 17px Georgia, serif; }
.eyebrow { margin: 0 0 4px; color: #8a5d20; font-size: 10px; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; }
.welcome-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 24px; align-items: center; }
.welcome-card > div > p:not(.eyebrow) { max-width: 650px; line-height: 1.5; }
.quick-steps { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.quick-steps li { display: flex; align-items: center; gap: 9px; padding: 8px; background: #dec994; border: 1px solid #ae9361; }
.quick-steps strong { display: grid; place-items: center; width: 24px; height: 24px; color: #fff0b6; background: #704b24; border-radius: 50%; }
.account-box { min-height: 88px; }
#house-login-form, .filters { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
#house-login-pane > p { margin: -4px 0 12px; }
.account-heading, .section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.account-heading h2, .section-heading h2 { margin-bottom: 0; }
.account-character-picker { margin-left: auto; min-width: 180px; }
.character-stats { display: flex; gap: 7px; flex-wrap: wrap; margin: 12px 0; }
.character-stats span { padding: 6px 9px; background: #ddc891; border: 1px solid #ae9361; }
.character-stats b { color: #5a270d; }
.character-stats .online { color: #2f6e1b; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.account-card { padding: 13px; background: #e3d2a5; border: 1px solid #ae9361; }
.premium-card { background: linear-gradient(135deg, #e9d99e, #d8be73); }
#password-form { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; }
#password-form label:first-child, #password-form button { grid-column: 1 / -1; }
.recovery-card { grid-column: 1 / -1; }
#recovery-email-form { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; }
#recovery-email-form button { grid-column: 1 / -1; }
#recovery-email-remove { margin-top: 8px; }
.report-card { margin: 12px 0; }
#bug-report-form { display: grid; grid-template-columns: 1fr 2fr; gap: 9px 12px; }
#bug-report-form .wide-field { grid-column: 1 / -1; }
textarea { width: 100%; border: 2px inset #b69d6c; background: #fff9df; color: #21180e; padding: 5px; resize: vertical; }
.bug-admin-entry { margin: 9px 0; padding: 9px; border: 1px solid #ae9361; background: #fff6d8; }
.bug-admin-entry h3 { margin: 0 0 5px; color: #5a270d; }
.bug-admin-entry pre { white-space: pre-wrap; word-break: break-word; font: 12px Verdana, sans-serif; }
.bug-admin-controls { display: grid; grid-template-columns: 150px 1fr auto; gap: 7px; align-items: end; }
.quiet-button { background: #c7b58c; font-weight: normal; }
label { display: grid; gap: 3px; font-weight: bold; }
input, select {
  min-height: 27px; border: 2px inset #b69d6c; background: #fff9df; color: #21180e; padding: 3px 5px;
}
#house-message { min-height: 16px; margin: 8px 0 0; font-weight: bold; }
#house-message.error { color: #971e12; }
#house-message.success { color: #27630f; }
.auction-copy p { margin: 5px 0; line-height: 1.45; }
.section-heading { margin-bottom: 10px; }
.section-heading label { min-width: 210px; }
.community-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.community-grid > .parchment { min-width: 0; }
.inline-search { display: flex; align-items: end; gap: 8px; }
.inline-search label { flex: 1; }
.character-profile { margin-top: 12px; padding-top: 12px; border-top: 1px solid #ae9361; }
.profile-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.profile-title h2 { margin: 0; }
.profile-title span { padding: 3px 7px; border: 1px solid #987b4c; background: #d6c18e; font-weight: bold; }
.profile-title .online { color: #245f16; background: #c9e2a9; }
.profile-title .offline { color: #5d5140; }
.character-profile dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 10px 0; border: 1px solid #b9a47a; }
.character-profile dl div { display: grid; grid-template-columns: 82px 1fr; background: #fff6d8; }
.character-profile dt, .character-profile dd { margin: 0; padding: 5px; border-bottom: 1px solid #d7c69d; }
.character-profile dt { font-weight: bold; background: #dec994; }
.character-profile h3 { margin: 10px 0 5px; color: #5a270d; font: bold 14px Georgia, serif; }
.death-list { margin: 0; padding-left: 20px; line-height: 1.55; }
.character-link { padding: 0; color: #5a270d; background: none; border: 0; font: inherit; font-weight: bold; text-decoration: underline; }
.character-link:hover { color: #8e411d; }
#character-search-message { min-height: 16px; margin-top: 6px; color: #971e12; }
#online-count { color: #5a270d; }
#online-empty { margin-top: 8px; }
.filters { margin-bottom: 10px; }
#house-count { margin-left: auto; font-weight: bold; }
.table-wrap { overflow-x: auto; border: 1px solid #765e3a; }
table { width: 100%; border-collapse: collapse; background: #fff6d8; }
th { background: #71502c; color: #fff2bd; text-align: left; }
th, td { padding: 7px 8px; border: 1px solid #b9a47a; white-space: nowrap; }
tbody tr:nth-child(even) { background: #ecddb7; }
td:first-child { white-space: normal; font-weight: bold; }
.ranking-table td:first-child { width: 46px; text-align: center; }
.ranking-table td:nth-child(2) { font-weight: bold; }
.ranking-value { color: #5a270d; font-weight: bold; }
.online-badge { display: inline-block; margin-left: 7px; padding: 1px 4px; color: #275d16; background: #c9e2a9; border: 1px solid #83a65c; font-size: 9px; text-transform: uppercase; }
.status-available { color: #306415; }
.status-auctioned { color: #9a5204; }
.status-rented { color: #6d221c; }
dialog { width: min(430px, calc(100% - 24px)); border: 3px ridge #9e814f; background: #efe0b7; color: #261b10; }
dialog::backdrop { background: #0009; }
#bid-form { display: grid; gap: 10px; }
.dialog-actions { display: flex; justify-content: center; gap: 10px; }
.small { margin: 0; font-size: 11px; }
@media (max-width: 650px) {
  .site-shell { width: calc(100% - 10px); margin-top: 5px; }
  header { align-items: flex-start; padding: 10px; }
  header nav { max-width: 190px; }
  .welcome-card, .account-grid, .community-grid { grid-template-columns: 1fr; }
  #password-form { grid-template-columns: 1fr; }
  #password-form label, #password-form button { grid-column: 1; }
  #recovery-email-form { grid-template-columns: 1fr; }
  #recovery-email-form button { grid-column: 1; }
  #bug-report-form { grid-template-columns: 1fr; }
  #bug-report-form .wide-field { grid-column: 1; }
  .bug-admin-controls { grid-template-columns: 1fr; }
  .account-heading, .section-heading { align-items: flex-start; }
  .character-profile dl { grid-template-columns: 1fr; }
  #house-count { width: 100%; margin-left: 0; }
}
