:root {
  --bg: #0b1018;
  --text: #f7fbff;
  --muted: #cfd7e6;
  --line: rgba(255,255,255,.14);
  --accent: #b6c8ff;
  --accent-2: #ffd18b;
  --card-a: rgba(10, 12, 22, .68);
  --card-b: rgba(3, 5, 10, .74);
  --glass: rgba(5, 7, 13, .58);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  background: var(--bg);
  overflow-x: hidden;
  padding-bottom: 0;
}

a { color: inherit; text-decoration: none; }

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: var(--bg) center / cover no-repeat;
  transition: background-image 450ms ease;
}

.site-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .62;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.86) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(182,200,255,.74) 0 1px, transparent 1.9px),
    radial-gradient(circle, rgba(255,209,139,.52) 0 1px, transparent 1.8px);
  background-size: 190px 190px, 270px 270px, 340px 340px;
  background-position: 22px 38px, 110px 78px, 190px 24px;
  animation: twinkle-stars 5.4s ease-in-out infinite alternate;
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(4, 7, 13, .18) 0%, rgba(4, 7, 13, .50) 52%, rgba(0, 0, 0, .88) 100%),
    linear-gradient(180deg, rgba(4, 7, 13, .55), rgba(4, 7, 13, .78) 46%, rgba(2, 3, 6, .94)),
    radial-gradient(circle at 50% 16%, rgba(182, 200, 255, .15), transparent 35%);
}

@keyframes twinkle-stars {
  0% { opacity: .36; transform: translate3d(0, 0, 0); filter: brightness(.88); }
  45% { opacity: .72; filter: brightness(1.24); }
  100% { opacity: .48; transform: translate3d(10px, -8px, 0); filter: brightness(1); }
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  padding: 8px max(18px, calc((100vw - 1220px) / 2)) 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(8, 10, 18, .92), rgba(5, 7, 13, .84));
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
  backdrop-filter: blur(14px) saturate(1.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  flex: 0 0 auto;
}

.brand img {
  width: clamp(170px, 19vw, 270px);
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.55));
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  color: rgba(255,255,255,.94);
  background: rgba(5, 7, 13, .58);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.nav-links a:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--accent) 18%, rgba(10, 28, 40, .68));
  border-color: color-mix(in srgb, var(--accent) 48%, transparent);
  box-shadow: 0 14px 30px rgba(0,0,0,.28), 0 0 24px color-mix(in srgb, var(--accent) 20%, transparent), inset 0 1px 0 rgba(255,255,255,.18);
}

.nav-links i { color: var(--accent); }

.hero {
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 82px);
  margin: 0 auto;
  padding: 20px 0 92px;
  text-align: center;
}

.hero-logo {
  width: min(940px, 94vw);
  height: auto;
  display: block;
  margin: 2px auto 18px;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.62));
}

.mod-list {
  width: min(930px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mod-card {
  min-height: 176px;
  display: grid;
  grid-template-columns: 224px 1fr;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 30px;
  background:
    linear-gradient(135deg, var(--card-a), var(--card-b)),
    var(--glass);
  box-shadow:
    0 18px 44px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.09);
  text-align: left;
  position: relative;
  backdrop-filter: blur(14px) saturate(1.08);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.mod-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.045), transparent 44%);
}

.mod-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 48%, transparent);
  box-shadow: 0 24px 54px rgba(0,0,0,.36), 0 0 30px color-mix(in srgb, var(--accent) 14%, transparent), inset 0 1px 0 rgba(255,255,255,.16);
}

.mod-card img {
  width: 100%;
  height: 100%;
  min-height: 176px;
  object-fit: cover;
  padding: 0;
  background: color-mix(in srgb, var(--bg) 82%, rgba(0,0,0,.65));
  border-right: 1px solid rgba(255,255,255,.10);
  image-rendering: auto;
  position: relative;
  z-index: 1;
}

