/* The five room graphics. Each takes its colour from --pc on the panel. */
.vis > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.vis text { font-family: var(--sans); fill: rgba(246, 244, 239, .8); font-size: 11px; letter-spacing: .04em; }
.vis .cap { font-size: 9px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; fill: currentColor; }

/* shared motion */
.vis .pop { opacity: 0; transform-box: fill-box; transform-origin: center; animation: vpop .5s ease forwards; animation-delay: var(--d, 0s); }
@keyframes vpop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.vis .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: vdraw 3s ease-in-out forwards .9s; }
@keyframes vdraw { to { stroke-dashoffset: 0; } }
.vis .glow { animation: vglow 2.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes vglow { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
.vis .fadein { opacity: 0; animation: vfade .8s ease forwards; animation-delay: var(--d, 0s); }
@keyframes vfade { to { opacity: 1; } }

/* ---- M.U.M ---- */
.mumx { position: absolute; left: 50%; top: 50%; width: 400px; transform: translate(-50%, -50%) scale(var(--sc, .6)); color: var(--pc); font-family: var(--sans); }
.mumx .hw-cloud { position: relative; aspect-ratio: 560 / 340; }
.mumx .hw-lines { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mumx .hw-dp { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; border-radius: 999px; line-height: 1.1; animation: hwFloat var(--fd) ease-in-out var(--dl) infinite alternate; }
.mumx .hw-dp .ic { flex: none; }
.mumx .hw-dp.t1 { z-index: 3; font-size: 15px; font-weight: 600; color: var(--navy); background: var(--pc); padding: 8px 14px 8px 11px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); }
.mumx .hw-dp.t2 { z-index: 2; font-size: 13px; color: var(--cream); background: #22365A; border: 1px solid color-mix(in srgb, var(--pc) 55%, transparent); padding: 6px 11px 6px 9px; }
.mumx .hw-dp.t2 .ic { color: var(--pc); }
.mumx .hw-dp.t3 { z-index: 1; font-size: 11.5px; color: rgba(246, 244, 239, .6); background: var(--navy-2); border: 1px dashed color-mix(in srgb, var(--pc) 40%, transparent); padding: 4px 9px 4px 7px; animation-name: hwFloatFar; }
@keyframes hwFloat { from { translate: 0 -3px; } to { translate: 0 3px; } }
@keyframes hwFloatFar { from { translate: -1px -1.5px; } to { translate: 1px 1.5px; } }
.mumx .hw-core { display: flex; justify-content: center; padding-top: 22px; }
.mumx .hw-core span { width: 76px; height: 76px; border-radius: 50%; background: var(--navy); border: 1.5px solid var(--pc); display: flex; align-items: center; justify-content: center; position: relative; box-shadow: 0 0 46px 14px color-mix(in srgb, var(--pc) 22%, transparent); }
.mumx .hw-core span::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--pc); opacity: 0; animation: hwPulse 3s ease-out infinite; }
@keyframes hwPulse { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
.mumx .hw-fan { display: block; width: 100%; height: auto; margin-top: 4px; }
.mumx .hw-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 2px; }
.mumx .hw-role { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--cream); font-size: 14px; text-align: center; }
.mumx .hw-role span { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--pc); color: var(--pc); animation: vglow 2.4s ease-in-out infinite; }
.mumx .hw-role.hw-gm span { background: var(--pc); color: var(--navy); }
.mumx .hw-role.hw-pro span { animation-delay: .8s; background: color-mix(in srgb, var(--pc) 28%, transparent); }
.mumx .hw-role.hw-ch span { animation-delay: 1.6s; }
.mumx .hw-role b { font-weight: 600; }

