/*
 * The guide (/guide): the header with its search box, the category tiles, lists, item chips and the two-column
 * page layout. Compact like the rest of the public site (app.css section 20); logical properties for RTL.
 */

/* Header: trail, title, search */
.guide-header .page-header-row { align-items: flex-start; }
.guide-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 6px;
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 700;
}
.guide-crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.guide-crumbs li + li::before { content: "›"; color: var(--subtle); }
[dir="rtl"] .guide-crumbs li + li::before { content: "‹"; }
.guide-crumbs a { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.guide-crumbs a:hover { color: var(--gold-2); text-decoration: none; }
.guide-crumbs .icon { color: var(--gold); }

.guide-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.guide-heading { min-width: 0; }
.guide-heading .page-title { margin: 0; }
.guide-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }

.guide-search {
  position: relative;
  display: flex;
  gap: 6px;
  flex: 0 1 360px;
  min-width: min(100%, 260px);
}
.guide-search .input { flex: 1; min-height: 38px; padding-block: 6px; }
.guide-search .btn { min-height: 38px; }
.guide-suggest {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  inset-inline: 0;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
}
.guide-suggest a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.92rem;
}
.guide-suggest a:hover,
.guide-suggest a[aria-selected="true"] { background: rgba(217, 164, 65, 0.14); text-decoration: none; }
.guide-suggest .badge { flex: none; }
.guide-suggest .guide-suggest-all { justify-content: center; color: var(--gold-2); font-weight: 700; }
.guide-suggest p { margin: 0; padding: 8px; color: var(--muted); font-size: 0.9rem; }

/* Home: categories and section cards */
.guide-cats,
.guide-cards,
.guide-skill-grid,
.guide-item-grid {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.guide-cats { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.guide-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 12px 14px;
}
.guide-cat-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(217, 164, 65, 0.12);
  color: var(--gold-2);
}
.guide-cat-icon .icon { width: 22px; height: 22px; }
.guide-cat-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.guide-cat-text strong { font-size: 1rem; }
.guide-cat-text .muted { font-size: 0.85rem; }

.guide-home-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.guide-links { margin: 0; padding-inline-start: 0; list-style: none; }
.guide-links li { padding: 3px 0; }
.guide-links li + li { border-top: 1px solid rgba(255, 255, 255, 0.04); }
.guide-links a[aria-current="page"] { color: var(--gold-2); font-weight: 700; }

.guide-cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.guide-card { display: flex; flex-direction: column; height: 100%; }
.guide-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.guide-card-text { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; }

