@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #0b100e;
  --surface: #111a16;
  --surface-2: #17221c;
  --border: rgba(171, 198, 177, .13);
  --text: #eff5ee;
  --muted: #93a297;
  --green: #b7f36b;
  --green-dark: #1e321b;
  --blue: #9bc6ff;
  --yellow: #f6ce79;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); background: var(--bg);
  font-family: 'DM Sans', Arial, sans-serif;
  background-image: radial-gradient(ellipse at 77% 0%, rgba(87,132,84,.12), transparent 37%), radial-gradient(ellipse at 5% 25%, rgba(66,119,89,.07), transparent 30%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

.site-header { height: 75px; background: rgba(11,16,14,.9); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); }
.nav { height: 100%; display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 21px 'Space Grotesk', sans-serif; letter-spacing: -.8px; white-space: nowrap; }
.brand-icon { width: 35px; height: 35px; display: grid; place-items: center; background: var(--green); color: #14200f; border-radius: 11px; font-size: 21px; font-weight: 700; }
.brand-accent { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 29px; color: #a6b3a9; font-size: 12px; font-weight: 700; }
.nav-links a { transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--green); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 0 16px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-size: 12px; font-weight: 800; transition: .2s ease; }
.button-primary { color: #15200f; background: var(--green); box-shadow: 0 5px 18px rgba(183,243,107,.09); }
.button-primary:hover { background: #caff8c; transform: translateY(-1px); }
.button-outline { color: #e1e9e1; background: rgba(255,255,255,.025); border-color: var(--border); }
.button-outline:hover { border-color: rgba(183,243,107,.45); color: var(--green); background: rgba(183,243,107,.045); }

.hero { padding: 76px 0 53px; }
.hero-layout { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 45px; }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: 1.45px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(183,243,107,.9); }
.hero h1, .page-intro h1 { max-width: 650px; margin: 19px 0 17px; font: 700 clamp(43px,5.2vw,65px)/1.05 'Space Grotesk', sans-serif; letter-spacing: -3px; }
.hero h1 span { color: var(--green); }
.hero-copy > p, .page-intro > p { max-width: 545px; margin: 0; color: #9eaca1; font-size: 14px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 26px; }
.hero-footnote { display: flex; align-items: center; gap: 8px; color: #849388; margin-top: 22px; font-size: 10px; }
.check-mark { color: var(--green); font-weight: 900; font-size: 14px; }
.hero-visual { height: 315px; position: relative; overflow: hidden; border: 1px solid rgba(200,229,196,.17); border-radius: 23px; background: linear-gradient(145deg,#263e37,#172b28 55%,#17212a); box-shadow: 0 25px 70px rgba(0,0,0,.25); }
.hero-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 68% 25%,rgba(190,239,139,.17),transparent 40%); }
.visual-label { position: absolute; top: 19px; left: 20px; z-index: 4; padding: 8px 10px; color: #e4f0dd; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; background: rgba(4,13,10,.35); font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.sun { position: absolute; top: 43px; right: 67px; width: 103px; height: 103px; border-radius: 50%; background: linear-gradient(135deg,#e8f6ad,#a8d978); box-shadow: 0 0 55px rgba(183,243,107,.24); }
.island { position: absolute; border-radius: 50%; }
.island-back { width: 290px; height: 91px; left: -32px; bottom: 49px; transform: rotate(-10deg); background: linear-gradient(155deg,#62876a,#2d5146); border: 1px solid rgba(214,245,188,.18); }
.island-front { width: 250px; height: 73px; right: -23px; bottom: 13px; transform: rotate(8deg); background: linear-gradient(155deg,#44635b,#1a3635); border: 1px solid rgba(214,245,188,.13); }
.palm { position: absolute; z-index: 2; left: 105px; bottom: 85px; width: 8px; height: 94px; border-radius: 8px; background: #23392d; transform: rotate(7deg); }
.palm::before, .palm::after { content: ""; position: absolute; top: -5px; left: -2px; width: 70px; height: 17px; border-radius: 100% 0 100% 0; background: #85ad65; transform: rotate(-33deg); transform-origin: left center; }
.palm::after { transform: rotate(39deg) scaleX(-1); left: 7px; }
.boat { position: absolute; z-index: 3; width: 92px; height: 27px; right: 80px; bottom: 100px; background: #c28c55; clip-path: polygon(0 0,100% 0,80% 100%,17% 100%); }
.boat::before { content: ""; position: absolute; left: 43px; bottom: 20px; width: 4px; height: 61px; background: #e1e4c7; }
.visual-caption { position: absolute; z-index: 4; left: 22px; right: 24px; bottom: 20px; display: flex; justify-content: space-between; align-items: end; }
.visual-caption strong { display: block; font: 700 20px 'Space Grotesk', sans-serif; }
.visual-caption span { display: block; color: #c0d1c2; font-size: 10px; margin-top: 5px; }
.visual-caption .wave-symbol { color: #d1ee9c; font-size: 31px; }

.quick-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 65px; }
.stat-card { display: flex; align-items: center; gap: 13px; padding: 17px; border: 1px solid var(--border); border-radius: 14px; background: rgba(17,26,22,.78); }
.stat-icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; color: var(--green); background: rgba(183,243,107,.09); font-size: 20px; }
.stat-card strong { display: block; font: 700 13px 'Space Grotesk',sans-serif; }
.stat-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }

.directory-section { padding-bottom: 66px; scroll-margin-top: 95px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 23px; }
.section-kicker { display: block; margin-bottom: 9px; }
.section-heading h2, .owner-callout h2 { margin: 0 0 7px; font: 700 28px 'Space Grotesk',sans-serif; letter-spacing: -.9px; }
.section-heading p, .owner-callout p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.filter-panel { display: grid; grid-template-columns: 1.55fr .75fr .85fr auto; gap: 10px; align-items: end; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: rgba(17,26,22,.9); }
.search-box { position: relative; }
.search-box > span { position: absolute; top: 50%; left: 13px; transform: translateY(-53%); color: #8c9b8f; font-size: 22px; }
.search-box input, .filter-control select, .form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 42px; padding: 0 12px; color: #e9f0e9; border: 1px solid rgba(158,184,162,.15); border-radius: 9px; outline: 0; background: #0b120e; font-size: 11px; }
.search-box input { padding-left: 39px; }
.search-box input::placeholder, .form-field input::placeholder, .form-field textarea::placeholder { color: #6d7c70; }
.search-box input:focus, .filter-control select:focus, .form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: rgba(183,243,107,.55); }
.filter-control > span { display: block; margin: 0 0 6px 2px; color: #7f8d82; font-size: 9px; font-weight: 800; letter-spacing: .9px; }
.filter-control select, .form-field select { cursor: pointer; }
.filter-control select option, .form-field select option { background: #111a16; }
.reset-button { min-height: 42px; white-space: nowrap; }
.category-list { display: flex; gap: 8px; overflow-x: auto; padding: 17px 0 13px; scrollbar-width: none; }
.category-list::-webkit-scrollbar { display: none; }
.category { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; min-height: 35px; padding: 0 12px; color: #a9b6aa; border: 1px solid var(--border); border-radius: 8px; background: rgba(255,255,255,.025); cursor: pointer; font-size: 10px; font-weight: 700; transition: .2s; }
.category:hover { border-color: rgba(183,243,107,.36); color: white; }
.category.active { color: var(--green); background: rgba(183,243,107,.09); border-color: rgba(183,243,107,.35); }
.results-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 2px 13px; color: #96a498; font-size: 10px; }
.results-row strong { color: #e8f0e7; }
.server-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }
.server-card { min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(145deg,rgba(22,33,27,.98),rgba(15,23,19,.98)); transition: .2s ease; }
.server-card:hover { transform: translateY(-3px); border-color: rgba(183,243,107,.28); box-shadow: 0 14px 32px rgba(0,0,0,.17); }
.card-top, .card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.status, .sea-pill, .mini-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 30px; font-size: 8px; font-weight: 800; white-space: nowrap; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-green { color: #b9ef8a; background: rgba(147,214,95,.1); }
.status-blue { color: #a4caff; background: rgba(115,163,232,.1); }
.status-yellow { color: #f0d18b; background: rgba(230,184,85,.1); }
.sea-pill { color: #a5b3a8; background: rgba(255,255,255,.06); }
.server-title { display: flex; align-items: center; gap: 11px; margin-top: 15px; }
.game-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid rgba(183,243,107,.15); border-radius: 11px; color: #cef59a; background: linear-gradient(135deg,#314c37,#202f2b); font-size: 19px; }
.server-title h3 { overflow: hidden; margin: 0; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.server-title small { display: block; margin-top: 5px; color: #839186; font-size: 9px; }
.server-title small b { color: #c1cec1; }
.card-description { min-height: 38px; margin: 12px 0; color: #9daa9e; font-size: 10px; line-height: 1.65; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tags span { padding: 5px 7px; color: #aab7ab; border: 1px solid rgba(255,255,255,.04); border-radius: 6px; background: rgba(255,255,255,.04); font-size: 8px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 13px; padding: 12px 0; color: #8b9a8e; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 9px; }
.card-bottom { padding-top: 12px; }
.card-bottom small { color: #748277; font-size: 9px; }
.join-button { min-height: 31px; padding: 0 10px; border: 0; border-radius: 7px; color: #15200f; background: var(--green); cursor: pointer; font-size: 9px; font-weight: 800; }
.join-button:hover { background: #caff8c; }
.empty-state { padding: 48px 20px; border: 1px dashed rgba(171,198,177,.23); border-radius: 14px; text-align: center; }
.empty-state > span { color: var(--green); font-size: 28px; }
.empty-state h3 { margin: 10px 0 5px; font: 700 18px 'Space Grotesk',sans-serif; }
.empty-state p { color: var(--muted); font-size: 11px; }
.owner-callout { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 70px; padding: 25px 28px; border: 1px solid rgba(183,243,107,.18); border-radius: 16px; background: linear-gradient(110deg,rgba(48,76,39,.25),rgba(17,26,22,.85) 63%); }
.owner-callout .section-kicker { margin-bottom: 8px; }
.owner-callout h2 { font-size: 21px; }
.owner-callout p { max-width: 620px; }

.site-footer { padding: 25px 0; border-top: 1px solid var(--border); }
.footer-main, .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-main { padding-bottom: 19px; }
.footer-main .brand { font-size: 17px; }
.footer-main .brand-icon { width: 29px; height: 29px; font-size: 17px; border-radius: 9px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; color: #95a197; font-size: 10px; }
.footer-links a:hover, .footer-bottom a:hover { color: var(--green); }
.footer-bottom { padding-top: 14px; color: #77857a; border-top: 1px solid var(--border); font-size: 9px; }
.footer-bottom a { color: #a8b7aa; }

.inner-page { padding-top: 55px; padding-bottom: 75px; }
.page-intro { margin-bottom: 29px; }
.page-intro h1 { max-width: 760px; font-size: clamp(37px,4.5vw,54px); margin-top: 16px; }
.page-intro > p { max-width: 650px; }
.form-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 18px; align-items: start; }
.form-card, .side-card { padding: 22px; border: 1px solid var(--border); border-radius: 15px; background: rgba(17,26,22,.88); }
.form-card h2 { margin: 0 0 17px; font: 700 19px 'Space Grotesk',sans-serif; }
.info-banner { margin-bottom: 14px; padding: 11px 12px; color: #b7c9df; border: 1px solid rgba(145,182,234,.16); border-radius: 9px; background: rgba(105,151,209,.07); font-size: 10px; line-height: 1.6; }
.button-roblox { width: 100%; min-height: 42px; margin-bottom: 20px; color: #c1cbc3; border: 1px solid var(--border); background: #202a24; cursor: not-allowed; }
.coming-soon { margin-left: 5px; color: #95a295; font-size: 9px; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-field { display: block; min-width: 0; color: #d0dbd0; font-size: 10px; font-weight: 700; }
.form-field > span, fieldset legend > span { color: var(--green); }
.form-field input, .form-field select, .form-field textarea { display: block; margin-top: 7px; font-size: 11px; font-weight: 400; }
.form-field input, .form-field select { min-height: 42px; }
.form-field textarea { min-height: 105px; padding: 11px 12px; resize: vertical; line-height: 1.6; }
.form-field small, fieldset legend small { display: block; margin-top: 6px; color: #829085; font-size: 9px; font-weight: 400; line-height: 1.5; }
.full { grid-column: 1 / -1; }
fieldset.form-field { margin: 0; padding: 0; border: 0; }
fieldset legend { padding: 0; color: #d0dbd0; font-size: 10px; font-weight: 700; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.checkbox-grid label, .consent { display: flex; align-items: center; gap: 8px; padding: 10px; color: #aab8ac; border: 1px solid var(--border); border-radius: 8px; background: rgba(255,255,255,.018); font-size: 9px; font-weight: 500; }
.checkbox-grid input, .consent input { accent-color: var(--green); }
.consent { align-items: flex-start; line-height: 1.6; padding: 0; border: 0; background: transparent; }
.consent input { margin-top: 2px; }
.form-message { display: none; margin-top: 12px; padding: 12px; color: #c8efa5; border: 1px solid rgba(183,243,107,.2); border-radius: 8px; background: rgba(183,243,107,.06); font-size: 10px; line-height: 1.6; }
.form-message.visible { display: block; }
.form-message.error { color: #f0b4a9; border-color: rgba(240,140,120,.2); background: rgba(240,140,120,.06); }
.side-column { display: grid; gap: 12px; }
.side-card h3 { margin: 0 0 13px; font: 700 15px 'Space Grotesk',sans-serif; }
.side-card p { margin: 0; color: #9aa99d; font-size: 10px; line-height: 1.75; }
.check-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 21px; color: #aab8ac; font-size: 10px; line-height: 1.6; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.text-link { display: inline-block; margin-top: 13px; color: var(--green); font-size: 10px; font-weight: 700; }
.promo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; margin-bottom: 20px; }
.promo-card { padding: 19px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(145deg,rgba(22,33,27,.98),rgba(15,23,19,.98)); }
.promo-icon { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 15px; border-radius: 11px; color: var(--green); background: rgba(183,243,107,.09); font-size: 21px; }
.promo-card h2 { margin: 0 0 8px; font: 700 15px 'Space Grotesk',sans-serif; }
.promo-card p { min-height: 48px; margin: 0 0 14px; color: #9aa99d; font-size: 10px; line-height: 1.7; }
.mini-tag { color: #bce98f; background: rgba(183,243,107,.08); }
.advertise-layout { margin-top: 20px; }
.body-copy { color: #9aa99d; font-size: 11px; line-height: 1.8; }
.contact-panel { display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; padding: 15px; border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,.02); }
.contact-icon { color: var(--green); font-size: 20px; }
.contact-panel strong, .contact-panel a, .contact-panel small { display: block; }
.contact-panel strong { margin-bottom: 5px; font-size: 11px; }
.contact-panel a { color: var(--green); font-size: 10px; }
.contact-panel small { margin-top: 8px; color: #829085; font-size: 9px; line-height: 1.5; }

@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr .85fr; gap: 25px; }
  .server-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filter-panel { grid-template-columns: 1.3fr 1fr 1fr; }
  .reset-button { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 32px, 540px); }
  .site-header { height: 65px; }
  .nav-links { display: none; }
  .nav-cta { min-height: 36px; padding: 0 10px; font-size: 10px; }
  .brand { font-size: 19px; }
  .hero { padding: 49px 0 36px; }
  .hero-layout { grid-template-columns: 1fr; gap: 25px; }
  .hero h1 { font-size: 45px; letter-spacing: -2.3px; }
  .hero-copy > p { font-size: 12px; }
  .hero-visual { height: 235px; }
  .sun { width: 79px; height: 79px; right: 47px; }
  .quick-stats { gap: 7px; margin-bottom: 48px; }
  .stat-card { padding: 10px 8px; gap: 7px; }
  .stat-icon { flex-basis: 28px; width: 28px; height: 28px; font-size: 15px; }
  .stat-card strong { font-size: 9px; }
  .stat-card small { font-size: 7px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading h2 { font-size: 24px; }
  .desktop-add { display: none; }
  .filter-panel { grid-template-columns: 1fr 1fr; }
  .search-box, .reset-button { grid-column: 1 / -1; }
  .server-grid { grid-template-columns: 1fr; }
  .server-card { padding: 15px; }
  .owner-callout { align-items: flex-start; flex-direction: column; padding: 21px; margin-bottom: 48px; }
  .footer-main, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-links { gap: 13px; }
  .inner-page { padding-top: 40px; }
  .page-intro h1 { font-size: 38px; letter-spacing: -1.8px; }
  .form-layout { grid-template-columns: 1fr; }
  .form-card, .side-card { padding: 17px; }
  .form-grid { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .promo-grid { grid-template-columns: 1fr; }
  .promo-card p { min-height: 0; }
}
@media (max-width: 390px) {
  .hero h1 { font-size: 39px; }
  .quick-stats { grid-template-columns: 1fr; }
  .stat-card { padding: 12px; }
  .stat-card strong { font-size: 11px; }
  .stat-card small { font-size: 9px; }
  .category { font-size: 9px; }
  .filter-panel { grid-template-columns: 1fr; }
  .search-box, .reset-button { grid-column: auto; }
  .checkbox-grid { grid-template-columns: 1fr; }
}

/* Slightly clearer heading hierarchy across the site */
.server-title h3 { font-size: 15px; }
.form-card h2 { font-size: 21px; }
.side-card h3 { font-size: 17px; }
.promo-card h2 { font-size: 17px; }
.stat-card strong { font-size: 14px; }
.empty-state h3 { font-size: 19px; }

@media (max-width: 680px) {
  .stat-card strong { font-size: 10px; }
}


/* Keep primary navigation available on narrow screens instead of hiding it. */
@media (max-width: 680px) {
  .site-header { height: auto; }
  .nav {
    height: auto;
    min-height: 65px;
    flex-wrap: wrap;
    row-gap: 7px;
    padding: 10px 0 8px;
  }
  .nav-links {
    display: flex;
    order: 3;
    width: 100%;
    justify-content: center;
    gap: clamp(13px, 4vw, 22px);
    padding: 4px 0 2px;
  }
  .nav-links a { font-size: 10px; }
}

.tags .raid-meta-type {
  color: #17200f;
  border-color: #d8b64c;
  background: #e8c95f;
  font-weight: 800;
}
.tags .raid-meta-fruit {
  color: #f4d978;
  border-color: rgba(242,199,91,.23);
  background: rgba(242,199,91,.07);
}

.tags .sea-meta-event {
  color: #c5e7ee;
  border-color: rgba(116,190,215,.25);
  background: rgba(116,190,215,.08);
  font-weight: 650;
}

/* Use the full BloxyCrab logo image in the header and footer. */
.brand {
  gap: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 45px;
  max-width: 155px;
  object-fit: contain;
}

.footer-main .brand-logo {
  height: 39px;
  max-width: 145px;
}

@media (max-width: 640px) {
  .brand-logo {
    height: 39px;
    max-width: 132px;
  }

  .footer-main .brand-logo {
    height: 35px;
    max-width: 125px;
  }
}

/* Hard size limits for the repository logo image. These override its large
   intrinsic PNG canvas and also work when page-specific styles are imported. */
.site-header .brand,
.site-footer .brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: auto;
  max-width: 180px;
  overflow: hidden;
}

.site-header .brand-logo {
  display: block !important;
  width: 155px !important;
  height: 56px !important;
  min-width: 0 !important;
  max-width: 155px !important;
  max-height: 56px !important;
  object-fit: contain !important;
  flex: 0 0 155px !important;
}

.site-footer .brand-logo {
  display: block !important;
  width: 145px !important;
  height: 52px !important;
  min-width: 0 !important;
  max-width: 145px !important;
  max-height: 52px !important;
  object-fit: contain !important;
  flex: 0 0 145px !important;
}

@media (max-width: 640px) {
  .site-header .brand-logo {
    width: 132px !important;
    height: 48px !important;
    max-width: 132px !important;
    max-height: 48px !important;
    flex-basis: 132px !important;
  }

  .site-footer .brand-logo {
    width: 125px !important;
    height: 45px !important;
    max-width: 125px !important;
    max-height: 45px !important;
    flex-basis: 125px !important;
  }
}


/* Directory loading, empty and API error states */
.loading-state {
  padding: 34px 18px;
  color: var(--muted);
  border: 1px dashed rgba(171,198,177,.18);
  border-radius: 14px;
  text-align: center;
  font-size: 11px;
}
.loading-state[hidden] {
  display: none !important;
}
.empty-state[hidden] {
  display: none !important;
}
.error-state {
  border-color: rgba(239,145,130,.22);
}
.error-state > span {
  color: #efb2a8;
}


/* Keep Join server readable inside narrow server cards. */
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.card-bottom small {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.server-card .join-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 34px;
  padding: 0 12px;
  box-sizing: border-box;
  white-space: nowrap;
  line-height: 1;
  text-align: center;
  font-size: 9px;
}


/* Recent sorting chip */
.category.recent-category {
  border-color: rgba(183,243,107,.2);
}
.category.recent-category.active {
  color: var(--green);
  border-color: rgba(183,243,107,.42);
  background: rgba(183,243,107,.09);
  box-shadow: inset 0 0 0 1px rgba(183,243,107,.035);
}


/* Shared legal links and submission policy notice */
.footer-policy-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 13px;
  color: #a8b7aa;
  font-size: 9px;
}
.footer-policy-links a:hover {
  color: var(--green);
}
.legal-consent-note {
  margin: -2px 0 0;
  color: #879589;
  font-size: 9px;
  line-height: 1.65;
}
.legal-consent-note a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: rgba(183,243,107,.3);
  text-underline-offset: 2px;
}
@media (max-width: 680px) {
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .footer-policy-links {
    justify-content: flex-start;
  }
}
