:root {
  --bg: #0d1117;
  --bg-soft: #161b22;
  --grass: #4caf50;
  --stone: #8b949e;
  --sand: #e0c07a;
  --snow: #dbe7ff;
  --lava: #ff6a00;
  --text: #e6edf3;
  --muted: #9aa4b2;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #0b0f14 0%, #111827 100%);
  overflow-x: hidden;
}

body.nav-menu-open {
  overflow: hidden;
}

.page-main {
  padding-top: 88px;
}

.page-hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(76, 175, 80, 0.3), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(255, 106, 0, 0.2), transparent 40%),
    linear-gradient(180deg, rgba(13, 17, 23, 0.9), rgba(13, 17, 23, 1));
}

.slide-lead {
  color: var(--muted);
  margin: -12px 0 22px;
  max-width: 720px;
  line-height: 1.6;
}

.site-nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1d2530;
}

.nav-links a.active,
.logo.active {
  color: #9be79b;
}

.logo {
  font-family: "Press Start 2P", monospace;
  font-size: 1rem;
  color: #9be79b;
  text-decoration: none;
  font-weight: 700;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.hero {
  min-height: 88vh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(76, 175, 80, 0.3), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(255, 106, 0, 0.2), transparent 40%),
    linear-gradient(180deg, rgba(13, 17, 23, 0.9), rgba(13, 17, 23, 1));
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(76, 175, 80, 0.45);
  border-radius: 10px;
  background: rgba(76, 175, 80, 0.12);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #9be79b;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a {
  margin-left: 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(76, 175, 80, 0.45);
  border-radius: 10px;
  padding: 8px 12px;
  background: rgba(76, 175, 80, 0.12);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #9be79b;
  background: rgba(76, 175, 80, 0.22);
  border-color: rgba(76, 175, 80, 0.7);
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.25);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0 100px;
}

.kicker {
  font-family: "Press Start 2P", monospace;
  color: var(--grass);
  font-size: 0.7rem;
}

h1 {
  margin: 20px 0 12px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.12;
}

h1 span {
  color: #9be79b;
}

.subtitle {
  color: var(--muted);
  max-width: 650px;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 12px 18px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
}

.btn:active {
  transform: translateY(0);
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: ripple 0.7s ease-out forwards;
  background: rgba(255, 255, 255, 0.35);
}

@keyframes ripple {
  from {
    width: 0;
    height: 0;
    opacity: 0.8;
  }
  to {
    width: 220px;
    height: 220px;
    opacity: 0;
  }
}

.btn-main {
  border-color: rgba(76, 175, 80, 0.65);
  background: linear-gradient(135deg, #4caf50, #2f7c34);
  box-shadow: 0 8px 18px rgba(76, 175, 80, 0.25);
}

.btn-main:hover {
  border-color: #9be79b;
  box-shadow: 0 8px 22px rgba(76, 175, 80, 0.4);
}

.btn-ghost {
  border-color: rgba(76, 175, 80, 0.45);
  background: rgba(76, 175, 80, 0.12);
}

.btn-ghost:hover {
  border-color: rgba(76, 175, 80, 0.7);
  background: rgba(76, 175, 80, 0.22);
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.25);
}

.section {
  padding: 70px 0;
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 24px;
}

.hero-stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  max-width: 850px;
}

.stat {
  padding: 12px 14px;
  border: 1px solid #273140;
  border-radius: 12px;
  background: rgba(10, 14, 20, 0.55);
  display: grid;
  gap: 6px;
}

