.fau-home-lookup {
    margin-top: 16px;
}
.fau-home-lookup form {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px 20px;
    padding: 12px 16px;
}
.fau-home-lookup label {
    color: var(--fau-text);
    font-weight: 700;
}
.fau-home-lookup-field {
    display: flex;
    align-items: center;
    background: #1a191a;
    border: 1px solid #655944;
}
.fau-home-lookup-field:focus-within {
    outline: 2px solid #d4b77d;
    outline-offset: 2px;
}
.fau-home-lookup-field > svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-inline-start: 12px;
    color: #ccb48a;
}
.fau-home-lookup-field input[type=search] {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--fau-text);
    font: inherit;
    padding: 8px 12px;
}
.fau-home-lookup-field input[type=search]:focus { outline: 0; }
.fau-home-lookup .fau-button { margin: 0; min-height: 40px; }
@media (max-width: 650px) {
    .fau-home-lookup form {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        padding: 12px;
    }
    .fau-home-lookup label { grid-column: 1 / -1; }
    .fau-home-lookup .fau-button { padding-inline: 12px; }
}

/* The pin coordinates use the original 4:3 world map. */
.fau-home .fau-world { container-type: inline-size; }
.fau-home-map {
    position: absolute;
    inset: 0 0 auto;
    width: 100%;
    aspect-ratio: 4 / 3;
}
.fau-home-map > img { display: block; width: 100%; height: 100%; }
.fau-home .fau-world-view::after { pointer-events: none; }
.fau-home .fau-world-copy { right: auto; max-width: 65%; pointer-events: none; }
.fau-home .fau-world-copy a { pointer-events: auto; }
.fau-home-pins a {
    position: absolute;
    z-index: 2;
    transform: translate(-50%, -100%);
    padding: 5px 10px;
    border: 1px solid #ac9368;
    background: #211e1bec;
    box-shadow: 0 2px 4px #0009;
    color: #fff0cb;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
}
.fau-home-pins a::after {
    content: "";
    position: absolute;
    top: 100%;
    left: calc(50% - 4px);
    border: 4px solid transparent;
    border-top-color: #b79c6c;
}
.fau-home-pins .pin-semos { left: 30%; top: 24%; }
.fau-home-pins .pin-ados { left: 84%; top: 30%; }
.fau-home-pins .pin-athor { left: 88%; top: 61.5%; }
.fau-home-pins a:hover, .fau-home-pins a:focus-visible { background: #483b29; color: white; }
@container (max-width: 620px) {
    .fau-home .fau-world-view { display: flex; flex-direction: column; min-height: 0; background: #252222; }
    .fau-home-map { position: relative; }
    .fau-home .fau-world-view::after { display: none; }
    .fau-home .fau-world-copy { position: relative; inset: auto; max-width: none; padding: 18px; }
    .fau-home .fau-world-copy h1 { font-size: 30px; margin-bottom: 10px; }
    .fau-home .fau-world-copy h1 br { display: none; }
    .fau-home .fau-world-copy > p:not(.fau-eyebrow) { margin-bottom: 14px; }
}
.fau-destination-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.fau-destination-grid > section { min-width: 0; }
.fau-destination-grid .fau-titlebar a { color: #f3e9d4; font: inherit; }
.fau-home-scene {
    position: relative;
    isolation: isolate;
    display: block;
    height: 116px;
    overflow: hidden;
    background: #242525;
    border-bottom: 1px solid #62553e;
}
.fau-home-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #151411de, transparent 72%);
    pointer-events: none;
}
.fau-home-scene > strong {
    position: absolute;
    z-index: 1;
    bottom: 8px;
    left: 13px;
    right: 9px;
    font-size: 13px;
    line-height: 1.35;
    color: #fff5df;
    text-shadow: 0 1px 3px #000;
}
.fau-home-scene:hover strong { text-decoration: underline; }
.fau-home-scene .scene-map, .fau-home-house .fh-door-crop,
.fau-home-house .fh-door-crop > :is(img, svg) { display: block; width: 100%; height: 100%; object-fit: cover; }
.fau-home-house.has-plan .fh-door-crop { width: 74%; }
.fau-home-house .fh-door-crop > img { object-position: center 64%; }
.fau-home-house.has-plan > strong { right: 34%; }
.fau-home-house .house-plan {
    position: absolute;
    z-index: 1;
    inset: 0 0 0 auto;
    width: 33%;
    padding: 5px 4px 3px;
    background: #221f20;
    border-left: 1px solid #847356;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    text-align: center;
}
.house-plan img { width: 100%; height: 100%; object-fit: contain; }

.fau-home-traders { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #655c4b; }
.fau-home-trader .scene-map { opacity: .58; }
.trader-sprite {
    position: absolute;
    z-index: 1;
    top: 9px;
    left: 12px;
    width: 52px;
    height: 65px;
    background: center 66.6667% / 300% 400% no-repeat;
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 2px #18150f);
}
.fau-destination-links {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 13px;
    align-items: center;
    padding: 10px 13px 12px;
}
.fau-destination-links a { display: inline-flex; align-items: center; gap: 3px; color: #dfc690; font-size: 12px; min-height: 26px; }
.fau-destination-links .destination-main { flex-basis: 100%; font-size: 15px; font-weight: 700; color: #f4e8ce; }
.fau-destination-links .fau-nav-art-wawel { width: 24px; height: 24px; }
.fau-destination-links a:hover, .fau-destination-links a:focus-visible { text-decoration: underline; }
.fau-home-destinations a:focus-visible, .fau-home-pins a:focus-visible { outline: 2px solid #ffdc8e; outline-offset: -2px; }
@media (max-width: 790px) {
    .fau-destination-grid { grid-template-columns: 1fr; gap: 12px; }
    .fau-home-scene { height: 100px; }
    .fau-destination-links { gap: 2px 16px; }
    .fau-destination-links a { min-height: 32px; }
    .trader-sprite { width: 44px; height: 55px; top: 5px; }
}

.fau-home .fau-game-layout {
    grid-template-areas: "world handbook" "lookup lookup" "destinations destinations";
    row-gap: 0;
    reading-flow: grid-rows;
}
.fau-game-layout > .fau-world { grid-area: world; }
.fau-game-layout > .fau-side-stack { grid-area: handbook; }
.fau-game-layout > .fau-home-destinations { grid-area: destinations; }
.fau-game-layout > .fau-home-lookup {
    grid-area: lookup;
    overflow: visible;
    position: relative;
    z-index: 3;
}
.fau-home-lookup-field { position: relative; }
#fau-home-suggestions {
    position: absolute;
    top: calc(100% + 3px);
    inset-inline: -1px;
    z-index: 1;
    padding: 3px;
    background: #211f20;
    border: 1px solid #8b7755;
    box-shadow: 0 6px 14px #100f0dcc;
}
#fau-home-suggestions[hidden] { display: none; }
#fau-home-suggestions a {
    display: grid;
    grid-template-columns: 34px minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    min-height: 46px;
    line-height: 1.3;
    color: #f1e3c8;
}
#fau-home-suggestions a + a { border-top: 1px solid #524939; }
#fau-home-suggestions a:hover, #fau-home-suggestions [aria-selected=true] { background: #443a2e; }
#fau-home-suggestions strong { font-size: 14px; overflow-wrap: anywhere; }
#fau-home-suggestions small { font-size: 11px; color: #cfbfa2; }
.fau-hint-art { width: 34px; height: 34px; overflow: hidden; }
.fau-hint-art img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.fau-hint-art.is-item img { width: auto; max-width: none; }
.fau-hint-art.is-sheet { background: center 66.6667% / 300% 400% no-repeat; image-rendering: pixelated; }
.fau-home-island { background: #20458a; }
.fau-home-island .scene-map { object-fit: contain; object-position: 76% center; }
.fau-home-island::after { background: linear-gradient(90deg,#102648bd 0%, transparent 68%); }
@media (max-width: 700px) {
    .fau-home .fau-game-layout {
        grid-template-columns: minmax(0,1fr);
        grid-template-areas: "world" "lookup" "destinations" "handbook";
    }
    .fau-game-layout > .fau-side-stack { margin-top: 18px; }
    .fau-side-stack > .fau-community { display: none; }
    .fau-home-lookup form { position: relative; }
    .fau-home-lookup-field { position: static; }
    #fau-home-suggestions { top: calc(100% - 4px); inset-inline: 9px; }
}