.mod-content {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.mod-content h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.05;
  letter-spacing: -.02em;
  text-shadow: 0 4px 18px rgba(0,0,0,.45);
}

.mod-content p {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 15px;
  font-weight: 600;
}

.mod-link {
  width: fit-content;
  margin-top: 8px;
  padding: 10px 16px;
  color: #06121b;
  background: linear-gradient(135deg, #ffffff, color-mix(in srgb, var(--accent) 70%, white) 55%, color-mix(in srgb, var(--accent-2) 82%, white));
  border: 0;
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.70);
  font-weight: 900;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.mod-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 14px 28px rgba(0,0,0,.30), 0 0 22px color-mix(in srgb, var(--accent) 20%, transparent), inset 0 1px 0 rgba(255,255,255,.80);
}

.site-footer {
  position: relative;
  z-index: 10;
  padding: 11px 16px;
  text-align: center;
  color: rgba(228, 241, 246, .82);
  background: rgba(5, 7, 13, .86);
  border-top: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 -12px 30px rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
}

@media (max-width: 980px) {
  .navbar { align-items: center; flex-direction: column; }
  .nav-links { justify-content: center; gap: 8px; }
  .hero { padding-top: 22px; }
}

@media (max-width: 820px) {
  .brand img { width: min(260px, 74vw); }
  .hero-logo { margin-bottom: 18px; }
  .mod-card { grid-template-columns: 1fr; border-radius: 26px; }
  .mod-card img { height: 220px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .mod-content { padding: 22px; }
}

/* Final requested polish: header icon, visible floating stars, and header-matched Modrinth buttons */
.brand img {
  width: clamp(210px, 24vw, 330px);
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.starfield span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(235, 247, 255, .95);
  box-shadow: 0 0 8px rgba(186, 217, 255, .9), 0 0 18px rgba(255,255,255,.34);
  animation: star-drift var(--dur, 7s) ease-in-out infinite alternate, star-twinkle var(--blink, 2.8s) ease-in-out infinite;
  opacity: .75;
}

.starfield span:nth-child(3n) {
  width: 2px;
  height: 2px;
  background: rgba(190, 220, 255, .95);
}

.starfield span:nth-child(4n) {
  width: 4px;
  height: 4px;
  background: rgba(255, 226, 166, .92);
}

@keyframes star-twinkle {
  0%, 100% { opacity: .28; transform: scale(.72); filter: brightness(.85); }
  45% { opacity: 1; transform: scale(1.22); filter: brightness(1.45); }
  70% { opacity: .52; transform: scale(.92); }
}

@keyframes star-drift {
  from { translate: 0 0; }
  to { translate: 18px -24px; }
}

.starfield span:nth-child(1) { left: 37%; top: 59%; --dur: 5.8s; --blink: 2.5s; animation-delay: -0.35s, -0.18s; }
.starfield span:nth-child(2) { left: 74%; top: 30%; --dur: 6.6s; --blink: 2.9s; animation-delay: -0.70s, -0.35s; }
.starfield span:nth-child(3) { left: 10%; top: 83%; --dur: 7.4s; --blink: 3.4s; animation-delay: -1.05s, -0.52s; }
.starfield span:nth-child(4) { left: 47%; top: 54%; --dur: 8.2s; --blink: 3.8s; animation-delay: -1.40s, -0.70s; }
.starfield span:nth-child(5) { left: 84%; top: 25%; --dur: 9.0s; --blink: 2.0s; animation-delay: -1.75s, -0.88s; }
.starfield span:nth-child(6) { left: 20%; top: 78%; --dur: 9.8s; --blink: 2.5s; animation-delay: -2.10s, -1.05s; }
.starfield span:nth-child(7) { left: 57%; top: 49%; --dur: 5.0s; --blink: 2.9s; animation-delay: -2.45s, -1.22s; }
.starfield span:nth-child(8) { left: 94%; top: 20%; --dur: 5.8s; --blink: 3.4s; animation-delay: -2.80s, -1.40s; }
.starfield span:nth-child(9) { left: 30%; top: 73%; --dur: 6.6s; --blink: 3.8s; animation-delay: 0s, 0s; }
.starfield span:nth-child(10) { left: 67%; top: 44%; --dur: 7.4s; --blink: 2.0s; animation-delay: -0.35s, -0.18s; }
.starfield span:nth-child(11) { left: 3%; top: 15%; --dur: 8.2s; --blink: 2.5s; animation-delay: -0.70s, -0.35s; }
.starfield span:nth-child(12) { left: 40%; top: 68%; --dur: 9.0s; --blink: 2.9s; animation-delay: -1.05s, -0.52s; }
.starfield span:nth-child(13) { left: 77%; top: 39%; --dur: 9.8s; --blink: 3.4s; animation-delay: -1.40s, -0.70s; }
.starfield span:nth-child(14) { left: 13%; top: 10%; --dur: 5.0s; --blink: 3.8s; animation-delay: -1.75s, -0.88s; }
.starfield span:nth-child(15) { left: 50%; top: 63%; --dur: 5.8s; --blink: 2.0s; animation-delay: -2.10s, -1.05s; }
.starfield span:nth-child(16) { left: 87%; top: 34%; --dur: 6.6s; --blink: 2.5s; animation-delay: -2.45s, -1.22s; }
.starfield span:nth-child(17) { left: 23%; top: 87%; --dur: 7.4s; --blink: 2.9s; animation-delay: -2.80s, -1.40s; }
.starfield span:nth-child(18) { left: 60%; top: 58%; --dur: 8.2s; --blink: 3.4s; animation-delay: 0s, 0s; }
.starfield span:nth-child(19) { left: 97%; top: 29%; --dur: 9.0s; --blink: 3.8s; animation-delay: -0.35s, -0.18s; }
.starfield span:nth-child(20) { left: 33%; top: 82%; --dur: 9.8s; --blink: 2.0s; animation-delay: -0.70s, -0.35s; }
.starfield span:nth-child(21) { left: 70%; top: 53%; --dur: 5.0s; --blink: 2.5s; animation-delay: -1.05s, -0.52s; }
.starfield span:nth-child(22) { left: 6%; top: 24%; --dur: 5.8s; --blink: 2.9s; animation-delay: -1.40s, -0.70s; }
.starfield span:nth-child(23) { left: 43%; top: 77%; --dur: 6.6s; --blink: 3.4s; animation-delay: -1.75s, -0.88s; }
.starfield span:nth-child(24) { left: 80%; top: 48%; --dur: 7.4s; --blink: 3.8s; animation-delay: -2.10s, -1.05s; }
.starfield span:nth-child(25) { left: 16%; top: 19%; --dur: 8.2s; --blink: 2.0s; animation-delay: -2.45s, -1.22s; }
.starfield span:nth-child(26) { left: 53%; top: 72%; --dur: 9.0s; --blink: 2.5s; animation-delay: -2.80s, -1.40s; }
.starfield span:nth-child(27) { left: 90%; top: 43%; --dur: 9.8s; --blink: 2.9s; animation-delay: 0s, 0s; }
.starfield span:nth-child(28) { left: 26%; top: 14%; --dur: 5.0s; --blink: 3.4s; animation-delay: -0.35s, -0.18s; }
.starfield span:nth-child(29) { left: 63%; top: 67%; --dur: 5.8s; --blink: 3.8s; animation-delay: -0.70s, -0.35s; }
.starfield span:nth-child(30) { left: 100%; top: 38%; --dur: 6.6s; --blink: 2.0s; animation-delay: -1.05s, -0.52s; }
.starfield span:nth-child(31) { left: 36%; top: 91%; --dur: 7.4s; --blink: 2.5s; animation-delay: -1.40s, -0.70s; }
.starfield span:nth-child(32) { left: 73%; top: 62%; --dur: 8.2s; --blink: 2.9s; animation-delay: -1.75s, -0.88s; }
.starfield span:nth-child(33) { left: 9%; top: 33%; --dur: 9.0s; --blink: 3.4s; animation-delay: -2.10s, -1.05s; }
.starfield span:nth-child(34) { left: 46%; top: 86%; --dur: 9.8s; --blink: 3.8s; animation-delay: -2.45s, -1.22s; }
.starfield span:nth-child(35) { left: 83%; top: 57%; --dur: 5.0s; --blink: 2.0s; animation-delay: -2.80s, -1.40s; }
.starfield span:nth-child(36) { left: 19%; top: 28%; --dur: 5.8s; --blink: 2.5s; animation-delay: 0s, 0s; }
.starfield span:nth-child(37) { left: 56%; top: 81%; --dur: 6.6s; --blink: 2.9s; animation-delay: -0.35s, -0.18s; }
.starfield span:nth-child(38) { left: 93%; top: 52%; --dur: 7.4s; --blink: 3.4s; animation-delay: -0.70s, -0.35s; }
.starfield span:nth-child(39) { left: 29%; top: 23%; --dur: 8.2s; --blink: 3.8s; animation-delay: -1.05s, -0.52s; }
.starfield span:nth-child(40) { left: 66%; top: 76%; --dur: 9.0s; --blink: 2.0s; animation-delay: -1.40s, -0.70s; }
.starfield span:nth-child(41) { left: 2%; top: 47%; --dur: 9.8s; --blink: 2.5s; animation-delay: -1.75s, -0.88s; }
.starfield span:nth-child(42) { left: 39%; top: 18%; --dur: 5.0s; --blink: 2.9s; animation-delay: -2.10s, -1.05s; }
.starfield span:nth-child(43) { left: 76%; top: 71%; --dur: 5.8s; --blink: 3.4s; animation-delay: -2.45s, -1.22s; }
.starfield span:nth-child(44) { left: 12%; top: 42%; --dur: 6.6s; --blink: 3.8s; animation-delay: -2.80s, -1.40s; }

.mod-link {
  width: fit-content;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 15px;
  color: rgba(255,255,255,.94);
  background: rgba(5, 7, 13, .58);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  font-weight: 900;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.mod-link:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--accent) 18%, rgba(10, 28, 40, .68));
  border-color: color-mix(in srgb, var(--accent) 48%, transparent);
  box-shadow: 0 14px 30px rgba(0,0,0,.28), 0 0 24px color-mix(in srgb, var(--accent) 20%, transparent), inset 0 1px 0 rgba(255,255,255,.18);
}

