:root {
  /* Default = Overworld (Succulents) */
  --bg: #0f2930; /* deepened from #27768A */
  --bg-alt: #12343d;
  --card: rgba(6, 24, 28, 0.96);
  --border-subtle: rgba(240, 245, 226, 0.16);
  --accent: #85a156;
  --accent-soft: rgba(133, 161, 86, 0.24);
  --text: #f0f5e2;
  --muted: #589da4;
  --ok: #748d44;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 22px 50px rgba(0, 0, 0, 0.7);
}

/* Palette variants mapped to your images */
body[data-palette="overworld"] {
  /* Succulents */
  --bg: #0f2930;
  --bg-alt: #12343d;
  --card: rgba(6, 24, 28, 0.96);
  --accent: #85a156;
  --accent-soft: rgba(133, 161, 86, 0.24);
  --text: #f0f5e2;
  --muted: #589da4;
  --ok: #748d44;
}

body[data-palette="nether"] {
  /* Splash of Autumn */
  --bg: #2b0506;
  --bg-alt: #3a0709;
  --card: rgba(37, 5, 7, 0.97);
  --accent: #d08728;
  --accent-soft: rgba(208, 135, 40, 0.24);
  --text: #fff0f0;
  --muted: #e0c1c1;
  --ok: #df1d2d;
}

body[data-palette="end"] {
  /* Purple Joy */
  --bg: #251132;
  --bg-alt: #31163f;
  --card: rgba(23, 11, 34, 0.97);
  --accent: #d876a9;
  --accent-soft: rgba(216, 118, 169, 0.24);
  --text: #f8fbff;
  --muted: #9c539c;
  --ok: #c067a2;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  overflow-x: hidden;
  font-weight: 700;
  background:
    radial-gradient(circle at 0 0, rgba(133, 161, 86, 0.16), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(88, 157, 164, 0.25), transparent 55%),
    var(--bg);
  color: var(--text);
}

a,
a:visited,
a:active {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #748D44;
  text-decoration: none;
}

.tc-root {
  position: relative;
}

.tc-shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.tc-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(5, 7, 18, 0.45), rgba(5, 7, 18, 0.35));
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
}

.tc-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  gap: 1rem;
}

.tc-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.tc-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), var(--shadow-soft);
}

.tc-brand-text {
  display: flex;
  flex-direction: column;
}

.tc-brand-name {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.tc-brand-tag {
  font-size: 0.78rem;
  color: var(--muted);
}

.tc-brand-wordmark {
  display: block;
  max-height: 50px;
  width: auto;
}

.tc-top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-bloom {
  position: absolute;
  left: 90%;
  bottom: -55px;
  width: 72px;
  height: 72px;
  transform: translateX(-50%);
  background: url("../assets/spore_blossom.webp") center bottom / contain
    no-repeat;
  pointer-events: none;
  z-index: 1;
}

.nav-spores {
  position: absolute;
  left: 90%;
  bottom: -55px; /* align spawn area with spore blossom */
  transform: translateX(-50%);
  width: 120px;
  height: 260px; /* extend down into the page */
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.spore {
  position: absolute;
  top: 180px; /* start at vertical center of the 72px-tall blossom */
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  animation: sporeFall var(--dur, 6s) infinite linear;
}

@keyframes sporeFall {
  0% {
    transform: translate(0, 0);
    opacity: 0;
    background: transparent;
    box-shadow: none;
  }
  20% {
    transform: translate(calc(var(--sx, 0px) * 0.3), calc(var(--sy, 80px) * 0.2));
    opacity: 0.4;
    background: #5f9914; /* slightly brighter olive green */
    box-shadow: 0 0 3px rgba(95, 153, 20, 0.7);
  }
  50% {
    transform: translate(calc(var(--sx, 0px) * 0.7), calc(var(--sy, 80px) * 0.5));
    opacity: 0.65;
    background: #5f9914;
    box-shadow: 0 0 4px rgba(95, 153, 20, 0.75);
  }
  80% {
    transform: translate(calc(var(--sx, 0px) * 0.95), calc(var(--sy, 80px) * 0.85));
    opacity: 0;
    background: transparent;
    box-shadow: none;
  }
  100% {
    transform: translate(calc(var(--sx, 0px) * 0.05), var(--sy, 80px));
    opacity: 0;
    background: transparent;
    box-shadow: none;
  }
}

.tc-palette-switcher {
  position: relative;
}

.palette-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(8, 11, 26, 0.9);
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
}

.palette-indicator {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), #3b82f6);
}

.palette-menu {
  position: absolute;
  right: 0;
  margin-top: 0.35rem;
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem;
  display: none;
  min-width: 150px;
  box-shadow: var(--shadow-soft);
}

