  :root {
      --bg: #0d0f0e;
      --fg: #f2f4f1;
      --muted: #8a928c;
      --border: rgba(255, 255, 255, 0.08);
      --card: rgba(20, 24, 22, 0.6);
      --accent: #7fd28a;
      --err: #e07a5f;
  }

  html,
  body {
      margin: 0;
      padding: 0;
  }

  body {
      font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
      background: var(--bg);
      color: var(--fg);
      position: relative;
      min-height: 100vh;
      overflow: hidden;
  }

  .bg {
      position: absolute;
      inset: 0;
      z-index: 0;
      background-color: var(--bg);
      background-image: url("img/osrs_map_bg_small.webp");
      background-size: cover;
      background-position: center;
      opacity: 0.1;
      pointer-events: none;
      animation: wobble 120s;
      animation-iteration-count: infinite;
  }

  @keyframes wobble {
      0% {
          transform: translate(1px, 1px) scale(1);
      }

      10% {
          transform: translate(50px, 20px) scale(1.2);
      }

      20% {
          transform: translate(-30px, -50px) scale(1.5);
      }

      50% {
          transform: translate(-50px, 50px) scale(1.2);
      }

      60% {
          transform: translate(-3px, 1px);
      }

      70% {
          transform: translate(0px, 0px) scale(1);
      }

      80% {
          transform: translate(-1px, -1px) scale(1.4);
      }

      90% {
          transform: translate(40px, -20px);
      }

      100% {
          transform: translate(0px, 0px) scale(1);
      }
  }

  .vignette {
      position: absolute;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background:
          radial-gradient(40% 35% at 50% 55%, var(--bg) 0%, transparent 75%),
          radial-gradient(60% 50% at 50% 35%, rgba(127, 210, 138, 0.10), transparent 70%),
          radial-gradient(120% 80% at 50% 50%, transparent 35%, var(--bg) 95%);
  }

  .actions {
      display: flex;
      gap: 12px;
      justify-content: center;
      flex-wrap: wrap;
  }

  .btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      height: 42px;
      padding: 0 18px;
      border-radius: 10px;
      font-size: 14px;
      font-weight: 500;
      text-decoration: none;
      cursor: pointer;
      border: 0;
      transition: transform .15s, opacity .15s;
  }

  .btn:hover {
      transform: translateY(-1px);
  }

  .btn-primary {
      background: var(--fg);
      color: var(--bg);
  }

  .btn-ghost {
      background: var(--card);
      color: var(--fg);
      border: 1px solid var(--border);
      backdrop-filter: blur(8px);
  }

  .scroll {
      max-width: 80%;
      padding: 16px;
      margin: 5em auto;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: var(--card);
      backdrop-filter: blur(8px);
      font-family: ui-monospace, monospace;
      font-size: 12px;
      color: var(--muted);
      text-align: left;
  }

  .scroll .label {
      color: var(--err);
  }

  .vignette-error {
      position: absolute;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background:
          radial-gradient(60% 50% at 50% 30%, rgba(224, 122, 95, 0.10), transparent 70%),
          radial-gradient(120% 80% at 50% 50%, transparent 30%, var(--bg) 95%);
  }

  .hero {
      position: relative;
      z-index: 10;
      max-width: 720px;
      margin: 0 auto;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
  }

  .badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 4px 12px;
      margin-bottom: 24px;
      border: 1px solid var(--border);
      background: var(--card);
      border-radius: 9999px;
      font-size: 12px;
      color: var(--muted);
      backdrop-filter: blur(8px);
  }

  .title {
      font-size: clamp(40px, 8vw, 76px);
      line-height: 1.05;
      font-weight: 600;
      letter-spacing: -0.02em;
      margin: 0;
  }

  .title .quiet {
      color: var(--muted);
  }

  .sub {
      font-family: Bradley Hand;
      font-style: italic;
      margin: 24px 0 0;
      max-width: 520px;
      color: var(--muted);
      font-size: 17px;
  }

  .hero>.form {
      width: 100%;
      margin-top: 1em;
  }

  .prestiged {
      width: 1em;
      float: left;
  }

  .search {
      display: flex;
      align-items: center;
      border: 1px solid var(--border);
      background: var(--card);
      border-radius: 16px;
      backdrop-filter: blur(8px);
      transition: border-color .2s, box-shadow .2s;
  }

  .search:focus-within {
      border-color: rgba(127, 210, 138, 0.6);
      box-shadow: 0 0 0 4px rgba(127, 210, 138, 0.12);
  }

  .search svg {
      margin-left: 20px;
      color: var(--muted);
      flex-shrink: 0;
  }

  .search input {
      font-style: italic;
      flex: 1;
      height: 64px;
      padding: 0 16px;
      background: transparent;
      border: 0;
      outline: 0;
      color: var(--fg);
      font-size: 17px;
  }

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

  .search button {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      height: 48px;
      margin-right: 8px;
      padding: 0 20px;
      border: 0;
      border-radius: 12px;
      background: #1a2b27;
      color: var(--fg);
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: opacity .2s;
  }

  .search button:hover {
      opacity: 0.9;
  }

  .wrap {
      position: relative;
      z-index: 10;
      width: 60%;
      margin: 0 auto;
      padding: 48px 24px 80px;
  }

  @media only screen and (max-width: 700px) {
      .wrap {
          padding: 0px;
          margin: 32px;
          width: 90% !important;
      }
  }

  .topbar {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 32px;
  }

  .back {
      color: var(--muted);
      text-decoration: none;
      font-size: 14px;
      padding: 20px 22px;
      border: 1px solid var(--border);
      border-radius: 20px;
      background: var(--card);
      backdrop-filter: blur(8px);
      transition: color .2s, border-color .2s;
  }

  .back:hover {
      border-color: rgba(127, 210, 138, 0.6);
      box-shadow: 0 0 0 4px rgba(127, 210, 138, 0.12);
  }

  .meta {
      color: var(--muted);
      font-size: 13px;
      margin-bottom: 16px;
  }

  .meta strong {
      color: var(--fg);
      font-weight: 500;
  }

  .table-wrap {
      border: 1px solid var(--border);
      border-radius: 16px;
      background: var(--card);
      backdrop-filter: blur(8px);
      overflow: hidden;
  }

  table {
      width: 100%;
      border-collapse: collapse;
      font-size: 14px;
  }

  thead th {
      text-align: left;
      font-weight: 500;
      color: var(--muted);
      padding: 14px 18px;
      border-bottom: 1px solid var(--border);
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
  }

  tbody td {
      padding: 16px 18px;
      border-bottom: 1px solid var(--border);
      vertical-align: top;
  }

  tbody tr:last-child td {
      border-bottom: 0;
  }

  tbody tr {
      transition: background .15s;
  }

  tbody tr:hover {
      background: rgba(255, 255, 255, 0.03);
  }

  .row-title {
      color: var(--fg);
      font-weight: 500;
      margin-bottom: 4px;
  }

  .row-snippet {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
  }

  .row-snippet>a {
      color: var(--accent);
      font-size: 12px;
      line-height: 1;
      opacity: 80%;
  }

  .src {
      color: var(--accent);
      font-family: ui-monospace, monospace;
      font-size: 12px;
  }

  .upd {
      color: var(--muted);
      font-size: 12px;
      white-space: nowrap;
  }

  .error {
      font-family: ui-monospace, monospace;
      font-size: 13px;
      letter-spacing: 0.2em;
      color: var(--err);
      text-transform: uppercase;
      margin-bottom: 16px;
  }
