/* MT-184: the dial's styling, and only the dial's (dial/dial.js owns its markup, its icons and its timing). Its look is the
   clip Craig pointed to (Canvas Demo 2D Centric, 04:52 to 04:57): a white rim with dark labels, a light grey icon band
   shading darker inwards and the rim darker outwards, so both stand raised, a darker see-through core, a gap between every wedge, and blue for the wedge pointed at. */
/* The labels' face: Varela Round, fully rounded and calm, so the labels read softer (Craig, 2026-10-13). Latin only. */
@font-face { font-family: "Varela Round"; font-weight: 400; font-display: block; src: url("varela-round.woff2") format("woff2"); }
.dial { --dial-ink: #17171b; --dial-pick: #1f45ff; position: fixed; inset: 0; z-index: 25; background: transparent; touch-action: none; -webkit-user-select: none; user-select: none; transition: opacity 300ms ease-out; }
.dial-ring { position: absolute; transform: translate(-50%, -50%); }
/* It comes in at full size from the centre out: the disc, icons and gaps firm up together, no scale or bounce. */
.dial-ring svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 6px 16px rgba(0,0,0,.45)); animation: dial-open var(--dial-open) ease-out both; }
@keyframes dial-open {
  from { clip-path: circle(0% at 50% 50%); opacity: 0; }
  to { clip-path: circle(71% at 50% 50%); opacity: 1; }
}
/* The tones, each see-through, so the video and the plot text show beneath: a light circle reaching past the rim, a
   darker one out to the icon band's edge, and the wedges over them. */