/* Header title replacement: keep the silver logo on one row with the nav where space allows */
.brand img {
  width: clamp(260px, 30vw, 455px);
  max-height: 58px;
  height: auto;
  object-fit: contain;
}

.navbar {
  gap: clamp(12px, 1.4vw, 24px);
}

.nav-links {
  flex-wrap: nowrap;
  gap: clamp(6px, .7vw, 10px);
  font-size: clamp(11px, .74vw, 13px);
}

.nav-links a {
  white-space: nowrap;
  padding: 8px clamp(9px, .75vw, 13px);
}

@media (max-width: 1120px) {
  .brand img {
    width: clamp(230px, 28vw, 330px);
  }

  .nav-links {
    font-size: 11px;
  }

  .nav-links a {
    padding: 8px 9px;
  }
}

@media (max-width: 980px) {
  .nav-links {
    flex-wrap: wrap;
  }

  .brand img {
    width: min(82vw, 430px);
    max-height: none;
  }
}


/* Final size/transparency tweaks */
.brand img {
  width: clamp(155px, 16vw, 245px) !important;
  max-height: 42px !important;
  height: auto !important;
}

.navbar {
  min-height: 62px;
}

.mod-card {
  background:
    linear-gradient(135deg, rgba(10, 12, 22, .62), rgba(3, 5, 10, .70)),
    rgba(5, 7, 13, .48) !important;
  border-color: rgba(255,255,255,.095);
  box-shadow:
    0 18px 44px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.075);
}

