/* Daytime village. The artwork and title come from the original game client. */
html[data-village-page="home"], html[data-village-page="home"] body {
  height: auto !important; min-height: 100%; overflow-x: clip !important; background: #f4f6f0;
}
#village-home {
  --ink: #382e27; --mute: #625c51; --accent: #a24525; --surface: #fff; --line: #cfc9bc;
  --gutter: clamp(16px,4.6vw,72px); --hand: "Kaiti SC","STKaiti","KaiTi","FangSong",serif;
  min-height: 100vh; background: #f4f6f0; color: var(--ink);
  font: 15px/1.55 "Microsoft YaHei UI","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  text-align: left; -webkit-text-size-adjust: 100%;
}
#village-home[hidden], #village-home [hidden], .portal-symbols { display: none !important; }
#village-home *, #village-home *::before, #village-home *::after { box-sizing: border-box; }
#village-home ::selection { background: #f5d383; color: #392a21; }
#village-home a { color: inherit; text-decoration: none; }
#village-home button { font: inherit; cursor: pointer; }
#village-home :is(a,button,section):focus-visible { outline: 3px solid #97512b; outline-offset: 3px; }
#village-main:focus { outline: 0; }
.portal-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.vh-skip { position: fixed; top: 9px; left: 9px; transform: translateY(-180%); z-index: 20; padding: 10px 16px; background: white; }
.vh-skip:focus { transform: none; }
.vh-wrap { width: calc(100% - var(--gutter) - var(--gutter)); max-width: 1220px; margin-inline: auto; }
.pt-icon { display: inline-block; width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.portal-masthead { position: relative; isolation: isolate; overflow: hidden; background: #f8f4dd; }
.portal-masthead::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(#c9bd8c .8px,transparent 1.1px) 0 0/7px 7px;
  mask-image: linear-gradient(105deg,rgba(0,0,0,.44),transparent 45%);
}
.portal-scene { position: absolute; inset: 0 0 0 37%; z-index: -1; background: #63744b; clip-path: polygon(5% 0,100% 0,100% 100%,0 100%); }
.portal-scene img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 94%; clip-path: polygon(calc(5% + 2px) 0,100% 0,100% 100%,2px 100%); }
.portal-site-caption { margin: 0; padding: 5px 12px; color: #493624; background: #faf3df; text-align: center; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.portal-mast-inner { display: flex; align-items: center; min-height: clamp(220px,18.2vw,300px); }
#vh-title { width: 34%; text-align: center; }
.vh-brand { display: inline-block; vertical-align: middle; }
.portal-title-art { display: block; width: clamp(170px,18vw,275px); height: auto; }
.portal-navbar { background: #fff; border-block: 1px solid #a59a80; }
.vh-nav { display: grid; width: 100%; grid-template-columns: repeat(4,minmax(0,1fr)); }
.vh-nav a { display: flex; justify-content: center; align-items: center; min-width: 0; min-height: 47px; padding-inline: 6px; text-align: center; white-space: nowrap; font-size: 15px; font-weight: 650; }
#village-home .vh-nav a[aria-current] { color: #62371e; background: #fff2cb; box-shadow: inset 0 -3px #ae622f; }
#village-home .vh-nav a:focus-visible { position: relative; outline: 2px solid #81502e; outline-offset: -4px; }
#village-main { padding-block: 18px 34px; }
.portal-desk {
  display: grid; grid-template-columns: minmax(185px,.77fr) minmax(0,1.94fr) minmax(223px,1fr);
  align-items: stretch; gap: clamp(14px,1.45vw,22px);
}
.portal-desk:not(:has(.portal-bestiary:not([hidden]))) { grid-template-columns: minmax(185px,.77fr) minmax(0,2.94fr); }
.portal-player { min-width: 0; padding: 11px; display: flex; flex-direction: column; border-top: 2px solid #a46932; background: #fbf2dc; }
#village-home .vh-primary {
  position: relative; display: flex; align-items: flex-end; justify-content: center; flex: 1;
  color: #fff9e4; text-align: left; border-radius: 8px;
}
.portal-start-emblem {
  --crest: #569b9f;
  position: relative; isolation: isolate; display: grid; grid-template-columns: 39% 1fr;
  align-items: end; width: 100%; height: clamp(118px, 10.1vw, 148px);
}
.portal-start-emblem::before {
  content: ""; position: absolute; z-index: -1; inset: 24% 0 1px; pointer-events: none;
  border: 2px solid #3c545f; border-radius: 11px 5px 11px 5px;
  background:
    linear-gradient(100deg,transparent 23%,#315969 65%,#264657 100%),
    repeating-radial-gradient(ellipse at 50% 100%, transparent 0 3px, #a3cfbc88 3.5px 4.5px, transparent 5px 7px) 0 1px/26px 15px,
    var(--crest);
  box-shadow: inset 0 0 0 1px #e2c793, 0 2px 0 #a89578;
}
.portal-start-picture {
  position: relative; display: block; justify-self: center; align-self: stretch; width: 100%; pointer-events: none;
}
.portal-start-art {
  position: absolute; bottom: 3px; left: 50%; display: block; width: auto; height: auto;
  max-width: 115%; max-height: 100%; transform: translateX(-46%);
  filter: drop-shadow(1px 0 0 #fff1ce) drop-shadow(-1px 0 0 #fff1ce);
}
.portal-dl-label {
  z-index: 1; align-self: stretch; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 0 4px; margin-top: 25%; gap: 3px;
}
.portal-dl-label strong {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  color: #fff6d8; font: 700 clamp(21px,1.78vw,27px)/1.2 var(--hand);
  text-shadow: 0 1px 1px #183845;
}
.portal-dl-label strong::after { content: ""; width: 0; height: 0; border-left: 5px solid #ffd185; border-block: 4px solid transparent; }
.portal-dl-label small { color: #f1eee0; font-size: 11px; line-height: 1.45; white-space: nowrap; }
@media (hover:hover) and (pointer:fine) {
  .vh-primary:hover .portal-start-emblem { --crest: #68a9a9; }
  .vh-primary:hover .portal-dl-label strong { color: #ffdfa1; }
}
.vh-primary:active .portal-start-emblem { transform: translateY(1px); }

.portal-auth-links { display: flex; gap: 6px; margin-top: 7px; }
#village-home .portal-auth-links a {
  display: flex; flex: 1 1 0; align-items: center; justify-content: center;
  min-width: 0; min-height: 44px; padding: 3px 5px; border: 1px solid #a58e70; border-radius: 4px;
  font-size: 14px; font-weight: 650; background: #fffdf6; white-space: nowrap;
}
#village-home .portal-auth-links .vh-account { background: #ffdc97; border-color: #b78a4e; }
.vh-account span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.portal-shortcuts { margin-top: 10px; border-top: 1px solid #d5c4a3; }
.portal-shortcuts a { display: flex; align-items: center; gap: 9px; min-height: 43px; padding-inline: 6px; font-size: 14px; }
.portal-shortcuts a + a { border-top: 1px solid #e2d6be; }
.portal-shortcuts a::after { content: ""; width: 6px; height: 6px; margin-left: auto; border: solid #82745e; border-width: 1px 1px 0 0; transform: rotate(45deg); }
.portal-shortcuts .pt-icon { width: 16px; height: 16px; color: #795033; }
#village-news { scroll-margin-top: 12px; }
.v-news-tab { position: relative; }
.portal-boss-controls [data-boss-prev] .pt-icon { transform: rotate(180deg); }
.portal-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.portal-footer-inner a { display: inline-flex; gap: 8px; min-height: 44px; align-items: center; flex-wrap: wrap; }
@media (hover:hover) and (pointer:fine) {
  #village-home .vh-nav a:not([aria-current]):hover, #village-home .portal-shortcuts a:hover { color: #984921; background: #fff5dd; }
  #village-home .portal-auth-links a:hover { border-color: #72523b; }
  .vh-primary:hover small { text-decoration: underline; text-underline-offset: 3px; }
}
#village-home .vh-nav a:active, #village-home .vh-nav a:not([aria-current]):active { color: #663916; background: #f4ddb4; box-shadow: inset 0 -3px #a45c2f; }
@media (max-width:950px) {
  #village-home { --gutter: 17px; }
  .portal-desk { grid-template-columns: 166px minmax(0,1.6fr) minmax(187px,1fr); gap: 12px; }
}
@media (max-width:820px) {
  .portal-desk { grid-template-columns: minmax(0,1.5fr) minmax(220px,1fr); }
  .portal-desk:not(:has(.portal-bestiary:not([hidden]))) { grid-template-columns: 1fr; }
  .portal-player { grid-column: 1/-1; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); grid-template-areas: "start services" "auth services"; gap: 5px 22px; padding: 10px 14px; }
  #village-home .vh-primary { grid-area: start; }
  .portal-start-emblem { grid-template-columns: 39% 1fr; height: 75px; }
  .portal-start-emblem::before { top: 13%; }
  .portal-dl-label { margin-top: 10px; gap: 2px; }
  .portal-dl-label strong { font-size: 21px; }
  .portal-start-art { transform: translateX(-50%); }
  .portal-auth-links { grid-area: auth; margin: 0; }
  .portal-shortcuts { grid-area: services; align-self: center; margin: 0; padding-left: 13px; border: 0; border-left: 1px solid #d5c4a3; }
  .portal-shortcuts a { min-height: 44px; }
}
@media (max-width:700px) {
  #village-home { --gutter: 12px; }
  .portal-nav-inner { width: 100%; }
  .vh-nav a { padding-inline: 3px; min-height: 44px; font-size: 14px; }
  .portal-mast-inner { min-height: clamp(103px,29vw,166px); }
  .portal-title-art { width: clamp(96px,26vw,170px); }
  .portal-scene { left: 35%; }
  .portal-scene img { object-position: center 91%; }
  #village-main { padding-block: 12px 24px; }
  .portal-desk { grid-template-columns: 1fr; gap: 12px; }
  .portal-player { grid-template-columns: minmax(0,1.24fr) minmax(0,.86fr); gap: 5px 12px; padding: 9px 11px; }
  .portal-start-emblem { height: 64px; grid-template-columns: 32% 1fr; }
  .portal-dl-label { padding-inline: 3px; }
  .portal-auth-links a { font-size: 12px; }
  .portal-shortcuts { padding-left: 9px; }
  .portal-shortcuts a { padding-inline: 0; font-size: 13px; gap: 6px; }
}
@media (max-width:370px) {
  #village-home { --gutter: 9px; }
  .portal-player { gap: 4px 9px; padding-inline: 8px; }

  .portal-player { grid-template-columns: minmax(0,1.38fr) minmax(0,.72fr); }
  .portal-start-emblem { grid-template-columns: 30% 1fr; }
  .portal-dl-label { padding-inline: 4px; }
  .portal-dl-label small { font-size: 11px; }
  .portal-shortcuts { padding-left: 7px; }
}

/* Original game handbook: news entries, a boss portrait and illustrated guides. */
#village-home :is(.portal-news,.portal-bestiary,.portal-guides,.vh-footer) {
  --pen: #3d312b;
  --quiet: #675f55;
  --red-pen: #994726;
  --green-pen: #365e50;
  --fine-line: #dcd8cf;
  --heading-hand: "Kaiti SC","STKaiti","KaiTi","FangSong",serif;
  min-width: 0; border-radius: 0; box-shadow: none; color: var(--pen);
}
#village-home .portal-heading {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  min-height: 0; gap: 2px 12px; padding: 0 0 8px; margin: 0;
  border: 0; border-bottom: 1px solid #a79d8e;
}
#village-home .portal-heading h2 {
  margin: 0; color: var(--pen);
  font: 700 clamp(26px,2.1vw,33px)/1.25 var(--heading-hand); letter-spacing: .045em;
}
#village-home .portal-heading .vh-more {
  min-height: 40px; display: inline-flex; align-items: center; flex: none; gap: 4px;
  padding: 0 1px; color: #66594d; font-size: 13px; font-weight: 500; line-height: 1.45; white-space: nowrap;
}
#village-home .portal-heading .vh-more .pt-icon { width: 14px; height: 14px; }

/* Printed entries: categories, headlines and their actual publishing dates. */
#village-home .portal-news {
  background: #fff; border: 0; border-top: 2px solid #503d31;
  padding: 14px clamp(16px,2vw,30px) 12px;
}
#village-home .v-news-tabs { display: flex; align-items: stretch; flex-wrap: wrap; gap: 2px 18px; margin: 0; padding: 0; border-bottom: 1px solid var(--fine-line); }
#village-home .v-news-tab {
  position: relative; min-width: 36px; min-height: 43px; padding: 0 2px;
  background: none; color: var(--quiet); border: 0; border-radius: 0; font-size: 14px !important; font-weight: 550;
}
#village-home .v-news-tab[aria-pressed="true"] { color: var(--red-pen); font-weight: 700 !important; }
#village-home .v-news-tab[aria-pressed="true"]::after {
  content: ""; position: absolute; inset: auto 1px -1px; height: 3px;
  border-radius: 55% 12% 46% 30%; transform: rotate(-1deg); background: #bb6439;
}
#village-home .v-news-list { padding: 0; margin: 0; list-style: none; }
#village-home .v-news-list[aria-busy="true"] { min-height: 252px; }
#village-home .v-news-row { border: 0; border-bottom: 1px solid #e8e5df; }
#village-home .v-news-row:last-child { border-bottom: 0; }
#village-home .v-news-link {
  display: flex; align-items: baseline; gap: clamp(7px,.8vw,15px); min-width: 0; min-height: 44px;
  padding: 10px 0; font-size: 15px; line-height: 1.55; color: #38312c;
}
#village-home .v-news-kind {
  flex: none; color: var(--red-pen); font-size: 12px; line-height: 1.55; font-weight: 600; white-space: nowrap;
}
#village-home .v-news-kind[data-kind="guides"] { color: var(--green-pen); }
#village-home .v-news-title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#village-home .is-pinned .v-news-title { font-weight: 700; }
#village-home .v-news-pin { flex: none; color: var(--red-pen); font-size: 11px; white-space: nowrap; }
#village-home .v-news-date {
  margin-left: auto; flex: none; color: var(--quiet); font-size: 12px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
#village-home .v-news-status {
  min-height: 76px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--quiet);
}
#village-home .v-news-retry { min-height: 44px; padding: 0 12px; border: 1px solid #beb6a8; border-radius: 2px; background: #faf9f6; color: var(--red-pen); }

/* One character plate: real game image, name, level and map. */
#village-home .portal-bestiary {
  display: flex; flex-direction: column; padding: 14px clamp(16px,1.75vw,25px) 10px;
  background: #fff; border: 0; border-top: 2px solid #527462;
  container-type: inline-size; container-name: kh-boss;
}
#village-home .portal-bestiary .portal-heading h2 { color: #365646; }
#village-home .portal-bestiary .portal-heading { border-bottom-color: #b6c3b7; }
#village-home .portal-boss-card {
  display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.85fr); align-items: center;
  flex: 1; gap: clamp(12px,1.6vw,23px); padding: 0; margin: 15px 0 12px;
  min-width: 0; min-height: 0; background: transparent; border: 0;
}
#village-home .portal-boss-picture {
  position: relative; width: 100%; max-width: 228px; aspect-ratio: .86; justify-self: center; min-width: 0;
  overflow: hidden; border: 1px solid #a6afa0; background: #f4f5f0;
}
#village-home .portal-boss-picture img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center;
}
#village-home .portal-boss-record { min-width: 0; background: none; padding: 0; color: #344537; }
#village-home .portal-boss-record h3 { margin: 0; font: 700 clamp(23px,1.9vw,30px)/1.35 var(--heading-hand); color: #3e4739; overflow-wrap: anywhere; }
#village-home .portal-boss-record dl { display: grid; gap: 12px; margin: 14px 0 0; }
#village-home .portal-boss-record dl div { min-width: 0; display: block; }
#village-home .portal-boss-record dt { color: #637265; font-size: 12px; line-height: 1.5; }
#village-home .portal-boss-record dd { margin: 1px 0 0; color: #394636; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
#village-home .portal-boss-controls {
  display: flex; align-items: center; justify-content: flex-end; gap: 3px;
  margin-top: auto; padding: 1px 0 0; border-top: 1px solid var(--fine-line);
}
#village-home .portal-boss-controls button {
  display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 0;
  background: transparent; color: #42644c;
}
#village-home .portal-boss-controls button:disabled { cursor: default; opacity: .45; }
#village-home .portal-boss-controls .pt-icon { width: 16px; height: 16px; }
#village-home .portal-boss-controls [data-boss-count] {
  min-width: 34px; text-align: center; color: #546555; font-size: 13px; font-variant-numeric: tabular-nums;
}
@container kh-boss (max-width: 260px) {
  #village-home .portal-boss-card { grid-template-columns: minmax(0,1fr); gap: 8px; }
  #village-home .portal-boss-picture { max-width: 145px; }
  #village-home .portal-boss-record dl { display: flex; flex-wrap: wrap; gap: 7px 15px; margin-top: 5px; }
}

