* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(ellipse at top, #0d1224 0%, #05060d 70%);
  color: #e6e9f5;
  font-family: "Segoe UI", system-ui, sans-serif;
  min-height: 100vh;
}

/* --- Login --- */
.login-body { display:flex; align-items:center; justify-content:center; height:100vh; }
.login-card {
  background: #10142a;
  border: 1px solid #262c52;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  width: 320px;
  box-shadow: 0 0 40px rgba(80,120,255,0.15);
}
.login-card h1 { letter-spacing: 3px; margin-bottom: 4px; }
.login-card h1 span { color: #6c8cff; }
.subtitle { color: #8a91b8; font-size: 13px; margin-bottom: 24px; }
.btn { display:block; margin: 10px 0; padding: 12px; border-radius: 8px; text-decoration:none; font-weight: 600; }
.btn-discord { background:#5865F2; color:#fff; }
.btn-google { background:#fff; color:#111; }
.error-msg { color:#ff6b6b; font-size:13px; min-height:16px; margin-bottom:8px; }

/* --- App --- */
.topbar {
  display:flex; justify-content:space-between; align-items:center;
  padding: 14px 24px; border-bottom: 1px solid #1c2140;
  background: #0a0d1c;
}
.logo { font-weight:800; letter-spacing:2px; }
.logo span { color:#6c8cff; }
.userbox { display:flex; align-items:center; gap:10px; font-size:14px; }
.userbox img { width:28px; height:28px; border-radius:50%; }
.userbox .role-badge {
  font-size: 11px; padding: 2px 8px; border-radius: 20px; text-transform: uppercase;
  background:#262c52; color:#9db0ff;
}
.userbox a { color:#8a91b8; text-decoration:none; font-size:13px; }

.tabs { display:flex; gap:8px; padding: 16px 24px 0; }
.tab {
  background: none; border: 1px solid #262c52; color:#c3c9ee;
  padding: 8px 16px; border-radius: 20px; cursor:pointer; font-size: 13px;
}
.tab.active { background:#6c8cff; color:#0a0d1c; border-color:#6c8cff; font-weight:600; }

.feed { max-width: 680px; margin: 20px auto; padding: 0 16px 80px; }
.post {
  background:#10142a; border:1px solid #1c2140; border-radius:14px;
  padding:18px; margin-bottom:16px;
}
.post h3 { margin:0 0 6px; }
.post .meta { font-size:12px; color:#8a91b8; margin-bottom:10px; }
.post img { max-width:100%; border-radius:10px; margin-bottom:10px; }
.post p { white-space: pre-wrap; line-height:1.5; }

.delete-post-btn {
  margin-top: 8px; background:#8a2e2e; border:none; color:#fff; border-radius:6px;
  padding:6px 12px; font-size:12px; cursor:pointer;
}
.comments { margin-top: 14px; border-top:1px solid #1c2140; padding-top: 10px; }
.comment { font-size: 13px; margin-bottom: 8px; }
.comment b { color:#9db0ff; }
.comment-form { display:flex; gap:8px; margin-top:8px; }
.comment-form input { flex:1; background:#0a0d1c; border:1px solid #262c52; border-radius:8px; padding:8px; color:#fff; }
.comment-form button { background:#6c8cff; border:none; border-radius:8px; padding:8px 14px; color:#0a0d1c; font-weight:600; cursor:pointer; }
.comment-form .mic-btn { background:#262c52; color:#c3c9ee; }
.comment-form .mic-btn.recording { background:#8a2e2e; color:#fff; }

#siteOverlayLayer {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 500;
}
.site-overlay-rect {
  position: absolute; pointer-events: auto;
}
.site-overlay-rect img { width: 100%; height: 100%; object-fit: cover; display:block; }

.site-footer { text-align:center; padding: 30px 16px 60px; }
.site-footer input {
  background: transparent; border: none; border-bottom: 1px solid #1c2140;
  color: #262c52; text-align:center; font-size: 11px; padding: 4px; width: 160px;
  outline: none;
}
.site-footer input:focus { color:#8a91b8; border-bottom-color:#6c8cff; }

.egg-message-box {
  position: fixed; top: 20%; left: 50%; transform: translateX(-50%);
  background:#10142a; border:1px solid #6c8cff; border-radius:14px;
  padding: 24px 32px; z-index: 2000; box-shadow: 0 0 60px rgba(108,140,255,0.4);
  max-width: 420px; text-align:center; font-size: 15px;
}

.new-post-box {
  max-width: 680px; margin: 0 auto 40px; padding: 16px 24px;
}
.new-post-box input, .new-post-box textarea {
  width:100%; background:#10142a; border:1px solid #262c52; border-radius:8px;
  color:#fff; padding:10px; margin-bottom:8px; font-family:inherit;
}
.new-post-box textarea { min-height: 100px; }
.new-post-box button {
  background:#6c8cff; border:none; border-radius:8px; padding:10px 18px;
  color:#0a0d1c; font-weight:700; cursor:pointer;
}