.mod-card::before {
  opacity: .72;
}

@media (max-width: 980px) {
  .brand img {
    width: min(66vw, 280px) !important;
    max-height: 48px !important;
  }
}

/* Auto-loaded Modrinth project data */
.mod-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.mod-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  color: rgba(255,255,255,.84);
  background: rgba(5, 7, 13, .38);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.mod-meta i {
  color: var(--accent);
  font-size: 12px;
}

.mod-link i {
  color: var(--accent);
}

.mod-list-note {
  margin: 0 0 8px;
  padding: 10px 14px;
  color: rgba(255,255,255,.82);
  background: rgba(5, 7, 13, .52);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
  backdrop-filter: blur(10px);
}

.mod-card--loading {
  grid-template-columns: 224px 1fr;
}

.mod-icon-placeholder {
  min-height: 176px;
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 35%),
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border-right: 1px solid rgba(255,255,255,.10);
  animation: placeholder-pulse 1.4s ease-in-out infinite alternate;
}

@keyframes placeholder-pulse {
  from { opacity: .42; }
  to { opacity: .82; }
}

@media (max-width: 820px) {
  .mod-card--loading { grid-template-columns: 1fr; }
  .mod-icon-placeholder { min-height: 180px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
}

/* Final Modrinth card layout polish: square media, higher-res gallery images, actions in one row */
.mod-card {
  grid-template-columns: 176px 1fr;
  min-height: 176px;
}

.mod-card img {
  width: 176px;
  height: 176px;
  min-height: 176px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 35%, rgba(182, 200, 255, .10), transparent 52%),
    rgba(3, 5, 10, .34);
}

