/* LinguaEmpire live logo — sizing, layout, wordmark and the pure CSS/SVG
   fallback. Companion to linguaempire-logo-live.js. No external resource
   is referenced anywhere in this file.
   Brand colours: navy #070D1F, electric blue #2E6BFF, luminous cyan
   #22D3EE, metallic gold #F5C542. The deep gold below is only a darker
   shade of #F5C542 so small gold text stays readable on white. */

.le-logo-live {
  --le-navy: #070D1F;
  --le-blue: #2456D6;
  --le-cyan: #22D3EE;
  --le-gold: #F5C542;
  --le-gold-hi: #FFE08A;
  --le-gold-ink: #8A6A00;
  --le-globe: 64px;
  --le-gap: 12px;
  display: inline-flex;
  align-items: center;
  gap: var(--le-gap);
  line-height: 1.15;
  text-decoration: none;
  vertical-align: middle;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Globe box: the canvas and the CSS/SVG fallback both fill this square. */
.le-logo-globe {
  position: relative;
  flex: none;
  width: var(--le-globe);
  height: var(--le-globe);
  border-radius: 50%;
  filter: drop-shadow(0 6px 18px rgba(30, 107, 255, 0.35))
          drop-shadow(0 0 14px rgba(240, 180, 41, 0.22));
}
.le-logo-globe canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* Wordmark next to the globe: "Lingua" + "Empire" + motto as HTML text. */
.le-logo-word {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  text-align: left;
  white-space: nowrap;
}
.le-logo-name {
  font-size: calc(var(--le-globe) * 0.42);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--le-navy);
}
.le-logo-name-b { color: var(--le-blue); }
.le-logo-motto {
  font-size: calc(var(--le-globe) * 0.17);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--le-gold-ink);
}

/* Colour contexts: wordmark ink flips with the background. */
.le-logo--on-dark .le-logo-name { color: #FFFFFF; }
.le-logo--on-dark .le-logo-name-b { color: var(--le-cyan); }
.le-logo--on-dark .le-logo-motto { color: var(--le-gold); }
.le-logo--on-light .le-logo-name { color: var(--le-navy); }
.le-logo--on-light .le-logo-name-b { color: var(--le-blue); }
.le-logo--on-light .le-logo-motto { color: var(--le-gold-ink); }

/* Variants. Globe-only variants carry no wordmark by default; the script
   adds the wordmark only when data-le-wordmark asks for it. */
.le-logo--hero {
  --le-globe: 220px;
  flex-direction: column;
  gap: 14px;
}
.le-logo--hero .le-logo-word { align-items: center; text-align: center; }
.le-logo--hero .le-logo-name { font-size: 34px; }
.le-logo--hero .le-logo-motto { font-size: 13px; }

.le-logo--bar { --le-globe: 52px; --le-gap: 10px; }
.le-logo--bar .le-logo-name { font-size: 22px; }
.le-logo--bar .le-logo-motto { font-size: 9px; }

.le-logo--header { --le-globe: 64px; }
.le-logo--footer { --le-globe: 44px; --le-gap: 10px; }
.le-logo--footer .le-logo-name { font-size: 19px; }
.le-logo--footer .le-logo-motto { font-size: 8px; }

.le-logo--mark { --le-globe: 64px; }

/* Small screens: the hero globe steps down so it never crowds the page. */
@media (max-width: 720px) {
  .le-logo--hero { --le-globe: 160px; }
  .le-logo--hero .le-logo-name { font-size: 28px; }
  .le-logo--bar { --le-globe: 44px; }
  .le-logo--bar .le-logo-name { font-size: 19px; }
}

/* ---- Pure CSS/SVG fallback ----
   Fills the globe box under the canvas. Hidden once the canvas has
   started (script adds .le-logo--canvas); visible whenever canvas
   cannot start. Rings rotate, nodes pulse, the gold arc sweeps. */
.le-logo-fallback {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #22D3EE, #22D3EE 30%, #2E6BFF 55%, #070D1F 85%);
}
.le-logo-fallback svg {
  display: block;
  width: 100%;
  height: 100%;
}
.le-logo--canvas .le-logo-fallback { display: none; }

.le-fb-disc {
  fill: none;
  stroke: rgba(34, 211, 238, 0.55);
  stroke-width: 1;
}
.le-fb-seal {
  fill: none;
  stroke: rgba(240, 180, 41, 0.6);
  stroke-width: 2;
}
.le-fb-seal-arc {
  fill: none;
  stroke: var(--le-gold-hi);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 46 249;
  transform-origin: 50px 50px;
  animation: le-fb-sweep 3.2s linear infinite;
}
.le-fb-orbit {
  fill: none;
  stroke: rgba(34, 211, 238, 0.55);
  stroke-width: 1.1;
  transform-origin: 50px 50px;
  animation: le-fb-spin 9s linear infinite;
}
.le-fb-orbit-b {
  stroke: rgba(34, 211, 238, 0.4);
  animation: le-fb-spin-rev 12s linear infinite;
}
.le-fb-node { fill: #FFFFFF; animation: le-fb-pulse 2.2s ease-in-out infinite; }
.le-fb-n2 { animation-delay: 0.35s; }
.le-fb-n3 { animation-delay: 0.7s; }
.le-fb-n4 { animation-delay: 1.05s; }
.le-fb-n5 { fill: var(--le-cyan); animation-delay: 1.4s; }

@keyframes le-fb-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes le-fb-spin-rev {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
@keyframes le-fb-sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes le-fb-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* Reduced motion: the canvas draws one still frame and the fallback
   rings hold still. */
@media (prefers-reduced-motion: reduce) {
  .le-fb-orbit, .le-fb-orbit-b, .le-fb-seal-arc, .le-fb-node {
    animation: none;
  }
}