.dial-halo { fill: #e4e4e8; fill-opacity: .5; transition: opacity 500ms ease-out; }
.dial-core { fill-opacity: .825; transition: opacity 500ms ease-out; }
.dial-face { fill-opacity: .7; }
/* The power-up: each wedge's rim warms to white in turn and stays lit, building a white ring the labels read dark on.
   The lit state is the resting one, so with reduced motion it simply appears lit. dial.js sets each delay. */
.dial-rim { animation: dial-light 150ms ease-out both; }
@keyframes dial-light { from { fill-opacity: .4; } }
/* The radar sweep (Craig, 2026-10-14): one clockwise turn of a soft pale glow over the ring, building behind its leading
   edge and easing off just past it, passing each wedge as its rim lights. Drawn with its leading edge at 12 o'clock and
   turned from where it starts; dial.js sets that, when it starts and how long it turns. It comes in with the dial's
   fade from the centre and fades out once round. */
.dial-sweep { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; filter: blur(2px);
  -webkit-mask: radial-gradient(closest-side, #000 var(--ring-out), transparent var(--ring-out)); mask: radial-gradient(closest-side, #000 var(--ring-out), transparent var(--ring-out));
  background: conic-gradient(from -70deg, rgba(190,205,255,0) 0deg, rgba(190,205,255,.16) 48deg, rgba(222,230,255,.34) 66deg, rgba(222,230,255,.34) 69deg, rgba(222,230,255,0) 77deg);
  animation: dial-open var(--dial-open) ease-out both, dial-sweep var(--sweep-ms) linear var(--sweep-at) both; }
@keyframes dial-sweep {
  from { transform: rotate(var(--sweep-from)); }
  92% { opacity: 1; }
  to { opacity: 0; transform: rotate(calc(var(--sweep-from) + 360deg)); }
}
/* The veil (Craig, 2026-10-15): the icon band opens darker, and the sweep lifts the veil as it passes, so it seems to
   reveal the grey wedges. Dark over the band's reach where the sweep has not been, with a soft edge just ahead of it. */
@property --sweep-turned { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.dial-veil { position: absolute; inset: 0; pointer-events: none;
  background: conic-gradient(from var(--sweep-from), rgba(16,16,20,0) var(--sweep-turned), rgba(16,16,20,.5) calc(var(--sweep-turned) + 8deg));
  -webkit-mask: radial-gradient(closest-side, transparent var(--band-in), #000 var(--band-in), #000 var(--band-out), transparent var(--band-out));
  mask: radial-gradient(closest-side, transparent var(--band-in), #000 var(--band-in), #000 var(--band-out), transparent var(--band-out));
  animation: dial-open var(--dial-open) ease-out both, dial-unveil var(--sweep-ms) linear var(--sweep-at) forwards; }
@keyframes dial-unveil { to { --sweep-turned: 360deg; } }
@media (prefers-reduced-motion: reduce) { .dial-sweep, .dial-veil { display: none; } }
/* The fast pace: no sweep, so the dial is there at once with every rim lit (Craig, 2026-10-15). */
.dial-ring.at-once .dial-sweep, .dial-ring.at-once .dial-veil { display: none; }
.dial-ring.at-once .dial-rim { animation: none; }
.dial-label { fill: #2a2b30; font: 400 11px "Varela Round", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: .02em; transition: fill 140ms ease-out; }
.dial-icon { color: var(--dial-ink); }
.dial-glyph { fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; transition: color 140ms ease-out, transform 180ms ease-out; }
/* A favourite's heart, a title on the Watchlist: the icon fills in. */
.dial-wedge.pressed .dial-fill { fill: currentColor; }
.dial-wedge.pressed .dial-cut { stroke: #dcdcdf; }
.dial-wedge { cursor: pointer; outline: none; transform-box: fill-box; transform-origin: center; transition: opacity 500ms ease-out, transform 280ms cubic-bezier(.3,1.6,.5,1), filter 200ms ease-out; }
/* Pointing (a finger sliding, a mouse hovering), and the keys' focus: the wedge brightens, grows a little about its own
   middle, evenly every way, with a soft blue glow (Craig, 2026-10-14), and its icon and label turn blue, the icon lifting. */
.dial-wedge.on, .dial-wedge:focus { transform: scale(1.04); filter: brightness(1.12) drop-shadow(0 0 3px rgba(31,69,255,.7)); }
.dial-wedge.on .dial-glyph, .dial-wedge:focus .dial-glyph { color: var(--dial-pick); transform: scale(1.08); }
.dial-wedge.on .dial-label, .dial-wedge:focus .dial-label { fill: var(--dial-pick); }
body.keys .dial-wedge:focus { translate: none; box-shadow: none; }
/* A pick: the picked wedge pops while the rest fades, and a second later it fades too (dial.js times the steps). */
.dial-wedge.picked { transform: scale(1.07); }
.dial.picking .dial-wedge:not(.picked), .dial.picking .dial-core, .dial.picking .dial-halo { opacity: 0; }
.dial.gone .dial-wedge.picked { opacity: 0; transition-duration: 400ms; }
/* A still picture of it for help (MT-205): fully lit at once, and nothing in it answers a finger. */
.dial-picture { position: relative; aspect-ratio: 1; pointer-events: none; }
.dial-picture svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 6px 16px rgba(0,0,0,.45)); }
.dial-picture .dial-rim { animation: none; }
/* MT-215: frozen under a tip, the wedges do nothing; the tip sits beside the ring, its two buttons the only thing to press. */
.dial.frozen .dial-wedge { cursor: default; }
.dial-tip { position: absolute; transform: translateY(-50%); box-sizing: border-box; width: max-content; padding: 14px 16px; border: 1px solid var(--line, #2a2a33); border-radius: 14px; background: rgba(20,20,26,.94); color: var(--text, #f2f2f5); font: 15px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; box-shadow: 0 6px 16px rgba(0,0,0,.45); }
.dial-tip-text { margin: 0 0 12px; }
.dial-tip-actions { display: flex; gap: 10px; justify-content: flex-end; }
.dial-tip-button { padding: 8px 14px; border: 1px solid var(--line, #2a2a33); border-radius: 999px; background: transparent; color: var(--text, #f2f2f5); font: inherit; font-weight: 600; cursor: pointer; }
.dial-tip-button:last-child { border-color: var(--accent, #e8b44a); color: var(--accent, #e8b44a); }
body.keys .dial-tip-button:focus { outline: 3px solid var(--accent, #e8b44a); outline-offset: 2px; }
/* A close: the whole dial fades. */
.dial.closing { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .dial-ring svg, .dial-rim { animation: none; } .dial, .dial-wedge, .dial-core, .dial-halo, .dial-glyph { transition: none; } }