.mod-content {
  min-width: 0;
}

.mod-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.mod-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
}

.mod-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(239, 247, 255, .84);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .01em;
  padding: 7px 10px;
  border-radius: 14px;
  background: rgba(5, 7, 13, .34);
  border: 1px solid rgba(255,255,255,.10);
}

.mod-link {
  margin-top: 0 !important;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .mod-card {
    grid-template-columns: 1fr;
  }

  .mod-card img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  .mod-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Clickable cards + project-icon-only layout */
.mod-card {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.mod-card:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 72%, white);
  outline-offset: 4px;
}

.mod-card img {
  object-fit: contain !important;
}

.mod-link {
  display: none !important;
}

.mod-actions {
  justify-content: flex-start !important;
}


/* Final card media polish: rounded icon tile, fixed height, ellipsized summaries, updated date */
.mod-card {
  grid-template-columns: 136px 1fr !important;
  min-height: 154px !important;
  height: 154px !important;
  align-items: center;
  padding: 16px 20px 16px 16px;
  gap: 20px;
  overflow: hidden;
}

.mod-icon-tile {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    rgba(5, 7, 13, .42);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 12px 26px rgba(0,0,0,.26);
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

.mod-icon-tile img,
.mod-card .mod-icon-tile img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1;
  object-fit: contain !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  display: block;
}

.mod-card > img {
  display: none !important;
}

.mod-content {
  padding: 0 !important;
  min-width: 0;
  height: 100%;
  justify-content: center;
  gap: 9px;
}

.mod-content h2 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mod-content p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  max-height: calc(1.35em * 2);
}

.mod-actions {
  margin-top: 2px !important;
}

.mod-meta span {
  white-space: nowrap;
}

@media (max-width: 820px) {
  .mod-card {
    grid-template-columns: 96px 1fr !important;
    height: 136px !important;
    min-height: 136px !important;
    padding: 14px;
    gap: 14px;
    border-radius: 24px;
  }

  .mod-icon-tile {
    width: 92px;
    height: 92px;
    border-radius: 20px;
  }

  .mod-content h2 {
    font-size: 20px;
  }

  .mod-content p {
    -webkit-line-clamp: 1;
    max-height: 1.35em;
  }
}