/* ---- Overflight ---- */
.omap .grid { stroke: var(--sand); stroke-width: .5; opacity: .08; }
.omap .country { fill: #1D3050; stroke: rgba(216, 192, 142, .4); stroke-width: .6; stroke-linejoin: round; }
.omap .on-route path { fill: #2F4A74; stroke: #E6CF9C; stroke-width: 1.1; stroke-linejoin: round; }
.omap .late path { fill: url(#oh-late); stroke: var(--sand); stroke-width: 1.1; stroke-linejoin: round; }
.omap .barred path { fill: url(#oh-barred); stroke: rgba(246, 244, 239, .5); stroke-width: 1.1; stroke-linejoin: round; }
.omap .code { font-size: 8.5px; font-weight: 600; letter-spacing: .08em; fill: var(--cream); }
.omap .straight { fill: none; stroke: rgba(246, 244, 239, .35); stroke-width: .8; stroke-dasharray: 4 4; }
.omap .route { fill: none; stroke: #F1E7CC; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.omap .airport { fill: #F1E7CC; stroke: var(--navy); stroke-width: 1; }
.omap .waypoint { fill: var(--navy); stroke: #F1E7CC; stroke-width: 1.2; }
.omap .icao { font-size: 11px; font-weight: 600; fill: var(--cream); }
.omap .tag { fill: var(--navy); stroke: rgba(246, 244, 239, .7); stroke-width: .8; }
.omap .tag-text { font-size: 9.5px; font-weight: 600; fill: var(--cream); }
.omap .plane { fill: var(--cream); offset-distance: 0%; opacity: 0; animation: vplane 5s linear infinite 4.4s; }
@keyframes vplane { 0% { offset-distance: 0%; opacity: 1; } 96% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.vis .legend { position: absolute; left: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 5px; font-size: 10px; color: rgba(246, 244, 239, .68); }
.vis .legend span { display: flex; align-items: center; gap: 7px; }
.vis .legend i { width: 12px; height: 9px; border-radius: 2px; display: inline-block; }
.vis .legend .k-route { background: #2F4A74; border: 1px solid #E6CF9C; }
.vis .legend .k-late { background: repeating-linear-gradient(45deg, #D8C08E 0 1.5px, rgba(216, 192, 142, .15) 1.5px 4px); }
.vis .legend .k-barred { background: repeating-linear-gradient(45deg, rgba(246, 244, 239, .5) 0 1.2px, rgba(246, 244, 239, .06) 1.2px 4px); }

/* ---- Cream ---- */
.cream .book { fill: #182943; stroke: currentColor; stroke-width: 1.4; }
.cream .stitch { fill: none; stroke: currentColor; stroke-width: .6; opacity: .4; stroke-dasharray: 1 4; stroke-linecap: round; }
.cream .spine { stroke: currentColor; stroke-width: 1; opacity: .55; }
.cream .spine.soft { stroke-width: .5; opacity: .2; }
.cream .ln { fill: none; stroke: currentColor; stroke-width: 1.2; }
.cream .fill { fill: currentColor; }
.cream .pillar, .cream .key { font-size: 9.5px; }
.cream .track { fill: rgba(246, 244, 239, .07); }
.cream .stated { fill: none; stroke: currentColor; stroke-width: .9; stroke-dasharray: 2.5 2.5; opacity: .75; }
.cream .grow { fill: currentColor; transform-box: fill-box; transform-origin: left center; transform: scaleX(0); animation: vgrow .8s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: var(--d); }
@keyframes vgrow { to { transform: scaleX(1); } }
.cream .tick { fill: none; stroke: var(--cream); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cream .link { fill: none; stroke: currentColor; stroke-width: .9; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; animation: vlink 1.5s ease forwards; animation-delay: var(--d); }
@keyframes vlink { 0% { stroke-dashoffset: 1; opacity: .9; } 45% { stroke-dashoffset: 0; opacity: .9; } 100% { stroke-dashoffset: 0; opacity: .13; } }
.cream .ring { fill: none; stroke: currentColor; stroke-width: 2.2; }
.cream .ring.thin { stroke-width: .8; }
.cream .ring.dots { stroke-width: .6; stroke-dasharray: 1 3.2; stroke-linecap: round; }
.cream .stamp-t { font-weight: 600; letter-spacing: .18em; fill: currentColor; }
.cream .stamp-s { font-size: 5.6px; letter-spacing: .14em; text-transform: uppercase; fill: currentColor; }
.cream .stamp { opacity: 0; transform-box: fill-box; transform-origin: center; animation: vstamp .34s cubic-bezier(.2, 1.5, .4, 1) forwards; animation-delay: var(--d); }
@keyframes vstamp { 0% { opacity: 0; transform: scale(2.3); } 60% { opacity: 1; transform: scale(.94); } 100% { opacity: 1; transform: scale(1); } }
.cream .ink { fill: none; stroke: currentColor; stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; animation: vink .7s ease-out forwards; animation-delay: calc(var(--d) + .2s); }
@keyframes vink { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }

/* ---- Braid Atlas ---- */
.vis > svg.bmap { inset: 1.5%; width: 97%; height: 97%; }
.bmap .islands { fill: url(#b5land); stroke: var(--sand); stroke-width: .8; }
.bmap .coast { fill: url(#b5land); stroke: var(--sand); stroke-width: 1.2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; animation: bcoast 2.2s cubic-bezier(.45, 0, .2, 1) forwards, bfill 1s ease forwards 1.5s; }
@keyframes bcoast { to { stroke-dashoffset: 0; } }
@keyframes bfill { to { fill-opacity: 1; } }
.bmap .course { fill: var(--cream); stroke: var(--navy); stroke-width: .6; }
.bmap .course.scheme { fill: #E6CF9C; }
.bmap .drop { opacity: 0; animation: bdrop .55s cubic-bezier(.3, 1.6, .5, 1) forwards; animation-delay: var(--d); }
@keyframes bdrop { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }

/* ---- Your problem? ---- */
.invite .frame { fill: none; stroke: currentColor; stroke-width: 1.2; }
.invite .march { stroke-dasharray: 6 6; animation: march 1.2s linear infinite; }
@keyframes march { to { stroke-dashoffset: -12; } }
.invite .plus { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

/* Visitors who ask for less motion see every graphic in its finished state. */
@media (prefers-reduced-motion: reduce) {
  .vis *, .vis *::after { animation: none !important; transition: none !important; }
  .vis .pop, .vis .fadein, .cream .stamp, .bmap .drop { opacity: 1; }
  .vis .draw, .bmap .coast, .cream .link { stroke-dashoffset: 0; }
  .bmap .coast { fill-opacity: 1; }
  .cream .grow { transform: none; }
  .cream .link { opacity: .13; }
  .omap .plane { display: none; }
}
