/* Hallmark · shared part: the app orbit from server/web/variants.css, the phone (phone.css) in its centre, recoloured through --ph-* tokens · v2.0.0 */
/* Hallmark · pre-emit critique: P3 H3 E3 S3 R3 V3 · weakest: S, the orbit is the owner's own motif and stays as built */
/* Each variant sets --ph-* in its own token block; these are fallbacks only. */
:root {
  --ph-accent: oklch(52% 0.14 260); --ph-accent-ink: oklch(99% 0.005 260);
  --ph-glow: oklch(60% 0.14 260 / 0.35); --ph-ring: oklch(70% 0.1 260 / 0.22); --ph-ring-2: oklch(70% 0.1 260 / 0.12);
  --ph-icon-shadow: 0 14px 30px -10px oklch(0% 0 0 / 0.35);
}
.ph-stage { position: relative; width: min(100%, 540px); aspect-ratio: 540 / 590; margin-inline: auto; display: grid; place-items: center; }
.ph-orbit { position: absolute; left: 50%; top: 50%; width: 540px; height: 540px; transform: translate(-50%, -50%); pointer-events: none; }
.ph-ring { position: absolute; inset: 0; border-radius: 50%; animation: ph-spin 90s linear infinite reverse; }
.ph-ring.r1 { inset: 82px; --R: 188px; border: 1px dashed var(--ph-ring); animation-duration: 60s; animation-direction: normal; }
.ph-ring.r2 { --R: 262px; border: 1px solid var(--ph-ring-2); }
.ph-ring .o { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(calc(360deg / var(--n) * var(--i))) translateX(var(--R)) rotate(calc(-360deg / var(--n) * var(--i))); }
.ph-ring .o img { position: absolute; left: -28px; top: -28px; width: 56px; height: 56px; max-width: none; border-radius: 15px; box-shadow: var(--ph-icon-shadow); animation: ph-spin 60s linear infinite reverse; }
.ph-ring.r2 .o img { animation-duration: 90s; animation-direction: normal; }
.ph-glow { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(closest-side, var(--ph-glow), transparent); filter: blur(30px); }
.ph-core { position: relative; z-index: 2; width: 128px; height: 128px; animation: ph-breathe 4s ease-in-out infinite; }
.ph-core svg { width: 100%; height: 100%; filter: drop-shadow(0 20px 40px var(--ph-glow)); }
@keyframes ph-spin { to { transform: rotate(360deg); } }
@keyframes ph-breathe { 50% { transform: scale(1.05); } }
@media (max-width: 40rem) {
  .ph-orbit { width: 360px; height: 360px; }
  .ph-ring.r1 { inset: 56px; --R: 124px; }
  .ph-ring.r2 { --R: 176px; }
  .ph-ring .o img { width: 40px; height: 40px; left: -20px; top: -20px; border-radius: 10px; }
  .ph-stage { width: 360px; max-width: 100%; aspect-ratio: auto; height: 440px; }
  .ph-core { width: 88px; height: 88px; }
}
@media (prefers-reduced-motion: reduce) { .ph-ring, .ph-ring .o img, .ph-core { animation: none; } }

/* catalog apps without a local icon: the lettered tile orbits like the images */
.ph-ring .o .icon { position: absolute; left: -28px; top: -28px; width: 56px; height: 56px; border-radius: 15px; box-shadow: var(--ph-icon-shadow); animation: ph-spin 60s linear infinite reverse; }
.ph-ring.r2 .o .icon { animation-duration: 90s; animation-direction: normal; }
.lw-grid .icon { width: 56px; height: 56px; }
