/* Unlike disabled controls, unreached services do not compete for attention. */
.town-feature-hidden { display: none !important; }
.guild-unlocks { grid-column: 1 / -1; margin: 0; color: var(--parchment); font-size: 12px; line-height: 1.5; }

/* A service or ware the NEXT Guild rank opens (js/ui/town-progression.js):
 * there, dimmed, with a lock and the rank's name. It is still a button - a
 * click, tap or keyboard focus explains it - so it keeps its cursor and focus
 * ring and only gives up its colour. */
.town-lock { display: inline-flex; align-items: center; gap: 4px; min-width: 0; color: #c9b48c; font: 600 11px/1.25 "Segoe UI", system-ui, sans-serif; letter-spacing: 0; white-space: nowrap; }
.town-lock .town-lock-icon { width: 14px; height: 14px; stroke-width: 2; }
.town-feature-locked { color: var(--muted); }

/* The painted town: the building darkens under its outline, and its label
 * takes a second line for the lock. */
.city-hotspot.town-feature-locked .hotspot-outline { opacity: 1; stroke: rgba(201, 180, 140, .28); stroke-dasharray: 5 4; fill: rgba(11, 13, 16, .34); filter: none; }
.city-hotspot.town-feature-locked:hover .hotspot-outline, .city-hotspot.town-feature-locked:focus-visible .hotspot-outline { stroke: rgba(233, 202, 143, .6); }
.city-hotspot.town-feature-locked .hotspot-label { flex-direction: column; gap: 1px; color: #b7ab94; background: rgba(11, 13, 16, .74); border-color: rgba(153, 143, 120, .4); }
.city-hotspot.town-feature-locked:hover .hotspot-label, .city-hotspot.town-feature-locked:focus-visible .hotspot-label { color: #d8ccb2; border-color: rgba(201, 180, 140, .7); }
.city-hotspot.town-feature-locked .town-lock { font-size: clamp(10px, 1.5cqh, 12px); }
/* The Strongbox and the Forge stand at the painting's right edge; the lock's
 * longer line would hang off it on a small phone, so their labels keep to
 * the building's right-hand side instead of its centre. */
.city-hotspot.town-feature-locked:is([data-hotspot="storage"], [data-hotspot="tinker"]) .hotspot-label { left: auto; right: 2%; transform: none; align-items: flex-end; }

/* The upright phone's list of services (city-scene.css): a dimmed row with a
 * dashed edge, its label centred like every other row's. */
@media (max-width:700px) and (orientation:portrait), (max-width:560px) {
  .city-hotspot.town-feature-locked { background: #181b1d; outline-style: dashed; outline-color: rgba(111, 75, 34, .8); }
  .city-hotspot.town-feature-locked .hotspot-label,
  .city-hotspot.town-feature-locked:is([data-hotspot="storage"], [data-hotspot="tinker"]) .hotspot-label { align-items: center; background: none; border: 0; }
}

/* A flyout entry (Forge, Lucky Wheel, Bounties): the lock under its name. */
.hotspot-flyout button.town-feature-locked { color: var(--muted); background-color: rgba(255, 255, 255, .02); outline-style: dashed; outline-color: rgba(111, 75, 34, .8); }
.hotspot-flyout button.town-feature-locked > .px-icon, .hotspot-flyout button.town-feature-locked > .kbd { opacity: .55; }
.hotspot-flyout button.town-feature-locked > .town-lock { grid-column: 2; grid-row: 2; }

/* A Forge tab. */
.forge-tabs button.town-feature-locked { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: var(--muted); border-style: dashed; line-height: 1.2; }
.forge-tabs button.town-feature-locked .town-lock { font-size: 10px; }

/* A shop row: the row is dimmed by .rank-locked (guild.css); the lock sits
 * under the item's name, where a refusal reason would. */
.shop-item-info > .town-lock { align-self: flex-start; margin-top: 2px; }
.shop-item.rank-locked button.town-feature-locked { cursor: pointer; }

/* What a locked control says when asked. One note for the page, beside the
 * control, in the flyout's frame. */
.town-locked-note { position: fixed; z-index: 140; width: min(280px, calc(var(--safe-vw) - 16px)); box-sizing: border-box; padding: 10px 12px; color: var(--parchment); background: var(--panel); border: 2px solid var(--gold); border-radius: 2px; box-shadow: var(--pixel-shadow); pointer-events: none; font: 400 12px/1.45 "Segoe UI", system-ui, sans-serif; text-align: left; }
.town-locked-note[hidden] { display: none; }
.town-locked-note p { margin: 0; }
.town-locked-note p + p { margin-top: 6px; }
.town-locked-note-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 10px; }
.town-locked-note-title strong { color: #fff0c9; font-size: 13px; }
.town-locked-note-need { color: #d6be94; }
