/* Social links, rotating quotations, and a small interactive universe. */
.site-shell { position: relative; z-index: 1; }
.social-links { gap: 13px; }
.social-links a {
  display: inline-grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px;
  border: 1px solid var(--line); border-radius: 50%; color: var(--white);
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.social-links a:hover { color: var(--navy); background: var(--lavender); border-color: var(--lavender); transform: translateY(-3px); }
.social-links a:focus-visible { border-radius: 50%; }
.portrait-disc { background: var(--navy); }
.portrait { animation: none; }
.orbit-dot, .planet-dot {
  position: absolute; z-index: 4; display: grid; place-items: center; width: 44px; height: 44px;
  padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  transform: translate(-50%, -50%); touch-action: manipulation; pointer-events: auto;
}
.orbit-dot { top: 16.5%; left: 12%; }
.orbit-dot::before, .planet-dot::before {
  content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 6px var(--navy); transition: transform .18s ease, box-shadow .18s ease;
}
.orbit-dot:hover::before, .orbit-dot:focus-visible::before {
  transform: scale(1.5); box-shadow: 0 0 0 7px #c8efd91a, 0 0 22px #c8efd93d;
}
.orbit-dot:focus-visible, .planet-dot:focus-visible { border-radius: 50%; outline-offset: 0; }
.portrait figcaption { font-size: 11px; }
.universe, .planet-field, .universe-effects { position: fixed; inset: 0; pointer-events: none; }
.universe { z-index: 2; overflow: hidden; }
.universe-effects { width: 100%; height: 100%; z-index: 2; }
.planet-field { z-index: 1; }
.small-planet { position: absolute; pointer-events: none; }
.planet-body { position: absolute; inset: 23%; border: 1px solid #c3d0ff65; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #c3d0ff38, #b9c8d112 65%); opacity: var(--depth, .4); }
.planet-ring { position: absolute; inset: 0; border: 1px solid #c3d0ff3d; border-radius: 50%; opacity: var(--depth, .4); }
.planet-ring--inner { inset: 12%; border-color: #c3d0ff52; }
.planet-dot { width: 32px; height: 32px; }
.planet-dot::before { width: 5px; height: 5px; opacity: .65; box-shadow: 0 0 0 3px var(--navy); }
.planet-dot:hover::before, .planet-dot:focus-visible::before { opacity: 1; transform: scale(1.6); }
@media (prefers-reduced-motion: no-preference) {
  .small-planet.is-born .planet-body, .small-planet.is-born .planet-ring { animation: planet-birth .6s ease-out; }
  @keyframes planet-birth { from { transform: scale(.15); opacity: 0; } }
}
.site-footer {
  position: relative; z-index: 3; grid-template-columns: minmax(125px, 1fr) minmax(0, 3.3fr) minmax(150px, 1fr);
  min-height: clamp(84px, 10svh, 102px); gap: 20px; padding-block: 12px;
}
.site-footer .copyright { grid-area: auto; align-self: center; font-size: 11px; }
.quote-box { min-width: 0; text-align: center; align-self: center; }
.quote-button {
  display: block; width: 100%; padding: 2px 0 4px; border: 0; background: transparent; color: var(--muted);
  font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.45; cursor: pointer;
  transition: color .2s ease;
}
.quote-button:hover { color: var(--lavender); }
.quote-author { display: inline-block; padding: 1px 6px; color: var(--subtle); font-size: 11px; line-height: 1.45; }
.quote-author:hover { color: var(--lavender); }
.game-controls { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.motion-toggle, .reset-game { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0; border: 0; color: var(--subtle); background: transparent; cursor: pointer; }
.motion-toggle { width: 30px; flex: 0 0 30px; }
.motion-toggle:hover, .reset-game:hover { color: var(--lavender); }
.reset-game { gap: 9px; color: var(--white); white-space: nowrap; font-size: 11px; }
.play-icon, .motion-toggle[aria-pressed="true"] .pause-icon { display: none; }
.motion-toggle[aria-pressed="true"] .play-icon { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 820px) {
  .social-links { gap: 12px; }
  .social-links a { width: 44px; height: 44px; flex-basis: 44px; }
  .site-footer { grid-template-columns: 1fr auto; grid-template-areas: "quote quote" "copyright controls"; min-height: 100px; padding-block: 10px 5px; gap: 3px 12px; }
  .site-footer .copyright { grid-area: copyright; font-size: 10px; }
  .quote-box { grid-area: quote; }
  .quote-button { padding: 0 0 2px; font-size: 13px; line-height: 1.4; }
  .quote-author { font-size: 10px; line-height: 1.3; }
  .game-controls { grid-area: controls; }
  .reset-game { font-size: 10px; gap: 7px; }
  .motion-toggle, .reset-game { min-height: 32px; }
}
@media (max-height: 650px) and (min-width: 821px) {
  .site-footer { min-height: 76px; padding-block: 8px; }
  .social-links a { width: 44px; height: 44px; flex-basis: 44px; }
}
@media (max-height: 560px) and (orientation: portrait) {
  .site-footer { min-height: 88px; padding-block: 5px 2px; gap: 1px 10px; }
  .quote-button { font-size: 12px; line-height: 1.3; }
  .quote-author { font-size: 10px; }
  .social-links a { width: 38px; height: 38px; flex-basis: 38px; }
  .social-links svg { width: 18px; height: 18px; }
  .portrait { width: clamp(36px, 9svh, 50px); }
  h1 { font-size: clamp(33px, min(14.5vw, 9svh), 60px); }
}
@media (max-height: 500px) and (orientation: landscape) {
  .site-footer { min-height: 62px; grid-template-columns: minmax(110px, 1fr) minmax(0, 2.5fr) minmax(140px, 1fr); grid-template-areas: none; padding-block: 4px; gap: 12px; }
  .site-footer .copyright, .quote-box, .game-controls { grid-area: auto; }
  .quote-button { font-size: 12px; line-height: 1.3; }
  .quote-author { font-size: 10px; }
  .site-footer .copyright, .reset-game { font-size: 9px; }
  .game-controls { gap: 3px; }
  .social-links a { width: 36px; height: 36px; flex-basis: 36px; }
  .social-links svg { width: 17px; height: 17px; }
  .intro { margin-top: 8px; }
  .contact-actions { margin-top: 8px; }
  h1 { font-size: min(7vw, 10svh); }
}
@media (max-height: 330px), (max-width: 300px) {
  .site-footer { grid-template-areas: "quote quote" "copyright controls"; grid-template-columns: 1fr auto; }
  .quote-box { grid-area: quote; }
  .site-footer .copyright { grid-area: copyright; }
  .game-controls { grid-area: controls; }
}
@media (prefers-reduced-motion: reduce) {
  .social-links a, .quote-button, .orbit-dot::before, .planet-dot::before { transition: none; }
}