.palette-menu.open {
  display: block;
}

.palette-menu button {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--muted);
  text-align: left;
  padding: 0.35rem 0.5rem;
  border-radius: 0.4rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.palette-menu button:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.tc-login-btn {
  background: rgba(8, 11, 26, 0.9);
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: default; /* visual only for now */
}

.tc-burger {
  width: 34px;
  height: 28px;
  border-radius: 0.65rem;
  border: 1px solid var(--border-subtle);
  background: rgba(8, 11, 26, 0.95);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.tc-burger span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.tc-burger.open span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.tc-burger.open span:nth-child(2) {
  opacity: 0;
}

.tc-burger.open span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

.tc-nav {
  position: absolute;
  right: 1.2rem;
  top: 3.1rem;
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  background: var(--card);
  border-radius: 0.75rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
  z-index: 30;
}

.tc-nav.open {
  display: flex;
}

.tc-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.15rem 0;
}

.tc-nav a:hover {
  color: var(--text);
}

/* Divider in nav menu */
.tc-nav-divider {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--muted);
  opacity: 0.4;
  margin: 0.5rem 0;
}

/* Palette Modal */
.palette-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  justify-content: center;
  align-items: center;
}

.palette-modal-overlay.open {
  display: flex;
}

.palette-modal {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
  min-width: 200px;
  max-width: 280px;
}

.palette-modal h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--text);
}

.palette-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.palette-options button {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.palette-options button:hover {
  background: var(--accent-soft);
  color: var(--text);
}

/* Pack buttons grid */
.tc-button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.tc-pack-btn {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  box-shadow: var(--shadow-soft);
}

.tc-pack-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Pack Modals */
.pack-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.pack-modal-overlay.open {
  display: flex;
}

.pack-modal {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  min-width: 280px;
  max-width: 400px;
  width: 100%;
  max-height: 70vh;
  overflow-y: auto;
}

.pack-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.pack-modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text);
}

.pack-modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}

.pack-modal-close:hover {
  color: var(--text);
}

.pack-modal-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pack-modal-list li {
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: 0.9rem;
}

.pack-modal-list li.pack-empty {
  text-align: center;
  font-style: italic;
  background: transparent;
}

.tc-hero {
  padding: 1.5rem 0 2.5rem;
  background:
    linear-gradient(to bottom, rgba(5, 7, 18, 0.2), rgba(5, 7, 18, 0.2)),
    url("../assets/hero_big.png") center center / cover no-repeat;
}

.tc-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.tc-hero-main {
  /* Wrapper only now, no visible card styling */
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.tc-hero-main h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  line-height: 1.12;
}

.accent {
  background: linear-gradient(120deg, var(--accent), #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tc-hero-main p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 34rem;
}

.tc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.server-address .label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.server-address code {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(7, 9, 20, 0.95);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

.btn-primary,
.btn-secondary {
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), #3b82f6);
  color: #020412;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  background: rgba(7, 10, 22, 0.95);
  border: 1px solid var(--border-subtle);
  color: var(--text);
}

.tc-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.77rem;
  color: var(--muted);
}

.tc-hero-meta span {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(6, 9, 22, 0.96);
}

.server-quick {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 360px;
  width: 100%;
}

.server-quick h3 {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
  color: var(--text);
}

.server-quick ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.2rem;
}

.server-quick li strong {
  font-weight: 600;
  color: var(--text);
}

.server-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(7, 9, 22, 0.7);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
  max-width: 360px;
}

.server-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.server-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.server-subtitle {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.server-address-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
}

.server-address-btn:hover {
  color: var(--accent);
}

.server-address-btn[data-copied="true"]::after {
  content: " Copied!";
  margin-left: 0.35rem;
  font-size: 0.75rem;
  color: var(--accent);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #4b5563;
  box-shadow: 0 0 0 4px rgba(75, 85, 99, 0.4);
}

.status-dot.online {
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.3);
}

.status-dot.offline {
  background: #dc2626;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.45);
}

.server-stats {
  margin: 0 0 0.5rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
}

.server-stats > div {
  align-self: start;
}

.server-stats .server-icon-cell {
  grid-row: span 2;
}

.server-stats dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.server-stats dd {
  margin: 0.1rem 0 0;
  font-size: 0.86rem;
}

.server-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: none;
}

.server-note {
  margin-top: 1.5rem;
  padding-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.tc-section {
  padding: 2.5rem 0;
  scroll-margin-top: 220px; /* offset for sticky header when using anchor links */
}

.tc-section-alt {
  background: var(--bg-alt);
}

/* Per-section background tweaks for visual separation */
#server-info.tc-section-alt {
  background: rgba(5, 7, 18, 0.35);
}

