/* * The pictures on the release cards (ReleaseNoticeVisuals.tsx). They sit on the * release half, which is dark in both themes, so they draw in their own colours * rather than the surface tokens, like the panel around them. */ /* ── The card pictures ─────────────────────────────────────────────────── */ .rn-vis { position: absolute; inset: 0; color: #f5f5f7; font-family: var(--font-system); overflow: hidden; } .rn-vis-icon { display: flex; align-items: center; justify-content: center; color: oklch(1 0 0 / 0.55); } @keyframes rn-draw { to { stroke-dashoffset: 0; } } @keyframes rn-pop { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: none; } } @keyframes rn-rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } } /* Booking mails: a forwarded mail flies into the trip and turns into its booking. */ .rn-vis-mail { background: radial-gradient(90% 90% at 15% 30%, oklch(0.7 0.15 55 / 0.32) 0%, transparent 62%), linear-gradient(165deg, #241c16 0%, #15110e 100%); } .rn-vis-mail-env { position: absolute; top: 18px; inset-inline-start: 14px; display: grid; place-items: center; width: 30px; height: 22px; border-radius: 5px; background: #fbbf24; color: #1c1308; box-shadow: 0 6px 14px oklch(0 0 0 / 0.45); animation: rn-mail-fly 2.4s cubic-bezier(0.55, 0, 0.3, 1) 0.4s both; } .rn-vis-mail-trip { position: absolute; top: 50%; inset-inline-end: 12px; display: flex; flex-direction: column; gap: 4px; width: 104px; padding: 7px; border-radius: 9px; background: #f5f5f7; color: #101013; transform: translateY(-50%); box-shadow: 0 6px 16px oklch(0 0 0 / 0.45); } .rn-vis-mail-head { font-size: 9.5px; font-weight: 700; } .rn-vis-mail-row { display: flex; align-items: center; gap: 5px; padding: 3px 5px; border-radius: 6px; background: #e8e8ed; font-size: 8.5px; } .rn-vis-mail-row i { flex: 1; height: 4px; border-radius: 2px; background: #c7c7cc; } .rn-vis-mail-row-new { background: oklch(0.93 0.07 80); animation: rn-rise 0.34s ease 2.4s both; } .rn-vis-mail-row-new b { flex: 1; } .rn-vis-mail-check { display: grid; place-items: center; width: 12px; height: 12px; border-radius: 50%; background: #16a34a; color: #ffffff; animation: rn-pop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) 2.75s both; } @keyframes rn-mail-fly { 0% { opacity: 0; transform: translate(0, 6px) rotate(-8deg); } 15% { opacity: 1; transform: none; } 80% { opacity: 1; transform: translate(92px, 40px) scale(0.55) rotate(6deg); } 100% { opacity: 0; transform: translate(100px, 44px) scale(0.3); } } /* Live flight status: the aircraft on its arc, the live delay in the corner. */ .rn-vis-flight { background: radial-gradient(100% 90% at 50% 0%, oklch(0.62 0.15 250 / 0.35) 0%, transparent 65%), linear-gradient(170deg, #121a2b 0%, #0c111c 100%); } .rn-vis-flight-map { position: absolute; inset: 0; width: 100%; height: 100%; } .rn-vis-flight-arc { fill: none; stroke: oklch(0.8 0.1 250 / 0.75); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; animation: rn-draw 1.2s cubic-bezier(0.6, 0, 0.3, 1) 0.2s forwards; } .rn-vis-flight-airport { fill: #f5f5f7; } .rn-vis-flight-plane path { fill: none; stroke: #ffffff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px oklch(0.85 0.1 250)); } .rn-vis-flight-code { position: absolute; bottom: 8px; font-size: 9px; font-weight: 700; letter-spacing: 0.04em; color: oklch(1 0 0 / 0.75); } .rn-vis-flight-from { inset-inline-start: 12px; } .rn-vis-flight-to { inset-inline-end: 12px; } .rn-vis-flight-live { position: absolute; top: 9px; inset-inline-end: 10px; display: flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 99px; background: oklch(0.8 0.15 75 / 0.2); border: 1px solid oklch(0.8 0.15 75 / 0.5); color: #fcd34d; font-size: 9px; font-weight: 700; animation: rn-pop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) 1.3s both; } .rn-vis-flight-live i { width: 5px; height: 5px; border-radius: 50%; background: #fbbf24; animation: rn-blink 1.4s ease-in-out infinite; } @keyframes rn-blink { 50% { opacity: 0.25; } } /* The trip PDF: three pages fanned out, the cover on top with the route drawn on it. */ .rn-vis-pdf { background: radial-gradient(90% 90% at 70% 40%, oklch(0.66 0.14 300 / 0.3) 0%, transparent 65%), linear-gradient(165deg, #1d1726 0%, #120f18 100%); } .rn-vis-pdf-page { position: absolute; top: 14px; inset-inline: 0; margin-inline: auto; display: flex; flex-direction: column; gap: 5px; width: 58px; height: 80px; padding: 8px 7px; border-radius: 4px; background: #f5f5f7; box-shadow: 0 8px 18px oklch(0 0 0 / 0.5); transform-origin: 50% 100%; } .rn-vis-pdf-page i { height: 4px; border-radius: 2px; background: #d1d1d6; } .rn-vis-pdf-back { animation: rn-fan-back 0.6s cubic-bezier(0.34, 1.3, 0.64, 1) 0.3s both; } .rn-vis-pdf-mid { animation: rn-fan-mid 0.6s cubic-bezier(0.34, 1.3, 0.64, 1) 0.45s both; } .rn-vis-pdf-cover { padding: 0; overflow: hidden; transform: none; animation: rn-cover 0.45s ease 0.15s both; } .rn-vis-pdf-cover svg { display: block; width: 100%; height: 50px; background: linear-gradient(160deg, #f97316 0%, #db2777 55%, #6d28d9 100%); } .rn-vis-pdf-cover svg circle { fill: #ffffff; } .rn-vis-pdf-route { fill: none; stroke: #ffffff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: rn-draw 1s ease-in-out 0.9s forwards; } .rn-vis-pdf-cover b { display: block; height: 5px; margin: 8px 7px 5px; border-radius: 2px; background: #3a3a3c; } .rn-vis-pdf-cover i { margin: 0 7px; width: 60%; } @keyframes rn-cover { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } } @keyframes rn-fan-back { from { opacity: 0; transform: rotate(0); } to { opacity: 1; transform: translateX(-54%) rotate(-12deg); } } @keyframes rn-fan-mid { from { opacity: 0; transform: rotate(0); } to { opacity: 1; transform: translateX(54%) rotate(11deg); } } /* Place search: the query typed into the field, the right place on top. */ .rn-vis-search { display: flex; flex-direction: column; gap: 6px; padding: 10px 11px; background: radial-gradient(110% 80% at 100% 0%, oklch(0.62 0.15 200 / 0.32) 0%, transparent 62%), linear-gradient(165deg, #172025 0%, #11171b 100%); } .rn-vis-search-field { display: flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 99px; background: #f5f5f7; color: #101013; font-size: 9.5px; font-weight: 600; box-shadow: 0 4px 12px oklch(0 0 0 / 0.4); } .rn-vis-search-query { display: inline-block; overflow: hidden; white-space: nowrap; max-width: 0; animation: rn-type 0.9s steps(10, end) 0.3s both; } .rn-vis-search-caret { width: 1.5px; height: 10px; background: #0ea5e9; animation: rn-caret 0.9s step-end infinite; } .rn-vis-search-list { display: flex; flex-direction: column; gap: 3px; } .rn-vis-search-row { display: flex; align-items: center; gap: 6px; padding: 3px 7px; border-radius: 7px; font-size: 9.5px; line-height: 1.3; animation: rn-rise 0.34s ease both; } .rn-vis-search-row-top { background: oklch(1 0 0 / 0.1); border: 1px solid oklch(1 0 0 / 0.16); font-weight: 700; } .rn-vis-search-pin { flex: none; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; color: #ffffff; } .rn-vis-search-pin-sight { background: #f59e0b; } .rn-vis-search-pin-air { background: #3b82f6; } .rn-vis-search-pin-food { background: #ef4444; } .rn-vis-search-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* Place details, shared: one place's card, its details travelling out to other TREKs. */ .rn-vis-share { background: radial-gradient(90% 90% at 25% 50%, oklch(0.66 0.16 160 / 0.3) 0%, transparent 65%), linear-gradient(165deg, #16211c 0%, #101814 100%); } .rn-vis-share-links { position: absolute; inset: 0; width: 100%; height: 100%; } .rn-vis-share-links path { fill: none; stroke: oklch(0.8 0.14 160 / 0.6); stroke-width: 1.4; stroke-dasharray: 3 4; animation: rn-flow 1.4s linear infinite; } .rn-vis-share-card { position: absolute; top: 50%; inset-inline-start: 12px; display: flex; gap: 6px; padding: 6px; border-radius: 9px; background: #f5f5f7; color: #101013; transform: translateY(-50%); box-shadow: 0 6px 16px oklch(0 0 0 / 0.45); } .rn-vis-share-pin { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #10b981; color: #ffffff; } .rn-vis-share-fields { display: flex; flex-direction: column; gap: 3px; } .rn-vis-share-field { display: flex; align-items: center; gap: 4px; color: #059669; animation: rn-rise 0.3s ease both; } .rn-vis-share-field i { width: 22px; height: 3px; border-radius: 2px; background: oklch(0.4 0.02 160 / 0.35); } .rn-vis-share-node { position: absolute; inset-inline-end: 12px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: #101013; border: 1px solid oklch(1 0 0 / 0.22); box-shadow: 0 3px 10px oklch(0 0 0 / 0.45); animation: rn-pop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) both; } .rn-vis-share-node img { width: 12px; height: 12px; } .rn-vis-share-node-top { top: 10%; } .rn-vis-share-node-mid { top: 50%; margin-top: -11px; inset-inline-end: 8px; } .rn-vis-share-node-bottom { bottom: 10%; } /* Routing: a day's stops joined in one go. */ .rn-vis-route { background: linear-gradient(165deg, #1b1d22 0%, #131418 100%); } .rn-vis-route-map { position: absolute; inset: 0; width: 100%; height: 100%; } .rn-vis-route-street { fill: none; stroke: oklch(1 0 0 / 0.08); stroke-width: 3; } .rn-vis-route-water { fill: oklch(0.55 0.1 240 / 0.28); } .rn-vis-route-line { fill: none; stroke: #3b82f6; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 4px oklch(0.62 0.19 255 / 0.7)); animation: rn-draw 1.3s cubic-bezier(0.6, 0, 0.3, 1) 0.3s forwards; } .rn-vis-route-stop { fill: #f5f5f7; stroke: #131418; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: rn-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both; } .rn-vis-route-badge { position: absolute; top: 8px; inset-inline-start: 9px; display: flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 99px; background: #facc15; color: #1a1400; font-size: 9.5px; font-weight: 800; font-variant-numeric: tabular-nums; animation: rn-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s both; } @keyframes rn-type { to { max-width: 80px; } } @keyframes rn-caret { 50% { opacity: 0; } } @keyframes rn-flow { to { stroke-dashoffset: -14; } } @media (prefers-reduced-motion: reduce) { .rn-vis-mail-env, .rn-vis-mail-row-new, .rn-vis-mail-check, .rn-vis-flight-arc, .rn-vis-flight-live, .rn-vis-flight-live i, .rn-vis-pdf-page, .rn-vis-pdf-route, .rn-vis-search-query, .rn-vis-search-caret, .rn-vis-search-row, .rn-vis-share-links path, .rn-vis-share-field, .rn-vis-share-node, .rn-vis-route-line, .rn-vis-route-stop, .rn-vis-route-badge { animation: none; } .rn-vis-search-query { max-width: 80px; } .rn-vis-route-line { stroke-dashoffset: 0; } .rn-vis-mail-env { display: none; } .rn-vis-flight-arc, .rn-vis-pdf-route { stroke-dashoffset: 0; } .rn-vis-pdf-back { transform: translateX(-54%) rotate(-12deg); } .rn-vis-pdf-mid { transform: translateX(54%) rotate(11deg); } .rn-vis-pdf-cover { transform: none; } } [data-reduce-motion='true'] .rn-vis-mail-env, [data-reduce-motion='true'] .rn-vis-mail-row-new, [data-reduce-motion='true'] .rn-vis-mail-check, [data-reduce-motion='true'] .rn-vis-flight-arc, [data-reduce-motion='true'] .rn-vis-flight-live, [data-reduce-motion='true'] .rn-vis-flight-live i, [data-reduce-motion='true'] .rn-vis-pdf-page, [data-reduce-motion='true'] .rn-vis-pdf-route, [data-reduce-motion='true'] .rn-vis-search-query, [data-reduce-motion='true'] .rn-vis-search-caret, [data-reduce-motion='true'] .rn-vis-search-row, [data-reduce-motion='true'] .rn-vis-share-links path, [data-reduce-motion='true'] .rn-vis-share-field, [data-reduce-motion='true'] .rn-vis-share-node, [data-reduce-motion='true'] .rn-vis-route-line, [data-reduce-motion='true'] .rn-vis-route-stop, [data-reduce-motion='true'] .rn-vis-route-badge { animation: none; } [data-reduce-motion='true'] .rn-vis-search-query { max-width: 80px; } [data-reduce-motion='true'] .rn-vis-route-line { stroke-dashoffset: 0; } [data-reduce-motion='true'] .rn-vis-mail-env { display: none; } [data-reduce-motion='true'] .rn-vis-flight-arc, [data-reduce-motion='true'] .rn-vis-pdf-route { stroke-dashoffset: 0; } [data-reduce-motion='true'] .rn-vis-pdf-back { transform: translateX(-54%) rotate(-12deg); } [data-reduce-motion='true'] .rn-vis-pdf-mid { transform: translateX(54%) rotate(11deg); } [data-reduce-motion='true'] .rn-vis-pdf-cover { transform: none; }