/* A single strip of illustrated articles. Let the game capture carry each title. */
#village-home .portal-guides {
  margin: clamp(23px,3.3vw,45px) 0 0; padding: 15px clamp(16px,2vw,30px) 22px;
  background: #fff; border: 0; border-top: 2px solid #72503a;
}
#village-home .portal-guide-grid {
  display: grid; grid-template-columns: minmax(0,1.11fr) repeat(2,minmax(0,1fr));
  align-items: start; gap: clamp(16px,2.1vw,30px); padding: 18px 0 0;
}
#village-home .portal-pick, #village-home .portal-pick + .portal-pick {
  display: grid; align-items: start; align-content: start; grid-template-columns: minmax(0,1fr);
  min-width: 0; gap: 8px; padding: 0; margin: 0; border: 0; background: transparent;
}
#village-home .portal-pick-img {
  display: block; width: 100%; height: auto; aspect-ratio: 1.85;
  background: #f2f0e9; border: 1px solid #aaa092; object-fit: cover; object-position: center 48%;
}
#village-home .portal-pick:first-child .portal-pick-img { aspect-ratio: 2.05; }
#village-home .portal-pick-copy { min-width: 0; }
#village-home .portal-pick-copy strong { display: block; margin: 0; font: 700 clamp(18px,1.55vw,23px)/1.48 var(--heading-hand); color: var(--pen); overflow-wrap: anywhere; }
#village-home .portal-pick-copy time { display: block; margin-top: 2px; color: var(--quiet); font-size: 12px; line-height: 1.5; font-variant-numeric: tabular-nums; }
#village-home .vh-footer { margin: 0; border: 0; border-top: 1px solid #c1cabe; background: #e8eee5; color: #405344; }
#village-home .portal-footer-inner { min-height: 70px; padding-block: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 3px 18px; font-size: 13px; line-height: 1.55; }
#village-home .portal-footer-inner > span { font: 700 18px/1.5 var(--heading-hand); }
#village-home .portal-footer-inner a { min-height: 44px; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 7px; color: #405344; }
#village-home :is(.portal-news,.portal-bestiary,.portal-guides,.vh-footer) :is(a,button):focus-visible { outline: 3px solid #93552f; outline-offset: 2px; }
@media (hover:hover) and (pointer:fine) {
  #village-home .portal-heading .vh-more:hover, #village-home .v-news-link:hover .v-news-title,
  #village-home .portal-pick:hover strong, #village-home .portal-footer-inner a:hover { color: #963f24; text-decoration: underline; text-underline-offset: .22em; }
  #village-home .v-news-tab:hover, #village-home .portal-boss-controls button:not(:disabled):hover { background: #f1f4ed; }
}
@media (max-width:1000px) {
  #village-home .portal-news, #village-home .portal-bestiary { padding-inline: 16px; }
  #village-home .v-news-link { gap: 7px; }
}
@media (max-width:700px) {
  #village-home .portal-news, #village-home .portal-bestiary, #village-home .portal-guides { padding: 12px 15px; }
  #village-home .portal-heading { gap: 3px 9px; padding-bottom: 3px; }
  #village-home .portal-heading .vh-more, #village-home .v-news-tab { min-height: 44px; }
  #village-home .v-news-tabs { column-gap: 11px; }
  #village-home .v-news-link { padding: 8px 0; }
  #village-home .portal-boss-card { grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: 17px; margin: 12px 0; }
  #village-home .portal-boss-picture { max-width: 181px; }
  #village-home .portal-boss-record dl { display: grid; gap: 8px; margin-top: 8px; }
  #village-home .portal-boss-controls button { width: 44px; height: 44px; }
  #village-home .portal-guide-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 14px; padding-top: 13px; }
  #village-home .portal-pick:first-child { grid-column: 1/-1; }
  #village-home .portal-pick-img { aspect-ratio: 1.6; }
  #village-home .portal-pick:first-child .portal-pick-img { aspect-ratio: 2.05; }
}
@media (max-width:460px) {
  #village-home .v-news-link { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 1px 6px; align-items: baseline; }
  #village-home .v-news-kind { grid-column: 1; grid-row: 1; }
  #village-home .v-news-title { grid-column: 2/-1; grid-row: 1; }
  #village-home .v-news-pin { grid-column: 2; grid-row: 2; }
  #village-home .v-news-date { grid-column: 3; grid-row: 2; }
  #village-home .portal-footer-inner { flex-direction: column; align-items: flex-start; gap: 0; padding-block: 10px 5px; }
}
@media (max-width:350px) {
  #village-home .portal-news, #village-home .portal-bestiary, #village-home .portal-guides { padding-inline: 10px; }
  #village-home .portal-boss-card { gap: 10px; }
}

