/* Global body and pattern background */
body {
  margin: 0;
  font-family: 'Courier New', Courier, monospace;
  background-color: #111;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08) 1px, transparent 0), radial-gradient(circle at 80% 80%, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 40px 40px;
  color: #eee;
}

a {
  color: #8af;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  cursor: pointer;
}

.splash-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
  padding: 2rem;
}

.splash-logo {
  width: 280px;
  max-width: 100%;
  filter: brightness(1.1);
}

.splash-warning {
  max-width: 46rem;
  font-size: 1rem;
  line-height: 1.6;
  background: rgba(0,0,0,0.5);
  border: 1px solid #444;
  padding: 1rem;
}

.splash-enter {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: 1px solid #8af;
  background: rgba(138,204,255,0.08);
  transition: background 0.2s ease;
}

.splash-enter:hover {
  background: rgba(138,204,255,0.2);
}

.page-header {
  position: relative;
  text-align: center;
  padding: 2rem 1rem;
  overflow: hidden;
}

.header-background {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(138,204,255,0.12), rgba(255,255,255,0.02));
  opacity: 0.7;
}

.page-header h1 {
  position: relative;
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4rem);
  letter-spacing: 0.2rem;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(12rem, 15rem) minmax(20rem, 1fr) minmax(14rem, 18rem);
  gap: 1.5rem;
  padding: 1.5rem;
}

.sidebar,
.sidebar-right {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
  padding: 1rem;
  border-radius: 0.75rem;
}

.sidebar ul,
.sidebar-right ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar li,
.sidebar-right li {
  margin-bottom: 0.8rem;
}

.sidebar a,
.sidebar-right a {
  color: #9ef;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.welcome-box,
.neighbors-panel,
.widget-box,
.status-panel,
.recent-blogs,
.chattable,
.chatbox-panel {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid #333;
  padding: 0.5rem;
  border-radius: 0.75rem;

}
.tab-buttons,
.gallery-grid {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid #333;
  padding: 1rem;
  border-radius: 0.75rem;
}

#chattable{
  width: 235px;
  height: 350px;
  border: none;
  }

.welcome-box h2,
.neighbors-panel h3,
.widget-box h3,
.status-panel h3,
.recent-blogs h3,
.chattable h3,
.tab-buttons {
  margin-top: 0;
}

.neighbors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.neighbor-link img {
  width: 88px;
  height: 31px;
  object-fit: cover;
  display: block;
  border: 1px solid #444;
}

.widget-box {
  min-height: 10rem;
}

.status-panel ul,
.recent-blogs ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.status-panel li,
.recent-blogs li {
  margin-bottom: 0.75rem;
}



.tab-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tab-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #8af;
  background: rgba(0,0,0,0.45);
  color: #eee;
}

.tab-btn.active {
  background: rgba(138,204,255,0.2);
  border-color: #6cf;
}

.tab-content {
  margin-top: 1rem;
}

.hidden,
[hidden] {
  display: none !important;
}

.lightbox.hidden,
.lightbox[hidden] {
  display: none !important;
}

.neighbors-panel.hidden, .neighbors-panel[hidden]{
  display: none !important;
}

.journal-entry {
  border-top: 1px solid #333;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.journal-entry:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.thumbnail {
  border: none;
  background: none;
  padding: 0;
}

.thumbnail img {
  width: 100%;
  display: block;
  border: 1px solid #444;
  border-radius: 0.5rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1000;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 1;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  border: 1px solid #777;
  border-radius: 0.5rem;
}

.lightbox-close {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid #8af;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
}


@media (max-width: 1000px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-background {
    opacity: 0.5;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }
}
