/* Rankiboo - shared look (rankiboo.com + search page). Deep-space sci-fi theme. */
@font-face {
  font-family: "Orbitron";
  src: url("/fonts/Orbitron.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #04060d; --bg2: #0a0f1f; --text: #e6ecf7; --muted: #8a97b2; --line: #1c2745;
  --cyan: #22d3ee; --violet: #8b5cf6; --pink: #e879f9; --accent: #67e8f9;
  --field: rgba(13, 20, 40, .72); --glass: rgba(14, 22, 44, .55);
  --grad: linear-gradient(90deg, #22d3ee 0%, #60a5fa 30%, #8b5cf6 62%, #e879f9 100%);
  --display: "Orbitron", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--bg); }
body {
  color: var(--text); min-height: 100vh; display: flex; flex-direction: column; position: relative;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(139, 92, 246, .22), transparent 60%),
    radial-gradient(900px 500px at 95% 10%, rgba(34, 211, 238, .14), transparent 60%),
    radial-gradient(700px 400px at 50% 110%, rgba(232, 121, 249, .10), transparent 60%),
    var(--bg);
  overflow-x: hidden;
}
/* star field + horizon grid (decoration only) */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 12%, #cfe9ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 42%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 54%, #e9d5ff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 76%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 84%, #a5f3fc 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 88%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 5% 50%, #fff 50%, transparent 51%);
  background-size: 420px 420px;
}
body::after {
  content: ""; position: fixed; left: -20%; right: -20%; bottom: 0; height: 38vh; pointer-events: none; z-index: 0;
  background:
    linear-gradient(rgba(34, 211, 238, .16) 1px, transparent 1px) 0 0 / 100% 36px,
    linear-gradient(90deg, rgba(139, 92, 246, .16) 1px, transparent 1px) 0 0 / 48px 100%;
  transform: perspective(380px) rotateX(62deg); transform-origin: bottom;
  mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 85%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 85%);
}
body > * { position: relative; z-index: 1; }
a { color: var(--accent); }
a:hover { color: #a5f3fc; }

.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 56px 16px 32px; flex: 1; }

/* ---- brand ---- */
.brand { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; margin: 18px 0 6px; }
.mark { width: clamp(84px, 20vw, 124px); height: auto; filter: drop-shadow(0 0 14px rgba(34, 211, 238, .45)) drop-shadow(0 0 30px rgba(139, 92, 246, .35)); }
.wordmark {
  font: 800 clamp(38px, 10.5vw, 76px)/1 var(--display); letter-spacing: .14em; margin: 0; padding-left: .14em;
  background: linear-gradient(90deg, #22d3ee 0%, #60a5fa 18%, #8b5cf6 34%, #e879f9 50%, #8b5cf6 66%, #60a5fa 82%, #22d3ee 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(139, 92, 246, .4));
  animation: shimmer 8s ease-in-out infinite;
}
@keyframes shimmer { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.tag {
  text-align: center; color: var(--muted); margin: 6px 0 30px;
  font: 500 clamp(11px, 2.9vw, 14px)/1.6 var(--display); letter-spacing: .32em; text-transform: uppercase;
}
.tag b { color: var(--accent); font-weight: 600; }

/* ---- search box ---- */
.search {
  display: flex; gap: 8px; padding: 6px; border-radius: 999px; position: relative;
  background: var(--glass); border: 1px solid rgba(103, 232, 249, .28);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, .12), 0 10px 40px rgba(34, 211, 238, .10), inset 0 0 24px rgba(139, 92, 246, .08);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: box-shadow .25s, border-color .25s;
}
.search:focus-within { border-color: rgba(103, 232, 249, .7); box-shadow: 0 0 0 3px rgba(34, 211, 238, .18), 0 0 36px rgba(34, 211, 238, .28); }
.search input {
  flex: 1; min-width: 0; padding: 12px 18px; font-size: 18px; border: 0; outline: 0; border-radius: 999px;
  background: transparent; color: var(--text);
}
.search input::placeholder { color: #6b7896; }
.search button, .install, .share, .pager button {
  padding: 11px 22px; font: 700 14px/1 var(--display); letter-spacing: .12em; text-transform: uppercase;
  border-radius: 999px; border: 0; cursor: pointer; color: #04101c;
  background: var(--grad); background-size: 160% 100%; transition: background-position .3s, box-shadow .3s, transform .1s;
}
.search button:hover, .install:hover, .share:hover, .pager button:hover { background-position: 100% 0; box-shadow: 0 0 22px rgba(139, 92, 246, .55); }
.search button:active, .install:active, .share:active, .pager button:active { transform: translateY(1px); }
.search button:disabled, .search input:disabled { cursor: not-allowed; opacity: .55; }
.share, .pager button { background: transparent; color: var(--accent); border: 1px solid rgba(103, 232, 249, .45); }
.share:hover, .pager button:hover { background: rgba(34, 211, 238, .1); color: #fff; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.search input:focus-visible { outline: none; }

.soon { text-align: center; color: var(--muted); font-size: 15px; margin: 14px 0 40px; }
.soon::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 2s ease-in-out infinite; vertical-align: middle; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---- content blocks ---- */
.about, .text { color: #c9d3e6; }
.about { background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 8px 24px 16px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.about h2, .text h2 { font: 700 15px/1.4 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 24px 0 8px; }
.about ul, .text ul { padding-left: 22px; }
.about li::marker, .text li::marker { color: var(--violet); }
.about b { color: #fff; }
.links { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; margin-top: 32px; }
.small-logo { font: 800 22px var(--display); letter-spacing: .14em; text-decoration: none;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text h1 { font: 800 clamp(26px, 6vw, 34px)/1.2 var(--display); letter-spacing: .06em; margin: 8px 0 12px; color: #fff; }
pre, code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 15px; }
pre { background: rgba(5, 10, 24, .85); border: 1px solid var(--line); border-left: 3px solid var(--cyan); border-radius: 10px;
  padding: 12px 14px; overflow-x: auto; white-space: pre-wrap; word-break: break-word; color: #a5f3fc; }
code { overflow-wrap: anywhere; color: #a5f3fc; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; padding: 18px 16px;
  background: rgba(4, 6, 13, .6); }

@media (prefers-reduced-motion: reduce) {
  .wordmark, .soon::before { animation: none; }
  .mark .orbit-sat { display: none; }
}