/* Homepage desk at the original three-column density. */
#village-home .portal-news { padding: 10px clamp(13px,1.4vw,20px) 7px; }
#village-home .portal-bestiary { padding: 10px clamp(12px,1.15vw,17px) 6px; }
#village-home .portal-desk .portal-heading { gap: 2px 8px; padding-bottom: 3px; }
#village-home .portal-desk .portal-heading h2 { font-size: clamp(23px,1.72vw,28px); }
#village-home .portal-desk .portal-heading .vh-more { min-height: 35px; }
#village-home .v-news-tabs { column-gap: 13px; }
#village-home .v-news-tab { min-height: 36px; }
#village-home .v-news-list[aria-busy="true"] { min-height: 228px; }
#village-home .v-news-link { min-height: 38px; padding: 7px 0; gap: clamp(5px,.65vw,10px); }
#village-home .v-news-title { line-height: 1.5; }
#village-home .portal-guides { margin-top: clamp(16px,1.7vw,24px); padding-top: 10px; padding-bottom: 17px; }
#village-home .portal-guide-grid { padding-top: 13px; gap: clamp(13px,1.65vw,22px); }
#village-home .portal-pick, #village-home .portal-pick + .portal-pick { gap: 5px; }

@media (min-width:701px) {
  #village-home .portal-boss-card {
    grid-template-columns: minmax(0,1fr); justify-items: center; align-content: center;
    gap: 7px; margin: 7px 0 5px;
  }
  #village-home .portal-boss-picture { max-width: 136px; }
  #village-home .portal-boss-record { width: 100%; text-align: center; }
  #village-home .portal-boss-record h3 { font-size: 22px; line-height: 1.25; }
  #village-home .portal-boss-record dl {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 10px; margin-top: 3px;
  }
  #village-home .portal-boss-record dl div { display: inline-flex; align-items: baseline; gap: 4px; min-width: 0; }
  #village-home .portal-boss-record dd { margin: 0; font-size: 13px; }
  #village-home .portal-boss-controls { justify-content: center; padding-top: 0; }
  #village-home .portal-boss-controls button { width: 38px; height: 36px; }
}
@media (max-width:700px) {
  #village-home .portal-news, #village-home .portal-bestiary, #village-home .portal-guides { padding: 9px 13px 10px; }
  #village-home .portal-desk .portal-heading { padding: 0; }
  #village-home .v-news-tab, #village-home .portal-desk .vh-more,
  #village-home .portal-boss-controls button { min-height: 44px; }
  #village-home .v-news-link { min-height: 44px; }
  #village-home .portal-boss-card { gap: 13px; margin: 9px 0; }
  #village-home .portal-boss-picture { max-width: 144px; }
  #village-home .portal-boss-record dl { margin-top: 7px; gap: 5px; }
  #village-home .portal-guide-grid { row-gap: 13px; }
}
@media (max-width:460px) {
  #village-home .v-news-link { display: flex; flex-wrap: nowrap; align-items: center; column-gap: 5px; padding: 6px 0; }
  #village-home .v-news-title { flex: 1; min-width: 0; font-size: 14px; }
  #village-home .v-news-date { font-size: 11px; }
  #village-home .v-news-pin { font-size: 11px; }
}

