@font-face {
  font-family: "Coolvetica";
  src: url("https://raw.githubusercontent.com/pear/pearweb/master/include/fonts/coolveti.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg: #030102;
  --fg: #fff4f4;
  --muted: rgba(255, 224, 224, .66);
  --red: #ff1833;
  --red-soft: rgba(255, 24, 51, .42);
  --red-glow: rgba(255, 24, 51, .22);
  --red-deep: #6b000d;
  --border: rgba(255, 68, 88, .2);
  --glass: rgba(18, 3, 6, .58);
  --glass-strong: rgba(33, 4, 9, .74);
}

html, body, button, a, input, time { font-family: "Coolvetica", Arial, sans-serif; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--fg);
  background:
    radial-gradient(circle at 50% -20%, rgba(255, 24, 51, .28), transparent 34%),
    radial-gradient(circle at 13% 74%, rgba(130, 0, 18, .35), transparent 29%),
    radial-gradient(circle at 90% 44%, rgba(255, 24, 51, .14), transparent 25%),
    linear-gradient(145deg, #110307 0%, #050203 42%, #000 100%);
}

body::before,
body::after,
.screen-vignette {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  opacity: .32;
  background:
    radial-gradient(circle at 12% 72%, rgba(255,255,255,.24) 0 1px, transparent 2px),
    radial-gradient(circle at 31% 28%, rgba(255,255,255,.16) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 62%, rgba(255,255,255,.18) 0 1px, transparent 2px),
    radial-gradient(circle at 90% 22%, rgba(255,255,255,.12) 0 1px, transparent 2px);
  background-size: 170px 220px, 250px 310px, 210px 270px, 330px 390px;
  animation: starFloat 20s linear infinite;
}

body::after {
  opacity: .24;
  background:
    linear-gradient(90deg, rgba(255,255,255,.09), transparent 12%, transparent 88%, rgba(255,255,255,.06)),
    radial-gradient(ellipse at 50% -15%, rgba(255,255,255,.14), transparent 36%);
  mix-blend-mode: screen;
}

.screen-vignette {
  z-index: 2;
  background:
    radial-gradient(circle at center, transparent 0 38%, rgba(0,0,0,.64) 100%),
    linear-gradient(115deg, transparent 0 43%, rgba(255, 24, 51, .08) 48%, transparent 55%);
}

.glow-orb {
  position: fixed;
  width: 38vw;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(72px);
  opacity: .38;
  pointer-events: none;
  z-index: 1;
  animation: orbDrift 9s ease-in-out infinite alternate;
}
.glow-one { left: -10vw; top: 8vh; background: #ff1833; }
.glow-two { right: -12vw; bottom: -14vh; background: #8f0013; animation-delay: -3s; }

.particles-layer { position: fixed; inset: 0; pointer-events: none; }
.particles-main { z-index: 0; }
.particles-overlay { z-index: 1; opacity: .76; mix-blend-mode: screen; }
.particles-layer canvas { width: 100% !important; height: 100% !important; display: block; }

.content { position: relative; z-index: 3; min-height: 100vh; padding: 104px clamp(18px, 4vw, 52px) 118px 118px; }

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  height: 62px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 44px);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(19, 3, 6, .86), rgba(0, 0, 0, .54));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 42px rgba(0,0,0,.36), 0 0 40px rgba(255,24,51,.08);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.logo, .header-nav a, .side-dock a, .hero-btn, .quick-card, .mini-menu a { color: var(--fg); text-decoration: none; }
.logo { font-size: 16px; letter-spacing: .04em; text-shadow: 0 0 16px var(--red-soft); }
.header-nav { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: clamp(22px, 3vw, 38px); }
.header-nav a { color: var(--muted); font-size: 14px; letter-spacing: .05em; text-transform: lowercase; transition: color .2s ease, text-shadow .2s ease, transform .2s ease; }
.header-nav a:hover { color: var(--fg); text-shadow: 0 0 18px var(--red-soft); transform: translateY(-1px); }

.side-dock {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 21;
  display: grid;
  gap: 10px;
  width: 72px;
  padding: 12px 10px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(27, 4, 8, .82), rgba(0, 0, 0, .58));
  box-shadow: 0 24px 80px rgba(0,0,0,.48), 0 0 32px rgba(255,24,51,.12);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.dock-mark, .dock-link { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 18px; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.dock-mark { background: linear-gradient(135deg, rgba(255,24,51,.84), rgba(107,0,13,.74)); box-shadow: 0 0 28px rgba(255,24,51,.3); letter-spacing: -.04em; }
.dock-link { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.07); font-size: 22px; }
.dock-link:hover, .dock-link.active { transform: translateY(-2px) scale(1.04); background: rgba(255,24,51,.16); box-shadow: 0 0 24px rgba(255,24,51,.24); }

.hero {
  min-height: calc(100vh - 190px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .78fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy, .live-panel, .quick-card {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(28, 4, 9, .72), rgba(0, 0, 0, .5));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .48), 0 0 38px rgba(255,24,51,.09);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}
.hero-copy { min-height: 500px; border-radius: 38px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(30px, 6vw, 72px); text-align: center; }
.kicker { margin-bottom: 12px; color: #ff8a98; text-transform: uppercase; letter-spacing: .2em; font-size: 12px; }
h1 { font-size: clamp(46px, 9vw, 112px); font-weight: 400; line-height: .9; letter-spacing: -.052em; white-space: nowrap; text-shadow: 0 0 1px rgba(255,255,255,.85), 0 0 24px rgba(255,24,51,.52), 0 22px 70px rgba(0,0,0,.95); }
.subline { max-width: 600px; margin: 20px 0 24px; color: var(--muted); font-size: clamp(16px, 2vw, 20px); line-height: 1.45; }

.search-form {
  display: flex;
  gap: 10px;
  width: min(650px, 100%);
  padding: 8px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 82, 100, .24);
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 16px 45px rgba(0,0,0,.26), 0 0 28px rgba(255,24,51,.08);
}
.search-form input { flex: 1; min-width: 0; border: 0; outline: 0; border-radius: 999px; padding: 15px 18px; background: transparent; color: #fff; font-size: 16px; letter-spacing: .04em; }
.search-form input::placeholder { color: rgba(255,255,255,.42); }
.search-form button, .mini-menu a { border: 0; border-radius: 999px; padding: 0 22px; color: #fff; background: linear-gradient(135deg, rgba(255,24,51,.84), rgba(107,0,13,.78)); cursor: pointer; box-shadow: 0 12px 32px rgba(255,24,51,.22); font-size: 15px; }

.hero-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-btn { min-width: 116px; padding: 13px 22px; border: 1px solid rgba(255, 74, 92, .26); border-radius: 999px; background: linear-gradient(135deg, rgba(16, 3, 5, .76), rgba(0, 0, 0, .52)); color: rgba(255, 244, 244, .86); font-size: 15px; letter-spacing: .06em; text-transform: lowercase; box-shadow: 0 16px 34px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); transition: transform .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease; }
.hero-btn-primary { border-color: rgba(255,24,51,.48); background: linear-gradient(135deg, rgba(255,24,51,.26), rgba(8,0,2,.68)); color: #fff; box-shadow: 0 18px 42px rgba(0,0,0,.42), 0 0 28px rgba(255,24,51,.18), inset 0 1px 0 rgba(255,255,255,.1); }
.hero-btn:hover { transform: translateY(-2px); color: #fff; border-color: rgba(255,97,113,.55); box-shadow: 0 20px 46px rgba(0,0,0,.46), 0 0 34px rgba(255,24,51,.22), inset 0 1px 0 rgba(255,255,255,.1); }

.live-panel { border-radius: 34px; overflow: hidden; min-height: 500px; }
.panel-topbar { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.045); color: rgba(255,255,255,.76); font-size: 13px; letter-spacing: .08em; }
.online-dot { color: #ff9daa; text-shadow: 0 0 18px rgba(255,24,51,.55); }
.panel-body { display: grid; gap: 16px; padding: 22px; }
.pulse-card { position: relative; overflow: hidden; padding: 22px; border: 1px solid rgba(255,255,255,.1); border-radius: 24px; background: rgba(255,255,255,.055); animation: cardFloat 4.6s ease-in-out infinite alternate; }
.pulse-card:nth-child(2) { animation-delay: -1.8s; }
.pulse-card::after { content: ""; position: absolute; inset: -40% -70%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent); transform: rotate(15deg) translateX(-30%); animation: shimmer 5s ease-in-out infinite; }
.pulse-card span { display: inline-block; margin-bottom: 10px; color: #ff8a98; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.pulse-card strong { display: block; font-size: 25px; margin-bottom: 8px; }
.pulse-card p { color: var(--muted); line-height: 1.45; }
.mini-menu { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.mini-menu a { display: inline-flex; align-items: center; min-height: 40px; text-transform: lowercase; }

.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.quick-card { position: relative; overflow: hidden; min-height: 150px; padding: 24px; border-radius: 28px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.quick-card:hover { transform: translateY(-5px); border-color: rgba(255,97,113,.48); box-shadow: 0 26px 84px rgba(0,0,0,.52), 0 0 38px rgba(255,24,51,.18); }
.quick-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 16px; background: rgba(255,24,51,.16); border: 1px solid rgba(255,255,255,.08); font-size: 22px; }
.quick-card strong { display: block; font-size: 24px; margin-bottom: 8px; }
.quick-card p { color: var(--muted); line-height: 1.4; }

#bottom-info-widget { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 9999; display: flex; align-items: center; gap: 7px; max-width: calc(100vw - 24px); padding: 10px 15px; border: 1px solid rgba(255,82,100,.26); border-radius: 999px; background: linear-gradient(135deg, rgba(30,5,9,.78), rgba(0,0,0,.68)); color: #fff; box-shadow: 0 12px 38px rgba(0,0,0,.38), 0 0 24px rgba(255,24,51,.18), inset 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); font: 700 14px/1.2 "Coolvetica", Arial, sans-serif; white-space: nowrap; user-select: none; }
#biw-icon { font-size: 18px; line-height: 1; }
.biw-dot { opacity: .45; color: rgba(255, 244, 244, .62); }

@keyframes starFloat { from { transform: translate3d(0,0,0); } to { transform: translate3d(-90px, 120px, 0); } }
@keyframes orbDrift { from { transform: translate3d(0, -12px, 0) scale(1); } to { transform: translate3d(18px, 14px, 0) scale(1.07); } }
@keyframes cardFloat { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@keyframes shimmer { 0%, 55% { transform: rotate(15deg) translateX(-45%); opacity: 0; } 70% { opacity: 1; } 100% { transform: rotate(15deg) translateX(45%); opacity: 0; } }

@media (max-width: 900px) {
  .content { padding-left: 92px; }
  .hero { grid-template-columns: 1fr; }
  .live-panel { min-height: auto; }
  .quick-grid { grid-template-columns: 1fr; }
}

@media (max-width: 660px) {
  body { overflow-y: auto; }
  .topbar { height: 58px; padding: 0 16px; }
  .logo { font-size: 14px; }
  .header-nav { gap: 18px; }
  .header-nav a { font-size: 13px; }
  .side-dock { display: none; }
  .content { padding: 86px 16px 112px; }
  .hero-copy { min-height: auto; border-radius: 28px; }
  h1 { white-space: normal; font-size: clamp(42px, 14vw, 72px); letter-spacing: -.045em; }
  .search-form { flex-direction: column; border-radius: 28px; }
  .search-form button { min-height: 46px; }
  #bottom-info-widget { left: 12px; right: 12px; bottom: 10px; transform: none; justify-content: center; }
}

#online-count, #network-generation, #ping-quality {
  color: rgba(255, 244, 244, .92);
  text-shadow: 0 0 14px rgba(255, 24, 51, .22);
}

.metric-label {
  color: #ff8a98;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  #bottom-info-widget {
    flex-wrap: wrap;
    border-radius: 22px;
    white-space: normal;
    row-gap: 6px;
  }
}


/* Cleanup requested: one font, no red labels, no descriptions/search/icon clutter */
body, button, a, input, time, span, strong, p, h1, h2, h3 {
  font-family: "Coolvetica", Arial, sans-serif;
}

.kicker, .subline, .search-form, .mini-menu, .dock-mark, .quick-card p, .pulse-card p, .online-dot {
  display: none !important;
}

.panel-topbar {
  justify-content: center;
  color: rgba(255, 244, 244, .86);
}

.pulse-card span, .metric-label {
  color: rgba(255, 244, 244, .86);
  text-shadow: none;
  font-family: "Coolvetica", Arial, sans-serif;
}

.metric-label {
  font-size: 14px;
  letter-spacing: 0;
  text-transform: lowercase;
}

#bottom-info-widget, #online-count, #network-generation, #ping-quality, #biw-date-time, #biw-temp, #biw-icon {
  font-family: "Coolvetica", Arial, sans-serif;
}

#online-count, #network-generation, #ping-quality {
  color: rgba(255, 244, 244, .92);
  text-shadow: none;
}

#biw-icon {
  font-size: 18px;
}

.quick-card {
  min-height: 116px;
}

.pulse-card strong, .quick-card strong {
  margin-bottom: 0;
}


/* Final polish fixes */
html, body, button, a, input, time, span, strong, p, h1, h2, h3, div, section, article, nav {
  font-family: "Coolvetica", Arial, sans-serif !important;
}

.hero-actions {
  margin-top: 28px;
}

.pulse-card span, .metric-label {
  color: rgba(255, 244, 244, .88) !important;
  font-family: "Coolvetica", Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: lowercase !important;
  text-shadow: none !important;
}

#network-generation, #ping-quality, #online-count {
  text-transform: lowercase;
}

