/* speedrun.io — shared nav, mobile menu, and footer chrome for index.html and news.html */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: var(--bg);
  }

nav.topnav {
    position: relative;
    display: flex;
    align-items: center;
    height: 72px;
    border-bottom: 1px solid var(--border);
  }

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
  }

.logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

.logo-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--text-primary);
  }

.logo-text {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-primary);
  }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
  }

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
  }

.nav-link {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: -0.01em;
    padding: 7px 14px;
    border-radius: 7px;
    transition: color 0.2s, background 0.2s;
  }

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
  }

.nav-link.active {
    color: var(--accent);
  }

.nav-link-disabled {
    font-size: 15px;
    font-weight: 400;
    color: rgba(240,237,232,0.22);
    letter-spacing: -0.01em;
    padding: 7px 14px;
    border-radius: 7px;
    cursor: default;
    pointer-events: none;
    user-select: none;
  }

.nav-cta {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    background: rgba(91,141,184,0.18);
    border: 1px solid rgba(91,141,184,0.32);
    text-decoration: none;
    letter-spacing: -0.01em;
    padding: 8px 18px;
    border-radius: 7px;
    transition: background 0.2s, border-color 0.2s;
    margin-left: 6px;
  }

.nav-cta:hover {
    background: rgba(91,141,184,0.28);
    border-color: rgba(91,141,184,0.52);
  }

.email-input {
    flex: 1;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: 6px 0 0 6px;
    padding: 13px 16px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
  }

.email-input::placeholder {
    color: var(--text-muted);
  }

.email-input:focus {
    border-color: var(--accent);
    background: rgba(107,143,113,0.06);
  }

.notify-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    padding: 13px 22px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.2s;
    white-space: nowrap;
  }

.notify-btn:hover {
    background: var(--accent-hover);
  }

.footer-disclaimer {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 300;
    opacity: 0.7;
    line-height: 1.5;
  }

.footer-brand {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
  }

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 300;
    margin-left: 6px;
  }

.footer-sep {
    width: 1px;
    height: 10px;
    background: var(--border);
    margin: 0 12px;
  }

.footer-legal {
    display: flex;
    gap: 16px;
    align-items: center;
  }

.footer-legal a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 300;
    transition: color 0.2s;
  }

.footer-legal a:hover {
    color: var(--text-primary);
  }

.mob-menu-btn {
    display: none;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    margin-left: 8px;
    flex-shrink: 0;
  }

.mob-menu-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.25);
  }

.mob-menu-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
  }

.mob-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
  }

.mob-menu.open {
    display: block;
  }

.mob-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

.mob-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(280px, 85vw);
    height: 100%;
    background: #181c1a;
    border-left: 1px solid var(--border);
    padding: 0;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.32, 0, 0.15, 1);
  }

.mob-menu.open .mob-panel {
    transform: translateX(0);
  }

.mob-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }

.mob-panel-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

.mob-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    padding: 0;
  }

.mob-close:hover {
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.25);
  }

.mob-close svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
  }

.mob-nav a,
  .mob-nav span {
    display: block;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: -0.01em;
    border-radius: 7px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
  }

.mob-nav a {
    color: var(--text-secondary);
  }

.mob-nav a:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
  }

.mob-nav a.active {
    color: var(--accent);
  }

.mob-nav span {
    color: rgba(240,237,232,0.22);
    cursor: default;
    pointer-events: none;
  }