/* Shared shell and responsive additions to the preserved uCoz styles. */
.zg-site {
  --zg-ink: #37432a;
  --zg-muted: #666b51;
  --zg-green: #3e632c;
  --zg-green-dark: #29471e;
  --zg-paper: #fffaf0;
  --zg-line: #dec99a;
  --zg-gold: #b77e22;
  --zg-panel-shadow: inset 0 0 0 3px #fffdf4, 0 4px 0 #bb9e6533, 0 10px 24px #5c62200a;
  --zg-button-fill: linear-gradient(#587638, #3e632c);
  --zg-button-shadow: inset 0 2px 0 #ffffff42, 0 3px 0 #29451d;
  margin: 0;
  padding: 0;
  color: var(--zg-ink);
  background: #eeecd9;
  background-image: radial-gradient(ellipse at 0 0, #d9e5b7 0, transparent 45%), radial-gradient(ellipse at 100% 15%, #fff2c9 0, transparent 45%);
  font: 16px/1.65 "Segoe UI", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.zg-site *, .zg-site *::before, .zg-site *::after { box-sizing: border-box; }
.zg-site a { color: var(--zg-green); text-underline-offset: .2em; }
.zg-site a:hover { color: var(--zg-green-dark); }
.zg-site :is(a, button, input, select, summary):focus-visible {
  outline: 3px solid #956215;
  outline-offset: 4px;
}
.zg-site :is(h1, h2, h3, h4) { color: var(--zg-ink); line-height: 1.22; }
.zg-site button, .zg-site input, .zg-site select { font: inherit; }
/* One arrow and text gutter for every single-select, including archived controls. */
.zg-site select:not([multiple]):is(:not([size]), [size="0"], [size="1"]) {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%23486333' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-size: 12px 12px;
  background-repeat: no-repeat;
}
@media (forced-colors: active) {
  .zg-site select:not([multiple]):is(:not([size]), [size="0"], [size="1"]) {
    -webkit-appearance: auto;
    appearance: auto;
    background-image: none;
  }
}
.zg-site button, .zg-site summary { cursor: pointer; }
.zg-site [hidden] { display: none !important; }
.zg-site #page, .zg-site :is(.over-tr, .over-tl, .over-br, .over-bl, .over-top, .over-bot) { background: none; }
.zg-site .wrapper { width: calc(100% - 64px); max-width: 1200px; margin: 0 auto; }
.zg-site #page label { color: inherit; }
.zg-site .zg-skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 12px 18px;
  border: 2px solid var(--zg-green);
  border-radius: 8px;
  background: var(--zg-paper);
  transform: translateY(-180%);
}
.zg-site .zg-skip:focus { transform: translateY(0); }

/* The complete catalogue is available in the native details menu without JS. */
.zg-site #header.zg-header { height: auto; padding: 25px 0 24px; }
.zg-header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; }
.zg-site .zg-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--zg-green-dark);
  text-decoration: none;
  font: bold 30px/1.1 Georgia, "Times New Roman", serif;
}
.zg-brand-lockup { display: block; width: 220px; min-width: 0; }
.zg-site .zg-brand-symbol { display: block; flex: 0 0 auto; width: 58px; height: 56px; object-fit: contain; }
.zg-site .zg-brand-wordmark { display: block; width: 100%; height: auto; max-height: none; }
.zg-brand small {
  display: block;
  margin-top: 0;
  color: var(--zg-muted);
  font: 12px/1.3 "Segoe UI", Arial, sans-serif;
  letter-spacing: .015em;
}
.zg-nav { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; }
.zg-site .zg-nav > a, .zg-menu > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #d6c191;
  border-radius: 8px;
  color: #4e5830;
  background: linear-gradient(#fffdf1, #f4e8c7);
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 #c8b17b55;
  text-decoration: none;
}
.zg-site .zg-nav > a:hover { border-color: #a39761; background: #f5e7bd; }
.zg-menu { position: relative; }
.zg-menu > summary { gap: 10px; border-color: #3d5d29; color: #fffcef; background: var(--zg-button-fill); box-shadow: var(--zg-button-shadow); list-style: none; }
.zg-menu > summary:hover { background: #3e632c; }
.zg-menu > summary::-webkit-details-marker { display: none; }
.zg-menu > summary::after {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
}
.zg-menu[open] > summary { background: #355526; }
.zg-menu[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.zg-menu-panel {
  position: absolute;
  z-index: 80;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 28px;
  width: min(820px, calc(100vw - 64px));
  max-height: min(70vh, 720px);
  padding: 24px;
  overflow: auto;
  border: 2px solid #c8ac70;
  border-radius: 14px;
  background: var(--zg-paper);
  box-shadow: inset 0 0 0 3px #fffdf4, 0 16px 45px #263c2726;
}
.zg-menu-panel h2 { margin: 0 0 8px; font-size: 15px; }
.zg-menu-panel ul, .zg-sidebar ul { list-style: none; padding: 0; margin: 0; }
.zg-site .zg-menu-panel a { display: block; min-height: 44px; padding: 9px 0; font-size: 14px; font-weight: 400; }
.zg-header-search { display: block; width: min(600px, 100%); margin: 17px 0 0 auto; }
.zg-header-search > label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.zg-header-search .zg-search-controls { gap: 0; }
.zg-header-search .zg-search-controls input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 2px solid #c3b17e;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  color: var(--zg-ink);
  background: var(--zg-paper);
  font-size: 14px;
}
.zg-site .zg-header-search .zg-search-controls button {
  flex: 0 0 auto;
  min-width: 46px;
  min-height: 44px;
  padding: 9px 12px;
  border: 2px solid #3d5d29;
  border-radius: 0 8px 8px 0;
  color: #fffcef;
  background: var(--zg-button-fill);
  box-shadow: var(--zg-button-shadow);
  font-size: 14px;
}
.zg-site .zg-header-search .zg-search-controls button:hover { background: var(--zg-green-dark); }
.zg-home .zg-header-search, .zg-search-page .zg-header-search { display: none; }

/* Main layout keeps the article and its table scrollers shrinkable. */
.zg-site #casing, .zg-site #casing .cas-top, .zg-site #casing .cas-bot { background: none; }
.zg-site #casing .cas-bot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 236px;
  align-items: start;
  gap: 28px;
  height: auto;
  min-height: 400px;
  padding: 0;
}
.zg-site #content {
  float: none;
  min-width: 0;
  width: 100%;
  padding: 30px;
  border: 2px solid var(--zg-line);
  border-radius: 18px;
  background: var(--zg-paper);
  box-shadow: var(--zg-panel-shadow);
  overflow-wrap: anywhere;
}
.zg-site #content:focus { outline: none; }
.zg-site #right-side { float: none; width: auto; min-width: 0; }
.zg-sidebar { padding: 0 0 16px; }
.zg-sidebar section { margin-bottom: 18px; padding: 18px; border: 1px solid var(--zg-line); border-radius: 13px; background: #f8f1db; box-shadow: var(--zg-panel-shadow); }
.zg-sidebar h2 { margin: 0 0 8px; font: bold 21px/1.3 Georgia, "Times New Roman", serif; }
.zg-site .zg-sidebar a { display: block; min-height: 44px; padding: 9px 0; font-size: 15px; line-height: 1.5; }
.zg-sidebar p { margin: 8px 0 0; color: var(--zg-muted); font-size: 13px; }
.zg-site #footer.zg-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 40px;
  padding: 25px 0 35px;
  border-top: 2px solid #c9b584;
  color: var(--zg-muted);
  font-size: 13px;
  line-height: 1.6;
}
.zg-site #footer.zg-footer p { max-width: 720px; margin: 0; padding: 0; }
.zg-site #footer.zg-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--zg-green); }

/* Home: a clear route from an item or quest name to the old reference pages. */
.zg-home #casing .cas-bot { display: block; }
.zg-site.zg-home #content { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.zg-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: 30px;
  padding: 44px;
  border: 3px solid #c9ae70;
  border-radius: 24px;
  background: #f9f1d4;
  background-image: radial-gradient(ellipse at 90% 80%, #e4ebc2 0, transparent 55%), linear-gradient(115deg, #fff9e8, transparent 65%);
  box-shadow: inset 0 0 0 4px #fffdf0, 0 5px 0 #ac8d4d38, 0 16px 35px #68622e0c;
}
.zg-hero-copy { min-width: 0; }
.zg-eyebrow {
  margin: 0 0 15px;
  color: #526b3e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.zg-hero h1 { margin: 0 0 18px; font: bold clamp(38px, 4.5vw, 60px)/1.06 Georgia, "Times New Roman", serif; letter-spacing: -.035em; text-shadow: 0 2px 0 #fffdf0; }
.zg-hero-copy > p:not(.zg-eyebrow) { max-width: 570px; margin: 0 0 25px; color: #4a5d40; font-size: 18px; line-height: 1.6; }
.zg-hero-art { min-width: 0; text-align: center; }
.zg-hero-art :is(svg, img) { display: block; width: 100%; height: auto; max-width: 440px; max-height: none; margin: auto; }
.zg-hero-art > p { margin: 12px 0 0; color: #566548; font-size: 13px; }
.zg-site .zg-hero-art > a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-size: 13px; text-decoration: underline; }
.zg-search-form > label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.zg-search-controls { display: flex; gap: 8px; }
.zg-search-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.zg-search-controls button svg { flex: 0 0 auto; width: 20px; height: 20px; }
.zg-search-controls input {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 13px 16px;
  border: 2px solid #c3b17e;
  border-radius: 9px;
  color: var(--zg-ink);
  background: #fffef9;
  box-shadow: inset 0 2px 4px #6b542a10;
  font-size: 16px;
}
.zg-site .zg-search-controls button, .zg-site #search-more {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 12px 24px;
  border: 2px solid #3d5d29;
  border-radius: 9px;
  color: #fffcef;
  background: var(--zg-button-fill);
  box-shadow: var(--zg-button-shadow);
  font-size: 15px;
  font-weight: 600;
}
.zg-site .zg-search-controls button:hover, .zg-site #search-more:hover { background: var(--zg-green-dark); }
.zg-site :is(.zg-search-controls button, #search-more, .zg-menu > summary):active { box-shadow: inset 0 2px 3px #233a2433, 0 1px 0 #29451d; }
.zg-suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 17px; margin-top: 9px; }
.zg-suggestions > span { color: var(--zg-muted); font-size: 13px; }
.zg-site .zg-suggestions a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; text-decoration: underline; }
.zg-section { margin: 44px 0 0; }
.zg-section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.zg-section-heading h2 { margin: 0; font: bold 31px/1.2 Georgia, "Times New Roman", serif; letter-spacing: -.015em; }
.zg-section-heading p { margin: 0; color: var(--zg-muted); font-size: 14px; }
.zg-section-heading .zg-eyebrow { margin-bottom: 8px; color: #526b3e; font-size: 11px; }
.zg-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.zg-site .zg-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
  border: 2px solid var(--zg-line);
  border-radius: 16px;
  color: var(--zg-ink);
  background: linear-gradient(#fffdf5, #faf2db);
  box-shadow: var(--zg-panel-shadow);
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.zg-site .zg-card:hover { border-color: #9aab65; box-shadow: inset 0 0 0 3px #fffdf4, 0 4px 0 #71894433, 0 10px 24px #314d2e12; }
.zg-card-icon { display: grid; place-items: center; min-width: 48px; height: 48px; margin-bottom: 18px; border: 2px solid #d5b56b; border-radius: 50%; color: #3c6031; background: linear-gradient(#fff0b3, #e5c56f); box-shadow: inset 0 0 0 3px #fff3c4, 0 2px 0 #b18b4340; font-size: 26px; }
.zg-card-icon svg { width: 27px; height: 27px; }
.zg-card :is(h2, h3) { margin: 0 0 10px; font: bold 24px/1.2 Georgia, "Times New Roman", serif; }
.zg-card p { margin: 0 0 22px; color: var(--zg-muted); font-size: 15px; line-height: 1.6; }
.zg-card-link { margin-top: auto; color: var(--zg-green); font-size: 14px; font-weight: 700; }
.zg-location-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.zg-site .zg-location { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 4px 12px; min-height: 104px; padding: 20px; border: 2px solid #b7be84; border-radius: 13px; color: var(--zg-ink); background: linear-gradient(#f0f3db, #e2e9bf); box-shadow: inset 0 0 0 2px #fbfce9, 0 3px 0 #7b8b4433; font-size: 16px; font-weight: 600; text-decoration: none; }
.zg-location > span:first-child { color: #718349; font-size: 30px; }
.zg-location h3 { margin: 0; font: bold 21px/1.2 Georgia, "Times New Roman", serif; }
.zg-location ul { grid-column: 1 / -1; list-style: none; margin: 4px 0 0; padding: 0; }
.zg-site .zg-location { align-content: start; }
.zg-site .zg-location a { display: flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; text-decoration: underline; }
.zg-location p { grid-column: 1 / -1; margin: 4px 0 0; color: #52623f; font-size: 13px; font-weight: 400; line-height: 1.5; }
.zg-reference-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 30px; padding: 28px 30px; border: 2px solid var(--zg-line); border-radius: 16px; background: var(--zg-paper); box-shadow: var(--zg-panel-shadow); }
.zg-reference-grid h3 { margin: 0 0 10px; font: bold 21px/1.3 Georgia, "Times New Roman", serif; }
.zg-reference-grid ul { list-style: none; margin: 0; padding: 0; }
.zg-site .zg-reference-grid a { display: block; min-height: 44px; padding: 8px 0; font-size: 15px; line-height: 1.6; }
.zg-play { position: relative; margin-top: 42px; padding: 30px 34px; border: 2px solid #ccb071; border-radius: 16px; background: linear-gradient(110deg, #f8edc7, #ede7c4); box-shadow: var(--zg-panel-shadow); }
.zg-play h2 { margin: 0 0 12px; font: bold 29px/1.2 Georgia, "Times New Roman", serif; }
.zg-play p { max-width: 760px; margin: 0 0 18px; color: #625d47; font-size: 15px; }
.zg-play .zg-eyebrow { margin-bottom: 9px; color: #756b3f; font-size: 11px; }
.zg-play-links { display: flex; flex-wrap: wrap; gap: 10px; }
.zg-site .zg-play-links a { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 18px; border: 1px solid #bba16a; border-radius: 8px; color: #4d522e; background: linear-gradient(#fffdf2, #f6e6ba); box-shadow: inset 0 1px 0 #fff, 0 2px 0 #b3924d55; font-size: 14px; font-weight: 600; }
.zg-site .zg-play-links a:hover { border-color: #81784f; }
.zg-info > h1 { margin: 0 0 20px; font: bold clamp(30px, 3.5vw, 39px)/1.2 Georgia, "Times New Roman", serif; }
.zg-info > p { margin: 0 0 24px; }
.zg-info .zg-play-links { margin: 0 0 28px; }
.zg-archive-note { margin: 24px 0 0; color: var(--zg-muted); font-size: 13px; line-height: 1.6; }

/* Search results use native links and keep long snippets readable. */
.zg-search { max-width: 820px; }
.zg-search > h1 { margin: 0 0 15px; font: bold 39px/1.15 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.zg-search > p { margin: 0 0 24px; color: var(--zg-muted); }
.zg-search-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; margin-top: 16px; font-size: 14px; }
.zg-search-filter select { min-width: 160px; max-width: 100%; min-height: 44px; padding-block: 8px; padding-inline-start: 12px; border: 1px solid #c3b17e; border-radius: 7px; color: var(--zg-ink); background-color: var(--zg-paper); }
.zg-site #search-status { margin: 25px 0 0; color: var(--zg-muted); font-size: 14px; }
.zg-site #search-results { list-style: none; margin: 0; padding: 0; }
.zg-search-result { padding: 24px 0; border-bottom: 1px solid var(--zg-line); }
.zg-site .zg-search-meta { margin: 0 0 7px; color: var(--zg-muted); font-size: 12px; line-height: 1.5; }
.zg-site .zg-search-title { margin: 0 0 8px; font-size: 22px; line-height: 1.35; }
.zg-site .zg-search-title a { display: inline-block; padding: 2px 0; text-decoration: underline; }
.zg-site .zg-search-snippet { margin: 0; color: #58634f; font-size: 15px; line-height: 1.65; }
.zg-search mark { padding: 0 .08em; color: inherit; background: #f3e0a6; }
.zg-site #search-more { margin-top: 24px; }
.zg-site #search-empty { margin-top: 24px; padding: 20px; border: 1px solid #d9d8bc; border-radius: 10px; background: #f6f2df; }
.zg-site .zg-search noscript { display: block; margin: 16px 0; color: var(--zg-muted); font-size: 14px; }

/* Archive: retain the material and picture links while removing fixed widths. */
.zg-page-heading { margin-bottom: 25px; padding-bottom: 22px; border-bottom: 1px solid var(--zg-line); }
.zg-site .zg-breadcrumb { margin: 0 0 12px; font-size: 13px; }
.zg-site .zg-breadcrumb a { display: inline-flex; align-items: center; min-height: 35px; }
.zg-page-heading h1 { margin: 0 0 15px; font: bold clamp(28px, 3vw, 38px)/1.2 Georgia, "Times New Roman", serif; letter-spacing: -.02em; }
.zg-site .zg-page-note { margin: 0; color: var(--zg-muted); font-size: 13px; line-height: 1.6; }
.zg-archive #content .page-content-wrapper { min-width: 0; width: 100%; }
.zg-archive #content :is(div, p, center, blockquote, pre) { max-width: 100%; }
.zg-archive #content :is(p, li) { line-height: 1.65; }
.zg-archive #content p { margin-top: .65em; margin-bottom: .65em; }
.zg-archive #content :is(img, video) { max-width: 100% !important; max-height: none; height: auto !important; vertical-align: middle; }
.zg-archive #content pre { overflow: auto; }
.zg-archive #content :is(font, .eMessage, .eText, .comments_text, .cMessage) { font-family: inherit; font-size: inherit; }
.zg-archive #content .eTitle { padding: 12px 0; color: var(--zg-green-dark); font: bold 26px/1.25 Georgia, "Times New Roman", serif; }
.zg-archive #content .eTitle a { color: inherit; }
.zg-archive #content :is(.eDetails, .eDetails1, .eDetails2) { padding: 7px 0; color: var(--zg-muted); font-size: 12px; }
.zg-archive #content table {
  display: block;
  width: 100% !important;
  max-width: 100%;
  margin: 16px 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: #93a57d #edf0e1;
  font-size: 14px;
  line-height: 1.5;
}
.zg-archive #content table table { display: table; width: auto !important; max-width: none; margin: 0; overflow: visible; }
.zg-archive #content :is(th, td) { overflow-wrap: normal; }
.zg-archive #content :is(th, td) p { line-height: 1.5; }
.zg-archive #content :is(.cBlock1, .cBlock2, .commTable) { margin: 12px 0; padding: 16px; color: #4e5c48; background: #f7f7ed; border-color: var(--zg-line); }
.zg-archive #content .cMessage { font-size: 14px; }
.zg-archive #content :is(input, textarea, select) { max-width: 100%; }
.zg-archive #content :is(.collage, .media-photos_i-w, .media-photos_i) { max-width: 100%; }
.zg-archive #content .collage_i { max-width: 100%; height: auto !important; }
.zg-archive #content .collage_i img { height: auto !important; max-height: none !important; }
.zg-archive #content .spoilerCont { padding: 16px; }
.zg-site #back-top { display: none; }
.zg-footer nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.zg-footer-brand { font-weight: 700; }

/* Recovered guides keep searchable instructions beside the original game evidence. */
.zg-restored-quest h1 { margin: 0 0 18px; font: bold clamp(28px, 3.4vw, 40px)/1.2 Georgia, "Times New Roman", serif; }
.zg-quest-note { margin: 12px 0; padding: 12px 15px; border-left: 3px solid #bda05f; color: #5a6047; background: #f7efd7; font-size: 14px; line-height: 1.6; }
.zg-quest-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.zg-site .zg-quest-toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--zg-line); border-radius: 8px; background: #f8edcf; font-size: 14px; font-weight: 600; }
.zg-quest-part { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--zg-line); scroll-margin-top: 20px; }
.zg-quest-part h2, .zg-quest-neighbours h2 { margin: 0 0 16px; font: bold 27px/1.25 Georgia, "Times New Roman", serif; }
.zg-quest-part h3 { margin: 0 0 10px; font-size: 18px; }
.zg-quest-part :is(ol, ul) { margin: 12px 0 20px; padding-left: 24px; }
.zg-quest-part li { margin: 8px 0; }
.zg-quest-tips { padding: 18px; border: 1px solid #d6d6ad; border-radius: 10px; background: #f3f2df; }
.zg-quest-tips ul { margin-bottom: 0; }
.zg-quest-reward { margin: 18px 0; font-size: 14px; }
.zg-restored-quest figure { margin: 20px 0; }
.zg-restored-quest figure a { display: block; }
.zg-restored-quest figure img { display: block; max-width: 100%; height: auto; border-radius: 6px; }
.zg-quest-media { margin: 20px 0; padding: 0 16px; border: 1px solid var(--zg-line); border-radius: 9px; background: #fffdf5; }
.zg-restored-quest summary { min-height: 44px; padding: 11px 0; cursor: pointer; font-size: 14px; font-weight: 600; }
.zg-quest-gallery { padding-bottom: 2px; }
.zg-quest-neighbours { margin-top: 32px; padding-top: 25px; border-top: 1px solid var(--zg-line); }
.zg-quest-neighbours > div { display: grid; margin-bottom: 8px; }
.zg-site .zg-quest-neighbours a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; font-size: 15px; }
.zg-quest-sources { margin-top: 24px; color: var(--zg-muted); font-size: 13px; }
.zg-quest-sources p { margin: 10px 0; }

@media (max-width: 1080px) {
  .zg-header-inner { gap: 14px 18px; }
  .zg-brand small { font-size: 11px; }
  .zg-header-search { width: min(600px, 100%); }
  .zg-site .zg-nav > a, .zg-menu > summary { padding-inline: 9px; }
  .zg-site #casing .cas-bot { grid-template-columns: minmax(0, 1fr) 210px; gap: 22px; }
  .zg-site #content { padding: 25px; }
  .zg-hero { gap: 20px; padding: 34px; }
  .zg-site .zg-card { padding: 22px; }
}

@media (max-width: 900px) {
  .zg-header-search { width: 100%; }
  .zg-header-search input { font-size: 16px; }
  .zg-site #casing .cas-bot { grid-template-columns: minmax(0, 1fr) 190px; gap: 20px; }
  .zg-site #content { padding: 22px; }
  .zg-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); padding: 30px; }
  .zg-hero-copy > p:not(.zg-eyebrow) { font-size: 16px; }
  .zg-search-controls button { padding-inline: 18px; }
  .zg-card-grid { gap: 12px; }
  .zg-site .zg-card { padding: 21px; }
  .zg-card :is(h2, h3) { font-size: 22px; }
  .zg-location-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .zg-site .wrapper { width: calc(100% - 32px); }
  .zg-site #header.zg-header { padding: 18px 0; }
  .zg-header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 10px; }
  .zg-site .zg-brand { gap: 9px; margin: 0; font-size: 25px; }
  .zg-site .zg-brand-symbol { width: 48px; height: 46px; }
  .zg-brand-lockup { width: clamp(125px, 44vw, 180px); }
  .zg-brand small { margin-top: 0; font-size: 10px; letter-spacing: 0; white-space: nowrap; }
  .zg-nav { justify-content: flex-end; font-size: 13px; }
  .zg-site .zg-nav > a { display: none; }
  .zg-menu > summary { padding-inline: 8px; }
  .zg-menu-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); width: calc(100vw - 32px); max-height: 70vh; padding: 20px; gap: 18px; }
  .zg-header-search { grid-column: 1 / -1; }
  .zg-site #casing .cas-bot { display: block; }
  .zg-site #right-side { display: none; }
  .zg-site #content { padding: 22px; border-radius: 14px; }
  .zg-home #content { padding: 0; }
  .zg-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 29px 25px 20px; border-radius: 18px; }
  .zg-hero h1 { max-width: 540px; font-size: clamp(36px, 8vw, 49px); }
  .zg-hero-copy > p:not(.zg-eyebrow) { margin-bottom: 22px; }
  .zg-hero-art { width: 100%; max-width: 330px; margin: 0 auto; }
  .zg-hero-art :is(svg, img) { max-height: 245px; object-fit: contain; }
  .zg-hero-art > p { margin-top: 5px; }
  .zg-section { margin-top: 32px; }
  .zg-section-heading { gap: 8px; margin-bottom: 16px; }
  .zg-section-heading h2 { font-size: 28px; }
  .zg-card-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .zg-site .zg-card { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 8px 16px; padding: 22px; }
  .zg-card-icon { grid-column: 1; grid-row: 1 / 4; min-width: 46px; height: 46px; margin: 0; }
  .zg-card :is(h2, h3) { grid-column: 2; margin: 0; font-size: 24px; }
  .zg-card p { grid-column: 2; margin: 0; }
  .zg-card-link { grid-column: 2; margin-top: 3px; }
  .zg-site .zg-location { min-height: 90px; padding: 16px; grid-template-columns: 25px minmax(0, 1fr); gap: 4px 10px; font-size: 15px; }
  .zg-location > span:first-child { font-size: 25px; }
  .zg-location h3 { font-size: 20px; }
  .zg-reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 24px; }
  .zg-play { margin-top: 30px; padding: 25px; }
  .zg-play h2 { font-size: 27px; }
  .zg-site #footer.zg-footer { display: block; margin-top: 30px; padding-top: 20px; }
  .zg-site #footer.zg-footer p + p { margin-top: 8px; }
  .zg-search > h1 { font-size: 32px; }
  .zg-site .zg-search-title { font-size: 21px; }
  .zg-search-result { padding: 22px 0; }
  .zg-page-heading { padding-bottom: 18px; margin-bottom: 20px; }
}

@media (max-width: 420px) {
  .zg-site .zg-brand { font-size: 23px; }
  .zg-site .zg-brand-symbol { width: 40px; height: 38px; }
  .zg-brand-lockup { width: clamp(116px, 44vw, 174px); }
  .zg-brand small { font-size: 9px; }
  .zg-nav { font-size: 12px; }
  .zg-menu > summary { gap: 7px; padding-inline: 6px; }
  .zg-menu-panel { grid-template-columns: minmax(0, 1fr); }
  .zg-site #content { padding: 18px; }
  .zg-home #content { padding: 0; }
  .zg-hero { padding: 26px 20px 18px; }
  .zg-eyebrow { font-size: 11px; letter-spacing: .08em; }
  .zg-hero h1 { font-size: 36px; }
  .zg-search-controls { gap: 7px; }
  .zg-search-controls input { padding-inline: 12px; }
  .zg-site .zg-search-controls button { padding-inline: 14px; font-size: 14px; }
  .zg-site .zg-card { padding: 21px 18px; gap: 8px 12px; }
  .zg-card :is(h2, h3) { font-size: 23px; }
  .zg-reference-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .zg-site .zg-location { padding-inline: 13px; font-size: 14px; }
  .zg-location h3 { font-size: 18px; }
  .zg-play { padding: 23px 21px; }
  .zg-page-heading h1 { font-size: 28px; }
}

@media (max-width: 360px) {
  .zg-hero h1 { font-size: 32px; }
  .zg-location-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .zg-site *, .zg-site *::before, .zg-site *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .zg-site { color: #000; background: #fff; }
  .zg-site .wrapper { width: 100%; max-width: none; }
  .zg-site :is(.zg-nav, .zg-header-search, #right-side, .zg-skip, .zg-hero-art, #search-more) { display: none; }
  .zg-site #casing .cas-bot { display: block; }
  .zg-site #content { padding: 0; border: 0; }
  .zg-site :is(#content, .zg-hero, .zg-card, .zg-location, .zg-reference-grid, .zg-play) { box-shadow: none; }
  .zg-archive #content table { display: table; width: 100% !important; overflow: visible; font-size: 11px; }
  .zg-site a { color: #000; }
}