@media (max-width: 660px) {
  .hero-actions {
    margin-top: 24px;
  }
}


/* Sidebar image assets + final requested polish */
.side-dock {
  width: 68px;
  padding: 10px 9px;
}

.dock-link {
  width: 48px;
  height: 48px;
  padding: 10px;
  font-size: 0;
}

.dock-icon {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(255,255,255,.16));
}

.dock-link:nth-child(3) .dock-icon {
  width: 32px;
  height: 32px;
}

.hero {
  min-height: calc(100vh - 230px);
  align-items: center;
}

.hero-copy {
  min-height: 330px;
  padding: clamp(26px, 4vw, 48px);
  border-radius: 30px;
}

.hero-actions {
  margin-top: 44px;
}

.live-panel {
  min-height: 330px;
}

.pulse-card span,
.metric-label {
  font-family: inherit !important;
  color: rgba(255, 244, 244, .88) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

#biw-date-time,
#biw-temp {
  text-transform: none !important;
}

#network-generation,
#ping-quality,
#online-count {
  text-transform: lowercase !important;
}

@media (max-width: 900px) {
  .hero-copy,
  .live-panel {
    min-height: 260px;
  }
}

@media (max-width: 660px) {
  .hero-actions {
    margin-top: 36px;
  }
}


/* User-requested final fixes: no forced lowercase except exact live values, consistent font, smaller title area, aligned proxy icon */
html, body, button, a, input, time, span, strong, p, h1, h2, h3, div, section, article, nav,
.section-title, .featured-title, .tools-title, .grid-title, .category-title, .quick-card strong, .pulse-card strong {
  font-family: "Coolvetica", Arial, sans-serif !important;
}

/* Keep date/time capitalization normal. Network/ping casing is handled in JS only. */
#bottom-info-widget, #bottom-info-widget *, #biw-date-time, #biw-temp, #network-generation, #ping-quality, #online-count {
  text-transform: none !important;
}

.metric-label,
.pulse-card span,
.section-title,
.featured-title,
.tools-title,
.grid-title,
.category-title,
h2 {
  color: rgba(255, 244, 244, .92) !important;
  font-family: "Coolvetica", Arial, sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-shadow: none !important;
}

/* Remove the oversized empty glass square around the title. */
.hero-copy {
  min-height: auto !important;
  padding: 10px 0 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.hero {
  align-items: center !important;
}

.hero-actions {
  margin-top: 48px !important;
}

/* Center the local sidebar icons, with the proxy/server icon nudged up into alignment. */
.dock-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.dock-icon {
  display: block !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.dock-link:nth-child(3) .dock-icon {
  width: 34px !important;
  height: 34px !important;
  transform: translateY(-2px) !important;
}


.dock-link:last-child .dock-icon{transform:translateY(5px);}
