:root {
  --bg: #08090b;
  --bg-elevated: #12141a;
  --border: rgba(120, 255, 160, 0.12);
  --text: #e8ecef;
  --text-muted: #8b949e;
  --accent: #5cff9a;
  --accent-dim: #2a9d5c;
  --glow: rgba(92, 255, 154, 0.25);
  --tile-size: 7.5rem;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--glow), transparent),
    var(--bg);
}

.splash {
  max-width: 56rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.splash__header {
  text-align: center;
  margin-bottom: 2rem;
}

.splash__logo {
  display: block;
  max-width: min(22rem, 90vw);
  height: auto;
  margin: 0 auto 1.25rem;
}

.search {
  display: flex;
  gap: 0.5rem;
  max-width: 36rem;
  margin: 0 auto;
  width: 100%;
}

.search__input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg-elevated);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

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

.search__input:focus {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px var(--glow);
}

.search__submit {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: #041008;
  cursor: pointer;
  white-space: nowrap;
}

.search__submit:hover {
  filter: brightness(1.08);
}

.splash__main {
  flex: 1;
}

.section {
  margin-bottom: 1.75rem;
}

.section__title {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--tile-size), 1fr));
  gap: 0.75rem;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 0.5rem;
  text-decoration: none;
  color: inherit;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s;
}

.tile:hover,
.tile:focus-visible {
  border-color: var(--accent-dim);
  box-shadow: 0 4px 20px var(--glow);
  transform: translateY(-2px);
  outline: none;
}

.tile__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.4rem;
  object-fit: contain;
  background: #1a1d24;
}

.tile__icon--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.tile__label {
  font-size: 0.72rem;
  line-height: 1.25;
  text-align: center;
  color: var(--text-muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.splash__footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.splash__footer-line {
  margin: 0.25rem 0;
}

.splash__footer a {
  color: var(--accent-dim);
  text-decoration: none;
}

.splash__footer a:hover {
  color: var(--accent);
}

.footer__btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  color: var(--text-muted);
  font: inherit;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.footer__btn:hover,
.footer__btn:focus-visible {
  border-color: var(--accent-dim);
  color: var(--accent);
  box-shadow: 0 0 0 2px var(--glow);
  outline: none;
}

.footer__version {
  display: inline-block;
  margin-left: 0.5rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  opacity: 0.7;
}
