@font-face {
  font-family: Martel;
  src: url("/theme/martel.ttf") format("truetype");
  font-display: swap;
}
body.classic {
  color-scheme: light;
  color: #492707;
  background: #071321 url("/theme/background.jpg") center top / max(100%, 1440px) auto no-repeat fixed;
  font: 13px/1.45 Verdana, Arial, sans-serif;
}
.classic-wrapper { width: min(100% - 1rem, 1024px); margin: 0 auto; }
.classic-masthead { min-height: 115px; display: flex; align-items: center; }
.classic-masthead a {
  color: #ffdc67; font: bold clamp(2.3rem, 6vw, 4.4rem)/1 Martel, Georgia, serif;
  text-shadow: 0 2px #4d2108, 0 4px #090a10, 2px 1px #642c04, -2px 1px #642c04;
  text-decoration: none;
}
.classic-columns { display: grid; grid-template-columns: 170px minmax(0, 1fr) 170px; gap: 15px; align-items: start; }
.classic-sidebar nav { display: block; width: auto; margin: 0; padding: 0; }
.classic-menu-box {
  margin-bottom: 12px; padding: 10px 0;
  background: url("/theme/box-top.gif") top center no-repeat,
              url("/theme/box-bottom.gif") bottom center no-repeat,
              #292725 url("/theme/chain.gif") top center repeat-y;
  text-align: center;
}
.classic-menu-box > a { display: block; color: #ffe4a4; }
.classic-menu-box > a:focus-visible { outline-offset: -2px; }
.classic-action { background: url("/theme/blue-button.gif") center no-repeat; line-height: 0; }
.classic-action img { width: 150px; height: 37px; }
.classic-menu a {
  background: #413d36 url("/theme/menu.gif") center / 100% 100% no-repeat;
  display: flex; align-items: center; padding-inline: 11px; min-height: 32px;
  font: 16px/1.2 Martel, Georgia, serif; text-shadow: 1px 1px #16130f;
}
.classic-menu img { width: 25px; height: 25px; object-fit: contain; margin-right: 7px; }
.classic-menu a:hover, .classic-menu a[aria-current] { background: #14433f; }
.classic-main { width: auto; margin: 0; padding: 0 0 2rem; min-width: 0; }
.classic-box, .classic .narrow, .classic #pobierz {
  padding: 4px; margin: 0 0 14px; max-width: none; width: auto;
  border: 4px solid #695341;
  border-image: url("/theme/frame-edge.gif") 4 stretch;
  background: #ead7ad url("/theme/parchment.gif") repeat;
  color: #492707; box-shadow: 0 0 0 1px #211810;
}
.classic .section-title {
  min-height: 24px; padding: 2px 8px;
  background: #314322 url("/theme/green-title.gif") repeat-x;
  border: 0; border-bottom: 1px solid #866c43;
  color: #f8dfaa; font: 19px/1.15 Martel, Georgia, serif;
  text-shadow: 1px 1px #23180d; margin: 0;
}
.classic .ticker ul { margin: 4px; padding: 0; list-style: none; border: 1px solid #a28960; }
.classic .ticker li { padding: 2px 5px 2px 23px; background: #f1e0bf url("/theme/notice-icon.gif") 4px center no-repeat; }
.classic .ticker li:nth-child(even) { background-color: #dbc5a0; }
.classic .news article { display: block; padding: 7px; border: 0; background: transparent; box-shadow: none; }
.classic .news article h3 {
  margin: 0; padding: .24rem .55rem;
  color: #fff0d2; font: bold 13px/1.35 Verdana, sans-serif;
  background: #691c12 url("/theme/red-title.gif") center repeat-x;
}
.classic .news article p, .classic p, .classic label small { color: #583008; }
.classic a { color: #174785; }
.classic .classic-masthead a { color: #ffdc67; }
.classic .classic-menu-box > a { color: #ffe4a4; }
.classic .classic-rail .section-title { background: #691c12 url("/theme/red-title.gif") center repeat-x; }
.classic-promo { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 7px 3px; }
.classic-promo img { max-width: 100%; }
.classic-promo a, .classic .button {
  color: #ffe36b; text-shadow: 1px 1px #101025;
  border: 2px ridge #d5a84a; border-radius: 0; background: linear-gradient(#476af2,#0614a3 52%,#2345e0);
  font-weight: bold; text-decoration: none; padding: 4px 8px;
}
.classic .button:hover { background: linear-gradient(#6480f6,#172ac9); }
.classic .narrow { padding: 8px; }
.classic .narrow h1, .classic #pobierz h2 { font: 24px/1.15 Martel, Georgia, serif; color: #572d10; margin: .4rem 0; }
.classic .account-section { border-color: #98754e; }
.classic .character-table th { color: #5e350c; }
.classic .character-table tbody tr:nth-child(odd), .classic .house-entry:nth-of-type(odd) { background: #e2c99c; }
.classic .character-table td, .classic .character-table th, .classic .house-entry { border-color: #ad895d; }
.classic .house-entry summary span { color: #6a471c; }
.classic input, .classic select { background: #fff8e9; color: #3a2109; border: 1px solid #9a784e; }
.classic .store-status { background: #e9cda2; }
.classic .error { background: #ffdfce; color: #7c160e; }
.classic .downloads { gap: .5rem; }
.classic .downloads article { background: #f1e2c6; border-color: #b2976b; }
.classic .downloads h3 { font-size: 1rem; }
@media (max-width: 790px) {
  .classic-columns { grid-template-columns: 152px minmax(0, 1fr); gap: .6rem; }
  .classic-rail { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
}
@media (max-width: 480px) {
  .classic-masthead { min-height: 75px; }
  .classic-columns { grid-template-columns: minmax(0, 1fr); }
  .classic-sidebar nav { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; }
  .classic-menu-box { margin: 0; }
  .classic-menu { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .classic-rail { grid-column: 1; }
}

.classic-masthead {
  justify-content: center;
  min-height: 146px;
  margin-bottom: 12px;
  border-radius: 0 0 24px 24px;
  background:
    radial-gradient(ellipse at center, rgba(17, 32, 54, .32), rgba(8, 16, 29, .85) 92%),
    url("/images/store/godots-fortress.webp") center 43% / cover;
  box-shadow: 0 10px 24px #050a1285;
}
.classic-masthead a { padding: .35em .7em; text-align: center; }
.classic-box, .classic .narrow, .classic #pobierz {
  border: 1px solid #9a764a;
  border-radius: 9px;
  box-shadow: 0 0 0 2px #392616, 0 6px 16px #05070cb3, inset 0 0 12px #6d462e35;
}
.classic .section-title { border-radius: 5px 5px 0 0; padding-block: 4px; }
.classic .account-section { border-radius: 6px; overflow: hidden; }
.classic-menu { border-radius: 6px; padding-inline: 4px; overflow: hidden; }
.classic-menu details + details { margin-top: 1px; }
.classic-menu details > summary {
  min-height: 32px; display: flex; align-items: center; padding: 0 6px;
  cursor: pointer; text-align: left; color: #ffe4a4;
  background: #413d36 url("/theme/menu.gif") center / 100% 100% no-repeat;
  font: 16px/1.15 Martel, Georgia, serif; text-shadow: 1px 1px #16130f;
}
.classic-menu summary::-webkit-details-marker { display: none; }
.classic-menu summary::after { content: "+"; margin-left: auto; padding-left: 3px; font: bold 13px Verdana, sans-serif; }
.classic-menu details[open] > summary::after { content: "−"; }
.classic-menu details > a {
  display: block; min-height: 0; padding: .2rem .35rem .2rem 1rem;
  color: #e8e2cf; background: #0d2e2b; border-top: 1px solid #3b5650;
  font: 12px/1.35 Verdana, sans-serif; text-align: left;
}
.classic-menu details > a:hover, .classic-menu details > a[aria-current] { color: #fff1bf; background: #205149; }
.classic-menu details > a[aria-current] { font-weight: bold; }
.classic .coin-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); }
.classic .coin-packs li { display: grid; justify-items: center; gap: .3rem; border-radius: 6px; color: #66380b; background: #f4e6c7; }
.classic .coin-packs img { object-fit: contain; }
.classic #pobierz > p, .classic #pobierz .downloads { margin: .7rem; }
.classic #pobierz h1 { margin: 0; }
@media (max-width: 480px) {
  .classic-masthead { min-height: 92px; }
  .classic-menu { padding: .3rem; gap: .2rem; align-items: start; }
  .classic-menu details + details { margin-top: 0; }
}

/* GOD OTS portal */
body.custom-portal {
  background: #111920 radial-gradient(ellipse at 50% 0%, #293e46, #111920 65%) fixed;
  color: #f3ead8;
}
.custom-portal .classic-masthead { border: 1px solid #7e6950; border-radius: 0 0 24px 24px; }
.custom-portal .classic-masthead a { font-family: Georgia, serif; letter-spacing: .065em; }
.custom-portal .classic-columns { gap: 1rem; }
.custom-portal .classic-menu-box, .custom-portal .classic-menu details > summary,
.custom-portal .classic-menu details > a { background: #22323b; }
.custom-portal .classic-menu details > summary img { display: none; }
.custom-portal .classic-menu details > summary { font: bold 14px/1.2 system-ui, sans-serif; text-shadow: none; }
.custom-portal .classic-menu details > a { background: #18262d; }
.custom-portal .classic-menu-box { border: 1px solid #6f6048; border-radius: 9px; }
.custom-portal .classic-action { background: none; }
.custom-portal .classic-action img { display: none; }
.custom-portal .classic-action::before {
  content: attr(data-label); display: inline-block; line-height: 1.25; padding: .45rem .8rem;
  border-radius: 5px; color: #211910; background: #e8c68a; font-weight: bold;
}
.custom-portal .classic-actions a + a { margin-top: .45rem; }
.custom-portal .classic-box, .custom-portal .narrow, .custom-portal #pobierz {
  background: #22323b; color: #f3ead8; padding: .7rem;
  border-color: #796b55; box-shadow: 0 8px 18px #0d12198a;
}
.custom-portal .section-title, .custom-portal .classic-rail .section-title,
.custom-portal .news article h3 {
  background: #18252b; color: #efce94; font-family: Georgia, serif; text-shadow: none;
}
.custom-portal .narrow h1, .custom-portal #pobierz h1 { color: #f3dcae; font-family: Georgia, serif; }
.custom-portal p, .custom-portal .news article p, .custom-portal label small { color: #dcd3c1; }
.custom-portal a { color: #ecd09a; }
.custom-portal .button, .custom-portal .classic-promo a {
  color: #211910; background: #e8c68a; text-shadow: none; border: 1px solid #d2aa70; border-radius: 5px;
}
.custom-portal .button:hover { background: #f5dcae; }
.custom-portal .account-section { border-color: #766851; }
.custom-portal .downloads article, .custom-portal .character-table tbody tr:nth-child(odd) {
  background: #192a32; border-color: #796b55;
}
.custom-portal .character-table th { color: #efce94; }
.custom-portal .store-status { background: #362e25; }
.custom-portal .classic-promo > img { width: 64px; aspect-ratio: 1; object-fit: contain; image-rendering: auto; }

/* House Search keeps its compact three-column layout. */
.houses-page .house-screen { border-radius: 2px; padding: 2px; }
.houses-page .house-screen > h1 { margin: 0; border-radius: 0; font-size: 21px; }
.house-body { padding: .55rem; }
.house-body > p { margin: 0 0 1.3rem; line-height: 1.3; }
.house-filter { margin: 0 0 1rem; }
.house-filter > h2 {
  margin: 0; padding: .35rem .62rem;
  background: #18252b; color: #efce94; border: 1px solid #796b55; border-radius: 6px 6px 0 0;
  font: bold 13px/1.2 Verdana, sans-serif;
}
.house-filter-body {
  padding: .45rem; border: 1px solid #796b55; border-top: 0;
  background: #1c2c34; border-radius: 0 0 6px 6px;
}
.house-filter-columns {
  display: grid; grid-template-columns: .92fr 1.12fr 1.05fr;
  background: #263842; border: 1px solid #796b55; border-radius: 4px;
}
.house-filter-columns fieldset { min-width: 0; margin: 0; padding: 0 .3rem .25rem; border: 0; }
.house-filter-columns > * + * { border-left: 1px solid #53616a; }
.house-filter-columns legend {
  float: left; width: calc(100% + .6rem); margin: 0 -.3rem .22rem;
  padding: .15rem .3rem; border-bottom: 1px solid #53616a; color: #efce94; font-weight: bold;
}
.house-option {
  display: flex; align-items: flex-start; clear: left; gap: .35rem;
  margin: 0; padding: .025rem .1rem; min-height: 19px; line-height: 1.25;
}
.house-option input { flex: none; margin: .08rem 0 0; accent-color: #e8c68a; }
.house-filter-status .house-type { margin-top: 4rem; border-top: 1px solid #53616a; padding-top: .35rem; }
.house-submit { display: flex; justify-content: center; padding-top: .65rem; }
.house-submit .button { min-width: 8rem; padding: .15rem .75rem; }
.visually-hidden { position: absolute; width: 1px !important; height: 1px; padding: 0 !important; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) {
  .houses-page .classic-columns { grid-template-columns: minmax(0,1fr); }
  .houses-page .classic-rail { grid-column: 1; }
}
@media (max-width: 420px) {
  .house-filter-columns { grid-template-columns: 1fr 1fr; }
  .house-filter-columns > fieldset:first-child { grid-row: span 2; }
  .house-filter-status .house-type { margin-top: .6rem; }
  .house-body { padding: .35rem; }
}

.houses-page .house-bid input, .houses-page .house-bid select {
  color-scheme: dark; background: #18262d; color: #f3ead8; border-color: #8d7b60;
}
.houses-page .house-entry:nth-of-type(odd) { background: #192a32; }
.houses-page .house-entry, .houses-page .house-entry summary span { border-color: #53616a; color: #dcd3c1; }

.houses-page .house-results { margin-bottom: 1.4rem; }
.houses-page .house-table thead { background: #18252b; }
.houses-page .house-table tbody tr:nth-child(odd) { background: #263842; }
.houses-page .house-table tbody tr:nth-child(even) { background: #1c2c34; }
.houses-page .house-table th, .houses-page .house-table td { padding: .25rem .42rem; border: 1px solid #465962; }
.houses-page .house-table tbody th { color: #f3ead8; font-weight: normal; }
.houses-page .house-table td { white-space: nowrap; }
.houses-page .house-view { display: block; min-width: 3.25rem; padding: .12rem .35rem; text-align: center; }

@media (max-width: 650px) {
  .custom-portal .classic-columns { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
  .custom-portal .classic-main { padding-bottom: 0; }
  .custom-portal .classic-rail { grid-column: 1; }
  .custom-portal .classic-masthead { min-height: 95px; margin-bottom: .65rem; }
  .custom-portal .classic-sidebar nav {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .45rem;
  }
  .custom-portal .classic-menu-box { margin: 0; }
  .custom-portal .classic-menu { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .25rem; align-items: start; }
  .custom-portal .classic-menu details + details { margin-top: 0; }
  .custom-portal .classic-menu details > summary, .custom-portal .classic-menu details > a { min-height: 38px; }
  .custom-portal .classic-menu details > a { display: flex; align-items: center; }
  .custom-portal .classic-action::before, .custom-portal .button { padding: .55rem .8rem; }
  .custom-portal .narrow input:not([type="radio"]), .custom-portal select,
  .custom-portal .house-bid input { width: 100%; font-size: 16px; }
  .custom-portal .house-option { min-height: 30px; align-items: center; }
  .custom-portal .house-option input { margin-top: 0; }
  .custom-portal .house-bid { align-items: stretch; }
  .custom-portal .house-submit .button { min-height: 42px; }
}
@media (max-width: 480px) {
  .houses-page .house-table table, .houses-page .house-table tbody { display: block; }
  .houses-page .house-table thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .houses-page .house-table tbody tr { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: .45rem; border-bottom: 1px solid #465962; }
  .houses-page .house-table tbody th, .houses-page .house-table td { border: 0; padding: .18rem .35rem; white-space: normal; }
  .houses-page .house-table tbody th, .houses-page .house-view-cell { grid-column: 1 / -1; }
  .houses-page .house-table tbody th { font-weight: bold; overflow-wrap: anywhere; }
  .houses-page .house-table td[data-label]::before { display: block; content: attr(data-label); color: #e1c999; font-size: .75rem; }
  .houses-page .house-view { min-height: 36px; line-height: 34px; padding: 0 .35rem; }
}
