:root {
  --ink: #210a06;
  --blood: #4b1009;
  --blood-deep: #260704;
  --gold: #e3bd6d;
  --gold-bright: #ffe6a2;
  --gold-dim: #9f7136;
  --paper: #e8d399;
  --paper-deep: #c6a363;
  --line: rgba(230, 190, 105, .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }

.public-site {
  min-width: 1180px;
  background: #170403;
  color: #dcc995;
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.xoyo-bar {
  position: relative;
  z-index: 100;
  height: 50px;
  padding: 0 max(24px, calc((100vw - 1460px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #5e5047;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}

.xoyo-brand {
  height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.xoyo-seal {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff4cc;
  background: linear-gradient(135deg, #9d1d10, #e49d27);
  border: 1px solid #7c130b;
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 800;
}

.xoyo-brand b,
.xoyo-brand small { display: block; }
.xoyo-brand b { color: #3e2d24; font-size: 14px; letter-spacing: .08em; }
.xoyo-brand small { margin-top: 1px; color: #a68e7e; font-size: 9px; letter-spacing: .18em; }

.utility-nav { display: flex; align-items: center; height: 100%; }
.utility-nav a {
  position: relative;
  padding: 0 15px;
  font-size: 12px;
  line-height: 50px;
  transition: color .2s ease, background .2s ease;
}
.utility-nav a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 1px;
  height: 10px;
  background: #d7cdc5;
}
.utility-nav a:hover { color: #9d2d18; background: rgba(141, 67, 42, .05); }
.utility-nav .admin-link { color: #a7772f; }
.mobile-menu { display: none; }

.campaign-stage {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background-color: #420e06;
  background-image:
    url("bg-upper-clean.png"),
    url("bg-under-5700c2c8.jpg.webp");
  background-position: top center, bottom center;
  background-repeat: no-repeat;
  background-size: 1920px 8485px, 1920px 8485px;
}

.campaign-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(31, 2, 0, .28), transparent 22%, transparent 78%, rgba(31, 2, 0, .28)),
    radial-gradient(circle at 50% 10%, transparent 0 34%, rgba(35, 3, 0, .18) 57%, rgba(25, 2, 0, .35) 100%);
}

.campaign-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 760px;
}

.hero-site-logo {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: max(32px, calc(50% - 960px));
  width: 455px;
  height: 210px;
  display: grid;
  place-items: center;
}
.hero-site-logo img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 5px 10px rgba(18, 2, 0, .65));
}

.hero-actions {
  position: absolute;
  top: 28px;
  right: max(32px, calc((100vw - 1460px) / 2));
  display: flex;
  gap: 18px;
}

.metal-button {
  position: relative;
  min-width: 166px;
  min-height: 54px;
  padding: 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f6d88e;
  background: linear-gradient(180deg, rgba(96, 41, 20, .9), rgba(39, 11, 7, .95));
  border: 1px solid #d4a655;
  clip-path: polygon(11px 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 11px 100%, 0 50%);
  box-shadow: inset 0 0 0 2px rgba(246, 212, 135, .16), 0 5px 20px rgba(19, 2, 0, .5);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .05em;
  text-shadow: 0 1px 1px #3b0a04;
  cursor: pointer;
  transition: filter .2s ease, transform .2s ease;
}
.metal-button::before,
.metal-button::after {
  content: "◆";
  position: absolute;
  top: 50%;
  color: #e9c875;
  font-size: 8px;
  transform: translateY(-50%);
}
.metal-button::before { left: 11px; }
.metal-button::after { right: 11px; }
.metal-button:hover { filter: brightness(1.18); transform: translateY(-2px); }
.metal-button.solid { color: #4b1b0e; background: linear-gradient(180deg, #ffe2a0, #c9923e); text-shadow: 0 1px #fff0c7; }
.metal-button.wide { width: 100%; }

.hero-actions .metal-button {
  width: 241px;
  height: 91px;
  min-width: 0;
  min-height: 0;
  padding: 0 38px 21px;
  color: #f7dc95;
  background: url("top-action-frame.png") center / 100% 100% no-repeat;
  border: 0;
  clip-path: none;
  box-shadow: none;
  font-size: 18px;
}
.hero-actions .metal-button::before,
.hero-actions .metal-button::after { display: none; }

.hero-account-entry {
  position: absolute;
  z-index: 5;
  top: 112px;
  right: max(32px, calc((100vw - 1460px) / 2));
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(239, 213, 155, .78);
  font-size: 11px;
  text-shadow: 0 2px 5px #2b0502;
}
.hero-account-entry b { color: #f5d98f; }
.hero-account-entry a { color: #f0c96d; font-weight: 700; }
.hero-account-entry a:hover { color: #fff0b4; }

.hero-caption {
  position: absolute;
  left: 50%;
  bottom: 188px;
  width: 820px;
  text-align: center;
  transform: translateX(-50%);
  text-shadow: 0 2px 8px #280300, 0 0 22px #350900;
}
.hero-caption p {
  margin: 0 0 8px;
  color: #f5dfaa;
  font-size: 15px;
  letter-spacing: .45em;
  text-transform: uppercase;
}
.hero-caption strong {
  display: block;
  color: #fff0b3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  letter-spacing: .12em;
}

.server-pill {
  margin-top: 17px;
  padding: 8px 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ead8ad;
  background: rgba(48, 9, 5, .72);
  border: 1px solid rgba(225, 183, 94, .48);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .08em;
}
.server-pill i { width: 7px; height: 7px; border-radius: 50%; background: #6fe0a0; box-shadow: 0 0 12px #61dfa0; }
.server-pill.offline i { background: #d77b55; box-shadow: 0 0 12px #e1714d; }

.campaign-nav-shell {
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 1450px;
  height: 181px;
  transform: translateX(-50%);
  background: url("public-nav-layer-20-a265cf7f.png.webp") center / 1163px 181px no-repeat;
}

.campaign-nav {
  position: absolute;
  left: 50%;
  top: 52px;
  width: 1040px;
  height: 86px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  transform: translateX(-50%);
}
.campaign-nav a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #e5c476;
  font-family: "Times New Roman", Times, serif;
  text-shadow: 0 2px 4px #340702;
  transition: color .2s ease, transform .2s ease;
}
.campaign-nav a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 1px;
  height: 39px;
  background: linear-gradient(transparent, #b7833a, transparent);
}
.campaign-nav span { font-size: 18px; font-weight: 700; letter-spacing: .025em; font-kerning: normal; }
.campaign-nav small { margin-top: 5px; color: #9d7140; font-size: 9px; letter-spacing: .24em; text-transform: uppercase; }
.campaign-nav a:hover { color: #fff0b0; transform: translateY(-3px); }

@media (min-width: 821px) {
  /* Match the six text centers to the separators drawn in the 1163px frame. */
  .campaign-nav {
    top: 64px;
    width: 1064px;
    grid-template-columns: 148px 176px 176px 176px 177px 211px;
  }
  .campaign-nav a + a::before { display: none; }
}

.campaign-content {
  position: relative;
  z-index: 2;
  width: 1130px;
  margin: 0 auto;
  padding: 86px 0 180px;
}

.ornate-section { position: relative; margin: 0 0 116px; }
.ornate-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background: url("section-title-frame.png") center / auto 72px no-repeat;
  opacity: 1;
}

.section-title { position: relative; z-index: 1; margin: 0 auto 44px; text-align: center; }
.section-title span {
  position: relative;
  min-width: 390px;
  min-height: 72px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f0d28a;
  transform: translateY(-5px);
  font-family: "Times New Roman", Times, serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .055em;
  text-shadow: 0 2px 3px #32100a;
}
.section-title span::before,
.section-title span::after { display: none; }
.section-title h2 {
  margin: 11px 0 8px;
  color: #f3d88e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: .13em;
  text-shadow: 0 2px 4px #2b0703;
}
.section-title p { margin: 0; color: #bba77d; font-size: 13px; }
.section-title.compact { margin-bottom: 32px; }

.news-grid { display: grid; grid-template-columns: 1.14fr .86fr; gap: 24px; }
.featured-news,
.news-list,
.event-cards article,
.server-board,
.guide-grid a {
  background: linear-gradient(145deg, rgba(74, 19, 10, .92), rgba(39, 8, 5, .88));
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 3px rgba(255, 214, 129, .035), 0 14px 38px rgba(25, 1, 0, .26);
}
.featured-news { padding: 8px; }
.featured-art {
  position: relative;
  min-height: 348px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(39, 5, 1, .88) 0%, rgba(49, 8, 4, .55) 48%, rgba(30, 4, 1, .18)),
    url("bg-upper-05c1f922.jpg.webp") 50% 4% / 1050px auto no-repeat;
  border: 1px solid rgba(243, 205, 117, .36);
}
.event-ribbon {
  position: absolute;
  top: 18px;
  right: -42px;
  width: 170px;
  padding: 7px 0;
  color: #54210f;
  background: #e1bb6c;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
  transform: rotate(38deg);
}
.featured-copy { position: absolute; left: 34px; bottom: 30px; width: 70%; }
.featured-copy small { color: #e1aa55; font-size: 10px; font-weight: 800; letter-spacing: .35em; }
.featured-copy h3 { margin: 8px 0 12px; color: #f7dda0; font-family: Georgia, serif; font-size: 34px; line-height: 1.12; }
.featured-copy p { margin: 0; color: #d6c18f; font-size: 13px; line-height: 1.65; }

.news-list { padding: 13px 24px; }
.news-list a { padding: 17px 0; display: grid; grid-template-columns: 58px 1fr; gap: 16px; border-bottom: 1px solid rgba(222, 182, 99, .16); }
.news-list a:last-child { border-bottom: 0; }
.news-list time { padding-top: 4px; color: #d8ae62; font-family: Georgia, serif; font-size: 16px; }
.news-list span, .news-list b, .news-list small { display: block; }
.news-list b { color: #ead59e; font-size: 15px; font-weight: 600; }
.news-list small { margin-top: 6px; color: #9d8a69; font-size: 11px; line-height: 1.45; }
.news-list a:hover b { color: #fff0bd; }

.event-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.event-cards article { position: relative; min-height: 275px; padding: 37px 28px 28px; text-align: center; }
.round-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  color: #f4d58a;
  background: radial-gradient(circle, #762419, #32100a 68%);
  border: 2px solid #b98943;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 29px;
  box-shadow: inset 0 0 0 5px #43150e, 0 0 22px rgba(212, 158, 72, .18);
}
.event-cards small { color: #ae7f3e; font-size: 9px; font-weight: 800; letter-spacing: .3em; }
.event-cards h3 { margin: 8px 0 10px; color: #eddaa6; font-family: Georgia, serif; font-size: 21px; }
.event-cards p { margin: 0; color: #a99570; font-size: 12px; line-height: 1.65; }
.event-cards a { position: absolute; left: 0; right: 0; bottom: 23px; color: #d7a95a; font-size: 12px; }
.event-cards a:hover { color: #ffe0a0; }

.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.guide-grid a { min-height: 102px; padding: 20px 24px; display: flex; align-items: center; gap: 22px; }
.guide-grid b { color: rgba(231, 190, 99, .28); font-family: Georgia, serif; font-size: 44px; font-weight: 400; }
.guide-grid span, .guide-grid strong, .guide-grid small { display: block; }
.guide-grid strong { color: #ead5a0; font-family: Georgia, serif; font-size: 18px; }
.guide-grid small { margin-top: 7px; color: #9f8a68; font-size: 11px; }
.guide-grid a:hover { border-color: rgba(255, 222, 143, .7); transform: translateY(-2px); }

.server-board { min-height: 190px; padding: 30px 34px; display: grid; grid-template-columns: 105px 1fr 260px 245px; align-items: center; gap: 28px; }
.server-emblem { width: 92px; height: 92px; display: grid; place-items: center; color: #f6dda0; background: radial-gradient(circle, #8d2b1d, #310c08); border: 2px solid #c0934b; border-radius: 50%; font-family: Georgia, serif; font-size: 31px; font-weight: 800; box-shadow: inset 0 0 0 7px #4c160f; }
.server-emblem span { color: #d8a550; font-size: 17px; }
.server-copy small { color: #ae7f3d; font-size: 9px; font-weight: 800; letter-spacing: .3em; }
.server-copy h3 { margin: 7px 0; color: #f2d99a; font-family: Georgia, serif; font-size: 23px; }
.server-copy p { margin: 0; color: #9f8b69; font-size: 11px; line-height: 1.5; }
.server-board dl { margin: 0; }
.server-board dl div { padding: 7px 0; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(218, 173, 83, .14); }
.server-board dt { color: #8f795d; font-size: 11px; }
.server-board dd { margin: 0; color: #d7c28d; font-size: 11px; }
.server-board dd.online { color: #74daa2; }
.server-board dd.offline { color: #e28363; }

.game-footer { position: relative; z-index: 3; min-height: 168px; padding: 26px max(40px, calc((100vw - 1130px) / 2)); display: grid; grid-template-columns: 260px 1fr auto; align-items: center; gap: 30px; color: #74675c; background: #171412; border-top: 1px solid rgba(207, 170, 93, .15); }
.footer-logo { width: 245px; display: block; }
.footer-logo img { width: 100%; height: auto; display: block; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .4)); }
.game-footer p { font-size: 11px; }
.game-footer nav { display: flex; gap: 20px; font-size: 11px; }
.game-footer a:hover { color: #c5a771; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }

.site-toast { position: fixed; z-index: 700; left: 50%; bottom: 34px; min-width: 350px; padding: 14px 22px; color: #fff0c4; background: rgba(47, 10, 6, .96); border: 1px solid #b48543; box-shadow: 0 12px 36px rgba(0, 0, 0, .38); text-align: center; font-size: 13px; opacity: 0; pointer-events: none; transform: translate(-50%, 18px); transition: opacity .25s ease, transform .25s ease; }
.site-toast.show { opacity: 1; transform: translate(-50%, 0); }

.public-flash-stack {
  position: fixed;
  z-index: 800;
  top: 22px;
  left: 50%;
  width: min(520px, calc(100vw - 30px));
  display: grid;
  gap: 8px;
  transform: translateX(-50%);
}
.public-flash {
  position: relative;
  padding: 14px 48px 14px 18px;
  color: #f8e8bd;
  background: rgba(54, 13, 7, .97);
  border: 1px solid #b98a45;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .42);
  font-size: 12px;
  line-height: 1.5;
}
.public-flash.success { border-color: #7bb384; }
.public-flash.error { border-color: #cb745f; }
.public-flash button { position: absolute; top: 5px; right: 8px; color: inherit; background: transparent; border: 0; font-size: 22px; cursor: pointer; }

body.modal-open { overflow: hidden; }
.site-modal {
  position: fixed;
  z-index: 500;
  inset: 0;
  padding: 32px 18px;
  display: grid;
  place-items: center;
  overflow-y: auto;
}
.site-modal[hidden] { display: none; }
.site-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 2, 0, .78);
  opacity: 0;
  backdrop-filter: blur(5px);
  transition: opacity .2s ease;
}
.site-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100vw - 36px));
  max-height: calc(100vh - 64px);
  padding: 46px 60px 38px;
  overflow-y: auto;
  color: #4f2718;
  background: linear-gradient(rgba(247, 229, 180, .98), rgba(214, 182, 118, .98));
  border: 1px solid #f0d994;
  box-shadow: inset 0 0 0 5px rgba(107, 56, 27, .11), 0 24px 70px rgba(25, 2, 0, .7);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  opacity: 0;
  transform: translateY(18px) scale(.98);
  transition: opacity .2s ease, transform .2s ease;
  outline: none;
}
.site-modal__dialog::before {
  content: "◆";
  position: absolute;
  top: 15px;
  left: 50%;
  color: #8d5225;
  transform: translateX(-50%);
}
.site-modal.is-open .site-modal__backdrop { opacity: 1; }
.site-modal.is-open .site-modal__dialog { opacity: 1; transform: none; }
.site-modal__close {
  position: absolute;
  z-index: 2;
  top: 13px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #71391e;
  background: rgba(255, 244, 207, .45);
  border: 1px solid rgba(113, 57, 30, .35);
  border-radius: 50%;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.site-modal__close:hover,
.site-modal__close:focus-visible { color: #fff0b4; background: #71391e; outline: none; }
.site-modal .portal-heading h2 { margin: 8px 0 10px; color: #542516; font-family: Georgia, serif; font-size: 33px; }

.portal-stage {
  position: relative;
  min-height: 100vh;
  padding: 92px 24px 110px;
  background:
    linear-gradient(180deg, rgba(34, 4, 1, .12), rgba(31, 3, 1, .88)),
    url("bg-upper-clean.png") top center / 1920px auto no-repeat,
    #3f0d07;
}
.portal-back { position: absolute; top: 30px; left: max(30px, calc((100vw - 1130px) / 2)); z-index: 2; color: #e0c37d; font-size: 12px; letter-spacing: .08em; }
.portal-back:hover { color: #fff0b4; }
.portal-panel { position: relative; width: 620px; margin: 0 auto; padding: 46px 60px 38px; color: #4f2718; background: linear-gradient(rgba(247, 229, 180, .97), rgba(214, 182, 118, .96)); border: 1px solid #f0d994; box-shadow: inset 0 0 0 5px rgba(107, 56, 27, .11), 0 24px 70px rgba(25, 2, 0, .58); clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px); }
.portal-panel::before { content: "◆"; position: absolute; top: 15px; left: 50%; color: #8d5225; transform: translateX(-50%); }
.portal-heading { text-align: center; }
.portal-heading > span { color: #9a5e2b; font-size: 10px; font-weight: 800; letter-spacing: .34em; }
.portal-heading h1 { margin: 8px 0 10px; color: #542516; font-family: Georgia, serif; font-size: 33px; }
.portal-heading p { margin: 0 auto 28px; max-width: 460px; color: #7c5b40; font-size: 12px; line-height: 1.6; }
.portal-form { display: grid; gap: 16px; }
.portal-form label { color: #65402a; font-size: 12px; font-weight: 600; }
.portal-form input[type="text"], .portal-form input[type="password"] { width: 100%; height: 46px; margin-top: 7px; padding: 0 14px; color: #421b0f; background: rgba(255, 248, 218, .7); border: 1px solid #a77b47; outline: none; }
.portal-form input:focus { border-color: #6e3519; box-shadow: 0 0 0 2px rgba(111, 53, 25, .12); }
.form-row { display: flex; justify-content: space-between; align-items: center; }
.form-row a { color: #8a4c24; font-size: 11px; }
.check { display: flex; align-items: center; gap: 7px; }
.check input { margin: 0; }
.charge-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.charge-options label { position: relative; }
.charge-options input { position: absolute; opacity: 0; }
.charge-options span { padding: 13px 8px; display: block; background: rgba(255, 246, 214, .65); border: 1px solid #ad8250; text-align: center; cursor: pointer; }
.charge-options b, .charge-options small { display: block; }
.charge-options b { color: #623018; font-size: 14px; }
.charge-options small { margin-top: 4px; color: #9a7957; font-size: 9px; }
.charge-options input:checked + span { background: #6f2a17; border-color: #6f2a17; }
.charge-options input:checked + span b { color: #f4d992; }
.charge-options input:checked + span small { color: #d6b984; }
.portal-note { margin-top: 24px; padding-top: 17px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #8a684b; border-top: 1px solid rgba(105, 58, 29, .18); font-size: 10px; }
.portal-note i { width: 6px; height: 6px; border-radius: 50%; background: #8c572c; }

.account-auth-stage { display: grid; place-items: center; }
.login-panel { margin: 0; }
.account-auth-links { margin-top: 20px; display: flex; justify-content: center; gap: 7px; color: #7d5d43; font-size: 11px; }
.account-auth-links a { color: #743719; font-weight: 800; }
.account-auth-links a:hover { text-decoration: underline; }

.account-stage {
  min-height: 100vh;
  padding: 34px 24px 110px;
  background:
    linear-gradient(180deg, rgba(35, 4, 2, .38), rgba(24, 2, 1, .94)),
    url("bg-upper-clean.png") top center / 1920px auto no-repeat,
    #370b06;
}
.account-shell { width: min(1130px, 100%); margin: 0 auto; }
.account-toolbar { min-height: 48px; display: flex; align-items: center; justify-content: space-between; }
.account-toolbar > a { color: #e3c47c; font-size: 12px; letter-spacing: .06em; }
.account-toolbar form { margin: 0; }
.account-toolbar button { padding: 8px 15px; color: #e8cb88; background: rgba(63, 13, 7, .76); border: 1px solid rgba(218, 178, 91, .5); cursor: pointer; }
.account-toolbar a:hover,
.account-toolbar button:hover { color: #fff0b4; border-color: #ebc978; }

.account-hero {
  min-height: 176px;
  padding: 30px 40px;
  display: flex;
  align-items: center;
  gap: 25px;
  background: linear-gradient(135deg, rgba(78, 19, 10, .96), rgba(38, 7, 4, .94));
  border: 1px solid rgba(224, 181, 92, .48);
  box-shadow: inset 0 0 0 4px rgba(255, 215, 132, .035), 0 20px 54px rgba(16, 1, 0, .35);
}
.account-avatar { width: 92px; height: 92px; flex: 0 0 auto; display: grid; place-items: center; color: #f4d58a; background: radial-gradient(circle, #8b2a1b, #2f0b07 70%); border: 2px solid #bb8b43; border-radius: 50%; box-shadow: inset 0 0 0 6px #49130d; font-family: Georgia, serif; font-size: 42px; }
.account-hero span,
.account-panel header span { color: #b48441; font-size: 9px; font-weight: 800; letter-spacing: .28em; }
.account-hero h1 { margin: 7px 0 8px; color: #f1d999; font-family: Georgia, serif; font-size: 34px; }
.account-hero p { margin: 0; color: #aa9672; font-size: 11px; }
.account-state { color: #d7bd80; font-weight: 700; }
.account-state.active { color: #75d9a0; }

.account-stats { margin: 18px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.account-stats article { min-height: 112px; padding: 22px 24px; background: rgba(57, 11, 7, .9); border: 1px solid rgba(218, 177, 91, .3); }
.account-stats small,
.account-stats strong,
.account-stats span { display: block; }
.account-stats small { color: #a97a3c; font-size: 8px; font-weight: 800; letter-spacing: .22em; }
.account-stats strong { margin-top: 10px; color: #ead49e; font-family: Georgia, serif; font-size: 17px; }
.account-stats span { margin-top: 6px; color: #8f7d61; font-size: 10px; }

.account-panel { margin-top: 18px; padding: 26px; background: rgba(45, 8, 5, .91); border: 1px solid rgba(218, 177, 91, .32); box-shadow: 0 15px 40px rgba(17, 1, 0, .22); }
.account-panel > header { margin-bottom: 20px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.account-panel header h2 { margin: 5px 0 0; color: #ead49d; font-family: Georgia, serif; font-size: 22px; }
.account-panel > header > small { color: #8d7a5f; font-size: 10px; }
.account-zone-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.account-zone-card { padding: 20px; background: linear-gradient(145deg, rgba(90, 25, 14, .56), rgba(52, 10, 6, .62)); border: 1px solid rgba(214, 170, 83, .32); }
.zone-heading { margin-bottom: 15px; display: flex; align-items: start; justify-content: space-between; }
.zone-heading small { color: #a97639; font-size: 8px; letter-spacing: .2em; }
.zone-heading h3 { margin: 5px 0 0; color: #ecd7a4; font-family: Georgia, serif; font-size: 19px; }
.zone-state { padding: 4px 8px; color: #dfbd78; background: rgba(19, 3, 2, .38); border: 1px solid rgba(212, 166, 81, .28); font-size: 8px; text-transform: uppercase; }
.zone-state.active { color: #79dda4; border-color: rgba(100, 210, 147, .32); }
.account-zone-card dl { margin: 0; }
.account-zone-card dl div { padding: 8px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(214, 171, 84, .12); }
.account-zone-card dl div:last-child { border-bottom: 0; }
.account-zone-card dt { color: #8e7b60; font-size: 10px; }
.account-zone-card dd { margin: 0; color: #d5be89; font-size: 10px; text-align: right; }

.account-columns { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.account-activity,
.account-giftcodes { display: grid; }
.account-activity article { min-height: 66px; padding: 11px 0; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid rgba(214, 171, 84, .13); }
.account-activity i { width: 34px; height: 34px; display: grid; place-items: center; color: #e4c47c; background: #651d12; border: 1px solid #94602e; border-radius: 50%; font-family: Georgia, serif; font-style: normal; }
.account-activity b,
.account-activity small { display: block; }
.account-activity b { color: #d8c28e; font-size: 11px; }
.account-activity small { margin-top: 5px; color: #806f58; font-size: 9px; }
.account-activity strong { color: #e5c678; font-family: Georgia, serif; font-size: 14px; }
.account-activity time { grid-column: 2 / -1; margin-top: -10px; color: #6e604e; font-size: 8px; }
.account-giftcodes article { padding: 14px 0; display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; border-bottom: 1px solid rgba(214, 171, 84, .13); }
.account-giftcodes b,
.account-giftcodes small { display: block; }
.account-giftcodes b { color: #d8c28e; font-size: 11px; }
.account-giftcodes small { margin-top: 4px; color: #806f58; font-size: 9px; }
.account-giftcodes code { color: #e4c375; background: rgba(100, 30, 17, .5); padding: 5px 8px; font-family: Consolas, monospace; font-size: 10px; }
.account-giftcodes time { grid-column: 1 / -1; color: #6e604e; font-size: 8px; }
.account-empty { margin: 0; padding: 24px 10px; color: #89775c; text-align: center; font-size: 11px; }

.download-list { display: grid; gap: 10px; }
.download-list article { padding: 14px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px; background: rgba(255, 246, 214, .58); border: 1px solid #ad8250; }
.download-list article > span { width: 42px; height: 42px; display: grid; place-items: center; color: #f5dc9d; background: #6d2a18; font-family: Georgia, serif; }
.download-list b, .download-list small { display: block; }
.download-list b { color: #5f2b17; font-size: 14px; }
.download-list small { margin-top: 4px; color: #917154; font-size: 10px; }
.download-list button { padding: 9px 14px; color: #f2d798; background: #6d2a18; border: 1px solid #542012; cursor: pointer; }
.community-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.community-links a { min-height: 128px; padding: 20px 10px; display: grid; place-items: center; align-content: center; gap: 11px; background: rgba(255, 246, 214, .58); border: 1px solid #ad8250; text-align: center; }
.community-links span { color: #7c3c1e; font-family: Georgia, serif; font-size: 24px; }
.community-links b { color: #60301a; font-size: 12px; }

@media (max-width: 900px) {
  .public-site { min-width: 0; }
  .xoyo-bar { padding: 0 16px; }
  .mobile-menu { display: block; color: #71432d; background: transparent; border: 0; font-size: 22px; }
  .utility-nav { position: absolute; top: 50px; right: 12px; width: 210px; height: auto; padding: 8px; display: none; flex-direction: column; align-items: stretch; background: #fff; box-shadow: 0 14px 32px rgba(0, 0, 0, .22); }
  .utility-nav.open { display: flex; }
  .utility-nav a { line-height: 40px; }
  .utility-nav a + a::before { display: none; }
  .campaign-stage { background-size: auto 3650px, auto 3650px; }
  .campaign-hero { height: 680px; }
  .hero-site-logo { top: 8px; left: 18px; width: 280px; height: 130px; }
  .hero-actions { top: 22px; right: 18px; }
  .hero-account-entry { top: 104px; right: 18px; }
  .metal-button { min-width: 135px; min-height: 46px; padding: 0 21px; font-size: 14px; }
  .hero-caption { bottom: 150px; width: calc(100% - 30px); }
  .hero-caption p { font-size: 11px; letter-spacing: .22em; }
  .hero-caption strong { font-size: 20px; }
  .campaign-nav-shell { width: 100%; height: 128px; background-size: 900px auto; }
  .campaign-nav { top: 39px; width: 94%; height: 72px; overflow-x: auto; grid-template-columns: repeat(6, minmax(112px, 1fr)); }
  .campaign-nav span { font-size: 13px; }
  .campaign-content { width: min(94%, 680px); padding-top: 52px; }
  .ornate-section { margin-bottom: 78px; }
  .ornate-section::before { height: 64px; background-size: auto 64px; }
  .section-title span { min-height: 64px; }
  .news-grid, .event-cards, .guide-grid { grid-template-columns: 1fr; }
  .section-title h2 { font-size: 28px; }
  .server-board { grid-template-columns: 80px 1fr; }
  .server-board dl, .server-board > .metal-button { grid-column: 1 / -1; }
  .game-footer { grid-template-columns: 1fr; text-align: center; }
  .footer-logo { margin: 0 auto; }
  .game-footer nav { justify-content: center; }
  .portal-panel { width: min(94vw, 620px); padding: 42px 28px 32px; }
  .account-stats { grid-template-columns: 1fr; }
  .account-zone-grid,
  .account-columns { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .xoyo-brand small { display: none; }
  .hero-site-logo { top: 4px; left: 50%; width: 220px; height: 96px; transform: translateX(-50%); }
  .hero-actions { top: 92px; left: 16px; right: 16px; justify-content: center; }
  .hero-actions .metal-button { width: calc(50% - 5px); height: auto; aspect-ratio: 241 / 91; padding: 0 20px 11%; font-size: 13px; }
  .hero-account-entry { top: 172px; left: 16px; right: 16px; justify-content: center; }
  .hero-caption { bottom: 142px; }
  .campaign-nav { justify-content: start; }
  .featured-art { min-height: 300px; }
  .featured-copy { left: 22px; width: 82%; }
  .featured-copy h3 { font-size: 27px; }
  .section-title span { min-width: 0; width: calc(100% - 20px); padding: 0 36px; font-size: 13px; }
  .charge-options, .community-links { grid-template-columns: 1fr; }
  .download-list article { grid-template-columns: 42px 1fr; }
  .download-list button { grid-column: 1 / -1; }
  .site-modal { padding: 14px 10px; }
  .site-modal__dialog { width: calc(100vw - 20px); max-height: calc(100vh - 28px); padding: 42px 22px 28px; }
  .site-modal .portal-heading h2 { font-size: 27px; }
  .account-stage { padding: 16px 10px 70px; }
  .account-hero { padding: 25px 20px; }
  .account-avatar { width: 68px; height: 68px; font-size: 31px; }
  .account-hero h1 { font-size: 26px; }
  .account-panel { padding: 20px 16px; }
  .account-panel > header { align-items: start; flex-direction: column; gap: 6px; }
}
