
  /* One visual world (the terrace at sunset): single theme by choice. Layout: full-bleed 3D view, brand top-left, view chips along the bottom. */
  :root {
    color-scheme: dark;
    --espresso: #1d130e;
    --espresso-veil: rgba(29, 19, 14, 0.62);
    --sand: #efe3cf;
    --sand-dim: rgba(239, 227, 207, 0.72);
    --caramel: #c98d57;
    --line: rgba(239, 227, 207, 0.22);
    --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
    --body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  }
  html, body { height: 100%; margin: 0; background: var(--espresso); color: var(--sand); font-family: var(--body); overflow: hidden; }
  #view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; outline: none; filter: contrast(1.09) saturate(1.06); }
  #view:active { cursor: grabbing; }
  /* the apartments: minimap in the corner, and a tag over each unit in the view from above */
  #mini { position: fixed; right: 16px; bottom: 76px; width: 256px; padding: 8px 10px 9px; background: var(--espresso-veil); border: 1px solid var(--line); border-radius: 14px;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  #mini .fold { display: block; margin: 0 0 6px; padding: 2px 2px; border: 0; border-radius: 6px; background: none; color: var(--sand-dim); font: 500 10.5px/1.2 var(--body); letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; }
  #mini .fold::after { content: " –"; }
  #mini { transition: opacity 0.4s, visibility 0s; }
  #mini.aerial { opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0s 0.4s; }
  #mini.closed { width: auto; padding: 0; border: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  #mini.closed #minibody { display: none; }
  #mini.closed .fold { margin: 0; padding: 9px 14px; color: var(--sand); background: var(--espresso-veil); border: 1px solid var(--line); border-radius: 999px; }
  #mini.closed .fold::after { content: " +"; }
  #mini svg { display: block; width: 100%; height: auto; }
  #mini p { margin: 7px 2px 0; min-height: 1.3em; font-size: 12px; line-height: 1.3; color: var(--sand); }
  #mini .slab { fill: rgba(239, 227, 207, 0.1); }
  #mini .corr { fill: rgba(239, 227, 207, 0.26); }
  #mini .unit { cursor: pointer; outline: none; }
  #mini .unit path { fill: rgba(201, 141, 87, 0.28); stroke: rgba(239, 227, 207, 0.8); stroke-width: 0.16; stroke-linejoin: round; transition: fill 0.2s; }
  #mini .unit:nth-child(even) path { fill: rgba(201, 141, 87, 0.42); }
  #mini .unit:hover path, #mini .unit:focus-visible path { fill: rgba(239, 227, 207, 0.5); }
  #mini .unit.on path { fill: var(--caramel); }
  #mini .unit text { font: 500 1.9px var(--body); fill: var(--sand); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
  #mini .unit.on text { fill: var(--espresso); }
  #mini .me path { fill: rgba(255, 255, 255, 0.4); }
  #mini .me circle { fill: #fff; stroke: var(--espresso); stroke-width: 0.2; }
  #utags { position: fixed; inset: 0; pointer-events: none; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0s 0.4s; }
  #utags.on { opacity: 1; visibility: visible; transition: opacity 0.4s; }
  .utag { position: absolute; left: 0; top: 0; padding: 6px 12px 7px; text-align: center; white-space: nowrap; background: var(--espresso-veil); border: 1px solid var(--line); border-radius: 12px;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .utag b { display: block; font: 600 24px/1 var(--display); letter-spacing: 0.04em; }
  .utag small { display: block; margin-top: 3px; font-size: 11px; color: var(--sand-dim); }
  /* names of the landmarks outside, shown while they are in sight through an opening */
  #marcos { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
  .marco { position: absolute; left: 0; top: 0; opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0s 0.35s; will-change: transform; }
  .marco.on { visibility: visible; transition: opacity 0.35s; }
  .marco i { position: absolute; left: -5px; top: -5px; width: 8px; height: 8px; border: 1px solid var(--sand); border-radius: 50%; background: var(--caramel); box-shadow: 0 0 0 5px rgba(239, 227, 207, 0.2), 0 1px 8px rgba(0, 0, 0, 0.55); }
  .marco span { position: absolute; left: -0.5px; bottom: 5px; width: 1px; height: 40px; background: linear-gradient(to top, rgba(239, 227, 207, 0.9), rgba(239, 227, 207, 0.45)); box-shadow: 0 0 3px rgba(0, 0, 0, 0.5); }
  .marco p { position: absolute; left: 0; bottom: 0; margin: 0; padding: 7px 13px 8px; text-align: center; white-space: nowrap; background: var(--espresso-veil); border: 1px solid var(--line); border-radius: 12px;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .marco b { display: block; font: 500 13px/1.2 var(--body); letter-spacing: 0.02em; }
  /* the landmark is that way, but a neighbour or a hill stands in front of it */
  .marco.far i { background: rgba(29, 19, 14, 0.4); }
  .marco.far span { background: repeating-linear-gradient(to top, rgba(239, 227, 207, 0.85) 0 4px, rgba(239, 227, 207, 0) 4px 8px); box-shadow: none; }
  .marco.far p { border-style: dashed; border-color: rgba(239, 227, 207, 0.4); }
  .marco small { display: block; margin-top: 2px; font-size: 11px; line-height: 1.2; color: var(--sand-dim); }
  .vignette { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 46%, rgba(20, 10, 5, 0) 58%, rgba(20, 10, 5, 0.30) 100%); }
  .brand { position: fixed; left: 20px; top: 16px; pointer-events: none; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55); }
  .brand h1 { font: 600 34px/1 var(--display); letter-spacing: 0.16em; margin: 0; }
  .brand p { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; margin: 7px 0 0; color: var(--sand-dim); }
  .tools { position: fixed; right: 16px; top: 16px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; max-width: calc(100% - 190px); }
  #sunpanel { position: fixed; right: 16px; top: 64px; width: 264px; box-sizing: border-box; padding: 14px 16px 12px; background: var(--espresso-veil); border: 1px solid var(--line); border-radius: 16px;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 13px; }
  #sunpanel[hidden] { display: none; }
  #sunpanel label { display: flex; justify-content: space-between; color: var(--sand-dim); letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; margin: 0 0 6px; }
  #sunpanel output { color: var(--sand); font-variant-numeric: tabular-nums; letter-spacing: 0; font-size: 13px; }
  #sunpanel input[type=range] { width: 100%; margin: 0 0 14px; accent-color: var(--caramel); }
  #sunpanel select { width: 100%; font: 400 13px var(--body); color: var(--sand); background: rgba(29, 19, 14, 0.7); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
  #sunpanel p { margin: 12px 0 0; color: var(--sand-dim); font-size: 12px; line-height: 1.45; }
  #cross { position: fixed; left: 50%; top: 50%; width: 6px; height: 6px; margin: -4px 0 0 -4px; border: 1px solid rgba(239, 227, 207, 0.9); border-radius: 50%; box-shadow: 0 0 0 1px rgba(20, 10, 5, 0.45); pointer-events: none; display: none; }
  #lockhint { position: fixed; left: 50%; bottom: 78px; transform: translateX(-50%); font-size: 12px; color: var(--sand-dim); background: var(--espresso-veil); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
    pointer-events: none; white-space: nowrap; display: none; }
  body.locked #cross, body.locked #lockhint { display: block; }
  body.locked #hint { display: none; }
  body.locked .tools, body.locked #views, body.locked #levels, body.locked #sunpanel { opacity: 0.4; }
  #levels { position: fixed; left: 20px; top: 84px; display: flex; gap: 6px; }
  #levels button { padding: 8px 13px; font-size: 12px; letter-spacing: 0.08em; }
  #views button[hidden] { display: none; }
  #busy { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 13px; background: var(--espresso-veil); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; }
  #busy[hidden] { display: none; }
  button { font: 500 13px/1 var(--body); color: var(--sand); background: var(--espresso-veil); border: 1px solid var(--line); border-radius: 999px;
    padding: 10px 14px; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); white-space: nowrap; }
  button:hover { border-color: var(--sand-dim); }
  button:focus-visible { outline: 2px solid var(--caramel); outline-offset: 2px; }
  button[aria-pressed="true"] { background: var(--sand); color: var(--espresso); border-color: var(--sand); }
  #views { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); overflow-x: auto; scrollbar-width: none;
    background: linear-gradient(to top, rgba(20, 12, 8, 0.55), rgba(20, 12, 8, 0)); }
  #views::-webkit-scrollbar { display: none; }
  #hint { position: fixed; left: 50%; bottom: 78px; transform: translateX(-50%); font-size: 13px; color: var(--sand); background: var(--espresso-veil); border: 1px solid var(--line);
    border-radius: 999px; padding: 9px 16px; pointer-events: none; transition: opacity 0.6s; white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }
  #hint.off { opacity: 0; }
  #loading { position: fixed; inset: 0; background: var(--espresso); display: grid; place-content: center; justify-items: center; gap: 18px; transition: opacity 0.9s; }
  #loading.off { opacity: 0; pointer-events: none; }
  #loading h2 { font: 600 44px/1 var(--display); letter-spacing: 0.2em; margin: 0; }
  #loading p { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sand-dim); margin: 0; }
  .track { width: 180px; height: 2px; background: var(--line); overflow: hidden; }
  #bar { width: 100%; height: 100%; background: var(--caramel); transform: scaleX(0); transform-origin: left; transition: transform 0.25s; }
  @media (max-width: 720px) { #quality, #full { display: none; } .tools { max-width: calc(100% - 130px); } }
  @media (max-width: 899px) { #mini { bottom: 126px; } }                                                              /* above the hint line */
  @media (min-width: 900px) { #hint, #lockhint { left: calc(50% - 140px); max-width: calc(100% - 620px); } #hint { white-space: normal; text-align: center; border-radius: 18px; } }      /* room for the minimap on the right */
  @media (max-width: 520px) { #mini { right: 10px; width: 172px; padding: 6px 8px 7px; } #mini p { font-size: 11px; } .utag b { font-size: 19px; } .utag small { font-size: 10px; } .tools { right: 12px; gap: 5px; max-width: calc(100% - 100px); } .tools button { padding: 8px 9px; font-size: 11.5px; } .marco b { font-size: 12px; } .marco small { font-size: 10.5px; } .marco p { padding: 6px 10px 7px; } .brand h1 { font-size: 26px; } .brand p { font-size: 10px; } #levels { top: 70px; left: 16px; } #levels button { padding: 7px 10px; font-size: 11px; } }
  @media (prefers-reduced-motion: reduce) { #utags, #utags.on, #mini, #mini.aerial, #mini .unit path { transition: none; } .marco, .marco.on { transition: none; } #loading, #hint, #bar { transition: none; } }
  .utag b.nm { font: 500 13px/1.25 var(--body); letter-spacing: 0.01em; }