/* The server also injects the launcher prompt for existing game-entry links. */
html.village-prompt-open, html.village-prompt-open body { overflow-y: hidden !important; }
#xixi-launcher-download-modal.is-open { background: rgb(22 19 17 / 65%); }
#xixi-launcher-download-modal .xixi-launcher-dialog { padding: 24px clamp(17px,4vw,34px); max-height: calc(100vh - 32px); overflow-y: auto; border: 1px solid #51473d; border-radius: 3px; background: #fffdf7; color: #2b2520; box-shadow: 0 10px 30px #17141045; }
#xixi-launcher-download-modal .xixi-launcher-fire { width: 132px; height: 65px; margin: 0 auto 9px; background: url("/static/img/top_logo.classic.png") center/contain no-repeat; box-shadow: none; color: transparent; border-radius: 0; }
#xixi-launcher-download-modal h1 { font-size: clamp(22px,4vw,29px); color: #302923; text-shadow: none; }
#xixi-launcher-download-modal .xixi-launcher-lead { color: #554c42; font-size: 15px; }
#xixi-launcher-download-modal .xixi-launcher-note { padding: 12px; background: #f3f0e8; border-color: #dbd2c5; color: #4a4036; font-size: 14px; }
#xixi-launcher-download-modal .xixi-launcher-download { color: #fff; background: #b3431c; border-color: #9a3616; font-size: 18px; text-shadow: none; box-shadow: none; }
#xixi-launcher-download-modal .xixi-launcher-close { width: 44px; height: 44px; background: #faf7f0; border-color: #b3a492; color: #56483b; }
#xixi-launcher-download-modal :is(a,button):focus-visible { outline: 3px solid #975414; outline-offset: 3px; }