/* Two columns: the page and its side cards */
.guide-layout {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 900px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
.guide-main, .guide-aside { min-width: 0; }
.guide-aside.card { position: sticky; top: calc(var(--header-h) + 12px); }
.stack.guide-main, .stack.guide-aside { gap: 12px; }

/* Prose pages: pictures from the game */
.guide-prose .md-img {
  max-width: 100%;
  margin: 10px auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.guide-prose h2:first-child { margin-top: 0; }
.guide-prose code { direction: ltr; unicode-bidi: isolate; }
.guide-pager { justify-content: space-between; }
.guide-pager .guide-next { margin-inline-start: auto; }

/* Lists of facts and steps */
.guide-list { margin: 0; padding: 0; list-style: none; }
.guide-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 3px 0; }
.guide-list .icon { color: var(--gold); }
.guide-list .skill-icon { width: 20px; height: 20px; }

.guide-steps { margin: 0; padding-inline-start: 1.6em; }
.guide-step { padding: 6px 0; }
.guide-step + .guide-step { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.guide-step::marker { color: var(--gold); font-weight: 700; }
.guide-step p { margin: 2px 0 0; }
.guide-step.is-done p { color: var(--green-text); }
.guide-step-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.guide-step-items { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; }
.guide-part { margin-bottom: 10px; }
.guide-part .card-header h3 { font-size: 1rem; }

.guide-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px 16px;
  margin: 0;
  border-top: 1px solid var(--border);
}
.guide-facts-1 { grid-template-columns: 1fr; border-top: 0; gap: 4px; }
.guide-facts div { display: flex; flex-direction: column; min-width: 0; }
.guide-facts-1 div { flex-direction: row; justify-content: space-between; gap: 12px; }
.guide-facts dt { color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.guide-facts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Items: icons, chips, the list */
.guide-icon {
  display: inline-block;
  flex: none;
  width: 32px;
  height: 32px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  vertical-align: middle;
}
.guide-icon-none { border: 1px dashed var(--border); border-radius: 6px; }
.guide-icon-big { width: 64px; height: 64px; }
.guide-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  color: var(--text);
  vertical-align: middle;
}
a.guide-chip:hover { color: var(--gold-2); text-decoration: none; }
a.guide-chip:hover .guide-chip-text > span:last-child { text-decoration: underline; }
.guide-chip-text { min-width: 0; overflow-wrap: anywhere; }
.guide-amount { color: var(--gold-2); font-variant-numeric: tabular-nums; }
.guide-chip-heading { display: flex; align-items: center; gap: 8px; }
.guide-mats { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: center; }

.guide-item-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.guide-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
}
.guide-item-row:hover { border-color: rgba(217, 164, 65, 0.55); color: var(--gold-2); text-decoration: none; }
.guide-item-name { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.guide-item-price { flex: none; white-space: nowrap; }
.guide-item-head { display: flex; align-items: center; gap: 14px; }
.guide-examine { margin: 0; font-size: 1.02rem; color: var(--sand); }
.guide-filter { max-width: 560px; margin-bottom: 10px; }

/* Tables inside cards */
.guide-flat { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.guide-flat .table { min-width: 0; }
.guide-table td { vertical-align: middle; }
.guide-bonus th[scope="row"] { color: var(--muted); font-weight: 700; white-space: nowrap; }

/* Skills */
.guide-skill-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.guide-skill-icon { width: 28px; height: 28px; image-rendering: pixelated; }
.guide-skill-links {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin: 0;
  padding: 10px;
  list-style: none;
}
.guide-skill-links a {
  display: grid;
  place-items: center;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 6px;
}
.guide-skill-links a:hover,
.guide-skill-links a[aria-current="page"] { border-color: var(--gold); background: rgba(217, 164, 65, 0.1); }

/* Search results */
.guide-results { margin: 0; padding: 4px; list-style: none; }
.guide-results a { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; color: var(--text); }
.guide-results a:hover { background: rgba(217, 164, 65, 0.1); text-decoration: none; }

@media (max-width: 639.98px) {
  .guide-search { flex-basis: 100%; }
  .guide-cats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .guide-cat { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; }
  .guide-cat-icon { width: 32px; height: 32px; }
  .guide-item-grid { grid-template-columns: 1fr; }
  .guide-facts { grid-template-columns: 1fr 1fr; }
  .guide-skill-grid { grid-template-columns: 1fr 1fr; }
  .guide-aside.card { position: static; }
}

/* Monsters: the game's own model (tools/build_guide.py --npc-pictures-from, the client's NpcRenderTool) */
.guide-npc-head { display: flex; align-items: center; gap: 16px; }
.guide-npc-head .guide-facts { flex: 1; min-width: 0; }
.guide-npc-pic {
  flex: none;
  width: 168px;
  height: 168px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: radial-gradient(circle at 50% 60%, rgba(217, 164, 65, 0.16), rgba(0, 0, 0, 0) 70%);
}
.guide-npc-thumb { flex: none; width: 40px; height: 40px; object-fit: contain; }
span.guide-npc-thumb { display: inline-block; }
.guide-table .guide-npc-thumb { margin-block: -6px; }

/* World map (/guide/map, assets/js/guide-map.js) */
.guide-map-wrap { display: flex; flex-direction: column; gap: 10px; }
.guide-map-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.guide-map-toggle { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; font-size: 0.9rem; font-weight: 600; }
.guide-map {
  position: relative;
  height: min(72vh, 720px);
  min-height: 340px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #000;
  overflow: hidden;
}
.guide-map-noscript { margin: 0; padding: 16px; color: #fff; }
.guide-map .leaflet-container, .guide-map.leaflet-container { background: #000; font: inherit; }
.guide-map .gm-tiles img { image-rendering: pixelated; }
.gm-label { width: auto !important; height: auto !important; margin: 0 !important; background: none; border: 0; }
.gm-name, .gm-wild {
  display: block;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 0 2px #000, 0 1px 2px #000, 0 0 4px #000;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
}
.gm-kingdom { font-family: 'Cinzel', 'Cairo', serif; font-size: 1.15rem; letter-spacing: 0.06em; color: #f3c56b; opacity: 0.92; }
.gm-city { font-size: 1rem; color: #ffe08a; }
.gm-town { font-size: 0.85rem; }
.gm-place { font-size: 0.78rem; color: #f0e6cf; font-weight: 600; }
.gm-dungeon, .gm-other { font-size: 0.85rem; color: #ffd27a; }
.gm-name.has-link:hover, .leaflet-marker-icon:focus .gm-name { color: #fff; text-decoration: underline; }
.gm-wild { font-size: 0.72rem; color: #ff8a7a; cursor: default; pointer-events: none; }
.gm-wild.is-west { transform: translate(4px, -110%); }
.gm-wild.is-east { transform: translate(calc(-100% - 4px), -110%); }
.gm-wild-line { stroke: #ff5a4a; stroke-opacity: 0.75; }
.lang-ar .gm-kingdom { font-family: 'Reem Kufi', 'Cairo', sans-serif; letter-spacing: 0; }
.lang-ar .gm-name { font-family: 'Cairo', sans-serif; }
.guide-map-places summary { cursor: pointer; list-style: none; }
.guide-map-places summary::-webkit-details-marker { display: none; }
.guide-map-places summary h2::after { content: ' +'; color: var(--muted); }
.guide-map-places[open] summary h2::after { content: ' −'; }
.guide-map-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 20px; }
.guide-map-groups h3 { margin: 0 0 4px; font-size: 0.95rem; }

@media (max-width: 639.98px) {
  .guide-npc-head { flex-direction: column; align-items: stretch; gap: 8px; }
  .guide-npc-pic { width: 128px; height: 128px; align-self: center; }
  .guide-map { height: 64vh; min-height: 300px; }
  .gm-kingdom { font-size: 1rem; }
  .gm-city { font-size: 0.9rem; }
}
@media (max-width: 639.98px) {
  .guide-npc-head .guide-facts-1 div { flex-direction: column; justify-content: flex-start; gap: 0; }
}

/* People and places (/guide/npcs, /guide/places: lane G1b) */
.guide-stack-sm { display: flex; flex-direction: column; gap: 8px; }
.guide-stack-sm > * { margin-block: 0; }
.guide-sub { margin: 4px 0 0; font-size: 0.95rem; display: flex; align-items: center; gap: 6px; }
.guide-mapfn { width: 15px; height: 15px; flex: none; image-rendering: pixelated; vertical-align: -2px; }
.guide-mapfn-none { display: inline-block; }
.guide-quote { margin: 0; padding: 6px 10px; border-inline-start: 3px solid var(--gold); background: var(--surface-2); border-radius: 4px; }
.guide-asked { margin: 0; padding-inline-start: 1.2em; }
.guide-asked li { padding: 1px 0; }
.guide-chips { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; }
.guide-chips > li { display: inline-flex; align-items: center; gap: 4px; }
.card-body.guide-chips { padding-block: 12px; }
.guide-rows li { padding: 4px 0; }
.guide-rows li + li { border-top: 1px solid rgba(255, 255, 255, 0.04); }
.guide-rows li > div { flex-basis: 100%; }
.guide-columns { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 18px; }
.guide-columns li + li { border-top: 0; }
.guide-tp-needs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 2px; color: var(--muted); }
.guide-map-mini { height: 260px; min-height: 0; border: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.gm-pin {
  display: block;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.6);
}
@media (max-width: 639.98px) {
  .guide-map-mini { height: 220px; }
}
/* The link shorthand ([[item:1351]], App\Services\GuideLinks) and the quest guides (App\Services\QuestGuide) */
.guide-ref-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-inline-end: 3px;
  object-fit: contain;
  vertical-align: -4px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.guide-ref-unknown { color: var(--muted); }
.guide-toc {
  width: fit-content;
  min-width: 220px;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.92rem;
}
.guide-prose .guide-toc-title { margin: 0 0 4px; font-size: 0.95rem; }
.guide-toc ol { margin: 0; padding-inline-start: 1.3em; }
.guide-toc ol ol { padding-inline-start: 1.1em; font-size: 0.9em; }
.guide-toc li { margin: 1px 0; }
.guide-quest-section, .guide-quest-section h3 { scroll-margin-top: calc(var(--header-h) + 12px); }
.guide-quest-section + .guide-quest-section { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--border); }
.guide-prose .guide-quest-section > h2 { margin: 0 0 6px; }
.guide-quest-walkthrough ol > li { margin-bottom: 6px; }
.guide-quest-walkthrough ol > li::marker { color: var(--gold); font-weight: 700; }
.guide-journal > summary { cursor: pointer; list-style: none; }
.guide-journal > summary::-webkit-details-marker { display: none; }
.guide-journal > summary h2::after { content: ' +'; color: var(--muted); }
.guide-journal[open] > summary h2::after { content: ' \2212'; }
.guide-mentioned { gap: 8px; }
.guide-mentioned h3 { margin: 0 0 2px; font-weight: 700; }
/* Lane G1a: recipes, gathering and uses on item pages; the objects section */
.guide-chips { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.guide-recipes td { vertical-align: top; }
.guide-recipe-how { white-space: nowrap; }
.guide-recipe-how .skill-icon { width: 20px; height: 20px; vertical-align: middle; }
.guide-recipe-kind { display: block; white-space: normal; }
.guide-recipe-tag { white-space: nowrap; }
.guide-recipe-extra { display: flex; margin-top: 2px; font-size: 0.9rem; }
.guide-places-line { display: block; margin-top: 2px; }
.guide-list-text li { align-items: baseline; }
.guide-obj-mark .icon { width: 14px; height: 14px; color: var(--gold); }
.guide-op { font-weight: 700; color: var(--gold-2); }
.guide-tool-for { gap: 10px; }
.guide-map-link .icon { width: 14px; height: 14px; }
.guide-note { margin-top: 12px; }
.guide-tabs-wrap { flex-wrap: wrap; }
.guide-made-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 2px 12px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.guide-made-grid li { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
@media (max-width: 639.98px) {
  .guide-recipe-how { white-space: normal; }
  /* a recipe or source a small card on phones: its cells one under the other, the XP labelled */
  .guide-recipes thead { display: none; }
  .guide-recipes, .guide-recipes tbody { display: block; width: auto; }
  .guide-recipes tr { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; padding: 8px 12px;
    border-bottom: 1px solid var(--border); }
  .table.guide-recipes td, .table.guide-recipes tbody td { display: block; width: auto; padding: 0; border: 0;
    text-align: start; }
  .guide-recipes .guide-recipe-kind { display: inline; margin-inline-start: 6px; }
  .guide-recipes td.num::before { content: attr(data-label) " "; color: var(--muted); font-size: 0.82rem; }
  .guide-recipes .guide-chip-text { overflow-wrap: normal; }
}

/* Richer guide pages (2026-11-14, assets/js/guide-ui.js): the item page's infobox and stat tiles, the picture recipes,
   map blocks and map cards from the site's tiles, the item card, grouped drops with rarity bars, the monster page */
:root {
  --r-always: hsl(100 52% 72%);
  --r-common: hsl(40 76% 63%);
  --r-uncommon: hsl(26 68% 52%);
  --r-rare: hsl(286 50% 50%);
  --r-very_rare: hsl(350 66% 42%);
  --pin-shop: #e8b65a;
  --pin-station: #9fc7e8;
  --pin-gather: #9fd28a;
}

/* Item page: the infobox beside the page (first on phones) */
.guide-layout-info { grid-template-rows: auto 1fr; }
@media (min-width: 900px) {
  .guide-layout-info > .guide-infobox { grid-column: 2; grid-row: 1; }
  .guide-layout-info > .guide-main { grid-column: 1; grid-row: 1 / span 2; }
  .guide-layout-info > .guide-aside { grid-column: 2; grid-row: 2; }
}
.guide-infobox { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; }
.gi-pic {
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: radial-gradient(circle, #2f2519, var(--surface) 70%);
}
.gi-pic .guide-icon { width: 96px; height: 96px; }
.gi-examine { margin: 2px 0 4px; text-align: center; color: var(--sand); font-size: 0.95rem; }
.gi-rows { margin: 0; }
.gi-rows div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 0.9rem; }
.gi-rows dt { color: var(--muted); font-weight: 600; }
.gi-rows dd { margin: 0; font-weight: 700; text-align: end; font-variant-numeric: tabular-nums; }
.gi-coins { display: inline-flex; align-items: center; gap: 4px; }
.gi-coins .guide-icon { width: 18px; height: 18px; }

/* Stat tiles */
.gstat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  text-align: center;
}
.gstat-label { margin: 0; color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.gstat-val { margin: 0; font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.gstat-val.is-up { color: #9fd28a; }
.gstat-val.is-down { color: #e07a6a; }
.gstat-val.is-gold { color: var(--gold-2); }
.gstat-val.is-blue { color: var(--blue-text); }
.gstat-val.is-text { font-size: 0.98rem; }
.gstat-big { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gstat-big .gstat { align-items: flex-start; text-align: start; padding: 8px 10px; }
.gstat-big .gstat-val { font-size: 1.35rem; }
.gstat-big .gstat-val.is-text { font-size: 1rem; }
.guide-toggle > summary { cursor: pointer; width: fit-content; color: var(--gold-2); font-weight: 700; font-size: 0.9rem; }
.guide-toggle[open] > summary { margin-bottom: 6px; }
.guide-toggle .table-wrap { margin-bottom: 4px; }

/* Picture recipes */
.grc { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.grc-flow { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 10px; }
.grc-item { display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 110px; color: var(--text); text-align: center; }
a.grc-item:hover { color: var(--gold-2); text-decoration: none; }
.grc-slot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #2a2118;
}
.grc-slot img { width: 32px; height: 32px; image-rendering: pixelated; }
.grc-slot.is-tool { border-style: dashed; }
.grc-slot.is-out { width: 54px; height: 50px; border-color: var(--gold); }
.grc-slot.is-out img { width: 40px; height: 40px; }
.grc-cap { font-size: 0.78rem; line-height: 1.25; overflow-wrap: anywhere; }
.grc-flow > .grc-item:last-child .grc-cap { font-weight: 700; }
.grc-op, .grc-arrow { align-self: center; margin-top: -14px; color: var(--gold); font-size: 1.3rem; font-weight: 700; }
[dir="rtl"] .grc-arrow { transform: scaleX(-1); }
.grc-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.grc-kind { margin-inline-end: 4px; }
.grc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 9px;
  border: 1px solid rgba(217, 164, 65, 0.45);
  border-radius: 999px;
  background: #2a2118;
  color: var(--gold-2);
  font-size: 0.82rem;
  font-weight: 700;
}
a.grc-chip:hover { border-color: var(--gold); text-decoration: none; }
.grc-chip .skill-icon, .grc-chip .icon { width: 16px; height: 16px; }
.guide-shot { margin: 0; max-width: 400px; }
.guide-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }

/* Map blocks and the map card: the site's tiles in a box */
.gmap-block { display: flex; flex-direction: column; gap: 6px; }
.gmap, .gpop-map {
  position: relative;
  overflow: hidden;
  height: 280px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #0b0907;
  touch-action: pan-y;
  user-select: none;
}
.gmap.is-tall { height: 340px; }
.gmap.is-ready { cursor: grab; }
.gmap.is-dragging { cursor: grabbing; }
.gmap-tiles, .gmap-marks { position: absolute; inset: 0; }
.gmap-marks { pointer-events: none; }
.gmap-tile { position: absolute; max-width: none; image-rendering: pixelated; pointer-events: none; }
.gmap-dot {
  position: absolute;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border: 2px solid #120e0a;
  border-radius: 50%;
  background: #e85a4a;
  box-shadow: 0 0 0 3px rgba(232, 90, 74, 0.35);
}
.gmap-pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -100%);
  color: var(--text);
  pointer-events: auto;
  text-decoration: none;
}
.gmap-pin:hover, .gmap-pin:focus-visible { z-index: 2; text-decoration: none; }
.gmap-mark {
  display: block;
  width: 16px;
  height: 16px;
  margin: 2px 0 4px;
  border: 3px solid #120e0a;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--gold);
}
.gmap-pin.is-shop .gmap-mark { background: var(--pin-shop); }
.gmap-pin.is-station .gmap-mark { background: var(--pin-station); }
.gmap-pin.is-gather .gmap-mark { background: var(--pin-gather); }
.gmap-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: rgba(28, 22, 16, 0.94);
  color: var(--gold-2);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.gmap-ic { width: 15px; height: 15px; image-rendering: pixelated; }
.gmap-pin.is-compact .gmap-tag { display: none; }
.gmap-pin.is-compact:hover .gmap-tag, .gmap-pin.is-compact:focus-visible .gmap-tag { display: inline-flex; }
.gmap-ctl { position: absolute; top: 8px; left: 8px; z-index: 3; display: flex; flex-direction: column; gap: 4px; }
.gmap-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: rgba(28, 22, 16, 0.92);
  color: var(--gold-2);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.gmap-btn:hover { border-color: var(--gold); }
.gmap-open {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 0.8rem;
  font-weight: 800;
}
.gmap-open:hover { background: var(--gold-2); color: var(--gold-ink); text-decoration: none; }
.gmap-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.gmap-tab {
  padding: 2px 10px;
  border: 1px solid rgba(217, 164, 65, 0.45);
  border-radius: 999px;
  background: #2a2118;
  color: var(--gold-2);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.gmap-tab[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.gmap-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; font-size: 0.85rem; color: var(--muted); }
.gmap-legend li { display: inline-flex; align-items: center; gap: 6px; }
.gmap-key { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.gmap-key.is-shop { background: var(--pin-shop); }
.gmap-key.is-station { background: var(--pin-station); }
.gmap-key.is-gather { background: var(--pin-gather); }
.gmap-key.is-dot { background: #e85a4a; }
.gmap-noscript { margin: 0; padding: 10px 14px; }

/* The cards beside a link (a map card, an item card) */
.gpop {
  position: fixed;
  z-index: 60;
  max-width: calc(100vw - 16px);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: #241c14;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: start;
  white-space: normal;
}
.gpop-dialog { width: 300px; padding: 8px; }
.gpop-dialog .gpop-map { height: 170px; }
.gpop-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 0.82rem; }
.gpop-where { color: var(--muted); }
.gpop-tooltip { width: 330px; padding: 12px; }
.gpop-item-in { display: flex; gap: 12px; }
.gpop-slot { display: grid; place-items: center; flex: none; width: 60px; height: 60px; border: 1px solid var(--border); border-radius: 8px; background: #2a2118; }
.gpop-slot img { width: 48px; height: 48px; image-rendering: pixelated; }
.gpop-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gpop-name { color: var(--gold-2); font-size: 1rem; }
.gpop-exam { color: var(--muted); font-size: 0.85rem; }
.gpop-stats { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 0.82rem; }
.gpop-stats .is-up { color: #9fd28a; }
.gpop-stats .is-down { color: #e07a6a; }
.gpop-price { display: inline-flex; align-items: center; gap: 5px; font-size: 0.82rem; }
.gpop-price img { image-rendering: pixelated; }
.gpop-note { color: var(--red-text); font-size: 0.8rem; }

/* Drops: grouped picture tiles, rarity bars */
.gd { display: flex; flex-direction: column; gap: 10px; }
.gd-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.gd-view { display: flex; flex-direction: column; gap: 12px; }
.gd-view[hidden] { display: none; }
.gd-always {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid #4d6b3a;
  border-radius: var(--radius-sm);
  background: #24301c;
}
.gd-always .gd-tile { flex: 0 1 auto; flex-direction: row; padding: 0; border: 0; background: none; text-align: start; }
.gd-always .gd-tile .gd-name { font-size: 0.95rem; font-weight: 700; }
.gd-always .badge { margin-inline-start: auto; }
.gd-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 16px; }
.gd-group.is-wide { grid-column: 1 / -1; }
.gd-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.gd-group-head h3 { margin: 0; color: var(--gold-2); font-size: 0.95rem; }
.gd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.gd-grid > li { display: flex; min-width: 0; }
.gd-tile {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 6px 4px;
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  text-align: center;
}
a.gd-tile:hover { border-color: var(--gold); color: var(--gold-2); text-decoration: none; }
.gd-tile.is-always { border-bottom-color: var(--r-always); }
.gd-tile.is-common { border-bottom-color: var(--r-common); }
.gd-tile.is-uncommon { border-bottom-color: var(--r-uncommon); }
.gd-tile.is-rare { border-bottom-color: var(--r-rare); }
.gd-tile.is-very_rare { border-bottom-color: var(--r-very_rare); }
.gd-tile .guide-icon { width: 36px; height: 36px; }
.gd-name { font-size: 0.8rem; line-height: 1.25; overflow-wrap: anywhere; }
.gd-tile .gd-rar { justify-content: center; }
.gd-tile .gd-bar { display: none; }
.gd-rar { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 0.82rem; }
.gd-bar { display: inline-block; width: 90px; height: 8px; border-radius: 6px; background: #3d3023; overflow: hidden; }
.gd-bar-fill { display: block; height: 100%; border-radius: 6px; }
.is-always > .gd-bar .gd-bar-fill { background: var(--r-always); }
.is-common > .gd-bar .gd-bar-fill { background: var(--r-common); }
.is-uncommon > .gd-bar .gd-bar-fill { background: var(--r-uncommon); }
.is-rare > .gd-bar .gd-bar-fill { background: var(--r-rare); }
.is-very_rare > .gd-bar .gd-bar-fill { background: var(--r-very_rare); }
.gd-frac { color: var(--muted); font-variant-numeric: tabular-nums; }
.gd-word { color: var(--subtle); }
.gd-rar.is-always .gd-word { color: var(--r-always); }
.table .gd-rar { justify-content: flex-end; }
.gd-lines { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.gd-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 6px 0; }
.gd-line + .gd-line { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.gd-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-width: 0; }
.gd-mon { display: inline-flex; align-items: center; gap: 6px; }
.gd-mon .guide-npc-thumb { width: 32px; height: 32px; margin-block: -4px; }
.gd-more { flex-basis: 100%; }
.gd-more > summary { cursor: pointer; width: fit-content; color: var(--gold-2); font-size: 0.85rem; font-weight: 700; }
.gd-more[open] > summary { margin-bottom: 4px; }
.gd-line .gd-bar { width: 120px; }

/* Same family, similar monsters */
.gfam { display: flex; flex-wrap: wrap; gap: 6px; }
.gfam-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 10px;
  border: 1px solid rgba(217, 164, 65, 0.45);
  border-radius: 999px;
  background: #2a2118;
  color: var(--gold-2);
  font-size: 0.85rem;
  font-weight: 700;
}
a.gfam-chip:hover { border-color: var(--gold); text-decoration: none; }
.gfam-chip.is-current { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.gfam-chip .guide-icon { width: 20px; height: 20px; }

/* Monster page */
.stack.guide-monster { gap: 12px; }
.gmon-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; padding: 12px; }
.gmon-pic {
  display: grid;
  place-items: center;
  flex: none;
  width: 200px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: radial-gradient(circle at 50% 40%, #33281b, var(--surface) 70%);
}
.gmon-pic img { width: 184px; height: 184px; object-fit: contain; }
.gmon-body { display: flex; flex: 1 1 420px; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; }
.gmon-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; align-items: start; }
.gmon-foot:empty { display: none; }

@media (max-width: 639.98px) {
  .gmap { height: 230px; }
  .gmap.is-tall { height: 260px; }
  .gmon-pic { width: 100%; }
  .gmon-pic img { width: 140px; height: 140px; }
  .gmon-body { flex-basis: 100%; }
  .gstat-big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gd-grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
  .gd-line { grid-template-columns: 1fr; }
  .gd-line .gd-bar { width: 90px; }
  .gpop-tooltip { width: 300px; }
}
.gd-bar-fill.w5 { width: 5%; }
.gd-bar-fill.w10 { width: 10%; }
.gd-bar-fill.w15 { width: 15%; }
.gd-bar-fill.w20 { width: 20%; }
.gd-bar-fill.w25 { width: 25%; }
.gd-bar-fill.w30 { width: 30%; }
.gd-bar-fill.w35 { width: 35%; }
.gd-bar-fill.w40 { width: 40%; }
.gd-bar-fill.w45 { width: 45%; }
.gd-bar-fill.w50 { width: 50%; }
.gd-bar-fill.w55 { width: 55%; }
.gd-bar-fill.w60 { width: 60%; }
.gd-bar-fill.w65 { width: 65%; }
.gd-bar-fill.w70 { width: 70%; }
.gd-bar-fill.w75 { width: 75%; }
.gd-bar-fill.w80 { width: 80%; }
.gd-bar-fill.w85 { width: 85%; }
.gd-bar-fill.w90 { width: 90%; }
.gd-bar-fill.w95 { width: 95%; }
.gd-bar-fill.w100 { width: 100%; }
.gd-line .gd-word { min-width: 5.5em; }

/* Quest page (2026-11-14): where it starts, requirements and the backpack on top, the quick guide's checklist, the
   rewards beside the game's quest-complete window */
.stack.guide-quest-page { gap: 12px; }
.gq-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; align-items: stretch; }
.gq-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px 14px; }
.gq-card-title { margin: 0; color: var(--gold-2); font-size: 1.05rem; }
.gq-top .gq-card .gmap { height: 170px; }
.guide-quest-page .guide-mentioned .guide-list { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.gq-start-text, .gq-start-text p { margin: 0; font-size: 0.92rem; }
.gq-reqs { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.gq-req {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 0.92rem;
}
.gq-req a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.gq-req a:hover { color: var(--gold-2); text-decoration: none; }
.gq-req .skill-icon, .gq-req .icon { width: 20px; height: 20px; }
.gq-req-val { color: var(--gold-2); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.gq-pack {
  display: grid;
  grid-template-columns: repeat(4, 40px);
  gap: 4px;
  width: fit-content;
  margin: 0;
  padding: 6px;
  border: 2px solid #5a4630;
  border-radius: 8px;
  background: #3b2f22;
  list-style: none;
}
.gq-slot { position: relative; width: 40px; height: 34px; border: 1px solid #4a3a28; border-radius: 5px; background: #2a2118; }
.gq-slot a { display: grid; place-items: center; width: 100%; height: 100%; }
.gq-slot.is-full:hover { border-color: var(--gold); }
.gq-slot img { width: 30px; height: 30px; image-rendering: pixelated; }
.gq-slot-n {
  position: absolute;
  top: 0;
  left: 2px;
  color: #ffff00;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 1px 1px 0 #000;
}
.gq-notes { margin: 0; padding-inline-start: 1.1em; color: var(--muted); font-size: 0.85rem; }
.gq-guide { padding: 0; overflow: hidden; }
.gq-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--border); }
.gq-tabs[hidden] { display: none; }
.gq-tab {
  padding: 9px 14px 7px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.gq-tab:hover { color: var(--gold-2); }
.gq-tab[aria-selected="true"] { border-bottom-color: var(--gold); color: var(--gold-2); }
.gq-panel[hidden] { display: none; }
.gq-progress { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin-bottom: 2px; }
.gq-progress-bar { display: flex; flex: 0 1 360px; align-items: center; gap: 10px; }
.gq-bar { flex: 1; min-width: 80px; height: 8px; overflow: hidden; border-radius: 6px; background: #3d3023; }
.gq-bar-fill { display: block; width: 0; height: 100%; border-radius: 6px; background: #9fd28a; transition: width 0.2s var(--ease); }
.gq-count { font-size: 0.9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gq-steps { margin: 0; padding: 0; list-style: none; }
.gq-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 22px;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.gq-steps > li:last-child { border-bottom: 0; }
.gq-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: #2a2118;
  color: var(--gold-2);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}
.gq-step.is-done .gq-num { border-color: #9fd28a; background: #9fd28a; color: #120e0a; }
.gq-step.is-done .gq-text { color: var(--muted); }
.gq-text { padding-top: 2px; line-height: 1.65; overflow-wrap: anywhere; }
.gq-text ul { margin: 4px 0 0; padding-inline-start: 1.2em; }
.gq-box { width: 20px; height: 20px; margin: 5px 0 0; accent-color: #9fd28a; cursor: pointer; }
.gq-part h3 { margin: 12px 0 0; color: var(--gold-2); font-size: 1rem; }
.gq-note { padding: 8px 0; color: var(--muted); font-size: 0.9rem; }
.gq-note p { margin: 0; }
.gq-text a.guide-ref-item, .gq-text a.guide-ref-npc, .gq-text a.guide-ref-monster {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 8px 0 5px;
  border: 1px solid rgba(217, 164, 65, 0.45);
  border-radius: 999px;
  background: #2a2118;
  color: var(--gold-2);
  font-weight: 700;
  line-height: 1.55;
  vertical-align: 1px;
}
[dir="rtl"] .gq-text a.guide-ref-item, [dir="rtl"] .gq-text a.guide-ref-npc, [dir="rtl"] .gq-text a.guide-ref-monster { padding: 0 5px 0 8px; }
.gq-text a.guide-ref-item:hover, .gq-text a.guide-ref-npc:hover, .gq-text a.guide-ref-monster:hover { border-color: var(--gold); text-decoration: none; }
.gq-text .guide-ref-icon { margin: 0; vertical-align: 0; }
.gq-rewards { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 12px 14px; }
.gq-shot { flex: 0 1 380px; margin: 0; }
.gq-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.gq-rewards-body { display: flex; flex: 1 1 300px; flex-direction: column; gap: 8px; min-width: 0; }
.gq-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.gq-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.gq-tile-label { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 0.85rem; }
.gq-tile-label .skill-icon { width: 18px; height: 18px; }
.gq-tile-val { display: inline-flex; align-items: center; gap: 5px; font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.gq-tile-val .icon { width: 16px; height: 16px; color: var(--gold); }
.gq-tile-item .guide-chip { font-weight: 700; }
.gq-tile-wide { grid-column: 1 / -1; }
@media (max-width: 639.98px) {
  .gq-step { grid-template-columns: 28px minmax(0, 1fr) 22px; gap: 10px; }
  .gq-num { width: 28px; height: 28px; }
  .gq-progress-bar { flex-basis: 100%; }
  .gq-shot { flex-basis: 100%; }
  .gq-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Place page (2026-11-14): the screenshot, the large map with its filters, the cards, characters and shops */
:root { --pin-quest: #e8a0d8; --pin-travel: #f0e6c8; }
.gmap-pin.is-quest .gmap-mark { background: var(--pin-quest); }
.gmap-pin.is-travel .gmap-mark { background: var(--pin-travel); }
.gmap-pin.is-npc .gmap-mark { background: #e85a4a; }
.gmap-key.is-quest { background: var(--pin-quest); }
.gmap-key.is-travel { background: var(--pin-travel); }
.gmap-pin.is-hl { z-index: 4; }
.gmap-pin.is-hl .gmap-tag { border-color: #fff; background: #e85a4a; color: #fff; }
.gmap-pin.is-hl .gmap-mark { animation: gmap-hl 1s ease-in-out 3; }
@keyframes gmap-hl { 50% { transform: rotate(-45deg) scale(1.5); } }
.gmap.is-xl { height: 440px; }
.stack.guide-place-page { gap: 12px; }
.gp-intro { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; }
.gp-hero { margin: 0; }
.gp-hero img { display: block; width: 100%; max-height: 420px; object-fit: cover; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.gp-lead { color: var(--sand); font-size: 1rem; }
.gp-map { padding: 10px; }
.gp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; align-items: start; }
.gp-get .guide-sub { margin: 4px 0 0; }
.gp-rows { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.gp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.92rem;
}
a.gp-row:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.gp-row > .guide-mapfn { flex: none; width: 18px; height: 18px; }
.gp-row > a.muted { margin-inline-start: auto; }
.gp-row-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.gp-row .guide-chip .guide-icon { width: 24px; height: 24px; }
.gp-npcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.gp-npc {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--surface-2);
}
.gp-npc.is-focusable { cursor: pointer; }
.gp-npc.is-focusable:hover, .gp-npc.is-on { border-color: var(--gold); }
.gp-npc .gp-row-text a { font-weight: 700; }
.gp-av {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--gold-2);
  font-weight: 800;
}
.gp-npc-pin { flex: none; padding: 4px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.gp-npc-pin:hover, .gp-npc.is-on .gp-npc-pin { color: #e85a4a; }
.gp-npc-pin .icon { width: 16px; height: 16px; }
.gp-shop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 6px; }
.gp-shop-shot { margin: 0; }
.gp-shop-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.gp-shop-shot figcaption { margin-top: 3px; }
.gp-shop-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gp-shop-panel[hidden] { display: none; }
.gp-shop-name { margin: 0 0 4px; font-size: 0.95rem; }
.gp-stock { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 10px; margin: 0; padding: 0; list-style: none; }
.gp-stock li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.gp-stock .guide-chip .guide-icon { width: 26px; height: 26px; }
.gp-price { display: inline-flex; flex: none; align-items: center; gap: 4px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gp-price .guide-icon { width: 16px; height: 16px; }
@media (max-width: 899.98px) {
  .gp-shop { grid-template-columns: 1fr; }
}
@media (max-width: 639.98px) {
  .gmap.is-xl { height: 320px; }
  .gp-npcs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .gp-npc { gap: 8px; padding: 6px 8px; }
  .gp-av { width: 28px; height: 28px; font-size: 0.85rem; }
  .gp-npc .gp-row-text { font-size: 0.85rem; }
  .gp-npc-pin { display: none; }
}

/* Skill page (2026-11-14): the 1-99 path, the unlocks as tiles with "your level", where to train, the game's guide */
:root { --t1: #9fd28a; --t2: #e8b65a; --t3: #d88a3d; --t4: #e07a6a; --t5: #c96bd6; }
.stack.guide-skill-page { gap: 12px; }
.gs-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.gs-bar { display: flex; height: 10px; overflow: hidden; border-radius: 6px; background: #3d3023; }
.gs-bar-seg { flex: 0 0 auto; height: 100%; }
.gs-bar-seg:last-child { flex-grow: 1; }
.gs-bar-seg.is-t1, .gs-stage.is-t1 { --tc: var(--t1); }
.gs-bar-seg.is-t2, .gs-stage.is-t2 { --tc: var(--t2); }
.gs-bar-seg.is-t3, .gs-stage.is-t3 { --tc: var(--t3); }
.gs-bar-seg.is-t4, .gs-stage.is-t4 { --tc: var(--t4); }
.gs-bar-seg.is-t5, .gs-stage.is-t5 { --tc: var(--t5); }
.gs-bar-seg { background: var(--tc); }
.gs-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.gs-stage {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-top: 4px solid var(--tc);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 0.9rem;
}
.gs-range { color: var(--tc); font-size: 1rem; }
.gs-where { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: auto; }
.gs-where > .icon { width: 14px; height: 14px; color: var(--muted); }
.gs-where a, .gs-where > span:not(.icon) {
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(217, 164, 65, 0.45);
  border-radius: 999px;
  background: #2a2118;
  color: var(--gold-2);
  font-size: 0.82rem;
  font-weight: 700;
}
.gs-where > span:not(.icon) { color: var(--muted); }
.gs-where a:hover { border-color: var(--gold); text-decoration: none; }
.gs-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.gs-level { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 0.9rem; font-weight: 600; }
.gs-level[hidden] { display: none; }
.gs-level input {
  width: 64px;
  padding: 3px 8px;
  border: 1px solid var(--border-field);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--gold-2);
  font: inherit;
  font-weight: 700;
}
.gs-cat[hidden], .gs-tiles[hidden], [data-gs-table][hidden], .gs-cat-title[hidden] { display: none; }
.gs-cat + .gs-cat { margin-top: 10px; }
.gs-cat-title { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; color: var(--gold-2); font-size: 0.95rem; }
.gs-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.gs-tile { display: flex; min-width: 0; transition: opacity 0.15s; }
.gs-tile-in {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 8px 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  text-align: center;
}
a.gs-tile-in:hover { border-color: var(--gold); color: var(--text); text-decoration: none; }
.gs-lv { padding: 0 8px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-size: 0.75rem; font-weight: 800; }
.gs-ic { width: 36px; height: 36px; object-fit: contain; image-rendering: pixelated; }
.gs-ic-none { display: block; }
.gs-name { font-size: 0.82rem; line-height: 1.25; overflow-wrap: anywhere; }
.gs-xp { color: var(--muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.gs-mats { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; margin-top: 1px; }
.gs-mat { position: relative; display: inline-flex; color: var(--muted); font-size: 0.72rem; }
.gs-mat img { width: 20px; height: 20px; image-rendering: pixelated; }
.gs-mat-n { position: absolute; top: -3px; left: -2px; color: #ffff00; font-size: 0.62rem; font-weight: 800; text-shadow: 1px 1px 0 #000; }
.gs-note { color: var(--subtle); font-size: 0.72rem; }
.gs-tile.is-locked { opacity: 0.38; }
tr.is-locked { opacity: 0.45; }
.gs-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; align-items: start; }
.gs-shot { margin: 0; }
.gs-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
@media (max-width: 639.98px) {
  .gs-tiles { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
  .gs-stages { grid-template-columns: 1fr 1fr; }
  .gs-pair { grid-template-columns: 1fr; }
}
.gs-w5 { flex-basis: 5%; }
.gs-w10 { flex-basis: 10%; }
.gs-w15 { flex-basis: 15%; }
.gs-w20 { flex-basis: 20%; }
.gs-w25 { flex-basis: 25%; }
.gs-w30 { flex-basis: 30%; }
.gs-w35 { flex-basis: 35%; }
.gs-w40 { flex-basis: 40%; }
.gs-w45 { flex-basis: 45%; }
.gs-w50 { flex-basis: 50%; }
.gs-w55 { flex-basis: 55%; }
.gs-w60 { flex-basis: 60%; }
.gs-w65 { flex-basis: 65%; }
.gs-w70 { flex-basis: 70%; }
.gs-w75 { flex-basis: 75%; }
.gs-w80 { flex-basis: 80%; }
.gs-w85 { flex-basis: 85%; }
.gs-w90 { flex-basis: 90%; }
.gs-w95 { flex-basis: 95%; }
.gs-w100 { flex-basis: 100%; }
