/* The 3D scene: refinements to the labels drawn over the canvas. Loaded after app.css; the base rules for these labels still live there.
   Tokens come from app.css; each has a fallback so this file stands on its own. */

/* Numbers. The disc is no longer HTML: it is the glass bead drawn in the scene, exactly under the numeral.
   So the label carries only the figure, in the display face, and the marks for "selected" and "source". */
.n3 span { background: none; border: 0; color: var(--ink, #f6efe9); font-weight: 500; text-shadow: 0 1px 5px rgba(14, 5, 19, .95), 0 0 2px rgba(14, 5, 19, .8);
           transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.n3.on:hover span, .n3.on:focus-visible span { transform: scale(1.09); }
.n3:focus-visible { outline: 2px solid var(--gold, #f0c48a); outline-offset: 3px; }
.n3.main span, .n3.core span { background: none; color: #1b0a22; font-weight: 600; text-shadow: none; }
.n3.c2 span, .n3.c3 span, .n3.corner span, .n3.love span, .n3.money span, .n3.summit span { border: 0; color: var(--ink, #f6efe9); }
.n3.src span { box-shadow: 0 0 0 1px var(--gold, #f0c48a); }
.n3.sel span { box-shadow: 0 0 0 1px var(--gold-2, #ffe2bb), 0 0 0 5px rgba(255, 226, 187, .12); }

/* Slow devices draw no beads (see lowFx in scene.js): the numbers get plain discs back. */
.lowfx .n3 span { background: var(--deep, #150a1c); border: 1px solid var(--line-2, rgba(246, 239, 233, .34)); text-shadow: none; }
.lowfx .n3.main span { background: #e6bb80; border: 0; } .lowfx .n3.core span { background: #f1e9de; border: 0; }

/* Chakras and the age marker keep an HTML disc: a hairline ring, no glow. */
.n3.chk3 span, .lowfx .n3.chk3 span { background: rgba(21, 10, 28, .9); border: 1px solid var(--cc); box-shadow: none; color: var(--ink, #f6efe9); }
.n3.mark span, .lowfx .n3.mark span { background: var(--night, #0e0513); border: 1px solid var(--gold-2, #ffe2bb); color: var(--gold-2, #ffe2bb); font: 500 calc(var(--d) * var(--u) * .4px)/1 var(--mono, ui-monospace, "SF Mono", Menlo, Consolas, monospace); text-shadow: none; }

/* Bodies of the sky. The globe is drawn in the scene; the button is its hit area and carries the glyph as a tag beside it. */
.n3.body span, .lowfx .n3.body span { background: none; border: 0; box-shadow: none; text-shadow: none; overflow: visible; position: relative; }
.n3.body span .gl { position: absolute; left: 78%; bottom: 70%; width: 66%; height: 66%; color: var(--ink-2, #dccfe3); stroke-width: 1.5; transition: color .2s;
                    filter: drop-shadow(0 0 2px #0e0513) drop-shadow(0 0 3px #0e0513); }
.n3.body:hover span .gl, .n3.body:focus-visible span .gl, .n3.body.sel span .gl { color: var(--gold-2, #ffe2bb); }
.n3.body.b span .gl { color: var(--rose, #e58bc0); }
.n3.body.sel span { outline: 1px solid var(--gold-2, #ffe2bb); outline-offset: 6px; border-radius: 50%; }
.n3.body.on:hover span, .n3.body.on:focus-visible span { transform: none; }

/* The engraved scale: signs, angles, ages and constellation names. */
.sg3 { color: #cdbde0; }
.ang3 { font: 500 13px/1 var(--mono, ui-monospace, "SF Mono", Menlo, Consolas, monospace); letter-spacing: .06em; text-shadow: 0 0 4px #0e0513, 0 0 2px #0e0513; }
.ang3[data-ang="mc"] { color: var(--rose, #e58bc0); }
.age3 { color: var(--dim, #b3a0be); font: 500 13px/1 var(--mono, ui-monospace, "SF Mono", Menlo, Consolas, monospace); text-shadow: 0 0 4px #0e0513; }
.con3 { font: italic 400 .88rem/1 var(--serif); letter-spacing: .02em; color: var(--ink-2, #dccfe3); text-shadow: 0 0 6px #0e0513, 0 0 3px #0e0513, 0 0 2px #0e0513; }
.con3.on { opacity: .92; }

/* The number that flies in, and the two centres of a couple. */
#ghost3, .duo3 { text-shadow: 0 0 36px rgba(240, 196, 138, .42); } .duo3.b { color: #f6c4dc; text-shadow: 0 0 36px rgba(229, 139, 192, .42); }

/* A dimmed number (another point is in focus) drops its shadow: at this size the shadow would read as a smudge. */
.focus .n3.on:not(.hot):not(.sel):not(.src) span { text-shadow: none; }

/* the age ring's labels follow the ring: hidden on a phone outside the Time lens */
.noring .age3 { visibility: hidden; }
