/* Controls surround the artwork; the exported image contains only the island. */
.cozy-places .voxel-stage { aspect-ratio: 4 / 3; max-height: min(58svh, 540px); border: 0; border-radius: 22px; box-shadow: inset 0 0 0 1px #00000006; }
.cozy-canvas { cursor: grab; }
.cozy-frame { position: relative; }
.cozy-frame .places-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; background: var(--surface); box-shadow: 0 3px 14px #00000010; }
.cozy-frame #place-prev { left: 16px; }
.cozy-frame #place-next { right: 16px; }
.cozy-frame .places-btn:hover { transform: translateY(-50%) scale(1.06); }
.cozy-frame .places-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cozy-places .places-hud { position: relative; padding: 14px 3px 12px; background: none; border-radius: 0; align-items: center; }
.cozy-places .places-label .mono { font-size: .65rem; letter-spacing: .1em; }
.cozy-places .places-label h3 { font-size: 1.6rem; margin-top: 6px; }
.cozy-places .places-label p { font-size: .84rem; }
.cozy-places .places-dots { gap: 0; flex-wrap: wrap; justify-content: center; max-width: 230px; }
.cozy-places .places-dot { flex: 0 0 28px; width: 28px; height: 36px; background: transparent; position: relative; }
.cozy-places .places-dot::after { content: ''; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); left: 11px; top: 15px; }
.cozy-places .places-dot.active { transform: none; }
.cozy-places .places-dot.active::after { background: var(--ink); width: 8px; height: 8px; left: 10px; top: 14px; }
.cozy-tools { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: 14px 0; gap: 15px; }
.cozy-tools > div { display: flex; align-items: center; gap: 7px; }
.cozy-tools button { font: 500 .7rem var(--font); padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink-soft); background: var(--surface); cursor: pointer; min-height: 36px; }
.cozy-tools button:hover { color: var(--ink); border-color: var(--line-strong); }
.cozy-tools button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.cozy-tools button:disabled { opacity: .4; cursor: default; }
.cozy-tools [data-action^="zoom"] { font-size: 16px; min-width: 36px; padding: 4px 10px; }
.cozy-hint { font-size: .62rem; color: var(--ink-soft); }
.cozy-places.voxel-unavailable .voxel-stage { display: grid; place-items: center; padding: 30px; color: var(--ink); }
@media(max-width:600px){.cozy-frame .places-btn{width:40px;height:44px;}.cozy-frame #place-prev{left:8px;}.cozy-frame #place-next{right:8px;}.cozy-places .places-nav{justify-content:center;}}
@media(max-width:600px){.cozy-places .voxel-stage{aspect-ratio:1/1;border-radius:16px;}.cozy-places .places-hud{flex-direction:column;align-items:stretch;gap:16px;}.cozy-places .places-label h3{font-size:1.3rem;}.cozy-tools{flex-direction:column;align-items:stretch;}.cozy-tools>div{justify-content:space-between;gap:5px;}.cozy-tools button{font-size:.61rem;padding-inline:8px;}.cozy-hint{text-align:center;}.cozy-places .places-nav{justify-content:space-between;}}

/* Loader shown over the Places frame until the voxel scene's canvas appears. */
.voxel-loader { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; border-radius: inherit; pointer-events: none; transition: opacity .5s ease, visibility .5s; }
.voxel-loader span { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.cozy-frame.is-loaded .voxel-loader, .voxel-unavailable .voxel-loader { opacity: 0; visibility: hidden; }
.atom { position: relative; width: 72px; height: 72px; perspective: 400px; }
.atom::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line); }
.atom i { position: absolute; inset: 4px; border-radius: 50%; border: 2px solid #0d0d0d29; border-top-color: var(--ink); animation: atom-tumble 1.6s linear infinite; }
.atom i:nth-child(1) { --tilt: 65deg; --turn: 0deg; }
.atom i:nth-child(2) { --tilt: 65deg; --turn: 60deg; animation-delay: -.53s; }
.atom i:nth-child(3) { --tilt: 65deg; --turn: 120deg; animation-delay: -1.06s; }
.atom b { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--ink); }
@keyframes atom-tumble { from { transform: rotateZ(var(--turn)) rotateX(var(--tilt)) rotateZ(0deg); } to { transform: rotateZ(var(--turn)) rotateX(var(--tilt)) rotateZ(360deg); } }
@media (prefers-reduced-motion: reduce) { .atom i { animation-duration: 6s; } }
.cozy-frame:not(.is-loaded) .voxel-stage { background: var(--surface); }