.stat strong {
  font-size: 1.15rem;
  word-break: break-word;
  line-height: 1.35;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.card {
  background: linear-gradient(180deg, #161b22, #11161d);
  border: 1px solid #232a33;
  border-radius: 16px;
  padding: 20px;
}

.card h3 {
  margin-top: 0;
}

.card p {
  color: var(--muted);
  line-height: 1.55;
}

.dev-card {
  margin-top: 14px;
}

.dev-card h3 {
  margin-bottom: 12px;
}

.dev-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.dev-member {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid #2a3340;
  border-radius: 12px;
  padding: 10px;
  background: rgba(10, 15, 22, 0.45);
}

.dev-skin {
  width: 92px;
  height: 92px;
  object-fit: contain;
  image-rendering: pixelated;
  background: #0b1016;
  border: 1px solid #2a3340;
  border-radius: 10px;
  padding: 4px;
}

.dev-text {
  margin-top: 2px;
  margin-bottom: 6px;
  font-weight: 800;
  color: #9be79b;
}

.dev-note {
  margin: 0;
  color: var(--muted);
}

.location-card {
  border-left: 4px solid #4caf50;
}

.location-status {
  margin: 12px 0 0;
  font-size: 0.92rem;
}

.location-status em {
  font-style: italic;
  display: inline-block;
  color: #9be79b;
  border: 1px solid #4caf50;
  border-radius: 8px;
  padding: 5px 12px;
  background: rgba(76, 175, 80, 0.1);
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.2);
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.roadmap-item {
  position: relative;
}

.badge {
  display: inline-block;
  margin-top: 8px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.badge.ready {
  background: rgba(76, 175, 80, 0.2);
  border-color: rgba(76, 175, 80, 0.45);
  color: #9be79b;
}

.badge.plan {
  background: rgba(224, 192, 122, 0.2);
  border-color: rgba(224, 192, 122, 0.45);
  color: #f4dca9;
}

.badge.idea {
  background: rgba(139, 148, 158, 0.2);
  border-color: rgba(139, 148, 158, 0.45);
  color: #c4cbd4;
}

.section-alt {
  background: #0b1016;
  border-top: 1px solid #1d2530;
  border-bottom: 1px solid #1d2530;
}

.biome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.biome {
  border-radius: 14px;
  padding: 34px 16px;
  text-align: center;
  font-weight: 800;
  border: 1px solid #202833;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.biome-btn {
  color: inherit;
  cursor: pointer;
}

.biome-btn:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.26);
}

.biome-btn.active {
  box-shadow: 0 0 0 2px #dbe7ff, 0 10px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
}

.biome-info {
  margin-top: 14px;
  border: 1px solid #2a3340;
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(180deg, #121923, #0f141c);
}

.biome-info h3 {
  margin: 0 0 10px;
}

.biome-info p {
  margin-top: 0;
  color: var(--muted);
}

.biome-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.biome-meta span {
  background: #0a0f16;
  border: 1px solid #2a3340;
  border-radius: 10px;
  padding: 10px 12px;
}

.biome-forest { background: linear-gradient(135deg, #2d5b34, #4caf50); }
.biome-desert { background: linear-gradient(135deg, #b58d4a, #e0c07a); color: #282010; }
.biome-snow { background: linear-gradient(135deg, #c7dbff, #f5f8ff); color: #182236; }
.biome-nether { background: linear-gradient(135deg, #5b1414, #ff6a00); }

.join p {
  color: var(--muted);
}

.whitelist-form {
  margin-top: 12px;
  max-width: 420px;
  display: grid;
  gap: 10px;
}

.whitelist-form label {
  color: var(--muted);
  font-size: 0.95rem;
}

.whitelist-form input,
.whitelist-form select {
  width: 100%;
  border: 1px solid #2a3340;
  background: #0a0f16;
  color: var(--text);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
}

.whitelist-form input:focus,
.whitelist-form textarea:focus {
  outline: 2px solid rgba(155, 231, 155, 0.45);
  border-color: #4caf50;
}

.whitelist-form textarea {
  width: 100%;
  border: 1px solid #2a3340;
  background: #0a0f16;
  color: var(--text);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  resize: vertical;
  min-height: 96px;
}

.plugin-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.plugin-card h3 {
  margin-bottom: 8px;
}

.interactive-card {
  display: grid;
  gap: 10px;
}

.support-slide {
  min-height: 230px;
}

.support-slide h3 {
  margin-bottom: 10px;
}

.support-contact {
  margin-top: 12px;
}

.planner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.planner-grid label {
  color: var(--muted);
  font-size: 0.9rem;
}

.planner-grid select {
  border: 1px solid #2a3340;
  background: #0a0f16;
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.tool-input {
  border: 1px solid #2a3340;
  background: #0a0f16;
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.task-list {
  display: grid;
  gap: 8px;
}

.task-list label {
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
}

.progress-wrap {
  width: 100%;
  height: 10px;
  background: #0a0f16;
  border: 1px solid #2a3340;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4caf50, #7adf7e);
  transition: width 0.25s ease;
}

.faq-card {
  margin-top: 14px;
}

.faq-card details {
  border: 1px solid #2a3340;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: rgba(10, 15, 22, 0.45);
}

.faq-card summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-card p {
  margin-bottom: 0;
}

.poll-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.role-btn.active {
  border-color: #4caf50;
  box-shadow: 0 0 0 1px rgba(76, 175, 80, 0.45);
  color: #9be79b;
}

.community-card {
  display: grid;
  gap: 10px;
}

.community-slider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.community-track {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
  border-radius: 16px;
}

.community-slide {
  min-width: 100%;
  flex: 0 0 100%;
}

.slider-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
}

.community-dots {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #2a3340;
  background: #0a0f16;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.dot-btn:hover {
  transform: scale(1.12);
}

.dot-btn.active {
  background: #4caf50;
  border-color: #4caf50;
}

.session-plan-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.session-plan-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
}

.plan-remove-btn {
  border: 1px solid #2a3340;
  background: #0a0f16;
  color: #c4cbd4;
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
}

.plan-remove-btn:hover {
  color: #fff;
  border-color: #4caf50;
}

.application-columns {
  margin-top: 12px;
}

.application-list {
  display: grid;
  gap: 10px;
}

.application-item {
  border: 1px solid #2a3340;
  border-radius: 12px;
  padding: 12px;
  background: rgba(10, 15, 22, 0.45);
}

.application-title {
  margin: 0 0 8px;
  font-weight: 800;
}

.application-meta {
  margin: 0;
  color: var(--muted);
}

.application-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-danger {
  background: linear-gradient(135deg, #6b1d1d, #992626);
  box-shadow: 0 8px 18px rgba(153, 38, 38, 0.25);
}

.application-status {
  margin-top: 10px;
  font-size: 0.92rem;
  color: #9be79b;
}

.server-live {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid #2a3a2f;
  background: linear-gradient(145deg, rgba(12, 22, 16, 0.95), rgba(8, 14, 20, 0.92));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.server-live-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
}

.server-live-head strong {
  font-size: 1.05rem;
  color: #e8fff0;
}

.server-live-updated {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--muted);
}

.server-live-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #8a8a2a;
  box-shadow: 0 0 0 0 rgba(138, 138, 42, 0.5);
  animation: server-pulse 1.4s ease infinite;
}

.server-live-dot[data-state="online"] {
  background: #3dff7a;
  box-shadow: 0 0 12px rgba(61, 255, 122, 0.55);
  animation: server-pulse-online 2s ease infinite;
}

.server-live-dot[data-state="offline"] {
  background: #ff5f5f;
  box-shadow: 0 0 10px rgba(255, 95, 95, 0.45);
  animation: none;
}

.server-live-dot[data-state="loading"] {
  background: #ffd166;
}

@keyframes server-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@keyframes server-pulse-online {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.server-live-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.server-live-stat {
  padding: 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid #243029;
  text-align: center;
}

.server-live-stat strong {
  display: block;
  font-size: 1.5rem;
  color: #9be79b;
  margin-bottom: 4px;
}

.server-live-stat span {
  font-size: 0.82rem;
  color: var(--muted);
}

.server-live-motd {
  margin-top: 12px;
  color: #b8d4bc;
  font-size: 0.92rem;
}

.server-live-players {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.server-live-players li {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(61, 255, 122, 0.12);
  border: 1px solid rgba(61, 255, 122, 0.35);
  color: #d7ffe0;
  font-size: 0.88rem;
}

.player-session-time {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
}

.server-live-hint {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.server-box {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

code {
  background: #0b1016;
  border: 1px solid #293240;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.98rem;
  word-break: break-all;
  max-width: 100%;
}

.copy-status {
  min-height: 1.4em;
  margin-top: 12px;
  color: #9be79b;
}

.site-link-row {
  margin-top: 8px;
  color: var(--muted);
}

.site-link-row a {
  color: #9be79b;
  word-break: break-all;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.site-link-row a:hover {
  color: #3dff7a;
  text-decoration: underline;
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  padding: 0;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
}

.rules-modal {
  border: 1px solid #2b3643;
  border-radius: 14px;
  background: #10161e;
  color: var(--text);
  width: min(680px, 94vw);
  max-height: 90vh;
  padding: 0;
  overflow: hidden;
}

.rules-modal-scroll {
  max-height: calc(90vh - 72px);
  overflow-y: auto;
  padding: 22px 22px 12px;
  -webkit-overflow-scrolling: touch;
}

.rules-modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.rules-modal h3 {
  margin: 0 0 16px;
  font-size: clamp(1rem, 4vw, 1.25rem);
  line-height: 1.4;
  color: #9be79b;
}

.rules-section {
  margin-bottom: 20px;
}

.rules-section h4 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: #dbe7ff;
  line-height: 1.45;
}

.rules-rule {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #2a3340;
  border-radius: 12px;
  background: rgba(10, 15, 22, 0.45);
}

.rules-rule h5 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #e6edf3;
}

.rules-modal p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.rules-modal ul {
  margin: 0 0 10px;
  padding-left: 20px;
}

.rules-modal li {
  margin-bottom: 6px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.rules-punish {
  margin-top: 10px !important;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 95, 95, 0.35);
  background: rgba(255, 95, 95, 0.08);
  color: #ffb4b4 !important;
}

.rules-modal a {
  color: #9be79b;
}

.rules-close-btn {
  width: calc(100% - 44px);
  margin: 0 22px 22px;
}

.footer {
  border-top: 1px solid #1c2430;
  color: #7f8a98;
  padding: 20px 0;
  text-align: center;
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  padding: 0;
  cursor: pointer;
}

@media (max-width: 992px) {
  .container {
    width: min(1100px, 94vw);
  }

  .site-nav-fixed {
    padding-top: env(safe-area-inset-top, 0);
    z-index: 100;
  }

  .nav-backdrop {
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  body.nav-menu-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .nav {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
  }

  .logo {
    font-size: 0.72rem;
    flex: 1;
    min-width: 0;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    display: none !important;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    gap: 8px;
    margin: 0;
    padding: 8px 0 4px;
    max-height: min(70vh, 480px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    order: 3;
  }

  .nav-links.is-open {
    display: flex !important;
  }

  .nav-links a {
    margin: 0;
    width: 100%;
    text-align: center;
    padding: 12px 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .page-main {
    padding-top: 76px;
  }

  .page-hero {
    min-height: auto;
  }

  .hero,
  .page-hero {
    min-height: auto;
  }

  .hero-content {
    padding: 36px 0 56px;
  }

  .kicker {
    font-size: 0.58rem;
    line-height: 1.6;
  }

  h1 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .subtitle,
  .slide-lead {
    font-size: 0.95rem;
  }

  .section {
    padding: 48px 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .stat strong {
    font-size: 1rem;
  }

  .cards,
  .biome-grid,
  .plugin-grid,
  .roadmap,
  .dev-list {
    grid-template-columns: 1fr;
  }

  .biome {
    padding: 28px 14px;
  }

  .biome-meta {
    grid-template-columns: 1fr;
  }

  .dev-member {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .dev-card {
    align-items: flex-start;
  }

  .server-live {
    padding: 14px;
  }

  .server-live-head strong {
    font-size: 0.95rem;
    flex: 1 1 100%;
  }

  .server-live-stats {
    grid-template-columns: 1fr;
  }

  .server-live-updated {
    margin-left: 0;
    width: 100%;
  }

  .server-box {
    flex-direction: column;
    align-items: stretch;
  }

  .server-box code {
    width: 100%;
    text-align: center;
    font-size: 0.82rem;
    padding: 12px 10px;
  }

  .server-box .btn {
    width: 100%;
    min-height: 48px;
  }

  .whitelist-form {
    max-width: none;
  }

  .community-slider {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .slider-nav {
    width: 100%;
    border-radius: 10px;
    height: 44px;
  }

  .support-slide {
    min-height: auto;
  }

  .footer {
    padding: 18px 0 calc(18px + env(safe-area-inset-bottom, 0));
    font-size: 0.9rem;
  }
}

@media (max-width: 380px) {
  .logo {
    font-size: 0.62rem;
  }

  .nav-links a {
    font-size: 0.9rem;
    padding: 10px 12px;
  }
}

.playlist-add-form {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid #2a3340;
  border-radius: 16px;
  background: linear-gradient(180deg, #161b22, #11161d);
}

.playlist-add-form h3 {
  margin: 0 0 16px;
  color: #9be79b;
  font-size: 1.3rem;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  border: 1px solid #2a3340;
  background: #0a0f16;
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.playlist-section {
  margin-top: 32px;
}

.playlist-section h3 {
  margin: 0 0 16px;
  color: #9be79b;
  font-size: 1.3rem;
}

.playlist-container {
  display: grid;
  gap: 12px;
}

.playlist-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 20px;
  font-size: 1rem;
  border: 1px dashed #2a3340;
  border-radius: 12px;
  background: rgba(10, 15, 22, 0.3);
}

.playlist-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid #2a3340;
  border-radius: 14px;
  background: linear-gradient(180deg, #161b22, #11161d);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.playlist-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: #3a4a5a;
}

.playlist-item-info {
  display: grid;
  gap: 6px;
}

.playlist-song-name {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 700;
}

.playlist-artist {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.playlist-link {
  display: inline-block;
  margin-top: 8px;
  color: #9be79b;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.playlist-link:hover {
  color: #3dff7a;
  text-decoration: underline;
}

.playlist-item-stats {
  display: grid;
  gap: 12px;
  align-items: start;
  justify-content: end;
}

.listen-counter {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #2a3a2f;
  border-radius: 10px;
  background: rgba(12, 22, 16, 0.5);
}

.listen-icon {
  font-size: 1.1rem;
}

.listen-count {
  font-size: 1.2rem;
  font-weight: 800;
  color: #9be79b;
}

.listen-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.playlist-item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 8px 12px;
  font-size: 0.85rem;
}

.btn-danger {
  background: linear-gradient(135deg, #6b1d1d, #992626);
  box-shadow: 0 8px 18px rgba(153, 38, 38, 0.25);
}

.btn-danger:hover {
  border-color: #ff6b6b;
  box-shadow: 0 8px 22px rgba(153, 38, 38, 0.4);
}

@media (max-width: 992px) {
  .playlist-item {
    grid-template-columns: 1fr;
  }

  .playlist-item-stats {
    justify-content: stretch;
  }

  .playlist-item-actions {
    width: 100%;
  }

  .playlist-item-actions .btn {
    flex: 1;
    min-height: 44px;
  }

  .listen-counter {
    justify-content: center;
  }
}

.easter-egg-modal {
  border: 1px solid #4caf50;
  border-radius: 16px;
  background: linear-gradient(180deg, #1a2f1a, #0d1a0d);
  color: var(--text);
  width: min(420px, 90vw);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(76, 175, 80, 0.3);
}

.easter-egg-modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.easter-egg-content {
  padding: 32px 28px;
  text-align: center;
}

.easter-egg-content h3 {
  margin: 0 0 20px;
  font-size: 1.6rem;
  color: #9be79b;
  text-shadow: 0 0 20px rgba(155, 231, 155, 0.5);
}

.easter-egg-content p {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.6;
}

.easter-egg-hint {
  color: #ffd700 !important;
  font-weight: 600;
  margin-top: 20px !important;
  padding: 12px 16px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 10px;
}

.easter-egg-content .btn {
  margin-top: 24px;
  width: 100%;
}

.easter-egg-hint-corner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 16px;
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.4);
  border-radius: 10px;
  color: #9be79b;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 50;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.easter-egg-hint-corner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

/* LightHouse.AI Styles */
.ai-page {
  min-height: calc(100vh - 88px);
  padding: 40px 20px;
  background: #0d1117;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-container {
  max-width: 700px;
  width: 100%;
  height: 70vh;
  display: flex;
  flex-direction: column;
}

.ai-chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #161b22;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* Прозрачный scrollbar для ai-messages */
.ai-messages::-webkit-scrollbar {
  width: 8px;
}

.ai-messages::-webkit-scrollbar-track {
  background: transparent;
}

.ai-messages::-webkit-scrollbar-thumb {
  background: rgba(76, 175, 80, 0.3);
  border-radius: 4px;
}

.ai-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(76, 175, 80, 0.5);
}

.ai-message {
  display: flex;
  gap: 12px;
  max-width: 100%;
  margin-bottom: 20px;
}

.ai-message-user {
  flex-direction: row-reverse;
}

.ai-message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #4caf50;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0d1117;
  flex-shrink: 0;
}

.ai-message-assistant .ai-message-avatar {
  background: #2196f3;
  color: #fff;
}

.ai-message-content {
  flex: 1;
  max-width: 80%;
}

.ai-message-user .ai-message-content {
  background: #4caf50;
  color: #0d1117;
  padding: 12px 16px;
  border-radius: 12px;
}

.ai-message-assistant .ai-message-content {
  background: #21262d;
  padding: 12px 16px;
  border-radius: 12px;
}

.ai-message-content p {
  margin: 0 0 8px;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: pre-wrap;
  overflow-x: auto;
  max-width: 100%;
}

.ai-message-content p:last-child {
  margin-bottom: 0;
}

.ai-message-files {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ai-message-file {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.ai-message-time {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 6px;
}

.ai-input-container {
  padding: 20px;
  background: transparent;
}

.ai-input-wrapper {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  max-width: 800px;
  margin: 0 auto;
}

.ai-attach-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #21262d;
  border-radius: 8px;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.ai-attach-btn:hover {
  background: #30363d;
}

.ai-input {
  flex: 1;
  background: #21262d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  resize: none;
  min-height: 44px;
  max-height: 120px;
  transition: border-color 0.2s ease;
}

.ai-input:focus {
  outline: none;
  border-color: #4caf50;
}

.ai-input::placeholder {
  color: var(--muted);
}

.ai-send-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: #4caf50;
  border-radius: 8px;
  color: #0d1117;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.ai-send-btn:hover {
  background: #45a049;
}

.ai-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.ai-attachment {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #21262d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 6px 10px;
}

.ai-attachment-name {
  font-size: 0.85rem;
  color: var(--text);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-attachment-size {
  font-size: 0.75rem;
  color: var(--muted);
}

.ai-attachment-remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.ai-attachment-remove:hover {
  color: #ff6b6b;
}

.nav-ai-link {
  background: #2196f3;
  color: #fff;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.nav-ai-link:hover {
  background: #1976d2;
}

@media (max-width: 768px) {
  .ai-header h1 {
    font-size: 1.3rem;
  }
  
  .ai-subtitle {
    font-size: 0.85rem;
  }
  
  .ai-message-content {
    max-width: 85%;
  }
  
  .ai-input-wrapper {
    max-width: 100%;
  }
  
  .ai-attachments {
    max-width: 100%;
  }
}

.ai-info-card {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(33, 38, 45, 0.5);
  border: 1px solid rgba(76, 175, 80, 0.2);
  border-radius: 12px;
  display: flex;
  gap: 16px;
  align-items: center;
  backdrop-filter: blur(10px);
}

.ai-info-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.ai-info-content h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #4caf50;
  font-weight: 600;
}

.ai-info-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
}

/* Typing indicator animation */
.typing-dots {
  display: flex;
  gap: 4px;
  padding: 8px 0;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  background: #4caf50;
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
  animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

.ai-typing {
  opacity: 0.7;
}
