#atlas-more-menu #atlas-properties-button {
    color: #c9faff; border: 1px solid #4bb7d388; border-radius: 8px;
    background: radial-gradient(circle at 50% 25%, #215d7a, transparent 70%), linear-gradient(135deg, #14283d, #101323);
    box-shadow: inset 0 1px #c9faff2e, 0 0 8px #41cde633;
}
#atlas-more-menu .properties-menu-icon { display: block; width: 25px; height: 25px; flex: none; filter: drop-shadow(0 1px 3px #000b); }
#atlas-more-menu #atlas-properties-button:is(:hover, :focus-visible) {
    border-color: #a6f6ff; background: linear-gradient(135deg, #235c76, #17253f);
    box-shadow: inset 0 1px #c9faff45, 0 0 12px #41cde670;
}
#atlas-properties-mode {
    --gold-hi: #fff1c4; --gold: #f0cf86; --gold-mid: #c99b4b; --gold-lo: #6f5022; --ink: #f6ead0; --muted: #b9a37a;
    position: fixed; inset: 70px 0 0; z-index: 16000; display: flex; flex-direction: column;
    overflow: hidden; color: var(--ink); color-scheme: dark; font: 13px/1.5 "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at 8% 22%, #fff7 0 .7px, transparent 1.3px),
        radial-gradient(circle at 23% 71%, #ffe9b580 0 .8px, transparent 1.4px),
        radial-gradient(circle at 41% 38%, #fff6 0 .6px, transparent 1.2px),
        radial-gradient(circle at 63% 84%, #fff5 0 .7px, transparent 1.3px),
        radial-gradient(circle at 77% 29%, #ffeab890 0 .9px, transparent 1.5px),
        radial-gradient(circle at 92% 63%, #fff6 0 .6px, transparent 1.2px),
        radial-gradient(ellipse 70% 45% at 50% 0, #6a4b1f66, transparent 70%),
        radial-gradient(ellipse 50% 60% at 0 100%, #3c1f4a55, transparent 70%),
        radial-gradient(ellipse 50% 60% at 100% 90%, #123f4c55, transparent 70%),
        linear-gradient(180deg, #16130d, #0d0c0a);
    background-size: 340px 340px, 420px 420px, 380px 380px, 460px 460px, 300px 300px, 400px 400px, auto, auto, auto, auto;
}
#atlas-properties-mode * { box-sizing: border-box; }
#atlas-properties-mode { cursor: var(--atlas-default-cursor, default); }
#atlas-properties-mode button:not(:disabled) { cursor: var(--atlas-pointer-cursor, pointer); }
#atlas-properties-mode[hidden] { display: none !important; }
#atlas-properties-mode :focus-visible { outline: 2px solid #ffe4aa; outline-offset: 3px; }

/* Masthead */
.properties-masthead {
    position: relative; isolation: isolate; flex: none;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr);
    align-items: center; gap: clamp(10px, 2vw, 24px); padding: 14px clamp(12px, 3vw, 36px) 16px;
    background:
        radial-gradient(ellipse 40% 140% at 50% 0, #f0cf8633, transparent 70%),
        radial-gradient(circle at 5% 30%, #fff8 0 .7px, transparent 1.2px),
        radial-gradient(circle at 24% 78%, #ffe3a080 0 .6px, transparent 1.1px),
        radial-gradient(circle at 77% 22%, #fff8 0 .7px, transparent 1.2px),
        radial-gradient(circle at 95% 74%, #ffe3a090 0 .6px, transparent 1.1px),
        linear-gradient(180deg, #2b2214, #18140d);
    box-shadow: inset 0 1px #ffe8ad30, 0 10px 30px #000a;
}
.properties-masthead::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(100deg, transparent 30%, #ffe7a91a 45%, #fff3d02e 50%, #ffe7a91a 55%, transparent 70%) 0 0 / 250% 100%;
    animation: properties-sheen 9s ease-in-out infinite;
}
.properties-masthead::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--gold-lo) 12%, var(--gold) 40%, var(--gold-hi) 50%, var(--gold) 60%, var(--gold-lo) 88%, transparent);
    box-shadow: 0 0 12px #f0cf8680;
}
.properties-back, .properties-retry {
    justify-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px;
    border: 1px solid transparent; border-radius: 999px; color: #ffe4aa; font: 700 12px "Segoe UI", sans-serif; letter-spacing: .06em;
    background: linear-gradient(135deg, #3d321e, #1d1912) padding-box,
        linear-gradient(135deg, var(--gold-hi), var(--gold-lo) 45%, var(--gold) 100%) border-box;
    box-shadow: 0 4px 14px #0007, inset 0 1px #ffe8ad30;
    cursor: var(--atlas-pointer-cursor, pointer); white-space: nowrap; transition: box-shadow .25s, filter .25s;
}
.properties-back span { display: inline-block; transition: transform .25s; }
.properties-back:is(:hover, :focus-visible), .properties-retry:is(:hover, :focus-visible) {
    filter: brightness(1.18); box-shadow: 0 4px 18px #0008, 0 0 16px #f0cf8655, inset 0 1px #ffe8ad40;
}
.properties-back:is(:hover, :focus-visible) span { transform: translateX(-3px); }
.properties-title { min-width: 0; text-align: center; }
.properties-title h2 {
    display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0;
    font: 800 clamp(18px, 2.2vw, 30px)/1.15 "Trebuchet MS", "Segoe UI", sans-serif; letter-spacing: .14em;
    color: var(--gold);
    background: linear-gradient(100deg, #b8873e 0%, #f7dc97 22%, #fff6d8 32%, #e6bd6a 44%, #a87830 58%, #f4d38c 76%, #fff1c4 86%, #c39448 100%) 0 0 / 220% 100%;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 0 #3a2710) drop-shadow(0 0 14px #f0cf8650);
    animation: properties-gilt 7s linear infinite;
}
.properties-title h2::before, .properties-title h2::after {
    content: ''; flex: none; width: clamp(28px, 4vw, 64px); height: 9px;
    background: radial-gradient(circle, var(--gold-hi) 0 2px, transparent 2.5px) center / 9px 9px no-repeat,
        linear-gradient(90deg, transparent, var(--gold)) center / 100% 1px no-repeat;
}
.properties-title h2::after { transform: scaleX(-1); }
.properties-title p {
    display: inline-flex; align-items: center; gap: 8px; margin: 7px 0 0; padding: 3px 14px;
    color: #e6d1a3; font-size: 10.5px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
    border-block: 1px solid #f0cf8640; background: linear-gradient(90deg, transparent, #f0cf8614, transparent);
}
.properties-title p span { color: var(--gold); text-shadow: 0 0 8px #f0cf86; letter-spacing: 0; }
.properties-count {
    position: relative; overflow: hidden; justify-self: end; display: grid; place-items: center; min-width: 112px; padding: 7px 18px 8px;
    border: 1.5px solid transparent; border-radius: 10px; color: #f2d89f;
    background: radial-gradient(ellipse at 50% 0, #6b532c, #2a2216 70%) padding-box,
        linear-gradient(145deg, var(--gold-hi), var(--gold-lo) 35%, var(--gold) 60%, #5c421c 85%, var(--gold-hi)) border-box;
    box-shadow: 0 6px 20px #000a, 0 0 22px #f0cf8630, inset 0 0 0 3px #1a140c, inset 0 0 0 4px #f0cf8633;
}
.properties-count::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg, transparent 35%, #fff4d455 50%, transparent 65%) 0 0 / 300% 100%;
    animation: properties-sheen 5s ease-in-out infinite;
}
.properties-count strong {
    font: 800 30px/1 "Trebuchet MS", "Segoe UI", sans-serif;
    background: linear-gradient(180deg, #fff8e0, #f0cf86 55%, #b07f36);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px #f0cf8670);
}
.properties-count span { margin-top: 3px; padding-top: 3px; border-top: 1px solid #f0cf8644; font-size: 9px; font-weight: 800; letter-spacing: .2em; }

/* Scroll area and portfolio summary */
.properties-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    padding: 18px clamp(12px, 3vw, 36px) 36px; scrollbar-color: #806b43 #1c1912; scrollbar-width: thin; }
.properties-summary {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 auto 4px;
    animation: properties-rise .6s cubic-bezier(.2, .8, .2, 1) both;
}
.properties-summary[hidden] { display: none; }
.properties-stat {
    --stat: var(--gold); position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
    column-gap: 12px; align-items: center; padding: 10px 14px; overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--stat) 40%, transparent); border-radius: 10px;
    background: radial-gradient(ellipse at 0 50%, color-mix(in srgb, var(--stat) 20%, transparent), transparent 70%), linear-gradient(135deg, #241e14, #121010);
    box-shadow: inset 0 1px #ffffff10, 0 6px 18px #0007;
}
.properties-stat::after { content: ''; position: absolute; left: 14px; right: 14px; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--stat), transparent); opacity: .7; }
.properties-stat strong { grid-column: 2; font: 800 22px/1.1 "Trebuchet MS", "Segoe UI", sans-serif; color: #fff4dc;
    text-shadow: 0 0 14px color-mix(in srgb, var(--stat) 60%, transparent); font-variant-numeric: tabular-nums; }
.properties-stat-label { grid-column: 2; color: color-mix(in srgb, var(--stat) 70%, #d9c8a8); font-size: 9.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.properties-stat-icon {
    grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--stat) 55%, transparent);
    background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--stat) 85%, #fff), color-mix(in srgb, var(--stat) 50%, #000) 70%);
    box-shadow: 0 0 14px color-mix(in srgb, var(--stat) 45%, transparent), inset 0 -3px 6px #0006;
}
.properties-stat[data-kind="worlds"] { --stat: #9fd7ff; }
.properties-stat[data-kind="worlds"] .properties-stat-icon {
    background: radial-gradient(ellipse 120% 30% at 50% 55%, transparent 46%, #e9f6ff 48% 53%, transparent 55%),
        radial-gradient(circle at 35% 30%, #d7f0ff, #3a7fb3 60%, #102840); }
.properties-stat[data-kind="tiles"] { --stat: #f0cf86; }
.properties-stat[data-kind="tiles"] .properties-stat-icon { border-radius: 4px; transform: rotate(45deg) scale(.82);
    background: conic-gradient(from 45deg, #fff1c4 0 25%, #c99b4b 0 50%, #f0cf86 0 75%, #8d6428 0); }
.properties-stat[data-kind="structures"] { --stat: #d9a7ff; }
.properties-stat[data-kind="structures"] .properties-stat-icon { border-radius: 6px 6px 3px 3px;
    background: linear-gradient(#0000 55%, #2c1b3e 55% 60%, #0000 60%), linear-gradient(90deg, #0000 40%, #2c1b3e 40% 60%, #0000 60%) 0 0 / 100% 55% no-repeat,
        linear-gradient(160deg, #f1dcff, #8c55c2 70%); }
.properties-stat[data-kind="coins"] { --stat: #ffcf4d; }
.properties-stat[data-kind="coins"] .properties-stat-icon {
    background: radial-gradient(circle, #0000 52%, #a26d12 53% 58%, #0000 59%), radial-gradient(circle at 35% 30%, #fff3b0, #f2b22a 55%, #8a5a0d); }
.properties-stat[data-kind="minerals"] { --stat: #b78bff; }
.properties-stat[data-kind="minerals"] .properties-stat-icon { border-radius: 3px; clip-path: polygon(50% 0, 100% 38%, 80% 100%, 20% 100%, 0 38%);
    background: linear-gradient(150deg, #f3e6ff, #b78bff 40%, #5a2fa0 75%, #2c1660); }
.properties-stat[data-kind="water"] { --stat: #6fd8ff; }
.properties-stat[data-kind="water"] .properties-stat-icon { border-radius: 50% 0 50% 50%; transform: rotate(-45deg) scale(.85);
    background: radial-gradient(circle at 35% 35%, #e6fbff, #3fb7e6 55%, #0d4f75); }
.properties-intro {
    display: flex; align-items: center; justify-content: center; gap: 16px; margin: 18px 0 20px;
    color: #dcc596; font: italic 500 14px/1.3 Georgia, "Times New Roman", serif; letter-spacing: .05em; text-align: center;
}
.properties-intro::before, .properties-intro::after {
    content: ''; flex: 1 1 0; max-width: 260px; height: 9px;
    background: radial-gradient(circle, var(--gold) 0 2px, transparent 2.5px) right center / 9px 9px no-repeat,
        linear-gradient(90deg, transparent, #f0cf8699) left center / calc(100% - 12px) 1px no-repeat;
}
.properties-intro::after { transform: scaleX(-1); }
.properties-status { margin: 10px 0 0; color: #c3b18c; }
.properties-status:empty { display: none; }
.properties-status.is-error { color: #ffba9e; }
.properties-retry { margin-left: 8px; padding: 5px 12px; }

/* Property deed cards */
.properties-worlds { display: grid; gap: 28px; }
.properties-world { min-width: 0; }
.properties-world-heading {
    display: flex; align-items: center; gap: 12px; min-width: 0; margin-bottom: 12px; padding: 8px 14px;
    border: 1px solid color-mix(in srgb, var(--world-color) 45%, #8d6b36); border-radius: 8px;
    background: radial-gradient(ellipse at 0 50%, color-mix(in srgb, var(--world-color) 23%, transparent), transparent 55%),
        linear-gradient(105deg, #302519, #16120e 70%, #271e12);
    box-shadow: inset 0 1px #ffefc526, 0 6px 18px #0007;
}
.properties-world-orb {
    flex: none; width: 25px; height: 25px; border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #fff8, transparent 20%), radial-gradient(circle at 35% 30%, var(--world-color), #171321 78%);
    box-shadow: 0 0 14px color-mix(in srgb, var(--world-color) 55%, transparent), inset -3px -3px 6px #0009;
}
.properties-world-name { flex: 0 1 auto; min-width: 0; margin: 0; color: var(--world-color);
    font: 700 clamp(15px, 1.6vw, 21px)/1.2 "Trebuchet MS", "Segoe UI", sans-serif; letter-spacing: .04em;
    overflow-wrap: anywhere; text-shadow: 0 1px 2px #000, 0 0 14px color-mix(in srgb, var(--world-color) 45%, transparent); }
.properties-world-rule { flex: 1; min-width: 12px; height: 1px; background: linear-gradient(90deg, var(--world-color), #f0cf8655, transparent); }
.properties-world-count { flex: none; color: #e5c992; font: 700 10px "Segoe UI", sans-serif; letter-spacing: .14em; }
#atlas-properties-mode .bhm-owned-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(14px, 1.6vw, 22px); }
#atlas-properties-mode .properties-card {
    --frame: color-mix(in srgb, var(--tile-color, #f0cf86) 35%, #c99b4b);
    position: relative; isolation: isolate; cursor: var(--atlas-default-cursor, default); border: 1.5px solid transparent; border-radius: 14px;
    background: radial-gradient(ellipse 90% 40% at 50% 100%, color-mix(in srgb, var(--tile-color, #f0cf86) 10%, transparent), transparent 70%) padding-box,
        linear-gradient(165deg, #2a2216, #15120d 55%, #110f0c) padding-box,
        linear-gradient(150deg, var(--gold-hi), var(--gold-lo) 22%, var(--frame) 48%, var(--gold-lo) 74%, var(--gold) 100%) border-box;
    box-shadow: 0 18px 44px #000b, 0 0 0 1px #0009, 0 0 26px color-mix(in srgb, var(--tile-color, #f0cf86) 10%, transparent);
    animation: properties-rise .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--card-index, 0) * 90ms + 120ms);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}
#atlas-properties-mode .properties-card:is(:hover, :focus-within) {
    transform: translateY(-5px); border-color: transparent;
    box-shadow: 0 28px 56px #000d, 0 0 0 1px #0009, 0 0 38px color-mix(in srgb, var(--tile-color, #f0cf86) 28%, transparent);
}
#atlas-properties-mode .properties-card::after {
    content: ''; position: absolute; inset: 6px; z-index: 5; pointer-events: none; border-radius: 9px; opacity: .8;
    --c: #f3d58cd0;
    background:
        linear-gradient(var(--c), var(--c)) top left / 18px 1.5px, linear-gradient(var(--c), var(--c)) top left / 1.5px 18px,
        linear-gradient(var(--c), var(--c)) top right / 18px 1.5px, linear-gradient(var(--c), var(--c)) top right / 1.5px 18px,
        linear-gradient(var(--c), var(--c)) bottom left / 18px 1.5px, linear-gradient(var(--c), var(--c)) bottom left / 1.5px 18px,
        linear-gradient(var(--c), var(--c)) bottom right / 18px 1.5px, linear-gradient(var(--c), var(--c)) bottom right / 1.5px 18px;
    background-repeat: no-repeat;
}
#atlas-properties-mode .properties-card::before {
    content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none; mix-blend-mode: screen;
    background: linear-gradient(105deg, transparent 38%, #fff1c41f 46%, #ffffff33 50%, #fff1c41f 54%, transparent 62%);
    transform: translateX(-110%); transition: transform 1.1s cubic-bezier(.2, .8, .2, 1);
}
#atlas-properties-mode .properties-card:hover::before { transform: translateX(110%); }
#atlas-properties-mode .bhm-card-heading {
    position: relative; gap: 10px; min-height: 58px; padding: 11px 14px; border: 0;
    background: radial-gradient(ellipse at 0 0, color-mix(in srgb, var(--tile-color, #f0cf86) 22%, transparent), transparent 60%),
        linear-gradient(110deg, #4a3b22, #241e14 70%);
    box-shadow: inset 0 1px #ffe8ad30, inset 0 -1px #f0cf8640;
}
#atlas-properties-mode .bhm-owned-code {
    padding: 3px 9px; border: 1px solid color-mix(in srgb, var(--tile-color, #f0cf86) 70%, transparent); border-radius: 6px;
    font: 800 15px/1.2 "Trebuchet MS", "Segoe UI", sans-serif; letter-spacing: .12em;
    background: linear-gradient(145deg, color-mix(in srgb, var(--tile-color, #f0cf86) 22%, #120f0a), #0f0d09);
    box-shadow: 0 0 14px color-mix(in srgb, var(--tile-color, #f0cf86) 35%, transparent), inset 0 1px #ffffff20;
}
#atlas-properties-mode .bhm-owned-world { overflow-wrap: anywhere; white-space: normal; color: #ffe4aa;
    font: 700 16px/1.2 "Trebuchet MS", "Segoe UI", sans-serif; letter-spacing: .03em; text-shadow: 0 1px 0 #000, 0 0 14px #0008; }
#atlas-properties-mode .bhm-world-badge { border-radius: 999px; padding: 4px 10px; font-size: 10px; font-weight: 700; letter-spacing: .06em;
    box-shadow: 0 0 12px color-mix(in srgb, var(--world-accent) 20%, transparent); }
#atlas-properties-mode .bhm-owned-visual {
    height: clamp(180px, 17vw, 250px);
    border-bottom: 0; box-shadow: inset 0 -1px #f0cf8655;
}
#atlas-properties-mode .bhm-owned-visual::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at 50% 50%, transparent 58%, #0007 100%), linear-gradient(180deg, transparent 75%, #120f0bd0);
}
#atlas-properties-mode .bhm-owned-state {
    z-index: 2; top: 10px; right: 10px; padding: 4px 10px 4px 9px; border-radius: 3px;
    color: #2a1d08; font: 900 9px/1.2 "Segoe UI", sans-serif; letter-spacing: .22em;
    background: linear-gradient(135deg, #fff1c4, #e3b665 45%, #b8873e 70%, #f6d895);
    box-shadow: 0 3px 10px #000a, 0 0 14px #f0cf8660, inset 0 1px #fff8;
}
#atlas-properties-mode .bhm-owned-state::before { content: '\25C6\00A0'; font-size: 7px; vertical-align: 1px; }
#atlas-properties-mode .properties-card[data-listed="true"] .bhm-owned-state { color: #fff; background: linear-gradient(135deg, #c58cff, #7a44b8); }
#atlas-properties-mode .bhm-owned-body { padding: 12px 14px 14px; }
#atlas-properties-mode .bhm-owned-location { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #f0cf8630; }
#atlas-properties-mode .bhm-owned-host > span { color: var(--muted); letter-spacing: .16em; }
#atlas-properties-mode .bhm-owned-distance { color: #e7d6b2; font-weight: 600; }
#atlas-properties-mode .bhm-owned-environment { color: #bfe5ef; }
#atlas-properties-mode .bhm-owned-coordinates { color: #c9b994; }
#atlas-properties-mode .bhm-owned-navigation { flex-wrap: wrap; }
#atlas-properties-mode .bhm-owned-facts { gap: 0; padding: 4px 12px; border: 1px solid #f0cf8626; border-radius: 9px; background: linear-gradient(180deg, #0000002e, #00000014); }
#atlas-properties-mode .bhm-owned-facts > div { grid-template-columns: 104px minmax(0, 1fr); padding: 6px 0; }
#atlas-properties-mode .bhm-owned-facts > div + div { border-top: 1px dashed #f0cf8622; }
#atlas-properties-mode .bhm-owned-facts dt { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
#atlas-properties-mode .bhm-owned-facts dd { color: var(--ink); font-size: 12px; font-weight: 600; }
#atlas-properties-mode .bhm-owned-facts > div:first-child dd { color: #ffd98a; text-shadow: 0 0 10px #f0cf8655; }
#atlas-properties-mode .bhm-card-actions { gap: 8px; padding-top: 12px; }
#atlas-properties-mode .bhm-card-actions button {
    min-height: 36px; border: 1px solid transparent; border-radius: 8px; color: #ffe4aa; letter-spacing: .08em; text-transform: uppercase;
    background: linear-gradient(135deg, #3b2f1c, #1b1711) padding-box, linear-gradient(135deg, #f0cf86aa, #6f502266 50%, #f0cf86aa) border-box;
    box-shadow: inset 0 1px #ffe8ad22, 0 4px 12px #0006; transition: filter .2s, box-shadow .2s;
}
#atlas-properties-mode .bhm-card-actions button:is(:hover, :focus-visible) { filter: brightness(1.25); box-shadow: inset 0 1px #ffe8ad33, 0 0 16px #f0cf8644; }
.properties-profile-status { padding: 10px 16px; margin: 0; color: #ffe4aa; background: #302819; font-size: 12px; }
#atlas-properties-mode > .properties-profile-status { flex: none; }
.properties-preview-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #c3b18c; font-size: 10px; letter-spacing: .1em; }
.properties-host { margin: 0 0 5px; font-size: 10px; overflow-wrap: anywhere; }

/* Production panel */
.properties-details { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
    margin-top: 12px; padding: 9px 10px; border: 1px solid #f0cf8630; border-radius: 9px;
    background: linear-gradient(135deg, #f0cf860d, #0000 60%), #0000002a; box-shadow: inset 0 1px #ffffff08; }
.properties-building { color: #f2e6cf; }
.properties-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.properties-badge {
    --chip: #f0cf86; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 7px;
    border: 1px solid color-mix(in srgb, var(--chip) 45%, transparent); border-radius: 999px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--chip) 18%, #0f0d0a), #0f0d0a);
    color: color-mix(in srgb, var(--chip) 85%, #fff); font-size: 10px; font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums;
}
.properties-badge::before { content: ''; flex: none; width: 11px; height: 11px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, var(--chip) 60%, color-mix(in srgb, var(--chip) 40%, #000)); }
.properties-badge[data-kind="level"] { --chip: #e8c3ff; }
.properties-badge[data-kind="level"]::before { border-radius: 0; clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 80% 100%, 50% 78%, 20% 100%, 30% 60%, 0 38%, 38% 35%); }
.properties-badge[data-kind="coins"] { --chip: #ffcf4d; }
.properties-badge[data-kind="coins"]::before { box-shadow: inset 0 0 0 1.5px #a26d12; }
.properties-badge[data-kind="minerals"] { --chip: #b98cff; }
.properties-badge[data-kind="minerals"]::before { border-radius: 1px; clip-path: polygon(50% 0, 100% 38%, 80% 100%, 20% 100%, 0 38%); }
.properties-badge[data-kind="water"] { --chip: #6fd8ff; }
.properties-badge[data-kind="water"]::before { border-radius: 50% 0 50% 50%; transform: rotate(-45deg) scale(.9); }
.properties-badge[data-ready="true"] { animation: properties-ready 2.6s ease-in-out infinite; }
.properties-observe { flex: none; color: var(--property-color, #a9f6ef); }

@keyframes properties-gilt { to { background-position: -220% 0; } }
@keyframes properties-sheen { 0%, 35% { background-position: 120% 0; } 75%, 100% { background-position: -40% 0; } }
@keyframes properties-rise { from { opacity: 0; translate: 0 16px; scale: .985; } to { opacity: 1; translate: none; scale: none; } }
@keyframes properties-ready {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--chip) 0%, transparent); }
    50% { box-shadow: 0 0 14px 1px color-mix(in srgb, var(--chip) 55%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
    #atlas-properties-mode *, #atlas-properties-mode *::before, #atlas-properties-mode *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 600px) {
    .properties-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .properties-stat { grid-template-columns: auto minmax(0, 1fr); column-gap: 6px; padding: 7px 8px; border-radius: 8px; }
    .properties-stat-icon { grid-row: 1; width: 18px; height: 18px; }
    .properties-stat strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; }
    .properties-stat-label { grid-column: 1 / -1; margin-top: 2px; font-size: 7.5px; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .properties-intro { margin: 14px 0 16px; font-size: 13px; gap: 10px; }
    #atlas-properties-mode .properties-card:is(:hover, :focus-within) { transform: none; }
    #atlas-properties-mode .bhm-owned-facts > div { grid-template-columns: 112px minmax(0, 1fr); }
    #atlas-properties-mode .bhm-owned-facts dt { letter-spacing: .1em; white-space: nowrap; }
}
@media (max-width: 420px) {
    .properties-masthead { grid-template-columns: 58px minmax(0, 1fr) 64px; gap: 5px; padding: 10px 8px 12px; }
    .properties-back { gap: 4px; padding: 7px 9px; letter-spacing: .02em; }
    .properties-title h2 { gap: 0; font-size: 13px; letter-spacing: .05em; }
    .properties-title h2::before, .properties-title h2::after { display: none; }
    .properties-title p { gap: 3px; margin-top: 4px; padding: 2px 4px; font-size: 7.5px; letter-spacing: .12em; }
    .properties-count { min-width: 64px; padding: 5px 4px; border-radius: 8px; }
    .properties-count strong { font-size: 20px; }
    .properties-count span { font-size: 7px; letter-spacing: .06em; }
    .properties-scroll { padding-top: 12px; }
}
@media (max-width: 360px) {
    .properties-title h2 { font-size: 11.5px; letter-spacing: .03em; }
}
