:root {
  color-scheme: dark;
  --bg: #111019;
  --surface: #201e2b;
  --border: #393546;
  --text: #f8f6fc;
  --muted: #c5bdd1;
  --coral: #ff806d;
  --lilac: #d5a8ff;
  font-family: Arial, system-ui, sans-serif;
}
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button,input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible,a:focus-visible,input:focus-visible { outline: 2px solid var(--lilac); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 96px, 1248px); margin: 0 auto; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 12px; background: var(--surface); transform: translateY(-160%); }
.skip:focus { transform: none; }
.header { position: sticky; top: 0; z-index: 5; background: #14131cf5; border-bottom: 1px solid var(--border); }
.header-inner,.nav,.header-actions,.hero-actions,.section-head,.footer-inner { display: flex; align-items: center; }
.header-inner { min-height: 62px; gap: clamp(20px,4vw,58px); }
.logo img { height: auto; }
.nav { gap: clamp(15px,3vw,42px); font-size: .91rem; font-weight: 700; }
.nav a:hover,.footer a:hover { color: var(--coral); }
.header-actions { margin-left: auto; gap: 6px; }
.icon-btn,.text-btn { border: 0; background: transparent; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; }
.icon-btn:hover { background: var(--surface); }
.menu-toggle,.bottom-nav { display: none; }
[data-icon] { display: inline-flex; flex: none; vertical-align: middle; }
[data-icon] svg { width: 1.35em; height: 1.35em; }
.hero { position: relative; isolation: isolate; border-bottom: 1px solid var(--border); }
.hero-image,.hero::after { position: absolute; inset: 0; z-index: -1; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.hero::after { content: ""; background: linear-gradient(90deg,#111019 0%,#111019d9 24%,#11101937 57%,transparent 80%),linear-gradient(0deg,#11101972,transparent 45%); }
.hero-inner { min-height: clamp(345px,33vw,500px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 26px; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: clamp(47px,6.2vw,91px); line-height: .96; letter-spacing: -.06em; }
.hero p { max-width: 400px; margin: 18px 0 23px; line-height: 1.45; color: #f2edf7; }
.hero-actions { flex-wrap: wrap; gap: 12px; }
.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 9px 17px; border: 0; border-radius: 9px; color: #17101a; font-weight: 800; }
.btn:hover { filter: brightness(1.1); }
.primary { background: var(--coral); }
.secondary { background: var(--lilac); }
.content { padding-block: 24px 48px; }
.content section + section { margin-top: 30px; }
.section-head { justify-content: space-between; gap: 12px; margin-bottom: 13px; }
h2 { font-size: clamp(23px,2.7vw,35px); letter-spacing: -.035em; }
.text-btn { flex: none; padding: 8px 0; color: var(--coral); font-weight: 800; font-size: .88rem; }
.text-btn:hover { text-decoration: underline; }
.tool-layout { display: grid; grid-template-columns: 1.38fr 1fr; gap: 12px; }
.map-card,.tile,.guide,.wiki-item,.news { border: 1px solid var(--border); background: var(--surface); border-radius: 12px; text-align: left; }
.map-card,.guide { position: relative; isolation: isolate; overflow: hidden; padding: 0; }
.map-card { min-height: 245px; }
.map-card img,.guide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.map-card::after,.guide::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg,#13111f 0%,#13111f90 25%,transparent 68%); }
.map-copy { position: absolute; bottom: 17px; left: 18px; right: 66px; display: grid; gap: 6px; }
.map-copy strong { font-size: clamp(19px,2.1vw,27px); }
.map-copy > span,.tile small,.muted { color: var(--muted); }
.map-arrow { position: absolute; right: 15px; bottom: 16px; display: grid; place-items: center; width: 42px; height: 40px; border-radius: 9px; background: var(--coral); color: #16111b; font-size: 24px; }
.tools-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.tile { display: grid; align-content: center; justify-items: start; gap: 5px; padding: 13px 15px; background: linear-gradient(145deg,#292537,var(--surface)); }
.tile > [data-icon],.wiki-item [data-icon] { color: var(--coral); font-size: 22px; }
.tile:nth-child(even) > [data-icon],.wiki-item:nth-child(even) [data-icon] { color: var(--lilac); }
.map-card:hover,.tile:hover,.guide:hover,.wiki-item:hover { border-color: var(--lilac); }
.guide-grid,.wiki-grid,.news-grid { display: grid; gap: 12px; }
.guide-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.guide { display: flex; align-items: flex-end; min-height: 190px; }
.guide > span { display: grid; gap: 5px; padding: 14px; }
.guide small,.news small { color: var(--lilac); font-weight: 700; }
.wiki-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.wiki-item { min-height: 58px; padding: 8px 13px; display: flex; gap: 9px; align-items: center; font-weight: 700; }
.news-grid { grid-template-columns: repeat(2,1fr); }
.news { padding: 20px; }
.news h3 { margin: 7px 0; }
.news p,.footer p { color: var(--muted); line-height: 1.45; }
.footer { border-top: 1px solid var(--border); }
.footer-inner { justify-content: space-between; gap: 12px; padding-block: 24px; font-size: .88rem; }
dialog { width: min(620px,calc(100% - 28px)); max-height: calc(100dvh - 28px); overflow: auto; padding: 22px; border: 1px solid var(--border); border-radius: 16px; color: var(--text); background: #1b1926; }
dialog::backdrop { background: #090812ce; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.dialog-head button { border: 1px solid var(--border); background: var(--surface); border-radius: 8px; width: 44px; height: 44px; flex: none; font-size: 24px; }
dialog p { line-height: 1.55; }
dialog input:not([type=checkbox]) { width: 100%; padding: 10px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); }
#query { margin-block: 7px 12px; }
.results { display: grid; gap: 8px; }
.results > button:not(.btn),.results > a,.results > label:has(input) { padding: 11px; text-align: left; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.results > :is(button,a):hover { border-color: var(--lilac); }
.filters { margin-block: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { padding: 8px 12px; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; }
.filters [aria-pressed=true] { background: var(--lilac); color: var(--bg); }
.map-preview { position: relative; overflow: hidden; border-radius: 10px; margin-bottom: 10px; }
.map-preview img { width: 100%; height: auto; }
.marker { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%,-50%); width: 40px; height: 40px; border: 2px solid var(--bg); border-radius: 50%; background: var(--coral); color: var(--bg); }
.marker.lavender { background: var(--lilac); }
progress { width: 100%; height: 14px; accent-color: var(--coral); margin-top: 12px; }
#progress-label { margin-bottom: 12px; }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { gap: 16px; }
  .menu-toggle { display: grid; }
  .nav { display: none; position: absolute; top: 100%; inset-inline: 0; padding: 12px 18px; background: #14131c; border-bottom: 1px solid var(--border); }
  .nav.is-open { display: grid; gap: 0; }
  .nav a { padding: 12px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 30px); }
  .header-inner { min-height: 55px; }
  .logo img { width: 161px; }
  .hero-inner { min-height: 365px; }
  .hero-image img { object-position: center 54%; }
  .hero::after { background: linear-gradient(90deg,#111019e8,#11101943 69%,transparent),linear-gradient(0deg,#111019,transparent 66%); }
  h1 { font-size: clamp(36px,10vw,55px); }
  .hero p { font-size: .93rem; max-width: 260px; margin-block: 13px 17px; }
  .hero-actions { display: grid; gap: 8px; justify-items: start; }
  .content section + section { margin-top: 25px; }
  .tool-layout { grid-template-columns: 1fr; }
  .map-card { min-height: 190px; }
  .tile { min-height: 91px; padding: 10px; font-size: .89rem; }
  .tile small { font-size: .72rem; }
  .guide-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(157px,56%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px; margin: -4px; scrollbar-color: var(--border) var(--bg); }
  .guide { min-height: 156px; scroll-snap-align: start; }
  .wiki-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; padding-bottom: 86px; }
  .bottom-nav { position: fixed; z-index: 6; bottom: 0; inset-inline: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 5px 5px max(5px,env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: #181622fa; }
  .bottom-nav > * { border: 0; background: transparent; display: grid; justify-items: center; align-content: center; min-height: 47px; gap: 4px; font-size: .72rem; }
  .bottom-nav [data-icon] { font-size: 16px; }
  .bottom-nav [aria-current] { color: var(--coral); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.map-decor i { position: absolute; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--coral); color: #17101a; box-shadow: 0 3px 14px #080610aa; }
.map-decor i:nth-child(1) { left: 27%; top: 22%; }
.map-decor i:nth-child(2) { left: 69%; top: 27%; background: var(--lilac); }
.map-decor i:nth-child(3) { left: 54%; top: 48%; background: var(--lilac); }

.map-arrow [data-icon] { font-size: 17px; }

.lh-inner-header {
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 4px;
  padding-block: 7px;
}

.lh-inner-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-weight: 700;
  font-size: .9rem;
}

.lh-inner-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.lh-inner-nav a:hover,
.lh-breadcrumbs a:hover {
  color: var(--coral);
}

.lh-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .88rem;
}

.lh-breadcrumbs li + li::before {
  content: "/";
  margin-right: 10px;
}

.lh-article {
  max-width: 800px;
}

.lh-article-head h1 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.lh-article-head p {
  margin: 14px 0 24px;
  line-height: 1.55;
}

.lh-article-body {
  line-height: 1.65;
}

.lh-article-body h2 {
  margin: 30px 0 12px;
}

.lh-article-body h3 {
  margin: 22px 0 10px;
}

.lh-article-body p {
  margin-bottom: 14px;
}

.lh-article-body a {
  color: var(--lilac);
  text-decoration: underline;
}