:root { --bg:#000; --panel:#121212; --ink:#e6e9ff; --muted:#9aa3c7; --star:#f6c453; --planet:#6fa8dc; }
body { margin:0; font-family: system-ui, sans-serif; background:var(--bg); color:var(--ink); }
header { padding: 14px 16px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)); border-bottom: 1px solid rgba(255,255,255,.08); position: sticky; top:0; z-index: 5; }
.row { display:flex; gap:8px; align-items:center; flex-wrap: wrap; }
input, button { background: var(--panel); color: var(--ink); border: 1px solid rgba(255,255,255,.12); padding: 6px 10px; font-size: 14px; }
button { cursor: pointer; }

/* Prevent rubber-band scrolling on mobile */
html, body {
    overscroll-behavior: none;
    height: 100%;
    margin: 0;
    padding: 0;
}

#stage {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Crect width='100%25' height='100%25' fill='%23000'/%3E%3Cpath fill='none' stroke='%23fff' stroke-opacity='.1' d='M10 0v20ZM0 10h20'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 30px 30px;
    overflow: hidden;
    height: calc(100dvh - 60px);
    position: relative;
    touch-action: none;
}

#svg {
    display: block;
    width: 100%;
    height: 100%;
}

svg text {
    fill: var(--ink);
    font-size: .5rem;
    user-select: none;
    text-shadow: 3px 3px 3px black;
}
svg .systemName{
    font-size: 2rem;
}
svg .node {
    transition: transform 0.2s ease, filter 0.2s ease;
}

svg .node:hover > :not(.label):not(.notnode) {
    filter: drop-shadow(0rem 0rem .05rem #fa6d00);
}

svg .link { stroke: #333; stroke-opacity: 1; }
svg .debug { fill: none; stroke: rgba(255,255,255,.2); stroke-dasharray: 4 2; }

/* Sidebar Toolbar */
.toolbar {
    position: fixed;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: rgba(15,15,15,0);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    z-index: 1000;
}

.toolbar button {
    width: 45px;
    height: 45px;
    margin: 8px 0;
    background: #3a2109;
    border: 0px solid #444;
    color: #fa6d00;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}


.toolbar button {
    background: #3a2109;
    color: #fa6d00;
    transition: background 0.2s, color 0.3s;
}

.toolbar button:hover {
    background: #fa6d00;
    color: #3a2109;
}

.toolbar button svg {
    transition: fill 0.3s;
    fill: currentColor;
}

.info-panel {
    position: fixed;
    top: 20px;
    right: 80px; /* leaves space for toolbar */
    background: black;
    color: white;
    padding: 15px;
    z-index: 999;
    overflow: hidden; /* ensures glow doesn't spill too much */
    border-top: 2px solid transparent; /* invisible by default */
    transition: border-color 0.3s ease;
}

.info-panel h2 {
    color: #fa6d00;
    font-size: 1.2rem;
    margin: 10px 0;
    border-bottom: 1px solid #333;
}

.info-panel p {
    margin: 4px 0;
    font-size: 14px;
}

.info-panel:hover {
    border-color: orange; /* top border appears */
}

/* Pseudo-elements for top & bottom glow */
.info-panel::before,
.info-panel::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;  /* larger for softer spread */
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(250, 109, 0, 0.25) 0%,   /* softer orange */
        rgba(250, 109, 0, 0.15) 30%,  /* gentle fade */
        rgba(250, 109, 0, 0.05) 60%,
        rgba(250, 109, 0, 0) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* don't block clicks */
    z-index: -1; /* stay behind content */
}

.info-panel::before {
    top: -150px; /* above */
}

.info-panel::after {
    bottom: -150px; /* below */
}

.info-panel:hover::before,
.info-panel:hover::after {
    opacity: 1;
}

.label {
    fill: #fff;
    font-size: 1.1rem;
    display: none;
    text-shadow: 0 0 5px #000, 0 0 10px #000, 0 0 15px #333;
    font-weight: bold;
    z-index: 2000;
}

.node:hover .label {
    display: inline;   /* show on hover of parent node/group */
}

a {
    color: #fa6d00;
    text-decoration: none;
    transition: text-shadow 0.3s, color 0.3s;
}

a:hover {
    text-shadow: 0 0 5px #fa6d00, 0 0 10px #fa6d00, 0 0 15px #ff9500;
}

li {
    display: flex;
    justify-content: space-between;
    margin: 0.25rem 0;
}

li .label {
    font-weight: bold;
}

@font-face {
    font-family: 'Euro Caps';
    src: url('/assets/font/EUROCAPS.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}
body {
    font-family: 'Euro Caps', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

h1 { margin: 0 0 .25rem; font-size: 1.6rem; }
.sub { color: #666; margin: 0 0 1rem; }
.pill { display: inline-block; padding: .2rem .55rem; border: 1px solid #ccc; border-radius: 999px; font-size: .85rem; margin-right: .4rem; }
section { margin-top: 1rem; }
h2 { font-size: 1.5rem; margin: 0 0 .5rem; color: #333; }
ul { list-style: none; padding: 0; margin: 0; }
li { margin: .25rem 0; }
b { color: #aaa; }
.muted { color: #666; }
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7); /* optional: ensure readability */
    padding: 6px 10px;
}

footer .credit {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    text-align: center;
}

footer .credit span {
    color: var(--ink);
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    line-height: 1.3;
}

footer .credit img {
    height: 22px;          /* base size */
    width: auto;
    max-width: 100px;      /* prevent growing too large */
    flex-shrink: 0;        /* don't shrink logo weirdly */
}

@media (max-width: 480px) {
    footer .credit {
        flex-direction: column; /* stack text above logo */
        gap: 4px;
    }
    footer .credit img {
        height: 18px; /* shrink logo a bit more on small screens */
    }
}
.form-grid {
  display: grid;
  grid-template-columns: max-content minmax(150px, 300px) max-content max-content;
  gap: 0.5rem;
  align-items: center;
}

.form-grid input,
.form-grid button {
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  line-height: 1.2;
  box-sizing: border-box;
}

.form-grid button {
  cursor: pointer;
  white-space: nowrap;
}

/* Mobile: stack vertically */
@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid button {
    width: 100%;
  }
}
