#horizon-portal { margin: 12px 12px 16px; }
.utility-reference-unavailable #horizon-portal { display: none; }
#horizon-portal .portal-experiment { overflow: hidden; background: var(--bg); color: var(--text); }
#horizon-portal .portal-heading { padding: 0 0 12px; }
#horizon-portal .portal-supremacy { color: var(--muted); font-size: .9rem; font-weight: 400; line-height: 1.5; font-variant-numeric: tabular-nums; letter-spacing: 0; }
#horizon-portal .portal-maximum, #horizon-portal .portal-public-maximum { display: inline; margin: 0; color: var(--accent); font: inherit; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
#horizon-portal .portal-maximum { margin-inline: 4px; }
#horizon-portal .portal-supremacy input { box-sizing: content-box; min-width: 1ch; min-height: 0; height: 1.5em; padding: 0; border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: right; appearance: textfield; }
#horizon-portal .portal-supremacy input:hover, #horizon-portal .portal-supremacy input:focus { border-bottom-color: currentColor; }
#horizon-portal .portal-supremacy input:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
#horizon-portal .portal-supremacy input::-webkit-inner-spin-button, #horizon-portal .portal-supremacy input::-webkit-outer-spin-button { appearance: none; margin: 0; }
#horizon-portal .portal-full-supremacy { display: inline-flex; align-items: baseline; gap: .4em; max-width: 100%; margin-block: .3em; }
#horizon-portal .portal-full-supremacy-value { color: var(--accent); white-space: nowrap; }
#horizon-portal .portal-full-supremacy input { min-width: 4ch; padding: .1em .35em; margin-inline-end: .2em; border: 1px solid var(--muted); }
#horizon-portal .portal-scene { display: block; width: 100%; height: auto; }
#horizon-portal .portal-scene { cursor: grab; touch-action: pan-y pinch-zoom; user-select: none; outline: none; }
#horizon-portal.is-dragging .portal-scene { cursor: grabbing; }
#horizon-portal:not(.is-pointer-focused) .portal-scene:focus-visible { outline: 1px solid var(--accent); outline-offset: -2px; }
#horizon-portal .portal-scene linearGradient stop { stop-color: #fff; }
#horizon-portal .portal-transformed > polygon { stroke: #fff; }
#horizon-portal .portal-transformed > g, #horizon-portal .portal-shimmer { display: none; }
#horizon-portal .portal-plane line { stroke: #fff; }
#horizon-portal .portal-caption { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 10px; }
#horizon-portal .portal-shimmer { animation: prototype-portal-flow var(--ribbon-duration, 8s) linear infinite; animation-delay: var(--ribbon-delay, 0s); }
#horizon-portal .portal-current { animation: prototype-portal-current var(--current-duration, 6s) linear infinite; animation-delay: var(--current-delay, 0s); }
@keyframes prototype-portal-flow { from { stroke-dashoffset: 0; opacity: .1; } 50% { opacity: .7; } to { stroke-dashoffset: -240; opacity: .1; } }
@keyframes prototype-portal-current { from { stroke-dashoffset: 0; opacity: .25; } 50% { opacity: .85; } to { stroke-dashoffset: -140; opacity: .25; } }
@media (max-width: 520px) {
  #horizon-portal { margin-inline: 0; }
  #horizon-portal .portal-supremacy { font-size: .85rem; }
  #horizon-portal .portal-caption { font-size: 9px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #horizon-portal .portal-shimmer { animation: none; opacity: .35; }
  #horizon-portal .portal-current { animation: none; opacity: .45; }
}
