@font-face {
    font-family: "Scavland";
    src: url("/3_Fonts/Type_Font_1.5b38c246e255.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}

/* Kopīgie logu izmēri un novietojums visām trim sadaļām. */
:root {
    --panel-max-width: min(75vw, calc(97vw - 240px));
    --panel-width: min(58vw, var(--panel-max-width));
    --panel-height: min(78svh, calc((var(--panel-max-width) - var(--panel-gap)) / 1.908));
    --panel-left: clamp(180px, 13.2vw, 260px);
    --panel-gap: 18px;
    --workspace-radius: 5px;
}

body {
    margin: 0;
    min-height: 100svh;
    background: #000 url("/2_Images/scavland-armory-background-clean.fec59b051946.webp") center / cover no-repeat;
}

.site-logo {
    --logo-left: clamp(12px, 2vw, 36px);
    position: fixed;
    top: clamp(12px, 3svh, 30px);
    left: var(--logo-left);
    width: clamp(150px, 14vw, 220px);
    height: auto;
    z-index: 1;
    pointer-events: none;
}
/* Keep the navigation in the same position before and after opening a section. */
.main-menu {
    position: fixed;
    left: var(--panel-left);
    bottom: calc(50% + var(--panel-height) / 2 + 12px);
    width: calc(var(--panel-height) * 1.908 + var(--panel-gap));
    z-index: 2;
    pointer-events: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.6vw, 32px);
    padding: 0;
}

.main-menu :is(button, a) {
    display: inline-flex;
    align-items: center;
    gap: 0.15em;
    white-space: nowrap;
    pointer-events: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #b8ab95;
    font: 400 clamp(24px, 2.4vw, 42px) / 1.15 "Scavland", "Arial Narrow", sans-serif;
    text-align: left;
    text-transform: uppercase;
    text-shadow: 1px 2px 2px #000;
    cursor: pointer;
}

.main-menu .menu-lock {
    display: block;
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
    object-fit: contain;
}
.main-menu :is(button, a):hover,
.main-menu :is(button, a):focus-visible,
.main-menu :is(button, a)[aria-expanded="true"] { color: #d4be78; }

.main-menu :is(button, a):focus-visible {
    outline: 2px solid #d4be78;
    outline-offset: 5px;
}

.content-panel {
    position: fixed;
    top: 50%;
    left: var(--panel-left);
    width: var(--panel-width);
    height: var(--panel-height);
    transform: translateY(-50%);
    display: grid;
    grid-template-columns: 0.92fr 1fr;
    gap: var(--panel-gap);
}

.content-panel[hidden] { display: none; }

/* Weapons un Armor logu sākotnējās proporcijas: 966/768 un 501/771. */
.content-panel[data-view="weapons"],
.content-panel[data-view="armor"],
.content-panel[data-view="guides"] {
    --panel-width: calc(var(--panel-height) * 1.908 + var(--panel-gap));
    grid-template-columns: 1.936fr 1fr;
}

.window { min-width: 0; background-repeat: no-repeat; }
.content-panel:is([data-view="guides"], [data-view="map"]) > .window { background-image: none; }
.window-left { position: relative; z-index: 1; }

.weapon-menu {
    position: absolute;
    top: 0.6%;
    left: 2%;
    right: 2%;
    height: 10.8%;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: center;
    gap: 12px;
}
.weapon-menu[hidden], .armor-menu[hidden], .weapon-options[hidden] { display: none; }
.weapon-category { position: relative; min-width: 0; }
.weapon-category:has(button[aria-expanded="true"]) { z-index: 1; }
.weapon-category > button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    aspect-ratio: 142 / 47;
    min-height: 28px;
    padding: 0 clamp(4px, 0.4vw, 8px) 2px;
    border: 0;
    background: url("/4_Buttons/tab-normal.fc5496c46522.png") center / 100% 100% no-repeat;
    color: #20190c;
    font: 400 clamp(11px, 0.95vw, 16px) / 1 "Scavland", "Arial Narrow", sans-serif;
    text-align: left;
    text-transform: uppercase;
    image-rendering: pixelated;
    cursor: pointer;
}
.weapon-category:hover > button,
.weapon-category > button:focus-visible {
    background-image: url("/4_Buttons/tab-hover.689acc9e7716.png");
}
.weapon-category > button:focus-visible {
    outline: 2px solid #d4be78;
    outline-offset: 3px;
}
.weapon-options {
    position: absolute;
    top: 100%;
    left: 0;
    box-sizing: border-box;
    width: clamp(210px, 20vw, 280px);
    max-width: calc(100vw - 24px);
    min-height: 47px;
    max-height: min(48svh, 420px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #8c6c38 #25271f;
    scrollbar-width: thin;
    margin: 0;
    padding: 8px;
    border: 2px solid #8c6c38;
    background: #25271f;
    box-shadow: 2px 3px 0 #11170d;
    list-style: none;
}
.weapon-category:nth-last-child(-n+3) .weapon-options { left: auto; right: 0; }
.weapon-options li + li { border-top: 1px solid #8c6c383d; }
.weapon-options a {
    display: flex;
    align-items: center;
    gap: 9px;
    box-sizing: border-box;
    width: 100%;
    min-height: 36px;
    padding: 8px 9px;
    border: 0;
    background: transparent;
    color: #c9bda7;
    font: 400 18px / 1.2 "Scavland", "Arial Narrow", sans-serif;
    text-align: left;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.weapon-options a:hover,
.weapon-options a:focus-visible {
    background: #3b3d2e;
    color: #ecd799;
}
.weapon-options a:focus-visible {
    outline: 1px solid #d4be78;
    outline-offset: -1px;
}
.weapon-options a[aria-current="true"] {
    background: #504830;
    color: #f0d894;
    box-shadow: inset 3px 0 #d4be78;
}
.weapon-option-label { min-width: 0; }
.weapon-options a[aria-current="true"] .weapon-option-rarity::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #15140f;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Fona pozīcijas izdala tikai vajadzīgo logu no esošā PNG. */
[data-view="armory"] .window {
    background-image: url("/2_Images/armory-without-grid.b87f9c18b666.webp");
}
[data-view="armory"] .window-left {
    background-size: 298.0392% 112.6946%;
    background-position: 38.4338% 53.7736%;
}
[data-view="armory"] .window-right {
    background-size: 275% 112.6946%;
    background-position: 94.8308% 53.7736%;
}

[data-view="weapons"] .window {
    background-image: url("/2_Images/mod-window-transparent-v2.af10e1949366.webp");
}
[data-view="armor"] .window {
    background-image: url("/2_Images/mod-window-transparent-v3.ca4522cf66e3.webp");
}
[data-view="weapons"] .window-left,
[data-view="armor"] .window-left {
    background-size: 172.9814% 122.526%;
    background-position: 12.3404% 49.711%;
}
[data-view="weapons"] .window-right,
[data-view="armor"] .window-right {
    background-size: 333.5329% 122.0493%;
    background-position: 92.735% 50%;
}
[data-view="weapons"] .window-right,
[data-view="armor"] .window-right {
    border-radius: 8px 8px 0 0;
    clip-path: polygon(0 0, 100% 0, 100% 96%, 95% 100%, 0 100%);
}

.main-menu a { text-decoration: none; }
/* Transparent hit areas over the slots already drawn in mod-window-transparent-v3. */
.armor-menu {
    position: absolute;
    inset: 0;
}
[data-view]:not([data-view="armor"]) .armor-menu { display: none; }
.armor-slot {
    position: absolute;
    left: 22.98%;
    top: 8.72%;
    width: 15.53%;
    height: 14.06%;
    color: #baad7c;
    text-decoration: none;
    text-align: center;
    font: 400 clamp(8px, 1.35cqw, 14px)/1.1 "Scavland", sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
}
.armor-slot[data-armor-category="mask"] { left: 5.38%; width: 15.73%; }
.armor-slot[data-armor-category="body"] { top: 25.39%; height: 19.53%; }
.armor-slot[data-armor-category="legs"] { top: 45.7%; height: 20.31%; }
/* Cover only the original silhouette when an item is fitted; preserve the painted frame. */
.armor-slot[data-filled="true"] { background: #323024; }
.armor-slot-icon {
    position: absolute;
    top: 5%;
    left: 14%;
    display: block;
    width: 72%;
    height: 72%;
    object-fit: contain;
    image-rendering: pixelated;
    visibility: hidden;
}
.armor-slot[data-filled="true"] .armor-slot-icon { visibility: visible; }
.armor-slot-label { position: absolute; bottom: 3%; left: 0; right: 0; text-shadow: 1px 1px #000; }
.armor-slot:hover { box-shadow: inset 0 0 0 2px #a8955e; color: #ead498; }
.armor-slot[aria-current="true"] { box-shadow: inset 0 0 0 2px #e88900; color: #ead498; }
.armor-slot:focus-visible { outline: 2px solid #f7bd62; outline-offset: 2px; }
.armor-heading {
    position: absolute;
    top: 1.5%;
    left: 5%;
    right: 5%;
    height: 11%;
    display: flex;
    align-items: center;
    margin: 0;
    color: #bead70;
    font: 400 clamp(11px, 4cqw, 22px)/1 "Scavland", sans-serif;
}
.armor-heading[hidden], [data-view]:not([data-view="armor"]) .armor-heading { display: none; }

/* Keep the Attributes control at the left of the right-panel header. */
.window-right { position: relative; container-type: inline-size; }
.weapon-detail-tabs {
    position: absolute;
    z-index: 2;
    top: 1.5%;
    left: 5%;
    right: 5%;
    height: 11%;
    display: none;
    align-items: center;
}
[data-view="weapons"] .weapon-detail-tabs { display: grid; }
.attributes-dropdown { position: relative; min-width: 0; }
.attribute-options {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 3;
    box-sizing: border-box;
    width: min(270px, 90cqw);
    max-height: min(60svh, calc(var(--panel-height) * 0.78));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #8c6c38 #25271f;
    margin: 0;
    padding: clamp(3px, 1.2cqw, 6px);
    list-style: none;
    border: 2px solid #8c6c38;
    background: #25271f;
    box-shadow: 2px 3px 0 #11170d;
}
.attribute-options[hidden] { display: none; }
.attribute-options li + li { border-top: 1px solid #8c6c383d; }
.attribute-options button {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 32px;
    padding: 7px clamp(4px, 1.6cqw, 9px);
    border: 0;
    background: transparent;
    color: #c9bda7;
    font: 400 clamp(12px, 3.8cqw, 18px)/1.2 "Scavland", "Arial Narrow", sans-serif;
    text-align: left;
    cursor: pointer;
}
.attribute-options small { display: block; margin-top: 4px; color: #b8ab95; font: 400 11px/1.3 sans-serif; }
.attribute-options button:hover,
.attribute-options button:focus-visible { background: #3b3d2e; color: #ecd799; }
.attribute-options button:focus-visible { outline: 1px solid #d4be78; outline-offset: -1px; }
.attribute-options button[aria-pressed="true"] { background: #504830; color: #f0d894; box-shadow: inset 3px 0 #d4be78; }
.attributes-message {
    position: absolute;
    top: 15%;
    left: 5%;
    right: 5%;
    margin: 0;
    color: #bead70;
    font: 400 clamp(10px, 3cqw, 16px)/1.3 "Scavland", sans-serif;
}
[data-view]:not([data-view="weapons"]) .attributes-message { display: none; }

:root { --stat-base: #bead70; --stat-good: #6dd13c; --stat-bad: #cf1a1a; --stat-empty: #26211c; }
.window-left { container-type: inline-size; }
.weapon-menu { z-index: 2; }
.weapon-stats { position: absolute; left: 1.8%; right: 39.3%; bottom: 1%; color: var(--stat-base); font: 400 max(10px, 1.63cqw)/1 "Scavland", sans-serif; }
.weapon-stat-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.5cqw; }
.weapon-stat-columns dl { margin: 0; }
/* Keep the original bar width (93.4% × 94% / 2 × 33% of the window).
   Recover space from unused label padding and column gutters instead. */
.weapon-stats .stat-row { grid-template-columns: 10.5cqw 14.49cqw minmax(0, 1fr); column-gap: 0.2cqw; min-height: max(26px, 4.4cqw); }
.weapon-stats .stat-row dt { white-space: normal; }
.weapon-stats .stat-bar { height: max(20px, 3.5cqw); }
.stat-row { display: grid; grid-template-columns: 35% 33% 1fr; align-items: center; gap: 2%; min-height: max(17px, 3.44cqw); }
.stat-row dt { text-transform: uppercase; }
.stat-row dd { margin: 0; white-space: nowrap; }
.stat-bar { height: max(12px, 2.54cqw); background: linear-gradient(90deg, var(--stat-base) var(--base, 0%), var(--change, var(--stat-base)) 0 var(--total, 0%), var(--stat-empty) 0); mask: repeating-linear-gradient(90deg, #000 0 2.5%, transparent 2.5% 5%); }
.stat-row[data-change="better"] { --change: var(--stat-good); }
.stat-row[data-change="worse"] { --change: var(--stat-bad); }
.stat-value b { color: var(--change); font-weight: 400; }
[data-view]:not([data-view="weapons"]) .weapon-stats { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.weapon-options a { box-sizing: border-box; text-decoration: none; }
@container (max-width: 600px) {
    .weapon-stats .weapon-stat-columns { grid-template-columns: 1fr; gap: 0; }
    .weapon-stats .stat-row { grid-template-columns: minmax(0, 1fr) 14.49cqw minmax(28px, 6cqw); column-gap: 1cqw; }
    .weapon-stats { max-height: 38%; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--stat-base) var(--stat-empty); }
}
@container (max-width: 450px) {
    .stat-row { grid-template-columns: 44% 32% 1fr; }
    .stat-row dt { white-space: nowrap; }
}
@media (max-width: 700px) {
    .weapon-stats { max-height: 68%; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--stat-base) var(--stat-empty); font-size: 10px; }
    .weapon-stat-columns { grid-template-columns: 1fr; gap: 4px; }
    .stat-row { min-height: 17px; grid-template-columns: 46% 30% 1fr; }
    .stat-bar { height: 12px; }
}

/* Centre the visible weapon pixels on the supplied reference point. */
.weapon-preview {
    position: absolute;
    left: 50.6%;
    top: 41.8%;
    width: 84%;
    height: 54%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    pointer-events: none;
}
.weapon-preview[hidden],
[data-view]:not([data-view="weapons"]) .weapon-preview { display: none; }
.weapon-image {
    display: block;
    width: calc(var(--weapon-pixels) * 1.25cqw);
    height: auto;
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 2px 2px #0008);
}
.weapon-image image { image-rendering: pixelated; }
@media (max-width: 700px) {
    /* Keep the existing scrollable stats below the weapon preview. */
    .weapon-stats { max-height: 25%; }
}

.stat-row .stat-value { white-space: normal; }
.stat-value b { display: inline-block; }

/* Reserve a second line for attachment changes, keeping base values aligned. */
.weapon-stats .stat-value {
    display: grid;
    grid-template-rows: repeat(2, 1em);
    row-gap: 0.15em;
    white-space: nowrap;
}
.weapon-stats .stat-value b { display: block; }

.attribute-content, .armor-content {
    position: absolute;
    inset: 14% 5% 5%;
    display: flex;
    flex-direction: column;
    gap: max(5px, 1.4cqw);
}
.attribute-content .attributes-message { position: static; flex: 0 0 auto; }
[data-view]:not([data-view="weapons"]) .attribute-content { display: none; }
.armor-content[hidden], [data-view]:not([data-view="armor"]) .armor-content { display: none; }
.armor-message { margin: 0; color: #bead70; font: 400 clamp(10px, 3cqw, 16px)/1.3 "Scavland", sans-serif; }
.attachment-results, .armor-results {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #8c6c38 #25231c;
}
.attachment-results[hidden], .armor-results[hidden], .attachment-group[hidden],
[data-view]:not([data-view="weapons"]) .attachment-results { display: none; }
.attachment-group { list-style: none; margin: 0; padding: 0; }
.attachment-group li + li { margin-top: max(6px, 2cqw); }
.attachment-card {
    display: grid;
    grid-template-columns: 19% minmax(0, 1fr) auto max(5px, 3.2cqw);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: max(4px, 1.4cqw);
    row-gap: max(3px, 1cqw);
    box-sizing: border-box;
    width: 100%;
    min-height: max(58px, 14.4cqw);
    padding: max(4px, 1.2cqw);
    border: 2px solid #343024;
    background: #17160feF;
    color: #bead70;
    font: 400 clamp(11px, 3.2cqw, 18px)/1.2 "Scavland", "Arial Narrow", sans-serif;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
}
.attachment-card:hover { background: #201e15; border-color: #76603a; }
.attachment-card[aria-pressed="true"] { border-color: #e88900; background: #19170f; }
.attachment-card:focus-visible { outline: 2px solid #f7bd62; outline-offset: -4px; }
.attachment-icon { grid-column: 1; grid-row: 1 / 3; display: grid; place-items: center; min-width: 0; }
.attachment-icon img { display: block; width: 100%; max-height: 13cqw; object-fit: contain; image-rendering: pixelated; }
.attachment-name { grid-column: 2; grid-row: 1; min-width: 0; overflow-wrap: anywhere; }
.attachment-price { grid-column: 3; grid-row: 1; color: #d1cbb4; white-space: nowrap; }
.attachment-rarity { grid-column: 4; grid-row: 1 / 3; align-self: stretch; min-height: 28px; }
/* Shared item rarity palette for cards, menu squares and item details. */
:is(.attachment-rarity, .rarity-indicator) { background: #b9b9b1; }
:is(.attachment-rarity, .rarity-indicator)[data-rarity="Uncommon"] { background: #79d300; }
:is(.attachment-rarity, .rarity-indicator)[data-rarity="Rare"] { background: #4399f5; }
:is(.attachment-rarity, .rarity-indicator)[data-rarity="Very Rare"] { background: #fff000; }
:is(.attachment-rarity, .rarity-indicator)[data-rarity="Ultra Rare"] { background: #d45bff; }
.rarity-indicator {
    display: inline-block;
    position: relative;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    box-sizing: border-box;
    border: 1px solid #15140f;
    box-shadow: 0 0 0 1px #bead7066;
}
.attachment-stats { grid-column: 2 / 4; grid-row: 2; display: flex; flex-wrap: wrap; gap: 3px; }
.attachment-stat { padding: 3px 4px; border: 1px solid #494728; background: #1d2012; color: #cfc8a9; font-size: clamp(10px, 2.6cqw, 15px); white-space: nowrap; }
.attachment-stat-value { color: #79d300; }
.attachment-stat[data-direction="down"] .attachment-stat-value { color: #ec6650; }
.attachment-stat[data-direction="none"] .attachment-stat-value { color: #cfc8a9; }
.attachment-stat-value > [aria-hidden] { margin-right: 2px; font: 0.65em sans-serif; }
.armor-card .attachment-name { margin: 0; font: inherit; }
.armor-card .attachment-icon { grid-row: 1; }
.armor-card .attachment-stats { grid-column: 1 / -2; }
.armor-card .attachment-stat { white-space: normal; }
@container (max-width: 240px) {
    .attachment-card { grid-template-columns: 22% minmax(0, 1fr) 5px; }
    .attachment-name { grid-column: 2; }
    .attachment-price { grid-column: 2; grid-row: 2; justify-self: end; }
    .attachment-rarity { grid-column: 3; grid-row: 1 / 4; }
    .attachment-stats { grid-column: 1 / 3; grid-row: 3; }
    .attachment-icon img { max-height: 32px; }
}

/* Keep ammunition above the matching lower panels, without moving the weapon. */
.ammo-buttons {
    position: absolute;
    z-index: 1;
    right: 1.8%;
    bottom: max(calc(29% + 0.7cqw), calc(2.5% + var(--weapon-repair-height, 24%) + 2cqw));
    width: 36.1%;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
}
.ammo-buttons, .ammo-details {
    box-sizing: border-box;
    height: clamp(42px, 11.2cqw, 124px);
    border: 1px solid #bead7066;
    background: #15140f88;
}
.ammo-buttons[hidden], .ammo-details[hidden],
[data-view]:not([data-view="weapons"]) .ammo-buttons,
[data-view]:not([data-view="weapons"]) .ammo-details { display: none; }
.ammo-button {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: center;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #bead70;
    cursor: pointer;
}
.ammo-button + .ammo-button { border-left: 1px solid #bead7066; }
.ammo-button-icons {
    display: grid;
    place-items: center;
    height: 100%;
    width: auto;
    aspect-ratio: 4 / 5;
    max-width: min(78%, 6.6cqw, 72px);
    min-height: 0;
}
.ammo-icon {
    grid-area: 1 / 1;
    display: block;
    width: 125%;
    height: auto;
    /* Native artwork includes the gold outline; apply its 3% scale only once. */
    transform: rotate(-90deg) scale(var(--ammo-scale, 1));
    transform-origin: center;
    image-rendering: pixelated;
    pointer-events: none;
}
.ammo-button[aria-pressed="true"] { --ammo-scale: 1.03; }
.ammo-button[aria-pressed="true"] .ammo-label { color: #d8b24a; }
.ammo-button:focus-visible { outline: 2px solid #d8b24a; outline-offset: 2px; }
.ammo-button[data-caliber="Special"] .ammo-icon { width: 100%; transform: scale(var(--ammo-scale, 1)); }
.ammo-label {
    box-sizing: border-box;
    width: 100%;
    padding: max(2px, 0.4cqw) 0;
    border-top: 1px solid #bead7040;
    text-align: center;
    font: 400 max(9px, 1.2cqw)/1 "Scavland", "Arial Narrow", sans-serif;
}
.ammo-details {
    position: absolute;
    z-index: 1;
    left: 1.8%;
    bottom: calc(1% + var(--weapon-stat-height, 27.7%) + 0.9cqw);
    width: 26.5%;
    color: #bead70;
    font: 400 var(--weapon-info-font-size, max(10px, 1.63cqw))/1.2 "Scavland", "Arial Narrow", sans-serif;
}
.ammo-properties { margin: 0; display: grid; height: 100%; grid-template-rows: repeat(4, minmax(0, 1fr)); }
.ammo-property { display: flex; align-items: center; justify-content: space-between; gap: 1cqw; padding: 0 0.6cqw; }
.ammo-property + .ammo-property { border-top: 1px solid #bead7040; }
.ammo-property dd { margin: 0; color: #d1cbb4; white-space: nowrap; text-align: right; }
.ammo-property:is([data-stat="damage"], [data-stat="penetration"], [data-stat="speed"]) dd { color: var(--stat-good); }
.ammo-property[data-negative="true"] dd { color: var(--stat-bad); }
@container (max-width: 600px) {
    .ammo-buttons { height: 42px; bottom: calc(2.5% + var(--weapon-repair-height, 38%) + 2px); }
    .ammo-details { width: 58.9%; height: 42px; }
    .ammo-properties { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
    .ammo-property:nth-child(2) { border-top: 0; }
    .ammo-property:nth-child(even) { border-left: 1px solid #bead7040; }
    .ammo-label { padding: 2px 0; }
}

@media (max-width: 650px) and (max-height: 600px) and (orientation: landscape) {
    .ammo-buttons, .ammo-details { height: 36px; }
}

/* Price follows the title; the information table stays anchored at the right. */
.weapon-header {
    position: absolute;
    top: 11.5%;
    left: 1.8%;
    width: 38%;
    min-height: 13.2%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .4cqw;
    color: var(--stat-base);
    font: 700 clamp(10px, 3.2cqw, 34px)/1.1 "Scavland", sans-serif;
}
.weapon-name { margin: 0; min-width: 0; font: inherit; overflow-wrap: anywhere; }
.weapon-info {
    position: absolute;
    top: 11.5%;
    right: 1.8%;
    width: 56%;
    height: 13.2%;
    box-sizing: border-box;
    border: 1px solid #bead7066;
    background: #15140f88;
    color: var(--stat-base);
    font: 400 clamp(10px, 1.75cqw, 18px)/1.1 "Scavland", "Arial Narrow", sans-serif;
}
.weapon-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    height: 100%;
    margin: 0;
}
.weapon-info-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .4cqw;
    min-width: 0;
    min-height: 0;
    padding: .35cqw;
}
.weapon-info-cell:not(:nth-child(4n + 1)) { border-left: 1px solid #bead7040; }
.weapon-info-cell:nth-child(n + 5) { border-top: 1px solid #bead7040; }
.weapon-info-cell dt { min-width: 0; white-space: nowrap; text-align: left; }
.weapon-info-cell dd { min-width: 0; margin: 0; color: #d1cbb4; white-space: nowrap; text-align: right; font-size: 1.08em; }
.weapon-info-cell[data-numeric="true"] dd { color: var(--stat-good); }
.weapon-price {
    margin: 0;
    color: var(--stat-base);
    font: inherit;
    white-space: nowrap;
    text-align: left;
}
.weapon-rarity {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 2px 0 0;
    color: #d1cbb4;
    font: 400 clamp(11px, 1.9cqw, 18px)/1.2 "Scavland", sans-serif;
}
.weapon-rarity .rarity-indicator { width: clamp(12px, 1.9cqw, 16px); height: clamp(12px, 1.9cqw, 16px); }
.weapon-header[hidden], .weapon-price[hidden], .weapon-rarity[hidden],
[data-view]:not([data-view="weapons"]) .weapon-header,
[data-view]:not([data-view="weapons"]) .weapon-info,
[data-view]:not([data-view="weapons"]) .weapon-price { display: none; }
@media (max-width: 1000px) and (max-height: 600px) and (orientation: landscape) {
    .weapon-header { top: max(11.5%, 36px); }
    /* Use the free strip below navigation to keep all eight fields visible. */
    .weapon-info {
        top: -40px;
        left: 2%;
        right: auto;
        width: 96%;
        height: 32px;
        font-size: clamp(9px, 2.6cqw, 11px);
        line-height: 1;
    }
    .weapon-info-cell { padding: 0 3px; gap: 3px; }
    .weapon-info-cell dd { font-size: 1em; }
}

/* Keep the supplied equipment frame and the shared window geometry intact. */
.armor-details {
    position: absolute;
    inset: 72% 42% 3% 4%;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #8c6c38 #25231c;
    color: #cfc8a9;
    font: 400 clamp(10px, 1.8cqw, 20px)/1.35 "Scavland", sans-serif;
}
.armor-item-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.3em 0.7em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #bead7040;
    font-size: clamp(12px, 2.5cqw, 26px);
    line-height: 1.15;
}
.armor-item-header h2, .armor-price { margin: 0; font: inherit; }
.armor-item-header h2 { color: #e88900; overflow-wrap: anywhere; }
.armor-price { margin-left: auto; white-space: nowrap; }
.armor-description { margin: 0.5em 0; white-space: pre-line; font-style: italic; }
.armor-repair {
    margin: 0 0 0.6em;
    color: var(--stat-base);
    font: inherit;
    font-size: 0.8em;
    text-transform: uppercase;
}
.armor-statistics {
    position: absolute;
    inset: 5% 3.5% 2.5% 62%;
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    color: var(--stat-base);
    font: 400 max(9px, 2cqw)/1.1 "Scavland", sans-serif;
    -webkit-user-select: none;
    user-select: none;
}
.armor-stat-section, .armor-repair-section { min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: #8c6c38 #25231c; }
.armor-stat-section + .armor-stat-section, .armor-repair-section { border-top: 1px solid #bead7059; padding-top: 1.5cqw; }
.armor-repair-section { margin-inline: -0.8cqw; }
.armor-repair-section > :is(.armor-repair, .armor-repair-message) { margin-inline: 0.8cqw; }
.armor-repair-message { margin: 0; font-size: 0.8em; color: #d1cbb4; }
.armor-stat-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.3em 0.5em; margin-bottom: 1.5cqw; }
.armor-stat-heading h3 { margin: 0; color: #d1cbb4; font: inherit; text-transform: uppercase; }
.armor-stat-context { font-size: 0.85em; white-space: nowrap; }
.armor-stat-grid { margin: 0; }
.armor-statistics .stat-row { grid-template-columns: 42% 30% 24%; gap: 2%; min-height: max(15px, 4.6cqw); }
.armor-statistics .stat-row dt { white-space: normal; }
.armor-statistics .stat-bar {
    height: max(9px, 2.54cqw);
    background: linear-gradient(to right,
        var(--stat-good) 0 var(--overflow, 0%),
        var(--stat-base) var(--overflow, 0%) var(--base, 0%),
        var(--stat-empty) var(--base, 0%) 100%);
}
.armor-statistics .stat-value { text-align: right; white-space: nowrap; }
.armor-durability-control { position: relative; height: max(18px, 3cqw); }
.armor-durability-control .stat-bar { position: absolute; inset: 50% 0 auto; transform: translateY(-50%); pointer-events: none; }
#armor-durability {
    position: relative;
    z-index: 1;
    display: block;
    appearance: none;
    box-sizing: border-box;
    width: 100%;
    height: max(18px, 3cqw);
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: ew-resize;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}
#armor-durability::-webkit-slider-runnable-track { height: max(18px, 3cqw); background: transparent; }
#armor-durability::-moz-range-track { height: max(18px, 3cqw); background: transparent; }
#armor-durability::-webkit-slider-thumb {
    appearance: none;
    width: max(6px, 0.8cqw);
    height: max(18px, 3cqw);
    border: 1px solid #f7bd62;
    border-radius: 0;
    background: #e88900;
    box-shadow: 0 0 2px #000;
}
#armor-durability::-moz-range-thumb {
    width: max(6px, 0.8cqw);
    height: max(18px, 3cqw);
    border: 1px solid #f7bd62;
    border-radius: 0;
    background: #e88900;
    box-shadow: 0 0 2px #000;
}
#armor-durability:focus-visible { outline: 2px solid #f7bd62; outline-offset: 3px; }
#armor-durability:disabled { visibility: hidden; cursor: default; }
.armor-details[hidden], .armor-statistics[hidden],
[data-view]:not([data-view="armor"]) .armor-details,
[data-view]:not([data-view="armor"]) .armor-statistics { display: none; }
@container (max-width: 450px) {
    .armor-statistics .stat-row { grid-template-columns: 43% 28% 25%; }
    .armor-stat-heading { gap: 2px; }
}
@container (max-width: 340px) {
    .armor-statistics .stat-row { grid-template-columns: minmax(0, 1fr) auto; gap: 3px; padding-bottom: 6px; }
    .armor-statistics .stat-bar { grid-column: 1 / -1; grid-row: 2; }
    .armor-statistics .stat-value { grid-column: 2; grid-row: 1; }
    .armor-statistics .armor-durability-control { grid-column: 1 / -1; grid-row: 2; }
}

/* Both equipment views use the same rows, artwork sizing and repair colors. */
.repair-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid #bead7066;
    background: #15140f88;
}
.repair-option {
    min-width: 0;
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    text-align: center;
    font-size: max(10px, 0.8em);
    line-height: 1.15;
}
.repair-option + .repair-option { border-left: 1px solid #bead7066; }
.repair-option > span { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 0.2em 0.3em; }
.repair-option > span + span { border-top: 1px solid #bead7040; }
.repair-option img { width: 7cqw; height: 7cqw; min-width: 32px; min-height: 32px; max-width: 100%; object-fit: contain; image-rendering: pixelated; }
.repair-name { min-height: 2.3em; color: #d1cbb4; overflow-wrap: anywhere; background: #bead700d; }
.repair-min { white-space: nowrap; }
.repair-gain { color: var(--stat-good); font-size: 1.2em; white-space: nowrap; background: #0c160f66; }
.repair-options[hidden], .repair-option[hidden] { display: none; }

/* Share the bottom information area with the compact weapon statistics. */
.weapon-repair-section {
    position: absolute;
    z-index: 1;
    inset: auto 1.8% 2.5% auto;
    /* Match armor's 34.5% statistics column plus its two 0.8cqw side margins. */
    width: 36.1%;
    max-height: 31%;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #8c6c38 #25231c;
    color: var(--stat-base);
    font: 400 max(9px, 2cqw)/1.1 "Scavland", sans-serif;
}
.weapon-repair-heading { margin: 0 0 0.6em; font: inherit; font-size: 0.8em; text-transform: uppercase; }
.weapon-repair-message { margin: 0; font-size: 0.8em; color: #d1cbb4; }
.weapon-repair-section[hidden], [data-view]:not([data-view="weapons"]) .weapon-repair-section { display: none; }
.weapon-repair-section .repair-option { font-size: max(9px, 0.75em); }
.weapon-repair-section .repair-option img { width: 6cqw; height: 6cqw; min-width: 28px; min-height: 28px; }
@container (max-width: 600px) {
    .weapon-repair-section .repair-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .weapon-repair-section { max-height: 38%; }
}
@container (max-width: 450px) {
    .repair-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.rotate-notice { display: none; }

/* On phones, portrait mode asks the visitor to rotate the screen. */
@media (max-width: 900px) and (orientation: portrait) {
    body { overflow: hidden; }
    .main-menu, .content-panel, .site-logo { display: none; }
    .rotate-notice {
        position: fixed;
        inset: 0;
        z-index: 10;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        padding: 32px;
        background: #0a0b08e8;
        color: #d4be78;
        text-align: center;
    }
    .rotate-notice h2 { margin: 0; font: 400 34px/1.1 "Scavland", sans-serif; text-transform: uppercase; }
    .rotate-notice p { max-width: 28ch; margin: 0; font: 400 20px/1.35 "Scavland", sans-serif; }
    .rotate-phone-icon { position: relative; width: 72px; height: 42px; margin: 16px 0; border: 3px solid currentColor; border-radius: 8px; }
    .rotate-phone-icon::before { content: ""; position: absolute; right: 5px; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
    .rotate-phone-icon::after { content: "\21BB"; position: absolute; right: -24px; top: -32px; font: 36px/1 sans-serif; }
}

/* Landscape: a shared full-width navigation row above both windows. */
@media (max-width: 1000px) and (max-height: 600px) and (orientation: landscape) {
    :root {
        --panel-gap: 10px;
        --panel-max-width: calc(100vw - max(12px, env(safe-area-inset-left)) - max(12px, env(safe-area-inset-right)));
        --panel-top: max(86px, calc(env(safe-area-inset-top) + 80px));
        --panel-height: min(calc(100svh - var(--panel-top) - max(12px, env(safe-area-inset-bottom))), calc((var(--panel-max-width) - var(--panel-gap)) / 1.908));
        --panel-width: calc(var(--panel-height) * 1.908 + var(--panel-gap));
        --panel-right: calc((100vw - var(--panel-width)) / 2);
    }
    .main-menu {
        position: fixed;
        left: 50%;
        right: auto;
        bottom: auto;
        top: max(6px, env(safe-area-inset-top));
        width: var(--panel-width);
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
        padding: 0;
        transform: translateX(-50%);
    }
    .main-menu :is(button, a) { display: flex; align-items: center; min-height: 32px; font-size: clamp(16px, 5.5svh, 22px); }
    .content-panel { left: auto; right: var(--panel-right); top: var(--panel-top); transform: none; }
    .weapon-menu { gap: 6px; }
    .weapon-category > button { height: 32px; min-height: 32px; aspect-ratio: auto; font-size: clamp(9px, 1.7vw, 12px); padding-inline: 3px; }
    .weapon-options { max-height: min(50svh, 360px); }
    .weapon-options a { min-height: 44px; }
    .attribute-options button { min-height: 40px; }
    .weapon-stat-columns { grid-template-columns: 1fr 1fr; gap: 4%; }
    .weapon-stats { max-height: 38%; overflow-y: auto; font-size: 11px; scrollbar-width: thin; }
    .stat-row { min-height: 18px; grid-template-columns: 44% 30% 1fr; }
    .stat-bar { height: 12px; }
    .weapon-preview { top: 35%; height: 42%; }
}

@media (max-width: 650px) and (max-height: 600px) and (orientation: landscape) {
    .weapon-menu { gap: 3px; }
    .weapon-category > button { font-size: 9px; padding-inline: 2px; }
    .weapon-stats { font-size: 10px; }
    .weapon-stats .stat-row { grid-template-columns: 46% 28% 1fr; }
}

@media (max-width: 1000px) and (max-height: 600px) and (orientation: landscape) {
    .site-logo { top: 6px; left: 8px; width: clamp(48px, calc(var(--panel-right) - 16px), 110px); }
}

.content-panel[data-view="map"] { --panel-width: calc(var(--panel-height) * 1.908 + var(--panel-gap)); display: block; }
.content-panel[data-view="map"] > .window, .content-panel[data-view="map"][hidden], .map-content[hidden] { display: none; }
.map-content { height: 100%; min-width: 0; overflow: hidden; background: #25271f; border: 1px solid #8c6c38; border-radius: var(--workspace-radius); box-sizing: border-box; }
.map-content #scavland-map-preview {
    --map-paper: #b6a896; --map-terrain: #8b7f70; --map-ink: #333333; --map-accent: #254861;
    display: grid; grid-template-columns: minmax(145px,1.45fr) minmax(0,6.25fr) minmax(180px,2.3fr);
    height: 100%; padding: 10px; gap: 6px; box-sizing: border-box;
    color: #e3d7bb; font: 400 16px/1.15 "Scavland", "Arial Narrow", sans-serif;
}
#scavland-map-preview .map-sidebar { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; overflow: hidden; padding-right: 0; }
#scavland-map-preview .map-heading { display: grid; gap: 4px; }
#scavland-map-preview h2 { margin: 0; font: 400 22px/1.1 "Scavland", sans-serif; }
#scavland-map-preview h3 { margin: 0; font: 400 19px/1.15 "Scavland", sans-serif; }
#scavland-map-preview p { margin: 0; }
#scavland-map-preview .text-small { font-size: 13px; line-height: 1.3; }
#scavland-map-preview .text-muted { color: #b8ab95; }
#scavland-map-preview .tabular-nums { font-variant-numeric: tabular-nums; }
#scavland-map-preview .btn {
    --map-button-art: url("/4_Buttons/tab-pressed.90a9e5c59d1b.png");
    display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 4px 10px; border: 0;
    background: var(--map-button-art) center/100% 100% no-repeat;
    color: #f1d9a0; font: 400 16px/1 "Scavland", sans-serif; cursor: pointer;
}
/* Muted when inactive, orange on hover, brightest orange when selected. */
#scavland-map-preview .btn:is(:hover,:focus-visible) { --map-button-art:url("/4_Buttons/tab-normal.fc5496c46522.png"); color:#20190c; }
#scavland-map-preview .btn:is(:active,[aria-pressed="true"],[aria-selected="true"],[aria-expanded="true"]) { --map-button-art:url("/4_Buttons/tab-hover.689acc9e7716.png"); color:#20190c; }
#scavland-map-preview :is(button,select):focus-visible { outline: 2px solid #f7bd62; outline-offset: 3px; }
#scavland-map-preview .layer-options { display: grid; gap: 5px; flex-shrink: 0; }
#scavland-map-preview .map-zoom { position: absolute; top: 10px; left: 10px; z-index: 10; display: grid; justify-items: stretch; gap: 4px; padding: 4px; border: 1px solid #8c6c38; border-radius: 3px; background: #25271fed; }
#scavland-map-preview .map-zoom .btn { width: 34px; min-height: 32px; padding: 0; font-size: 22px; }
#scavland-map-preview .map-fullscreen { position: absolute; top: 10px; right: 10px; z-index: 10; width: 38px; min-height: 34px; padding: 6px; }
#scavland-map-preview :is(.map-fullscreen,.map-detail-link) svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
#scavland-map-preview .map-fullscreen .fullscreen-exit,
#scavland-map-preview .map-fullscreen[aria-pressed="true"] .fullscreen-enter { display: none; }
#scavland-map-preview .map-fullscreen[aria-pressed="true"] .fullscreen-exit { display: block; }
#scavland-map-preview .map-fullscreen-status { position: absolute; top: 50px; right: 10px; z-index: 10; max-width: min(250px,calc(100% - 20px)); box-sizing: border-box; padding: 6px 8px; background: #25271f; color: #e3d7bb; font-size: 13px; }
#scavland-map-preview .zoom-value { text-align: center; font-size: 13px; }
#scavland-map-preview .form-check { display: inline-flex; align-items: center; gap: 5px; }
#scavland-map-preview .form-check-input { margin: 0; accent-color: #d4be78; }
#scavland-map-preview .map-layers { display: grid; align-content: start; gap: 10px; flex: 1 1 0; min-height: 70px; overflow-y: auto; padding-right: 3px; scrollbar-width: thin; scrollbar-color: #8b7f70 #25271f; }
#scavland-map-preview .map-layers h3 { margin-bottom: 5px; font-size: 17px; }
#scavland-map-preview .layer-buttons { display: grid; grid-template-columns: minmax(0,1fr); gap: 5px; }
#scavland-map-preview .map-layers .btn { position: relative; isolation: isolate; justify-content: flex-start; gap: 4px; padding: 7px 12px 9px 5px; height: 44px; min-height: 44px; box-sizing:border-box; font-size: 13px; line-height:1; text-align: left; background: none; opacity: 1; }
#scavland-map-preview .map-layers .btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--map-button-art) center/100% 100% no-repeat; pointer-events: none; }
#scavland-map-preview .layer-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#scavland-map-preview .layer-count { flex: 0 0 auto; padding: 2px 3px; border-radius: 2px; background: #302313; color: #fff0cd; font-size: 13px; line-height: 1; white-space: nowrap; text-shadow: none; }
#scavland-map-preview .layer-help { padding-top: 5px; font-size: 12px; }
#scavland-map-preview .map-layers, #scavland-map-preview .map-layers > *, #scavland-map-preview .map-layers .btn { min-width: 0; }
#scavland-map-preview .layer-icon { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: #25271f; border: 1px solid var(--category); overflow: hidden; }
#scavland-map-preview .layer-icon :is(img,svg) { width: 17px; height: 17px; }
#scavland-map-preview .map-stage { position: relative; height: 100%; min-width: 0; min-height: 0; overflow: clip; background: var(--map-paper); touch-action: none; cursor: grab; }
#scavland-map-preview .map-stage, #scavland-map-preview .map-stage * { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
#scavland-map-preview .map-stage.is-dragging { cursor: grabbing; }
#scavland-map-preview .map-terrain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#scavland-map-preview .map-drawing { position: relative; display: block; width: 100%; height: 100%; }
#scavland-map-preview .world-zones { pointer-events: none; }
#scavland-map-preview .map-route { pointer-events: none; }
#scavland-map-preview .map-route-fares { position:absolute; inset:0; pointer-events:none; overflow:hidden; z-index:7; }
#scavland-map-preview .map-route-fare { position:absolute; transform:translateX(-50%); padding:3px 7px; border:1px solid #cb6f0c; border-radius:3px; background:#25271feb; color:var(--stat-good, #6dd13c); font:400 15px/1 "Scavland",sans-serif; white-space:nowrap; }
#scavland-map-preview .map-route path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
#scavland-map-preview .map-route-outline { stroke: #24251d; stroke-width: 7; opacity: .9; }
#scavland-map-preview .map-route-line { stroke: #f7bd62; stroke-width: 3; }
#scavland-map-preview .map-route-endpoint { fill: none; stroke: #f7bd62; stroke-width: 3; }
#scavland-map-preview .zone { stroke: var(--category); stroke-opacity: .8; stroke-width: 1.25; }
#scavland-map-preview .zone.is-selected { stroke-width: 3; }
#scavland-map-preview .map-selection { pointer-events: none; }
#scavland-map-preview .selected-ring { fill: none; stroke-width: 2; }
#scavland-map-preview .spawn-candidate { fill: var(--map-accent); stroke: var(--map-paper); stroke-width: .6; }
#scavland-map-preview .map-markers { position: absolute; inset: 0; pointer-events: none; }
#scavland-map-preview .map-mark {
    position: absolute; transform: translate(-50%,-50%) scale(var(--marker-scale,1)); pointer-events: auto; cursor: pointer;
    display: flex; align-items: center; justify-content: center; box-sizing: border-box;
    width: var(--marker-size); height: var(--marker-size); padding: 6px;
    border: 2px solid var(--category); border-radius: 50%; background: #20231eed;
    box-shadow: 0 1px 5px #0009, 0 0 6px color-mix(in srgb,var(--category) 40%,transparent);
    color: var(--category); font: inherit; z-index: 1;
}
#scavland-map-preview .map-mark:hover, #scavland-map-preview .map-mark[aria-pressed="true"] { background: #3a3d32; box-shadow: 0 0 0 2px var(--category), 0 2px 6px #0009; }
#scavland-map-preview .map-mark.is-landmark { --marker-scale: 1; z-index: 5; padding: 3px; border-width: 1px; }
#scavland-map-preview .map-mark[data-category="transport"] { z-index: 4; }
#scavland-map-preview .map-mark:focus-visible { z-index: 6; }
#scavland-map-preview .marker-content { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
#scavland-map-preview .map-symbol, #scavland-map-preview .map-portrait { display: block; object-fit: contain; }
#scavland-map-preview .map-mark :is(img,svg) { width: 100%; height: 100%; pointer-events: none; }
#scavland-map-preview .map-portrait { border-radius: 50%; filter: brightness(1.35) saturate(1.2); }
#scavland-map-preview .place-name {
    position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); pointer-events: none;
    width: max-content; max-width: 260px; text-align: center; color: #363330; font: 400 23.8px/1.05 "Scavland", "Arial Narrow", sans-serif;
    text-shadow: -1px -1px 0 #d8cbbb, 1px -1px 0 #d8cbbb, -1px 1px 0 #d8cbbb, 1px 1px 0 #d8cbbb, 0 2px 3px #d8cbbb;
}
#scavland-map-preview .loot-dot { display: inline-block; width: 12px; height: 12px; flex-shrink: 0; border-radius: 50%; background: var(--category); box-shadow: 0 0 3px #172019; }
#scavland-map-preview .map-mark.is-loot { padding: 0; border: 0; background: transparent; box-shadow: none; z-index: 0; }
#scavland-map-preview .map-mark.is-loot:is([data-category^="bunkers_"],[data-category="military_crates"]) { z-index: 6; }
#scavland-map-preview .map-mark:is([data-category^="bunkers_"],[data-category="military_crates"]) .loot-dot::after { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 30px; height: 30px; box-sizing: border-box; border: 2px solid #39ff14; border-radius: 50%; pointer-events: none; }
#scavland-map-preview .map-mark[data-category="military_crates"] .loot-dot::after { border-color: #ff3939; }
#scavland-map-preview .bunker-number { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); color: #fff; font: 400 14px/1 "Scavland",sans-serif; text-shadow: -1px -1px 1px #172019,1px 1px 1px #172019,0 0 3px #172019; pointer-events: none; }
#scavland-map-preview .map-mark.is-loot:hover .loot-dot { outline: 2px solid #fff; }
#scavland-map-preview .cluster-count { position: absolute; left: calc(100% - 2px); top: -5px; min-width: 14px; padding: 1px 3px; border-radius: 9px; background: #20231ef2; color: var(--category); font-size: 12px; line-height: 14px; text-align: center; }
#scavland-map-preview .quest-symbol { position: absolute; right: -7px; top: -8px; padding: 2px 4px; border-radius: 50%; background: #20231e; color: var(--category); }
#scavland-map-preview .map-info { display: flex; flex-direction: column; min-width: 0; min-height: 0; gap: 14px; border-left: 1px solid #8c6c3880; padding-left: 12px; }
#scavland-map-preview .selected-location { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; flex: 1; min-height: 0; overflow-y: auto; padding-right: 3px; scrollbar-width: thin; scrollbar-color: #8b7f70 #25271f; }
#scavland-map-preview .selection-picture { flex-shrink: 0; padding: 5px; border: 1px solid var(--category); border-radius: 50%; background: #20231e; }
#scavland-map-preview .selection-picture:empty { display: none; }
#scavland-map-preview .selection-portrait { display:flex; flex-direction:column; align-items:center; gap:5px; }
#scavland-map-preview .selection-portrait:has(.selection-picture:empty) { display:none; }
#scavland-map-preview .selection-picture { display:inline-flex; }
#scavland-map-preview .selection-population { display:flex; flex-direction:column; align-items:center; padding:3px; border:1px solid #6f6749; background:#20251b; text-align:center; }
#scavland-map-preview .selection-population strong { color:#a3cf69; font-size:17px; font-weight:400; line-height:1; }
#scavland-map-preview .selection-population small { color:#c8bfa5; font-size:10px; line-height:1.1; }
#scavland-map-preview .selection-picture :is(img,svg) { width: 56px; height: 56px; }
#scavland-map-preview .selection-copy { min-width: 0; width: 100%; }
#scavland-map-preview .selection-detail { margin-top: 6px; color: #c9bda7; font-size: 14px; line-height: 1.35; }
#scavland-map-preview .selection-choice { width: 100%; max-width: 100%; margin-top: 6px; padding: 4px; border: 1px solid #8b7f70; color: #e3d7bb; background: #25271f; font: 400 14px/1.2 "Scavland", sans-serif; }
#scavland-map-preview div.selection-choice { box-sizing:border-box; display:grid; gap:4px; background-image:none; }
#scavland-map-preview .map-position-choice { display:flex; align-items:center; gap:8px; width:100%; padding:6px; border:1px solid #6b6549; background:#303626; color:#e3d7bb; font:inherit; text-align:left; cursor:pointer; }
#scavland-map-preview .map-position-choice:is(:hover,[aria-pressed="true"]) { background:#4b4c30; border-color:#cb6f0c; }
#scavland-map-preview .map-position-choice :is(img,svg) { width:32px; height:32px; flex:0 0 32px; object-fit:contain; }
#scavland-map-preview .scale-readout { position: absolute; left: 8px; bottom: 6px; padding: 2px 5px; color: var(--map-ink); background: var(--map-paper); font-size: 11px; pointer-events: none; }
#scavland-map-preview .map-load-status { position: absolute; right: 8px; bottom: 6px; padding: 3px 6px; font-size: 12px; color: var(--map-ink); background: var(--map-paper); }
#scavland-map-preview .selection-extra { width: 100%; min-width: 0; display: grid; gap: 10px; }
#scavland-map-preview .selection-extra:empty { display: none; }
#scavland-map-preview .selection-extra h4 { margin: 4px 0; font: 400 18px/1.2 "Scavland",sans-serif; }
#scavland-map-preview .selection-extra a { color: #e9ce91; text-underline-offset: 3px; }
#scavland-map-preview .selection-extra .map-detail-link { justify-self: start; gap: 6px; min-height: 34px; padding: 5px 10px; color: #20190c; font-size: 14px; text-decoration: none; }
#scavland-map-preview .map-search-label { display: grid; gap: 4px; font-size: 14px; }
#scavland-map-preview .selection-extra :is(select,input) { box-sizing: border-box; width: 100%; min-width: 0; border: 1px solid #8b7f70; background: #20231e; color: #e3d7bb; padding: 6px; font: 400 14px/1.2 "Scavland",sans-serif; }
#scavland-map-preview .selection-extra :is(input,summary,a):focus-visible { outline: 2px solid #f7bd62; outline-offset: 2px; }
#scavland-map-preview .map-info-note { color: #b8ab95; font-size: 12px; line-height: 1.35; }
#scavland-map-preview .map-item-group { border-top: 1px solid #8c6c3870; padding-top: 5px; }
#scavland-map-preview .map-item-group summary { cursor: pointer; font-size: 16px; padding: 4px 0; }
#scavland-map-preview .map-group-count { font-size: 12px; color: #b8ab95; }
#scavland-map-preview .map-info-table { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
#scavland-map-preview .map-info-table :is(td,th) { padding: 6px 2px; border-bottom: 1px solid #8c6c3838; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
#scavland-map-preview .map-info-table :is(td,th):last-child { width: 54px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
#scavland-map-preview .map-fares :is(td,th):nth-child(2) { width:34px; text-align:center; white-space:nowrap; }
#scavland-map-preview .map-fares .map-fare-destination { font-size:18px; line-height:1.15; }
#scavland-map-preview .map-fares tbody td:last-child { color:var(--stat-good, #6dd13c); }
#scavland-map-preview .selection-extra small { display: block; font-size: 11px; line-height: 1.3; margin-top: 3px; color: #b8ab95; }
#scavland-map-preview tr.is-rank-locked { opacity: .55; }
#scavland-map-preview tr:not(.is-rank-locked) .map-rank-lock { display: none; }
#scavland-map-preview .selection-extra [hidden] { display: none !important; }
#scavland-map-preview .selected-location { display: grid; grid-template-columns: 40px minmax(0,1fr); align-content: start; align-items: start; gap: 8px; }
#scavland-map-preview .selection-picture { padding: 3px; }
#scavland-map-preview .selection-picture :is(img,svg) { width: 32px; height: 32px; }
#scavland-map-preview .selection-portrait:has(.selection-picture:empty) + .selection-copy { grid-column: 1 / -1; }
#scavland-map-preview .map-position-choice > span { min-width:0; overflow-wrap:anywhere; }
#scavland-map-preview .map-container-icon { border-radius:0; filter:none; image-rendering:pixelated; }
#scavland-map-preview .map-loot-variant h4 { display:flex; align-items:center; gap:7px; }
#scavland-map-preview .map-loot-variant h4 img { width:36px; height:36px; object-fit:contain; image-rendering:pixelated; }
#scavland-map-preview .selection-extra { grid-column: 1 / -1; }
#scavland-map-preview .map-global-controls { flex-shrink: 0; padding: 0 2px; }
#scavland-map-preview .map-select { position: relative; min-width: 0; max-width: 100%; color: #20190c; }
#scavland-map-preview .map-select > span { display: block; color: #e3d7bb; font-size: 11px; }
#scavland-map-preview .map-select > select { width: 100%; min-height: 34px; border: 0; background: #d47a12; color: #20190c; font: inherit; }
#scavland-map-preview .map-select-trigger { display: grid; grid-template-columns: minmax(0,1fr) 8px; gap: 3px 5px; width: 100%; min-height: 44px; padding: 6px 9px; text-align: center; }
#scavland-map-preview .map-select-title { font-size: 11px; }
#scavland-map-preview .map-select-value { grid-column: 1; font-size: 16px; }
#scavland-map-preview .map-select-trigger .attributes-arrow { grid-column: 2; grid-row: 1 / 3; }
#scavland-map-preview .map-select-menu { position: absolute; top: 100%; left: 0; z-index: 30; width: 100%; box-sizing: border-box; display: grid; gap: 3px; margin: 2px 0 0; padding: 4px; border: 2px solid #8c6c38; background: #25271f; box-shadow: 2px 3px 0 #11170d; }
#scavland-map-preview .map-select-option { width: 100%; min-height: 32px; font-size: 14px; }
#scavland-map-preview .map-global-controls { position: relative; z-index: 30; }
#scavland-map-preview .map-info-heading { position: relative; z-index: 30; }
#scavland-map-preview .map-info-heading { display: flex; flex-wrap:wrap; align-items: center; justify-content: space-between; gap: 8px; flex-shrink: 0; min-height:44px; padding:0 55px 0 0; box-sizing:border-box; }
#scavland-map-preview .map-location-action { position:absolute; top:10px; right:10px; }
#scavland-map-preview .map-location-action .map-detail-link { width:38px; height:34px; min-height:34px; padding:6px; box-sizing:border-box; }
#scavland-map-preview .map-difficulty .map-select-trigger { grid-template-columns:minmax(0,1fr) 40px 14px; grid-template-rows:auto auto; align-items:center; column-gap:5px; row-gap:2px; min-height:58px; padding:7px 13px 10px 8px; }
#scavland-map-preview .map-difficulty .map-select-title { font-size:12px; line-height:1.05; text-align:left; }
#scavland-map-preview .map-difficulty .map-select-title { grid-column:1; grid-row:1; }
#scavland-map-preview .map-difficulty .map-select-title br { display:none; }
#scavland-map-preview .map-difficulty .map-select-value { grid-column:1; grid-row:2; font-size:15px; line-height:1.05; text-align:left; }
#scavland-map-preview .map-difficulty .attributes-arrow { grid-column:3; grid-row:1 / 3; position:static; }
#scavland-map-preview .map-mode-icon { width:40px; height:40px; object-fit:contain; image-rendering:pixelated; flex:0 0 40px; }
#scavland-map-preview .map-select-trigger > .map-mode-icon { grid-column:2; grid-row:1 / 3; }
#scavland-map-preview .map-difficulty .map-select-option { justify-content:flex-start; gap:9px; padding:7px 10px 9px; min-height:58px; }
#scavland-map-preview .map-info-heading h2 { flex: 1; min-width: 0; font-size: clamp(18px,1.4vw,22px); text-align: center; }
#scavland-map-preview .map-reputation { flex: 0 1 104px; min-width: 88px; }
#scavland-map-preview [hidden] { display: none !important; }
#scavland-map-preview:is([data-info-panel="npc"],[data-info-panel="dogface"]) .selection-detail { display: none; }
#scavland-map-preview[data-info-panel="npc"] .selection-copy { align-self: center; }
#scavland-map-preview[data-info-panel="npc"] .map-info { gap: 8px; }
#scavland-map-preview .map-trader-panel { display: grid; gap: 12px; min-width: 0; }
#scavland-map-preview .map-trader-panel .map-item-search { padding: 4px 6px; font-size: 12px; }
#scavland-map-preview .map-trade-section { min-width: 0; container-type: inline-size; }
#scavland-map-preview .map-trade-heading { position: sticky; top: 0; z-index: 5; padding: 4px 0 7px; background: #25271f; }
#scavland-map-preview .map-trade-title { display: flex; align-items: center; justify-content: center; gap: 3px; margin-bottom: 4px; }
#scavland-map-preview .map-trade-heading h4 { color: #f5f1e8; font-size: clamp(20px,10cqw,28px); line-height: 1; margin: 0; }
#scavland-map-preview .map-trade-prices { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: center; font-size: clamp(11px,5.5cqw,14px); font-variant-numeric: tabular-nums; }
#scavland-map-preview .map-trade-item-column { width: 32%; }
#scavland-map-preview .map-trade-prices :is(th,td) { border: 1px solid #79785d65; padding: 3px 1px; font-weight: 400; white-space: nowrap; }
#scavland-map-preview .map-trade-prices th { background: #33362e; }
#scavland-map-preview .map-trade-prices td { background: #1e211a; color: #f3e7ca; }
#scavland-map-preview .map-trade-prices abbr { text-decoration: none; }
#scavland-map-preview .map-mode-bonus { display: inline; color: var(--stat-good, #6dd13c); font-size: clamp(8px,4.5cqw,10px); line-height: 1.2; }
#scavland-map-preview .map-trade-prices .is-current-mode { background: #4d513b; color: #fff0b9; }
#scavland-map-preview .map-trade-prices .map-trade-selected { padding: 4px; white-space: normal; background: #25271f; vertical-align: middle; }
#scavland-map-preview .map-trade-selected-name { display: block; font-size: 12px; line-height: 1.2; font-weight: 400; color: #ecdfc3; overflow-wrap: anywhere; }
#scavland-map-preview .map-trade-selected-icon { display: flex; flex: 0 0 clamp(18px,10cqw,24px); width: clamp(18px,10cqw,24px); height: clamp(18px,10cqw,24px); }
#scavland-map-preview .map-trade-selected-icon:empty { display: none; }
#scavland-map-preview .map-trade-selected-icon :is(img,.map-item-sprite) { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
#scavland-map-preview .map-trade-prices .map-trade-reputation { color: var(--stat-good, #6dd13c); font-size: clamp(8px,4.5cqw,10px); }
#scavland-map-preview :is(.map-trade-grid-wrap,.map-loot-grid-wrap) { container-type: inline-size; }
/* Crop the supplied PNG to its first 10 columns (487px); retain its 14-row vertical repeat. */
#scavland-map-preview :is(.map-trade-grid,.map-loot-grid) { display: grid; grid-template-columns: repeat(10,minmax(0,1fr)); grid-auto-flow: row dense; grid-auto-rows: calc(100cqw * 661 / 487 / 14); align-content: start; background: url("/2_Images/info-grid.0ac04fbf34c3.webp") left top / calc(100% * 538 / 487) auto repeat-y; }
#scavland-map-preview :is(.map-trade-item,.map-loot-item) { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; margin: 0; padding: 2px; border: 1px solid #ab987a20; border-radius: 0; background: #84816a15; color: #e3d7bb; cursor: pointer; }
#scavland-map-preview :is(.map-trade-item,.map-loot-item) :is(img,.map-item-sprite) { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; pointer-events: none; filter: drop-shadow(0 1px 1px #000); }
#scavland-map-preview .map-item-sprite { display: block; overflow: hidden; image-rendering: pixelated; }
#scavland-map-preview :is(.map-trade-item,.map-loot-item):is(:hover,[aria-pressed="true"]) { background: #c7b78435; border-color: #cfbd8c; z-index: 1; }
#scavland-map-preview :is(.map-trade-item,.map-loot-item):focus-visible { outline-offset: -2px; z-index: 2; }
#scavland-map-preview .map-trade-item.is-rank-locked { opacity: .35; }
#scavland-map-preview .map-trade-item .map-rank-lock { position: absolute; bottom: 0; right: 1px; color: #ffe7aa; background: #151610d9; font-size: 10px; line-height: 1; }
#scavland-map-preview .map-trade-item:not(.is-rank-locked) .map-rank-lock { display: none; }
#scavland-map-preview .map-trade-fallback { font: 400 9px/1 "Scavland",sans-serif; overflow-wrap: anywhere; }
/* Forward placement preserves rarity order; dense placement could backfill a common item before a rare one. */
#scavland-map-preview .map-loot-grid { grid-auto-flow: row; }
#scavland-map-preview .map-drop-group > summary { margin: 0 0 6px; padding: 6px 32px 6px 0; color: #e3d7bb; font: inherit; }
#scavland-map-preview .map-drop-group > summary:focus-visible { outline: 2px solid #f7bd62; outline-offset: 2px; }
#scavland-map-preview .map-loot-configured { position: absolute; right: 1px; bottom: 1px; padding: 1px 2px; background: #25271f; color: #edc572; font: 400 11px/1 "Scavland",sans-serif; pointer-events: none; }
#scavland-map-preview .map-loot-selection { display: grid; gap: 3px; margin-bottom: 7px; font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; }
#scavland-map-preview .map-loot-selected-name { color: #ecdfc3; font-weight: 400; }
@media (max-width: 900px) and (orientation: portrait) { .content-panel[data-view="map"] { display: none; } }
@media (max-height: 600px) and (orientation: landscape) {
    .map-content #scavland-map-preview { padding: 6px; gap: 7px; }
    #scavland-map-preview .map-sidebar { gap: 6px; }
    #scavland-map-preview .map-zoom { top: 6px; left: 6px; }
    #scavland-map-preview .map-info { gap: 10px; padding-left: 8px; }
}

/* The same map and information stay mounted, preserving layers, zoom and selection. */
body.map-window-expanded { overflow: hidden; }
.map-window-expanded :is(.site-logo,.main-menu,.home-brand,.rotate-notice) { visibility: hidden; }
.map-window-expanded .content-panel[data-view="map"] { display: block; position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; transform: none; z-index: 100; }
.map-window-expanded .map-content { border: 0; }
.map-content #scavland-map-preview.is-map-fullscreen {
    --fullscreen-layers-width: clamp(112px,14vw,190px);
    position: fixed; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; gap: 0;
    grid-template-columns: minmax(0,1fr) clamp(210px,26vw,390px); grid-template-rows: minmax(0,1fr);
    background: #25271f; overflow: hidden;
}
#scavland-map-preview.is-map-fullscreen .map-stage { grid-column: 1; grid-row: 1; }
#scavland-map-preview.is-map-fullscreen .map-sidebar {
    position: absolute; z-index: 20; top: 10px; bottom: 10px; left: 10px;
    width: var(--fullscreen-layers-width); padding: 0; background: transparent;
    pointer-events: none;
}
#scavland-map-preview.is-map-fullscreen .map-layers { pointer-events: auto; scrollbar-color: #8b7f70 transparent; }
#scavland-map-preview.is-map-fullscreen :is(.map-heading,.map-global-controls,.layer-options,.map-layers h3,.layer-help) { display: none; }
#scavland-map-preview.is-map-fullscreen .map-info { grid-column: 2; grid-row: 1; padding: 0 0 12px 12px; background: #25271f; }
#scavland-map-preview.is-map-fullscreen .map-zoom { left: calc(var(--fullscreen-layers-width) + 20px); }
.map-quest-target { object-fit:contain; image-rendering:pixelated; color:#e0a34d; font-size:30px; text-align:center; }
#scavland-map-preview .map-quest-context { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-shrink:0; padding:8px; border:1px solid #8b703e; background:#303326; }
#scavland-map-preview .map-quest-context > span { color:#e7cea0; font-size:15px; line-height:1.2; min-width:0; }
#scavland-map-preview .map-quest-back { flex-shrink:0; padding:6px 8px; border:1px solid #a26322; background:#8b5623; color:#f5e6c4; font-size:14px; text-decoration:none; border-radius:2px; }
#scavland-map-preview .map-quest-back:hover { background:#ab641f; }
#scavland-map-preview .map-quest-back:focus-visible { outline:2px solid #f7bd62; outline-offset:2px; }
#scavland-map-preview .map-quest-marker-label { position:absolute; z-index:9; transform:translate(-50%,-100%); max-width:190px; box-sizing:border-box; padding:5px 9px; border:1px solid #e2a34b; border-radius:3px; background:#24291af5; color:#fff0cf; text-align:center; font-size:17px; line-height:1.1; box-shadow:0 2px 6px #0009; pointer-events:none; }
#scavland-map-preview .map-quest-marker-label small { display:block; margin-bottom:2px; color:#e2a34b; font-size:12px; }
#scavland-map-preview .map-quest-marker-label::after { content:""; position:absolute; top:100%; left:calc(50% - 6px); border:6px solid transparent; border-top-color:#e2a34b; }
#scavland-map-preview .quest-focus-ring { stroke:#f6ae42; stroke-width:3px; }
#scavland-map-preview.has-quest-context .map-mark[aria-pressed="true"] { z-index:8; outline:2px solid #f6ae42; outline-offset:3px; }
#scavland-map-preview :is(.map-quest-context,.map-quest-marker-label)[hidden] { display:none; }
@media(max-width:900px) { #scavland-map-preview .map-quest-context { gap:5px; padding:5px; flex-wrap:wrap; } #scavland-map-preview .map-quest-context > span { font-size:13px; } #scavland-map-preview .map-quest-back { font-size:13px; padding:4px 7px; } #scavland-map-preview .map-quest-marker-label { font-size:14px; max-width:150px; } }

/* Text stays sharp at every scale and uses the supplied game font. */
.site-logo img { display: block; width: 100%; height: auto; }
.site-versions { display: grid; grid-template-columns: max-content max-content; justify-content: center; width: min(100%,calc(var(--panel-left) - var(--logo-left) - 12px)); gap: 4px .35em; margin-top: 2px; color: #fff; text-align: left; font: 400 clamp(13px,1.5vw,21px)/1 "Scavland", "Arial Narrow", sans-serif; white-space: nowrap; text-shadow: 0 1px 3px #000; }
.site-version, .game-version, .mobile-version { display: contents; }
.site-versions .version-number { font-variant-numeric: tabular-nums; }
.site-last-update { grid-column: 1 / -1; display: grid; gap: 4px; margin-top: 1em; }
.site-last-update time { font-variant-numeric: tabular-nums; }
.site-contact { grid-column: 1 / -1; display: grid; gap: .4em; margin-top: 1.5em; }
.site-contact h2 { margin: 0; font: inherit; }
.site-contact-value { font-size: .75em; line-height: 1.25; color: #d4be78; }
.site-contact-email { font-size: .65em; }
.site-contact a { width: fit-content; pointer-events: auto; text-decoration: none; }
.site-contact a:hover { text-decoration: underline; text-underline-offset: .2em; }
.site-contact a:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
.site-contact-discord { display: grid; gap: .2em; margin-top: .35em; }
.site-contact-label { font-size: .75em; color: #b9b5a8; }
.site-contact-discord .site-contact-value { pointer-events: auto; user-select: text; }
.site-brand {
    margin: 0;
    color: #d4be78;
    font: 400 clamp(12px, 1.4vw, 20px)/1.1 "Scavland", "Arial Narrow", sans-serif;
    white-space: nowrap;
    text-shadow: 0 1px 2px #000, 0 0 5px #000b;
    pointer-events: none;
}
.home-brand {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 11;
}
body:has(.content-panel:not([hidden])) .home-brand { display: none; }
.content-panel { --brand-footer: max(20px, 3.5%); }
.panel-brand {
    position: absolute;
    bottom: 0.6%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    font-size: clamp(11px, 1.1vw, 16px);
}
.panel-brand-right { grid-column: 2 / 3; }
/* Only the right frame reserves a footer for the address. */
.content-panel .guides-right { bottom: max(4%, var(--brand-footer)); }
.attribute-content, .armor-content { bottom: max(5%, var(--brand-footer)); }
.content-panel[data-view="map"] > .panel-brand { display: none; }

/* Anchor to the map viewport so panning and zooming never move the watermark. */
#scavland-map-preview .map-brand {
    position: absolute;
    right: 10px;
    bottom: 7px;
    z-index: 8;
    padding: 3px 6px;
    border-radius: 2px;
    background: #25271fb8;
    color: #e3d7bb;
    opacity: .85;
    font-size: clamp(11px, 1.3vw, 18px);
}
#scavland-map-preview .map-load-status { bottom: 36px; }
#scavland-map-preview .scale-readout { max-width: calc(100% - 195px); }

@media (max-width: 1000px) and (max-height: 600px) and (orientation: landscape) {
    .site-versions { font-size: 10px; gap: 3px .35em; }
    .panel-brand { font-size: 10px; line-height: 1; }
    #scavland-map-preview .map-brand { right: 5px; bottom: 5px; padding: 2px 4px; }
    #scavland-map-preview .scale-readout { max-width: calc(100% - 140px); }
}
@media (max-width: 900px) and (orientation: portrait) {
    body:has(.content-panel:not([hidden])) .home-brand { display: block; }
}

.community-bar {
    position: fixed;
    z-index: 12;
    inset: auto 0 0;
    box-sizing: border-box;
    min-height: 44px;
    padding: 5px max(12px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 2vw, 28px);
    background: #151811ed;
    border-top: 1px solid #8c6c3866;
    color: #e3d7bb;
    font: 400 clamp(13px, 1.25vw, 18px)/1.15 "Scavland", "Arial Narrow", sans-serif;
}
.community-bar nav { display: flex; justify-content: center; gap: 8px; }
.community-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 32px;
    padding: 6px 14px;
    background: url("/4_Buttons/tab-normal.fc5496c46522.png") center / 100% 100% no-repeat;
    color: #20190c;
    text-decoration: none;
    white-space: nowrap;
    image-rendering: pixelated;
}
.community-bar a:hover, .community-bar a:focus-visible { background-image: url("/4_Buttons/tab-hover.689acc9e7716.png"); }
.community-bar a:active { background-image: url("/4_Buttons/tab-pressed.90a9e5c59d1b.png"); }
.community-bar a:focus-visible { outline: 2px solid #f7bd62; outline-offset: 2px; }
.home-brand { bottom: max(56px, calc(env(safe-area-inset-bottom) + 50px)); }
#scavland-map-preview.is-map-fullscreen { grid-template-rows: minmax(0, 1fr) auto; }
#scavland-map-preview.is-map-fullscreen .community-bar { position: static; grid-column: 1 / -1; grid-row: 2; }
#scavland-map-preview.is-map-fullscreen .map-sidebar { bottom: 56px; }
@media (max-width: 1000px) and (max-height: 600px) and (orientation: landscape) {
    :root { --panel-height: min(calc(100svh - var(--panel-top) - max(58px, calc(env(safe-area-inset-bottom) + 52px))), calc((var(--panel-max-width) - var(--panel-gap)) / 1.908)); }
    .community-bar { gap: 10px; font-size: 12px; }
    .community-bar a { padding-inline: 10px; }
}
@media (max-width: 650px) {
    .community-heading { display: none; }
    .community-bar nav { gap: 5px; }
    .community-bar a { padding-inline: 9px; font-size: 12px; }
}
@media (max-width: 500px) {
    .community-bar nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 420px; }
    .home-brand { bottom: max(90px, calc(env(safe-area-inset-bottom) + 84px)); }
    #scavland-map-preview.is-map-fullscreen .map-sidebar { bottom: 90px; }
}
@media (max-width: 500px) and (orientation: landscape) {
    :root { --panel-height: min(calc(100svh - var(--panel-top) - max(92px, calc(env(safe-area-inset-bottom) + 86px))), calc((var(--panel-max-width) - var(--panel-gap)) / 1.908)); }
}

[data-view="guides"] .window { position: relative; }
[data-view="guides"] .window-left > :not(.guides-left), [data-view="guides"] .window-right > :not(.guides-right) { display: none; }
.guides-left, .guides-right { position: absolute; inset: 2.5% 3% 4%; min-width: 0; min-height: 0; color: #e3d7bb; font: 400 clamp(13px,1.2vw,18px)/1.2 "Scavland", "Arial Narrow", sans-serif; }
.content-panel:not([data-view="guides"]) :is(.guides-left,.guides-right), .guides-left [hidden], .guides-right [hidden] { display: none !important; }
/* A shared three-zone mob panel keeps the animation stable between selections. */
.guides-left { display: grid; grid-template-rows: minmax(36px, 10%) minmax(0,1fr); gap: 8px; }
.guides-left:has(.guide-gif-panel:not([hidden])) {
    grid-template-rows: max-content max-content max-content;
    align-content: start;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #8c6c38 #25271f;
    scrollbar-gutter: stable;
}
.guide-title-panel, .guide-gif-panel { box-sizing: border-box; min-height: 0; min-width: 0; border: 1px solid #777563; }
.guide-title-panel { display: flex; align-items: center; justify-content: center; padding: 5px 12px; background: #262822f2; }
.guides-left:has(.guide-gif-panel:not([hidden])) .guide-title-panel { min-height: 40px; background: none; border: 0; padding: 8px 12px; }
#guide-name { margin: 0; color: #d4be78; font: 400 clamp(18px,1.8vw,27px)/1.1 "Scavland", sans-serif; }
.guide-gif-panel { background: #1d211bbf; padding: 12px; margin: 0 4px; height: max(390px,25.5em); display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1.35fr) minmax(0,.65fr); gap: 10px; }
#guide-preview { display: flex; flex-direction: column; height: 100%; min-height: 0; text-align: center; }
#guide-preview:has(.guide-attack-preview) > .guide-animation { flex: 1.2; }
.guide-attack-preview { display: flex; flex-direction: column; flex: 1; min-height: 0; margin: 6px 0 0; padding-top: 5px; border-top: 1px solid #77756366; }
.guide-attack-preview figcaption { flex: none; color: #cdbf8e; font-size: .82em; }
.guide-animation { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; position: relative; isolation: isolate; overflow: hidden; }
.guide-animation img { position: relative; z-index: 1; }
.guide-filter { position: absolute; }
.is-irradiated img { filter: url(#guide-radiation-tint); }
.guide-radiation-fog { position: absolute; width: 80%; height: 75%; pointer-events: none; background: radial-gradient(ellipse, rgba(var(--fog-color),.65), rgba(var(--fog-color),.25) 40%, transparent 70%); mask-image: var(--fog-texture); mask-size: 700% 900%; mask-position: 0 0; animation: guide-fog-drift 6s ease-in-out infinite alternate, guide-fog-sheet 5s steps(6) infinite; }
.fog-back { z-index: 0; }
.fog-front { z-index: 2; width: 65%; height: 40%; bottom: 13%; opacity: .65; animation-delay: -3s; }
@keyframes guide-fog-drift { from { transform: translate(-5%,3%) scale(.9); } to { transform: translate(5%,-3%) scale(1.12); } }
@keyframes guide-fog-sheet { from { mask-position: 0 0; } to { mask-position: 100% 0; } }
#guide-effects { min-width: 0; min-height: 0; overflow-y: auto; padding: 3px 2px 3px 8px; border-left: 1px solid #74705a; scrollbar-width: thin; scrollbar-color: #8c6c38 #25271f; overflow-wrap: anywhere; }
#guide-effects h3 { margin: 0 0 8px; color: #d4be78; font: inherit; }
.guide-effect-list { margin: 0; font-size: .85em; }
.guide-effect-list > div { padding: 5px 0; border-top: 1px solid #74705a55; }
.guide-effect-list dt { color: #d4be78; margin-bottom: 4px; }
.guide-effect-list dd { margin: 0; line-height: 1.4; }
.guide-animation img { display: block; object-fit: contain; max-width: 100%; max-height: 100%; image-rendering: pixelated; }
.guide-animation .guide-still { display: none; }
.guide-stats-panel { min-width: 0; padding: 0; }
.guide-drop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
    grid-auto-rows: 88px;
    align-content: start;
    min-height: 0;
    gap: 4px;
    margin: 0 0 10px;
    padding: 2px 4px 2px 2px;
    list-style: none;
}
#guide-human-details { grid-row: 3; min-width: 0; padding: 4px 10px 12px; }
#guide-human-details h3 { margin: 8px 0; color: #d4be78; font: inherit; font-size: 1.2em; }
.guide-human-note { margin: 6px 0; color: #c7bda9; font-size: .85em; line-height: 1.35; }
.guide-tier-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 10px 0; font-size: .9em; }
.guide-tier-table th, .guide-tier-table td { padding: 7px 5px; text-align: left; vertical-align: top; border-bottom: 1px solid #74705a66; overflow-wrap: anywhere; font-weight: 400; }
.guide-tier-table th { color: #d4be78; }
.guide-tier-table th:first-child { width: 49px; }
.guide-tier-table thead th:nth-child(2) { width: 68px; }
.guide-tier-table tbody tr:nth-child(odd) { background: #25271f80; }
.guide-tier-percent { color: var(--stat-good); font-variant-numeric: tabular-nums; }
.guide-tier-status { display: block; margin-top: 4px; color: #c7bda9; font-size: .82em; line-height: 1.25; }
.guide-tier-rarities { margin: 0 0 5px; line-height: 1.3; }
.guide-tier-weapons summary, .guide-spawn-details summary { cursor: pointer; color: #d4be78; padding: 4px 0; }
.guide-tier-weapons summary:focus-visible, .guide-spawn-details summary:focus-visible { outline: 1px solid #d4be78; }
.guide-tier-weapons ul { list-style: none; padding: 0; margin: 6px 0 0; }
.guide-tier-weapons li { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid #74705a33; padding: 4px 0; }
.guide-tier-weapons li > :last-child { color: #b8ab95; white-space: nowrap; }
.guide-spawn-details { margin: 8px 0 16px; padding: 5px 8px; border: 1px solid #74705a66; font-size: .9em; }
.guide-spawn-details ul { padding-left: 18px; line-height: 1.4; }
.guide-spawn-details li { margin: 6px 0; overflow-wrap: anywhere; }
.guide-drop-search-row { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 3; background: #25271ff5; padding: 6px 0; }
#guide-drop-search { flex: 1; min-width: 0; box-sizing: border-box; padding: 8px; border: 1px solid #8b8d78; background: #25271f; color: #eee4cd; font: inherit; }
#guide-drop-search:focus-visible { outline: 2px solid #d4be78; outline-offset: -2px; }
#guide-drop-count { flex: 0 0 auto; margin: 0; font-size: .85em; color: #c7bda9; }
.guide-drop-group > summary { margin: 10px 0 6px; padding: 6px 32px 6px 0; border-bottom: 1px solid #74705a; color: #d4be78; font: inherit; cursor: pointer; }
.guide-drop-group > summary:focus-visible { outline: 2px solid #f7bd62; outline-offset: 2px; }
.guide-drop-group-count { color: #b8ab95; font-size: .85em; }
.guide-drop-item { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px; border: 1px solid #74705a80; background: #171b15d9; }
.guide-drop-item .guide-drop-icon { width: 100%; height: 34px; flex: 0 0 34px; }
.guide-drop-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 100%; font-size: 10px; line-height: 1.1; text-align: center; overflow-wrap: anywhere; }
.guide-drop-configured { color: #d4be78; font-size: 9px; line-height: 1.1; text-align: center; }
.guide-drop-item:hover, .guide-drop-item:focus-visible { background: #323529; outline: 1px solid #d4be78; outline-offset: -1px; }
.guide-drop-grid:focus-visible { outline: 1px solid #d4be78; outline-offset: -1px; }
.guide-faction { margin: 0 0 4px; color: #c7bda9; font-size: .85em; }
.guide-stat-columns { display: grid; grid-template-columns: minmax(0,1fr); gap: 5px; }
.guide-stat-column { min-width: 0; }
.guide-stat-table { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 0; font-size: .9em; }
.guide-stat-table caption { text-align: left; color: #d4be78; padding: 1px 4px 3px; border-bottom: 1px solid #74705a; }
.guide-stat-table th, .guide-stat-table td { padding: 2px 4px; vertical-align: middle; overflow-wrap: anywhere; font-weight: 400; border-bottom: 1px solid #74705a33; }
.guide-stat-table tr:nth-child(odd) { background: #25271f5c; }
.guide-stat-table th { width: 62%; text-align: left; color: #c7bda9; }
.guide-stat-value { text-align: right; font-variant-numeric: tabular-nums; color: var(--stat-good); }
.guide-stat-note { margin: 2px 0 0; font-size: .7em; color: #b8ab95; }
.guide-note { margin: 6px 0; color: #b8ab95; font-size: .75em; }
.guides-right { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; left: 6%; right: 6%; --guide-heading-height: 12%; }
:is(#guide-mob-options, #guide-crafting-options) { grid-column: 1; grid-row: 1; display: grid; grid-template-rows: var(--guide-heading-height) minmax(0,1fr); min-width: 0; min-height: 0; }
.guide-category-buttons { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 0; padding: 5px 2px 0; scrollbar-width: thin; }
:is(#guide-mob-search, #guide-achievement-search, #guide-crafting-search) { flex: 0 0 auto; box-sizing: border-box; width: 100%; min-width: 0; padding: 7px 5px; border: 1px solid #85816d; background: #24261f; color: #e3d7bb; font: inherit; }
#guide-mob-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #8c6c38 #25271f; scrollbar-width: thin; padding-right: 3px; }
.guide-mob-group h3 { margin: 5px 1px; color: #bead70; font: inherit; font-size: .88em; }
.guide-mob-group ul { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 5px; }
.guide-sections { grid-column: 2; grid-row: 1; display: grid; grid-template-rows: var(--guide-heading-height) minmax(0,1fr); min-width: 0; min-height: 0; }
.guide-mob-group a, .guide-sections :is(a,button) { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; min-height: 35px; padding: 7px 8px; border: 0; background: url("/4_Buttons/tab-normal.fc5496c46522.png") center/100% 100% no-repeat; color: #20190c; font: inherit; text-align: center; text-decoration: none; overflow-wrap: anywhere; cursor: pointer; }
.guide-sections :is(a,button) { min-height: 42px; }
.guide-mob-group a:hover, .guide-sections :is(a,button):hover { background-image: url("/4_Buttons/tab-hover.689acc9e7716.png"); }
.guide-mob-group a[aria-current="true"], .guide-sections [aria-current="true"], .guide-sections [aria-pressed="true"] { background-image: url("/4_Buttons/tab-pressed.90a9e5c59d1b.png"); color: #f1d9a0; }
.guides-right :is(a,button,input):focus-visible { outline: 2px solid #d4be78; outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) { .guide-animation .guide-gif { display: none; } .guide-animation .guide-still { display: block; } .guide-radiation-fog { animation: none; } }
@media (max-width: 1000px) and (max-height: 600px) and (orientation: landscape) {
    .guides-left, .guides-right { font-size: 11px; inset: 2% 3% 4%; }
    .guides-left { grid-template-rows: 26px minmax(0,1fr); gap: 6px; }
    .guides-left:has(.guide-gif-panel:not([hidden])) { grid-template-rows: max-content max-content max-content; }
    .guides-left:has(.guide-gif-panel:not([hidden])) .guide-title-panel { min-height: 30px; padding: 5px 8px; }
    #guide-name { font-size: 16px; }
    .guide-gif-panel { padding: 8px; height: 340px; margin-inline: 3px; }
    .guide-stat-columns { gap: 6px; }
    .guide-stat-table { font-size: 11px; }
    .guide-stat-table th, .guide-stat-table td { padding: 2px 3px; }
    .guides-right { gap: 6px; left: 6%; right: 6%; }
    .guide-sections { font-size: 11px; }
    .guide-category-buttons { gap: 6px; }
    .guide-mob-group a, .guide-sections :is(a,button) { min-height: 36px; padding: 6px 3px; }
    :is(#guide-mob-search, #guide-achievement-search, #guide-crafting-search) { padding: 5px 3px; }
    #guide-mob-list { padding-right: 2px; }
}

#guide-achievement-details { grid-row: 2; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #8c6c38 #25271f; scrollbar-width: thin; border: 1px solid #777563; background: #30322af5; padding: 10px; line-height: 1.4; overflow-wrap: anywhere; container-type: inline-size; }
#guide-achievement-count { margin: 0; color: #c7bda9; font-size: .85em; }
.achievement-columns, .achievement-card { display: grid; grid-template-columns: 64px minmax(0,1fr) minmax(0,2fr) 70px; gap: 14px; align-items: start; }
.achievement-columns { padding: 0 4px 8px; font-size: .8em; color: #c7bda9; }
.achievement-columns a { color: inherit; text-align: right; text-underline-offset: 3px; }
.achievement-card { padding: 14px 4px; border-top: 1px solid #74705a; scroll-margin-top: 10px; cursor: pointer; }
.achievement-heading, .achievement-condition { min-width: 0; }
.achievement-card h3 { color: #d4be78; margin: 0 0 6px; font: inherit; font-size: 1.2em; }
.achievement-card p { margin: 6px 0; }
.achievement-condition > :first-child { margin-top: 0; }
.achievement-select { display: block; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.achievement-reveal { display: block; box-sizing: border-box; width: 100%; min-height: 48px; padding: 8px 10px; border: 1px solid #74705a; background: repeating-linear-gradient(135deg,#24261f,#24261f 6px,#2b2e25 6px,#2b2e25 12px); color: #c7bda9; font: inherit; font-size: .9em; text-align: left; cursor: pointer; }
.achievement-select:focus-visible, .achievement-reveal:focus-visible { outline: 2px solid #d4be78; outline-offset: 3px; }
.achievement-spoiler-text > :first-child { margin-top: 0; }
.achievement-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.achievement-badge { padding: 2px 5px; border: 1px solid #767a60; color: #c9d0ae; font-size: .75em; }
.achievement-warning { color: #f3cc8c; border-color: #ad8448; }
.achievement-note, .achievement-steam-description { font-size: .87em; color: #c7bda9; }
.achievement-steam-description span { color: #d4be78; }
.achievement-families { margin-top: 10px; font-size: .87em; }
.achievement-families summary { cursor: pointer; color: #d4be78; }
.achievement-families ol { margin: 8px 0; padding-left: 24px; }
.achievement-families li { margin: 5px 0; }
.achievement-card[data-active="true"] { background: #d4be780d; }
.achievement-rarity { text-align: right; font-variant-numeric: tabular-nums; }
.achievement-percent { display: block; color: #e3d7bb; font-size: 1.15em; }
.achievement-rare-label { color: #e8b34b; font-size: .8em; }
.achievement-artwork { position: relative; isolation: isolate; width: 64px; height: 64px; margin-top: 2px; }
.achievement-glow, .achievement-glow-mask { position: absolute; inset: -20%; mask: url("/2_Images/achievements/steam-rare-mask.fdceb73b3e83.png") repeat 0 0 / 100%; overflow: hidden; pointer-events: none; }
.achievement-glow-mask { mask-image: url("/2_Images/achievements/steam-rare-mask-rotating.f26d07d9b1d8.png"); animation: achievement-glow-turn 18s linear infinite reverse; }
.achievement-glow-light { position: absolute; inset: -10px; animation: achievement-glow-turn 6s linear infinite; mix-blend-mode: overlay; background: repeating-conic-gradient(rgba(255,217,0,.178) 0%, rgba(255,184,78,0) 6%, rgba(255,217,0,.178) 10%, rgb(255,184,78) 26%, rgba(255,217,0,.178) 35%, rgb(255,184,78) 40%, rgba(255,217,0,.178) 60%, rgb(255,184,78) 82%, rgba(255,217,0,.178) 100%); }
.achievement-card[data-active="true"] .achievement-icon { border-color: #ffcf73; box-shadow: 0 0 2px 1px #ffb84e99, 0 0 16px 1px #ffb84e66; }
.achievement-shine { position: absolute; inset: -3px; z-index: 2; padding: 2px; overflow: hidden; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; pointer-events: none; }
.achievement-shine-light { position: absolute; inset: -50%; background: conic-gradient(transparent 0deg 245deg,#e6a834 275deg,#fff5bf 305deg,#ffc34f 325deg,transparent 360deg); animation: achievement-glow-turn 6s linear infinite; }
.achievement-card:not([data-active="true"]) :is(.achievement-glow,.achievement-shine) { display: none; }
@keyframes achievement-glow-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .achievement-glow-mask, .achievement-glow-light, .achievement-shine-light { animation: none; } }
@container (max-width: 600px) {
    .achievement-columns, .achievement-card { grid-template-columns: 44px minmax(0,1fr) minmax(0,1.8fr) 54px; gap: 9px; }
    .achievement-artwork { width: 44px; height: 44px; }
    .achievement-card h3 { font-size: 1.05em; }
    .achievement-badge { padding: 1px 3px; }
}
@container (max-width: 420px) {
    .achievement-columns, .achievement-card { grid-template-columns: 36px minmax(0,1fr) minmax(0,1.65fr) 46px; gap: 6px; }
    .achievement-artwork { width: 36px; height: 36px; }
}
#guide-achievement-details:focus-visible, .achievement-card:focus-visible, .achievement-families summary:focus-visible { outline: 2px solid #d4be78; outline-offset: -2px; }

/* Original game sprites and Steam icons share one lossless image sheet. */
.guide-icon { display: block; flex: 0 0 36px; width: 36px; height: 36px; overflow: hidden; image-rendering: pixelated; }
.guide-mob-group a { justify-content: flex-start; gap: 7px; text-align: left; min-height: 48px; }
.guide-mob-group a span { min-width: 0; flex: 1; }
.achievement-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; margin-bottom: 12px; }
.achievement-heading { margin: 0; }
.achievement-artwork .achievement-icon { position: relative; z-index: 1; box-sizing: border-box; width: 100%; height: 100%; image-rendering: auto; border: 1px solid #8c7953; }
.achievement-heading h3 { margin: 0; }
#guide-crafting-details { grid-row: 2; overflow-y: auto; overscroll-behavior: contain; min-height: 0; min-width: 0; border: 1px solid #777563; background: #30322af5; padding: 10px; scrollbar-width: thin; scrollbar-color: #8c6c38 #25271f; line-height: 1.3; container-type: inline-size; }
#guide-crafting-details:focus-visible { outline: 2px solid #d4be78; outline-offset: -2px; }
.crafting-toolbar { display: flex; align-items: center; gap: 12px; }
.crafting-toolbar #guide-crafting-search { flex: 1 1 0; width: auto; }
#guide-crafting-count { flex: 0 0 auto; font-size: .8em; color: #c7bda9; }
.crafting-note, .crafting-leftovers { color: #b8ab95; font-size: .9em; }
.crafting-family > h3 { margin: 15px 0 10px; color: #d4be78; font: inherit; font-size: 1.2em; }
.crafting-chain { display: grid; gap: 9px; }
.crafting-recipe { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2.2fr) minmax(0,2fr); grid-template-rows: minmax(0,1fr) auto; min-width: 0; border: 1px solid #777563; background: #24271fe0; scroll-margin-top: 12px; font-size: clamp(13px,1.2vw,18px); }
.crafting-recipe.is-selected { border-color: #d4be78; background: #393a29; box-shadow: inset 0 0 0 1px #d4be7844; }
.crafting-result { display: flex; flex-direction: column; min-width: 0; padding: 8px; text-align: center; }
.crafting-result a { display: flex; flex-direction: column; align-items: center; color: #d4be78; text-decoration: none; }
.crafting-output-icon { width: 60px; height: 48px; flex-basis: 48px; }
.crafting-result h4 { margin: 5px 0; font: inherit; font-size: 1.2em; overflow-wrap: anywhere; }
.crafting-output-quantity { color: #a4d46a; font-size: .85em; }
.crafting-result-price { display: grid; gap: 3px; margin: auto 0 0; padding-top: 7px; border-top: 1px solid #74705a; }
.crafting-result-price strong { color: #a4d46a; font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.crafting-recipe h5 { font: inherit; font-size: 1em; margin: 0; color: #d4be78; }
.crafting-direct, .crafting-total { display: flex; flex-direction: column; min-width: 0; padding: 8px; border-left: 1px solid #74705a; }
.crafting-direct { grid-column: 2; grid-row: 1; }
.crafting-total { grid-column: 3; grid-row: 1 / 3; background: #1a201650; }
.crafting-usage { grid-column: 1 / 3; grid-row: 2; min-width: 0; border-top: 1px solid #74705a; }
.crafting-usage-repair { display: grid; grid-template-columns: minmax(0,1fr); }
.crafting-repair-class { min-width: 0; padding: 7px 8px; text-align: center; }
.crafting-repair-class h5 { font-size: 1em; margin-bottom: 5px; }
.crafting-repair-class h5 strong { color: #e3d7bb; }
.crafting-repair-class p { margin: 4px 0 0; color: #b8ab95; font-size: .9em; }
.crafting-class-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 3px; list-style: none; margin: 0; padding: 0; font-size: .9em; }
.crafting-class-list li { padding: 3px 1px; border: 1px solid #77756366; color: #b8ab95; white-space: nowrap; }
.crafting-class-list .is-compatible { border-color: #a76a27; color: #f1dfb8; background: #593819; }
.crafting-stat-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(95px,1fr)); margin: 0; font-size: 1.05em; }
.crafting-usage-repair .crafting-stat-list { grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid #74705a; }
.crafting-stat-list > div { min-width: 0; padding: 7px 8px; border-left: 1px solid #74705a; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.crafting-stat-list > div:first-child { border-left: 0; }
.crafting-stat-list dt { color: #c7bda9; }
.crafting-stat-list dd { margin: 0; font-variant-numeric: tabular-nums; }
.crafting-stat-list dd span { color: #b8ab95; font-size: .9em; }
.crafting-stat-good { color: var(--stat-good); }
.crafting-stat-cost { color: #eea485; }
.crafting-effect-time { display: block; }
.crafting-material-columns, .crafting-material-list li { display: grid; grid-template-columns: minmax(0,1fr) 2.5ch 6.5ch; gap: 5px; align-items: start; min-width: 0; }
.crafting-material-columns { padding-bottom: 7px; color: #c7bda9; }
.crafting-material-columns > span { font-size: .85em; text-align: right; }
.crafting-material-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.crafting-material-list li { align-items: center; }
.crafting-material-item, .crafting-dependency { display: flex; align-items: center; gap: 4px; min-width: 0; }
.crafting-material-list .crafting-material-icon { width: 32px; height: 36px; flex: 0 0 32px; }
.crafting-material-name { font-size: 1em; min-width: 0; overflow-wrap: anywhere; }
.crafting-quantity { position: static; color: #a4d46a; font-weight: 400; font-size: 1em; text-align: right; }
.crafting-price { color: #c7bda9; text-align: right; font-size: .9em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.crafting-price-total { display: flex; justify-content: space-between; gap: 5px; margin: auto 0 0; padding-top: 7px; border-top: 1px solid #74705a; }
.crafting-price-total strong { color: #a4d46a; font-weight: 400; white-space: nowrap; }
.crafting-dependency { color: #e3d7bb; text-decoration-color: #a68a4b; text-underline-offset: 2px; }
.crafting-dependency:hover, .crafting-result a:hover { color: #efcd7b; }
.crafting-branch-arrow { color: #d4be78; }
.crafting-leftovers { margin: 9px 0 0; }
.crafting-warning { margin: 0; padding: 7px; border: 1px solid #ad8448; color: #f3cc8c; font-size: .85em; }
#guide-crafting-details a:focus-visible { outline: 2px solid #d4be78; outline-offset: 2px; }
@container (max-width: 430px) {
    .crafting-result, .crafting-direct, .crafting-total, .crafting-repair-class, .crafting-stat-list > div { padding: 5px; }
    .crafting-class-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .crafting-material-columns, .crafting-material-list li { gap: 3px; grid-template-columns: minmax(0,1fr) 2ch 6.8ch; }
    .crafting-material-columns h5 { min-width: 0; overflow-wrap: anywhere; }
    .crafting-material-list .crafting-material-icon { width: 24px; height: 28px; flex-basis: 24px; }
    .crafting-stat-list { grid-template-columns: repeat(auto-fit,minmax(80px,1fr)); }
    .crafting-stat-list dd span { display: block; }
}
@media (max-width: 1000px) and (max-height: 600px) and (orientation: landscape) {
    .guide-icon { width: 28px; height: 28px; flex-basis: 28px; }
    .guide-mob-group a { gap: 4px; padding-inline: 5px; }
    .achievement-toolbar { gap: 6px; }
    .crafting-output-icon { width: 60px; height: 48px; flex-basis: 48px; }
    #guide-effects { padding: 4px 4px 4px 8px; }
    .guide-gif-panel { gap: 6px; }
}

/* The phone layout uses the viewport, without changing the desktop frames. */
.app-fullscreen, .app-fullscreen-status { display: none; }

@media (max-width: 1000px) and (max-height: 600px) and (orientation: landscape),
       (pointer: coarse) and (max-height: 600px) and (orientation: landscape) {
    :root {
        --panel-gap: 10px;
        --panel-top: max(50px, calc(env(safe-area-inset-top) + 48px));
        --panel-max-width: calc(100vw - max(8px, env(safe-area-inset-left)) - max(8px, env(safe-area-inset-right)));
        --panel-width: var(--panel-max-width);
        --panel-height: calc(100dvh - var(--panel-top) - max(14px, env(safe-area-inset-bottom)));
        --panel-right: max(8px, env(safe-area-inset-right));
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    body { overflow: hidden; }
    .site-logo, .community-bar, .home-brand { display: none; }
    .main-menu {
        top: max(2px, env(safe-area-inset-top));
        left: max(8px, env(safe-area-inset-left));
        right: calc(max(8px, env(safe-area-inset-right)) + 52px);
        bottom: auto;
        width: auto;
        transform: none;
        justify-content: center;
        gap: clamp(8px, 2.2vw, 24px);
    }
    .main-menu :is(a, button) { min-height: 44px; font-size: clamp(17px, 2.7vw, 23px); }
    .content-panel,
    .content-panel:is([data-view="weapons"], [data-view="armor"], [data-view="guides"], [data-view="map"]) {
        --panel-width: var(--panel-max-width);
        left: auto;
        right: var(--panel-right);
        top: var(--panel-top);
        width: var(--panel-width);
        height: var(--panel-height);
        transform: none;
    }
    .panel-brand { font-size: 10px; }
    .app-fullscreen:not([hidden]) {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        z-index: 4;
        top: max(2px, env(safe-area-inset-top));
        right: max(8px, env(safe-area-inset-right));
        width: 44px;
        height: 44px;
        border: 0;
        padding: 9px;
        background: url("/4_Buttons/tab-normal.fc5496c46522.png") center / 100% 100% no-repeat;
        color: #20190c;
        cursor: pointer;
    }
    .app-fullscreen:hover { background-image: url("/4_Buttons/tab-hover.689acc9e7716.png"); }
    .app-fullscreen:focus-visible { outline: 2px solid #d4be78; outline-offset: -2px; }
    .app-fullscreen svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
    .app-fullscreen .fullscreen-exit,
    .app-fullscreen[aria-pressed="true"] .fullscreen-enter { display: none; }
    .app-fullscreen[aria-pressed="true"] .fullscreen-exit { display: block; }
    .app-fullscreen-status:not([hidden]) {
        display: block;
        position: fixed;
        z-index: 15;
        top: 50px;
        right: 12px;
        max-width: min(300px, 80vw);
        margin: 0;
        padding: 10px;
        background: #25271f;
        border: 1px solid #8c6c38;
        color: #e3d7bb;
        font: 400 14px/1.3 "Scavland", sans-serif;
        pointer-events: none;
    }
    .map-window-expanded .app-fullscreen { visibility: hidden; }

    /* Keep controls easy to tap while the panels use the newly available space. */
    [data-view="weapons"] .window-left {
        display: grid;
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
        grid-template-rows: 44px 52px 50px 44px auto;
        align-content: start;
        gap: 4px 8px;
        padding: 6px 10px;
        box-sizing: border-box;
        overflow: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: #8c6c38 #25271f;
    }
    [data-view="weapons"] :is(.weapon-header, .weapon-info, .weapon-preview, .ammo-buttons, .ammo-details, .weapon-stats, .weapon-repair-section) {
        position: static;
        inset: auto;
        width: auto;
        height: auto;
        min-width: 0;
        max-height: none;
        margin: 0;
        transform: none;
    }
    .weapon-menu {
        position: sticky;
        grid-column: 1 / -1;
        grid-row: 1;
        top: 0;
        left: auto;
        right: auto;
        height: 44px;
        gap: 6px;
        background: #25271fed;
    }
    .weapon-category > button { height: 44px; min-height: 44px; font-size: clamp(11px, 1.6vw, 14px); }
    .weapon-header { grid-column: 1; grid-row: 2; min-height: 0; font-size: clamp(14px, 3.2cqw, 21px); }
    .weapon-info { grid-column: 2; grid-row: 2; font-size: 10px; }
    .weapon-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); }
    .weapon-info-cell { border: 0; padding: 1px 2px; gap: 2px; }
    .weapon-info-cell dt { white-space: normal; }
    .weapon-info-cell:nth-child(2n) { border-left: 1px solid #bead7040; }
    .weapon-info-cell:nth-child(n + 3) { border-top: 1px solid #bead7040; }
    .weapon-preview { grid-column: 1 / -1; grid-row: 3; min-height: 0; }
    .weapon-image { height: 100%; max-height: 50px; }
    .weapon-stats { grid-column: 1; grid-row: 5; font-size: 11px; overflow: visible; }
    .weapon-stats .weapon-stat-columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3%; }
    .weapon-stats .stat-row { grid-template-columns: minmax(0, 1fr) 27% 23%; gap: 3%; min-height: 25px; }
    .weapon-stats .stat-bar { height: 14px; }
    .ammo-buttons { grid-column: 2; grid-row: 4; min-height: 44px; }
    .ammo-details { grid-column: 1; grid-row: 4; font-size: 11px; }
    .ammo-label { font-size: 10px; }
    .weapon-repair-section { grid-column: 2; grid-row: 5; overflow: visible; }
    .weapon-repair-section .repair-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .weapon-detail-tabs { top: 1%; height: 44px; }
    .attribute-content { top: 54px; }
    .attribute-options button { min-height: 44px; }
    .attachment-card { font-size: 13px; min-height: 64px; }
    .attachment-stat { font-size: 11px; }
    .armor-slot { font-size: 11px; }
    .armor-heading { font-size: 16px; }
    .armor-statistics { font-size: 11px; }
    .armor-statistics .stat-row { min-height: 25px; }
    .armor-durability-control, #armor-durability { min-height: 28px; }
    .guides-left, .guides-right { font-size: 12px; }
    .guide-sections { font-size: 12px; }
    .guide-mob-group a, .guide-sections :is(a, button) { min-height: 44px; }
    :is(#guide-mob-search, #guide-achievement-search, #guide-crafting-search) { min-height: 36px; font-size: 16px; }

    /* A useful map viewport in the normal view as well as in fullscreen. */
    .map-content #scavland-map-preview {
        grid-template-columns: clamp(155px, 20vw, 185px) minmax(0, 1fr) clamp(160px, 23vw, 240px);
        padding: 5px;
        gap: 6px;
        font-size: 12px;
    }
    #scavland-map-preview h2, #scavland-map-preview .map-info-heading h2 { font-size: 15px; }
    #scavland-map-preview h3, #scavland-map-preview .map-layers h3 { font-size: 14px; }
    #scavland-map-preview .place-name { font-size: 11.9px; max-width: 150px; }
    #scavland-map-preview .map-layers .btn { font-size: 12px; min-height: 44px; }
    #scavland-map-preview .text-small, #scavland-map-preview .selection-detail { font-size: 12px; }
    #scavland-map-preview .map-info { gap: 8px; padding-left: 6px; }
    #scavland-map-preview .map-info-table { font-size: 12px; }
    #scavland-map-preview .map-select-value { font-size: 13px; }
    #scavland-map-preview .map-select-title { font-size: 10px; }
    #scavland-map-preview .map-select-option { min-height: 40px; font-size: 13px; }
    #scavland-map-preview .map-zoom .btn, #scavland-map-preview .map-fullscreen { width: 44px; min-height: 44px; }
    #scavland-map-preview .map-location-action .map-detail-link { width:44px; height:44px; min-height:44px; }
    #scavland-map-preview .map-info-heading { min-height:54px; padding-right:60px; }
    #scavland-map-preview .map-info-heading h2 { flex-basis:100%; }
    #scavland-map-preview .map-brand { font-size: 10px; }
    .map-content #scavland-map-preview.is-map-fullscreen {
        --fullscreen-layers-width: clamp(155px, 20vw, 185px);
        grid-template-columns: minmax(0, 1fr) clamp(160px, 23vw, 240px);
        grid-template-rows: minmax(0, 1fr);
        padding: 0;
        gap: 0;
    }
    #scavland-map-preview.is-map-fullscreen .map-sidebar {
        top: max(6px, env(safe-area-inset-top));
        bottom: max(6px, env(safe-area-inset-bottom));
        left: max(6px, env(safe-area-inset-left));
    }
    #scavland-map-preview.is-map-fullscreen .map-info { padding: 0 0 8px 8px; }
}

@media (max-width: 900px) and (orientation: portrait) {
    .community-bar { display: none; }
}

/* Shared artwork, dimensions and left-aligned uppercase labels. */
.weapon-detail-tabs { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.weapon-detail-tabs .attributes-button, .weapon-setup-button { box-sizing: border-box; display: flex; align-items: center; width: 100%; min-width: 0; height: clamp(34px,10cqw,44px); min-height: 34px; aspect-ratio: auto; padding: 0 clamp(3px,1.5cqw,8px) 1px; border: 0; background: url("/4_Buttons/tab-normal.fc5496c46522.png") center/100% 100% no-repeat; color: #20190c; font: 400 clamp(11px,3.4cqw,18px)/1 "Scavland","Arial Narrow",sans-serif; text-align: left; text-transform: uppercase; white-space: nowrap; cursor: pointer; image-rendering: pixelated; }
.attributes-button { justify-content: space-between; }
.weapon-setup-button { justify-content: flex-start; }
.attributes-button:hover, .attributes-button:focus-visible, .weapon-setup-button:hover { background-image: url("/4_Buttons/tab-hover.689acc9e7716.png"); }
.attributes-button[aria-expanded="true"] { background-image: url("/4_Buttons/tab-hover.689acc9e7716.png"); }
.weapon-setup-button[aria-pressed="true"] { background-image: url("/4_Buttons/tab-pressed.90a9e5c59d1b.png"); color: #f1d9a0; }
.attributes-button:focus-visible, .weapon-setup-button:focus-visible { outline: 2px solid #d4be78; outline-offset: 2px; }
.attributes-button:disabled, .weapon-setup-button:disabled { opacity: .6; cursor: default; }
.attributes-button:disabled { background-image: url("/4_Buttons/tab-normal.fc5496c46522.png"); }
.attributes-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@container (max-width: 300px) {
    .weapon-detail-tabs { grid-template-columns: minmax(0,1fr); height: 144px; align-content: start; }
    .weapon-detail-tabs .attributes-button, .weapon-setup-button { height: 44px; min-height: 44px; font-size: 13px; }
    .attribute-content { top: calc(1.5% + 150px); }
}
@media (max-width: 1000px) and (max-height: 600px) and (orientation: landscape),
       (pointer: coarse) and (max-height: 600px) and (orientation: landscape) {
    .weapon-detail-tabs .attributes-button, .weapon-setup-button { height: 44px; min-height: 44px; }
}

/* One visible, inset chevron for dropdowns across the site. */
:root { --dropdown-chevron-size: 8px; --dropdown-chevron-stroke: 3px; --dropdown-chevron-inset: 12px; }
.weapon-category > button::after, .attributes-arrow {
    content: "";
    display: block;
    width: var(--dropdown-chevron-size);
    height: var(--dropdown-chevron-size);
    flex-shrink: 0;
    box-sizing: content-box;
    border: 0;
    border-right: var(--dropdown-chevron-stroke) solid currentColor;
    border-bottom: var(--dropdown-chevron-stroke) solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    pointer-events: none;
}
.weapon-category > button, .weapon-detail-tabs .attributes-button { padding-right: var(--dropdown-chevron-inset); gap: 6px; }
.weapon-menu { gap: clamp(4px,.8cqw,8px); }
#scavland-map-preview .map-select-trigger { grid-template-columns: minmax(0,1fr) 14px; padding-right: var(--dropdown-chevron-inset); gap: 3px 8px; }
/* Native selects remain keyboard/touch controls; only their arrow is replaced. */
select:not([multiple]), #scavland-map-preview .selection-extra select,
#scavland-map-preview select.selection-choice, #scavland-map-preview .map-select > select {
    appearance: none;
    padding-right: 34px;
    background-image: url("/4_Buttons/dropdown-chevron-gold.6f3e399a9054.svg");
    background-repeat: no-repeat;
    background-position: right var(--dropdown-chevron-inset) center;
    background-size: 14px 10px;
}
#scavland-map-preview .map-select > select { background-image: url("/4_Buttons/dropdown-chevron-dark.791ad143172b.svg"); }
summary { position: relative; list-style: none; padding-right: 32px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: var(--dropdown-chevron-inset); top: .3em; width: 8px; height: 8px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(45deg); }
details[open] > summary::after { transform: translateY(4px) rotate(225deg); }
#scavland-map-preview .map-item-group summary { padding-right: 32px; }
@container (max-width: 600px) {
    .weapon-category > button { padding-left: 4px; padding-right: 10px; gap: 3px; font-size: clamp(10px,2.2cqw,13px); }
}
@container (max-width: 450px) {
    .weapon-category > button { flex-direction: column; justify-content: center; gap: 3px; height: 44px; min-height: 44px; padding: 4px 10px; font-size: 10px; }
}

/* Windows Explorer structure, Scavland palette. Only the Guides workspace changes. */
.content-panel[data-view="guides"] { display:block; }
[data-view="guides"] > .window, [data-view="guides"] > .panel-brand { display:none; }
.content-panel:not([data-view="guides"]) .guides-explorer { display:none; }
.guides-explorer { height:100%; box-sizing:border-box; display:grid; grid-template-rows:40px minmax(0,1fr) 25px; border:1px solid #8d805b; border-radius:var(--workspace-radius); overflow:hidden; background:#25291f; box-shadow:0 12px 32px #000a, inset 0 0 0 1px #b6a47622; color:#e0dcc9; font:400 16px/1.25 "Scavland",sans-serif; }
.explorer-address { display:flex; align-items:center; gap:12px; min-width:0; padding:0 15px; background:linear-gradient(#35382c,#2b2f24); border-bottom:1px solid #77735b; font-size:15px; white-space:nowrap; overflow:hidden; }
.explorer-location { display:flex; align-items:center; gap:12px; flex:1; min-width:0; overflow:hidden; }
.explorer-location > :not(#explorer-path) { flex-shrink:0; }
.explorer-search { display:flex; align-items:center; gap:8px; flex:0 0 30%; min-width:180px; max-width:360px; height:29px; box-sizing:border-box; padding:0 9px; border:1px solid #77785c; border-radius:3px; background:#1c2218; }
.explorer-search:focus-within { border-color:#d4be78; box-shadow:0 0 0 1px #d4be7833; }
.explorer-search svg { flex:0 0 15px; width:15px; height:15px; fill:none; stroke:#bcaa70; stroke-width:1.7; }
#explorer-search { width:100%; min-width:0; height:100%; padding:0; border:0; outline:0; color:#eee4cd; background:transparent; font:inherit; font-size:15px; color-scheme:dark; }
#explorer-search::placeholder { color:#b9b79e; opacity:1; }
#explorer-search:disabled { opacity:.6; }
.explorer-search-results { position:fixed; z-index:10020; box-sizing:border-box; overflow:auto; overscroll-behavior:contain; border:1px solid #9b8d60; border-radius:3px; background:#22291c; box-shadow:0 8px 22px #000b; color:#e4dcc5; font:400 16px/1.2 "Scavland",sans-serif; scrollbar-width:thin; scrollbar-color:#a28e5e #22291c; }
.explorer-search-results[hidden] { display:none; }
.explorer-search-status { position:sticky; top:0; z-index:1; margin:0; padding:8px 11px; border-bottom:1px solid #686a4b; background:#303625; color:#cbbf99; font-size:14px; }
.explorer-search-option { display:grid; grid-template-columns:36px minmax(0,1fr) 10px; align-items:center; gap:10px; padding:8px 11px; min-height:48px; box-sizing:border-box; border-bottom:1px solid #63684955; color:inherit; text-decoration:none; cursor:pointer; }
.explorer-search-option:hover, .explorer-search-option[aria-selected="true"] { background:#4b4c30; color:#f7e2b3; box-shadow:inset 3px 0 #d1943c; }
.explorer-search-option:focus-visible { outline:2px solid #d4be78; outline-offset:-2px; }
.explorer-search-option .guide-icon { width:36px; height:34px; }
.explorer-search-option strong { display:block; font-weight:400; overflow-wrap:anywhere; }
.explorer-search-option small { display:block; margin-top:3px; color:#b4b395; font-size:13px; overflow-wrap:anywhere; }
.explorer-search-option .rarity-indicator { width:9px; height:9px; margin:0; }
.explorer-path-divider { color:#a99d74; font:21px sans-serif; }
#explorer-path { display:flex; align-items:center; gap:8px; min-width:0; overflow:hidden; color:#dbc389; }
.explorer-path-part { display:inline-flex; align-items:center; gap:7px; flex-shrink:0; }
.explorer-path-part:last-child { min-width:0; flex-shrink:1; }
.explorer-path-part:last-child > span:last-child { overflow:hidden; text-overflow:ellipsis; }
.explorer-workspace { display:grid; grid-template-columns:clamp(120px,11vw,155px) minmax(225px,30%) minmax(0,1fr); min-height:0; }
.guides-explorer .guides-right { display:contents; font:inherit; }
.guides-explorer .guide-sections { grid-column:1; grid-row:1; display:flex; flex-direction:column; min-height:0; background:#20241c; border-right:1px solid #62624c; }
.explorer-column-heading { display:flex; align-items:center; justify-content:space-between; flex:0 0 auto; box-sizing:border-box; min-height:39px; padding:9px 12px; margin:0; border-bottom:1px solid #555b47; color:#d7c58f; font:inherit; font-size:16px; }
.explorer-column-heading small { color:#aaa68b; font-size:12px; font-weight:400; }
.explorer-heading-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.explorer-column-heading:has(.explorer-heading-actions) { gap:8px; }
.guides-explorer .guide-category-buttons { display:flex; flex-direction:column; gap:3px; padding:8px 5px; overflow:auto; scrollbar-width:thin; }
.guides-explorer .guide-sections :is(a,button) { display:flex; align-items:center; justify-content:flex-start; width:100%; min-height:39px; gap:8px; padding:8px 8px; border:1px solid transparent; border-radius:3px; background:none; color:#d4d1bf; font:inherit; font-size:15px; text-align:left; text-decoration:none; cursor:pointer; }
.guides-explorer .guide-sections :is(a,button):hover { background:#343b2a; }
.guides-explorer .guide-sections :is([aria-current="true"],[aria-pressed="true"]) { color:#f4dfab; background:#45462d; border-color:#8a7b4d; box-shadow:inset 3px 0 #d1943c; }
.explorer-nav-icon { display:inline-flex; align-items:center; justify-content:center; width:19px; height:19px; flex:0 0 19px; color:#bcaa70; font:20px/1 "Segoe UI Symbol",sans-serif; }
.explorer-nav-icon svg { width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.guides-browser { grid-column:2; grid-row:1; min-width:0; min-height:0; background:#282d21; border-right:1px solid #707058; }
.guides-explorer .explorer-browser-section { height:100%; display:flex; flex-direction:column; min-height:0; min-width:0; }
.explorer-tree { --tree-indent:20px; --tree-branch-x:11px; --tree-branch-end:5px; --tree-line:#947044; overflow:auto; min-height:0; padding:7px 5px 12px; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#898061 #25291e; }
.explorer-tree details { margin:1px 0; }
.explorer-tree details details { position:relative; margin:0 0 0 var(--tree-indent); }
.explorer-tree summary { position:relative; display:flex; align-items:center; gap:7px; min-height:34px; padding:3px 24px 3px 5px; box-sizing:border-box; cursor:pointer; color:#ddd1a6; font-size:15px; }
.explorer-tree summary > span:not([class]) { min-width:0; }
.explorer-tree summary small { color:#a6a88d; margin-left:auto; font-size:12px; }
.explorer-tree summary:hover { background:#343b2a; }
.explorer-tree summary::after { width:5px; height:5px; border-width:0 2px 2px 0; right:9px; top:13px; transform:rotate(-45deg); }
.explorer-tree details[open] > summary::after { transform:translateY(-2px) rotate(45deg); }
.tree-toggle { width:11px; height:11px; flex:0 0 11px; display:grid; place-items:center; border:1px solid #8b5623; color:#f49a1e; background:#272b1f; font:12px/1 Arial,sans-serif; }
.tree-toggle::before { content:"+"; }
.explorer-tree details[open] > summary > .tree-toggle::before { content:"−"; }
/* Join the folder toggle to its children; the last branch ends at its row. */
.explorer-tree details[open] > summary > .tree-toggle::after { content:""; position:absolute; pointer-events:none; left:var(--tree-branch-x); top:calc(50% + 6px); bottom:0; border-left:1px solid var(--tree-line); }
.explorer-tree details > details > summary::before,
.explorer-tree li::before { content:""; position:absolute; pointer-events:none; left:calc(var(--tree-branch-x) - var(--tree-indent)); top:0; bottom:50%; width:calc(var(--tree-indent) - var(--tree-branch-x) + var(--tree-branch-end)); border-left:1px solid var(--tree-line); border-bottom:1px solid var(--tree-line); }
.explorer-tree details > details:not(:last-child)::before,
.explorer-tree li:not(:last-child)::after { content:""; position:absolute; pointer-events:none; left:calc(var(--tree-branch-x) - var(--tree-indent)); top:0; bottom:0; border-left:1px solid var(--tree-line); }
/* Exact normal / pressed / hover fills from the shared button artwork. */
.explorer-folder-icon { --folder-fill:#cb6f0c; --folder-edge:#8b5623; position:relative; display:inline-block; box-sizing:border-box; width:16px; height:11px; margin-top:3px; flex:0 0 16px; border:1px solid var(--folder-edge); border-radius:1px; background:var(--folder-fill); }
.explorer-folder-icon::before { content:""; position:absolute; left:-1px; top:-4px; width:7px; height:4px; border:1px solid var(--folder-edge); border-bottom:0; border-radius:2px 2px 0 0; background:var(--folder-fill); }
.explorer-tree details[open] > summary > .explorer-folder-icon { --folder-fill:#8b5623; --folder-edge:#cb6f0c; }
.explorer-tree summary:is(:hover,:focus-visible) > .explorer-folder-icon { --folder-fill:#f49a1e; --folder-edge:#cb6f0c; }
.explorer-tree ul { display:block; list-style:none; margin:0 0 4px var(--tree-indent); padding:0; }
.explorer-tree li { position:relative; margin:0; padding:0; }
.guides-explorer .explorer-entry { display:grid; grid-template-columns:24px minmax(0,1fr) auto; align-items:center; gap:7px; box-sizing:border-box; width:100%; min-height:34px; padding:5px 7px; border:1px solid transparent; border-radius:2px; background:none; color:#dbdcc9; font:inherit; font-size:15px; text-align:left; text-decoration:none; overflow-wrap:anywhere; cursor:pointer; }
.guides-explorer .explorer-entry:hover { background:#39402e; }
.guides-explorer .explorer-entry[aria-current="true"] { background:#4b4c30; border-color:#827b50; color:#f7e2b3; box-shadow:inset 2px 0 #d1943c; }
.explorer-item-icon { width:24px; height:25px; flex:0 0 24px; image-rendering:pixelated; }
.explorer-entry .rarity-indicator { width:8px; height:8px; margin:0; align-self:center; }
.achievement-list-percent { justify-self:end; color:#d8c48b; font-size:12px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.achievement-sort { display:inline-flex; align-items:center; gap:5px; padding:3px 2px; border:0; background:none; color:#d8c48b; font:inherit; font-size:12px; cursor:pointer; }
.achievement-sort [data-sort-arrow] { font:18px/1 Arial,sans-serif; }
.achievement-tree-heading { flex-wrap:wrap; }
.achievement-tree-heading .explorer-heading-actions { gap:8px; margin-left:auto; }
.guides-explorer :is(a,button,summary):focus-visible { outline:2px solid #caac60; outline-offset:-2px; }
#guide-mob-list { padding:7px 5px 12px; flex:1; }
.explorer-note { color:#bdb9a0; padding:4px 12px; font-size:14px; }
#content-panel[data-view="guides"] .guides-left { position:static; inset:auto; grid-column:3; grid-row:1; display:grid; grid-template-rows:39px minmax(0,1fr); gap:0; padding:0; min-height:0; min-width:0; overflow:hidden; background:#303327; font-size:16px; }
.guides-explorer .guide-title-panel { display:flex; justify-content:flex-start; gap:12px; padding:7px 13px; min-height:39px; border:0; border-bottom:1px solid #555b47; background:#2a3024; }
.explorer-details-label { color:#b2ad91; font-size:14px; }
.guides-explorer #guide-name { min-width:0; margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#e2d09d; font:inherit; font-size:16px; }
.guides-explorer .database-explorer { grid-row:2; min-width:0; min-height:0; overflow:hidden; }
.guides-explorer .database-info { height:100%; box-sizing:border-box; overflow:auto; overscroll-behavior:contain; padding:16px; scrollbar-width:thin; scrollbar-color:#8c805b #272b1e; }
.database-info > .item-info-card { box-sizing:border-box; width:100%; max-width:420px; margin:0 auto; padding:12px 10px; border:18px solid transparent; border-image:url("/2_Images/stat-window-template.84f0f5a19fce.webp") 75 / 18px / 0 stretch; background:linear-gradient(120deg,#191b10,#101209); background-clip:padding-box; }
#content-panel[data-view="guides"] .guides-left:has(.guide-gif-panel:not([hidden])) { display:block; overflow-y:auto; scrollbar-gutter:stable; scrollbar-width:thin; }
.guides-explorer .guide-gif-panel { margin:12px; height:460px; padding:10px; grid-template-columns:minmax(0,1.4fr) minmax(0,1.2fr) minmax(0,.8fr); }
.guides-explorer #guide-human-details { margin:12px; padding:10px; }
.guides-explorer #guide-crafting-details.browser-ready { display:block; margin:0; padding:12px; min-height:0; border:0; background:none; overflow:auto; scrollbar-width:thin; }
.guides-explorer .crafting-detail-pane { min-width:0; }
.guides-explorer .browser-ready .crafting-recipe:not(.is-selected) { display:none; }
.guides-explorer .crafting-family > h3 { display:none; }
.guides-explorer .crafting-toolbar { display:none; }
.guides-explorer #guide-achievement-details { margin:0; padding:12px; border:0; background:none; }
.guides-explorer .achievement-toolbar { display:none; }
.guides-explorer .guide-drop-search-row { position:static; }
.guides-explorer .guide-drop-search-row input { display:none; }
.explorer-status { display:flex; align-items:center; justify-content:space-between; gap:15px; min-width:0; padding:0 12px; border-top:1px solid #62624c; background:#23271d; color:#aaa98d; font-size:12px; }
#explorer-status-text { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width:1000px) and (max-height:600px) and (orientation:landscape) {
    .guides-explorer { grid-template-rows:29px minmax(0,1fr) 20px; }
    .explorer-workspace { grid-template-columns:116px minmax(170px,28%) minmax(0,1fr); }
    .explorer-address { gap:8px; padding:0 9px; font-size:12px; }
    .explorer-location { gap:7px; }
    .explorer-search { height:24px; min-width:170px; flex-basis:34%; padding:0 7px; gap:6px; }
    #explorer-search { font-size:13px; }
    .explorer-column-heading { min-height:32px; padding:7px 8px; font-size:14px; }
    .guides-explorer .guide-sections :is(a,button) { min-height:35px; padding:6px 4px; gap:5px; font-size:13px; }
    .explorer-nav-icon { width:15px; flex-basis:15px; }
    .explorer-tree { --tree-indent:14px; --tree-branch-x:9px; --tree-branch-end:3px; padding-inline:3px; }
    .explorer-tree summary { gap:5px; padding-left:3px; font-size:13px; }
    .guides-explorer .explorer-entry { gap:5px; grid-template-columns:20px minmax(0,1fr) auto; padding:4px; font-size:13px; min-height:32px; }
    .explorer-item-icon { width:20px; height:24px; }
    #content-panel[data-view="guides"] .guides-left { grid-template-rows:32px minmax(0,1fr); font-size:13px; }
    .guides-explorer .guide-title-panel { padding:5px 8px; min-height:32px; }
    .guides-explorer #guide-name { font-size:14px; }
    .guides-explorer .database-info { padding:7px; }
    .database-info > .item-info-card { border-width:14px; border-image-width:14px; padding:6px 5px; }
    .guides-explorer #guide-crafting-details.browser-ready { padding:7px; }
    .explorer-status { padding-inline:8px; font-size:10px; }
    .guides-explorer .guide-gif-panel { margin:7px; height:430px; min-width:360px; }
}

.explorer-nav-icon svg { display:block; width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }

.guides-explorer :is(#guide-mob-options,#guide-crafting-options) { display:flex; flex-direction:column; }

@container (max-width:460px) { .guides-explorer .crafting-recipe { min-width:480px; } }

.explorer-column-heading { gap:8px; }

/* The supplied frame supplies only its edges; all labels and rows remain live HTML. */
.item-info-card { color:#eae3cf; font:400 17px/1.25 "Scavland",sans-serif; min-width:0; overflow-wrap:anywhere; }
.item-info-header { display:flex; align-items:center; gap:16px; padding-bottom:10px; border-bottom:1px solid #777052; }
.item-info-header h3 { margin:0 0 5px; color:#eae3cf; font-size:1.35em; font-weight:400; }
.item-info-icon { width:76px; height:64px; flex:0 0 76px; image-rendering:pixelated; }
.item-info-rarity { margin:0; color:#bfb69b; font-size:.9em; }
.item-info-description { margin:12px 0; white-space:pre-line; }
.item-info-context { margin:8px 0; color:#c2b88f; font-size:.85em; }
.item-info-stats { margin:12px 0; border:1px solid #706b4a; }
.item-info-stats > div { display:grid; grid-template-columns:minmax(0,1fr) minmax(70px,.85fr); border-bottom:1px solid #706b4a; padding:5px 8px; gap:12px; }
.item-info-stats > div:last-child { border-bottom:0; }
.item-info-stats dd { margin:0; text-align:right; font-variant-numeric:tabular-nums; }
.item-info-stats .good { color:#a3cf69; } .item-info-stats .cost { color:#e3a47c; }
.item-info-footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 16px; padding-top:10px; border-top:1px solid #777052; color:#c8bfa5; font-size:.9em; }
.item-info-footer strong { color:#a3cf69; font-weight:400; }
.item-info-popup { position:fixed; z-index:10000; width:350px; max-width:calc(100vw - 20px); max-height:calc(100dvh - 20px); box-sizing:border-box; border:18px solid transparent; border-image:url("/2_Images/stat-window-template.84f0f5a19fce.webp") 75 75 75 75 / 18px / 0 stretch; background:linear-gradient(120deg,#191b10,#101209); background-clip:padding-box; filter:drop-shadow(0 8px 12px #000b); padding:12px 10px 8px; display:flex; flex-direction:column; }
.item-info-popup[hidden] { display:none; }
.item-info-body { overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#8c6c38 #1c1f15; min-height:0; padding-right:5px; }
.item-info-close { position:absolute; right:-5px; top:-9px; width:30px; height:30px; z-index:1; background:#24261a; border:1px solid #777052; color:#eadab0; font:24px/1 sans-serif; cursor:pointer; }
.item-info-close:focus-visible { outline:2px solid #e6bc5d; }
.weapon-preview .weapon-image { pointer-events:auto; cursor:help; }
.weapon-preview .weapon-image image { pointer-events:none; }
.weapon-preview:focus-visible { outline:1px solid #d4be78; }
@media (max-height:500px) { .item-info-card { font-size:15px; } .item-info-header h3 { font-size:1.2em; } .item-info-icon { height:45px; } }

/* Category folders contain their own item grids, with one shared content scroll. */
.loot-browser { display:block; min-width:0; }
.loot-browser > .loot-folders { min-width:0; margin:0; padding:0; border:1px solid #6b6549; background:#252b1e; }
.loot-folders > summary { display:flex; align-items:center; gap:8px; padding:8px 28px 8px 8px; color:#dfc995; cursor:pointer; font:inherit; }
.loot-folders[open] > summary > .tree-toggle::before,
.loot-folder-list > details[open] > summary > .tree-toggle::before { content:'−'; }
.loot-folder-list { padding:0 5px 6px 18px; }
.loot-browser .loot-folder-list > details { position:relative; min-width:0; margin:0; padding:0; border:0; }
.loot-folder-list > details::before { content:''; position:absolute; left:-8px; top:0; bottom:0; border-left:1px solid #947044; pointer-events:none; }
.loot-folder-list > details:last-child::before { bottom:auto; height:16px; }
.loot-browser .loot-folder-list > details > .loot-folder-heading { position:relative; display:flex; align-items:center; gap:6px; min-height:32px; box-sizing:border-box; margin:0; padding:5px 28px 5px 5px; border:1px solid transparent; border-radius:2px; background:transparent; color:#ded6bf; font:inherit; font-size:14px; text-align:left; cursor:pointer; }
.loot-folder-heading::before { content:''; position:absolute; left:-9px; top:50%; width:9px; border-bottom:1px solid #947044; pointer-events:none; }
.loot-folder-heading::after { top:10px; width:6px; height:6px; border-width:0 2px 2px 0; }
.loot-folder-label { min-width:0; overflow-wrap:anywhere; }
.loot-folder-heading :is(.map-group-count,.guide-drop-group-count) { margin-left:auto; color:#b8ab95; font-size:12px; line-height:1; }
.loot-browser .loot-folder-list > details > .loot-folder-heading:hover { background:#353b29; }
.loot-browser .loot-folder-list > details[open] > .loot-folder-heading { background:#4b4c30; border-color:#8b703e; }
.loot-folder-list > details[open] > summary .explorer-folder-icon { --folder-fill:#8b5623; --folder-edge:#cb6f0c; }
.loot-folder-heading:focus-visible { outline:2px solid #d4be78; outline-offset:-2px; }
.loot-browser .map-loot-selection { padding:6px 2px 0; }
.loot-browser :is(.map-loot-grid-wrap,.guide-drop-grid) { margin:5px 0 9px; }
.loot-browser [hidden] { display:none !important; }
.loot-browser .guide-drop-grid { grid-template-columns:repeat(auto-fill,minmax(80px,1fr)); gap:5px; }
.loot-browser .guide-drop-name { font-size:12px; }
/* The loot area owns the scrollbar; location identity remains above it. */
#scavland-map-preview .selected-location:has([data-loot-browser]) { grid-template-rows:auto minmax(0,1fr); overflow:hidden; padding-right:0; }
#scavland-map-preview .selection-extra:has([data-loot-browser]) { min-height:0; align-self:stretch; overflow-y:auto; align-content:start; padding-right:4px; box-sizing:border-box; scrollbar-width:thin; scrollbar-color:#8b7f70 #25271f; }
.loot-browser-toolbar { position:sticky; top:0; z-index:4; display:grid; gap:5px; padding:5px 0; background:#25271f; border-bottom:1px solid #6b6549; }
.loot-expand-all { justify-self:end; padding:4px 9px; min-height:28px; border:1px solid #a26322; border-radius:2px; background:#8b5623; color:#f5e6c4; font:inherit; font-size:13px; cursor:pointer; }
.loot-expand-all:hover { background:#ab641f; }
.loot-expand-all:focus-visible { outline:2px solid #f7bd62; outline-offset:1px; }
.loot-expand-all:disabled { opacity:.5; cursor:default; }
.guide-drop-search-row .loot-expand-all { margin-left:auto; }

#guide-quests-details { min-height:0; overflow:auto; padding:12px; scrollbar-width:thin; scrollbar-color:#898061 #25291e; }
.quest-card { background:#25291f; border:1px solid #77735b; padding:18px 22px; color:#e0dcc9; }
.quest-card h3 { color:#ead9aa; font-size:27px; line-height:1.15; margin:4px 0 7px; }
.quest-card h4 { margin:17px 0 8px; font-size:19px; color:#d7c58f; border-bottom:1px solid #68634b; padding-bottom:6px; }
.quest-card p { margin:8px 0; }
.quest-kicker,.quest-availability { color:#aaa68b; font-size:13px; }
.quest-subtitle { color:#c4ba94; font-size:18px; }
.quest-character { font-size:15px; color:#bfb79d; }
.quest-character strong { color:#e0dcc9; font-weight:400; }
.quest-journal { font-size:17px; line-height:1.45; }
.quest-objectives,.quest-rewards { list-style:none; margin:0; padding:0; }
.quest-objectives li,.quest-rewards li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 2px; border-bottom:1px solid #565b453f; font-size:17px; }
.quest-objectives li { display:block; padding:12px 0; }
.quest-objective-title { display:flex; align-items:baseline; justify-content:space-between; gap:12px; color:#ead9aa; margin-bottom:8px; }
.quest-objective-title small { color:#e0a34d; white-space:nowrap; }
.quest-target { display:flex; align-items:center; gap:10px; padding:8px; background:#20251c; border:1px solid #555b47; margin-top:5px; }
.quest-target-icon,.quest-target-symbol { width:38px; height:38px; flex:0 0 38px; object-fit:contain; image-rendering:pixelated; }
.quest-target-symbol { font-size:30px; text-align:center; color:#e0a34d; }
.quest-target-text { flex:1; min-width:0; }
.quest-target-text strong,.quest-target-text > a { display:block; font-size:17px; font-weight:400; color:#e0dcc9; text-decoration:none; }
.quest-target-text > a:hover { color:#f0b767; }
.quest-target-text small,.quest-location-note { display:block; color:#b7b09b; font-size:13px; line-height:1.35; margin-top:3px; }
.quest-target-text .quest-coordinates { color:#c4ba94; }
.quest-map-link { flex:0 0 auto; color:#eab16a; font-size:14px; text-decoration:underline; text-underline-offset:3px; }
.quest-map-link:hover { color:#ffce8c; }
.quest-character > span { color:#bfb79d; }
@container (max-width:420px) { .quest-target { flex-wrap:wrap; } .quest-map-link { margin-left:48px; } }
.quest-rewards a { display:flex; align-items:center; gap:10px; color:#e0dcc9; text-decoration:none; }
.quest-rewards a:hover { color:#f0b767; }
.quest-rewards strong { color:var(--stat-good,#6dd13c); font-weight:400; }
.quest-reward-icon { width:32px; height:32px; flex:0 0 32px; }
.quest-completion { margin-top:18px; border-top:1px solid #68634b; padding-top:10px; }
.quest-completion summary { color:#cfac71; cursor:pointer; }
.quest-chain { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
.quest-chain a { flex:1; min-width:110px; display:flex; flex-direction:column; gap:4px; padding:9px; border:1px solid #8b5623; color:#ead9aa; text-decoration:none; background:#35372a; }
.quest-chain a:hover { background:#4c432e; border-color:#cb6f0c; }
.quest-chain small { color:#b2ac95; }
.quest-order { width:20px; flex:0 0 20px; text-align:center; color:#e0a34d; font-size:13px; }
.quest-tree-entry { white-space:normal; }
@media(max-width:900px) { #guide-quests-details { padding:8px; } .quest-card { padding:12px; } .quest-card h3 { font-size:23px; } }

.guides-explorer[aria-busy="true"] .guides-left{opacity:.65}
.guide-search-icon{width:24px;height:25px;object-fit:contain;image-rendering:pixelated}
@media(prefers-reduced-motion:no-preference){.guides-left{transition:opacity .12s}}
