@font-face {
  font-family: 'Alegreya';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(theme/4UaSrEBBsBhlBjvfkSLk3abBFkvpkARTPlbgv5qsmSW1rw.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Alegreya';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(theme/4UaSrEBBsBhlBjvfkSLk3abBFkvpkARTPlbgv5qlmSW1rw.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Alegreya';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(theme/4UaSrEBBsBhlBjvfkSLk3abBFkvpkARTPlbgv5qvmSW1rw.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Alegreya';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(theme/4UaSrEBBsBhlBjvfkSLk3abBFkvpkARTPlbgv5qhmSU.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(theme/4UaBrEBBsBhlBjvfkSLsx6jx4w.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(theme/4UaBrEBBsBhlBjvfkSLlx6jx4w.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(theme/4UaBrEBBsBhlBjvfkSLvx6jx4w.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(theme/4UaBrEBBsBhlBjvfkSLhx6g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Alegreya SC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(theme/taiOGmRtCJ62-O0HhNEa-Z6i2ZAJaQ.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Alegreya SC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(theme/taiOGmRtCJ62-O0HhNEa-Z6r2ZAJaQ.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Alegreya SC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(theme/taiOGmRtCJ62-O0HhNEa-Z6h2ZAJaQ.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Alegreya SC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(theme/taiOGmRtCJ62-O0HhNEa-Z6v2ZA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: dark;
  --ink: #f0e4cb;
  --muted: #c3ae89;
  --gold: #e2bd62;
  --red: #e18a75;
  --blue: #a6c4e7;
  --line: #5d3a2c;
  --fine: #4b3a2a;
  --surface: #1d1a18;
  --heading: 'Alegreya SC', 'Alegreya', Georgia, serif;
  --text: 'Alegreya', Georgia, serif;
  --radius: 12px;
}
body { background: #111010; color: var(--ink); font: 17px/1.55 var(--text); }
a { color: var(--gold); }
a:hover { color: #fff0c7; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}
.skip-content { position: absolute; top: 10px; left: 10px; z-index: 50; padding: 8px 15px; background: #2d2117; transform: translateY(-150%); }
.skip-content:focus { transform: none; }
.page { background: transparent; box-shadow: none; isolation: isolate; }
.page::before {
  content: ''; position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(125deg,#0e0d0de3,#131211a8 55%,#100e0ee0),url(theme/wood.webp) center top / auto,560px;
  filter: saturate(.20);
}
.inner {
  max-width: 1700px; margin: 0 auto; padding: 28px clamp(16px,2.2vw,36px);
  display: grid; grid-template-columns: clamp(205px,17.3vw,268px) minmax(0,1fr); gap: clamp(16px,2vw,30px);
  align-items: start;
}
.side { position: sticky; top: 16px; min-width: 0; border-radius: 0; overflow: visible; }
.rail-head { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.arms { display: flex; justify-content: flex-start; align-items: center; gap: 12px; padding: 0 9px 14px; background: none; text-decoration: none; }
.arms img { width: 37px; height: 53px; object-fit: contain; filter: drop-shadow(0 3px 4px #0008); }
.arms span { display: flex; flex-direction: column; }
.arms strong { font: 500 25px/1.1 var(--heading); color: var(--gold); letter-spacing: .08em; }
.arms small { color: var(--muted); font-size: 14px; font-style: italic; }
.nav-toggle { display: none; }
.menu { display: grid; gap: 12px; padding: 0; border-top: 0; }
.nav-group { border: 1px solid #79513466; border-radius: 10px; background: #21191596; padding: 7px; }
.nav-label { margin: 0; padding: 3px 10px 7px; color: #bea779; text-transform: uppercase; font: 15px var(--heading); letter-spacing: .09em; }
.menu a {
  color: #e1cba0; display: flex; align-items: center; gap: 11px; border: 1px solid transparent;
  min-height: 42px; padding: 7px 10px; border-radius: 6px; font-size: 17px; line-height: 1.15;
}
.menu a img { width: 19px; height: 19px; object-fit: contain; flex: none; }
.menu a:hover { background: #e2bd6215; color: var(--ink); }
.menu a.active {
  color: #fff1d2; background: linear-gradient(105deg,#43251e,#36221b83);
  border-color: #84503b; box-shadow: inset 3px 0 var(--gold); font-weight: 700;
}
.menu a.rail-download { border-color: #86643d; background: #282017; color: var(--gold); padding: 10px 13px; }
.menu a.rail-download:hover { background: #3a2b1b; }
.right { min-width: 0; gap: 0; }
.topline { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; padding: 0 1px; }
.breadcrumbs { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; color: var(--muted); font: 25px/1.1 var(--heading); }
.breadcrumbs strong { font-weight: 400; color: var(--ink); }
.crumb-parent { color: var(--gold); font-size: .73em; letter-spacing: .07em; }
.topline #account { min-width: 0; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.topline #account a, .topline #account button {
  border: 1px solid #594535; border-radius: 6px; padding: 6px 11px; color: var(--gold); background: #25201b;
  text-decoration: none; font: 15px var(--text); overflow-wrap: anywhere;
}
.topline #account a:hover,.topline #account button:hover { background: #392a1e; }
.content-frame {
  min-height: 68vh; padding: clamp(12px,1.9vw,26px); border: 1px solid #743e2e; border-radius: 14px;
  background: linear-gradient(150deg,#181515,#131212 75%);
  box-shadow: inset 0 0 0 4px #141212,inset 0 0 0 5px #4f2d24,0 12px 35px #0005;
}
#main { min-width: 0; margin: 0; outline: none; }
.panel {
  min-width: 0; background: linear-gradient(145deg,#231f1d,#1b1817 76%);
  border: 1px solid var(--line); border-radius: var(--radius); outline: none; box-shadow: none;
}
.sec { padding: clamp(16px,2.2vw,28px); }
.stack { gap: 16px; }
.phead { padding: 17px 20px; gap: 14px; }
.phead p,.muted,.small,.date,.empty,.loading { color: var(--muted); }
.phead h1,h1,h2,h3,.stat { font-family: var(--heading); font-weight: 400; }
.phead h1 { color: var(--ink); line-height: 1.15; }
.init {
  border-radius: 7px; color: #f5d480; border: 1px solid #82613a;
  background: linear-gradient(#2c2118af,#211712c4),url(theme/panel.webp) center/140px;
  font: 32px var(--heading); text-shadow: none;
}
.hero { min-height: 340px; overflow: hidden; position: relative; }
.hero-copy { position: relative; z-index: 1; padding: clamp(22px,3vw,46px); }
.logo,.logo > span { font: 400 clamp(42px,6vw,91px)/1.03 var(--heading); color: var(--gold); text-shadow: 0 3px 14px #000a; }
.logo { letter-spacing: .01em; margin: 0 0 10px; }
.hero .subtitle { font: clamp(22px,3vw,38px)/1.12 var(--heading); color: var(--ink); }
.hero .motto { color: var(--muted); font-style: italic; }
.hero .corner { display: none; }
.hero-art { min-height: 340px; filter: saturate(.75) brightness(.70); mask-image: linear-gradient(90deg,transparent,#000 33%); }
.home-cards .card { overflow: hidden; padding: 16px; display: grid; grid-template-rows: auto 1fr auto auto; }
.home-cards .card:last-child { grid-column: auto; }
.home-cards .card h2 { color: var(--gold); }
.home-cards .card img { filter: saturate(.8) brightness(.8); height: 175px; object-fit: cover; }
.server-line { font-size: 16px; padding: 10px 15px; }
.server-line span:last-child { color: #c6d395; }
.rule-line::before,.rule-line::after { background: #98713c; }
.news-row, details, .item-basket-row { border-color: var(--fine); }
.tag { border-color: #72553a; background: #34281c; color: #ecd6a8; }
.date,summary,.more,.reply strong { color: var(--gold); }
.more:hover { color: #fff0c7; }

.cta,.support-entry .support-create {
  min-height: 42px; padding: 8px 17px; border: 1px solid #e1b75e; border-radius: 7px;
  background: linear-gradient(#dcb660,#a77d2d); color: #211509; box-shadow: inset 0 1px #ffe0a274,0 2px 8px #0004;
  clip-path: none; font: 700 17px var(--text); letter-spacing: 0; text-decoration: none;
}
.cta:hover,.support-entry .support-create:hover,.support-entry .support-create:focus-visible { color: #211509; background: linear-gradient(#efd080,#bb903a); }
.cta.blue { background: #2a221b; border-color: #9b784b; color: var(--gold); box-shadow: none; }
.cta.blue:hover { background: #3d2b1c; color: var(--ink); }
.button,.toolbar button,.tabs button,td button,.item-regions button {
  background: #2d241c; color: var(--ink); border: 1px solid #77593a; border-radius: 6px; font-family: var(--text);
}
.button:hover,.toolbar button:hover,.tabs button:hover,td button:hover { background: #41301e; }
.active.button,.tabs button.active,.item-regions button.active { background: #4a281f; border-color: #b17c55; color: #fff0cc; }
input,select,textarea { background: #171411; color: var(--ink); border: 1px solid #896640; border-radius: 6px; accent-color: var(--gold); }
input::placeholder,textarea::placeholder { color: #b49e7d; }
input[type='file']::file-selector-button { margin-right: 9px; border-radius: 4px; border: 1px solid #9b7549; background: #36281d; color: var(--ink); }
th,td { border-color: #72533866; }
th { color: #f0d391; }
tbody tr:hover { background: #c08f4410; }
.pre,.log-tail { background: #161312; color: #e4d2b6; border-radius: 6px; border-color: var(--line); }
.notice { background: #30261a; border: 1px solid #9b753d; border-radius: 7px; color: #efddb6; }
.notice.error { background: #40231f; border-color: #ba7060; color: #ffcfbf; }
.modal { background: #080707cf; }
.modal-box {
  color: var(--ink); background: linear-gradient(140deg,#27201b,#1a1715); border: 1px solid #946143;
  border-radius: 12px; outline: 1px solid #624a31; outline-offset: -5px; box-shadow: 0 20px 70px #000b;
}
.modal-close { color: var(--gold); }
.reply { background: #27211b; border: 1px solid #5f4231; border-left: 3px solid #a77b3d; border-radius: 7px; }
.reply.own { border-left-color: #91b689; }
.support-assistant .assistant-reply { background: #242319; border-color: #6e5735; }
.ticket-messages { padding: 2px 5px 2px 0; }
.rules-sanction { color: #ff9b8e; font-weight: 700; }
.finance-chart { border-color: var(--line); background: #e1cfaa; border-radius: 6px; }
.map-canvas { border-color: #815a3b; border-radius: 7px; }
.item-card,.item-favorite { background: #241c17; color: var(--gold); border-color: var(--line); }
.item-card.selected { outline-color: var(--gold); }
.item-placeholder { background: #342b22; color: var(--muted); }
.item-grid { scrollbar-color: #9c7a48 #211913; }
progress { accent-color: var(--gold); }
.ledger-stat .stat { color: var(--gold); }

.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin: 13px 0 0; padding: 9px 4px; color: var(--muted); text-align: left;
}
.footer div { display: flex; flex-wrap: wrap; gap: 13px; }
@media (max-width: 1050px) {
  .home-cards { grid-template-columns: repeat(3,minmax(0,1fr)); }

  .hero .buttons { align-items: flex-start; }
}
@media (max-width: 800px) {
  .inner { grid-template-columns: minmax(0,1fr); padding: 12px; gap: 10px; }
  .side { position: static; }
  .rail-head { min-height: 56px; }
  .arms { padding: 0 0 2px; }
  .arms img { width: 30px; height: 42px; }
  .nav-enhanced .nav-toggle { display: inline-flex; min-height: 40px; align-items: center; }
  .nav-enhanced:not(.nav-open) .menu { display: none; }
  .menu { grid-template-columns: repeat(2,minmax(0,1fr)); padding-top: 8px; overflow: visible; }
  .menu a { min-height: 41px; font-size: 16px; }
  .menu a.rail-download { grid-column: 1/-1; }
  .topline { min-height: 0; margin: 0 0 10px; }
  .breadcrumbs { font-size: 22px; }
  .hero { min-height: 0; }
  .hero-art { min-height: 0; height: 235px; mask-image: linear-gradient(0deg,#000 65%,transparent); }
  .home-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 520px) {
  .content-frame { padding: 10px; }
  .topline { align-items: flex-start; flex-direction: column; gap: 7px; }
  .topline #account { justify-content: flex-start; }
  .hero-copy { padding: 20px; }
  .hero-art { height: 174px; }
  .home-cards { grid-template-columns: minmax(0,1fr); }
  .ledger-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .phead { padding: 14px; }
  .modal-box { padding: 20px; max-height: 92dvh; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { transition: none !important; scroll-behavior: auto !important; }
}
/* Player menu */
.menu .nav-group { gap: 3px; }
.menu .nav-group > a { min-height: 32px; padding-block: 4px; }
.menu .character-nav { display: grid; gap: 2px; margin: 0 0 4px 21px; padding-left: 9px; border-left: 1px solid #745132; }
.menu .character-nav a { display: block; min-height: 0; padding: 4px 9px; font-size: 15px; }
body[data-page="profile"] .content-frame { border-color: #8e6a3f; }
.character-toolbar { justify-content: space-between; align-items: end; }
.character-toolbar label { flex: 1 1 220px; max-width: 380px; }
.character-tabs { margin: 0; }
.character-overview { display: grid; grid-template-columns: minmax(190px, 1.05fr) minmax(0, 3fr); gap: 16px; }
.character-identity,.character-card {
  border: 1px solid #79593b;
  border-radius: 10px;
  background: linear-gradient(145deg,#2a211ad9,#1c1714f5),url(theme/panel.webp) center/240px;
  box-shadow: inset 0 1px #f4d18d15;
}
.character-identity { display: grid; place-items: center; align-content: center; padding: 20px 12px; text-align: center; }
.character-identity h2 { margin: 14px 0 3px; overflow-wrap: anywhere; }
.character-identity p { margin: 0; color: var(--muted); font-style: italic; }
.character-portrait { width: min(100%,240px); height: auto; aspect-ratio: 240/342; object-fit: contain; filter: drop-shadow(0 12px 12px #0009); mask-image: linear-gradient(#000 85%,transparent); }
.character-grid { min-width: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.character-card { display: flex; flex-direction: column; gap: 7px; min-width: 0; min-height: 96px; padding: 12px; text-align: left; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
button.character-card,a.character-card { cursor: pointer; }
button.character-card:hover,a.character-card:hover { border-color: var(--gold); color: var(--ink); background-color: #433021; }
.character-card-label { display: flex; align-items: center; gap: 7px; color: #dac092; font: 15px/1.1 var(--heading); }
.menu-card-icon { width: 20px; height: 20px; flex: none; object-fit: contain; }
.character-card strong { font: 21px/1.1 var(--heading); }
.character-description { margin-top: 18px; }
.recipe-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-block: 16px; }
.recipe-grid h3,.recipe-grid p { margin: 0; }
.invite-paper { display: grid; justify-items: center; gap: 12px; margin-inline: auto; max-width: 620px; padding: clamp(18px,4vw,40px); border: 1px solid #967343; border-radius: 8px; background: linear-gradient(#37291b,#231a14); }
.invite-paper .menu-card-icon { width: 54px; height: 54px; }
.invite-paper label { width: 100%; }
@media (max-width: 1180px) {
  .character-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .character-overview { grid-template-columns: 1fr; }
  .character-identity { padding: 14px; }
  .character-portrait { width: 125px; }
  .recipe-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 480px) {
  .character-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .recipe-grid { grid-template-columns: 1fr; }
}