#rules.tc-section-alt {
  background: var(--bg-alt);
}

#server-packs.tc-section {
  background: rgba(5, 7, 18, 0.18);
}

#client-info.tc-section-alt {
  background: rgba(5, 7, 18, 0.3);
}

#world-downloads.tc-section {
  background: rgba(5, 7, 18, 0.16);
  border-top: 1px solid var(--border-subtle);
}

.tc-section-header {
  max-width: 40rem;
  margin-bottom: 1.7rem;
}

.tc-section-header h2 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
}

.tc-section-header p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Center header text for Server Rules section */
#rules .tc-section-header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.tc-grid {
  display: grid;
  gap: 1.25rem;
}

.about-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tc-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--card);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.93rem;
}

.tc-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
}

.tc-card p {
  margin: 0;
  color: var(--muted);
}

.rules-list {
  margin: 0;
  padding-left: 0;
  font-size: 0.95rem;
  color: var(--muted);
  display: grid;
  gap: 0.4rem;
  text-align: center;
  list-style: none;
}

.tc-worldmap-placeholder {
  border-radius: var(--radius-lg);
  border: none;
  padding: 1.2rem 0;
  text-align: center;
  background: transparent;
}

.world-preview {
  max-width: 160px;
  height: auto;
  display: block;
  margin: 0 auto 0.7rem;
}

.tc-worldmap-placeholder p {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  color: var(--text);
}

.tc-community-layout {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
}

.community-card ul {
  margin: 0.3rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  display: grid;
  gap: 0.25rem;
}

.server-info-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: flex-start;
}

.server-info-main,
.server-info-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.packs-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.packs-column h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.packs-column h4 {
  margin: 0.6rem 0 0.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.packs-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
  display: grid;
  gap: 0.2rem;
}

.downloads-list {
  margin: 0;
  padding-left: 0;
}

.download-meta {
  margin-left: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.tools-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

#server-packs .tools-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tools-list {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
  display: grid;
  gap: 0.2rem;
}

/* Footer */
.tc-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 7, 18, 0.6);
  padding: 1.2rem 0 1.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.tc-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
}

.tc-footer-main {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tc-footer-brand {
  font-weight: 700;
  color: var(--text);
}

.tc-footer-text {
  color: var(--muted);
}

.tc-footer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
/* Firefly bush decoration */
.firefly-bush {
  position: fixed;
  left: 0.75rem;
  bottom: -4px;
  z-index: 1;
  pointer-events: none;
}

.bush {
  position: relative;
  z-index: 2;
  width: 100px;
  height: 80px;
  background: url("../assets/firefly_bush.webp") bottom left / contain no-repeat;
  border-radius: 0;
}

.fireflies {
  position: absolute;
  inset: -30px -40px 0 0;
  z-index: 1;
}

.firefly {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  animation: drift var(--dur, 10s) infinite ease-in-out alternate;
}

@keyframes drift {
  0% {
    transform: translate(0, 0);
    opacity: 0;
    box-shadow: 0 0 0 rgba(249, 250, 251, 0);
  }
  25% {
    transform: translate(var(--tx1, 20px), var(--ty1, -20px));
    opacity: 0.4;
    background: #f9fafb;
    box-shadow: 0 0 4px rgba(249, 250, 251, 0.6);
  }
  55% {
    transform: translate(var(--tx2, -40px), var(--ty2, -40px));
    opacity: 1;
    background: #f9fafb;
    box-shadow: 0 0 8px rgba(249, 250, 251, 0.9);
  }
  80% {
    transform: translate(var(--tx3, 10px), var(--ty3, -60px));
    opacity: 0.5;
    background: #f9fafb;
    box-shadow: 0 0 6px rgba(249, 250, 251, 0.8);
  }
  100% {
    transform: translate(
      calc(var(--tx3, 10px) * 1.2),
      calc(var(--ty3, -60px) * 1.1)
    );
    opacity: 0;
    background: transparent;
    box-shadow: 0 0 0 rgba(249, 250, 251, 0);
  }
}

@media (max-width: 840px) {
  .tc-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .tc-nav {
    display: none;
    flex-direction: column;
    padding-bottom: 0.8rem;
  }

  .tc-nav.open {
    display: flex;
  }
}

@media (max-width: 600px) {
  .tc-topbar {
    align-items: center;
    gap: 0.5rem;
  }

  .tc-brand-wordmark {
    max-height: 36px;
  }

  .server-info-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .firefly-bush {
    transform: scale(0.85);
  }
}

@media (max-width: 400px) {
  .tc-brand-wordmark {
    max-height: 28px;
  }
}


